187 lines
657 KiB
JavaScript
187 lines
657 KiB
JavaScript
function PE(t,r){for(var a=0;a<r.length;a++){const l=r[a];if(typeof l!="string"&&!Array.isArray(l)){for(const s in l)if(s!=="default"&&!(s in t)){const c=Object.getOwnPropertyDescriptor(l,s);c&&Object.defineProperty(t,s,c.get?c:{enumerable:!0,get:()=>l[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&l(f)}).observe(document,{childList:!0,subtree:!0});function a(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(s){if(s.ep)return;s.ep=!0;const c=a(s);fetch(s.href,c)}})();function jb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zf={exports:{}},cs={};/**
|
|||
|
|
* @license React
|
||
|
|
* react-jsx-runtime.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var o1;function BE(){if(o1)return cs;o1=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(l,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var m in s)m!=="key"&&(c[m]=s[m])}else c=s;return s=c.ref,{$$typeof:t,type:l,key:f,ref:s!==void 0?s:null,props:c}}return cs.Fragment=r,cs.jsx=a,cs.jsxs=a,cs}var l1;function $E(){return l1||(l1=1,Zf.exports=BE()),Zf.exports}var u=$E(),Qf={exports:{}},je={};/**
|
||
|
|
* @license React
|
||
|
|
* react.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var s1;function UE(){if(s1)return je;s1=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),x=Symbol.iterator;function C(M){return M===null||typeof M!="object"?null:(M=x&&M[x]||M["@@iterator"],typeof M=="function"?M:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,j={};function N(M,D,H){this.props=M,this.context=D,this.refs=j,this.updater=H||E}N.prototype.isReactComponent={},N.prototype.setState=function(M,D){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,D,"setState")},N.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function _(){}_.prototype=N.prototype;function A(M,D,H){this.props=M,this.context=D,this.refs=j,this.updater=H||E}var T=A.prototype=new _;T.constructor=A,w(T,N.prototype),T.isPureReactComponent=!0;var z=Array.isArray;function P(){}var B={H:null,A:null,T:null,S:null},U=Object.prototype.hasOwnProperty;function Y(M,D,H){var X=H.ref;return{$$typeof:t,type:M,key:D,ref:X!==void 0?X:null,props:H}}function se(M,D){return Y(M.type,D,M.props)}function te(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function ce(M){var D={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(H){return D[H]})}var me=/\/+/g;function ae(M,D){return typeof M=="object"&&M!==null&&M.key!=null?ce(""+M.key):D.toString(36)}function de(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(P,P):(M.status="pending",M.then(function(D){M.status==="pending"&&(M.status="fulfilled",M.value=D)},function(D){M.status==="pending"&&(M.status="rejected",M.reason=D)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function O(M,D,H,X,F){var oe=typeof M;(oe==="undefined"||oe==="boolean")&&(M=null);var ee=!1;if(M===null)ee=!0;else switch(oe){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(M.$$typeof){case t:case r:ee=!0;break;case b:return ee=M._init,O(ee(M._payload),D,H,X,F)}}if(ee)return F=F(M),ee=X===""?"."+ae(M,0):X,z(F)?(H="",ee!=null&&(H=ee.replace(me,"$&/")+"/"),O(F,D,H,"",function(Ce){return Ce})):F!=null&&(te(F)&&(F=se(F,H+(F.key==null||M&&M.key===F.key?"":(""+F.key).replace(me,"$&/")+"/")+ee)),D.push(F)),1;ee=0;var fe=X===""?".":X+":";if(z(M))for(var ue=0;ue<M.length;ue++)X=M[ue],oe=fe+ae(X,ue),ee+=O(X,D,H,oe,F);else if(ue=C(M),typeof ue=="function")for(M=ue.call(M),ue=0;!(X=M.next()).done;)X=X.value,oe=fe+ae(X,ue++),ee+=O(X,D,H,oe,F);else if(oe==="object"){if(typeof M.then=="function")return O(de(M),D,H,X,F);throw D=String(M),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return ee}function q(M,D,H){if(M==null)return M;var X=[],F=0;return O(M,X,"","",function(oe){return D.call(H,oe,F++)}),X}function J(M){if(M._status===-1){var D=M._result;D=D(),D.then(function(H){(M._status===0||M._status===-1)&&(M._status=1,M._result=H)},function(H){(M._status===0||M._status===-1)&&(M._status=2,M._result=H)}),M._status===-1&&(M._status=0,M._result=D)}if(M._status===1)return M._result.default;throw M._result}var re=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(D))return}else
|
||
|
|
* @license React
|
||
|
|
* scheduler.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var c1;function HE(){return c1||(c1=1,(function(t){function r(O,q){var J=O.length;O.push(q);e:for(;0<J;){var re=J-1>>>1,Z=O[re];if(0<s(Z,q))O[re]=q,O[J]=Z,J=re;else break e}}function a(O){return O.length===0?null:O[0]}function l(O){if(O.length===0)return null;var q=O[0],J=O.pop();if(J!==q){O[0]=J;e:for(var re=0,Z=O.length,M=Z>>>1;re<M;){var D=2*(re+1)-1,H=O[D],X=D+1,F=O[X];if(0>s(H,J))X<Z&&0>s(F,H)?(O[re]=F,O[X]=J,re=X):(O[re]=H,O[D]=J,re=D);else if(X<Z&&0>s(F,J))O[re]=F,O[X]=J,re=X;else break e}}return q}function s(O,q){var J=O.sortIndex-q.sortIndex;return J!==0?J:O.id-q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var f=Date,m=f.now();t.unstable_now=function(){return f.now()-m}}var g=[],h=[],b=1,v=null,x=3,C=!1,E=!1,w=!1,j=!1,N=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function T(O){for(var q=a(h);q!==null;){if(q.callback===null)l(h);else if(q.startTime<=O)l(h),q.sortIndex=q.expirationTime,r(g,q);else break;q=a(h)}}function z(O){if(w=!1,T(O),!E)if(a(g)!==null)E=!0,P||(P=!0,ce());else{var q=a(h);q!==null&&de(z,q.startTime-O)}}var P=!1,B=-1,U=5,Y=-1;function se(){return j?!0:!(t.unstable_now()-Y<U)}function te(){if(j=!1,P){var O=t.unstable_now();Y=O;var q=!0;try{e:{E=!1,w&&(w=!1,_(B),B=-1),C=!0;var J=x;try{t:{for(T(O),v=a(g);v!==null&&!(v.expirationTime>O&&se());){var re=v.callback;if(typeof re=="function"){v.callback=null,x=v.priorityLevel;var Z=re(v.expirationTime<=O);if(O=t.unstable_now(),typeof Z=="function"){v.callback=Z,T(O),q=!0;break t}v===a(g)&&l(g),T(O)}else l(g);v=a(g)}if(v!==null)q=!0;else{var M=a(h);M!==null&&de(z,M.startTime-O),q=!1}}break e}finally{v=null,x=J,C=!1}q=void 0}}finally{q?ce():P=!1}}}var ce;if(typeof A=="function")ce=function(){A(te)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,ae=me.port2;me.port1.onmessage=te,ce=function(){ae.postMessage(null)}}else ce=function(){N(te,0)};function de(O,q){B=N(function(){O(t.unstable_now())},q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(O){O.callback=null},t.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<O?Math.floor(1e3/O):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(O){switch(x){case 1:case 2:case 3:var q=3;break;default:q=x}var J=x;x=q;try{return O()}finally{x=J}},t.unstable_requestPaint=function(){j=!0},t.unstable_runWithPriority=function(O,q){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var J=x;x=O;try{return q()}finally{x=J}},t.unstable_scheduleCallback=function(O,q,J){var re=t.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?re+J:re):J=re,O){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=J+Z,O={id:b++,callback:q,priorityLevel:O,startTime:J,expirationTime:Z,sortIndex:-1},J>re?(O.sortIndex=J,r(h,O),a(g)===null&&O===a(h)&&(w?(_(B),B=-1):w=!0,de(z,J-re))):(O.sortIndex=Z,r(g,O),E||C||(E=!0,P||(P=!0,ce()))),O},t.unstable_shouldYield=se,t.unstable_wrapCallback=function(O){var q=x;return function(){var J=x;x=q;try{return O.apply(this,arguments)}finally{x=J}}}})(tm)),tm}var u1;function IE(){return u1||(u1=1,em.exports=HE()),em.exports}var nm={exports:{}},Pt={};/**
|
||
|
|
* @license React
|
||
|
|
* react-dom.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var d1;function VE(){if(d1)return Pt;d1=1;var t=Zc();function r(g){var h="https://react.dev/errors/"+g;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)h+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var l={d:{f:a,r:function(){throw Error(r(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(g,h,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:v==null?null:""+v,children:g,containerInfo:h,implementation:b}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,h){if(g==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Pt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Pt.createPortal=function(g,h){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(r(299));return c(g,h,null,b)},Pt.flushSync=function(g){var h=f.T,b=l.p;try{if(f.T=null,l.p=2,g)return g()}finally{f.T=h,l.p=b,l.d.f()}},Pt.preconnect=function(g,h){typeof g=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,l.d.C(g,h))},Pt.prefetchDNS=function(g){typeof g=="string"&&l.d.D(g)},Pt.preinit=function(g,h){if(typeof g=="string"&&h&&typeof h.as=="string"){var b=h.as,v=m(b,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,C=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;b==="style"?l.d.S(g,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:v,integrity:x,fetchPriority:C}):b==="script"&&l.d.X(g,{crossOrigin:v,integrity:x,fetchPriority:C,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Pt.preinitModule=function(g,h){if(typeof g=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var b=m(h.as,h.crossOrigin);l.d.M(g,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&l.d.M(g)},Pt.preload=function(g,h){if(typeof g=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var b=h.as,v=m(b,h.crossOrigin);l.d.L(g,b,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Pt.preloadModule=function(g,h){if(typeof g=="string")if(h){var b=m(h.as,h.crossOrigin);l.d.m(g,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else l.d.m(g)},Pt.requestFormReset=function(g){l.d.r(g)},Pt.unstable_batchedUpdates=function(g,h){return g(h)},Pt.useFormState=function(g,h,b){return f.H.useFormState(g,h,b)},Pt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Pt.version="19.2.6",Pt}var f1;function Rb(){if(f1)return nm.exports;f1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),nm.exports=VE(),nm.exports}/**
|
||
|
|
* @license React
|
||
|
|
* react-dom-client.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var m1;function GE(){if(m1)return us;m1=1;var t=IE(),r=Zc(),a=Rb();function l(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function f(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(c(e)!==e)throw Error(l(188))}function h(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(l(188));return n!==e?null:e}for(var o=e,i=n;;){var p=o.return;if(p===null)break;var y=p.alternate;if(y===null){if(i=p.return,i!==null){o=i;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===o)return g(p),e;if(y===i)return g(p),n;y=y.sibling}throw Error(l(188))}if(o.return!==i.return)o=p,i=y;else{for(var S=!1,R=p.child;R;){if(R===o){S=!0,o=p,i=y;break}if(R===i){S=!0,i=p,o=y;break}R=R.sibling}if(!S){for(R=y.child;R;){if(R===o){S=!0,o=y,i=p;break}if(R===i){S=!0,i=y,o=p;break}R=R.sibling}if(!S)throw Error(l(189))}}if(o.alternate!==i)throw Error(l(190))}if(o.tag!==3)throw Error(l(188));return o.stateNode.current===o?e:n}function b(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=b(e),n!==null)return n;e=e.sibling}return null}var v=Object.assign,x=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),A=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var me=Symbol.for("react.client.reference");function ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case N:return"Profiler";case j:return"StrictMode";case z:return"Suspense";case P:return"SuspenseList";case Y:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case A:return e.displayName||"Context";case _:return(e._context.displayName||"Context")+".Consumer";case T:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return n=e.displayName||null,n!==null?n:ae(e.type)||"Memo";case U:n=e._payload,e=e._init;try{return ae(e(n))}catch{}}return null}var de=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},re=[],Z=-1;function M(e){return{current:e}}function D(e){0>Z||(e.current=re[Z],re[Z]=null,Z--)}function H(e,n){Z++,re[Z]=e.current,e.current=n}var X=M(null),F=M(null),oe=M(null),ee=M(null);function fe(e,n){switch(H(oe,n),H(F,e),H(X,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Ty(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Ty(n),e=Ay(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(X),H(X,e)}function ue(){D(X),D(F),D(oe)}function Ce(e){e.memoizedState!==null&&H(ee,e);var n=X.current,o=Ay(n,e.type);n!==o&&(H(F,e),H(X,o))}function Re(e){F.curr
|
||
|
|
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
|
|
`+Ne+e+nt}var Ln=!1;function yn(e,n){if(!e||Ln)return"";Ln=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(n){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(W){var G=W}Reflect.construct(e,[],ne)}else{try{ne.call()}catch(W){G=W}e.call(ne.prototype)}}else{try{throw Error()}catch(W){G=W}(ne=e())&&typeof ne.catch=="function"&&ne.catch(function(){})}}catch(W){if(W&&G&&typeof W.stack=="string")return[W.stack,G.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=i.DetermineComponentFrameRoot(),S=y[0],R=y[1];if(S&&R){var k=S.split(`
|
||
|
|
`),V=R.split(`
|
||
|
|
`);for(p=i=0;i<k.length&&!k[i].includes("DetermineComponentFrameRoot");)i++;for(;p<V.length&&!V[p].includes("DetermineComponentFrameRoot");)p++;if(i===k.length||p===V.length)for(i=k.length-1,p=V.length-1;1<=i&&0<=p&&k[i]!==V[p];)p--;for(;1<=i&&0<=p;i--,p--)if(k[i]!==V[p]){if(i!==1||p!==1)do if(i--,p--,0>p||k[i]!==V[p]){var K=`
|
||
|
|
`+k[i].replace(" at new "," at ");return e.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",e.displayName)),K}while(1<=i&&0<=p);break}}}finally{Ln=!1,Error.prepareStackTrace=o}return(o=e?e.displayName||e.name:"")?We(o):""}function rn(e,n){switch(e.tag){case 26:case 27:case 5:return We(e.type);case 16:return We("Lazy");case 13:return e.child!==n&&n!==null?We("Suspense Fallback"):We("Suspense");case 19:return We("SuspenseList");case 0:case 15:return yn(e.type,!1);case 11:return yn(e.type.render,!1);case 1:return yn(e.type,!0);case 31:return We("Activity");default:return""}}function va(e){try{var n="",o=null;do n+=rn(e,o),o=e,e=e.return;while(e);return n}catch(i){return`
|
||
|
|
Error generating stack: `+i.message+`
|
||
|
|
`+i.stack}}var bt=Object.prototype.hasOwnProperty,gl=t.unstable_scheduleCallback,vl=t.unstable_cancelCallback,$t=t.unstable_shouldYield,Or=t.unstable_requestPaint,Ut=t.unstable_now,Bu=t.unstable_getCurrentPriorityLevel,ya=t.unstable_ImmediatePriority,ni=t.unstable_UserBlockingPriority,ba=t.unstable_NormalPriority,yl=t.unstable_LowPriority,ir=t.unstable_IdlePriority,ri=t.log,Dr=t.unstable_setDisableYieldValue,xa=null,Ht=null;function zn(e){if(typeof ri=="function"&&Dr(e),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(xa,e)}catch{}}var Lt=Math.clz32?Math.clz32:qn,$u=Math.log,bl=Math.LN2;function qn(e){return e>>>=0,e===0?32:31-($u(e)/bl|0)|0}var to=256,no=262144,Sa=4194304;function Xn(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ee(e,n,o){var i=e.pendingLanes;if(i===0)return 0;var p=0,y=e.suspendedLanes,S=e.pingedLanes;e=e.warmLanes;var R=i&134217727;return R!==0?(i=R&~y,i!==0?p=Xn(i):(S&=R,S!==0?p=Xn(S):o||(o=R&~e,o!==0&&(p=Xn(o))))):(R=i&~y,R!==0?p=Xn(R):S!==0?p=Xn(S):o||(o=i&~e,o!==0&&(p=Xn(o)))),p===0?0:n!==0&&n!==p&&(n&y)===0&&(y=p&-p,o=n&-n,y>=o||y===32&&(o&4194048)!==0)?n:p}function Qe(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function xt(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zt(){var e=Sa;return Sa<<=1,(Sa&62914560)===0&&(Sa=4194304),e}function Lr(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function tt(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Gt(e,n,o,i,p,y){var S=e.pendingLanes;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=o,e.entangledLanes&=o,e.errorRecoveryDisabledLanes&=o,e.shellSuspendCounter=0;var R=e.entanglements,k=e.expirationTimes,V=e.hiddenUpdates;for(o=S&~o;0<o;){var K=31-Lt(o),ne=1<<K;R[K]=0,k[K]=-1;var G=V[K];if(G!==null)for(V[K]=null,K=0;K<G.length;K++){var W=G[K];W!==null&&(W.lane&=-536870913)}o&=~ne}i!==0&&Ca(e,i,0),y!==0&&p===0&&e.tag!==0&&(e.suspendedLanes|=y&~(S&~n))}function Ca(e,n,o){e.pendingLanes|=n,e.suspendedLanes&=~n;var i=31-Lt(n);e.entangledLanes|=n,e.entanglements[i]=e.entanglements[i]|1073741824|o&261930}function Yt(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var i=31-Lt(o),p=1<<i;p&n|e[i]&n&&(e[i]|=n),o&=~p}}function Ft(e,n){var o=n&-n;return o=(o&42)!==0?1:ro(o),(o&(e.suspendedLanes|n))!==0?0:o}function ro(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Pn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Uu(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:Qy(e.type))}function ph(e,n){var o=q.p;try{return q.p=e,n()}finally{q.p=o}}var zr=Math.random().toString(36).slice(2),jt="__reactFiber$"+zr,Wt="__reactProps$"+zr,ao="__reactContainer$"+zr,Hu="__reactEvents$"+zr,jw="__reactListeners$"+zr,Rw="__reactHandles$"+zr,hh="__reactResources$"+zr,xl="__reactMarker$"+zr;functi
|
||
|
|
`).replace(oE,"")}function jy(e,n){return n=Ny(n),Ny(e)===n}function Ye(e,n,o,i,p,y){switch(o){case"children":typeof i=="string"?n==="body"||n==="textarea"&&i===""||uo(e,i):(typeof i=="number"||typeof i=="bigint")&&n!=="body"&&uo(e,""+i);break;case"className":oi(e,"class",i);break;case"tabIndex":oi(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":oi(e,o,i);break;case"style":jh(e,i,y);break;case"data":if(n!=="object"){oi(e,"data",i);break}case"src":case"href":if(i===""&&(n!=="a"||o!=="href")){e.removeAttribute(o);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(o);break}i=si(""+i),e.setAttribute(o,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(o==="formAction"?(n!=="input"&&Ye(e,n,"name",p.name,p,null),Ye(e,n,"formEncType",p.formEncType,p,null),Ye(e,n,"formMethod",p.formMethod,p,null),Ye(e,n,"formTarget",p.formTarget,p,null)):(Ye(e,n,"encType",p.encType,p,null),Ye(e,n,"method",p.method,p,null),Ye(e,n,"target",p.target,p,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(o);break}i=si(""+i),e.setAttribute(o,i);break;case"onClick":i!=null&&(e.onclick=ur);break;case"onScroll":i!=null&&Oe("scroll",e);break;case"onScrollEnd":i!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(o=i.__html,o!=null){if(p.children!=null)throw Error(l(60));e.innerHTML=o}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}o=si(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(o,""+i):e.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(o,""):e.removeAttribute(o);break;case"capture":case"download":i===!0?e.setAttribute(o,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(o,i):e.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(o,i):e.removeAttribute(o);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(o):e.setAttribute(o,i);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),ai(e,"popover",i);break;case"xlinkActuate":cr(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":cr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":cr(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":cr(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":cr(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":cr(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":cr(e,"http://www.w3.org/XML/1998/namespace","xml:ba
|
||
|
|
* react-router v7.15.1
|
||
|
|
*
|
||
|
|
* Copyright (c) Remix Software Inc.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*/var h1="popstate";function g1(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function WE(t={}){function r(l,s){var h;let c=(h=s.state)==null?void 0:h.masked,{pathname:f,search:m,hash:g}=c||l.location;return jm("",{pathname:f,search:m,hash:g},s.state&&s.state.usr||null,s.state&&s.state.key||"default",c?{pathname:l.location.pathname,search:l.location.search,hash:l.location.hash}:void 0)}function a(l,s){return typeof s=="string"?s:Cs(s)}return XE(r,a,null,t)}function et(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}function kn(t,r){if(!t){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function qE(){return Math.random().toString(36).substring(2,10)}function v1(t,r){return{usr:t.state,key:t.key,idx:r,masked:t.mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function jm(t,r,a=null,l,s){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof r=="string"?ol(r):r,state:a,key:r&&r.key||l||qE(),mask:s}}function Cs({pathname:t="/",search:r="",hash:a=""}){return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}function ol(t){let r={};if(t){let a=t.indexOf("#");a>=0&&(r.hash=t.substring(a),t=t.substring(0,a));let l=t.indexOf("?");l>=0&&(r.search=t.substring(l),t=t.substring(0,l)),t&&(r.pathname=t)}return r}function XE(t,r,a,l={}){let{window:s=document.defaultView,v5Compat:c=!1}=l,f=s.history,m="POP",g=null,h=b();h==null&&(h=0,f.replaceState({...f.state,idx:h},""));function b(){return(f.state||{idx:null}).idx}function v(){m="POP";let j=b(),N=j==null?null:j-h;h=j,g&&g({action:m,location:w.location,delta:N})}function x(j,N){m="PUSH";let _=g1(j)?j:jm(w.location,j,N);h=b()+1;let A=v1(_,h),T=w.createHref(_.mask||_);try{f.pushState(A,"",T)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;s.location.assign(T)}c&&g&&g({action:m,location:w.location,delta:1})}function C(j,N){m="REPLACE";let _=g1(j)?j:jm(w.location,j,N);h=b();let A=v1(_,h),T=w.createHref(_.mask||_);f.replaceState(A,"",T),c&&g&&g({action:m,location:w.location,delta:0})}function E(j){return KE(j)}let w={get action(){return m},get location(){return t(s,f)},listen(j){if(g)throw new Error("A history only accepts one active listener");return s.addEventListener(h1,v),g=j,()=>{s.removeEventListener(h1,v),g=null}},createHref(j){return r(s,j)},createURL:E,encodeLocation(j){let N=E(j);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:x,replace:C,go(j){return f.go(j)}};return w}function KE(t,r=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),et(a,"No window.location.(origin|href) available to create URL");let l=typeof t=="string"?t:Cs(t);return l=l.replace(/ $/,"%20"),!r&&l.startsWith("//")&&(l=a+l),new URL(l,a)}function Tb(t,r,a="/"){return ZE(t,r,a,!1)}function ZE(t,r,a,l,s){let c=typeof r=="string"?ol(r):r,f=Tr(c.pathname||"/",a);if(f==null)return null;let m=QE(t),g=null,h=u3(f);for(let b=0;g==null&&b<m.length;++b)g=i3(m[b],h,l);return g}function QE(t){let r=Ab(t);return JE(r),r}function Ab(t,r=[],a=[],l="",s=!1){let c=(f,m,g=s,h)=>{let b={relativePath:h===void 0?f.path||"":h,caseSensitive:f.caseSensitive===!0,childrenIndex:m,route:f};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(l)&&g)return;et(b.relativePath.startsWith(l),`Absolute route path "${b.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(l.length)}let v=Vn([l,b.relativePath]),x=a.concat(b);f.children&&f.children.length>0&&(et(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Ab(f.children,r,x,v,g)),!(f.path==null&&!f.index)&&r.push({path:v,score:l3(v,f.index),routesMeta:x})};return t.forEach((f,m)=>{var g;if(f.path===""||!((g=f.path)!=null&&g.includes("?")))c(f,m);else for(let h of _b(f.path))c(f,m,!0,h)}),r}function _b(t){let r=t.split("/");i
|
||
|
|
|
||
|
|
Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let b=On(),v;if(r){let N=typeof r=="string"?ol(r):r;et(g==="/"||((j=N.pathname)==null?void 0:j.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${N.pathname}" was given in the \`location\` prop.`),v=N}else v=b;let x=v.pathname||"/",C=x;if(g!=="/"){let N=g.replace(/^\//,"").split("/");C="/"+x.replace(/^\//,"").split("/").slice(N.length).join("/")}let E=a&&a.state.matches.length?a.state.matches.map(N=>Object.assign(N,{route:a.manifest[N.route.id]||N.route})):Tb(t,{pathname:C});kn(h||E!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),kn(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=P3(E&&E.map(N=>Object.assign({},N,{params:Object.assign({},f,N.params),pathname:Vn([g,l.encodeLocation?l.encodeLocation(N.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?g:Vn([g,l.encodeLocation?l.encodeLocation(N.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),s,a);return r&&w?d.createElement(zs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...v},navigationType:"POP"}},w):w}function O3(){let t=I3(),r=y3(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),a=t instanceof Error?t.stack:null,l="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:l},c={padding:"2px 4px",backgroundColor:l},f=null;return console.error("Error handled by React Router default ErrorBoundary:",t),f=d.createElement(d.Fragment,null,d.createElement("p",null,"💿 Hey developer 👋"),d.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",d.createElement("code",{style:c},"ErrorBoundary")," or"," ",d.createElement("code",{style:c},"errorElement")," prop on your route.")),d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},r),a?d.createElement("pre",{style:s},a):null,f)}var D3=d.createElement(O3,null),Hb=class extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){this.props.onError?this.props.onError(t,r):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const a=R3(t.digest);a&&(t=a)}let r=t!==void 0?d.createElement(Fn.Provider,{value:this.props.routeContext},d.createElement(ip.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?d.createElement(L3,{error:t},r):r}};Hb.contextType=Lb;var am=new WeakMap;function L3({children:t,error:r}){let{basename:a}=d.useContext(hn);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let l=j3(r.digest);if(l){let s=am.get(r);if(s)throw s;let c=Ob(l.location,a);if(kb&&!am.get(r))if(c.isExternal||l.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:l.replace}));throw am.
|
||
|
|
.`.concat(pR,` {
|
||
|
|
overflow: hidden `).concat(l,`;
|
||
|
|
padding-right: `).concat(m,"px ").concat(l,`;
|
||
|
|
}
|
||
|
|
body[`).concat(Jo,`] {
|
||
|
|
overflow: hidden `).concat(l,`;
|
||
|
|
overscroll-behavior: contain;
|
||
|
|
`).concat([r&&"position: relative ".concat(l,";"),a==="margin"&&`
|
||
|
|
padding-left: `.concat(s,`px;
|
||
|
|
padding-top: `).concat(c,`px;
|
||
|
|
padding-right: `).concat(f,`px;
|
||
|
|
margin-left:0;
|
||
|
|
margin-top:0;
|
||
|
|
margin-right: `).concat(m,"px ").concat(l,`;
|
||
|
|
`),a==="padding"&&"padding-right: ".concat(m,"px ").concat(l,";")].filter(Boolean).join(""),`
|
||
|
|
}
|
||
|
|
|
||
|
|
.`).concat(Mc,` {
|
||
|
|
right: `).concat(m,"px ").concat(l,`;
|
||
|
|
}
|
||
|
|
|
||
|
|
.`).concat(kc,` {
|
||
|
|
margin-right: `).concat(m,"px ").concat(l,`;
|
||
|
|
}
|
||
|
|
|
||
|
|
.`).concat(Mc," .").concat(Mc,` {
|
||
|
|
right: 0 `).concat(l,`;
|
||
|
|
}
|
||
|
|
|
||
|
|
.`).concat(kc," .").concat(kc,` {
|
||
|
|
margin-right: 0 `).concat(l,`;
|
||
|
|
}
|
||
|
|
|
||
|
|
body[`).concat(Jo,`] {
|
||
|
|
`).concat(hR,": ").concat(m,`px;
|
||
|
|
}
|
||
|
|
`)},Q1=function(){var t=parseInt(document.body.getAttribute(Jo)||"0",10);return isFinite(t)?t:0},DR=function(){d.useEffect(function(){return document.body.setAttribute(Jo,(Q1()+1).toString()),function(){var t=Q1()-1;t<=0?document.body.removeAttribute(Jo):document.body.setAttribute(Jo,t.toString())}},[])},LR=function(t){var r=t.noRelative,a=t.noImportant,l=t.gapMode,s=l===void 0?"margin":l;DR();var c=d.useMemo(function(){return MR(s)},[s]);return d.createElement(kR,{styles:OR(c,!r,s,a?"":"!important")})},Pm=!1;if(typeof window<"u")try{var wc=Object.defineProperty({},"passive",{get:function(){return Pm=!0,!0}});window.addEventListener("test",wc,wc),window.removeEventListener("test",wc,wc)}catch{Pm=!1}var Go=Pm?{passive:!1}:!1,zR=function(t){return t.tagName==="TEXTAREA"},mx=function(t,r){if(!(t instanceof Element))return!1;var a=window.getComputedStyle(t);return a[r]!=="hidden"&&!(a.overflowY===a.overflowX&&!zR(t)&&a[r]==="visible")},PR=function(t){return mx(t,"overflowY")},BR=function(t){return mx(t,"overflowX")},J1=function(t,r){var a=r.ownerDocument,l=r;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var s=px(t,l);if(s){var c=hx(t,l),f=c[1],m=c[2];if(f>m)return!0}l=l.parentNode}while(l&&l!==a.body);return!1},$R=function(t){var r=t.scrollTop,a=t.scrollHeight,l=t.clientHeight;return[r,a,l]},UR=function(t){var r=t.scrollLeft,a=t.scrollWidth,l=t.clientWidth;return[r,a,l]},px=function(t,r){return t==="v"?PR(r):BR(r)},hx=function(t,r){return t==="v"?$R(r):UR(r)},HR=function(t,r){return t==="h"&&r==="rtl"?-1:1},IR=function(t,r,a,l,s){var c=HR(t,window.getComputedStyle(r).direction),f=c*l,m=a.target,g=r.contains(m),h=!1,b=f>0,v=0,x=0;do{if(!m)break;var C=hx(t,m),E=C[0],w=C[1],j=C[2],N=w-j-c*E;(E||N)&&px(t,m)&&(v+=N,x+=E);var _=m.parentNode;m=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!g&&m!==document.body||g&&(r.contains(m)||r===m));return(b&&Math.abs(v)<1||!b&&Math.abs(x)<1)&&(h=!0),h},Ec=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},eb=function(t){return[t.deltaX,t.deltaY]},tb=function(t){return t&&"current"in t?t.current:t},VR=function(t,r){return t[0]===r[0]&&t[1]===r[1]},GR=function(t){return`
|
||
|
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
||
|
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
||
|
|
`)},YR=0,Yo=[];function FR(t){var r=d.useRef([]),a=d.useRef([0,0]),l=d.useRef(),s=d.useState(YR++)[0],c=d.useState(fx)[0],f=d.useRef(t);d.useEffect(function(){f.current=t},[t]),d.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var w=mR([t.lockRef.current],(t.shards||[]).map(tb),!0).filter(Boolean);return w.forEach(function(j){return j.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),w.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var m=d.useCallback(function(w,j){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!f.current.allowPinchZoom;var N=Ec(w),_=a.current,A="deltaX"in w?w.deltaX:_[0]-N[0],T="deltaY"in w?w.deltaY:_[1]-N[1],z,P=w.target,B=Math.abs(A)>Math.abs(T)?"h":"v";if("touches"in w&&B==="h"&&P.type==="range")return!1;var U=window.getSelection(),Y=U&&U.anchorNode,se=Y?Y===P||Y.contains(P):!1;if(se)return!1;var te=J1(B,P);if(!te)return!0;if(te?z=B:(z=B==="v"?"h":"v",te=J1(B,P)),!te)return!1;if(!l.current&&"changedTouches"in w&&(A||T)&&(l.current=z),!z)return!0;var ce=l.current||z;return IR(ce,j,w,ce==="h"?A:T)},[]),g=d.useCallback(function(w){var j=w;if(!(!Yo.length||Yo[Yo.length-1]!==c)){var N="deltaY"in j?eb(j):Ec(j),_=r.current.filter(function(z){return z.name===j.type&&(z.target===j.target||j.target===z.shadowParent)&&VR(z.delta,N)})[0];if(_&&_.should){j.cancelable&&j.preventDefault();return}if(!_){var A=(f.current.shards||[]).map(tb).filter(Boolean).filter(function(z){return z.contains(j.target)}),T=A.length>0?m(j,A[0]):!f.current.noIsolation;T&&j.cancelable&&j.preventDefault()}}},[]),h=d.useCallback(function(w,j,N,_){var A={name:w,delta:j,target:N,should:_,shadowParent:WR(N)};r.current.push(A),setTimeout(function(){r.current=r.current.filter(function(T){return T!==A})},1)},[]),b=d.useCallback(function(w){a.current=Ec(w),l.current=void 0},[]),v=d.useCallback(function(w){h(w.type,eb(w),w.target,m(w,t.lockRef.current))},[]),x=d.useCallback(function(w){h(w.type,Ec(w),w.target,m(w,t.lockRef.current))},[]);d.useEffect(function(){return Yo.push(c),t.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:x}),document.addEventListener("wheel",g,Go),document.addEventListener("touchmove",g,Go),document.addEventListener("touchstart",b,Go),function(){Yo=Yo.filter(function(w){return w!==c}),document.removeEventListener("wheel",g,Go),document.removeEventListener("touchmove",g,Go),document.removeEventListener("touchstart",b,Go)}},[]);var C=t.removeScrollBar,E=t.inert;return d.createElement(d.Fragment,null,E?d.createElement(c,{styles:GR(s)}):null,C?d.createElement(LR,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function WR(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const qR=CR(dx,FR);var Gs=d.forwardRef(function(t,r){return d.createElement(mu,nr({},t,{ref:r,sideCar:qR}))});Gs.classNames=mu.classNames;var Bm=["Enter"," "],XR=["ArrowDown","PageUp","Home"],gx=["ArrowUp","PageDown","End"],KR=[...XR,...gx],ZR={ltr:[...Bm,"ArrowRight"],rtl:[...Bm,"ArrowLeft"]},QR={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ys="Menu",[js,JR,e9]=Tp(Ys),[Ja,vx]=hj(Ys,[e9,fa,du]),pu=fa(),yx=du(),[t9,eo]=Ja(Ys),[n9,Fs]=Ja(Ys),bx=t=>{const{__scopeMenu:r,open:a=!1,children:l,dir:s,onOpenChange:c,modal:f=!0}=t,m=pu(r),[g,h]=d.useState(null),b=d.useRef(!1),v=Et(c),x=Bs(s);return d.useEffect(()=>{const C=()=>{b.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>b.current=!1;return document.addEventListener("keydown",C,{capture:!0}),()=>{document.removeEventListener("keydown",C,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),u.jsx(iu,{...m,children:u.jsx(t9,{scope:r,open:a,onOpenChange:v,content:g,onContentChange:h,children:u.jsx(n9,{scope:r,onClose:d.useCallback(()=>v(!1),[v]),isUsingKey
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const c2=(...t)=>t.filter((r,a,l)=>!!r&&r.trim()!==""&&l.indexOf(r)===a).join(" ").trim();/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const aT=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const oT=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,a,l)=>l?l.toUpperCase():a.toLowerCase());/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const rb=t=>{const r=oT(t);return r.charAt(0).toUpperCase()+r.slice(1)};/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/var ym={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const lT=t=>{for(const r in t)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},sT=d.createContext({}),iT=()=>d.useContext(sT),cT=d.forwardRef(({color:t,size:r,strokeWidth:a,absoluteStrokeWidth:l,className:s="",children:c,iconNode:f,...m},g)=>{const{size:h=24,strokeWidth:b=2,absoluteStrokeWidth:v=!1,color:x="currentColor",className:C=""}=iT()??{},E=l??v?Number(a??b)*24/Number(r??h):a??b;return d.createElement("svg",{ref:g,...ym,width:r??h??ym.width,height:r??h??ym.height,stroke:t??x,strokeWidth:E,className:c2("lucide",C,s),...!c&&!lT(m)&&{"aria-hidden":"true"},...m},[...f.map(([w,j])=>d.createElement(w,j)),...Array.isArray(c)?c:[c]])});/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const ma=(t,r)=>{const a=d.forwardRef(({className:l,...s},c)=>d.createElement(cT,{ref:c,iconNode:r,className:c2(`lucide-${aT(rb(t))}`,`lucide-${t}`,l),...s}));return a.displayName=rb(t),a};/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const uT=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],u2=ma("check",uT);/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const dT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],d2=ma("chevron-down",dT);/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const fT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],mT=ma("chevron-right",fT);/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const pT=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],hT=ma("chevron-up",pT);/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const gT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],vT=ma("circle",gT);/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const yT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],bT=ma("panel-left",yT);/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const xT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ST=ma("search",xT);/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const CT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],f2=ma("x",CT),Gp=tT,Yp=nT,wT=d.forwardRef(({className:t,inset:r,children:a,...l},s)=>u.jsxs(s2,{ref:s,className:le("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",r&&"pl-8",t),...l,children:[a,u.jsx(mT,{className:"ml-auto"})]}));wT.displayName=s2.displayName;const ET=d.forwardRef(({className:t,...r},a)=>u.jsx(i2,{ref:a,className:le("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",t),...r}));ET.displayName=i2.displayName;const vu=d.forwardRef(({className:t,sideOffset:r=4,...a},l)=>u.jsx(rT,{children:u.jsx(e2,{ref:l,sideOffset:r,className:le("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",t),...a})}));vu.displayName=e2.displayName;const Ts=d.forwardRef(({className:t,inset:r,...a},l)=>u.jsx(n2,{ref:l,className:le("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",r&&"pl-8",t),...a}));Ts.displayName=n2.displayName;const NT=d.forwardRef(({className:t,children:r,checked:a,...l},s)=>u.jsxs(r2,{ref:s,className:le("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:a,...l,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(o2,{children:u.jsx(u2,{className:"h-4 w-4"})})}),r]}));NT.displayName=r2.displayName;const jT=d.forwardRef(({className:t,children:r,...a},l)=>u.jsxs(a2,{ref:l,className:le("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...a,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(o2,{children:u.jsx(vT,{className:"h-2 w-2 fill-current"})})}),r]}));jT.displayName=a2.displayName;const Fp=d.forwardRef(({className:t,inset:r,...a},l)=>u.jsx(t2,{ref:l,className:le("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",t),...a}));Fp.displayName=t2.displayName;const Fc=d.forwardRef(({className:t,...r},a)=>u.jsx(l2,{ref:a,className:le("-mx-1 my-1 h-px bg-muted",t),...r}));Fc.displayName=l2.displayName;const bm=768;function RT(){const[t,r]=d.useState(void 0);return d.useEffect(()=>{const a=window.matchMedia(`(max-width: ${bm-1}px)`),l=()=>{r(window.innerWidth<bm)};return a.addEventListener("change",l),r(window.innerWidth<bm),()=>a.removeEventListener("change",l)},[]),!!t}const Bt=d.forwardRef(({className:t,type:r,...a},l)=>u.jsx("input",{type:r,className:le("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base sha
|
||
|
|
|
||
|
|
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
||
|
|
|
||
|
|
For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return d.useEffect(()=>{t&&(document.getElementById(t)||console.error(a))},[a,t]),null},XT="DialogDescriptionWarning",KT=({contentRef:t,descriptionId:r})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${M2(XT).contentName}}.`;return d.useEffect(()=>{var c;const s=(c=t.current)==null?void 0:c.getAttribute("aria-describedby");r&&s&&(document.getElementById(r)||console.warn(l))},[l,t,r]),null},Kp=y2,Zp=S2,qs=C2,Xs=w2,bu=N2,xu=R2,k2=A2;const ZT=Kp,QT=Zp,O2=d.forwardRef(({className:t,...r},a)=>u.jsx(qs,{className:le("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r,ref:a}));O2.displayName=qs.displayName;const JT=ul("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),D2=d.forwardRef(({side:t="right",className:r,children:a,...l},s)=>u.jsxs(QT,{children:[u.jsx(O2,{}),u.jsxs(Xs,{ref:s,className:le(JT({side:t}),r),...l,children:[u.jsxs(k2,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[u.jsx(f2,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]}),a]})]}));D2.displayName=Xs.displayName;const L2=({className:t,...r})=>u.jsx("div",{className:le("flex flex-col space-y-2 text-center sm:text-left",t),...r});L2.displayName="SheetHeader";const z2=d.forwardRef(({className:t,...r},a)=>u.jsx(bu,{ref:a,className:le("text-lg font-semibold text-foreground",t),...r}));z2.displayName=bu.displayName;const P2=d.forwardRef(({className:t,...r},a)=>u.jsx(xu,{ref:a,className:le("text-sm text-muted-foreground",t),...r}));P2.displayName=xu.displayName;function ct({className:t,...r}){return u.jsx("div",{className:le("animate-pulse rounded-md bg-primary/10",t),...r})}function eA(t,r=[]){let a=[];function l(c,f){const m=d.createContext(f),g=a.length;a=[...a,f];const h=v=>{var N;const{scope:x,children:C,...E}=v,w=((N=x==null?void 0:x[t])==null?void 0:N[g])||m,j=d.useMemo(()=>E,Object.values(E));return u.jsx(w.Provider,{value:j,children:C})};h.displayName=c+"Provider";function b(v,x){var w;const C=((w=x==null?void 0:x[t])==null?void 0:w[g])||m,E=d.useContext(C);if(E)return E;if(f!==void 0)return f;throw new Error(`\`${v}\` must be used within \`${c}\``)}return[h,b]}const s=()=>{const c=a.map(f=>d.createContext(f));return function(m){const g=(m==null?void 0:m[t])||c;return d.useMemo(()=>({[`__scope${t}`]:{...m,[t]:g}}),[m,g])}};return s.scopeName=t,[l,tA(s,...r)]}function tA(...t){const r=t[0];if(t.length===1)return r;const a=()=>{const l=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(c){const f=l.reduce((m,{useScope:g,scopeName:h})=>{const v=g(c)[`__scope${h}`];return{...m,...v}},{});return d.useMemo(()=>({[`__scope${r.scopeName}`]:f}),[f])}};return a.scopeName=r.scopeName,a}function nA(t){const r=rA(t),a=d.forwardRef((l,s)=>{const{children:c,...f}=l,m=d.Children.toArray(c),g=m.find(oA);if(g){const h=g.props.children,b=m.map(v=>v===g?d.Children.count(h)>1?d.Children.only(null):d.isValidElement(h)?h.props.children:null:v);return u.jsx(r,{...f,ref:s,children:d.isValidElement(h)?d.cloneElement(h,void 0,b):nul
|
||
|
|
* @license React
|
||
|
|
* use-sync-external-store-shim.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var cb;function c_(){if(cb)return Em;cb=1;var t=Zc();function r(v,x){return v===x&&(v!==0||1/v===1/x)||v!==v&&x!==x}var a=typeof Object.is=="function"?Object.is:r,l=t.useState,s=t.useEffect,c=t.useLayoutEffect,f=t.useDebugValue;function m(v,x){var C=x(),E=l({inst:{value:C,getSnapshot:x}}),w=E[0].inst,j=E[1];return c(function(){w.value=C,w.getSnapshot=x,g(w)&&j({inst:w})},[v,C,x]),s(function(){return g(w)&&j({inst:w}),v(function(){g(w)&&j({inst:w})})},[v]),f(C),C}function g(v){var x=v.getSnapshot;v=v.value;try{var C=x();return!a(v,C)}catch{return!0}}function h(v,x){return x()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:m;return Em.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:b,Em}var ub;function u_(){return ub||(ub=1,wm.exports=c_()),wm.exports}var d_=u_();function f_(){return d_.useSyncExternalStore(m_,()=>!0,()=>!1)}function m_(){return()=>{}}var th="Avatar",[p_]=s_(th),[h_,jS]=p_(th),RS=d.forwardRef((t,r)=>{const{__scopeAvatar:a,...l}=t,[s,c]=d.useState("idle");return u.jsx(h_,{scope:a,imageLoadingStatus:s,onImageLoadingStatusChange:c,children:u.jsx(gn.span,{...l,ref:r})})});RS.displayName=th;var TS="AvatarImage",AS=d.forwardRef((t,r)=>{const{__scopeAvatar:a,src:l,onLoadingStatusChange:s=()=>{},...c}=t,f=jS(TS,a),m=g_(l,c),g=Et(h=>{s(h),f.onImageLoadingStatusChange(h)});return gt(()=>{m!=="idle"&&g(m)},[m,g]),m==="loaded"?u.jsx(gn.img,{...c,ref:r,src:l}):null});AS.displayName=TS;var _S="AvatarFallback",MS=d.forwardRef((t,r)=>{const{__scopeAvatar:a,delayMs:l,...s}=t,c=jS(_S,a),[f,m]=d.useState(l===void 0);return d.useEffect(()=>{if(l!==void 0){const g=window.setTimeout(()=>m(!0),l);return()=>window.clearTimeout(g)}},[l]),f&&c.imageLoadingStatus!=="loaded"?u.jsx(gn.span,{...s,ref:r}):null});MS.displayName=_S;function db(t,r){return t?r?(t.src!==r&&(t.src=r),t.complete&&t.naturalWidth>0?"loaded":"loading"):"error":"idle"}function g_(t,{referrerPolicy:r,crossOrigin:a}){const l=f_(),s=d.useRef(null),c=l?(s.current||(s.current=new window.Image),s.current):null,[f,m]=d.useState(()=>db(c,t));return gt(()=>{m(db(c,t))},[c,t]),gt(()=>{const g=v=>()=>{m(v)};if(!c)return;const h=g("loaded"),b=g("error");return c.addEventListener("load",h),c.addEventListener("error",b),r&&(c.referrerPolicy=r),typeof a=="string"&&(c.crossOrigin=a),()=>{c.removeEventListener("load",h),c.removeEventListener("error",b)}},[c,a,r]),f}var kS=RS,OS=AS,DS=MS;const _s=d.forwardRef(({className:t,...r},a)=>u.jsx(kS,{ref:a,className:le("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...r}));_s.displayName=kS.displayName;const Ms=d.forwardRef(({className:t,...r},a)=>u.jsx(OS,{ref:a,className:le("aspect-square h-full w-full",t),...r}));Ms.displayName=OS.displayName;const ks=d.forwardRef(({className:t,...r},a)=>u.jsx(DS,{ref:a,className:le("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...r}));ks.displayName=DS.displayName;const LS=d.createContext(null);function v_({children:t}){const[r,a]=d.useState([]),[l,s]=d.useState(0),[c,f]=d.useState(!0),m=d.useCallback(async()=>{try{const v=await Ue.getNotifications();v.data&&(a(v.data.items),s(v.data.unreadCount))}catch{}finally{f(!1)}},[]),g=d.useCallback(async()=>{var v;try{const x=await Ue.markNotificationsRead("all");a(C=>C.map(E=>({...E,read:!0}))),s(((v=x.data)==null?void 0:v.unreadCount)??0)}catch{}},[]),h=d.useCallback(async v=>{var x;try{const C=await Ue.dismissNotification(v);a(E=>E.filter(w=>w.id!==v)),s(((x=C.data)==null?void 0:x.unreadCount)??0)}catch{}},[]);d.useEffect(()=>{m();const v=setInterval(m,3e4);return()=>clearInterval(v)},[m]);const b=d.useMemo(()=>({items:r,unreadCount:l,loading:c,refresh:m,markAllRead:g,dismiss:h}),[r,l,c,m,g,h]);return u.jsx(LS.Provider,{value:b,children:t})}function y_(){const t=d.useContext(LS);if(!t)throw new Error("useNotifications must be used within NotificationsProvider");return t}const b_=ul("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus
|