@queuedash/client 3.13.0 → 3.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +24 -24
- package/dist/main.mjs +8836 -8632
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function F6(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(r,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function d2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var f2={exports:{}},Id={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var q6=Symbol.for("react.transitional.element"),V6=Symbol.for("react.fragment");function h2(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:q6,type:e,key:r,ref:t!==void 0?t:null,props:n}}Id.Fragment=V6;Id.jsx=h2;Id.jsxs=h2;f2.exports=Id;var p1=f2.exports,p2={exports:{}},Xd={},m2={exports:{}},g2={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* scheduler.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/(function(e){function t(T,
|
|
17
|
+
*/(function(e){function t(T,L){var K=T.length;T.push(L);e:for(;0<K;){var V=K-1>>>1,D=T[V];if(0<a(D,L))T[V]=L,T[K]=D,K=V;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var L=T[0],K=T.pop();if(K!==L){T[0]=K;e:for(var V=0,D=T.length,z=D>>>1;V<z;){var k=2*(V+1)-1,P=T[k],B=k+1,Y=T[B];if(0>a(P,K))B<D&&0>a(Y,P)?(T[V]=Y,T[B]=K,V=B):(T[V]=P,T[k]=K,V=k);else if(B<D&&0>a(Y,K))T[V]=Y,T[B]=K,V=B;else break e}}return L}function a(T,L){var K=T.sortIndex-L.sortIndex;return K!==0?K:T.id-L.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,o=i.now();e.unstable_now=function(){return i.now()-o}}var s=[],u=[],f=1,c=null,d=3,h=!1,m=!1,v=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function S(T){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=T)r(u),L.sortIndex=L.expirationTime,t(s,L);else break;L=n(u)}}function C(T){if(v=!1,S(T),!m)if(n(s)!==null)m=!0,E||(E=!0,F());else{var L=n(u);L!==null&&_(C,L.startTime-T)}}var E=!1,M=-1,N=5,j=-1;function A(){return y?!0:!(e.unstable_now()-j<N)}function U(){if(y=!1,E){var T=e.unstable_now();j=T;var L=!0;try{e:{m=!1,v&&(v=!1,g(M),M=-1),h=!0;var K=d;try{t:{for(S(T),c=n(s);c!==null&&!(c.expirationTime>T&&A());){var V=c.callback;if(typeof V=="function"){c.callback=null,d=c.priorityLevel;var D=V(c.expirationTime<=T);if(T=e.unstable_now(),typeof D=="function"){c.callback=D,S(T),L=!0;break t}c===n(s)&&r(s),S(T)}else r(s);c=n(s)}if(c!==null)L=!0;else{var z=n(u);z!==null&&_(C,z.startTime-T),L=!1}}break e}finally{c=null,d=K,h=!1}L=void 0}}finally{L?F():E=!1}}}var F;if(typeof x=="function")F=function(){x(U)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,Q=G.port2;G.port1.onmessage=U,F=function(){Q.postMessage(null)}}else F=function(){b(U,0)};function _(T,L){M=b(function(){T(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function(T){switch(d){case 1:case 2:case 3:var L=3;break;default:L=d}var K=d;d=L;try{return T()}finally{d=K}},e.unstable_requestPaint=function(){y=!0},e.unstable_runWithPriority=function(T,L){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var K=d;d=T;try{return L()}finally{d=K}},e.unstable_scheduleCallback=function(T,L,K){var V=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?V+K:V):K=V,T){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=K+D,T={id:f++,callback:L,priorityLevel:T,startTime:K,expirationTime:D,sortIndex:-1},K>V?(T.sortIndex=K,t(u,T),n(s)===null&&T===n(u)&&(v?(g(M),M=-1):v=!0,_(C,K-V))):(T.sortIndex=D,t(s,T),m||h||(m=!0,E||(E=!0,F()))),T},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(T){var L=d;return function(){var K=d;d=L;try{return T.apply(this,arguments)}finally{d=K}}}})(g2);m2.exports=g2;var G6=m2.exports,v2={exports:{}},ne={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* react.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var
|
|
25
|
+
*/var hm=Symbol.for("react.transitional.element"),Q6=Symbol.for("react.portal"),I6=Symbol.for("react.fragment"),X6=Symbol.for("react.strict_mode"),Y6=Symbol.for("react.profiler"),Z6=Symbol.for("react.consumer"),W6=Symbol.for("react.context"),$6=Symbol.for("react.forward_ref"),J6=Symbol.for("react.suspense"),ew=Symbol.for("react.memo"),b2=Symbol.for("react.lazy"),tw=Symbol.for("react.activity"),m1=Symbol.iterator;function nw(e){return e===null||typeof e!="object"?null:(e=m1&&e[m1]||e["@@iterator"],typeof e=="function"?e:null)}var y2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x2=Object.assign,w2={};function Fi(e,t,n){this.props=e,this.context=t,this.refs=w2,this.updater=n||y2}Fi.prototype.isReactComponent={};Fi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Fi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function S2(){}S2.prototype=Fi.prototype;function pm(e,t,n){this.props=e,this.context=t,this.refs=w2,this.updater=n||y2}var mm=pm.prototype=new S2;mm.constructor=pm;x2(mm,Fi.prototype);mm.isPureReactComponent=!0;var g1=Array.isArray;function Ch(){}var je={H:null,A:null,T:null,S:null},C2=Object.prototype.hasOwnProperty;function gm(e,t,n){var r=n.ref;return{$$typeof:hm,type:e,key:t,ref:r!==void 0?r:null,props:n}}function rw(e,t){return gm(e.type,t,e.props)}function vm(e){return typeof e=="object"&&e!==null&&e.$$typeof===hm}function aw(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var v1=/\/+/g;function Uf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?aw(""+e.key):t.toString(36)}function lw(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Ch,Ch):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Gl(e,t,n,r,a){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(l){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case hm:case Q6:i=!0;break;case b2:return i=e._init,Gl(i(e._payload),t,n,r,a)}}if(i)return a=a(e),i=r===""?"."+Uf(e,0):r,g1(a)?(n="",i!=null&&(n=i.replace(v1,"$&/")+"/"),Gl(a,t,n,"",function(u){return u})):a!=null&&(vm(a)&&(a=rw(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(v1,"$&/")+"/")+i)),t.push(a)),1;i=0;var o=r===""?".":r+":";if(g1(e))for(var s=0;s<e.length;s++)r=e[s],l=o+Uf(r,s),i+=Gl(r,t,n,l,a);else if(s=nw(e),typeof s=="function")for(e=s.call(e),s=0;!(r=e.next()).done;)r=r.value,l=o+Uf(r,s++),i+=Gl(r,t,n,l,a);else if(l==="object"){if(typeof e.then=="function")return Gl(lw(e),t,n,r,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function Eu(e,t,n){if(e==null)return e;var r=[],a=0;return Gl(e,r,"","",function(l){return t.call(n,l,a++)}),r}function iw(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var b1=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ow={map:Eu,forEach:function(e,t,n){Eu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Eu(e,function(){t++}),t},toArray:function(e){return Eu(e,function(t){return t})||[]},only:function(e){if(!vm(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Activity=tw;ne.Children=ow;ne.Component=Fi;ne.Fragment=I6;ne.Profiler=Y6;ne.PureComponent=pm;ne.StrictMode=X6;ne.Suspense=J6;ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=je;ne.__COMPILER_RUNTIME={__proto__:null,c:function(e){return je.H.useMemoCache(e)}};ne.cache=function(e){return function(){return e.apply(null,arguments)}};ne.cacheSignal=function(){return null};ne.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=x2({},e.props),a=e.key;if(t!=null)for(l in t.key!==void 0&&(a=""+t.key),t)!C2.call(t,l)||l==="key"||l==="__self"||l==="__source"||l==="ref"&&t.ref===void 0||(r[l]=t[l]);var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){for(var i=Array(l),o=0;o<l;o++)i[o]=arguments[o+2];r.children=i}return gm(e.type,a,r)};ne.createContext=function(e){return e={$$typeof:W6,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Z6,_context:e},e};ne.createElement=function(e,t,n){var r,a={},l=null;if(t!=null)for(r in t.key!==void 0&&(l=""+t.key),t)C2.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(a[r]=t[r]);var i=arguments.length-2;if(i===1)a.children=n;else if(1<i){for(var o=Array(i),s=0;s<i;s++)o[s]=arguments[s+2];a.children=o}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)a[r]===void 0&&(a[r]=i[r]);return gm(e,l,a)};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:$6,render:e}};ne.isValidElement=vm;ne.lazy=function(e){return{$$typeof:b2,_payload:{_status:-1,_result:e},_init:iw}};ne.memo=function(e,t){return{$$typeof:ew,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=je.T,n={};je.T=n;try{var r=e(),a=je.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(Ch,b1)}catch(l){b1(l)}finally{t!==null&&n.types!==null&&(t.types=n.types),je.T=t}};ne.unstable_useCacheRefresh=function(){return je.H.useCacheRefresh()};ne.use=function(e){return je.H.use(e)};ne.useActionState=function(e,t,n){return je.H.useActionState(e,t,n)};ne.useCallback=function(e,t){return je.H.useCallback(e,t)};ne.useContext=function(e){return je.H.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e,t){return je.H.useDeferredValue(e,t)};ne.useEffect=function(e,t){return je.H.useEffect(e,t)};ne.useEffectEvent=function(e){return je.H.useEffectEvent(e)};ne.useId=function(){return je.H.useId()};ne.useImperativeHandle=function(e,t,n){return je.H.useImperativeHandle(e,t,n)};ne.useInsertionEffect=function(e,t){return je.H.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return je.H.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return je.H.useMemo(e,t)};ne.useOptimistic=function(e,t){return je.H.useOptimistic(e,t)};ne.useReducer=function(e,t,n){return je.H.useReducer(e,t,n)};ne.useRef=function(e){return je.H.useRef(e)};ne.useState=function(e){return je.H.useState(e)};ne.useSyncExternalStore=function(e,t,n){return je.H.useSyncExternalStore(e,t,n)};ne.useTransition=function(){return je.H.useTransition()};ne.version="19.2.3";v2.exports=ne;var p=v2.exports;const O=d2(p),E2=F6({__proto__:null,default:O},[p]);var M2={exports:{}},Et={};/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.js
|
|
28
28
|
*
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var
|
|
33
|
+
*/var sw=p;function O2(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ar(){}var Ct={d:{f:Ar,r:function(){throw Error(O2(522))},D:Ar,C:Ar,L:Ar,m:Ar,X:Ar,S:Ar,M:Ar},p:0,findDOMNode:null},uw=Symbol.for("react.portal");function cw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:uw,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var Jo=sw.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Yd(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ct;Et.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(O2(299));return cw(e,t,null,n)};Et.flushSync=function(e){var t=Jo.T,n=Ct.p;try{if(Jo.T=null,Ct.p=2,e)return e()}finally{Jo.T=t,Ct.p=n,Ct.d.f()}};Et.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Ct.d.C(e,t))};Et.prefetchDNS=function(e){typeof e=="string"&&Ct.d.D(e)};Et.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=Yd(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,l=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Ct.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:l}):n==="script"&&Ct.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:l,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Et.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Yd(t.as,t.crossOrigin);Ct.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Ct.d.M(e)};Et.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=Yd(n,t.crossOrigin);Ct.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Et.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Yd(t.as,t.crossOrigin);Ct.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Ct.d.m(e)};Et.requestFormReset=function(e){Ct.d.r(e)};Et.unstable_batchedUpdates=function(e,t){return e(t)};Et.useFormState=function(e,t,n){return Jo.H.useFormState(e,t,n)};Et.useFormStatus=function(){return Jo.H.useHostTransitionStatus()};Et.version="19.2.3";function R2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(R2)}catch(e){console.error(e)}}R2(),M2.exports=Et;var Ws=M2.exports;const bm=d2(Ws);/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-dom-client.production.js
|
|
36
36
|
*
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var
|
|
41
|
+
*/var tt=G6,k2=p,dw=Ws;function H(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function T2(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function $s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function D2(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function j2(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y1(e){if($s(e)!==e)throw Error(H(188))}function fw(e){var t=e.alternate;if(!t){if(t=$s(e),t===null)throw Error(H(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var l=a.alternate;if(l===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===l.child){for(l=a.child;l;){if(l===n)return y1(a),e;if(l===r)return y1(a),t;l=l.sibling}throw Error(H(188))}if(n.return!==r.return)n=a,r=l;else{for(var i=!1,o=a.child;o;){if(o===n){i=!0,n=a,r=l;break}if(o===r){i=!0,r=a,n=l;break}o=o.sibling}if(!i){for(o=l.child;o;){if(o===n){i=!0,n=l,r=a;break}if(o===r){i=!0,r=l,n=a;break}o=o.sibling}if(!i)throw Error(H(189))}}if(n.alternate!==r)throw Error(H(190))}if(n.tag!==3)throw Error(H(188));return n.stateNode.current===n?e:t}function N2(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=N2(e),t!==null)return t;e=e.sibling}return null}var Ne=Object.assign,hw=Symbol.for("react.element"),Mu=Symbol.for("react.transitional.element"),Vo=Symbol.for("react.portal"),$l=Symbol.for("react.fragment"),A2=Symbol.for("react.strict_mode"),Eh=Symbol.for("react.profiler"),L2=Symbol.for("react.consumer"),pr=Symbol.for("react.context"),ym=Symbol.for("react.forward_ref"),Mh=Symbol.for("react.suspense"),Oh=Symbol.for("react.suspense_list"),xm=Symbol.for("react.memo"),Br=Symbol.for("react.lazy"),Rh=Symbol.for("react.activity"),pw=Symbol.for("react.memo_cache_sentinel"),x1=Symbol.iterator;function uo(e){return e===null||typeof e!="object"?null:(e=x1&&e[x1]||e["@@iterator"],typeof e=="function"?e:null)}var mw=Symbol.for("react.client.reference");function kh(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===mw?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $l:return"Fragment";case Eh:return"Profiler";case A2:return"StrictMode";case Mh:return"Suspense";case Oh:return"SuspenseList";case Rh:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Vo:return"Portal";case pr:return e.displayName||"Context";case L2:return(e._context.displayName||"Context")+".Consumer";case ym:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xm:return t=e.displayName||null,t!==null?t:kh(e.type)||"Memo";case Br:t=e._payload,e=e._init;try{return kh(e(t))}catch{}}return null}var Go=Array.isArray,J=k2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve=dw.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,el={pending:!1,data:null,method:null,action:null},Th=[],Jl=-1;function Wn(e){return{current:e}}function ot(e){0>Jl||(e.current=Th[Jl],Th[Jl]=null,Jl--)}function ke(e,t){Jl++,Th[Jl]=e.current,e.current=t}var Zn=Wn(null),Ss=Wn(null),ra=Wn(null),Fc=Wn(null);function qc(e,t){switch(ke(ra,t),ke(Ss,e),ke(Zn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ov(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ov(t),e=e8(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ot(Zn),ke(Zn,e)}function Ci(){ot(Zn),ot(Ss),ot(ra)}function Dh(e){e.memoizedState!==null&&ke(Fc,e);var t=Zn.current,n=e8(t,e.type);t!==n&&(ke(Ss,e),ke(Zn,n))}function Vc(e){Ss.current===e&&(ot(Zn),ot(Ss)),Fc.current===e&&(ot(Fc),As._currentValue=el)}var Bf,w1;function Qa(e){if(Bf===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Bf=t&&t[1]||"",w1=-1<n.stack.indexOf(`
|
|
42
42
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Bf+e+
|
|
43
|
+
`+Bf+e+w1}var Ff=!1;function qf(e,t){if(!e||Ff)return"";Ff=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(h){var d=h}Reflect.construct(e,[],c)}else{try{c.call()}catch(h){d=h}e.call(c.prototype)}}else{try{throw Error()}catch(h){d=h}(c=e())&&typeof c.catch=="function"&&c.catch(function(){})}}catch(h){if(h&&d&&typeof h.stack=="string")return[h.stack,d.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=r.DetermineComponentFrameRoot(),i=l[0],o=l[1];if(i&&o){var s=i.split(`
|
|
44
44
|
`),u=o.split(`
|
|
45
45
|
`);for(a=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(r===s.length||a===u.length)for(r=s.length-1,a=u.length-1;1<=r&&0<=a&&s[r]!==u[a];)a--;for(;1<=r&&0<=a;r--,a--)if(s[r]!==u[a]){if(r!==1||a!==1)do if(r--,a--,0>a||s[r]!==u[a]){var f=`
|
|
46
|
-
`+s[r].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=r&&0<=a);break}}}finally{
|
|
46
|
+
`+s[r].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=r&&0<=a);break}}}finally{Ff=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Qa(n):""}function gw(e,t){switch(e.tag){case 26:case 27:case 5:return Qa(e.type);case 16:return Qa("Lazy");case 13:return e.child!==t&&t!==null?Qa("Suspense Fallback"):Qa("Suspense");case 19:return Qa("SuspenseList");case 0:case 15:return qf(e.type,!1);case 11:return qf(e.type.render,!1);case 1:return qf(e.type,!0);case 31:return Qa("Activity");default:return""}}function S1(e){try{var t="",n=null;do t+=gw(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
|
|
47
47
|
Error generating stack: `+r.message+`
|
|
48
|
-
`+r.stack}}var kh=Object.prototype.hasOwnProperty,ym=We.unstable_scheduleCallback,Vf=We.unstable_cancelCallback,uw=We.unstable_shouldYield,cw=We.unstable_requestPaint,Jt=We.unstable_now,dw=We.unstable_getCurrentPriorityLevel,A2=We.unstable_ImmediatePriority,L2=We.unstable_UserBlockingPriority,Gc=We.unstable_NormalPriority,fw=We.unstable_LowPriority,_2=We.unstable_IdlePriority,hw=We.log,pw=We.unstable_setDisableYieldValue,tu=null,en=null;function Wr(e){if(typeof hw=="function"&&pw(e),en&&typeof en.setStrictMode=="function")try{en.setStrictMode(tu,e)}catch{}}var tn=Math.clz32?Math.clz32:vw,mw=Math.log,gw=Math.LN2;function vw(e){return e>>>=0,e===0?32:31-(mw(e)/gw|0)|0}var Ru=256,Tu=262144,ku=4194304;function Za(e){var t=e&42;if(t!==0)return t;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 Zd(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,l=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var o=r&134217727;return o!==0?(r=o&~l,r!==0?a=Za(r):(i&=o,i!==0?a=Za(i):n||(n=o&~e,n!==0&&(a=Za(n))))):(o=r&~l,o!==0?a=Za(o):i!==0?a=Za(i):n||(n=r&~e,n!==0&&(a=Za(n)))),a===0?0:t!==0&&t!==a&&!(t&l)&&(l=a&-a,n=t&-t,l>=n||l===32&&(n&4194048)!==0)?t:a}function nu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function bw(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 z2(){var e=ku;return ku<<=1,!(ku&62914560)&&(ku=4194304),e}function Gf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ru(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function yw(e,t,n,r,a,l){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=i&~n;0<n;){var f=31-tn(n),c=1<<f;o[f]=0,s[f]=-1;var d=u[f];if(d!==null)for(u[f]=null,f=0;f<d.length;f++){var h=d[f];h!==null&&(h.lane&=-536870913)}n&=~c}r!==0&&P2(e,r,0),l!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=l&~(i&~t))}function P2(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-tn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function H2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-tn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function K2(e,t){var n=t&-t;return n=n&42?1:xm(n),n&(e.suspendedLanes|t)?0:n}function xm(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 wm(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function U2(){var e=me.p;return e!==0?e:(e=window.event,e===void 0?32:u8(e.type))}function w1(e,t){var n=me.p;try{return me.p=e,t()}finally{me.p=n}}var Oa=Math.random().toString(36).slice(2),dt="__reactFiber$"+Oa,zt="__reactProps$"+Oa,Ii="__reactContainer$"+Oa,jh="__reactEvents$"+Oa,xw="__reactListeners$"+Oa,ww="__reactHandles$"+Oa,C1="__reactResources$"+Oa,au="__reactMarker$"+Oa;function Cm(e){delete e[dt],delete e[zt],delete e[jh],delete e[xw],delete e[ww]}function ri(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ii]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kv(e);e!==null;){if(n=e[dt])return n;e=kv(e)}return t}e=n,n=e.parentNode}return null}function Xi(e){if(e=e[dt]||e[Ii]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Yo(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(H(33))}function gi(e){var t=e[C1];return t||(t=e[C1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[au]=!0}var B2=new Set,q2={};function yl(e,t){Ti(e,t),Ti(e+"Capture",t)}function Ti(e,t){for(q2[e]=t,e=0;e<t.length;e++)B2.add(t[e])}var Cw=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),S1={},E1={};function Sw(e){return kh.call(E1,e)?!0:kh.call(S1,e)?!1:Cw.test(e)?E1[e]=!0:(S1[e]=!0,!1)}function xc(e,t,n){if(Sw(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ju(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function lr(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function pn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function F2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ew(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,l=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dh(e){if(!e._valueTracker){var t=F2(e)?"checked":"value";e._valueTracker=Ew(e,t,""+e[t])}}function V2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=F2(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Qc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Mw=/[\n"\\]/g;function vn(e){return e.replace(Mw,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Nh(e,t,n,r,a,l,i,o){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+pn(t)):e.value!==""+pn(t)&&(e.value=""+pn(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?Ah(e,i,pn(t)):n!=null?Ah(e,i,pn(n)):r!=null&&e.removeAttribute("value"),a==null&&l!=null&&(e.defaultChecked=!!l),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+pn(o):e.removeAttribute("name")}function G2(e,t,n,r,a,l,i,o){if(l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.type=l),t!=null||n!=null){if(!(l!=="submit"&&l!=="reset"||t!=null)){Dh(e);return}n=n!=null?""+pn(n):"",t=t!=null?""+pn(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),Dh(e)}function Ah(e,t,n){t==="number"&&Qc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function vi(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+pn(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Q2(e,t,n){if(t!=null&&(t=""+pn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+pn(n):""}function I2(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(H(92));if(Xo(r)){if(1<r.length)throw Error(H(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=pn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Dh(e)}function ki(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ow=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function M1(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||Ow.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function X2(e,t,n){if(t!=null&&typeof t!="object")throw Error(H(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&M1(e,a,r)}else for(var l in t)t.hasOwnProperty(l)&&M1(e,l,t[l])}function Sm(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Rw=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Tw=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function wc(e){return Tw.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function yr(){}var Lh=null;function Em(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ai=null,bi=null;function O1(e){var t=Xi(e);if(t&&(e=t.stateNode)){var n=e[zt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Nh(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[zt]||null;if(!a)throw Error(H(90));Nh(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&V2(r)}break e;case"textarea":Q2(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&vi(e,!!n.multiple,t,!1)}}}var Qf=!1;function Y2(e,t,n){if(Qf)return e(t,n);Qf=!0;try{var r=e(t);return r}finally{if(Qf=!1,(ai!==null||bi!==null)&&(uf(),ai&&(t=ai,e=bi,bi=ai=null,O1(t),e)))for(t=0;t<e.length;t++)O1(e[t])}}function Os(e,t){var n=e.stateNode;if(n===null)return null;var r=n[zt]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(H(231,t,typeof n));return n}var Mr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_h=!1;if(Mr)try{var po={};Object.defineProperty(po,"passive",{get:function(){_h=!0}}),window.addEventListener("test",po,po),window.removeEventListener("test",po,po)}catch{_h=!1}var Jr=null,Mm=null,Cc=null;function Z2(){if(Cc)return Cc;var e,t=Mm,n=t.length,r,a="value"in Jr?Jr.value:Jr.textContent,l=a.length;for(e=0;e<n&&t[e]===a[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===a[l-r];r++);return Cc=a.slice(e,1<r?1-r:void 0)}function Sc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Du(){return!0}function R1(){return!1}function Pt(e){function t(n,r,a,l,i){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=l,this.target=i,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(l):l[o]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Du:R1,this.isPropagationStopped=R1,this}return De(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Du)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Du)},persist:function(){},isPersistent:Du}),t}var xl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$d=Pt(xl),lu=De({},xl,{view:0,detail:0}),kw=Pt(lu),If,Xf,mo,Wd=De({},lu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Om,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==mo&&(mo&&e.type==="mousemove"?(If=e.screenX-mo.screenX,Xf=e.screenY-mo.screenY):Xf=If=0,mo=e),If)},movementY:function(e){return"movementY"in e?e.movementY:Xf}}),T1=Pt(Wd),jw=De({},Wd,{dataTransfer:0}),Dw=Pt(jw),Nw=De({},lu,{relatedTarget:0}),Yf=Pt(Nw),Aw=De({},xl,{animationName:0,elapsedTime:0,pseudoElement:0}),Lw=Pt(Aw),_w=De({},xl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zw=Pt(_w),Pw=De({},xl,{data:0}),k1=Pt(Pw),Hw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Uw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Uw[e])?!!t[e]:!1}function Om(){return Bw}var qw=De({},lu,{key:function(e){if(e.key){var t=Hw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Sc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Kw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Om,charCode:function(e){return e.type==="keypress"?Sc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Sc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fw=Pt(qw),Vw=De({},Wd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),j1=Pt(Vw),Gw=De({},lu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Om}),Qw=Pt(Gw),Iw=De({},xl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xw=Pt(Iw),Yw=De({},Wd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Zw=Pt(Yw),$w=De({},xl,{newState:0,oldState:0}),Ww=Pt($w),Jw=[9,13,27,32],Rm=Mr&&"CompositionEvent"in window,rs=null;Mr&&"documentMode"in document&&(rs=document.documentMode);var eC=Mr&&"TextEvent"in window&&!rs,$2=Mr&&(!Rm||rs&&8<rs&&11>=rs),D1=" ",N1=!1;function W2(e,t){switch(e){case"keyup":return Jw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var li=!1;function tC(e,t){switch(e){case"compositionend":return J2(t);case"keypress":return t.which!==32?null:(N1=!0,D1);case"textInput":return e=t.data,e===D1&&N1?null:e;default:return null}}function nC(e,t){if(li)return e==="compositionend"||!Rm&&W2(e,t)?(e=Z2(),Cc=Mm=Jr=null,li=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $2&&t.locale!=="ko"?null:t.data;default:return null}}var rC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function A1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rC[e.type]:t==="textarea"}function e5(e,t,n,r){ai?bi?bi.push(r):bi=[r]:ai=r,t=cd(t,"onChange"),0<t.length&&(n=new $d("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var as=null,Rs=null;function aC(e){Y9(e,0)}function Jd(e){var t=Yo(e);if(V2(t))return e}function L1(e,t){if(e==="change")return t}var t5=!1;if(Mr){var Zf;if(Mr){var $f="oninput"in document;if(!$f){var _1=document.createElement("div");_1.setAttribute("oninput","return;"),$f=typeof _1.oninput=="function"}Zf=$f}else Zf=!1;t5=Zf&&(!document.documentMode||9<document.documentMode)}function z1(){as&&(as.detachEvent("onpropertychange",n5),Rs=as=null)}function n5(e){if(e.propertyName==="value"&&Jd(Rs)){var t=[];e5(t,Rs,e,Em(e)),Y2(aC,t)}}function lC(e,t,n){e==="focusin"?(z1(),as=t,Rs=n,as.attachEvent("onpropertychange",n5)):e==="focusout"&&z1()}function iC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jd(Rs)}function oC(e,t){if(e==="click")return Jd(t)}function sC(e,t){if(e==="input"||e==="change")return Jd(t)}function uC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rn=typeof Object.is=="function"?Object.is:uC;function Ts(e,t){if(rn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!kh.call(t,a)||!rn(e[a],t[a]))return!1}return!0}function P1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function H1(e,t){var n=P1(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=P1(n)}}function r5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?r5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function a5(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qc(e.document)}return t}function Tm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var cC=Mr&&"documentMode"in document&&11>=document.documentMode,ii=null,zh=null,ls=null,Ph=!1;function K1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ph||ii==null||ii!==Qc(r)||(r=ii,"selectionStart"in r&&Tm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ls&&Ts(ls,r)||(ls=r,r=cd(zh,"onSelect"),0<r.length&&(t=new $d("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ii)))}function La(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var oi={animationend:La("Animation","AnimationEnd"),animationiteration:La("Animation","AnimationIteration"),animationstart:La("Animation","AnimationStart"),transitionrun:La("Transition","TransitionRun"),transitionstart:La("Transition","TransitionStart"),transitioncancel:La("Transition","TransitionCancel"),transitionend:La("Transition","TransitionEnd")},Wf={},l5={};Mr&&(l5=document.createElement("div").style,"AnimationEvent"in window||(delete oi.animationend.animation,delete oi.animationiteration.animation,delete oi.animationstart.animation),"TransitionEvent"in window||delete oi.transitionend.transition);function wl(e){if(Wf[e])return Wf[e];if(!oi[e])return e;var t=oi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in l5)return Wf[e]=t[n];return e}var i5=wl("animationend"),o5=wl("animationiteration"),s5=wl("animationstart"),dC=wl("transitionrun"),fC=wl("transitionstart"),hC=wl("transitioncancel"),u5=wl("transitionend"),c5=new Map,Hh="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Hh.push("scrollEnd");function Un(e,t){c5.set(e,t),yl(t,[e])}var Ic=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},fn=[],si=0,km=0;function ef(){for(var e=si,t=km=si=0;t<e;){var n=fn[t];fn[t++]=null;var r=fn[t];fn[t++]=null;var a=fn[t];fn[t++]=null;var l=fn[t];if(fn[t++]=null,r!==null&&a!==null){var i=r.pending;i===null?a.next=a:(a.next=i.next,i.next=a),r.pending=a}l!==0&&d5(n,a,l)}}function tf(e,t,n,r){fn[si++]=e,fn[si++]=t,fn[si++]=n,fn[si++]=r,km|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function jm(e,t,n,r){return tf(e,t,n,r),Xc(e)}function Cl(e,t){return tf(e,null,null,t),Xc(e)}function d5(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var a=!1,l=e.return;l!==null;)l.childLanes|=n,r=l.alternate,r!==null&&(r.childLanes|=n),l.tag===22&&(e=l.stateNode,e===null||e._visibility&1||(a=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,a&&t!==null&&(a=31-tn(n),e=l.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),l):null}function Xc(e){if(50<ps)throw ps=0,lp=null,Error(H(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ui={};function pC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,n,r){return new pC(e,t,n,r)}function Dm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wr(e,t){var n=e.alternate;return n===null?(n=It(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function f5(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ec(e,t,n,r,a,l){var i=0;if(r=e,typeof e=="function")Dm(e)&&(i=1);else if(typeof e=="string")i=yS(e,n,er.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Mh:return e=It(31,n,t,a),e.elementType=Mh,e.lanes=l,e;case ti:return al(n.children,a,l,t);case D2:i=8,a|=24;break;case Ch:return e=It(12,n,t,a|2),e.elementType=Ch,e.lanes=l,e;case Sh:return e=It(13,n,t,a),e.elementType=Sh,e.lanes=l,e;case Eh:return e=It(19,n,t,a),e.elementType=Eh,e.lanes=l,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case br:i=10;break e;case N2:i=9;break e;case vm:i=11;break e;case bm:i=14;break e;case Vr:i=16,r=null;break e}i=29,n=Error(H(130,e===null?"null":typeof e,"")),r=null}return t=It(i,n,t,a),t.elementType=e,t.type=r,t.lanes=l,t}function al(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function Jf(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function h5(e){var t=It(18,null,null,0);return t.stateNode=e,t}function e0(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var U1=new WeakMap;function bn(e,t){if(typeof e=="object"&&e!==null){var n=U1.get(e);return n!==void 0?n:(t={value:e,source:t,stack:x1(t)},U1.set(e,t),t)}return{value:e,source:t,stack:x1(t)}}var ci=[],di=0,Yc=null,ks=0,mn=[],gn=0,ba=null,Zn=1,$n="";function gr(e,t){ci[di++]=ks,ci[di++]=Yc,Yc=e,ks=t}function p5(e,t,n){mn[gn++]=Zn,mn[gn++]=$n,mn[gn++]=ba,ba=e;var r=Zn;e=$n;var a=32-tn(r)-1;r&=~(1<<a),n+=1;var l=32-tn(t)+a;if(30<l){var i=a-a%5;l=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Zn=1<<32-tn(t)+a|n<<a|r,$n=l+e}else Zn=1<<l|n<<a|r,$n=e}function Nm(e){e.return!==null&&(gr(e,1),p5(e,1,0))}function Am(e){for(;e===Yc;)Yc=ci[--di],ci[di]=null,ks=ci[--di],ci[di]=null;for(;e===ba;)ba=mn[--gn],mn[gn]=null,$n=mn[--gn],mn[gn]=null,Zn=mn[--gn],mn[gn]=null}function m5(e,t){mn[gn++]=Zn,mn[gn++]=$n,mn[gn++]=ba,Zn=t.id,$n=t.overflow,ba=e}var ft=null,ke=null,se=!1,ia=null,yn=!1,Kh=Error(H(519));function ya(e){var t=Error(H(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw js(bn(t,e)),Kh}function B1(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[dt]=e,t[zt]=r,n){case"dialog":le("cancel",t),le("close",t);break;case"iframe":case"object":case"embed":le("load",t);break;case"video":case"audio":for(n=0;n<Ls.length;n++)le(Ls[n],t);break;case"source":le("error",t);break;case"img":case"image":case"link":le("error",t),le("load",t);break;case"details":le("toggle",t);break;case"input":le("invalid",t),G2(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":le("invalid",t);break;case"textarea":le("invalid",t),I2(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||$9(t.textContent,n)?(r.popover!=null&&(le("beforetoggle",t),le("toggle",t)),r.onScroll!=null&&le("scroll",t),r.onScrollEnd!=null&&le("scrollend",t),r.onClick!=null&&(t.onclick=yr),t=!0):t=!1,t||ya(e,!0)}function q1(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 31:case 13:yn=!1;return;case 27:case 3:yn=!0;return;default:ft=ft.return}}function Al(e){if(e!==ft)return!1;if(!se)return q1(e),se=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||cp(e.type,e.memoizedProps)),n=!n),n&&ke&&ya(e),q1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));ke=Tv(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));ke=Tv(e)}else t===27?(t=ke,Ra(e.type)?(e=pp,pp=null,ke=e):ke=t):ke=ft?Cn(e.stateNode.nextSibling):null;return!0}function sl(){ke=ft=null,se=!1}function t0(){var e=ia;return e!==null&&(Dt===null?Dt=e:Dt.push.apply(Dt,e),ia=null),e}function js(e){ia===null?ia=[e]:ia.push(e)}var Uh=tr(null),Sl=null,xr=null;function Ir(e,t,n){Re(Uh,t._currentValue),t._currentValue=n}function Cr(e){e._currentValue=Uh.current,it(Uh)}function Bh(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function qh(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var l=a.dependencies;if(l!==null){var i=a.child;l=l.firstContext;e:for(;l!==null;){var o=l;l=a;for(var s=0;s<t.length;s++)if(o.context===t[s]){l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),Bh(l.return,n,e),r||(i=null);break e}l=o.next}}else if(a.tag===18){if(i=a.return,i===null)throw Error(H(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Bh(i,n,e),i=null}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===e){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}}function Yi(e,t,n,r){e=null;for(var a=t,l=!1;a!==null;){if(!l){if(a.flags&524288)l=!0;else if(a.flags&262144)break}if(a.tag===10){var i=a.alternate;if(i===null)throw Error(H(387));if(i=i.memoizedProps,i!==null){var o=a.type;rn(a.pendingProps.value,i.value)||(e!==null?e.push(o):e=[o])}}else if(a===qc.current){if(i=a.alternate,i===null)throw Error(H(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(zs):e=[zs])}a=a.return}e!==null&&qh(t,e,n,r),t.flags|=262144}function Zc(e){for(e=e.firstContext;e!==null;){if(!rn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ul(e){Sl=e,xr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ht(e){return g5(Sl,e)}function Nu(e,t){return Sl===null&&ul(e),g5(e,t)}function g5(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},xr===null){if(e===null)throw Error(H(308));xr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xr=xr.next=t;return n}var mC=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},gC=We.unstable_scheduleCallback,vC=We.unstable_NormalPriority,Ie={$$typeof:br,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lm(){return{controller:new mC,data:new Map,refCount:0}}function iu(e){e.refCount--,e.refCount===0&&gC(vC,function(){e.controller.abort()})}var is=null,Fh=0,ji=0,yi=null;function bC(e,t){if(is===null){var n=is=[];Fh=0,ji=lg(),yi={status:"pending",value:void 0,then:function(r){n.push(r)}}}return Fh++,t.then(F1,F1),t}function F1(){if(--Fh===0&&is!==null){yi!==null&&(yi.status="fulfilled");var e=is;is=null,ji=0,yi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yC(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(r.status="rejected",r.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),r}var V1=W.S;W.S=function(e,t){j9=Jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&bC(e,t),V1!==null&&V1(e,t)};var ll=tr(null);function _m(){var e=ll.current;return e!==null?e:Me.pooledCache}function Mc(e,t){t===null?Re(ll,ll.current):Re(ll,t.pool)}function v5(){var e=_m();return e===null?null:{parent:Ie._currentValue,pool:e}}var Zi=Error(H(460)),zm=Error(H(474)),nf=Error(H(542)),$c={then:function(){}};function G1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function b5(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(yr,yr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,I1(e),e;default:if(typeof t.status=="string")t.then(yr,yr);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(H(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=r}},function(r){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,I1(e),e}throw il=t,Zi}}function $a(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(il=n,Zi):n}}var il=null;function Q1(){if(il===null)throw Error(H(459));var e=il;return il=null,e}function I1(e){if(e===Zi||e===nf)throw Error(H(483))}var xi=null,Ds=0;function Au(e){var t=Ds;return Ds+=1,xi===null&&(xi=[]),b5(xi,e,t)}function go(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Lu(e,t){throw t.$$typeof===lw?Error(H(525)):(e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function y5(e){function t(v,g){if(e){var x=v.deletions;x===null?(v.deletions=[g],v.flags|=16):x.push(g)}}function n(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function r(v){for(var g=new Map;v!==null;)v.key!==null?g.set(v.key,v):g.set(v.index,v),v=v.sibling;return g}function a(v,g){return v=wr(v,g),v.index=0,v.sibling=null,v}function l(v,g,x){return v.index=x,e?(x=v.alternate,x!==null?(x=x.index,x<g?(v.flags|=67108866,g):x):(v.flags|=67108866,g)):(v.flags|=1048576,g)}function i(v){return e&&v.alternate===null&&(v.flags|=67108866),v}function o(v,g,x,C){return g===null||g.tag!==6?(g=Jf(x,v.mode,C),g.return=v,g):(g=a(g,x),g.return=v,g)}function s(v,g,x,C){var E=x.type;return E===ti?f(v,g,x.props.children,C,x.key):g!==null&&(g.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Vr&&$a(E)===g.type)?(g=a(g,x.props),go(g,x),g.return=v,g):(g=Ec(x.type,x.key,x.props,null,v.mode,C),go(g,x),g.return=v,g)}function u(v,g,x,C){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=e0(x,v.mode,C),g.return=v,g):(g=a(g,x.children||[]),g.return=v,g)}function f(v,g,x,C,E){return g===null||g.tag!==7?(g=al(x,v.mode,C,E),g.return=v,g):(g=a(g,x),g.return=v,g)}function c(v,g,x){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Jf(""+g,v.mode,x),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ou:return x=Ec(g.type,g.key,g.props,null,v.mode,x),go(x,g),x.return=v,x;case Io:return g=e0(g,v.mode,x),g.return=v,g;case Vr:return g=$a(g),c(v,g,x)}if(Xo(g)||ho(g))return g=al(g,v.mode,x,null),g.return=v,g;if(typeof g.then=="function")return c(v,Au(g),x);if(g.$$typeof===br)return c(v,Nu(v,g),x);Lu(v,g)}return null}function d(v,g,x,C){var E=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return E!==null?null:o(v,g,""+x,C);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ou:return x.key===E?s(v,g,x,C):null;case Io:return x.key===E?u(v,g,x,C):null;case Vr:return x=$a(x),d(v,g,x,C)}if(Xo(x)||ho(x))return E!==null?null:f(v,g,x,C,null);if(typeof x.then=="function")return d(v,g,Au(x),C);if(x.$$typeof===br)return d(v,g,Nu(v,x),C);Lu(v,x)}return null}function h(v,g,x,C,E){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return v=v.get(x)||null,o(g,v,""+C,E);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Ou:return v=v.get(C.key===null?x:C.key)||null,s(g,v,C,E);case Io:return v=v.get(C.key===null?x:C.key)||null,u(g,v,C,E);case Vr:return C=$a(C),h(v,g,x,C,E)}if(Xo(C)||ho(C))return v=v.get(x)||null,f(g,v,C,E,null);if(typeof C.then=="function")return h(v,g,x,Au(C),E);if(C.$$typeof===br)return h(v,g,x,Nu(g,C),E);Lu(g,C)}return null}function m(v,g,x,C){for(var E=null,S=null,M=g,A=g=0,D=null;M!==null&&A<x.length;A++){M.index>A?(D=M,M=null):D=M.sibling;var N=d(v,M,x[A],C);if(N===null){M===null&&(M=D);break}e&&M&&N.alternate===null&&t(v,M),g=l(N,g,A),S===null?E=N:S.sibling=N,S=N,M=D}if(A===x.length)return n(v,M),se&&gr(v,A),E;if(M===null){for(;A<x.length;A++)M=c(v,x[A],C),M!==null&&(g=l(M,g,A),S===null?E=M:S.sibling=M,S=M);return se&&gr(v,A),E}for(M=r(M);A<x.length;A++)D=h(M,v,A,x[A],C),D!==null&&(e&&D.alternate!==null&&M.delete(D.key===null?A:D.key),g=l(D,g,A),S===null?E=D:S.sibling=D,S=D);return e&&M.forEach(function(j){return t(v,j)}),se&&gr(v,A),E}function b(v,g,x,C){if(x==null)throw Error(H(151));for(var E=null,S=null,M=g,A=g=0,D=null,N=x.next();M!==null&&!N.done;A++,N=x.next()){M.index>A?(D=M,M=null):D=M.sibling;var j=d(v,M,N.value,C);if(j===null){M===null&&(M=D);break}e&&M&&j.alternate===null&&t(v,M),g=l(j,g,A),S===null?E=j:S.sibling=j,S=j,M=D}if(N.done)return n(v,M),se&&gr(v,A),E;if(M===null){for(;!N.done;A++,N=x.next())N=c(v,N.value,C),N!==null&&(g=l(N,g,A),S===null?E=N:S.sibling=N,S=N);return se&&gr(v,A),E}for(M=r(M);!N.done;A++,N=x.next())N=h(M,v,A,N.value,C),N!==null&&(e&&N.alternate!==null&&M.delete(N.key===null?A:N.key),g=l(N,g,A),S===null?E=N:S.sibling=N,S=N);return e&&M.forEach(function(z){return t(v,z)}),se&&gr(v,A),E}function y(v,g,x,C){if(typeof x=="object"&&x!==null&&x.type===ti&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ou:e:{for(var E=x.key;g!==null;){if(g.key===E){if(E=x.type,E===ti){if(g.tag===7){n(v,g.sibling),C=a(g,x.props.children),C.return=v,v=C;break e}}else if(g.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Vr&&$a(E)===g.type){n(v,g.sibling),C=a(g,x.props),go(C,x),C.return=v,v=C;break e}n(v,g);break}else t(v,g);g=g.sibling}x.type===ti?(C=al(x.props.children,v.mode,C,x.key),C.return=v,v=C):(C=Ec(x.type,x.key,x.props,null,v.mode,C),go(C,x),C.return=v,v=C)}return i(v);case Io:e:{for(E=x.key;g!==null;){if(g.key===E)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(v,g.sibling),C=a(g,x.children||[]),C.return=v,v=C;break e}else{n(v,g);break}else t(v,g);g=g.sibling}C=e0(x,v.mode,C),C.return=v,v=C}return i(v);case Vr:return x=$a(x),y(v,g,x,C)}if(Xo(x))return m(v,g,x,C);if(ho(x)){if(E=ho(x),typeof E!="function")throw Error(H(150));return x=E.call(x),b(v,g,x,C)}if(typeof x.then=="function")return y(v,g,Au(x),C);if(x.$$typeof===br)return y(v,g,Nu(v,x),C);Lu(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,g!==null&&g.tag===6?(n(v,g.sibling),C=a(g,x),C.return=v,v=C):(n(v,g),C=Jf(x,v.mode,C),C.return=v,v=C),i(v)):n(v,g)}return function(v,g,x,C){try{Ds=0;var E=y(v,g,x,C);return xi=null,E}catch(M){if(M===Zi||M===nf)throw M;var S=It(29,M,null,v.mode);return S.lanes=C,S.return=v,S}finally{}}}var cl=y5(!0),x5=y5(!1),Gr=!1;function Pm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function oa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function sa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,pe&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=Xc(e),d5(e,null,n),t}return tf(e,r,t,n),Xc(e)}function os(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,H2(e,n)}}function n0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};l===null?a=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?a=l=t:l=l.next=t}else a=l=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:l,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Gh=!1;function ss(){if(Gh){var e=yi;if(e!==null)throw e}}function us(e,t,n,r){Gh=!1;var a=e.updateQueue;Gr=!1;var l=a.firstBaseUpdate,i=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var s=o,u=s.next;s.next=null,i===null?l=u:i.next=u,i=s;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==i&&(o===null?f.firstBaseUpdate=u:o.next=u,f.lastBaseUpdate=s))}if(l!==null){var c=a.baseState;i=0,f=u=s=null,o=l;do{var d=o.lane&-536870913,h=d!==o.lane;if(h?(oe&d)===d:(r&d)===d){d!==0&&d===ji&&(Gh=!0),f!==null&&(f=f.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var m=e,b=o;d=t;var y=n;switch(b.tag){case 1:if(m=b.payload,typeof m=="function"){c=m.call(y,c,d);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=b.payload,d=typeof m=="function"?m.call(y,c,d):m,d==null)break e;c=De({},c,d);break e;case 2:Gr=!0}}d=o.callback,d!==null&&(e.flags|=64,h&&(e.flags|=8192),h=a.callbacks,h===null?a.callbacks=[d]:h.push(d))}else h={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(u=f=h,s=c):f=f.next=h,i|=d;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;h=o,o=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);f===null&&(s=c),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=f,l===null&&(a.shared.lanes=0),wa|=i,e.lanes=i,e.memoizedState=c}}function w5(e,t){if(typeof e!="function")throw Error(H(191,e));e.call(t)}function C5(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)w5(n[e],t)}var Di=tr(null),Wc=tr(0);function X1(e,t){e=kr,Re(Wc,e),Re(Di,t),kr=e|t.baseLanes}function Qh(){Re(Wc,kr),Re(Di,Di.current)}function Hm(){kr=Wc.current,it(Di),it(Wc)}var an=tr(null),wn=null;function Xr(e){var t=e.alternate;Re(Be,Be.current&1),Re(an,e),wn===null&&(t===null||Di.current!==null||t.memoizedState!==null)&&(wn=e)}function Ih(e){Re(Be,Be.current),Re(an,e),wn===null&&(wn=e)}function S5(e){e.tag===22?(Re(Be,Be.current),Re(an,e),wn===null&&(wn=e)):Yr()}function Yr(){Re(Be,Be.current),Re(an,an.current)}function Qt(e){it(an),wn===e&&(wn=null),it(Be)}var Be=tr(0);function Jc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||fp(n)||hp(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Or=0,re=null,Ee=null,Ge=null,ed=!1,wi=!1,dl=!1,td=0,Ns=0,Ci=null,xC=0;function _e(){throw Error(H(321))}function Km(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!rn(e[n],t[n]))return!1;return!0}function Um(e,t,n,r,a,l){return Or=l,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,W.H=e===null||e.memoizedState===null?e9:$m,dl=!1,l=n(r,a),dl=!1,wi&&(l=M5(t,n,r,a)),E5(e),l}function E5(e){W.H=As;var t=Ee!==null&&Ee.next!==null;if(Or=0,Ge=Ee=re=null,ed=!1,Ns=0,Ci=null,t)throw Error(H(300));e===null||Xe||(e=e.dependencies,e!==null&&Zc(e)&&(Xe=!0))}function M5(e,t,n,r){re=e;var a=0;do{if(wi&&(Ci=null),Ns=0,wi=!1,25<=a)throw Error(H(301));if(a+=1,Ge=Ee=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}W.H=t9,l=t(n,r)}while(wi);return l}function wC(){var e=W.H,t=e.useState()[0];return t=typeof t.then=="function"?ou(t):t,e=e.useState()[0],(Ee!==null?Ee.memoizedState:null)!==e&&(re.flags|=1024),t}function Bm(){var e=td!==0;return td=0,e}function qm(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Fm(e){if(ed){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ed=!1}Or=0,Ge=Ee=re=null,wi=!1,Ns=td=0,Ci=null}function bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?re.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function qe(){if(Ee===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Ee.next;var t=Ge===null?re.memoizedState:Ge.next;if(t!==null)Ge=t,Ee=e;else{if(e===null)throw re.alternate===null?Error(H(467)):Error(H(310));Ee=e,e={memoizedState:Ee.memoizedState,baseState:Ee.baseState,baseQueue:Ee.baseQueue,queue:Ee.queue,next:null},Ge===null?re.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}function rf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ou(e){var t=Ns;return Ns+=1,Ci===null&&(Ci=[]),e=b5(Ci,e,t),t=re,(Ge===null?t.memoizedState:Ge.next)===null&&(t=t.alternate,W.H=t===null||t.memoizedState===null?e9:$m),e}function af(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ou(e);if(e.$$typeof===br)return ht(e)}throw Error(H(438,String(e)))}function Vm(e){var t=null,n=re.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=re.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=rf(),re.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=iw;return t.index++,n}function Rr(e,t){return typeof t=="function"?t(e):t}function Oc(e){var t=qe();return Gm(t,Ee,e)}function Gm(e,t,n){var r=e.queue;if(r===null)throw Error(H(311));r.lastRenderedReducer=n;var a=e.baseQueue,l=r.pending;if(l!==null){if(a!==null){var i=a.next;a.next=l.next,l.next=i}t.baseQueue=a=l,r.pending=null}if(l=e.baseState,a===null)e.memoizedState=l;else{t=a.next;var o=i=null,s=null,u=t,f=!1;do{var c=u.lane&-536870913;if(c!==u.lane?(oe&c)===c:(Or&c)===c){var d=u.revertLane;if(d===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),c===ji&&(f=!0);else if((Or&d)===d){u=u.next,d===ji&&(f=!0);continue}else c={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=c,i=l):s=s.next=c,re.lanes|=d,wa|=d;c=u.action,dl&&n(l,c),l=u.hasEagerState?u.eagerState:n(l,c)}else d={lane:c,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=d,i=l):s=s.next=d,re.lanes|=c,wa|=c;u=u.next}while(u!==null&&u!==t);if(s===null?i=l:s.next=o,!rn(l,e.memoizedState)&&(Xe=!0,f&&(n=yi,n!==null)))throw n;e.memoizedState=l,e.baseState=i,e.baseQueue=s,r.lastRenderedState=l}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function r0(e){var t=qe(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,l=t.memoizedState;if(a!==null){n.pending=null;var i=a=a.next;do l=e(l,i.action),i=i.next;while(i!==a);rn(l,t.memoizedState)||(Xe=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function O5(e,t,n){var r=re,a=qe(),l=se;if(l){if(n===void 0)throw Error(H(407));n=n()}else n=t();var i=!rn((Ee||a).memoizedState,n);if(i&&(a.memoizedState=n,Xe=!0),a=a.queue,Qm(k5.bind(null,r,a,e),[e]),a.getSnapshot!==t||i||Ge!==null&&Ge.memoizedState.tag&1){if(r.flags|=2048,Ni(9,{destroy:void 0},T5.bind(null,r,a,n,t),null),Me===null)throw Error(H(349));l||Or&127||R5(r,t,n)}return n}function R5(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=re.updateQueue,t===null?(t=rf(),re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function T5(e,t,n,r){t.value=n,t.getSnapshot=r,j5(t)&&D5(e)}function k5(e,t,n){return n(function(){j5(t)&&D5(e)})}function j5(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rn(e,n)}catch{return!0}}function D5(e){var t=Cl(e,2);t!==null&&_t(t,e,2)}function Xh(e){var t=bt();if(typeof e=="function"){var n=e;if(e=n(),dl){Wr(!0);try{n()}finally{Wr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:e},t}function N5(e,t,n,r){return e.baseState=n,Gm(e,Ee,typeof r=="function"?r:Rr)}function CC(e,t,n,r,a){if(of(e))throw Error(H(485));if(e=t.action,e!==null){var l={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){l.listeners.push(i)}};W.T!==null?n(!0):l.isTransition=!1,r(l),n=t.pending,n===null?(l.next=t.pending=l,A5(t,l)):(l.next=n.next,t.pending=n.next=l)}}function A5(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var l=W.T,i={};W.T=i;try{var o=n(a,r),s=W.S;s!==null&&s(i,o),Y1(e,t,o)}catch(u){Yh(e,t,u)}finally{l!==null&&i.types!==null&&(l.types=i.types),W.T=l}}else try{l=n(a,r),Y1(e,t,l)}catch(u){Yh(e,t,u)}}function Y1(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){Z1(e,t,r)},function(r){return Yh(e,t,r)}):Z1(e,t,n)}function Z1(e,t,n){t.status="fulfilled",t.value=n,L5(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,A5(e,n)))}function Yh(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,L5(t),t=t.next;while(t!==r)}e.action=null}function L5(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function _5(e,t){return t}function $1(e,t){if(se){var n=Me.formState;if(n!==null){e:{var r=re;if(se){if(ke){t:{for(var a=ke,l=yn;a.nodeType!==8;){if(!l){a=null;break t}if(a=Cn(a.nextSibling),a===null){a=null;break t}}l=a.data,a=l==="F!"||l==="F"?a:null}if(a){ke=Cn(a.nextSibling),r=a.data==="F!";break e}}ya(r)}r=!1}r&&(t=n[0])}}return n=bt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_5,lastRenderedState:t},n.queue=r,n=$5.bind(null,re,r),r.dispatch=n,r=Xh(!1),l=Zm.bind(null,re,!1,r.queue),r=bt(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=CC.bind(null,re,a,l,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function W1(e){var t=qe();return z5(t,Ee,e)}function z5(e,t,n){if(t=Gm(e,t,_5)[0],e=Oc(Rr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=ou(t)}catch(i){throw i===Zi?nf:i}else r=t;t=qe();var a=t.queue,l=a.dispatch;return n!==t.memoizedState&&(re.flags|=2048,Ni(9,{destroy:void 0},SC.bind(null,a,n),null)),[r,l,e]}function SC(e,t){e.action=t}function J1(e){var t=qe(),n=Ee;if(n!==null)return z5(t,n,e);qe(),t=t.memoizedState,n=qe();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ni(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=re.updateQueue,t===null&&(t=rf(),re.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function P5(){return qe().memoizedState}function Rc(e,t,n,r){var a=bt();re.flags|=e,a.memoizedState=Ni(1|t,{destroy:void 0},n,r===void 0?null:r)}function lf(e,t,n,r){var a=qe();r=r===void 0?null:r;var l=a.memoizedState.inst;Ee!==null&&r!==null&&Km(r,Ee.memoizedState.deps)?a.memoizedState=Ni(t,l,n,r):(re.flags|=e,a.memoizedState=Ni(1|t,l,n,r))}function ev(e,t){Rc(8390656,8,e,t)}function Qm(e,t){lf(2048,8,e,t)}function EC(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=rf(),re.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function H5(e){var t=qe().memoizedState;return EC({ref:t,nextImpl:e}),function(){if(pe&2)throw Error(H(440));return t.impl.apply(void 0,arguments)}}function K5(e,t){return lf(4,2,e,t)}function U5(e,t){return lf(4,4,e,t)}function B5(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function q5(e,t,n){n=n!=null?n.concat([e]):null,lf(4,4,B5.bind(null,t,e),n)}function Im(){}function F5(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Km(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function V5(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Km(t,r[1]))return r[0];if(r=e(),dl){Wr(!0);try{e()}finally{Wr(!1)}}return n.memoizedState=[r,t],r}function Xm(e,t,n){return n===void 0||Or&1073741824&&!(oe&261930)?e.memoizedState=t:(e.memoizedState=n,e=N9(),re.lanes|=e,wa|=e,n)}function G5(e,t,n,r){return rn(n,t)?n:Di.current!==null?(e=Xm(e,n,r),rn(e,t)||(Xe=!0),e):!(Or&42)||Or&1073741824&&!(oe&261930)?(Xe=!0,e.memoizedState=n):(e=N9(),re.lanes|=e,wa|=e,t)}function Q5(e,t,n,r,a){var l=me.p;me.p=l!==0&&8>l?l:8;var i=W.T,o={};W.T=o,Zm(e,!1,t,n);try{var s=a(),u=W.S;if(u!==null&&u(o,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var f=yC(s,r);cs(e,t,f,nn(e))}else cs(e,t,r,nn(e))}catch(c){cs(e,t,{then:function(){},status:"rejected",reason:c},nn())}finally{me.p=l,i!==null&&o.types!==null&&(i.types=o.types),W.T=i}}function MC(){}function Zh(e,t,n,r){if(e.tag!==5)throw Error(H(476));var a=I5(e).queue;Q5(e,a,t,rl,n===null?MC:function(){return X5(e),n(r)})}function I5(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:rl,baseState:rl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:rl},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function X5(e){var t=I5(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},nn())}function Ym(){return ht(zs)}function Y5(){return qe().memoizedState}function Z5(){return qe().memoizedState}function OC(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=nn();e=oa(n);var r=sa(t,e,n);r!==null&&(_t(r,t,n),os(r,t,n)),t={cache:Lm()},e.payload=t;return}t=t.return}}function RC(e,t,n){var r=nn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},of(e)?W5(t,n):(n=jm(e,t,n,r),n!==null&&(_t(n,e,r),J5(n,t,r)))}function $5(e,t,n){var r=nn();cs(e,t,n,r)}function cs(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(of(e))W5(t,a);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,o=l(i,n);if(a.hasEagerState=!0,a.eagerState=o,rn(o,i))return tf(e,t,a,0),Me===null&&ef(),!1}catch{}finally{}if(n=jm(e,t,a,r),n!==null)return _t(n,e,r),J5(n,t,r),!0}return!1}function Zm(e,t,n,r){if(r={lane:2,revertLane:lg(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},of(e)){if(t)throw Error(H(479))}else t=jm(e,n,r,2),t!==null&&_t(t,e,2)}function of(e){var t=e.alternate;return e===re||t!==null&&t===re}function W5(e,t){wi=ed=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function J5(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,H2(e,n)}}var As={readContext:ht,use:af,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useLayoutEffect:_e,useInsertionEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useSyncExternalStore:_e,useId:_e,useHostTransitionStatus:_e,useFormState:_e,useActionState:_e,useOptimistic:_e,useMemoCache:_e,useCacheRefresh:_e};As.useEffectEvent=_e;var e9={readContext:ht,use:af,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:ev,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Rc(4194308,4,B5.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Rc(4194308,4,e,t)},useInsertionEffect:function(e,t){Rc(4,2,e,t)},useMemo:function(e,t){var n=bt();t=t===void 0?null:t;var r=e();if(dl){Wr(!0);try{e()}finally{Wr(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=bt();if(n!==void 0){var a=n(t);if(dl){Wr(!0);try{n(t)}finally{Wr(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=RC.bind(null,re,e),[r.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:function(e){e=Xh(e);var t=e.queue,n=$5.bind(null,re,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Im,useDeferredValue:function(e,t){var n=bt();return Xm(n,e,t)},useTransition:function(){var e=Xh(!1);return e=Q5.bind(null,re,e.queue,!0,!1),bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=re,a=bt();if(se){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),Me===null)throw Error(H(349));oe&127||R5(r,t,n)}a.memoizedState=n;var l={value:n,getSnapshot:t};return a.queue=l,ev(k5.bind(null,r,l,e),[e]),r.flags|=2048,Ni(9,{destroy:void 0},T5.bind(null,r,l,n,t),null),n},useId:function(){var e=bt(),t=Me.identifierPrefix;if(se){var n=$n,r=Zn;n=(r&~(1<<32-tn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=td++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=xC++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ym,useFormState:$1,useActionState:$1,useOptimistic:function(e){var t=bt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Zm.bind(null,re,!0,n),n.dispatch=t,[e,t]},useMemoCache:Vm,useCacheRefresh:function(){return bt().memoizedState=OC.bind(null,re)},useEffectEvent:function(e){var t=bt(),n={impl:e};return t.memoizedState=n,function(){if(pe&2)throw Error(H(440));return n.impl.apply(void 0,arguments)}}},$m={readContext:ht,use:af,useCallback:F5,useContext:ht,useEffect:Qm,useImperativeHandle:q5,useInsertionEffect:K5,useLayoutEffect:U5,useMemo:V5,useReducer:Oc,useRef:P5,useState:function(){return Oc(Rr)},useDebugValue:Im,useDeferredValue:function(e,t){var n=qe();return G5(n,Ee.memoizedState,e,t)},useTransition:function(){var e=Oc(Rr)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:ou(e),t]},useSyncExternalStore:O5,useId:Y5,useHostTransitionStatus:Ym,useFormState:W1,useActionState:W1,useOptimistic:function(e,t){var n=qe();return N5(n,Ee,e,t)},useMemoCache:Vm,useCacheRefresh:Z5};$m.useEffectEvent=H5;var t9={readContext:ht,use:af,useCallback:F5,useContext:ht,useEffect:Qm,useImperativeHandle:q5,useInsertionEffect:K5,useLayoutEffect:U5,useMemo:V5,useReducer:r0,useRef:P5,useState:function(){return r0(Rr)},useDebugValue:Im,useDeferredValue:function(e,t){var n=qe();return Ee===null?Xm(n,e,t):G5(n,Ee.memoizedState,e,t)},useTransition:function(){var e=r0(Rr)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:ou(e),t]},useSyncExternalStore:O5,useId:Y5,useHostTransitionStatus:Ym,useFormState:J1,useActionState:J1,useOptimistic:function(e,t){var n=qe();return Ee!==null?N5(n,Ee,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Vm,useCacheRefresh:Z5};t9.useEffectEvent=H5;function a0(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:De({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $h={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=nn(),a=oa(r);a.payload=t,n!=null&&(a.callback=n),t=sa(e,a,r),t!==null&&(_t(t,e,r),os(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=nn(),a=oa(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=sa(e,a,r),t!==null&&(_t(t,e,r),os(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=nn(),r=oa(n);r.tag=2,t!=null&&(r.callback=t),t=sa(e,r,n),t!==null&&(_t(t,e,n),os(t,e,n))}};function tv(e,t,n,r,a,l,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,i):t.prototype&&t.prototype.isPureReactComponent?!Ts(n,r)||!Ts(a,l):!0}function nv(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$h.enqueueReplaceState(t,t.state,null)}function fl(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=De({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function n9(e){Ic(e)}function r9(e){console.error(e)}function a9(e){Ic(e)}function nd(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function rv(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Wh(e,t,n){return n=oa(n),n.tag=3,n.payload={element:null},n.callback=function(){nd(e,t)},n}function l9(e){return e=oa(e),e.tag=3,e}function i9(e,t,n,r){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var l=r.value;e.payload=function(){return a(l)},e.callback=function(){rv(t,n,r)}}var i=n.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){rv(t,n,r),typeof a!="function"&&(ua===null?ua=new Set([this]):ua.add(this));var o=r.stack;this.componentDidCatch(r.value,{componentStack:o!==null?o:""})})}function TC(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Yi(t,n,a,!0),n=an.current,n!==null){switch(n.tag){case 31:case 13:return wn===null?od():n.alternate===null&&ze===0&&(ze=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===$c?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),m0(e,r,a)),!1;case 22:return n.flags|=65536,r===$c?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),m0(e,r,a)),!1}throw Error(H(435,n.tag))}return m0(e,r,a),od(),!1}if(se)return t=an.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Kh&&(e=Error(H(422),{cause:r}),js(bn(e,n)))):(r!==Kh&&(t=Error(H(423),{cause:r}),js(bn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=bn(r,n),a=Wh(e.stateNode,r,a),n0(e,a),ze!==4&&(ze=2)),!1;var l=Error(H(520),{cause:r});if(l=bn(l,n),hs===null?hs=[l]:hs.push(l),ze!==4&&(ze=2),t===null)return!0;r=bn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Wh(n.stateNode,r,e),n0(n,e),!1;case 1:if(t=n.type,l=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||l!==null&&typeof l.componentDidCatch=="function"&&(ua===null||!ua.has(l))))return n.flags|=65536,a&=-a,n.lanes|=a,a=l9(a),i9(a,e,n,r),n0(n,a),!1}n=n.return}while(n!==null);return!1}var Wm=Error(H(461)),Xe=!1;function ct(e,t,n,r){t.child=e===null?x5(t,null,n,r):cl(t,e.child,n,r)}function av(e,t,n,r,a){n=n.render;var l=t.ref;if("ref"in r){var i={};for(var o in r)o!=="ref"&&(i[o]=r[o])}else i=r;return ul(t),r=Um(e,t,n,i,l,a),o=Bm(),e!==null&&!Xe?(qm(e,t,a),Tr(e,t,a)):(se&&o&&Nm(t),t.flags|=1,ct(e,t,r,a),t.child)}function lv(e,t,n,r,a){if(e===null){var l=n.type;return typeof l=="function"&&!Dm(l)&&l.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=l,o9(e,t,l,r,a)):(e=Ec(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!Jm(e,a)){var i=l.memoizedProps;if(n=n.compare,n=n!==null?n:Ts,n(i,r)&&e.ref===t.ref)return Tr(e,t,a)}return t.flags|=1,e=wr(l,r),e.ref=t.ref,e.return=t,t.child=e}function o9(e,t,n,r,a){if(e!==null){var l=e.memoizedProps;if(Ts(l,r)&&e.ref===t.ref)if(Xe=!1,t.pendingProps=r=l,Jm(e,a))e.flags&131072&&(Xe=!0);else return t.lanes=e.lanes,Tr(e,t,a)}return Jh(e,t,n,r,a)}function s9(e,t,n,r){var a=r.children,l=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if(t.flags&128){if(l=l!==null?l.baseLanes|n:n,e!==null){for(r=t.child=e.child,a=0;r!==null;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~l}else r=0,t.child=null;return iv(e,t,l,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Mc(t,l!==null?l.cachePool:null),l!==null?X1(t,l):Qh(),S5(t);else return r=t.lanes=536870912,iv(e,t,l!==null?l.baseLanes|n:n,n,r)}else l!==null?(Mc(t,l.cachePool),X1(t,l),Yr(),t.memoizedState=null):(e!==null&&Mc(t,null),Qh(),Yr());return ct(e,t,a,n),t.child}function Zo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function iv(e,t,n,r,a){var l=_m();return l=l===null?null:{parent:Ie._currentValue,pool:l},t.memoizedState={baseLanes:n,cachePool:l},e!==null&&Mc(t,null),Qh(),S5(t),e!==null&&Yi(e,t,r,!0),t.childLanes=a,null}function Tc(e,t){return t=rd({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ov(e,t,n){return cl(t,e.child,null,n),e=Tc(t,t.pendingProps),e.flags|=2,Qt(t),t.memoizedState=null,e}function kC(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(se){if(r.mode==="hidden")return e=Tc(t,r),t.lanes=536870912,Zo(null,e);if(Ih(t),(e=ke)?(e=e8(e,yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ba!==null?{id:Zn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},n=h5(e),n.return=t,t.child=n,ft=t,ke=null)):e=null,e===null)throw ya(t);return t.lanes=536870912,null}return Tc(t,r)}var l=e.memoizedState;if(l!==null){var i=l.dehydrated;if(Ih(t),a)if(t.flags&256)t.flags&=-257,t=ov(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(H(558));else if(Xe||Yi(e,t,n,!1),a=(n&e.childLanes)!==0,Xe||a){if(r=Me,r!==null&&(i=K2(r,n),i!==0&&i!==l.retryLane))throw l.retryLane=i,Cl(e,i),_t(r,e,i),Wm;od(),t=ov(e,t,n)}else e=l.treeContext,ke=Cn(i.nextSibling),ft=t,se=!0,ia=null,yn=!1,e!==null&&m5(t,e),t=Tc(t,r),t.flags|=4096;return t}return e=wr(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function kc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(H(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Jh(e,t,n,r,a){return ul(t),n=Um(e,t,n,r,void 0,a),r=Bm(),e!==null&&!Xe?(qm(e,t,a),Tr(e,t,a)):(se&&r&&Nm(t),t.flags|=1,ct(e,t,n,a),t.child)}function sv(e,t,n,r,a,l){return ul(t),t.updateQueue=null,n=M5(t,r,n,a),E5(e),r=Bm(),e!==null&&!Xe?(qm(e,t,l),Tr(e,t,l)):(se&&r&&Nm(t),t.flags|=1,ct(e,t,n,l),t.child)}function uv(e,t,n,r,a){if(ul(t),t.stateNode===null){var l=ui,i=n.contextType;typeof i=="object"&&i!==null&&(l=ht(i)),l=new n(r,l),t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=$h,t.stateNode=l,l._reactInternals=t,l=t.stateNode,l.props=r,l.state=t.memoizedState,l.refs={},Pm(t),i=n.contextType,l.context=typeof i=="object"&&i!==null?ht(i):ui,l.state=t.memoizedState,i=n.getDerivedStateFromProps,typeof i=="function"&&(a0(t,n,i,r),l.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(i=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),i!==l.state&&$h.enqueueReplaceState(l,l.state,null),us(t,r,l,a),ss(),l.state=t.memoizedState),typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){l=t.stateNode;var o=t.memoizedProps,s=fl(n,o);l.props=s;var u=l.context,f=n.contextType;i=ui,typeof f=="object"&&f!==null&&(i=ht(f));var c=n.getDerivedStateFromProps;f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o||u!==i)&&nv(t,l,r,i),Gr=!1;var d=t.memoizedState;l.state=d,us(t,r,l,a),ss(),u=t.memoizedState,o||d!==u||Gr?(typeof c=="function"&&(a0(t,n,c,r),u=t.memoizedState),(s=Gr||tv(t,n,s,r,d,u,i))?(f||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=i,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Vh(e,t),i=t.memoizedProps,f=fl(n,i),l.props=f,c=t.pendingProps,d=l.context,u=n.contextType,s=ui,typeof u=="object"&&u!==null&&(s=ht(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==c||d!==s)&&nv(t,l,r,s),Gr=!1,d=t.memoizedState,l.state=d,us(t,r,l,a),ss();var h=t.memoizedState;i!==c||d!==h||Gr||e!==null&&e.dependencies!==null&&Zc(e.dependencies)?(typeof o=="function"&&(a0(t,n,o,r),h=t.memoizedState),(f=Gr||tv(t,n,f,r,d,h,s)||e!==null&&e.dependencies!==null&&Zc(e.dependencies))?(u||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,h,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,h,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),l.props=r,l.state=h,l.context=s,r=f):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return l=r,kc(e,t),r=(t.flags&128)!==0,l||r?(l=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:l.render(),t.flags|=1,e!==null&&r?(t.child=cl(t,e.child,null,a),t.child=cl(t,null,n,a)):ct(e,t,n,a),t.memoizedState=l.state,e=t.child):e=Tr(e,t,a),e}function cv(e,t,n,r){return sl(),t.flags|=256,ct(e,t,n,r),t.child}var l0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function i0(e){return{baseLanes:e,cachePool:v5()}}function o0(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function u9(e,t,n){var r=t.pendingProps,a=!1,l=(t.flags&128)!==0,i;if((i=l)||(i=e!==null&&e.memoizedState===null?!1:(Be.current&2)!==0),i&&(a=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(se){if(a?Xr(t):Yr(),(e=ke)?(e=e8(e,yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ba!==null?{id:Zn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},n=h5(e),n.return=t,t.child=n,ft=t,ke=null)):e=null,e===null)throw ya(t);return hp(e)?t.lanes=32:t.lanes=536870912,null}var o=r.children;return r=r.fallback,a?(Yr(),a=t.mode,o=rd({mode:"hidden",children:o},a),r=al(r,a,n,null),o.return=t,r.return=t,o.sibling=r,t.child=o,r=t.child,r.memoizedState=i0(n),r.childLanes=o0(e,i,n),t.memoizedState=l0,Zo(null,r)):(Xr(t),ep(t,o))}var s=e.memoizedState;if(s!==null&&(o=s.dehydrated,o!==null)){if(l)t.flags&256?(Xr(t),t.flags&=-257,t=s0(e,t,n)):t.memoizedState!==null?(Yr(),t.child=e.child,t.flags|=128,t=null):(Yr(),o=r.fallback,a=t.mode,r=rd({mode:"visible",children:r.children},a),o=al(o,a,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,cl(t,e.child,null,n),r=t.child,r.memoizedState=i0(n),r.childLanes=o0(e,i,n),t.memoizedState=l0,t=Zo(null,r));else if(Xr(t),hp(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var u=i.dgst;i=u,r=Error(H(419)),r.stack="",r.digest=i,js({value:r,source:null,stack:null}),t=s0(e,t,n)}else if(Xe||Yi(e,t,n,!1),i=(n&e.childLanes)!==0,Xe||i){if(i=Me,i!==null&&(r=K2(i,n),r!==0&&r!==s.retryLane))throw s.retryLane=r,Cl(e,r),_t(i,e,r),Wm;fp(o)||od(),t=s0(e,t,n)}else fp(o)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,ke=Cn(o.nextSibling),ft=t,se=!0,ia=null,yn=!1,e!==null&&m5(t,e),t=ep(t,r.children),t.flags|=4096);return t}return a?(Yr(),o=r.fallback,a=t.mode,s=e.child,u=s.sibling,r=wr(s,{mode:"hidden",children:r.children}),r.subtreeFlags=s.subtreeFlags&65011712,u!==null?o=wr(u,o):(o=al(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,Zo(null,r),r=t.child,o=e.child.memoizedState,o===null?o=i0(n):(a=o.cachePool,a!==null?(s=Ie._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=v5(),o={baseLanes:o.baseLanes|n,cachePool:a}),r.memoizedState=o,r.childLanes=o0(e,i,n),t.memoizedState=l0,Zo(e.child,r)):(Xr(t),n=e.child,e=n.sibling,n=wr(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=n,t.memoizedState=null,n)}function ep(e,t){return t=rd({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function rd(e,t){return e=It(22,e,null,t),e.lanes=0,e}function s0(e,t,n){return cl(t,e.child,null,n),e=ep(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Bh(e.return,t,n)}function u0(e,t,n,r,a,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a,i.treeForkCount=l)}function c9(e,t,n){var r=t.pendingProps,a=r.revealOrder,l=r.tail;r=r.children;var i=Be.current,o=(i&2)!==0;if(o?(i=i&1|2,t.flags|=128):i&=1,Re(Be,i),ct(e,t,r,n),r=se?ks:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dv(e,n,t);else if(e.tag===19)dv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Jc(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),u0(t,!1,a,n,l,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Jc(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}u0(t,!0,n,null,l,r);break;case"together":u0(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Tr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wa|=t.lanes,!(n&t.childLanes))if(e!==null){if(Yi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,n=wr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Jm(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Zc(e)))}function jC(e,t,n){switch(t.tag){case 3:Fc(t,t.stateNode.containerInfo),Ir(t,Ie,e.memoizedState.cache),sl();break;case 27:case 5:Th(t);break;case 4:Fc(t,t.stateNode.containerInfo);break;case 10:Ir(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ih(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Xr(t),t.flags|=128,null):n&t.child.childLanes?u9(e,t,n):(Xr(t),e=Tr(e,t,n),e!==null?e.sibling:null);Xr(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Yi(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return c9(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Re(Be,Be.current),r)break;return null;case 22:return t.lanes=0,s9(e,t,n,t.pendingProps);case 24:Ir(t,Ie,e.memoizedState.cache)}return Tr(e,t,n)}function d9(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Xe=!0;else{if(!Jm(e,n)&&!(t.flags&128))return Xe=!1,jC(e,t,n);Xe=!!(e.flags&131072)}else Xe=!1,se&&t.flags&1048576&&p5(t,ks,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=$a(t.elementType),t.type=e,typeof e=="function")Dm(e)?(r=fl(e,r),t.tag=1,t=uv(null,t,e,r,n)):(t.tag=0,t=Jh(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===vm){t.tag=11,t=av(null,t,e,r,n);break e}else if(a===bm){t.tag=14,t=lv(null,t,e,r,n);break e}}throw t=Oh(e)||e,Error(H(306,t,""))}}return t;case 0:return Jh(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=fl(r,t.pendingProps),uv(e,t,r,a,n);case 3:e:{if(Fc(t,t.stateNode.containerInfo),e===null)throw Error(H(387));r=t.pendingProps;var l=t.memoizedState;a=l.element,Vh(e,t),us(t,r,null,n);var i=t.memoizedState;if(r=i.cache,Ir(t,Ie,r),r!==l.cache&&qh(t,[Ie],n,!0),ss(),r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){t=cv(e,t,r,n);break e}else if(r!==a){a=bn(Error(H(424)),t),js(a),t=cv(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ke=Cn(e.firstChild),ft=t,se=!0,ia=null,yn=!0,n=x5(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(sl(),r===a){t=Tr(e,t,n);break e}ct(e,t,r,n)}t=t.child}return t;case 26:return kc(e,t),e===null?(n=Dv(t.type,null,t.pendingProps,null))?t.memoizedState=n:se||(n=t.type,e=t.pendingProps,r=dd(la.current).createElement(n),r[dt]=t,r[zt]=e,pt(r,n,e),lt(r),t.stateNode=r):t.memoizedState=Dv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Th(t),e===null&&se&&(r=t.stateNode=t8(t.type,t.pendingProps,la.current),ft=t,yn=!0,a=ke,Ra(t.type)?(pp=a,ke=Cn(r.firstChild)):ke=a),ct(e,t,t.pendingProps.children,n),kc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&se&&((a=r=ke)&&(r=iS(r,t.type,t.pendingProps,yn),r!==null?(t.stateNode=r,ft=t,ke=Cn(r.firstChild),yn=!1,a=!0):a=!1),a||ya(t)),Th(t),a=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,r=l.children,cp(a,l)?r=null:i!==null&&cp(a,i)&&(t.flags|=32),t.memoizedState!==null&&(a=Um(e,t,wC,null,null,n),zs._currentValue=a),kc(e,t),ct(e,t,r,n),t.child;case 6:return e===null&&se&&((e=n=ke)&&(n=oS(n,t.pendingProps,yn),n!==null?(t.stateNode=n,ft=t,ke=null,e=!0):e=!1),e||ya(t)),null;case 13:return u9(e,t,n);case 4:return Fc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cl(t,null,r,n):ct(e,t,r,n),t.child;case 11:return av(e,t,t.type,t.pendingProps,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ir(t,t.type,r.value),ct(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ul(t),a=ht(a),r=r(a),t.flags|=1,ct(e,t,r,n),t.child;case 14:return lv(e,t,t.type,t.pendingProps,n);case 15:return o9(e,t,t.type,t.pendingProps,n);case 19:return c9(e,t,n);case 31:return kC(e,t,n);case 22:return s9(e,t,n,t.pendingProps);case 24:return ul(t),r=ht(Ie),e===null?(a=_m(),a===null&&(a=Me,l=Lm(),a.pooledCache=l,l.refCount++,l!==null&&(a.pooledCacheLanes|=n),a=l),t.memoizedState={parent:r,cache:a},Pm(t),Ir(t,Ie,a)):(e.lanes&n&&(Vh(e,t),us(t,null,null,n),ss()),a=e.memoizedState,l=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ir(t,Ie,r)):(r=l.cache,Ir(t,Ie,r),r!==a.cache&&qh(t,[Ie],n,!0))),ct(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(H(156,t.tag))}function ir(e){e.flags|=4}function c0(e,t,n,r,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(_9())e.flags|=8192;else throw il=$c,zm}else e.flags&=-16777217}function fv(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!a8(t))if(_9())e.flags|=8192;else throw il=$c,zm}function _u(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?z2():536870912,e.lanes|=t,Ai|=t)}function vo(e,t){if(!se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Te(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function DC(e,t,n){var r=t.pendingProps;switch(Am(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Te(t),null;case 1:return Te(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Cr(Ie),Ri(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Al(t)?ir(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,t0())),Te(t),null;case 26:var a=t.type,l=t.memoizedState;return e===null?(ir(t),l!==null?(Te(t),fv(t,l)):(Te(t),c0(t,a,null,r,n))):l?l!==e.memoizedState?(ir(t),Te(t),fv(t,l)):(Te(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&ir(t),Te(t),c0(t,a,e,r,n)),null;case 27:if(Vc(t),n=la.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ir(t);else{if(!r){if(t.stateNode===null)throw Error(H(166));return Te(t),null}e=er.current,Al(t)?B1(t):(e=t8(a,r,n),t.stateNode=e,ir(t))}return Te(t),null;case 5:if(Vc(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ir(t);else{if(!r){if(t.stateNode===null)throw Error(H(166));return Te(t),null}if(l=er.current,Al(t))B1(t);else{var i=dd(la.current);switch(l){case 1:l=i.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:l=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":l=i.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":l=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":l=i.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof r.is=="string"?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?l.multiple=!0:r.size&&(l.size=r.size);break;default:l=typeof r.is=="string"?i.createElement(a,{is:r.is}):i.createElement(a)}}l[dt]=t,l[zt]=r;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)l.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=l;e:switch(pt(l,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&ir(t)}}return Te(t),c0(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ir(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(H(166));if(e=la.current,Al(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ft,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||$9(e.nodeValue,n)),e||ya(t,!0)}else e=dd(e).createTextNode(r),e[dt]=t,t.stateNode=e}return Te(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Al(t),n!==null){if(e===null){if(!r)throw Error(H(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(557));e[dt]=t}else sl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Te(t),e=!1}else n=t0(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Qt(t),t):(Qt(t),null);if(t.flags&128)throw Error(H(558))}return Te(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Al(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(H(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(H(317));a[dt]=t}else sl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Te(t),a=!1}else a=t0(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Qt(t),t):(Qt(t),null)}return Qt(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),_u(t,t.updateQueue),Te(t),null);case 4:return Ri(),e===null&&ig(t.stateNode.containerInfo),Te(t),null;case 10:return Cr(t.type),Te(t),null;case 19:if(it(Be),r=t.memoizedState,r===null)return Te(t),null;if(a=(t.flags&128)!==0,l=r.rendering,l===null)if(a)vo(r,!1);else{if(ze!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Jc(e),l!==null){for(t.flags|=128,vo(r,!1),e=l.updateQueue,t.updateQueue=e,_u(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)f5(n,e),n=n.sibling;return Re(Be,Be.current&1|2),se&&gr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Jt()>ld&&(t.flags|=128,a=!0,vo(r,!1),t.lanes=4194304)}else{if(!a)if(e=Jc(l),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,_u(t,e),vo(r,!0),r.tail===null&&r.tailMode==="hidden"&&!l.alternate&&!se)return Te(t),null}else 2*Jt()-r.renderingStartTime>ld&&n!==536870912&&(t.flags|=128,a=!0,vo(r,!1),t.lanes=4194304);r.isBackwards?(l.sibling=t.child,t.child=l):(e=r.last,e!==null?e.sibling=l:t.child=l,r.last=l)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Jt(),e.sibling=null,n=Be.current,Re(Be,a?n&1|2:n&1),se&&gr(t,r.treeForkCount),e):(Te(t),null);case 22:case 23:return Qt(t),Hm(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),n=t.updateQueue,n!==null&&_u(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&it(ll),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Cr(Ie),Te(t),null;case 25:return null;case 30:return null}throw Error(H(156,t.tag))}function NC(e,t){switch(Am(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cr(Ie),Ri(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Vc(t),null;case 31:if(t.memoizedState!==null){if(Qt(t),t.alternate===null)throw Error(H(340));sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return it(Be),null;case 4:return Ri(),null;case 10:return Cr(t.type),null;case 22:case 23:return Qt(t),Hm(),e!==null&&it(ll),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Cr(Ie),null;case 25:return null;default:return null}}function f9(e,t){switch(Am(t),t.tag){case 3:Cr(Ie),Ri();break;case 26:case 27:case 5:Vc(t);break;case 4:Ri();break;case 31:t.memoizedState!==null&&Qt(t);break;case 13:Qt(t);break;case 19:it(Be);break;case 10:Cr(t.type);break;case 22:case 23:Qt(t),Hm(),e!==null&&it(ll);break;case 24:Cr(Ie)}}function su(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var l=n.create,i=n.inst;r=l(),i.destroy=r}n=n.next}while(n!==a)}}catch(o){xe(t,t.return,o)}}function xa(e,t,n){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var l=a.next;r=l;do{if((r.tag&e)===e){var i=r.inst,o=i.destroy;if(o!==void 0){i.destroy=void 0,a=t;var s=n,u=o;try{u()}catch(f){xe(a,s,f)}}}r=r.next}while(r!==l)}}catch(f){xe(t,t.return,f)}}function h9(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{C5(t,n)}catch(r){xe(e,e.return,r)}}}function p9(e,t,n){n.props=fl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){xe(e,t,r)}}function ds(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(a){xe(e,t,a)}}function Wn(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){xe(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){xe(e,t,a)}else n.current=null}function m9(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){xe(e,e.return,a)}}function d0(e,t,n){try{var r=e.stateNode;eS(r,e.type,n,t),r[zt]=t}catch(a){xe(e,e.return,a)}}function g9(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ra(e.type)||e.tag===4}function f0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||g9(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ra(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function tp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=yr));else if(r!==4&&(r===27&&Ra(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(tp(e,t,n),e=e.sibling;e!==null;)tp(e,t,n),e=e.sibling}function ad(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Ra(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ad(e,t,n),e=e.sibling;e!==null;)ad(e,t,n),e=e.sibling}function v9(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);pt(t,r,n),t[dt]=e,t[zt]=n}catch(l){xe(e,e.return,l)}}var vr=!1,Qe=!1,h0=!1,hv=typeof WeakSet=="function"?WeakSet:Set,rt=null;function AC(e,t){if(e=e.containerInfo,sp=md,e=a5(e),Tm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,o=-1,s=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||a!==0&&c.nodeType!==3||(o=i+a),c!==l||r!==0&&c.nodeType!==3||(s=i+r),c.nodeType===3&&(i+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++u===a&&(o=i),d===l&&++f===r&&(s=i),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=o===-1||s===-1?null:{start:o,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(up={focusedElem:e,selectionRange:n},md=!1,rt=t;rt!==null;)if(t=rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,rt=e;else for(;rt!==null;){switch(t=rt,l=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&l!==null){e=void 0,n=t,a=l.memoizedProps,l=l.memoizedState,r=n.stateNode;try{var m=fl(n.type,a);e=r.getSnapshotBeforeUpdate(m,l),r.__reactInternalSnapshotBeforeUpdate=e}catch(b){xe(n,n.return,b)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)dp(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":dp(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(H(163))}if(e=t.sibling,e!==null){e.return=t.return,rt=e;break}rt=t.return}}function b9(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:sr(e,n),r&4&&su(5,n);break;case 1:if(sr(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(i){xe(n,n.return,i)}else{var a=fl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){xe(n,n.return,i)}}r&64&&h9(n),r&512&&ds(n,n.return);break;case 3:if(sr(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{C5(e,t)}catch(i){xe(n,n.return,i)}}break;case 27:t===null&&r&4&&v9(n);case 26:case 5:sr(e,n),t===null&&r&4&&m9(n),r&512&&ds(n,n.return);break;case 12:sr(e,n);break;case 31:sr(e,n),r&4&&w9(e,n);break;case 13:sr(e,n),r&4&&C9(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=qC.bind(null,n),sS(e,n))));break;case 22:if(r=n.memoizedState!==null||vr,!r){t=t!==null&&t.memoizedState!==null||Qe,a=vr;var l=Qe;vr=r,(Qe=t)&&!l?mr(e,n,(n.subtreeFlags&8772)!==0):sr(e,n),vr=a,Qe=l}break;case 30:break;default:sr(e,n)}}function y9(e){var t=e.alternate;t!==null&&(e.alternate=null,y9(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cm(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ne=null,jt=!1;function or(e,t,n){for(n=n.child;n!==null;)x9(e,t,n),n=n.sibling}function x9(e,t,n){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(tu,n)}catch{}switch(n.tag){case 26:Qe||Wn(n,t),or(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qe||Wn(n,t);var r=Ne,a=jt;Ra(n.type)&&(Ne=n.stateNode,jt=!1),or(e,t,n),ms(n.stateNode),Ne=r,jt=a;break;case 5:Qe||Wn(n,t);case 6:if(r=Ne,a=jt,Ne=null,or(e,t,n),Ne=r,jt=a,Ne!==null)if(jt)try{(Ne.nodeType===9?Ne.body:Ne.nodeName==="HTML"?Ne.ownerDocument.body:Ne).removeChild(n.stateNode)}catch(l){xe(n,t,l)}else try{Ne.removeChild(n.stateNode)}catch(l){xe(n,t,l)}break;case 18:Ne!==null&&(jt?(e=Ne,Ov(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Pi(e)):Ov(Ne,n.stateNode));break;case 4:r=Ne,a=jt,Ne=n.stateNode.containerInfo,jt=!0,or(e,t,n),Ne=r,jt=a;break;case 0:case 11:case 14:case 15:xa(2,n,t),Qe||xa(4,n,t),or(e,t,n);break;case 1:Qe||(Wn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&p9(n,t,r)),or(e,t,n);break;case 21:or(e,t,n);break;case 22:Qe=(r=Qe)||n.memoizedState!==null,or(e,t,n),Qe=r;break;default:or(e,t,n)}}function w9(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pi(e)}catch(n){xe(t,t.return,n)}}}function C9(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pi(e)}catch(n){xe(t,t.return,n)}}function LC(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new hv),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new hv),t;default:throw Error(H(435,e.tag))}}function zu(e,t){var n=LC(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=FC.bind(null,e,r);r.then(a,a)}})}function Et(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],l=e,i=t,o=i;e:for(;o!==null;){switch(o.tag){case 27:if(Ra(o.type)){Ne=o.stateNode,jt=!1;break e}break;case 5:Ne=o.stateNode,jt=!1;break e;case 3:case 4:Ne=o.stateNode.containerInfo,jt=!0;break e}o=o.return}if(Ne===null)throw Error(H(160));x9(l,i,a),Ne=null,jt=!1,l=a.alternate,l!==null&&(l.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)S9(t,e),t=t.sibling}var zn=null;function S9(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Et(t,e),Mt(e),r&4&&(xa(3,e,e.return),su(3,e),xa(5,e,e.return));break;case 1:Et(t,e),Mt(e),r&512&&(Qe||n===null||Wn(n,n.return)),r&64&&vr&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=zn;if(Et(t,e),Mt(e),r&512&&(Qe||n===null||Wn(n,n.return)),r&4){var l=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":l=a.getElementsByTagName("title")[0],(!l||l[au]||l[dt]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=a.createElement(r),a.head.insertBefore(l,a.querySelector("head > title"))),pt(l,r,n),l[dt]=e,lt(l),r=l;break e;case"link":var i=Av("link","href",a).get(r+(n.href||""));if(i){for(var o=0;o<i.length;o++)if(l=i[o],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){i.splice(o,1);break t}}l=a.createElement(r),pt(l,r,n),a.head.appendChild(l);break;case"meta":if(i=Av("meta","content",a).get(r+(n.content||""))){for(o=0;o<i.length;o++)if(l=i[o],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){i.splice(o,1);break t}}l=a.createElement(r),pt(l,r,n),a.head.appendChild(l);break;default:throw Error(H(468,r))}l[dt]=e,lt(l),r=l}e.stateNode=r}else Lv(a,e.type,e.stateNode);else e.stateNode=Nv(a,r,e.memoizedProps);else l!==r?(l===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):l.count--,r===null?Lv(a,e.type,e.stateNode):Nv(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&d0(e,e.memoizedProps,n.memoizedProps)}break;case 27:Et(t,e),Mt(e),r&512&&(Qe||n===null||Wn(n,n.return)),n!==null&&r&4&&d0(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Et(t,e),Mt(e),r&512&&(Qe||n===null||Wn(n,n.return)),e.flags&32){a=e.stateNode;try{ki(a,"")}catch(m){xe(e,e.return,m)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,d0(e,a,n!==null?n.memoizedProps:a)),r&1024&&(h0=!0);break;case 6:if(Et(t,e),Mt(e),r&4){if(e.stateNode===null)throw Error(H(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(m){xe(e,e.return,m)}}break;case 3:if(Nc=null,a=zn,zn=fd(t.containerInfo),Et(t,e),zn=a,Mt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pi(t.containerInfo)}catch(m){xe(e,e.return,m)}h0&&(h0=!1,E9(e));break;case 4:r=zn,zn=fd(e.stateNode.containerInfo),Et(t,e),Mt(e),zn=r;break;case 12:Et(t,e),Mt(e);break;case 31:Et(t,e),Mt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,zu(e,r)));break;case 13:Et(t,e),Mt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(sf=Jt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,zu(e,r)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=vr,f=Qe;if(vr=u||a,Qe=f||s,Et(t,e),Qe=f,vr=u,Mt(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||vr||Qe||Wa(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){s=n=t;try{if(l=s.stateNode,a)i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{o=s.stateNode;var c=s.memoizedProps.style,d=c!=null&&c.hasOwnProperty("display")?c.display:null;o.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(m){xe(s,s.return,m)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=a?"":s.memoizedProps}catch(m){xe(s,s.return,m)}}}else if(t.tag===18){if(n===null){s=t;try{var h=s.stateNode;a?Rv(h,!0):Rv(s.stateNode,!1)}catch(m){xe(s,s.return,m)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,zu(e,n))));break;case 19:Et(t,e),Mt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,zu(e,r)));break;case 30:break;case 21:break;default:Et(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(g9(r)){n=r;break}r=r.return}if(n==null)throw Error(H(160));switch(n.tag){case 27:var a=n.stateNode,l=f0(e);ad(e,l,a);break;case 5:var i=n.stateNode;n.flags&32&&(ki(i,""),n.flags&=-33);var o=f0(e);ad(e,o,i);break;case 3:case 4:var s=n.stateNode.containerInfo,u=f0(e);tp(e,u,s);break;default:throw Error(H(161))}}catch(f){xe(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function E9(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;E9(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)b9(e,t.alternate,t),t=t.sibling}function Wa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:xa(4,t,t.return),Wa(t);break;case 1:Wn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&p9(t,t.return,n),Wa(t);break;case 27:ms(t.stateNode);case 26:case 5:Wn(t,t.return),Wa(t);break;case 22:t.memoizedState===null&&Wa(t);break;case 30:Wa(t);break;default:Wa(t)}e=e.sibling}}function mr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,a=e,l=t,i=l.flags;switch(l.tag){case 0:case 11:case 15:mr(a,l,n),su(4,l);break;case 1:if(mr(a,l,n),r=l,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){xe(r,r.return,u)}if(r=l,a=r.updateQueue,a!==null){var o=r.stateNode;try{var s=a.shared.hiddenCallbacks;if(s!==null)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)w5(s[a],o)}catch(u){xe(r,r.return,u)}}n&&i&64&&h9(l),ds(l,l.return);break;case 27:v9(l);case 26:case 5:mr(a,l,n),n&&r===null&&i&4&&m9(l),ds(l,l.return);break;case 12:mr(a,l,n);break;case 31:mr(a,l,n),n&&i&4&&w9(a,l);break;case 13:mr(a,l,n),n&&i&4&&C9(a,l);break;case 22:l.memoizedState===null&&mr(a,l,n),ds(l,l.return);break;case 30:break;default:mr(a,l,n)}t=t.sibling}}function eg(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&iu(n))}function tg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&iu(e))}function An(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)M9(e,t,n,r),t=t.sibling}function M9(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:An(e,t,n,r),a&2048&&su(9,t);break;case 1:An(e,t,n,r);break;case 3:An(e,t,n,r),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&iu(e)));break;case 12:if(a&2048){An(e,t,n,r),e=t.stateNode;try{var l=t.memoizedProps,i=l.id,o=l.onPostCommit;typeof o=="function"&&o(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){xe(t,t.return,s)}}else An(e,t,n,r);break;case 31:An(e,t,n,r);break;case 13:An(e,t,n,r);break;case 23:break;case 22:l=t.stateNode,i=t.alternate,t.memoizedState!==null?l._visibility&2?An(e,t,n,r):fs(e,t):l._visibility&2?An(e,t,n,r):(l._visibility|=2,Yl(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&eg(i,t);break;case 24:An(e,t,n,r),a&2048&&tg(t.alternate,t);break;default:An(e,t,n,r)}}function Yl(e,t,n,r,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var l=e,i=t,o=n,s=r,u=i.flags;switch(i.tag){case 0:case 11:case 15:Yl(l,i,o,s,a),su(8,i);break;case 23:break;case 22:var f=i.stateNode;i.memoizedState!==null?f._visibility&2?Yl(l,i,o,s,a):fs(l,i):(f._visibility|=2,Yl(l,i,o,s,a)),a&&u&2048&&eg(i.alternate,i);break;case 24:Yl(l,i,o,s,a),a&&u&2048&&tg(i.alternate,i);break;default:Yl(l,i,o,s,a)}t=t.sibling}}function fs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:fs(n,r),a&2048&&eg(r.alternate,r);break;case 24:fs(n,r),a&2048&&tg(r.alternate,r);break;default:fs(n,r)}t=t.sibling}}var $o=8192;function Ll(e,t,n){if(e.subtreeFlags&$o)for(e=e.child;e!==null;)O9(e,t,n),e=e.sibling}function O9(e,t,n){switch(e.tag){case 26:Ll(e,t,n),e.flags&$o&&e.memoizedState!==null&&xS(n,zn,e.memoizedState,e.memoizedProps);break;case 5:Ll(e,t,n);break;case 3:case 4:var r=zn;zn=fd(e.stateNode.containerInfo),Ll(e,t,n),zn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=$o,$o=16777216,Ll(e,t,n),$o=r):Ll(e,t,n));break;default:Ll(e,t,n)}}function R9(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function bo(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rt=r,k9(r,e)}R9(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)T9(e),e=e.sibling}function T9(e){switch(e.tag){case 0:case 11:case 15:bo(e),e.flags&2048&&xa(9,e,e.return);break;case 3:bo(e);break;case 12:bo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jc(e)):bo(e);break;default:bo(e)}}function jc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rt=r,k9(r,e)}R9(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xa(8,t,t.return),jc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,jc(t));break;default:jc(t)}e=e.sibling}}function k9(e,t){for(;rt!==null;){var n=rt;switch(n.tag){case 0:case 11:case 15:xa(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:iu(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,rt=r;else e:for(n=e;rt!==null;){r=rt;var a=r.sibling,l=r.return;if(y9(r),r===n){rt=null;break e}if(a!==null){a.return=l,rt=a;break e}rt=l}}}var _C={getCacheForType:function(e){var t=ht(Ie),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ht(Ie).controller.signal}},zC=typeof WeakMap=="function"?WeakMap:Map,pe=0,Me=null,ie=null,oe=0,ye=0,Vt=null,ea=!1,$i=!1,ng=!1,kr=0,ze=0,wa=0,ol=0,rg=0,Zt=0,Ai=0,hs=null,Dt=null,np=!1,sf=0,j9=0,ld=1/0,id=null,ua=null,$e=0,ca=null,Li=null,Sr=0,rp=0,ap=null,D9=null,ps=0,lp=null;function nn(){return pe&2&&oe!==0?oe&-oe:W.T!==null?lg():U2()}function N9(){if(Zt===0)if(!(oe&536870912)||se){var e=Tu;Tu<<=1,!(Tu&3932160)&&(Tu=262144),Zt=e}else Zt=536870912;return e=an.current,e!==null&&(e.flags|=32),Zt}function _t(e,t,n){(e===Me&&(ye===2||ye===9)||e.cancelPendingCommit!==null)&&(_i(e,0),ta(e,oe,Zt,!1)),ru(e,n),(!(pe&2)||e!==Me)&&(e===Me&&(!(pe&2)&&(ol|=n),ze===4&&ta(e,oe,Zt,!1)),nr(e))}function A9(e,t,n){if(pe&6)throw Error(H(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||nu(e,t),a=r?KC(e,t):p0(e,t,!0),l=r;do{if(a===0){$i&&!r&&ta(e,t,0,!1);break}else{if(n=e.current.alternate,l&&!PC(n)){a=p0(e,t,!1),l=!1;continue}if(a===2){if(l=t,e.errorRecoveryDisabledLanes&l)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var o=e;a=hs;var s=o.current.memoizedState.isDehydrated;if(s&&(_i(o,i).flags|=256),i=p0(o,i,!1),i!==2){if(ng&&!s){o.errorRecoveryDisabledLanes|=l,ol|=l,a=4;break e}l=Dt,Dt=a,l!==null&&(Dt===null?Dt=l:Dt.push.apply(Dt,l))}a=i}if(l=!1,a!==2)continue}}if(a===1){_i(e,0),ta(e,t,0,!0);break}e:{switch(r=e,l=a,l){case 0:case 1:throw Error(H(345));case 4:if((t&4194048)!==t)break;case 6:ta(r,t,Zt,!ea);break e;case 2:Dt=null;break;case 3:case 5:break;default:throw Error(H(329))}if((t&62914560)===t&&(a=sf+300-Jt(),10<a)){if(ta(r,t,Zt,!ea),Zd(r,0,!0)!==0)break e;Sr=t,r.timeoutHandle=J9(pv.bind(null,r,n,Dt,id,np,t,Zt,ol,Ai,ea,l,"Throttled",-0,0),a);break e}pv(r,n,Dt,id,np,t,Zt,ol,Ai,ea,l,null,-0,0)}}break}while(!0);nr(e)}function pv(e,t,n,r,a,l,i,o,s,u,f,c,d,h){if(e.timeoutHandle=-1,c=t.subtreeFlags,c&8192||(c&16785408)===16785408){c={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yr},O9(t,l,c);var m=(l&62914560)===l?sf-Jt():(l&4194048)===l?j9-Jt():0;if(m=wS(c,m),m!==null){Sr=l,e.cancelPendingCommit=m(gv.bind(null,e,t,l,n,r,a,i,o,s,f,c,null,d,h)),ta(e,l,i,!u);return}}gv(e,t,l,n,r,a,i,o,s)}function PC(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var a=n[r],l=a.getSnapshot;a=a.value;try{if(!rn(l(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ta(e,t,n,r){t&=~rg,t&=~ol,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var l=31-tn(a),i=1<<l;r[l]=-1,a&=~i}n!==0&&P2(e,n,t)}function uf(){return pe&6?!0:(uu(0),!1)}function ag(){if(ie!==null){if(ye===0)var e=ie.return;else e=ie,xr=Sl=null,Fm(e),xi=null,Ds=0,e=ie;for(;e!==null;)f9(e.alternate,e),e=e.return;ie=null}}function _i(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,rS(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sr=0,ag(),Me=e,ie=n=wr(e.current,null),oe=t,ye=0,Vt=null,ea=!1,$i=nu(e,t),ng=!1,Ai=Zt=rg=ol=wa=ze=0,Dt=hs=null,np=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-tn(r),l=1<<a;t|=e[a],r&=~l}return kr=t,ef(),n}function L9(e,t){re=null,W.H=As,t===Zi||t===nf?(t=Q1(),ye=3):t===zm?(t=Q1(),ye=4):ye=t===Wm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Vt=t,ie===null&&(ze=1,nd(e,bn(t,e.current)))}function _9(){var e=an.current;return e===null?!0:(oe&4194048)===oe?wn===null:(oe&62914560)===oe||oe&536870912?e===wn:!1}function z9(){var e=W.H;return W.H=As,e===null?As:e}function P9(){var e=W.A;return W.A=_C,e}function od(){ze=4,ea||(oe&4194048)!==oe&&an.current!==null||($i=!0),!(wa&134217727)&&!(ol&134217727)||Me===null||ta(Me,oe,Zt,!1)}function p0(e,t,n){var r=pe;pe|=2;var a=z9(),l=P9();(Me!==e||oe!==t)&&(id=null,_i(e,t)),t=!1;var i=ze;e:do try{if(ye!==0&&ie!==null){var o=ie,s=Vt;switch(ye){case 8:ag(),i=6;break e;case 3:case 2:case 9:case 6:an.current===null&&(t=!0);var u=ye;if(ye=0,Vt=null,fi(e,o,s,u),n&&$i){i=0;break e}break;default:u=ye,ye=0,Vt=null,fi(e,o,s,u)}}HC(),i=ze;break}catch(f){L9(e,f)}while(!0);return t&&e.shellSuspendCounter++,xr=Sl=null,pe=r,W.H=a,W.A=l,ie===null&&(Me=null,oe=0,ef()),i}function HC(){for(;ie!==null;)H9(ie)}function KC(e,t){var n=pe;pe|=2;var r=z9(),a=P9();Me!==e||oe!==t?(id=null,ld=Jt()+500,_i(e,t)):$i=nu(e,t);e:do try{if(ye!==0&&ie!==null){t=ie;var l=Vt;t:switch(ye){case 1:ye=0,Vt=null,fi(e,t,l,1);break;case 2:case 9:if(G1(l)){ye=0,Vt=null,mv(t);break}t=function(){ye!==2&&ye!==9||Me!==e||(ye=7),nr(e)},l.then(t,t);break e;case 3:ye=7;break e;case 4:ye=5;break e;case 7:G1(l)?(ye=0,Vt=null,mv(t)):(ye=0,Vt=null,fi(e,t,l,7));break;case 5:var i=null;switch(ie.tag){case 26:i=ie.memoizedState;case 5:case 27:var o=ie;if(i?a8(i):o.stateNode.complete){ye=0,Vt=null;var s=o.sibling;if(s!==null)ie=s;else{var u=o.return;u!==null?(ie=u,cf(u)):ie=null}break t}}ye=0,Vt=null,fi(e,t,l,5);break;case 6:ye=0,Vt=null,fi(e,t,l,6);break;case 8:ag(),ze=6;break e;default:throw Error(H(462))}}UC();break}catch(f){L9(e,f)}while(!0);return xr=Sl=null,W.H=r,W.A=a,pe=n,ie!==null?0:(Me=null,oe=0,ef(),ze)}function UC(){for(;ie!==null&&!uw();)H9(ie)}function H9(e){var t=d9(e.alternate,e,kr);e.memoizedProps=e.pendingProps,t===null?cf(e):ie=t}function mv(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=sv(n,t,t.pendingProps,t.type,void 0,oe);break;case 11:t=sv(n,t,t.pendingProps,t.type.render,t.ref,oe);break;case 5:Fm(t);default:f9(n,t),t=ie=f5(t,kr),t=d9(n,t,kr)}e.memoizedProps=e.pendingProps,t===null?cf(e):ie=t}function fi(e,t,n,r){xr=Sl=null,Fm(t),xi=null,Ds=0;var a=t.return;try{if(TC(e,a,t,n,oe)){ze=1,nd(e,bn(n,e.current)),ie=null;return}}catch(l){if(a!==null)throw ie=a,l;ze=1,nd(e,bn(n,e.current)),ie=null;return}t.flags&32768?(se||r===1?e=!0:$i||oe&536870912?e=!1:(ea=e=!0,(r===2||r===9||r===3||r===6)&&(r=an.current,r!==null&&r.tag===13&&(r.flags|=16384))),K9(t,e)):cf(t)}function cf(e){var t=e;do{if(t.flags&32768){K9(t,ea);return}e=t.return;var n=DC(t.alternate,t,kr);if(n!==null){ie=n;return}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);ze===0&&(ze=5)}function K9(e,t){do{var n=NC(e.alternate,e);if(n!==null){n.flags&=32767,ie=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ie=e;return}ie=e=n}while(e!==null);ze=6,ie=null}function gv(e,t,n,r,a,l,i,o,s){e.cancelPendingCommit=null;do df();while($e!==0);if(pe&6)throw Error(H(327));if(t!==null){if(t===e.current)throw Error(H(177));if(l=t.lanes|t.childLanes,l|=km,yw(e,n,l,i,o,s),e===Me&&(ie=Me=null,oe=0),Li=t,ca=e,Sr=n,rp=l,ap=a,D9=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,VC(Gc,function(){return V9(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=W.T,W.T=null,a=me.p,me.p=2,i=pe,pe|=4;try{AC(e,t,n)}finally{pe=i,me.p=a,W.T=r}}$e=1,U9(),B9(),q9()}}function U9(){if($e===1){$e=0;var e=ca,t=Li,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=W.T,W.T=null;var r=me.p;me.p=2;var a=pe;pe|=4;try{S9(t,e);var l=up,i=a5(e.containerInfo),o=l.focusedElem,s=l.selectionRange;if(i!==o&&o&&o.ownerDocument&&r5(o.ownerDocument.documentElement,o)){if(s!==null&&Tm(o)){var u=s.start,f=s.end;if(f===void 0&&(f=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(f,o.value.length);else{var c=o.ownerDocument||document,d=c&&c.defaultView||window;if(d.getSelection){var h=d.getSelection(),m=o.textContent.length,b=Math.min(s.start,m),y=s.end===void 0?b:Math.min(s.end,m);!h.extend&&b>y&&(i=y,y=b,b=i);var v=H1(o,b),g=H1(o,y);if(v&&g&&(h.rangeCount!==1||h.anchorNode!==v.node||h.anchorOffset!==v.offset||h.focusNode!==g.node||h.focusOffset!==g.offset)){var x=c.createRange();x.setStart(v.node,v.offset),h.removeAllRanges(),b>y?(h.addRange(x),h.extend(g.node,g.offset)):(x.setEnd(g.node,g.offset),h.addRange(x))}}}}for(c=[],h=o;h=h.parentNode;)h.nodeType===1&&c.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<c.length;o++){var C=c[o];C.element.scrollLeft=C.left,C.element.scrollTop=C.top}}md=!!sp,up=sp=null}finally{pe=a,me.p=r,W.T=n}}e.current=t,$e=2}}function B9(){if($e===2){$e=0;var e=ca,t=Li,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=W.T,W.T=null;var r=me.p;me.p=2;var a=pe;pe|=4;try{b9(e,t.alternate,t)}finally{pe=a,me.p=r,W.T=n}}$e=3}}function q9(){if($e===4||$e===3){$e=0,cw();var e=ca,t=Li,n=Sr,r=D9;t.subtreeFlags&10256||t.flags&10256?$e=5:($e=0,Li=ca=null,F9(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(ua=null),wm(n),t=t.stateNode,en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(tu,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=W.T,a=me.p,me.p=2,W.T=null;try{for(var l=e.onRecoverableError,i=0;i<r.length;i++){var o=r[i];l(o.value,{componentStack:o.stack})}}finally{W.T=t,me.p=a}}Sr&3&&df(),nr(e),a=e.pendingLanes,n&261930&&a&42?e===lp?ps++:(ps=0,lp=e):ps=0,uu(0)}}function F9(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,iu(t)))}function df(){return U9(),B9(),q9(),V9()}function V9(){if($e!==5)return!1;var e=ca,t=rp;rp=0;var n=wm(Sr),r=W.T,a=me.p;try{me.p=32>n?32:n,W.T=null,n=ap,ap=null;var l=ca,i=Sr;if($e=0,Li=ca=null,Sr=0,pe&6)throw Error(H(331));var o=pe;if(pe|=4,T9(l.current),M9(l,l.current,i,n),pe=o,uu(0,!1),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(tu,l)}catch{}return!0}finally{me.p=a,W.T=r,F9(e,t)}}function vv(e,t,n){t=bn(n,t),t=Wh(e.stateNode,t,2),e=sa(e,t,2),e!==null&&(ru(e,2),nr(e))}function xe(e,t,n){if(e.tag===3)vv(e,e,n);else for(;t!==null;){if(t.tag===3){vv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ua===null||!ua.has(r))){e=bn(n,e),n=l9(2),r=sa(t,n,2),r!==null&&(i9(n,r,t,e),ru(r,2),nr(r));break}}t=t.return}}function m0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zC;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(ng=!0,a.add(n),e=BC.bind(null,e,t,n),t.then(e,e))}function BC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Me===e&&(oe&n)===n&&(ze===4||ze===3&&(oe&62914560)===oe&&300>Jt()-sf?!(pe&2)&&_i(e,0):rg|=n,Ai===oe&&(Ai=0)),nr(e)}function G9(e,t){t===0&&(t=z2()),e=Cl(e,t),e!==null&&(ru(e,t),nr(e))}function qC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),G9(e,n)}function FC(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(H(314))}r!==null&&r.delete(t),G9(e,n)}function VC(e,t){return ym(e,t)}var sd=null,Zl=null,ip=!1,ud=!1,g0=!1,na=0;function nr(e){e!==Zl&&e.next===null&&(Zl===null?sd=Zl=e:Zl=Zl.next=e),ud=!0,ip||(ip=!0,QC())}function uu(e,t){if(!g0&&ud){g0=!0;do for(var n=!1,r=sd;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var l=0;else{var i=r.suspendedLanes,o=r.pingedLanes;l=(1<<31-tn(42|e)+1)-1,l&=a&~(i&~o),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(n=!0,bv(r,l))}else l=oe,l=Zd(r,r===Me?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(l&3)||nu(r,l)||(n=!0,bv(r,l));r=r.next}while(n);g0=!1}}function GC(){Q9()}function Q9(){ud=ip=!1;var e=0;na!==0&&nS()&&(e=na);for(var t=Jt(),n=null,r=sd;r!==null;){var a=r.next,l=I9(r,t);l===0?(r.next=null,n===null?sd=a:n.next=a,a===null&&(Zl=n)):(n=r,(e!==0||l&3)&&(ud=!0)),r=a}$e!==0&&$e!==5||uu(e),na!==0&&(na=0)}function I9(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes&-62914561;0<l;){var i=31-tn(l),o=1<<i,s=a[i];s===-1?(!(o&n)||o&r)&&(a[i]=bw(o,t)):s<=t&&(e.expiredLanes|=o),l&=~o}if(t=Me,n=oe,n=Zd(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(ye===2||ye===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Vf(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||nu(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Vf(r),wm(n)){case 2:case 8:n=L2;break;case 32:n=Gc;break;case 268435456:n=_2;break;default:n=Gc}return r=X9.bind(null,e),n=ym(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Vf(r),e.callbackPriority=2,e.callbackNode=null,2}function X9(e,t){if($e!==0&&$e!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(df()&&e.callbackNode!==n)return null;var r=oe;return r=Zd(e,e===Me?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(A9(e,r,t),I9(e,Jt()),e.callbackNode!=null&&e.callbackNode===n?X9.bind(null,e):null)}function bv(e,t){if(df())return null;A9(e,t,!0)}function QC(){aS(function(){pe&6?ym(A2,GC):Q9()})}function lg(){if(na===0){var e=ji;e===0&&(e=Ru,Ru<<=1,!(Ru&261888)&&(Ru=256)),na=e}return na}function yv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:wc(""+e)}function xv(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function IC(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var l=yv((a[zt]||null).action),i=r.submitter;i&&(t=(t=i[zt]||null)?yv(t.formAction):i.getAttribute("formAction"),t!==null&&(l=t,i=null));var o=new $d("action","action",null,r,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(na!==0){var s=i?xv(a,i):new FormData(a);Zh(n,{pending:!0,data:s,method:a.method,action:l},null,s)}}else typeof l=="function"&&(o.preventDefault(),s=i?xv(a,i):new FormData(a),Zh(n,{pending:!0,data:s,method:a.method,action:l},l,s))},currentTarget:a}]})}}for(var v0=0;v0<Hh.length;v0++){var b0=Hh[v0],XC=b0.toLowerCase(),YC=b0[0].toUpperCase()+b0.slice(1);Un(XC,"on"+YC)}Un(i5,"onAnimationEnd");Un(o5,"onAnimationIteration");Un(s5,"onAnimationStart");Un("dblclick","onDoubleClick");Un("focusin","onFocus");Un("focusout","onBlur");Un(dC,"onTransitionRun");Un(fC,"onTransitionStart");Un(hC,"onTransitionCancel");Un(u5,"onTransitionEnd");Ti("onMouseEnter",["mouseout","mouseover"]);Ti("onMouseLeave",["mouseout","mouseover"]);Ti("onPointerEnter",["pointerout","pointerover"]);Ti("onPointerLeave",["pointerout","pointerover"]);yl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));yl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));yl("onBeforeInput",["compositionend","keypress","textInput","paste"]);yl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));yl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));yl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ls="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ZC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ls));function Y9(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var i=r.length-1;0<=i;i--){var o=r[i],s=o.instance,u=o.currentTarget;if(o=o.listener,s!==l&&a.isPropagationStopped())break e;l=o,a.currentTarget=u;try{l(a)}catch(f){Ic(f)}a.currentTarget=null,l=s}else for(i=0;i<r.length;i++){if(o=r[i],s=o.instance,u=o.currentTarget,o=o.listener,s!==l&&a.isPropagationStopped())break e;l=o,a.currentTarget=u;try{l(a)}catch(f){Ic(f)}a.currentTarget=null,l=s}}}}function le(e,t){var n=t[jh];n===void 0&&(n=t[jh]=new Set);var r=e+"__bubble";n.has(r)||(Z9(t,e,2,!1),n.add(r))}function y0(e,t,n){var r=0;t&&(r|=4),Z9(n,e,r,t)}var Pu="_reactListening"+Math.random().toString(36).slice(2);function ig(e){if(!e[Pu]){e[Pu]=!0,B2.forEach(function(n){n!=="selectionchange"&&(ZC.has(n)||y0(n,!1,e),y0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pu]||(t[Pu]=!0,y0("selectionchange",!1,t))}}function Z9(e,t,n,r){switch(u8(t)){case 2:var a=ES;break;case 8:a=MS;break;default:a=cg}n=a.bind(null,t,n,e),a=void 0,!_h||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function x0(e,t,n,r,a){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var o=r.stateNode.containerInfo;if(o===a)break;if(i===4)for(i=r.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===a)return;i=i.return}for(;o!==null;){if(i=ri(o),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){r=l=i;continue e}o=o.parentNode}}r=r.return}Y2(function(){var u=l,f=Em(n),c=[];e:{var d=c5.get(e);if(d!==void 0){var h=$d,m=e;switch(e){case"keypress":if(Sc(n)===0)break e;case"keydown":case"keyup":h=Fw;break;case"focusin":m="focus",h=Yf;break;case"focusout":m="blur",h=Yf;break;case"beforeblur":case"afterblur":h=Yf;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=T1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Dw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Qw;break;case i5:case o5:case s5:h=Lw;break;case u5:h=Xw;break;case"scroll":case"scrollend":h=kw;break;case"wheel":h=Zw;break;case"copy":case"cut":case"paste":h=zw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=j1;break;case"toggle":case"beforetoggle":h=Ww}var b=(t&4)!==0,y=!b&&(e==="scroll"||e==="scrollend"),v=b?d!==null?d+"Capture":null:d;b=[];for(var g=u,x;g!==null;){var C=g;if(x=C.stateNode,C=C.tag,C!==5&&C!==26&&C!==27||x===null||v===null||(C=Os(g,v),C!=null&&b.push(_s(g,C,x))),y)break;g=g.return}0<b.length&&(d=new h(d,m,null,n,f),c.push({event:d,listeners:b}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==Lh&&(m=n.relatedTarget||n.fromElement)&&(ri(m)||m[Ii]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=u,m=m?ri(m):null,m!==null&&(y=eu(m),b=m.tag,m!==y||b!==5&&b!==27&&b!==6)&&(m=null)):(h=null,m=u),h!==m)){if(b=T1,C="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(b=j1,C="onPointerLeave",v="onPointerEnter",g="pointer"),y=h==null?d:Yo(h),x=m==null?d:Yo(m),d=new b(C,g+"leave",h,n,f),d.target=y,d.relatedTarget=x,C=null,ri(f)===u&&(b=new b(v,g+"enter",m,n,f),b.target=x,b.relatedTarget=y,C=b),y=C,h&&m)t:{for(b=$C,v=h,g=m,x=0,C=v;C;C=b(C))x++;C=0;for(var E=g;E;E=b(E))C++;for(;0<x-C;)v=b(v),x--;for(;0<C-x;)g=b(g),C--;for(;x--;){if(v===g||g!==null&&v===g.alternate){b=v;break t}v=b(v),g=b(g)}b=null}else b=null;h!==null&&wv(c,d,h,b,!1),m!==null&&y!==null&&wv(c,y,m,b,!0)}}e:{if(d=u?Yo(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var S=L1;else if(A1(d))if(t5)S=sC;else{S=iC;var M=lC}else h=d.nodeName,!h||h.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&Sm(u.elementType)&&(S=L1):S=oC;if(S&&(S=S(e,u))){e5(c,S,n,f);break e}M&&M(e,d,u),e==="focusout"&&u&&d.type==="number"&&u.memoizedProps.value!=null&&Ah(d,"number",d.value)}switch(M=u?Yo(u):window,e){case"focusin":(A1(M)||M.contentEditable==="true")&&(ii=M,zh=u,ls=null);break;case"focusout":ls=zh=ii=null;break;case"mousedown":Ph=!0;break;case"contextmenu":case"mouseup":case"dragend":Ph=!1,K1(c,n,f);break;case"selectionchange":if(cC)break;case"keydown":case"keyup":K1(c,n,f)}var A;if(Rm)e:{switch(e){case"compositionstart":var D="onCompositionStart";break e;case"compositionend":D="onCompositionEnd";break e;case"compositionupdate":D="onCompositionUpdate";break e}D=void 0}else li?W2(e,n)&&(D="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(D="onCompositionStart");D&&($2&&n.locale!=="ko"&&(li||D!=="onCompositionStart"?D==="onCompositionEnd"&&li&&(A=Z2()):(Jr=f,Mm="value"in Jr?Jr.value:Jr.textContent,li=!0)),M=cd(u,D),0<M.length&&(D=new k1(D,e,null,n,f),c.push({event:D,listeners:M}),A?D.data=A:(A=J2(n),A!==null&&(D.data=A)))),(A=eC?tC(e,n):nC(e,n))&&(D=cd(u,"onBeforeInput"),0<D.length&&(M=new k1("onBeforeInput","beforeinput",null,n,f),c.push({event:M,listeners:D}),M.data=A)),IC(c,e,u,n,f)}Y9(c,t)})}function _s(e,t,n){return{instance:e,listener:t,currentTarget:n}}function cd(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,l=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||l===null||(a=Os(e,n),a!=null&&r.unshift(_s(e,a,l)),a=Os(e,t),a!=null&&r.push(_s(e,a,l))),e.tag===3)return r;e=e.return}return[]}function $C(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function wv(e,t,n,r,a){for(var l=t._reactName,i=[];n!==null&&n!==r;){var o=n,s=o.alternate,u=o.stateNode;if(o=o.tag,s!==null&&s===r)break;o!==5&&o!==26&&o!==27||u===null||(s=u,a?(u=Os(n,l),u!=null&&i.unshift(_s(n,u,s))):a||(u=Os(n,l),u!=null&&i.push(_s(n,u,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var WC=/\r\n?/g,JC=/\u0000|\uFFFD/g;function Cv(e){return(typeof e=="string"?e:""+e).replace(WC,`
|
|
49
|
-
`).replace(JC,"")}function $9(e,t){return t=Cv(t),Cv(e)===t}function Se(e,t,n,r,a,l){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||ki(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&ki(e,""+r);break;case"className":ju(e,"class",r);break;case"tabIndex":ju(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ju(e,n,r);break;case"style":X2(e,r,l);break;case"data":if(t!=="object"){ju(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=wc(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"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 l=="function"&&(n==="formAction"?(t!=="input"&&Se(e,t,"name",a.name,a,null),Se(e,t,"formEncType",a.formEncType,a,null),Se(e,t,"formMethod",a.formMethod,a,null),Se(e,t,"formTarget",a.formTarget,a,null)):(Se(e,t,"encType",a.encType,a,null),Se(e,t,"method",a.method,a,null),Se(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=wc(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=yr);break;case"onScroll":r!=null&&le("scroll",e);break;case"onScrollEnd":r!=null&&le("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(H(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(H(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=wc(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":le("beforetoggle",e),le("toggle",e),xc(e,"popover",r);break;case"xlinkActuate":lr(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":lr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":lr(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":lr(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":lr(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":lr(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":lr(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":lr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":lr(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":xc(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Rw.get(n)||n,xc(e,n,r))}}function op(e,t,n,r,a,l){switch(n){case"style":X2(e,r,l);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(H(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(H(60));e.innerHTML=n}}break;case"children":typeof r=="string"?ki(e,r):(typeof r=="number"||typeof r=="bigint")&&ki(e,""+r);break;case"onScroll":r!=null&&le("scroll",e);break;case"onScrollEnd":r!=null&&le("scrollend",e);break;case"onClick":r!=null&&(e.onclick=yr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!q2.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),l=e[zt]||null,l=l!=null?l[n]:null,typeof l=="function"&&e.removeEventListener(t,l,a),typeof r=="function")){typeof l!="function"&&l!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):xc(e,n,r)}}}function pt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":le("error",e),le("load",e);var r=!1,a=!1,l;for(l in n)if(n.hasOwnProperty(l)){var i=n[l];if(i!=null)switch(l){case"src":r=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(H(137,t));default:Se(e,t,l,i,n,null)}}a&&Se(e,t,"srcSet",n.srcSet,n,null),r&&Se(e,t,"src",n.src,n,null);return;case"input":le("invalid",e);var o=l=i=a=null,s=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"name":a=f;break;case"type":i=f;break;case"checked":s=f;break;case"defaultChecked":u=f;break;case"value":l=f;break;case"defaultValue":o=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(H(137,t));break;default:Se(e,t,r,f,n,null)}}G2(e,l,o,s,u,i,a,!1);return;case"select":le("invalid",e),r=i=l=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":l=o;break;case"defaultValue":i=o;break;case"multiple":r=o;default:Se(e,t,a,o,n,null)}t=l,n=i,e.multiple=!!r,t!=null?vi(e,!!r,t,!1):n!=null&&vi(e,!!r,n,!0);return;case"textarea":le("invalid",e),l=a=r=null;for(i in n)if(n.hasOwnProperty(i)&&(o=n[i],o!=null))switch(i){case"value":r=o;break;case"defaultValue":a=o;break;case"children":l=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(H(91));break;default:Se(e,t,i,o,n,null)}I2(e,r,a,l);return;case"option":for(s in n)if(n.hasOwnProperty(s)&&(r=n[s],r!=null))switch(s){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Se(e,t,s,r,n,null)}return;case"dialog":le("beforetoggle",e),le("toggle",e),le("cancel",e),le("close",e);break;case"iframe":case"object":le("load",e);break;case"video":case"audio":for(r=0;r<Ls.length;r++)le(Ls[r],e);break;case"image":le("error",e),le("load",e);break;case"details":le("toggle",e);break;case"embed":case"source":case"link":le("error",e),le("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(H(137,t));default:Se(e,t,u,r,n,null)}return;default:if(Sm(t)){for(f in n)n.hasOwnProperty(f)&&(r=n[f],r!==void 0&&op(e,t,f,r,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(r=n[o],r!=null&&Se(e,t,o,r,n,null))}function eS(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,l=null,i=null,o=null,s=null,u=null,f=null;for(h in n){var c=n[h];if(n.hasOwnProperty(h)&&c!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":s=c;default:r.hasOwnProperty(h)||Se(e,t,h,null,r,c)}}for(var d in r){var h=r[d];if(c=n[d],r.hasOwnProperty(d)&&(h!=null||c!=null))switch(d){case"type":l=h;break;case"name":a=h;break;case"checked":u=h;break;case"defaultChecked":f=h;break;case"value":i=h;break;case"defaultValue":o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(H(137,t));break;default:h!==c&&Se(e,t,d,h,r,c)}}Nh(e,i,o,s,u,f,l,a);return;case"select":h=i=o=d=null;for(l in n)if(s=n[l],n.hasOwnProperty(l)&&s!=null)switch(l){case"value":break;case"multiple":h=s;default:r.hasOwnProperty(l)||Se(e,t,l,null,r,s)}for(a in r)if(l=r[a],s=n[a],r.hasOwnProperty(a)&&(l!=null||s!=null))switch(a){case"value":d=l;break;case"defaultValue":o=l;break;case"multiple":i=l;default:l!==s&&Se(e,t,a,l,r,s)}t=o,n=i,r=h,d!=null?vi(e,!!n,d,!1):!!r!=!!n&&(t!=null?vi(e,!!n,t,!0):vi(e,!!n,n?[]:"",!1));return;case"textarea":h=d=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!r.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Se(e,t,o,null,r,a)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case"value":d=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(H(91));break;default:a!==l&&Se(e,t,i,a,r,l)}Q2(e,d,h);return;case"option":for(var m in n)if(d=n[m],n.hasOwnProperty(m)&&d!=null&&!r.hasOwnProperty(m))switch(m){case"selected":e.selected=!1;break;default:Se(e,t,m,null,r,d)}for(s in r)if(d=r[s],h=n[s],r.hasOwnProperty(s)&&d!==h&&(d!=null||h!=null))switch(s){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:Se(e,t,s,d,r,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)d=n[b],n.hasOwnProperty(b)&&d!=null&&!r.hasOwnProperty(b)&&Se(e,t,b,null,r,d);for(u in r)if(d=r[u],h=n[u],r.hasOwnProperty(u)&&d!==h&&(d!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(H(137,t));break;default:Se(e,t,u,d,r,h)}return;default:if(Sm(t)){for(var y in n)d=n[y],n.hasOwnProperty(y)&&d!==void 0&&!r.hasOwnProperty(y)&&op(e,t,y,void 0,r,d);for(f in r)d=r[f],h=n[f],!r.hasOwnProperty(f)||d===h||d===void 0&&h===void 0||op(e,t,f,d,r,h);return}}for(var v in n)d=n[v],n.hasOwnProperty(v)&&d!=null&&!r.hasOwnProperty(v)&&Se(e,t,v,null,r,d);for(c in r)d=r[c],h=n[c],!r.hasOwnProperty(c)||d===h||d==null&&h==null||Se(e,t,c,d,r,h)}function Sv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function tS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],l=a.transferSize,i=a.initiatorType,o=a.duration;if(l&&o&&Sv(i)){for(i=0,o=a.responseEnd,r+=1;r<n.length;r++){var s=n[r],u=s.startTime;if(u>o)break;var f=s.transferSize,c=s.initiatorType;f&&Sv(c)&&(s=s.responseEnd,i+=f*(s<o?1:(o-u)/(s-u)))}if(--r,t+=8*(l+i)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var sp=null,up=null;function dd(e){return e.nodeType===9?e:e.ownerDocument}function Ev(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function W9(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function cp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var w0=null;function nS(){var e=window.event;return e&&e.type==="popstate"?e===w0?!1:(w0=e,!0):(w0=null,!1)}var J9=typeof setTimeout=="function"?setTimeout:void 0,rS=typeof clearTimeout=="function"?clearTimeout:void 0,Mv=typeof Promise=="function"?Promise:void 0,aS=typeof queueMicrotask=="function"?queueMicrotask:typeof Mv<"u"?function(e){return Mv.resolve(null).then(e).catch(lS)}:J9;function lS(e){setTimeout(function(){throw e})}function Ra(e){return e==="head"}function Ov(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(a),Pi(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")ms(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ms(n);for(var l=n.firstChild;l;){var i=l.nextSibling,o=l.nodeName;l[au]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&l.rel.toLowerCase()==="stylesheet"||n.removeChild(l),l=i}}else n==="body"&&ms(e.ownerDocument.body);n=a}while(n);Pi(t)}function Rv(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function dp(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":dp(n),Cm(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function iS(e,t,n,r){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[au])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(l!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var l=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;if(e=Cn(e.nextSibling),e===null)break}return null}function oS(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Cn(e.nextSibling),e===null))return null;return e}function e8(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Cn(e.nextSibling),e===null))return null;return e}function fp(e){return e.data==="$?"||e.data==="$~"}function hp(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function sS(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Cn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var pp=null;function Tv(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Cn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function kv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function t8(e,t,n){switch(t=dd(n),e){case"html":if(e=t.documentElement,!e)throw Error(H(452));return e;case"head":if(e=t.head,!e)throw Error(H(453));return e;case"body":if(e=t.body,!e)throw Error(H(454));return e;default:throw Error(H(451))}}function ms(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cm(e)}var Sn=new Map,jv=new Set;function fd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Nr=me.d;me.d={f:uS,r:cS,D:dS,C:fS,L:hS,m:pS,X:gS,S:mS,M:vS};function uS(){var e=Nr.f(),t=uf();return e||t}function cS(e){var t=Xi(e);t!==null&&t.tag===5&&t.type==="form"?X5(t):Nr.r(e)}var Wi=typeof document>"u"?null:document;function n8(e,t,n){var r=Wi;if(r&&typeof t=="string"&&t){var a=vn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),jv.has(a)||(jv.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),pt(t,"link",e),lt(t),r.head.appendChild(t)))}}function dS(e){Nr.D(e),n8("dns-prefetch",e,null)}function fS(e,t){Nr.C(e,t),n8("preconnect",e,t)}function hS(e,t,n){Nr.L(e,t,n);var r=Wi;if(r&&e&&t){var a='link[rel="preload"][as="'+vn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+vn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+vn(n.imageSizes)+'"]')):a+='[href="'+vn(e)+'"]';var l=a;switch(t){case"style":l=zi(e);break;case"script":l=Ji(e)}Sn.has(l)||(e=De({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Sn.set(l,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(cu(l))||t==="script"&&r.querySelector(du(l))||(t=r.createElement("link"),pt(t,"link",e),lt(t),r.head.appendChild(t)))}}function pS(e,t){Nr.m(e,t);var n=Wi;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+vn(r)+'"][href="'+vn(e)+'"]',l=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=Ji(e)}if(!Sn.has(l)&&(e=De({rel:"modulepreload",href:e},t),Sn.set(l,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(du(l)))return}r=n.createElement("link"),pt(r,"link",e),lt(r),n.head.appendChild(r)}}}function mS(e,t,n){Nr.S(e,t,n);var r=Wi;if(r&&e){var a=gi(r).hoistableStyles,l=zi(e);t=t||"default";var i=a.get(l);if(!i){var o={loading:0,preload:null};if(i=r.querySelector(cu(l)))o.loading=5;else{e=De({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Sn.get(l))&&og(e,n);var s=i=r.createElement("link");lt(s),pt(s,"link",e),s._p=new Promise(function(u,f){s.onload=u,s.onerror=f}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Dc(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:o},a.set(l,i)}}}function gS(e,t){Nr.X(e,t);var n=Wi;if(n&&e){var r=gi(n).hoistableScripts,a=Ji(e),l=r.get(a);l||(l=n.querySelector(du(a)),l||(e=De({src:e,async:!0},t),(t=Sn.get(a))&&sg(e,t),l=n.createElement("script"),lt(l),pt(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},r.set(a,l))}}function vS(e,t){Nr.M(e,t);var n=Wi;if(n&&e){var r=gi(n).hoistableScripts,a=Ji(e),l=r.get(a);l||(l=n.querySelector(du(a)),l||(e=De({src:e,async:!0,type:"module"},t),(t=Sn.get(a))&&sg(e,t),l=n.createElement("script"),lt(l),pt(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},r.set(a,l))}}function Dv(e,t,n,r){var a=(a=la.current)?fd(a):null;if(!a)throw Error(H(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=zi(n.href),n=gi(a).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=zi(n.href);var l=gi(a).hoistableStyles,i=l.get(e);if(i||(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,i),(l=a.querySelector(cu(e)))&&!l._p&&(i.instance=l,i.state.loading=5),Sn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sn.set(e,n),l||bS(a,e,n,i.state))),t&&r===null)throw Error(H(528,""));return i}if(t&&r!==null)throw Error(H(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ji(n),n=gi(a).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(H(444,e))}}function zi(e){return'href="'+vn(e)+'"'}function cu(e){return'link[rel="stylesheet"]['+e+"]"}function r8(e){return De({},e,{"data-precedence":e.precedence,precedence:null})}function bS(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),pt(t,"link",n),lt(t),e.head.appendChild(t))}function Ji(e){return'[src="'+vn(e)+'"]'}function du(e){return"script[async]"+e}function Nv(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+vn(n.href)+'"]');if(r)return t.instance=r,lt(r),r;var a=De({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),lt(r),pt(r,"style",a),Dc(r,n.precedence,e),t.instance=r;case"stylesheet":a=zi(n.href);var l=e.querySelector(cu(a));if(l)return t.state.loading|=4,t.instance=l,lt(l),l;r=r8(n),(a=Sn.get(a))&&og(r,a),l=(e.ownerDocument||e).createElement("link"),lt(l);var i=l;return i._p=new Promise(function(o,s){i.onload=o,i.onerror=s}),pt(l,"link",r),t.state.loading|=4,Dc(l,n.precedence,e),t.instance=l;case"script":return l=Ji(n.src),(a=e.querySelector(du(l)))?(t.instance=a,lt(a),a):(r=n,(a=Sn.get(l))&&(r=De({},n),sg(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),lt(a),pt(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(H(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Dc(r,n.precedence,e));return t.instance}function Dc(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,l=a,i=0;i<r.length;i++){var o=r[i];if(o.dataset.precedence===t)l=o;else if(l!==a)break}l?l.parentNode.insertBefore(e,l.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function og(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function sg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Nc=null;function Av(e,t,n){if(Nc===null){var r=new Map,a=Nc=new Map;a.set(n,r)}else a=Nc,r=a.get(n),r||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var l=n[a];if(!(l[au]||l[dt]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var i=l.getAttribute(t)||"";i=e+i;var o=r.get(i);o?o.push(l):r.set(i,[l])}}return r}function Lv(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function yS(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function a8(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function xS(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var a=zi(r.href),l=t.querySelector(cu(a));if(l){t=l._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=hd.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=l,lt(l);return}l=t.ownerDocument||t,r=r8(r),(a=Sn.get(a))&&og(r,a),l=l.createElement("link"),lt(l);var i=l;i._p=new Promise(function(o,s){i.onload=o,i.onerror=s}),pt(l,"link",r),n.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=hd.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var C0=0;function wS(e,t){return e.stylesheets&&e.count===0&&Ac(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Ac(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4+t);0<e.imgBytes&&C0===0&&(C0=62500*tS());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ac(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>C0?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function hd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ac(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var pd=null;function Ac(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,pd=new Map,t.forEach(CS,e),pd=null,hd.call(e))}function CS(e,t){if(!(t.state.loading&4)){var n=pd.get(e);if(n)var r=n.get(null);else{n=new Map,pd.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<a.length;l++){var i=a[l];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}a=t.instance,i=a.getAttribute("data-precedence"),l=n.get(i)||r,l===r&&n.set(null,a),n.set(i,a),this.count++,r=hd.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),l?l.parentNode.insertBefore(a,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var zs={$$typeof:br,Provider:null,Consumer:null,_currentValue:rl,_currentValue2:rl,_threadCount:0};function SS(e,t,n,r,a,l,i,o,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Gf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gf(0),this.hiddenUpdates=Gf(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=l,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function l8(e,t,n,r,a,l,i,o,s,u,f,c){return e=new SS(e,t,n,i,s,u,f,c,o),t=1,l===!0&&(t|=24),l=It(3,null,null,t),e.current=l,l.stateNode=e,t=Lm(),t.refCount++,e.pooledCache=t,t.refCount++,l.memoizedState={element:r,isDehydrated:n,cache:t},Pm(l),e}function i8(e){return e?(e=ui,e):ui}function o8(e,t,n,r,a,l){a=i8(a),r.context===null?r.context=a:r.pendingContext=a,r=oa(t),r.payload={element:n},l=l===void 0?null:l,l!==null&&(r.callback=l),n=sa(e,r,t),n!==null&&(_t(n,e,t),os(n,e,t))}function _v(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ug(e,t){_v(e,t),(e=e.alternate)&&_v(e,t)}function s8(e){if(e.tag===13||e.tag===31){var t=Cl(e,67108864);t!==null&&_t(t,e,67108864),ug(e,67108864)}}function zv(e){if(e.tag===13||e.tag===31){var t=nn();t=xm(t);var n=Cl(e,t);n!==null&&_t(n,e,t),ug(e,t)}}var md=!0;function ES(e,t,n,r){var a=W.T;W.T=null;var l=me.p;try{me.p=2,cg(e,t,n,r)}finally{me.p=l,W.T=a}}function MS(e,t,n,r){var a=W.T;W.T=null;var l=me.p;try{me.p=8,cg(e,t,n,r)}finally{me.p=l,W.T=a}}function cg(e,t,n,r){if(md){var a=mp(r);if(a===null)x0(e,t,r,gd,n),Pv(e,r);else if(RS(a,e,t,n,r))r.stopPropagation();else if(Pv(e,r),t&4&&-1<OS.indexOf(e)){for(;a!==null;){var l=Xi(a);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var i=Za(l.pendingLanes);if(i!==0){var o=l;for(o.pendingLanes|=2,o.entangledLanes|=2;i;){var s=1<<31-tn(i);o.entanglements[1]|=s,i&=~s}nr(l),!(pe&6)&&(ld=Jt()+500,uu(0))}}break;case 31:case 13:o=Cl(l,2),o!==null&&_t(o,l,2),uf(),ug(l,2)}if(l=mp(r),l===null&&x0(e,t,r,gd,n),l===a)break;a=l}a!==null&&r.stopPropagation()}else x0(e,t,r,null,n)}}function mp(e){return e=Em(e),dg(e)}var gd=null;function dg(e){if(gd=null,e=ri(e),e!==null){var t=eu(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=T2(t),e!==null)return e;e=null}else if(n===31){if(e=k2(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return gd=e,null}function u8(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(dw()){case A2:return 2;case L2:return 8;case Gc:case fw:return 32;case _2:return 268435456;default:return 32}default:return 32}}var gp=!1,da=null,fa=null,ha=null,Ps=new Map,Hs=new Map,Zr=[],OS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Pv(e,t){switch(e){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":fa=null;break;case"mouseover":case"mouseout":ha=null;break;case"pointerover":case"pointerout":Ps.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hs.delete(t.pointerId)}}function yo(e,t,n,r,a,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[a]},t!==null&&(t=Xi(t),t!==null&&s8(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function RS(e,t,n,r,a){switch(t){case"focusin":return da=yo(da,e,t,n,r,a),!0;case"dragenter":return fa=yo(fa,e,t,n,r,a),!0;case"mouseover":return ha=yo(ha,e,t,n,r,a),!0;case"pointerover":var l=a.pointerId;return Ps.set(l,yo(Ps.get(l)||null,e,t,n,r,a)),!0;case"gotpointercapture":return l=a.pointerId,Hs.set(l,yo(Hs.get(l)||null,e,t,n,r,a)),!0}return!1}function c8(e){var t=ri(e.target);if(t!==null){var n=eu(t);if(n!==null){if(t=n.tag,t===13){if(t=T2(n),t!==null){e.blockedOn=t,w1(e.priority,function(){zv(n)});return}}else if(t===31){if(t=k2(n),t!==null){e.blockedOn=t,w1(e.priority,function(){zv(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=mp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Lh=r,n.target.dispatchEvent(r),Lh=null}else return t=Xi(n),t!==null&&s8(t),e.blockedOn=n,!1;t.shift()}return!0}function Hv(e,t,n){Lc(e)&&n.delete(t)}function TS(){gp=!1,da!==null&&Lc(da)&&(da=null),fa!==null&&Lc(fa)&&(fa=null),ha!==null&&Lc(ha)&&(ha=null),Ps.forEach(Hv),Hs.forEach(Hv)}function Hu(e,t){e.blockedOn===t&&(e.blockedOn=null,gp||(gp=!0,We.unstable_scheduleCallback(We.unstable_NormalPriority,TS)))}var Ku=null;function Kv(e){Ku!==e&&(Ku=e,We.unstable_scheduleCallback(We.unstable_NormalPriority,function(){Ku===e&&(Ku=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if(typeof r!="function"){if(dg(r||n)===null)continue;break}var l=Xi(n);l!==null&&(e.splice(t,3),t-=3,Zh(l,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Pi(e){function t(s){return Hu(s,e)}da!==null&&Hu(da,e),fa!==null&&Hu(fa,e),ha!==null&&Hu(ha,e),Ps.forEach(t),Hs.forEach(t);for(var n=0;n<Zr.length;n++){var r=Zr[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Zr.length&&(n=Zr[0],n.blockedOn===null);)c8(n),n.blockedOn===null&&Zr.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var a=n[r],l=n[r+1],i=a[zt]||null;if(typeof l=="function")i||Kv(n);else if(i){var o=null;if(l&&l.hasAttribute("formAction")){if(a=l,i=l[zt]||null)o=i.formAction;else if(dg(a)!==null)continue}else o=i.action;typeof o=="function"?n[r+1]=o:(n.splice(r,3),r-=3),Kv(n)}}}function d8(){function e(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(i){return a=i})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function fg(e){this._internalRoot=e}ff.prototype.render=fg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));var n=t.current,r=nn();o8(n,r,e,t,null,null)};ff.prototype.unmount=fg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;o8(e.current,2,null,e,null,null),uf(),t[Ii]=null}};function ff(e){this._internalRoot=e}ff.prototype.unstable_scheduleHydration=function(e){if(e){var t=U2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zr.length&&t!==0&&t<Zr[n].priority;n++);Zr.splice(n,0,e),n===0&&c8(e)}};var Uv=O2.version;if(Uv!=="19.2.3")throw Error(H(527,Uv,"19.2.3"));me.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=aw(t),e=e!==null?j2(e):null,e=e===null?null:e.stateNode,e};var kS={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Uu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uu.isDisabled&&Uu.supportsFiber)try{tu=Uu.inject(kS),en=Uu}catch{}}Xd.createRoot=function(e,t){if(!R2(e))throw Error(H(299));var n=!1,r="",a=n9,l=r9,i=a9;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=l8(e,1,!1,null,null,n,r,null,a,l,i,d8),e[Ii]=t.current,ig(e),new fg(t)};Xd.hydrateRoot=function(e,t,n){if(!R2(e))throw Error(H(299));var r=!1,a="",l=n9,i=r9,o=a9,s=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(l=n.onUncaughtError),n.onCaughtError!==void 0&&(i=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),t=l8(e,1,!0,t,n??null,r,a,s,l,i,o,d8),t.context=i8(null),n=t.current,r=nn(),r=xm(r),a=oa(r),a.callback=null,sa(n,a,r),n=r,t.current.lanes=n,ru(t,n),nr(t),e[Ii]=t.current,ig(e),new ff(t)};Xd.version="19.2.3";function f8(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f8)}catch(e){console.error(e)}}f8(),f2.exports=Xd;var jS=f2.exports,h8=e=>{throw TypeError(e)},hg=(e,t,n)=>t.has(e)||h8("Cannot "+n),R=(e,t,n)=>(hg(e,t,"read from private field"),n?n.call(e):t.get(e)),X=(e,t,n)=>t.has(e)?h8("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),q=(e,t,n,r)=>(hg(e,t,"write to private field"),t.set(e,n),n),$=(e,t,n)=>(hg(e,t,"access private method"),n),vp=(e,t,n,r)=>({set _(a){q(e,t,a)},get _(){return R(e,t,r)}});function p8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m8={exports:{}},hf={};/**
|
|
48
|
+
`+r.stack}}var jh=Object.prototype.hasOwnProperty,wm=tt.unstable_scheduleCallback,Vf=tt.unstable_cancelCallback,vw=tt.unstable_shouldYield,bw=tt.unstable_requestPaint,$t=tt.unstable_now,yw=tt.unstable_getCurrentPriorityLevel,_2=tt.unstable_ImmediatePriority,z2=tt.unstable_UserBlockingPriority,Gc=tt.unstable_NormalPriority,xw=tt.unstable_LowPriority,P2=tt.unstable_IdlePriority,ww=tt.log,Sw=tt.unstable_setDisableYieldValue,Js=null,Jt=null;function Yr(e){if(typeof ww=="function"&&Sw(e),Jt&&typeof Jt.setStrictMode=="function")try{Jt.setStrictMode(Js,e)}catch{}}var en=Math.clz32?Math.clz32:Mw,Cw=Math.log,Ew=Math.LN2;function Mw(e){return e>>>=0,e===0?32:31-(Cw(e)/Ew|0)|0}var Ou=256,Ru=262144,ku=4194304;function Ia(e){var t=e&42;if(t!==0)return t;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 Zd(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,l=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var o=r&134217727;return o!==0?(r=o&~l,r!==0?a=Ia(r):(i&=o,i!==0?a=Ia(i):n||(n=o&~e,n!==0&&(a=Ia(n))))):(o=r&~l,o!==0?a=Ia(o):i!==0?a=Ia(i):n||(n=r&~e,n!==0&&(a=Ia(n)))),a===0?0:t!==0&&t!==a&&!(t&l)&&(l=a&-a,n=t&-t,l>=n||l===32&&(n&4194048)!==0)?t:a}function eu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ow(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 H2(){var e=ku;return ku<<=1,!(ku&62914560)&&(ku=4194304),e}function Gf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tu(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Rw(e,t,n,r,a,l){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=i&~n;0<n;){var f=31-en(n),c=1<<f;o[f]=0,s[f]=-1;var d=u[f];if(d!==null)for(u[f]=null,f=0;f<d.length;f++){var h=d[f];h!==null&&(h.lane&=-536870913)}n&=~c}r!==0&&K2(e,r,0),l!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=l&~(i&~t))}function K2(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-en(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function U2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-en(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function B2(e,t){var n=t&-t;return n=n&42?1:Sm(n),n&(e.suspendedLanes|t)?0:n}function Sm(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 Cm(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function F2(){var e=ve.p;return e!==0?e:(e=window.event,e===void 0?32:d8(e.type))}function C1(e,t){var n=ve.p;try{return ve.p=e,t()}finally{ve.p=n}}var Ea=Math.random().toString(36).slice(2),ft="__reactFiber$"+Ea,Pt="__reactProps$"+Ea,qi="__reactContainer$"+Ea,Nh="__reactEvents$"+Ea,kw="__reactListeners$"+Ea,Tw="__reactHandles$"+Ea,E1="__reactResources$"+Ea,nu="__reactMarker$"+Ea;function Em(e){delete e[ft],delete e[Pt],delete e[Nh],delete e[kw],delete e[Tw]}function ei(e){var t=e[ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qi]||n[ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=jv(e);e!==null;){if(n=e[ft])return n;e=jv(e)}return t}e=n,n=e.parentNode}return null}function Vi(e){if(e=e[ft]||e[qi]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Qo(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(H(33))}function hi(e){var t=e[E1];return t||(t=e[E1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function it(e){e[nu]=!0}var q2=new Set,V2={};function ml(e,t){Ei(e,t),Ei(e+"Capture",t)}function Ei(e,t){for(V2[e]=t,e=0;e<t.length;e++)q2.add(t[e])}var Dw=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),M1={},O1={};function jw(e){return jh.call(O1,e)?!0:jh.call(M1,e)?!1:Dw.test(e)?O1[e]=!0:(M1[e]=!0,!1)}function xc(e,t,n){if(jw(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Tu(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function tr(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function hn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function G2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nw(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,l=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ah(e){if(!e._valueTracker){var t=G2(e)?"checked":"value";e._valueTracker=Nw(e,t,""+e[t])}}function Q2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G2(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Qc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Aw=/[\n"\\]/g;function vn(e){return e.replace(Aw,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Lh(e,t,n,r,a,l,i,o){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+hn(t)):e.value!==""+hn(t)&&(e.value=""+hn(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?_h(e,i,hn(t)):n!=null?_h(e,i,hn(n)):r!=null&&e.removeAttribute("value"),a==null&&l!=null&&(e.defaultChecked=!!l),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+hn(o):e.removeAttribute("name")}function I2(e,t,n,r,a,l,i,o){if(l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.type=l),t!=null||n!=null){if(!(l!=="submit"&&l!=="reset"||t!=null)){Ah(e);return}n=n!=null?""+hn(n):"",t=t!=null?""+hn(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),Ah(e)}function _h(e,t,n){t==="number"&&Qc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function pi(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+hn(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function X2(e,t,n){if(t!=null&&(t=""+hn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+hn(n):""}function Y2(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(H(92));if(Go(r)){if(1<r.length)throw Error(H(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=hn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Ah(e)}function Mi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lw=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function R1(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||Lw.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Z2(e,t,n){if(t!=null&&typeof t!="object")throw Error(H(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&R1(e,a,r)}else for(var l in t)t.hasOwnProperty(l)&&R1(e,l,t[l])}function Mm(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _w=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),zw=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function wc(e){return zw.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function mr(){}var zh=null;function Om(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ti=null,mi=null;function k1(e){var t=Vi(e);if(t&&(e=t.stateNode)){var n=e[Pt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Lh(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Pt]||null;if(!a)throw Error(H(90));Lh(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Q2(r)}break e;case"textarea":X2(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&pi(e,!!n.multiple,t,!1)}}}var Qf=!1;function W2(e,t,n){if(Qf)return e(t,n);Qf=!0;try{var r=e(t);return r}finally{if(Qf=!1,(ti!==null||mi!==null)&&(uf(),ti&&(t=ti,e=mi,mi=ti=null,k1(t),e)))for(t=0;t<e.length;t++)k1(e[t])}}function Cs(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Pt]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(H(231,t,typeof n));return n}var wr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ph=!1;if(wr)try{var co={};Object.defineProperty(co,"passive",{get:function(){Ph=!0}}),window.addEventListener("test",co,co),window.removeEventListener("test",co,co)}catch{Ph=!1}var Zr=null,Rm=null,Sc=null;function $2(){if(Sc)return Sc;var e,t=Rm,n=t.length,r,a="value"in Zr?Zr.value:Zr.textContent,l=a.length;for(e=0;e<n&&t[e]===a[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===a[l-r];r++);return Sc=a.slice(e,1<r?1-r:void 0)}function Cc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Du(){return!0}function T1(){return!1}function Ht(e){function t(n,r,a,l,i){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=l,this.target=i,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(l):l[o]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Du:T1,this.isPropagationStopped=T1,this}return Ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Du)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Du)},persist:function(){},isPersistent:Du}),t}var gl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wd=Ht(gl),ru=Ne({},gl,{view:0,detail:0}),Pw=Ht(ru),If,Xf,fo,$d=Ne({},ru,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:km,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fo&&(fo&&e.type==="mousemove"?(If=e.screenX-fo.screenX,Xf=e.screenY-fo.screenY):Xf=If=0,fo=e),If)},movementY:function(e){return"movementY"in e?e.movementY:Xf}}),D1=Ht($d),Hw=Ne({},$d,{dataTransfer:0}),Kw=Ht(Hw),Uw=Ne({},ru,{relatedTarget:0}),Yf=Ht(Uw),Bw=Ne({},gl,{animationName:0,elapsedTime:0,pseudoElement:0}),Fw=Ht(Bw),qw=Ne({},gl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vw=Ht(qw),Gw=Ne({},gl,{data:0}),j1=Ht(Gw),Qw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Iw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Xw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xw[e])?!!t[e]:!1}function km(){return Yw}var Zw=Ne({},ru,{key:function(e){if(e.key){var t=Qw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Cc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Iw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:km,charCode:function(e){return e.type==="keypress"?Cc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Cc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ww=Ht(Zw),$w=Ne({},$d,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),N1=Ht($w),Jw=Ne({},ru,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:km}),eS=Ht(Jw),tS=Ne({},gl,{propertyName:0,elapsedTime:0,pseudoElement:0}),nS=Ht(tS),rS=Ne({},$d,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),aS=Ht(rS),lS=Ne({},gl,{newState:0,oldState:0}),iS=Ht(lS),oS=[9,13,27,32],Tm=wr&&"CompositionEvent"in window,es=null;wr&&"documentMode"in document&&(es=document.documentMode);var sS=wr&&"TextEvent"in window&&!es,J2=wr&&(!Tm||es&&8<es&&11>=es),A1=" ",L1=!1;function e5(e,t){switch(e){case"keyup":return oS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function t5(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ni=!1;function uS(e,t){switch(e){case"compositionend":return t5(t);case"keypress":return t.which!==32?null:(L1=!0,A1);case"textInput":return e=t.data,e===A1&&L1?null:e;default:return null}}function cS(e,t){if(ni)return e==="compositionend"||!Tm&&e5(e,t)?(e=$2(),Sc=Rm=Zr=null,ni=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return J2&&t.locale!=="ko"?null:t.data;default:return null}}var dS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dS[e.type]:t==="textarea"}function n5(e,t,n,r){ti?mi?mi.push(r):mi=[r]:ti=r,t=cd(t,"onChange"),0<t.length&&(n=new Wd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ts=null,Es=null;function fS(e){W9(e,0)}function Jd(e){var t=Qo(e);if(Q2(t))return e}function z1(e,t){if(e==="change")return t}var r5=!1;if(wr){var Zf;if(wr){var Wf="oninput"in document;if(!Wf){var P1=document.createElement("div");P1.setAttribute("oninput","return;"),Wf=typeof P1.oninput=="function"}Zf=Wf}else Zf=!1;r5=Zf&&(!document.documentMode||9<document.documentMode)}function H1(){ts&&(ts.detachEvent("onpropertychange",a5),Es=ts=null)}function a5(e){if(e.propertyName==="value"&&Jd(Es)){var t=[];n5(t,Es,e,Om(e)),W2(fS,t)}}function hS(e,t,n){e==="focusin"?(H1(),ts=t,Es=n,ts.attachEvent("onpropertychange",a5)):e==="focusout"&&H1()}function pS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jd(Es)}function mS(e,t){if(e==="click")return Jd(t)}function gS(e,t){if(e==="input"||e==="change")return Jd(t)}function vS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:vS;function Ms(e,t){if(nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!jh.call(t,a)||!nn(e[a],t[a]))return!1}return!0}function K1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function U1(e,t){var n=K1(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=K1(n)}}function l5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?l5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function i5(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qc(e.document)}return t}function Dm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var bS=wr&&"documentMode"in document&&11>=document.documentMode,ri=null,Hh=null,ns=null,Kh=!1;function B1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Kh||ri==null||ri!==Qc(r)||(r=ri,"selectionStart"in r&&Dm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ns&&Ms(ns,r)||(ns=r,r=cd(Hh,"onSelect"),0<r.length&&(t=new Wd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ri)))}function ja(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ai={animationend:ja("Animation","AnimationEnd"),animationiteration:ja("Animation","AnimationIteration"),animationstart:ja("Animation","AnimationStart"),transitionrun:ja("Transition","TransitionRun"),transitionstart:ja("Transition","TransitionStart"),transitioncancel:ja("Transition","TransitionCancel"),transitionend:ja("Transition","TransitionEnd")},$f={},o5={};wr&&(o5=document.createElement("div").style,"AnimationEvent"in window||(delete ai.animationend.animation,delete ai.animationiteration.animation,delete ai.animationstart.animation),"TransitionEvent"in window||delete ai.transitionend.transition);function vl(e){if($f[e])return $f[e];if(!ai[e])return e;var t=ai[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in o5)return $f[e]=t[n];return e}var s5=vl("animationend"),u5=vl("animationiteration"),c5=vl("animationstart"),yS=vl("transitionrun"),xS=vl("transitionstart"),wS=vl("transitioncancel"),d5=vl("transitionend"),f5=new Map,Uh="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Uh.push("scrollEnd");function Kn(e,t){f5.set(e,t),ml(t,[e])}var Ic=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},dn=[],li=0,jm=0;function ef(){for(var e=li,t=jm=li=0;t<e;){var n=dn[t];dn[t++]=null;var r=dn[t];dn[t++]=null;var a=dn[t];dn[t++]=null;var l=dn[t];if(dn[t++]=null,r!==null&&a!==null){var i=r.pending;i===null?a.next=a:(a.next=i.next,i.next=a),r.pending=a}l!==0&&h5(n,a,l)}}function tf(e,t,n,r){dn[li++]=e,dn[li++]=t,dn[li++]=n,dn[li++]=r,jm|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Nm(e,t,n,r){return tf(e,t,n,r),Xc(e)}function bl(e,t){return tf(e,null,null,t),Xc(e)}function h5(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var a=!1,l=e.return;l!==null;)l.childLanes|=n,r=l.alternate,r!==null&&(r.childLanes|=n),l.tag===22&&(e=l.stateNode,e===null||e._visibility&1||(a=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,a&&t!==null&&(a=31-en(n),e=l.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),l):null}function Xc(e){if(50<ds)throw ds=0,op=null,Error(H(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ii={};function SS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(e,t,n,r){return new SS(e,t,n,r)}function Am(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vr(e,t){var n=e.alternate;return n===null?(n=Qt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function p5(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ec(e,t,n,r,a,l){var i=0;if(r=e,typeof e=="function")Am(e)&&(i=1);else if(typeof e=="string")i=RC(e,n,Zn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Rh:return e=Qt(31,n,t,a),e.elementType=Rh,e.lanes=l,e;case $l:return tl(n.children,a,l,t);case A2:i=8,a|=24;break;case Eh:return e=Qt(12,n,t,a|2),e.elementType=Eh,e.lanes=l,e;case Mh:return e=Qt(13,n,t,a),e.elementType=Mh,e.lanes=l,e;case Oh:return e=Qt(19,n,t,a),e.elementType=Oh,e.lanes=l,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pr:i=10;break e;case L2:i=9;break e;case ym:i=11;break e;case xm:i=14;break e;case Br:i=16,r=null;break e}i=29,n=Error(H(130,e===null?"null":typeof e,"")),r=null}return t=Qt(i,n,t,a),t.elementType=e,t.type=r,t.lanes=l,t}function tl(e,t,n,r){return e=Qt(7,e,r,t),e.lanes=n,e}function Jf(e,t,n){return e=Qt(6,e,null,t),e.lanes=n,e}function m5(e){var t=Qt(18,null,null,0);return t.stateNode=e,t}function e0(e,t,n){return t=Qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var F1=new WeakMap;function bn(e,t){if(typeof e=="object"&&e!==null){var n=F1.get(e);return n!==void 0?n:(t={value:e,source:t,stack:S1(t)},F1.set(e,t),t)}return{value:e,source:t,stack:S1(t)}}var oi=[],si=0,Yc=null,Os=0,pn=[],mn=0,ga=null,In=1,Xn="";function fr(e,t){oi[si++]=Os,oi[si++]=Yc,Yc=e,Os=t}function g5(e,t,n){pn[mn++]=In,pn[mn++]=Xn,pn[mn++]=ga,ga=e;var r=In;e=Xn;var a=32-en(r)-1;r&=~(1<<a),n+=1;var l=32-en(t)+a;if(30<l){var i=a-a%5;l=(r&(1<<i)-1).toString(32),r>>=i,a-=i,In=1<<32-en(t)+a|n<<a|r,Xn=l+e}else In=1<<l|n<<a|r,Xn=e}function Lm(e){e.return!==null&&(fr(e,1),g5(e,1,0))}function _m(e){for(;e===Yc;)Yc=oi[--si],oi[si]=null,Os=oi[--si],oi[si]=null;for(;e===ga;)ga=pn[--mn],pn[mn]=null,Xn=pn[--mn],pn[mn]=null,In=pn[--mn],pn[mn]=null}function v5(e,t){pn[mn++]=In,pn[mn++]=Xn,pn[mn++]=ga,In=t.id,Xn=t.overflow,ga=e}var ht=null,De=null,ue=!1,aa=null,yn=!1,Bh=Error(H(519));function va(e){var t=Error(H(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rs(bn(t,e)),Bh}function q1(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ft]=e,t[Pt]=r,n){case"dialog":le("cancel",t),le("close",t);break;case"iframe":case"object":case"embed":le("load",t);break;case"video":case"audio":for(n=0;n<js.length;n++)le(js[n],t);break;case"source":le("error",t);break;case"img":case"image":case"link":le("error",t),le("load",t);break;case"details":le("toggle",t);break;case"input":le("invalid",t),I2(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":le("invalid",t);break;case"textarea":le("invalid",t),Y2(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||J9(t.textContent,n)?(r.popover!=null&&(le("beforetoggle",t),le("toggle",t)),r.onScroll!=null&&le("scroll",t),r.onScrollEnd!=null&&le("scrollend",t),r.onClick!=null&&(t.onclick=mr),t=!0):t=!1,t||va(e,!0)}function V1(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:yn=!1;return;case 27:case 3:yn=!0;return;default:ht=ht.return}}function Dl(e){if(e!==ht)return!1;if(!ue)return V1(e),ue=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||fp(e.type,e.memoizedProps)),n=!n),n&&De&&va(e),V1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));De=Dv(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));De=Dv(e)}else t===27?(t=De,Ma(e.type)?(e=gp,gp=null,De=e):De=t):De=ht?Sn(e.stateNode.nextSibling):null;return!0}function ll(){De=ht=null,ue=!1}function t0(){var e=aa;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),aa=null),e}function Rs(e){aa===null?aa=[e]:aa.push(e)}var Fh=Wn(null),yl=null,gr=null;function Vr(e,t,n){ke(Fh,t._currentValue),t._currentValue=n}function br(e){e._currentValue=Fh.current,ot(Fh)}function qh(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vh(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var l=a.dependencies;if(l!==null){var i=a.child;l=l.firstContext;e:for(;l!==null;){var o=l;l=a;for(var s=0;s<t.length;s++)if(o.context===t[s]){l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),qh(l.return,n,e),r||(i=null);break e}l=o.next}}else if(a.tag===18){if(i=a.return,i===null)throw Error(H(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),qh(i,n,e),i=null}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===e){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}}function Gi(e,t,n,r){e=null;for(var a=t,l=!1;a!==null;){if(!l){if(a.flags&524288)l=!0;else if(a.flags&262144)break}if(a.tag===10){var i=a.alternate;if(i===null)throw Error(H(387));if(i=i.memoizedProps,i!==null){var o=a.type;nn(a.pendingProps.value,i.value)||(e!==null?e.push(o):e=[o])}}else if(a===Fc.current){if(i=a.alternate,i===null)throw Error(H(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(As):e=[As])}a=a.return}e!==null&&Vh(t,e,n,r),t.flags|=262144}function Zc(e){for(e=e.firstContext;e!==null;){if(!nn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function il(e){yl=e,gr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return b5(yl,e)}function ju(e,t){return yl===null&&il(e),b5(e,t)}function b5(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},gr===null){if(e===null)throw Error(H(308));gr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else gr=gr.next=t;return n}var CS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},ES=tt.unstable_scheduleCallback,MS=tt.unstable_NormalPriority,Ze={$$typeof:pr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zm(){return{controller:new CS,data:new Map,refCount:0}}function au(e){e.refCount--,e.refCount===0&&ES(MS,function(){e.controller.abort()})}var rs=null,Gh=0,Oi=0,gi=null;function OS(e,t){if(rs===null){var n=rs=[];Gh=0,Oi=og(),gi={status:"pending",value:void 0,then:function(r){n.push(r)}}}return Gh++,t.then(G1,G1),t}function G1(){if(--Gh===0&&rs!==null){gi!==null&&(gi.status="fulfilled");var e=rs;rs=null,Oi=0,gi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function RS(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(r.status="rejected",r.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),r}var Q1=J.S;J.S=function(e,t){N9=$t(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&OS(e,t),Q1!==null&&Q1(e,t)};var nl=Wn(null);function Pm(){var e=nl.current;return e!==null?e:Me.pooledCache}function Mc(e,t){t===null?ke(nl,nl.current):ke(nl,t.pool)}function y5(){var e=Pm();return e===null?null:{parent:Ze._currentValue,pool:e}}var Qi=Error(H(460)),Hm=Error(H(474)),nf=Error(H(542)),Wc={then:function(){}};function I1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function x5(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(mr,mr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Y1(e),e;default:if(typeof t.status=="string")t.then(mr,mr);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(H(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=r}},function(r){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Y1(e),e}throw rl=t,Qi}}function Xa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(rl=n,Qi):n}}var rl=null;function X1(){if(rl===null)throw Error(H(459));var e=rl;return rl=null,e}function Y1(e){if(e===Qi||e===nf)throw Error(H(483))}var vi=null,ks=0;function Nu(e){var t=ks;return ks+=1,vi===null&&(vi=[]),x5(vi,e,t)}function ho(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Au(e,t){throw t.$$typeof===hw?Error(H(525)):(e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function w5(e){function t(b,g){if(e){var x=b.deletions;x===null?(b.deletions=[g],b.flags|=16):x.push(g)}}function n(b,g){if(!e)return null;for(;g!==null;)t(b,g),g=g.sibling;return null}function r(b){for(var g=new Map;b!==null;)b.key!==null?g.set(b.key,b):g.set(b.index,b),b=b.sibling;return g}function a(b,g){return b=vr(b,g),b.index=0,b.sibling=null,b}function l(b,g,x){return b.index=x,e?(x=b.alternate,x!==null?(x=x.index,x<g?(b.flags|=67108866,g):x):(b.flags|=67108866,g)):(b.flags|=1048576,g)}function i(b){return e&&b.alternate===null&&(b.flags|=67108866),b}function o(b,g,x,S){return g===null||g.tag!==6?(g=Jf(x,b.mode,S),g.return=b,g):(g=a(g,x),g.return=b,g)}function s(b,g,x,S){var C=x.type;return C===$l?f(b,g,x.props.children,S,x.key):g!==null&&(g.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Br&&Xa(C)===g.type)?(g=a(g,x.props),ho(g,x),g.return=b,g):(g=Ec(x.type,x.key,x.props,null,b.mode,S),ho(g,x),g.return=b,g)}function u(b,g,x,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=e0(x,b.mode,S),g.return=b,g):(g=a(g,x.children||[]),g.return=b,g)}function f(b,g,x,S,C){return g===null||g.tag!==7?(g=tl(x,b.mode,S,C),g.return=b,g):(g=a(g,x),g.return=b,g)}function c(b,g,x){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Jf(""+g,b.mode,x),g.return=b,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Mu:return x=Ec(g.type,g.key,g.props,null,b.mode,x),ho(x,g),x.return=b,x;case Vo:return g=e0(g,b.mode,x),g.return=b,g;case Br:return g=Xa(g),c(b,g,x)}if(Go(g)||uo(g))return g=tl(g,b.mode,x,null),g.return=b,g;if(typeof g.then=="function")return c(b,Nu(g),x);if(g.$$typeof===pr)return c(b,ju(b,g),x);Au(b,g)}return null}function d(b,g,x,S){var C=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return C!==null?null:o(b,g,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Mu:return x.key===C?s(b,g,x,S):null;case Vo:return x.key===C?u(b,g,x,S):null;case Br:return x=Xa(x),d(b,g,x,S)}if(Go(x)||uo(x))return C!==null?null:f(b,g,x,S,null);if(typeof x.then=="function")return d(b,g,Nu(x),S);if(x.$$typeof===pr)return d(b,g,ju(b,x),S);Au(b,x)}return null}function h(b,g,x,S,C){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return b=b.get(x)||null,o(g,b,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Mu:return b=b.get(S.key===null?x:S.key)||null,s(g,b,S,C);case Vo:return b=b.get(S.key===null?x:S.key)||null,u(g,b,S,C);case Br:return S=Xa(S),h(b,g,x,S,C)}if(Go(S)||uo(S))return b=b.get(x)||null,f(g,b,S,C,null);if(typeof S.then=="function")return h(b,g,x,Nu(S),C);if(S.$$typeof===pr)return h(b,g,x,ju(g,S),C);Au(g,S)}return null}function m(b,g,x,S){for(var C=null,E=null,M=g,N=g=0,j=null;M!==null&&N<x.length;N++){M.index>N?(j=M,M=null):j=M.sibling;var A=d(b,M,x[N],S);if(A===null){M===null&&(M=j);break}e&&M&&A.alternate===null&&t(b,M),g=l(A,g,N),E===null?C=A:E.sibling=A,E=A,M=j}if(N===x.length)return n(b,M),ue&&fr(b,N),C;if(M===null){for(;N<x.length;N++)M=c(b,x[N],S),M!==null&&(g=l(M,g,N),E===null?C=M:E.sibling=M,E=M);return ue&&fr(b,N),C}for(M=r(M);N<x.length;N++)j=h(M,b,N,x[N],S),j!==null&&(e&&j.alternate!==null&&M.delete(j.key===null?N:j.key),g=l(j,g,N),E===null?C=j:E.sibling=j,E=j);return e&&M.forEach(function(U){return t(b,U)}),ue&&fr(b,N),C}function v(b,g,x,S){if(x==null)throw Error(H(151));for(var C=null,E=null,M=g,N=g=0,j=null,A=x.next();M!==null&&!A.done;N++,A=x.next()){M.index>N?(j=M,M=null):j=M.sibling;var U=d(b,M,A.value,S);if(U===null){M===null&&(M=j);break}e&&M&&U.alternate===null&&t(b,M),g=l(U,g,N),E===null?C=U:E.sibling=U,E=U,M=j}if(A.done)return n(b,M),ue&&fr(b,N),C;if(M===null){for(;!A.done;N++,A=x.next())A=c(b,A.value,S),A!==null&&(g=l(A,g,N),E===null?C=A:E.sibling=A,E=A);return ue&&fr(b,N),C}for(M=r(M);!A.done;N++,A=x.next())A=h(M,b,N,A.value,S),A!==null&&(e&&A.alternate!==null&&M.delete(A.key===null?N:A.key),g=l(A,g,N),E===null?C=A:E.sibling=A,E=A);return e&&M.forEach(function(F){return t(b,F)}),ue&&fr(b,N),C}function y(b,g,x,S){if(typeof x=="object"&&x!==null&&x.type===$l&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Mu:e:{for(var C=x.key;g!==null;){if(g.key===C){if(C=x.type,C===$l){if(g.tag===7){n(b,g.sibling),S=a(g,x.props.children),S.return=b,b=S;break e}}else if(g.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Br&&Xa(C)===g.type){n(b,g.sibling),S=a(g,x.props),ho(S,x),S.return=b,b=S;break e}n(b,g);break}else t(b,g);g=g.sibling}x.type===$l?(S=tl(x.props.children,b.mode,S,x.key),S.return=b,b=S):(S=Ec(x.type,x.key,x.props,null,b.mode,S),ho(S,x),S.return=b,b=S)}return i(b);case Vo:e:{for(C=x.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(b,g.sibling),S=a(g,x.children||[]),S.return=b,b=S;break e}else{n(b,g);break}else t(b,g);g=g.sibling}S=e0(x,b.mode,S),S.return=b,b=S}return i(b);case Br:return x=Xa(x),y(b,g,x,S)}if(Go(x))return m(b,g,x,S);if(uo(x)){if(C=uo(x),typeof C!="function")throw Error(H(150));return x=C.call(x),v(b,g,x,S)}if(typeof x.then=="function")return y(b,g,Nu(x),S);if(x.$$typeof===pr)return y(b,g,ju(b,x),S);Au(b,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,g!==null&&g.tag===6?(n(b,g.sibling),S=a(g,x),S.return=b,b=S):(n(b,g),S=Jf(x,b.mode,S),S.return=b,b=S),i(b)):n(b,g)}return function(b,g,x,S){try{ks=0;var C=y(b,g,x,S);return vi=null,C}catch(M){if(M===Qi||M===nf)throw M;var E=Qt(29,M,null,b.mode);return E.lanes=S,E.return=b,E}finally{}}}var ol=w5(!0),S5=w5(!1),Fr=!1;function Km(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function la(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ia(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,me&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=Xc(e),h5(e,null,n),t}return tf(e,r,t,n),Xc(e)}function as(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,U2(e,n)}}function n0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};l===null?a=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?a=l=t:l=l.next=t}else a=l=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:l,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ih=!1;function ls(){if(Ih){var e=gi;if(e!==null)throw e}}function is(e,t,n,r){Ih=!1;var a=e.updateQueue;Fr=!1;var l=a.firstBaseUpdate,i=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var s=o,u=s.next;s.next=null,i===null?l=u:i.next=u,i=s;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==i&&(o===null?f.firstBaseUpdate=u:o.next=u,f.lastBaseUpdate=s))}if(l!==null){var c=a.baseState;i=0,f=u=s=null,o=l;do{var d=o.lane&-536870913,h=d!==o.lane;if(h?(oe&d)===d:(r&d)===d){d!==0&&d===Oi&&(Ih=!0),f!==null&&(f=f.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var m=e,v=o;d=t;var y=n;switch(v.tag){case 1:if(m=v.payload,typeof m=="function"){c=m.call(y,c,d);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,d=typeof m=="function"?m.call(y,c,d):m,d==null)break e;c=Ne({},c,d);break e;case 2:Fr=!0}}d=o.callback,d!==null&&(e.flags|=64,h&&(e.flags|=8192),h=a.callbacks,h===null?a.callbacks=[d]:h.push(d))}else h={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(u=f=h,s=c):f=f.next=h,i|=d;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;h=o,o=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);f===null&&(s=c),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=f,l===null&&(a.shared.lanes=0),ya|=i,e.lanes=i,e.memoizedState=c}}function C5(e,t){if(typeof e!="function")throw Error(H(191,e));e.call(t)}function E5(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)C5(n[e],t)}var Ri=Wn(null),$c=Wn(0);function Z1(e,t){e=Mr,ke($c,e),ke(Ri,t),Mr=e|t.baseLanes}function Xh(){ke($c,Mr),ke(Ri,Ri.current)}function Um(){Mr=$c.current,ot(Ri),ot($c)}var rn=Wn(null),wn=null;function Gr(e){var t=e.alternate;ke(Ve,Ve.current&1),ke(rn,e),wn===null&&(t===null||Ri.current!==null||t.memoizedState!==null)&&(wn=e)}function Yh(e){ke(Ve,Ve.current),ke(rn,e),wn===null&&(wn=e)}function M5(e){e.tag===22?(ke(Ve,Ve.current),ke(rn,e),wn===null&&(wn=e)):Qr()}function Qr(){ke(Ve,Ve.current),ke(rn,rn.current)}function Gt(e){ot(rn),wn===e&&(wn=null),ot(Ve)}var Ve=Wn(0);function Jc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||pp(n)||mp(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Sr=0,re=null,Ee=null,Xe=null,ed=!1,bi=!1,sl=!1,td=0,Ts=0,yi=null,kS=0;function Pe(){throw Error(H(321))}function Bm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nn(e[n],t[n]))return!1;return!0}function Fm(e,t,n,r,a,l){return Sr=l,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,J.H=e===null||e.memoizedState===null?n9:Jm,sl=!1,l=n(r,a),sl=!1,bi&&(l=R5(t,n,r,a)),O5(e),l}function O5(e){J.H=Ds;var t=Ee!==null&&Ee.next!==null;if(Sr=0,Xe=Ee=re=null,ed=!1,Ts=0,yi=null,t)throw Error(H(300));e===null||We||(e=e.dependencies,e!==null&&Zc(e)&&(We=!0))}function R5(e,t,n,r){re=e;var a=0;do{if(bi&&(yi=null),Ts=0,bi=!1,25<=a)throw Error(H(301));if(a+=1,Xe=Ee=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}J.H=r9,l=t(n,r)}while(bi);return l}function TS(){var e=J.H,t=e.useState()[0];return t=typeof t.then=="function"?lu(t):t,e=e.useState()[0],(Ee!==null?Ee.memoizedState:null)!==e&&(re.flags|=1024),t}function qm(){var e=td!==0;return td=0,e}function Vm(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Gm(e){if(ed){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ed=!1}Sr=0,Xe=Ee=re=null,bi=!1,Ts=td=0,yi=null}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?re.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Ge(){if(Ee===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Ee.next;var t=Xe===null?re.memoizedState:Xe.next;if(t!==null)Xe=t,Ee=e;else{if(e===null)throw re.alternate===null?Error(H(467)):Error(H(310));Ee=e,e={memoizedState:Ee.memoizedState,baseState:Ee.baseState,baseQueue:Ee.baseQueue,queue:Ee.queue,next:null},Xe===null?re.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function rf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function lu(e){var t=Ts;return Ts+=1,yi===null&&(yi=[]),e=x5(yi,e,t),t=re,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,J.H=t===null||t.memoizedState===null?n9:Jm),e}function af(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return lu(e);if(e.$$typeof===pr)return pt(e)}throw Error(H(438,String(e)))}function Qm(e){var t=null,n=re.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=re.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=rf(),re.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=pw;return t.index++,n}function Cr(e,t){return typeof t=="function"?t(e):t}function Oc(e){var t=Ge();return Im(t,Ee,e)}function Im(e,t,n){var r=e.queue;if(r===null)throw Error(H(311));r.lastRenderedReducer=n;var a=e.baseQueue,l=r.pending;if(l!==null){if(a!==null){var i=a.next;a.next=l.next,l.next=i}t.baseQueue=a=l,r.pending=null}if(l=e.baseState,a===null)e.memoizedState=l;else{t=a.next;var o=i=null,s=null,u=t,f=!1;do{var c=u.lane&-536870913;if(c!==u.lane?(oe&c)===c:(Sr&c)===c){var d=u.revertLane;if(d===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),c===Oi&&(f=!0);else if((Sr&d)===d){u=u.next,d===Oi&&(f=!0);continue}else c={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=c,i=l):s=s.next=c,re.lanes|=d,ya|=d;c=u.action,sl&&n(l,c),l=u.hasEagerState?u.eagerState:n(l,c)}else d={lane:c,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=d,i=l):s=s.next=d,re.lanes|=c,ya|=c;u=u.next}while(u!==null&&u!==t);if(s===null?i=l:s.next=o,!nn(l,e.memoizedState)&&(We=!0,f&&(n=gi,n!==null)))throw n;e.memoizedState=l,e.baseState=i,e.baseQueue=s,r.lastRenderedState=l}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function r0(e){var t=Ge(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,l=t.memoizedState;if(a!==null){n.pending=null;var i=a=a.next;do l=e(l,i.action),i=i.next;while(i!==a);nn(l,t.memoizedState)||(We=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function k5(e,t,n){var r=re,a=Ge(),l=ue;if(l){if(n===void 0)throw Error(H(407));n=n()}else n=t();var i=!nn((Ee||a).memoizedState,n);if(i&&(a.memoizedState=n,We=!0),a=a.queue,Xm(j5.bind(null,r,a,e),[e]),a.getSnapshot!==t||i||Xe!==null&&Xe.memoizedState.tag&1){if(r.flags|=2048,ki(9,{destroy:void 0},D5.bind(null,r,a,n,t),null),Me===null)throw Error(H(349));l||Sr&127||T5(r,t,n)}return n}function T5(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=re.updateQueue,t===null?(t=rf(),re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function D5(e,t,n,r){t.value=n,t.getSnapshot=r,N5(t)&&A5(e)}function j5(e,t,n){return n(function(){N5(t)&&A5(e)})}function N5(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nn(e,n)}catch{return!0}}function A5(e){var t=bl(e,2);t!==null&&zt(t,e,2)}function Zh(e){var t=xt();if(typeof e=="function"){var n=e;if(e=n(),sl){Yr(!0);try{n()}finally{Yr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:e},t}function L5(e,t,n,r){return e.baseState=n,Im(e,Ee,typeof r=="function"?r:Cr)}function DS(e,t,n,r,a){if(of(e))throw Error(H(485));if(e=t.action,e!==null){var l={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){l.listeners.push(i)}};J.T!==null?n(!0):l.isTransition=!1,r(l),n=t.pending,n===null?(l.next=t.pending=l,_5(t,l)):(l.next=n.next,t.pending=n.next=l)}}function _5(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var l=J.T,i={};J.T=i;try{var o=n(a,r),s=J.S;s!==null&&s(i,o),W1(e,t,o)}catch(u){Wh(e,t,u)}finally{l!==null&&i.types!==null&&(l.types=i.types),J.T=l}}else try{l=n(a,r),W1(e,t,l)}catch(u){Wh(e,t,u)}}function W1(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){$1(e,t,r)},function(r){return Wh(e,t,r)}):$1(e,t,n)}function $1(e,t,n){t.status="fulfilled",t.value=n,z5(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,_5(e,n)))}function Wh(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,z5(t),t=t.next;while(t!==r)}e.action=null}function z5(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function P5(e,t){return t}function J1(e,t){if(ue){var n=Me.formState;if(n!==null){e:{var r=re;if(ue){if(De){t:{for(var a=De,l=yn;a.nodeType!==8;){if(!l){a=null;break t}if(a=Sn(a.nextSibling),a===null){a=null;break t}}l=a.data,a=l==="F!"||l==="F"?a:null}if(a){De=Sn(a.nextSibling),r=a.data==="F!";break e}}va(r)}r=!1}r&&(t=n[0])}}return n=xt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:P5,lastRenderedState:t},n.queue=r,n=J5.bind(null,re,r),r.dispatch=n,r=Zh(!1),l=$m.bind(null,re,!1,r.queue),r=xt(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=DS.bind(null,re,a,l,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function ev(e){var t=Ge();return H5(t,Ee,e)}function H5(e,t,n){if(t=Im(e,t,P5)[0],e=Oc(Cr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=lu(t)}catch(i){throw i===Qi?nf:i}else r=t;t=Ge();var a=t.queue,l=a.dispatch;return n!==t.memoizedState&&(re.flags|=2048,ki(9,{destroy:void 0},jS.bind(null,a,n),null)),[r,l,e]}function jS(e,t){e.action=t}function tv(e){var t=Ge(),n=Ee;if(n!==null)return H5(t,n,e);Ge(),t=t.memoizedState,n=Ge();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ki(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=re.updateQueue,t===null&&(t=rf(),re.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function K5(){return Ge().memoizedState}function Rc(e,t,n,r){var a=xt();re.flags|=e,a.memoizedState=ki(1|t,{destroy:void 0},n,r===void 0?null:r)}function lf(e,t,n,r){var a=Ge();r=r===void 0?null:r;var l=a.memoizedState.inst;Ee!==null&&r!==null&&Bm(r,Ee.memoizedState.deps)?a.memoizedState=ki(t,l,n,r):(re.flags|=e,a.memoizedState=ki(1|t,l,n,r))}function nv(e,t){Rc(8390656,8,e,t)}function Xm(e,t){lf(2048,8,e,t)}function NS(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=rf(),re.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function U5(e){var t=Ge().memoizedState;return NS({ref:t,nextImpl:e}),function(){if(me&2)throw Error(H(440));return t.impl.apply(void 0,arguments)}}function B5(e,t){return lf(4,2,e,t)}function F5(e,t){return lf(4,4,e,t)}function q5(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function V5(e,t,n){n=n!=null?n.concat([e]):null,lf(4,4,q5.bind(null,t,e),n)}function Ym(){}function G5(e,t){var n=Ge();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Bm(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Q5(e,t){var n=Ge();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Bm(t,r[1]))return r[0];if(r=e(),sl){Yr(!0);try{e()}finally{Yr(!1)}}return n.memoizedState=[r,t],r}function Zm(e,t,n){return n===void 0||Sr&1073741824&&!(oe&261930)?e.memoizedState=t:(e.memoizedState=n,e=L9(),re.lanes|=e,ya|=e,n)}function I5(e,t,n,r){return nn(n,t)?n:Ri.current!==null?(e=Zm(e,n,r),nn(e,t)||(We=!0),e):!(Sr&42)||Sr&1073741824&&!(oe&261930)?(We=!0,e.memoizedState=n):(e=L9(),re.lanes|=e,ya|=e,t)}function X5(e,t,n,r,a){var l=ve.p;ve.p=l!==0&&8>l?l:8;var i=J.T,o={};J.T=o,$m(e,!1,t,n);try{var s=a(),u=J.S;if(u!==null&&u(o,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var f=RS(s,r);os(e,t,f,tn(e))}else os(e,t,r,tn(e))}catch(c){os(e,t,{then:function(){},status:"rejected",reason:c},tn())}finally{ve.p=l,i!==null&&o.types!==null&&(i.types=o.types),J.T=i}}function AS(){}function $h(e,t,n,r){if(e.tag!==5)throw Error(H(476));var a=Y5(e).queue;X5(e,a,t,el,n===null?AS:function(){return Z5(e),n(r)})}function Y5(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:el,baseState:el,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:el},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Z5(e){var t=Y5(e);t.next===null&&(t=e.alternate.memoizedState),os(e,t.next.queue,{},tn())}function Wm(){return pt(As)}function W5(){return Ge().memoizedState}function $5(){return Ge().memoizedState}function LS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=tn();e=la(n);var r=ia(t,e,n);r!==null&&(zt(r,t,n),as(r,t,n)),t={cache:zm()},e.payload=t;return}t=t.return}}function _S(e,t,n){var r=tn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},of(e)?e9(t,n):(n=Nm(e,t,n,r),n!==null&&(zt(n,e,r),t9(n,t,r)))}function J5(e,t,n){var r=tn();os(e,t,n,r)}function os(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(of(e))e9(t,a);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,o=l(i,n);if(a.hasEagerState=!0,a.eagerState=o,nn(o,i))return tf(e,t,a,0),Me===null&&ef(),!1}catch{}finally{}if(n=Nm(e,t,a,r),n!==null)return zt(n,e,r),t9(n,t,r),!0}return!1}function $m(e,t,n,r){if(r={lane:2,revertLane:og(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},of(e)){if(t)throw Error(H(479))}else t=Nm(e,n,r,2),t!==null&&zt(t,e,2)}function of(e){var t=e.alternate;return e===re||t!==null&&t===re}function e9(e,t){bi=ed=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function t9(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,U2(e,n)}}var Ds={readContext:pt,use:af,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useLayoutEffect:Pe,useInsertionEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useSyncExternalStore:Pe,useId:Pe,useHostTransitionStatus:Pe,useFormState:Pe,useActionState:Pe,useOptimistic:Pe,useMemoCache:Pe,useCacheRefresh:Pe};Ds.useEffectEvent=Pe;var n9={readContext:pt,use:af,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:nv,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Rc(4194308,4,q5.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Rc(4194308,4,e,t)},useInsertionEffect:function(e,t){Rc(4,2,e,t)},useMemo:function(e,t){var n=xt();t=t===void 0?null:t;var r=e();if(sl){Yr(!0);try{e()}finally{Yr(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=xt();if(n!==void 0){var a=n(t);if(sl){Yr(!0);try{n(t)}finally{Yr(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=_S.bind(null,re,e),[r.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:function(e){e=Zh(e);var t=e.queue,n=J5.bind(null,re,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ym,useDeferredValue:function(e,t){var n=xt();return Zm(n,e,t)},useTransition:function(){var e=Zh(!1);return e=X5.bind(null,re,e.queue,!0,!1),xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=re,a=xt();if(ue){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),Me===null)throw Error(H(349));oe&127||T5(r,t,n)}a.memoizedState=n;var l={value:n,getSnapshot:t};return a.queue=l,nv(j5.bind(null,r,l,e),[e]),r.flags|=2048,ki(9,{destroy:void 0},D5.bind(null,r,l,n,t),null),n},useId:function(){var e=xt(),t=Me.identifierPrefix;if(ue){var n=Xn,r=In;n=(r&~(1<<32-en(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=td++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=kS++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Wm,useFormState:J1,useActionState:J1,useOptimistic:function(e){var t=xt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=$m.bind(null,re,!0,n),n.dispatch=t,[e,t]},useMemoCache:Qm,useCacheRefresh:function(){return xt().memoizedState=LS.bind(null,re)},useEffectEvent:function(e){var t=xt(),n={impl:e};return t.memoizedState=n,function(){if(me&2)throw Error(H(440));return n.impl.apply(void 0,arguments)}}},Jm={readContext:pt,use:af,useCallback:G5,useContext:pt,useEffect:Xm,useImperativeHandle:V5,useInsertionEffect:B5,useLayoutEffect:F5,useMemo:Q5,useReducer:Oc,useRef:K5,useState:function(){return Oc(Cr)},useDebugValue:Ym,useDeferredValue:function(e,t){var n=Ge();return I5(n,Ee.memoizedState,e,t)},useTransition:function(){var e=Oc(Cr)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:lu(e),t]},useSyncExternalStore:k5,useId:W5,useHostTransitionStatus:Wm,useFormState:ev,useActionState:ev,useOptimistic:function(e,t){var n=Ge();return L5(n,Ee,e,t)},useMemoCache:Qm,useCacheRefresh:$5};Jm.useEffectEvent=U5;var r9={readContext:pt,use:af,useCallback:G5,useContext:pt,useEffect:Xm,useImperativeHandle:V5,useInsertionEffect:B5,useLayoutEffect:F5,useMemo:Q5,useReducer:r0,useRef:K5,useState:function(){return r0(Cr)},useDebugValue:Ym,useDeferredValue:function(e,t){var n=Ge();return Ee===null?Zm(n,e,t):I5(n,Ee.memoizedState,e,t)},useTransition:function(){var e=r0(Cr)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:lu(e),t]},useSyncExternalStore:k5,useId:W5,useHostTransitionStatus:Wm,useFormState:tv,useActionState:tv,useOptimistic:function(e,t){var n=Ge();return Ee!==null?L5(n,Ee,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Qm,useCacheRefresh:$5};r9.useEffectEvent=U5;function a0(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Jh={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tn(),a=la(r);a.payload=t,n!=null&&(a.callback=n),t=ia(e,a,r),t!==null&&(zt(t,e,r),as(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tn(),a=la(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=ia(e,a,r),t!==null&&(zt(t,e,r),as(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tn(),r=la(n);r.tag=2,t!=null&&(r.callback=t),t=ia(e,r,n),t!==null&&(zt(t,e,n),as(t,e,n))}};function rv(e,t,n,r,a,l,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,i):t.prototype&&t.prototype.isPureReactComponent?!Ms(n,r)||!Ms(a,l):!0}function av(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Jh.enqueueReplaceState(t,t.state,null)}function ul(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=Ne({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function a9(e){Ic(e)}function l9(e){console.error(e)}function i9(e){Ic(e)}function nd(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function lv(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function ep(e,t,n){return n=la(n),n.tag=3,n.payload={element:null},n.callback=function(){nd(e,t)},n}function o9(e){return e=la(e),e.tag=3,e}function s9(e,t,n,r){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var l=r.value;e.payload=function(){return a(l)},e.callback=function(){lv(t,n,r)}}var i=n.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){lv(t,n,r),typeof a!="function"&&(oa===null?oa=new Set([this]):oa.add(this));var o=r.stack;this.componentDidCatch(r.value,{componentStack:o!==null?o:""})})}function zS(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Gi(t,n,a,!0),n=rn.current,n!==null){switch(n.tag){case 31:case 13:return wn===null?od():n.alternate===null&&He===0&&(He=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Wc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),m0(e,r,a)),!1;case 22:return n.flags|=65536,r===Wc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),m0(e,r,a)),!1}throw Error(H(435,n.tag))}return m0(e,r,a),od(),!1}if(ue)return t=rn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Bh&&(e=Error(H(422),{cause:r}),Rs(bn(e,n)))):(r!==Bh&&(t=Error(H(423),{cause:r}),Rs(bn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=bn(r,n),a=ep(e.stateNode,r,a),n0(e,a),He!==4&&(He=2)),!1;var l=Error(H(520),{cause:r});if(l=bn(l,n),cs===null?cs=[l]:cs.push(l),He!==4&&(He=2),t===null)return!0;r=bn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=ep(n.stateNode,r,e),n0(n,e),!1;case 1:if(t=n.type,l=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||l!==null&&typeof l.componentDidCatch=="function"&&(oa===null||!oa.has(l))))return n.flags|=65536,a&=-a,n.lanes|=a,a=o9(a),s9(a,e,n,r),n0(n,a),!1}n=n.return}while(n!==null);return!1}var eg=Error(H(461)),We=!1;function dt(e,t,n,r){t.child=e===null?S5(t,null,n,r):ol(t,e.child,n,r)}function iv(e,t,n,r,a){n=n.render;var l=t.ref;if("ref"in r){var i={};for(var o in r)o!=="ref"&&(i[o]=r[o])}else i=r;return il(t),r=Fm(e,t,n,i,l,a),o=qm(),e!==null&&!We?(Vm(e,t,a),Er(e,t,a)):(ue&&o&&Lm(t),t.flags|=1,dt(e,t,r,a),t.child)}function ov(e,t,n,r,a){if(e===null){var l=n.type;return typeof l=="function"&&!Am(l)&&l.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=l,u9(e,t,l,r,a)):(e=Ec(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!tg(e,a)){var i=l.memoizedProps;if(n=n.compare,n=n!==null?n:Ms,n(i,r)&&e.ref===t.ref)return Er(e,t,a)}return t.flags|=1,e=vr(l,r),e.ref=t.ref,e.return=t,t.child=e}function u9(e,t,n,r,a){if(e!==null){var l=e.memoizedProps;if(Ms(l,r)&&e.ref===t.ref)if(We=!1,t.pendingProps=r=l,tg(e,a))e.flags&131072&&(We=!0);else return t.lanes=e.lanes,Er(e,t,a)}return tp(e,t,n,r,a)}function c9(e,t,n,r){var a=r.children,l=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if(t.flags&128){if(l=l!==null?l.baseLanes|n:n,e!==null){for(r=t.child=e.child,a=0;r!==null;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~l}else r=0,t.child=null;return sv(e,t,l,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Mc(t,l!==null?l.cachePool:null),l!==null?Z1(t,l):Xh(),M5(t);else return r=t.lanes=536870912,sv(e,t,l!==null?l.baseLanes|n:n,n,r)}else l!==null?(Mc(t,l.cachePool),Z1(t,l),Qr(),t.memoizedState=null):(e!==null&&Mc(t,null),Xh(),Qr());return dt(e,t,a,n),t.child}function Io(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sv(e,t,n,r,a){var l=Pm();return l=l===null?null:{parent:Ze._currentValue,pool:l},t.memoizedState={baseLanes:n,cachePool:l},e!==null&&Mc(t,null),Xh(),M5(t),e!==null&&Gi(e,t,r,!0),t.childLanes=a,null}function kc(e,t){return t=rd({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uv(e,t,n){return ol(t,e.child,null,n),e=kc(t,t.pendingProps),e.flags|=2,Gt(t),t.memoizedState=null,e}function PS(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ue){if(r.mode==="hidden")return e=kc(t,r),t.lanes=536870912,Io(null,e);if(Yh(t),(e=De)?(e=n8(e,yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ga!==null?{id:In,overflow:Xn}:null,retryLane:536870912,hydrationErrors:null},n=m5(e),n.return=t,t.child=n,ht=t,De=null)):e=null,e===null)throw va(t);return t.lanes=536870912,null}return kc(t,r)}var l=e.memoizedState;if(l!==null){var i=l.dehydrated;if(Yh(t),a)if(t.flags&256)t.flags&=-257,t=uv(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(H(558));else if(We||Gi(e,t,n,!1),a=(n&e.childLanes)!==0,We||a){if(r=Me,r!==null&&(i=B2(r,n),i!==0&&i!==l.retryLane))throw l.retryLane=i,bl(e,i),zt(r,e,i),eg;od(),t=uv(e,t,n)}else e=l.treeContext,De=Sn(i.nextSibling),ht=t,ue=!0,aa=null,yn=!1,e!==null&&v5(t,e),t=kc(t,r),t.flags|=4096;return t}return e=vr(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(H(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function tp(e,t,n,r,a){return il(t),n=Fm(e,t,n,r,void 0,a),r=qm(),e!==null&&!We?(Vm(e,t,a),Er(e,t,a)):(ue&&r&&Lm(t),t.flags|=1,dt(e,t,n,a),t.child)}function cv(e,t,n,r,a,l){return il(t),t.updateQueue=null,n=R5(t,r,n,a),O5(e),r=qm(),e!==null&&!We?(Vm(e,t,l),Er(e,t,l)):(ue&&r&&Lm(t),t.flags|=1,dt(e,t,n,l),t.child)}function dv(e,t,n,r,a){if(il(t),t.stateNode===null){var l=ii,i=n.contextType;typeof i=="object"&&i!==null&&(l=pt(i)),l=new n(r,l),t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=Jh,t.stateNode=l,l._reactInternals=t,l=t.stateNode,l.props=r,l.state=t.memoizedState,l.refs={},Km(t),i=n.contextType,l.context=typeof i=="object"&&i!==null?pt(i):ii,l.state=t.memoizedState,i=n.getDerivedStateFromProps,typeof i=="function"&&(a0(t,n,i,r),l.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(i=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),i!==l.state&&Jh.enqueueReplaceState(l,l.state,null),is(t,r,l,a),ls(),l.state=t.memoizedState),typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){l=t.stateNode;var o=t.memoizedProps,s=ul(n,o);l.props=s;var u=l.context,f=n.contextType;i=ii,typeof f=="object"&&f!==null&&(i=pt(f));var c=n.getDerivedStateFromProps;f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o||u!==i)&&av(t,l,r,i),Fr=!1;var d=t.memoizedState;l.state=d,is(t,r,l,a),ls(),u=t.memoizedState,o||d!==u||Fr?(typeof c=="function"&&(a0(t,n,c,r),u=t.memoizedState),(s=Fr||rv(t,n,s,r,d,u,i))?(f||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=i,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Qh(e,t),i=t.memoizedProps,f=ul(n,i),l.props=f,c=t.pendingProps,d=l.context,u=n.contextType,s=ii,typeof u=="object"&&u!==null&&(s=pt(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==c||d!==s)&&av(t,l,r,s),Fr=!1,d=t.memoizedState,l.state=d,is(t,r,l,a),ls();var h=t.memoizedState;i!==c||d!==h||Fr||e!==null&&e.dependencies!==null&&Zc(e.dependencies)?(typeof o=="function"&&(a0(t,n,o,r),h=t.memoizedState),(f=Fr||rv(t,n,f,r,d,h,s)||e!==null&&e.dependencies!==null&&Zc(e.dependencies))?(u||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,h,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,h,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),l.props=r,l.state=h,l.context=s,r=f):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return l=r,Tc(e,t),r=(t.flags&128)!==0,l||r?(l=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:l.render(),t.flags|=1,e!==null&&r?(t.child=ol(t,e.child,null,a),t.child=ol(t,null,n,a)):dt(e,t,n,a),t.memoizedState=l.state,e=t.child):e=Er(e,t,a),e}function fv(e,t,n,r){return ll(),t.flags|=256,dt(e,t,n,r),t.child}var l0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function i0(e){return{baseLanes:e,cachePool:y5()}}function o0(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Yt),e}function d9(e,t,n){var r=t.pendingProps,a=!1,l=(t.flags&128)!==0,i;if((i=l)||(i=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),i&&(a=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(ue){if(a?Gr(t):Qr(),(e=De)?(e=n8(e,yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ga!==null?{id:In,overflow:Xn}:null,retryLane:536870912,hydrationErrors:null},n=m5(e),n.return=t,t.child=n,ht=t,De=null)):e=null,e===null)throw va(t);return mp(e)?t.lanes=32:t.lanes=536870912,null}var o=r.children;return r=r.fallback,a?(Qr(),a=t.mode,o=rd({mode:"hidden",children:o},a),r=tl(r,a,n,null),o.return=t,r.return=t,o.sibling=r,t.child=o,r=t.child,r.memoizedState=i0(n),r.childLanes=o0(e,i,n),t.memoizedState=l0,Io(null,r)):(Gr(t),np(t,o))}var s=e.memoizedState;if(s!==null&&(o=s.dehydrated,o!==null)){if(l)t.flags&256?(Gr(t),t.flags&=-257,t=s0(e,t,n)):t.memoizedState!==null?(Qr(),t.child=e.child,t.flags|=128,t=null):(Qr(),o=r.fallback,a=t.mode,r=rd({mode:"visible",children:r.children},a),o=tl(o,a,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,ol(t,e.child,null,n),r=t.child,r.memoizedState=i0(n),r.childLanes=o0(e,i,n),t.memoizedState=l0,t=Io(null,r));else if(Gr(t),mp(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var u=i.dgst;i=u,r=Error(H(419)),r.stack="",r.digest=i,Rs({value:r,source:null,stack:null}),t=s0(e,t,n)}else if(We||Gi(e,t,n,!1),i=(n&e.childLanes)!==0,We||i){if(i=Me,i!==null&&(r=B2(i,n),r!==0&&r!==s.retryLane))throw s.retryLane=r,bl(e,r),zt(i,e,r),eg;pp(o)||od(),t=s0(e,t,n)}else pp(o)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,De=Sn(o.nextSibling),ht=t,ue=!0,aa=null,yn=!1,e!==null&&v5(t,e),t=np(t,r.children),t.flags|=4096);return t}return a?(Qr(),o=r.fallback,a=t.mode,s=e.child,u=s.sibling,r=vr(s,{mode:"hidden",children:r.children}),r.subtreeFlags=s.subtreeFlags&65011712,u!==null?o=vr(u,o):(o=tl(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,Io(null,r),r=t.child,o=e.child.memoizedState,o===null?o=i0(n):(a=o.cachePool,a!==null?(s=Ze._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=y5(),o={baseLanes:o.baseLanes|n,cachePool:a}),r.memoizedState=o,r.childLanes=o0(e,i,n),t.memoizedState=l0,Io(e.child,r)):(Gr(t),n=e.child,e=n.sibling,n=vr(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=n,t.memoizedState=null,n)}function np(e,t){return t=rd({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function rd(e,t){return e=Qt(22,e,null,t),e.lanes=0,e}function s0(e,t,n){return ol(t,e.child,null,n),e=np(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),qh(e.return,t,n)}function u0(e,t,n,r,a,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a,i.treeForkCount=l)}function f9(e,t,n){var r=t.pendingProps,a=r.revealOrder,l=r.tail;r=r.children;var i=Ve.current,o=(i&2)!==0;if(o?(i=i&1|2,t.flags|=128):i&=1,ke(Ve,i),dt(e,t,r,n),r=ue?Os:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hv(e,n,t);else if(e.tag===19)hv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Jc(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),u0(t,!1,a,n,l,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Jc(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}u0(t,!0,n,null,l,r);break;case"together":u0(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Er(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ya|=t.lanes,!(n&t.childLanes))if(e!==null){if(Gi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,n=vr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function tg(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Zc(e)))}function HS(e,t,n){switch(t.tag){case 3:qc(t,t.stateNode.containerInfo),Vr(t,Ze,e.memoizedState.cache),ll();break;case 27:case 5:Dh(t);break;case 4:qc(t,t.stateNode.containerInfo);break;case 10:Vr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Yh(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Gr(t),t.flags|=128,null):n&t.child.childLanes?d9(e,t,n):(Gr(t),e=Er(e,t,n),e!==null?e.sibling:null);Gr(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Gi(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return f9(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ke(Ve,Ve.current),r)break;return null;case 22:return t.lanes=0,c9(e,t,n,t.pendingProps);case 24:Vr(t,Ze,e.memoizedState.cache)}return Er(e,t,n)}function h9(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!tg(e,n)&&!(t.flags&128))return We=!1,HS(e,t,n);We=!!(e.flags&131072)}else We=!1,ue&&t.flags&1048576&&g5(t,Os,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Xa(t.elementType),t.type=e,typeof e=="function")Am(e)?(r=ul(e,r),t.tag=1,t=dv(null,t,e,r,n)):(t.tag=0,t=tp(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===ym){t.tag=11,t=iv(null,t,e,r,n);break e}else if(a===xm){t.tag=14,t=ov(null,t,e,r,n);break e}}throw t=kh(e)||e,Error(H(306,t,""))}}return t;case 0:return tp(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=ul(r,t.pendingProps),dv(e,t,r,a,n);case 3:e:{if(qc(t,t.stateNode.containerInfo),e===null)throw Error(H(387));r=t.pendingProps;var l=t.memoizedState;a=l.element,Qh(e,t),is(t,r,null,n);var i=t.memoizedState;if(r=i.cache,Vr(t,Ze,r),r!==l.cache&&Vh(t,[Ze],n,!0),ls(),r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){t=fv(e,t,r,n);break e}else if(r!==a){a=bn(Error(H(424)),t),Rs(a),t=fv(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(De=Sn(e.firstChild),ht=t,ue=!0,aa=null,yn=!0,n=S5(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ll(),r===a){t=Er(e,t,n);break e}dt(e,t,r,n)}t=t.child}return t;case 26:return Tc(e,t),e===null?(n=Av(t.type,null,t.pendingProps,null))?t.memoizedState=n:ue||(n=t.type,e=t.pendingProps,r=dd(ra.current).createElement(n),r[ft]=t,r[Pt]=e,mt(r,n,e),it(r),t.stateNode=r):t.memoizedState=Av(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Dh(t),e===null&&ue&&(r=t.stateNode=r8(t.type,t.pendingProps,ra.current),ht=t,yn=!0,a=De,Ma(t.type)?(gp=a,De=Sn(r.firstChild)):De=a),dt(e,t,t.pendingProps.children,n),Tc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ue&&((a=r=De)&&(r=pC(r,t.type,t.pendingProps,yn),r!==null?(t.stateNode=r,ht=t,De=Sn(r.firstChild),yn=!1,a=!0):a=!1),a||va(t)),Dh(t),a=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,r=l.children,fp(a,l)?r=null:i!==null&&fp(a,i)&&(t.flags|=32),t.memoizedState!==null&&(a=Fm(e,t,TS,null,null,n),As._currentValue=a),Tc(e,t),dt(e,t,r,n),t.child;case 6:return e===null&&ue&&((e=n=De)&&(n=mC(n,t.pendingProps,yn),n!==null?(t.stateNode=n,ht=t,De=null,e=!0):e=!1),e||va(t)),null;case 13:return d9(e,t,n);case 4:return qc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ol(t,null,r,n):dt(e,t,r,n),t.child;case 11:return iv(e,t,t.type,t.pendingProps,n);case 7:return dt(e,t,t.pendingProps,n),t.child;case 8:return dt(e,t,t.pendingProps.children,n),t.child;case 12:return dt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Vr(t,t.type,r.value),dt(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,il(t),a=pt(a),r=r(a),t.flags|=1,dt(e,t,r,n),t.child;case 14:return ov(e,t,t.type,t.pendingProps,n);case 15:return u9(e,t,t.type,t.pendingProps,n);case 19:return f9(e,t,n);case 31:return PS(e,t,n);case 22:return c9(e,t,n,t.pendingProps);case 24:return il(t),r=pt(Ze),e===null?(a=Pm(),a===null&&(a=Me,l=zm(),a.pooledCache=l,l.refCount++,l!==null&&(a.pooledCacheLanes|=n),a=l),t.memoizedState={parent:r,cache:a},Km(t),Vr(t,Ze,a)):(e.lanes&n&&(Qh(e,t),is(t,null,null,n),ls()),a=e.memoizedState,l=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Vr(t,Ze,r)):(r=l.cache,Vr(t,Ze,r),r!==a.cache&&Vh(t,[Ze],n,!0))),dt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(H(156,t.tag))}function nr(e){e.flags|=4}function c0(e,t,n,r,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(P9())e.flags|=8192;else throw rl=Wc,Hm}else e.flags&=-16777217}function pv(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!i8(t))if(P9())e.flags|=8192;else throw rl=Wc,Hm}function Lu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?H2():536870912,e.lanes|=t,Ti|=t)}function po(e,t){if(!ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Te(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function KS(e,t,n){var r=t.pendingProps;switch(_m(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Te(t),null;case 1:return Te(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),br(Ze),Ci(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Dl(t)?nr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,t0())),Te(t),null;case 26:var a=t.type,l=t.memoizedState;return e===null?(nr(t),l!==null?(Te(t),pv(t,l)):(Te(t),c0(t,a,null,r,n))):l?l!==e.memoizedState?(nr(t),Te(t),pv(t,l)):(Te(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&nr(t),Te(t),c0(t,a,e,r,n)),null;case 27:if(Vc(t),n=ra.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&nr(t);else{if(!r){if(t.stateNode===null)throw Error(H(166));return Te(t),null}e=Zn.current,Dl(t)?q1(t):(e=r8(a,r,n),t.stateNode=e,nr(t))}return Te(t),null;case 5:if(Vc(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&nr(t);else{if(!r){if(t.stateNode===null)throw Error(H(166));return Te(t),null}if(l=Zn.current,Dl(t))q1(t);else{var i=dd(ra.current);switch(l){case 1:l=i.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:l=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":l=i.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":l=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":l=i.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof r.is=="string"?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?l.multiple=!0:r.size&&(l.size=r.size);break;default:l=typeof r.is=="string"?i.createElement(a,{is:r.is}):i.createElement(a)}}l[ft]=t,l[Pt]=r;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)l.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=l;e:switch(mt(l,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&nr(t)}}return Te(t),c0(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&nr(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(H(166));if(e=ra.current,Dl(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ht,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ft]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||J9(e.nodeValue,n)),e||va(t,!0)}else e=dd(e).createTextNode(r),e[ft]=t,t.stateNode=e}return Te(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Dl(t),n!==null){if(e===null){if(!r)throw Error(H(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(557));e[ft]=t}else ll(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Te(t),e=!1}else n=t0(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Gt(t),t):(Gt(t),null);if(t.flags&128)throw Error(H(558))}return Te(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Dl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(H(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(H(317));a[ft]=t}else ll(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Te(t),a=!1}else a=t0(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lu(t,t.updateQueue),Te(t),null);case 4:return Ci(),e===null&&sg(t.stateNode.containerInfo),Te(t),null;case 10:return br(t.type),Te(t),null;case 19:if(ot(Ve),r=t.memoizedState,r===null)return Te(t),null;if(a=(t.flags&128)!==0,l=r.rendering,l===null)if(a)po(r,!1);else{if(He!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Jc(e),l!==null){for(t.flags|=128,po(r,!1),e=l.updateQueue,t.updateQueue=e,Lu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)p5(n,e),n=n.sibling;return ke(Ve,Ve.current&1|2),ue&&fr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&$t()>ld&&(t.flags|=128,a=!0,po(r,!1),t.lanes=4194304)}else{if(!a)if(e=Jc(l),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Lu(t,e),po(r,!0),r.tail===null&&r.tailMode==="hidden"&&!l.alternate&&!ue)return Te(t),null}else 2*$t()-r.renderingStartTime>ld&&n!==536870912&&(t.flags|=128,a=!0,po(r,!1),t.lanes=4194304);r.isBackwards?(l.sibling=t.child,t.child=l):(e=r.last,e!==null?e.sibling=l:t.child=l,r.last=l)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=$t(),e.sibling=null,n=Ve.current,ke(Ve,a?n&1|2:n&1),ue&&fr(t,r.treeForkCount),e):(Te(t),null);case 22:case 23:return Gt(t),Um(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),n=t.updateQueue,n!==null&&Lu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ot(nl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),br(Ze),Te(t),null;case 25:return null;case 30:return null}throw Error(H(156,t.tag))}function US(e,t){switch(_m(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return br(Ze),Ci(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Vc(t),null;case 31:if(t.memoizedState!==null){if(Gt(t),t.alternate===null)throw Error(H(340));ll()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));ll()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ot(Ve),null;case 4:return Ci(),null;case 10:return br(t.type),null;case 22:case 23:return Gt(t),Um(),e!==null&&ot(nl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return br(Ze),null;case 25:return null;default:return null}}function p9(e,t){switch(_m(t),t.tag){case 3:br(Ze),Ci();break;case 26:case 27:case 5:Vc(t);break;case 4:Ci();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:ot(Ve);break;case 10:br(t.type);break;case 22:case 23:Gt(t),Um(),e!==null&&ot(nl);break;case 24:br(Ze)}}function iu(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var l=n.create,i=n.inst;r=l(),i.destroy=r}n=n.next}while(n!==a)}}catch(o){we(t,t.return,o)}}function ba(e,t,n){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var l=a.next;r=l;do{if((r.tag&e)===e){var i=r.inst,o=i.destroy;if(o!==void 0){i.destroy=void 0,a=t;var s=n,u=o;try{u()}catch(f){we(a,s,f)}}}r=r.next}while(r!==l)}}catch(f){we(t,t.return,f)}}function m9(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{E5(t,n)}catch(r){we(e,e.return,r)}}}function g9(e,t,n){n.props=ul(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){we(e,t,r)}}function ss(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(a){we(e,t,a)}}function Yn(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){we(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){we(e,t,a)}else n.current=null}function v9(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){we(e,e.return,a)}}function d0(e,t,n){try{var r=e.stateNode;sC(r,e.type,n,t),r[Pt]=t}catch(a){we(e,e.return,a)}}function b9(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ma(e.type)||e.tag===4}function f0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||b9(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ma(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function rp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mr));else if(r!==4&&(r===27&&Ma(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(rp(e,t,n),e=e.sibling;e!==null;)rp(e,t,n),e=e.sibling}function ad(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Ma(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ad(e,t,n),e=e.sibling;e!==null;)ad(e,t,n),e=e.sibling}function y9(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);mt(t,r,n),t[ft]=e,t[Pt]=n}catch(l){we(e,e.return,l)}}var hr=!1,Ye=!1,h0=!1,mv=typeof WeakSet=="function"?WeakSet:Set,at=null;function BS(e,t){if(e=e.containerInfo,cp=md,e=i5(e),Dm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,o=-1,s=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||a!==0&&c.nodeType!==3||(o=i+a),c!==l||r!==0&&c.nodeType!==3||(s=i+r),c.nodeType===3&&(i+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++u===a&&(o=i),d===l&&++f===r&&(s=i),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=o===-1||s===-1?null:{start:o,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(dp={focusedElem:e,selectionRange:n},md=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,l=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&l!==null){e=void 0,n=t,a=l.memoizedProps,l=l.memoizedState,r=n.stateNode;try{var m=ul(n.type,a);e=r.getSnapshotBeforeUpdate(m,l),r.__reactInternalSnapshotBeforeUpdate=e}catch(v){we(n,n.return,v)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)hp(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":hp(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(H(163))}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}}function x9(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ar(e,n),r&4&&iu(5,n);break;case 1:if(ar(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(i){we(n,n.return,i)}else{var a=ul(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){we(n,n.return,i)}}r&64&&m9(n),r&512&&ss(n,n.return);break;case 3:if(ar(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{E5(e,t)}catch(i){we(n,n.return,i)}}break;case 27:t===null&&r&4&&y9(n);case 26:case 5:ar(e,n),t===null&&r&4&&v9(n),r&512&&ss(n,n.return);break;case 12:ar(e,n);break;case 31:ar(e,n),r&4&&C9(e,n);break;case 13:ar(e,n),r&4&&E9(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ZS.bind(null,n),gC(e,n))));break;case 22:if(r=n.memoizedState!==null||hr,!r){t=t!==null&&t.memoizedState!==null||Ye,a=hr;var l=Ye;hr=r,(Ye=t)&&!l?dr(e,n,(n.subtreeFlags&8772)!==0):ar(e,n),hr=a,Ye=l}break;case 30:break;default:ar(e,n)}}function w9(e){var t=e.alternate;t!==null&&(e.alternate=null,w9(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Em(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ae=null,jt=!1;function rr(e,t,n){for(n=n.child;n!==null;)S9(e,t,n),n=n.sibling}function S9(e,t,n){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(Js,n)}catch{}switch(n.tag){case 26:Ye||Yn(n,t),rr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ye||Yn(n,t);var r=Ae,a=jt;Ma(n.type)&&(Ae=n.stateNode,jt=!1),rr(e,t,n),fs(n.stateNode),Ae=r,jt=a;break;case 5:Ye||Yn(n,t);case 6:if(r=Ae,a=jt,Ae=null,rr(e,t,n),Ae=r,jt=a,Ae!==null)if(jt)try{(Ae.nodeType===9?Ae.body:Ae.nodeName==="HTML"?Ae.ownerDocument.body:Ae).removeChild(n.stateNode)}catch(l){we(n,t,l)}else try{Ae.removeChild(n.stateNode)}catch(l){we(n,t,l)}break;case 18:Ae!==null&&(jt?(e=Ae,kv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ai(e)):kv(Ae,n.stateNode));break;case 4:r=Ae,a=jt,Ae=n.stateNode.containerInfo,jt=!0,rr(e,t,n),Ae=r,jt=a;break;case 0:case 11:case 14:case 15:ba(2,n,t),Ye||ba(4,n,t),rr(e,t,n);break;case 1:Ye||(Yn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&g9(n,t,r)),rr(e,t,n);break;case 21:rr(e,t,n);break;case 22:Ye=(r=Ye)||n.memoizedState!==null,rr(e,t,n),Ye=r;break;default:rr(e,t,n)}}function C9(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ai(e)}catch(n){we(t,t.return,n)}}}function E9(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ai(e)}catch(n){we(t,t.return,n)}}function FS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new mv),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new mv),t;default:throw Error(H(435,e.tag))}}function _u(e,t){var n=FS(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=WS.bind(null,e,r);r.then(a,a)}})}function Mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],l=e,i=t,o=i;e:for(;o!==null;){switch(o.tag){case 27:if(Ma(o.type)){Ae=o.stateNode,jt=!1;break e}break;case 5:Ae=o.stateNode,jt=!1;break e;case 3:case 4:Ae=o.stateNode.containerInfo,jt=!0;break e}o=o.return}if(Ae===null)throw Error(H(160));S9(l,i,a),Ae=null,jt=!1,l=a.alternate,l!==null&&(l.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)M9(t,e),t=t.sibling}var _n=null;function M9(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Mt(t,e),Ot(e),r&4&&(ba(3,e,e.return),iu(3,e),ba(5,e,e.return));break;case 1:Mt(t,e),Ot(e),r&512&&(Ye||n===null||Yn(n,n.return)),r&64&&hr&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=_n;if(Mt(t,e),Ot(e),r&512&&(Ye||n===null||Yn(n,n.return)),r&4){var l=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":l=a.getElementsByTagName("title")[0],(!l||l[nu]||l[ft]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=a.createElement(r),a.head.insertBefore(l,a.querySelector("head > title"))),mt(l,r,n),l[ft]=e,it(l),r=l;break e;case"link":var i=_v("link","href",a).get(r+(n.href||""));if(i){for(var o=0;o<i.length;o++)if(l=i[o],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){i.splice(o,1);break t}}l=a.createElement(r),mt(l,r,n),a.head.appendChild(l);break;case"meta":if(i=_v("meta","content",a).get(r+(n.content||""))){for(o=0;o<i.length;o++)if(l=i[o],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){i.splice(o,1);break t}}l=a.createElement(r),mt(l,r,n),a.head.appendChild(l);break;default:throw Error(H(468,r))}l[ft]=e,it(l),r=l}e.stateNode=r}else zv(a,e.type,e.stateNode);else e.stateNode=Lv(a,r,e.memoizedProps);else l!==r?(l===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):l.count--,r===null?zv(a,e.type,e.stateNode):Lv(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&d0(e,e.memoizedProps,n.memoizedProps)}break;case 27:Mt(t,e),Ot(e),r&512&&(Ye||n===null||Yn(n,n.return)),n!==null&&r&4&&d0(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Mt(t,e),Ot(e),r&512&&(Ye||n===null||Yn(n,n.return)),e.flags&32){a=e.stateNode;try{Mi(a,"")}catch(m){we(e,e.return,m)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,d0(e,a,n!==null?n.memoizedProps:a)),r&1024&&(h0=!0);break;case 6:if(Mt(t,e),Ot(e),r&4){if(e.stateNode===null)throw Error(H(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(m){we(e,e.return,m)}}break;case 3:if(Nc=null,a=_n,_n=fd(t.containerInfo),Mt(t,e),_n=a,Ot(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ai(t.containerInfo)}catch(m){we(e,e.return,m)}h0&&(h0=!1,O9(e));break;case 4:r=_n,_n=fd(e.stateNode.containerInfo),Mt(t,e),Ot(e),_n=r;break;case 12:Mt(t,e),Ot(e);break;case 31:Mt(t,e),Ot(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_u(e,r)));break;case 13:Mt(t,e),Ot(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(sf=$t()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_u(e,r)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=hr,f=Ye;if(hr=u||a,Ye=f||s,Mt(t,e),Ye=f,hr=u,Ot(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||hr||Ye||Ya(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){s=n=t;try{if(l=s.stateNode,a)i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{o=s.stateNode;var c=s.memoizedProps.style,d=c!=null&&c.hasOwnProperty("display")?c.display:null;o.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(m){we(s,s.return,m)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=a?"":s.memoizedProps}catch(m){we(s,s.return,m)}}}else if(t.tag===18){if(n===null){s=t;try{var h=s.stateNode;a?Tv(h,!0):Tv(s.stateNode,!1)}catch(m){we(s,s.return,m)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,_u(e,n))));break;case 19:Mt(t,e),Ot(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_u(e,r)));break;case 30:break;case 21:break;default:Mt(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(b9(r)){n=r;break}r=r.return}if(n==null)throw Error(H(160));switch(n.tag){case 27:var a=n.stateNode,l=f0(e);ad(e,l,a);break;case 5:var i=n.stateNode;n.flags&32&&(Mi(i,""),n.flags&=-33);var o=f0(e);ad(e,o,i);break;case 3:case 4:var s=n.stateNode.containerInfo,u=f0(e);rp(e,u,s);break;default:throw Error(H(161))}}catch(f){we(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function O9(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;O9(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ar(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)x9(e,t.alternate,t),t=t.sibling}function Ya(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ba(4,t,t.return),Ya(t);break;case 1:Yn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&g9(t,t.return,n),Ya(t);break;case 27:fs(t.stateNode);case 26:case 5:Yn(t,t.return),Ya(t);break;case 22:t.memoizedState===null&&Ya(t);break;case 30:Ya(t);break;default:Ya(t)}e=e.sibling}}function dr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,a=e,l=t,i=l.flags;switch(l.tag){case 0:case 11:case 15:dr(a,l,n),iu(4,l);break;case 1:if(dr(a,l,n),r=l,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){we(r,r.return,u)}if(r=l,a=r.updateQueue,a!==null){var o=r.stateNode;try{var s=a.shared.hiddenCallbacks;if(s!==null)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)C5(s[a],o)}catch(u){we(r,r.return,u)}}n&&i&64&&m9(l),ss(l,l.return);break;case 27:y9(l);case 26:case 5:dr(a,l,n),n&&r===null&&i&4&&v9(l),ss(l,l.return);break;case 12:dr(a,l,n);break;case 31:dr(a,l,n),n&&i&4&&C9(a,l);break;case 13:dr(a,l,n),n&&i&4&&E9(a,l);break;case 22:l.memoizedState===null&&dr(a,l,n),ss(l,l.return);break;case 30:break;default:dr(a,l,n)}t=t.sibling}}function ng(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&au(n))}function rg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&au(e))}function Nn(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)R9(e,t,n,r),t=t.sibling}function R9(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Nn(e,t,n,r),a&2048&&iu(9,t);break;case 1:Nn(e,t,n,r);break;case 3:Nn(e,t,n,r),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&au(e)));break;case 12:if(a&2048){Nn(e,t,n,r),e=t.stateNode;try{var l=t.memoizedProps,i=l.id,o=l.onPostCommit;typeof o=="function"&&o(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){we(t,t.return,s)}}else Nn(e,t,n,r);break;case 31:Nn(e,t,n,r);break;case 13:Nn(e,t,n,r);break;case 23:break;case 22:l=t.stateNode,i=t.alternate,t.memoizedState!==null?l._visibility&2?Nn(e,t,n,r):us(e,t):l._visibility&2?Nn(e,t,n,r):(l._visibility|=2,Ql(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&ng(i,t);break;case 24:Nn(e,t,n,r),a&2048&&rg(t.alternate,t);break;default:Nn(e,t,n,r)}}function Ql(e,t,n,r,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var l=e,i=t,o=n,s=r,u=i.flags;switch(i.tag){case 0:case 11:case 15:Ql(l,i,o,s,a),iu(8,i);break;case 23:break;case 22:var f=i.stateNode;i.memoizedState!==null?f._visibility&2?Ql(l,i,o,s,a):us(l,i):(f._visibility|=2,Ql(l,i,o,s,a)),a&&u&2048&&ng(i.alternate,i);break;case 24:Ql(l,i,o,s,a),a&&u&2048&&rg(i.alternate,i);break;default:Ql(l,i,o,s,a)}t=t.sibling}}function us(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:us(n,r),a&2048&&ng(r.alternate,r);break;case 24:us(n,r),a&2048&&rg(r.alternate,r);break;default:us(n,r)}t=t.sibling}}var Xo=8192;function jl(e,t,n){if(e.subtreeFlags&Xo)for(e=e.child;e!==null;)k9(e,t,n),e=e.sibling}function k9(e,t,n){switch(e.tag){case 26:jl(e,t,n),e.flags&Xo&&e.memoizedState!==null&&kC(n,_n,e.memoizedState,e.memoizedProps);break;case 5:jl(e,t,n);break;case 3:case 4:var r=_n;_n=fd(e.stateNode.containerInfo),jl(e,t,n),_n=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Xo,Xo=16777216,jl(e,t,n),Xo=r):jl(e,t,n));break;default:jl(e,t,n)}}function T9(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function mo(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];at=r,j9(r,e)}T9(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)D9(e),e=e.sibling}function D9(e){switch(e.tag){case 0:case 11:case 15:mo(e),e.flags&2048&&ba(9,e,e.return);break;case 3:mo(e);break;case 12:mo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Dc(e)):mo(e);break;default:mo(e)}}function Dc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];at=r,j9(r,e)}T9(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ba(8,t,t.return),Dc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Dc(t));break;default:Dc(t)}e=e.sibling}}function j9(e,t){for(;at!==null;){var n=at;switch(n.tag){case 0:case 11:case 15:ba(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:au(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,at=r;else e:for(n=e;at!==null;){r=at;var a=r.sibling,l=r.return;if(w9(r),r===n){at=null;break e}if(a!==null){a.return=l,at=a;break e}at=l}}}var qS={getCacheForType:function(e){var t=pt(Ze),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return pt(Ze).controller.signal}},VS=typeof WeakMap=="function"?WeakMap:Map,me=0,Me=null,ie=null,oe=0,xe=0,qt=null,Wr=!1,Ii=!1,ag=!1,Mr=0,He=0,ya=0,al=0,lg=0,Yt=0,Ti=0,cs=null,Nt=null,ap=!1,sf=0,N9=0,ld=1/0,id=null,oa=null,et=0,sa=null,Di=null,yr=0,lp=0,ip=null,A9=null,ds=0,op=null;function tn(){return me&2&&oe!==0?oe&-oe:J.T!==null?og():F2()}function L9(){if(Yt===0)if(!(oe&536870912)||ue){var e=Ru;Ru<<=1,!(Ru&3932160)&&(Ru=262144),Yt=e}else Yt=536870912;return e=rn.current,e!==null&&(e.flags|=32),Yt}function zt(e,t,n){(e===Me&&(xe===2||xe===9)||e.cancelPendingCommit!==null)&&(ji(e,0),$r(e,oe,Yt,!1)),tu(e,n),(!(me&2)||e!==Me)&&(e===Me&&(!(me&2)&&(al|=n),He===4&&$r(e,oe,Yt,!1)),$n(e))}function _9(e,t,n){if(me&6)throw Error(H(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||eu(e,t),a=r?IS(e,t):p0(e,t,!0),l=r;do{if(a===0){Ii&&!r&&$r(e,t,0,!1);break}else{if(n=e.current.alternate,l&&!GS(n)){a=p0(e,t,!1),l=!1;continue}if(a===2){if(l=t,e.errorRecoveryDisabledLanes&l)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var o=e;a=cs;var s=o.current.memoizedState.isDehydrated;if(s&&(ji(o,i).flags|=256),i=p0(o,i,!1),i!==2){if(ag&&!s){o.errorRecoveryDisabledLanes|=l,al|=l,a=4;break e}l=Nt,Nt=a,l!==null&&(Nt===null?Nt=l:Nt.push.apply(Nt,l))}a=i}if(l=!1,a!==2)continue}}if(a===1){ji(e,0),$r(e,t,0,!0);break}e:{switch(r=e,l=a,l){case 0:case 1:throw Error(H(345));case 4:if((t&4194048)!==t)break;case 6:$r(r,t,Yt,!Wr);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(H(329))}if((t&62914560)===t&&(a=sf+300-$t(),10<a)){if($r(r,t,Yt,!Wr),Zd(r,0,!0)!==0)break e;yr=t,r.timeoutHandle=t8(gv.bind(null,r,n,Nt,id,ap,t,Yt,al,Ti,Wr,l,"Throttled",-0,0),a);break e}gv(r,n,Nt,id,ap,t,Yt,al,Ti,Wr,l,null,-0,0)}}break}while(!0);$n(e)}function gv(e,t,n,r,a,l,i,o,s,u,f,c,d,h){if(e.timeoutHandle=-1,c=t.subtreeFlags,c&8192||(c&16785408)===16785408){c={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mr},k9(t,l,c);var m=(l&62914560)===l?sf-$t():(l&4194048)===l?N9-$t():0;if(m=TC(c,m),m!==null){yr=l,e.cancelPendingCommit=m(bv.bind(null,e,t,l,n,r,a,i,o,s,f,c,null,d,h)),$r(e,l,i,!u);return}}bv(e,t,l,n,r,a,i,o,s)}function GS(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var a=n[r],l=a.getSnapshot;a=a.value;try{if(!nn(l(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $r(e,t,n,r){t&=~lg,t&=~al,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var l=31-en(a),i=1<<l;r[l]=-1,a&=~i}n!==0&&K2(e,n,t)}function uf(){return me&6?!0:(ou(0),!1)}function ig(){if(ie!==null){if(xe===0)var e=ie.return;else e=ie,gr=yl=null,Gm(e),vi=null,ks=0,e=ie;for(;e!==null;)p9(e.alternate,e),e=e.return;ie=null}}function ji(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,dC(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),yr=0,ig(),Me=e,ie=n=vr(e.current,null),oe=t,xe=0,qt=null,Wr=!1,Ii=eu(e,t),ag=!1,Ti=Yt=lg=al=ya=He=0,Nt=cs=null,ap=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-en(r),l=1<<a;t|=e[a],r&=~l}return Mr=t,ef(),n}function z9(e,t){re=null,J.H=Ds,t===Qi||t===nf?(t=X1(),xe=3):t===Hm?(t=X1(),xe=4):xe=t===eg?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,qt=t,ie===null&&(He=1,nd(e,bn(t,e.current)))}function P9(){var e=rn.current;return e===null?!0:(oe&4194048)===oe?wn===null:(oe&62914560)===oe||oe&536870912?e===wn:!1}function H9(){var e=J.H;return J.H=Ds,e===null?Ds:e}function K9(){var e=J.A;return J.A=qS,e}function od(){He=4,Wr||(oe&4194048)!==oe&&rn.current!==null||(Ii=!0),!(ya&134217727)&&!(al&134217727)||Me===null||$r(Me,oe,Yt,!1)}function p0(e,t,n){var r=me;me|=2;var a=H9(),l=K9();(Me!==e||oe!==t)&&(id=null,ji(e,t)),t=!1;var i=He;e:do try{if(xe!==0&&ie!==null){var o=ie,s=qt;switch(xe){case 8:ig(),i=6;break e;case 3:case 2:case 9:case 6:rn.current===null&&(t=!0);var u=xe;if(xe=0,qt=null,ui(e,o,s,u),n&&Ii){i=0;break e}break;default:u=xe,xe=0,qt=null,ui(e,o,s,u)}}QS(),i=He;break}catch(f){z9(e,f)}while(!0);return t&&e.shellSuspendCounter++,gr=yl=null,me=r,J.H=a,J.A=l,ie===null&&(Me=null,oe=0,ef()),i}function QS(){for(;ie!==null;)U9(ie)}function IS(e,t){var n=me;me|=2;var r=H9(),a=K9();Me!==e||oe!==t?(id=null,ld=$t()+500,ji(e,t)):Ii=eu(e,t);e:do try{if(xe!==0&&ie!==null){t=ie;var l=qt;t:switch(xe){case 1:xe=0,qt=null,ui(e,t,l,1);break;case 2:case 9:if(I1(l)){xe=0,qt=null,vv(t);break}t=function(){xe!==2&&xe!==9||Me!==e||(xe=7),$n(e)},l.then(t,t);break e;case 3:xe=7;break e;case 4:xe=5;break e;case 7:I1(l)?(xe=0,qt=null,vv(t)):(xe=0,qt=null,ui(e,t,l,7));break;case 5:var i=null;switch(ie.tag){case 26:i=ie.memoizedState;case 5:case 27:var o=ie;if(i?i8(i):o.stateNode.complete){xe=0,qt=null;var s=o.sibling;if(s!==null)ie=s;else{var u=o.return;u!==null?(ie=u,cf(u)):ie=null}break t}}xe=0,qt=null,ui(e,t,l,5);break;case 6:xe=0,qt=null,ui(e,t,l,6);break;case 8:ig(),He=6;break e;default:throw Error(H(462))}}XS();break}catch(f){z9(e,f)}while(!0);return gr=yl=null,J.H=r,J.A=a,me=n,ie!==null?0:(Me=null,oe=0,ef(),He)}function XS(){for(;ie!==null&&!vw();)U9(ie)}function U9(e){var t=h9(e.alternate,e,Mr);e.memoizedProps=e.pendingProps,t===null?cf(e):ie=t}function vv(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=cv(n,t,t.pendingProps,t.type,void 0,oe);break;case 11:t=cv(n,t,t.pendingProps,t.type.render,t.ref,oe);break;case 5:Gm(t);default:p9(n,t),t=ie=p5(t,Mr),t=h9(n,t,Mr)}e.memoizedProps=e.pendingProps,t===null?cf(e):ie=t}function ui(e,t,n,r){gr=yl=null,Gm(t),vi=null,ks=0;var a=t.return;try{if(zS(e,a,t,n,oe)){He=1,nd(e,bn(n,e.current)),ie=null;return}}catch(l){if(a!==null)throw ie=a,l;He=1,nd(e,bn(n,e.current)),ie=null;return}t.flags&32768?(ue||r===1?e=!0:Ii||oe&536870912?e=!1:(Wr=e=!0,(r===2||r===9||r===3||r===6)&&(r=rn.current,r!==null&&r.tag===13&&(r.flags|=16384))),B9(t,e)):cf(t)}function cf(e){var t=e;do{if(t.flags&32768){B9(t,Wr);return}e=t.return;var n=KS(t.alternate,t,Mr);if(n!==null){ie=n;return}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);He===0&&(He=5)}function B9(e,t){do{var n=US(e.alternate,e);if(n!==null){n.flags&=32767,ie=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ie=e;return}ie=e=n}while(e!==null);He=6,ie=null}function bv(e,t,n,r,a,l,i,o,s){e.cancelPendingCommit=null;do df();while(et!==0);if(me&6)throw Error(H(327));if(t!==null){if(t===e.current)throw Error(H(177));if(l=t.lanes|t.childLanes,l|=jm,Rw(e,n,l,i,o,s),e===Me&&(ie=Me=null,oe=0),Di=t,sa=e,yr=n,lp=l,ip=a,A9=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,$S(Gc,function(){return Q9(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=J.T,J.T=null,a=ve.p,ve.p=2,i=me,me|=4;try{BS(e,t,n)}finally{me=i,ve.p=a,J.T=r}}et=1,F9(),q9(),V9()}}function F9(){if(et===1){et=0;var e=sa,t=Di,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=J.T,J.T=null;var r=ve.p;ve.p=2;var a=me;me|=4;try{M9(t,e);var l=dp,i=i5(e.containerInfo),o=l.focusedElem,s=l.selectionRange;if(i!==o&&o&&o.ownerDocument&&l5(o.ownerDocument.documentElement,o)){if(s!==null&&Dm(o)){var u=s.start,f=s.end;if(f===void 0&&(f=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(f,o.value.length);else{var c=o.ownerDocument||document,d=c&&c.defaultView||window;if(d.getSelection){var h=d.getSelection(),m=o.textContent.length,v=Math.min(s.start,m),y=s.end===void 0?v:Math.min(s.end,m);!h.extend&&v>y&&(i=y,y=v,v=i);var b=U1(o,v),g=U1(o,y);if(b&&g&&(h.rangeCount!==1||h.anchorNode!==b.node||h.anchorOffset!==b.offset||h.focusNode!==g.node||h.focusOffset!==g.offset)){var x=c.createRange();x.setStart(b.node,b.offset),h.removeAllRanges(),v>y?(h.addRange(x),h.extend(g.node,g.offset)):(x.setEnd(g.node,g.offset),h.addRange(x))}}}}for(c=[],h=o;h=h.parentNode;)h.nodeType===1&&c.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<c.length;o++){var S=c[o];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}md=!!cp,dp=cp=null}finally{me=a,ve.p=r,J.T=n}}e.current=t,et=2}}function q9(){if(et===2){et=0;var e=sa,t=Di,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=J.T,J.T=null;var r=ve.p;ve.p=2;var a=me;me|=4;try{x9(e,t.alternate,t)}finally{me=a,ve.p=r,J.T=n}}et=3}}function V9(){if(et===4||et===3){et=0,bw();var e=sa,t=Di,n=yr,r=A9;t.subtreeFlags&10256||t.flags&10256?et=5:(et=0,Di=sa=null,G9(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(oa=null),Cm(n),t=t.stateNode,Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(Js,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=J.T,a=ve.p,ve.p=2,J.T=null;try{for(var l=e.onRecoverableError,i=0;i<r.length;i++){var o=r[i];l(o.value,{componentStack:o.stack})}}finally{J.T=t,ve.p=a}}yr&3&&df(),$n(e),a=e.pendingLanes,n&261930&&a&42?e===op?ds++:(ds=0,op=e):ds=0,ou(0)}}function G9(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,au(t)))}function df(){return F9(),q9(),V9(),Q9()}function Q9(){if(et!==5)return!1;var e=sa,t=lp;lp=0;var n=Cm(yr),r=J.T,a=ve.p;try{ve.p=32>n?32:n,J.T=null,n=ip,ip=null;var l=sa,i=yr;if(et=0,Di=sa=null,yr=0,me&6)throw Error(H(331));var o=me;if(me|=4,D9(l.current),R9(l,l.current,i,n),me=o,ou(0,!1),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(Js,l)}catch{}return!0}finally{ve.p=a,J.T=r,G9(e,t)}}function yv(e,t,n){t=bn(n,t),t=ep(e.stateNode,t,2),e=ia(e,t,2),e!==null&&(tu(e,2),$n(e))}function we(e,t,n){if(e.tag===3)yv(e,e,n);else for(;t!==null;){if(t.tag===3){yv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(oa===null||!oa.has(r))){e=bn(n,e),n=o9(2),r=ia(t,n,2),r!==null&&(s9(n,r,t,e),tu(r,2),$n(r));break}}t=t.return}}function m0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new VS;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(ag=!0,a.add(n),e=YS.bind(null,e,t,n),t.then(e,e))}function YS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Me===e&&(oe&n)===n&&(He===4||He===3&&(oe&62914560)===oe&&300>$t()-sf?!(me&2)&&ji(e,0):lg|=n,Ti===oe&&(Ti=0)),$n(e)}function I9(e,t){t===0&&(t=H2()),e=bl(e,t),e!==null&&(tu(e,t),$n(e))}function ZS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),I9(e,n)}function WS(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(H(314))}r!==null&&r.delete(t),I9(e,n)}function $S(e,t){return wm(e,t)}var sd=null,Il=null,sp=!1,ud=!1,g0=!1,Jr=0;function $n(e){e!==Il&&e.next===null&&(Il===null?sd=Il=e:Il=Il.next=e),ud=!0,sp||(sp=!0,eC())}function ou(e,t){if(!g0&&ud){g0=!0;do for(var n=!1,r=sd;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var l=0;else{var i=r.suspendedLanes,o=r.pingedLanes;l=(1<<31-en(42|e)+1)-1,l&=a&~(i&~o),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(n=!0,xv(r,l))}else l=oe,l=Zd(r,r===Me?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(l&3)||eu(r,l)||(n=!0,xv(r,l));r=r.next}while(n);g0=!1}}function JS(){X9()}function X9(){ud=sp=!1;var e=0;Jr!==0&&cC()&&(e=Jr);for(var t=$t(),n=null,r=sd;r!==null;){var a=r.next,l=Y9(r,t);l===0?(r.next=null,n===null?sd=a:n.next=a,a===null&&(Il=n)):(n=r,(e!==0||l&3)&&(ud=!0)),r=a}et!==0&&et!==5||ou(e),Jr!==0&&(Jr=0)}function Y9(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes&-62914561;0<l;){var i=31-en(l),o=1<<i,s=a[i];s===-1?(!(o&n)||o&r)&&(a[i]=Ow(o,t)):s<=t&&(e.expiredLanes|=o),l&=~o}if(t=Me,n=oe,n=Zd(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(xe===2||xe===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Vf(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||eu(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Vf(r),Cm(n)){case 2:case 8:n=z2;break;case 32:n=Gc;break;case 268435456:n=P2;break;default:n=Gc}return r=Z9.bind(null,e),n=wm(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Vf(r),e.callbackPriority=2,e.callbackNode=null,2}function Z9(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(df()&&e.callbackNode!==n)return null;var r=oe;return r=Zd(e,e===Me?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(_9(e,r,t),Y9(e,$t()),e.callbackNode!=null&&e.callbackNode===n?Z9.bind(null,e):null)}function xv(e,t){if(df())return null;_9(e,t,!0)}function eC(){fC(function(){me&6?wm(_2,JS):X9()})}function og(){if(Jr===0){var e=Oi;e===0&&(e=Ou,Ou<<=1,!(Ou&261888)&&(Ou=256)),Jr=e}return Jr}function wv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:wc(""+e)}function Sv(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function tC(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var l=wv((a[Pt]||null).action),i=r.submitter;i&&(t=(t=i[Pt]||null)?wv(t.formAction):i.getAttribute("formAction"),t!==null&&(l=t,i=null));var o=new Wd("action","action",null,r,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Jr!==0){var s=i?Sv(a,i):new FormData(a);$h(n,{pending:!0,data:s,method:a.method,action:l},null,s)}}else typeof l=="function"&&(o.preventDefault(),s=i?Sv(a,i):new FormData(a),$h(n,{pending:!0,data:s,method:a.method,action:l},l,s))},currentTarget:a}]})}}for(var v0=0;v0<Uh.length;v0++){var b0=Uh[v0],nC=b0.toLowerCase(),rC=b0[0].toUpperCase()+b0.slice(1);Kn(nC,"on"+rC)}Kn(s5,"onAnimationEnd");Kn(u5,"onAnimationIteration");Kn(c5,"onAnimationStart");Kn("dblclick","onDoubleClick");Kn("focusin","onFocus");Kn("focusout","onBlur");Kn(yS,"onTransitionRun");Kn(xS,"onTransitionStart");Kn(wS,"onTransitionCancel");Kn(d5,"onTransitionEnd");Ei("onMouseEnter",["mouseout","mouseover"]);Ei("onMouseLeave",["mouseout","mouseover"]);Ei("onPointerEnter",["pointerout","pointerover"]);Ei("onPointerLeave",["pointerout","pointerover"]);ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ml("onBeforeInput",["compositionend","keypress","textInput","paste"]);ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var js="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),aC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(js));function W9(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var i=r.length-1;0<=i;i--){var o=r[i],s=o.instance,u=o.currentTarget;if(o=o.listener,s!==l&&a.isPropagationStopped())break e;l=o,a.currentTarget=u;try{l(a)}catch(f){Ic(f)}a.currentTarget=null,l=s}else for(i=0;i<r.length;i++){if(o=r[i],s=o.instance,u=o.currentTarget,o=o.listener,s!==l&&a.isPropagationStopped())break e;l=o,a.currentTarget=u;try{l(a)}catch(f){Ic(f)}a.currentTarget=null,l=s}}}}function le(e,t){var n=t[Nh];n===void 0&&(n=t[Nh]=new Set);var r=e+"__bubble";n.has(r)||($9(t,e,2,!1),n.add(r))}function y0(e,t,n){var r=0;t&&(r|=4),$9(n,e,r,t)}var zu="_reactListening"+Math.random().toString(36).slice(2);function sg(e){if(!e[zu]){e[zu]=!0,q2.forEach(function(n){n!=="selectionchange"&&(aC.has(n)||y0(n,!1,e),y0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zu]||(t[zu]=!0,y0("selectionchange",!1,t))}}function $9(e,t,n,r){switch(d8(t)){case 2:var a=NC;break;case 8:a=AC;break;default:a=fg}n=a.bind(null,t,n,e),a=void 0,!Ph||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function x0(e,t,n,r,a){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var o=r.stateNode.containerInfo;if(o===a)break;if(i===4)for(i=r.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===a)return;i=i.return}for(;o!==null;){if(i=ei(o),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){r=l=i;continue e}o=o.parentNode}}r=r.return}W2(function(){var u=l,f=Om(n),c=[];e:{var d=f5.get(e);if(d!==void 0){var h=Wd,m=e;switch(e){case"keypress":if(Cc(n)===0)break e;case"keydown":case"keyup":h=Ww;break;case"focusin":m="focus",h=Yf;break;case"focusout":m="blur",h=Yf;break;case"beforeblur":case"afterblur":h=Yf;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=D1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Kw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=eS;break;case s5:case u5:case c5:h=Fw;break;case d5:h=nS;break;case"scroll":case"scrollend":h=Pw;break;case"wheel":h=aS;break;case"copy":case"cut":case"paste":h=Vw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=N1;break;case"toggle":case"beforetoggle":h=iS}var v=(t&4)!==0,y=!v&&(e==="scroll"||e==="scrollend"),b=v?d!==null?d+"Capture":null:d;v=[];for(var g=u,x;g!==null;){var S=g;if(x=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||x===null||b===null||(S=Cs(g,b),S!=null&&v.push(Ns(g,S,x))),y)break;g=g.return}0<v.length&&(d=new h(d,m,null,n,f),c.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==zh&&(m=n.relatedTarget||n.fromElement)&&(ei(m)||m[qi]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=u,m=m?ei(m):null,m!==null&&(y=$s(m),v=m.tag,m!==y||v!==5&&v!==27&&v!==6)&&(m=null)):(h=null,m=u),h!==m)){if(v=D1,S="onMouseLeave",b="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(v=N1,S="onPointerLeave",b="onPointerEnter",g="pointer"),y=h==null?d:Qo(h),x=m==null?d:Qo(m),d=new v(S,g+"leave",h,n,f),d.target=y,d.relatedTarget=x,S=null,ei(f)===u&&(v=new v(b,g+"enter",m,n,f),v.target=x,v.relatedTarget=y,S=v),y=S,h&&m)t:{for(v=lC,b=h,g=m,x=0,S=b;S;S=v(S))x++;S=0;for(var C=g;C;C=v(C))S++;for(;0<x-S;)b=v(b),x--;for(;0<S-x;)g=v(g),S--;for(;x--;){if(b===g||g!==null&&b===g.alternate){v=b;break t}b=v(b),g=v(g)}v=null}else v=null;h!==null&&Cv(c,d,h,v,!1),m!==null&&y!==null&&Cv(c,y,m,v,!0)}}e:{if(d=u?Qo(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var E=z1;else if(_1(d))if(r5)E=gS;else{E=pS;var M=hS}else h=d.nodeName,!h||h.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&Mm(u.elementType)&&(E=z1):E=mS;if(E&&(E=E(e,u))){n5(c,E,n,f);break e}M&&M(e,d,u),e==="focusout"&&u&&d.type==="number"&&u.memoizedProps.value!=null&&_h(d,"number",d.value)}switch(M=u?Qo(u):window,e){case"focusin":(_1(M)||M.contentEditable==="true")&&(ri=M,Hh=u,ns=null);break;case"focusout":ns=Hh=ri=null;break;case"mousedown":Kh=!0;break;case"contextmenu":case"mouseup":case"dragend":Kh=!1,B1(c,n,f);break;case"selectionchange":if(bS)break;case"keydown":case"keyup":B1(c,n,f)}var N;if(Tm)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else ni?e5(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(J2&&n.locale!=="ko"&&(ni||j!=="onCompositionStart"?j==="onCompositionEnd"&&ni&&(N=$2()):(Zr=f,Rm="value"in Zr?Zr.value:Zr.textContent,ni=!0)),M=cd(u,j),0<M.length&&(j=new j1(j,e,null,n,f),c.push({event:j,listeners:M}),N?j.data=N:(N=t5(n),N!==null&&(j.data=N)))),(N=sS?uS(e,n):cS(e,n))&&(j=cd(u,"onBeforeInput"),0<j.length&&(M=new j1("onBeforeInput","beforeinput",null,n,f),c.push({event:M,listeners:j}),M.data=N)),tC(c,e,u,n,f)}W9(c,t)})}function Ns(e,t,n){return{instance:e,listener:t,currentTarget:n}}function cd(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,l=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||l===null||(a=Cs(e,n),a!=null&&r.unshift(Ns(e,a,l)),a=Cs(e,t),a!=null&&r.push(Ns(e,a,l))),e.tag===3)return r;e=e.return}return[]}function lC(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Cv(e,t,n,r,a){for(var l=t._reactName,i=[];n!==null&&n!==r;){var o=n,s=o.alternate,u=o.stateNode;if(o=o.tag,s!==null&&s===r)break;o!==5&&o!==26&&o!==27||u===null||(s=u,a?(u=Cs(n,l),u!=null&&i.unshift(Ns(n,u,s))):a||(u=Cs(n,l),u!=null&&i.push(Ns(n,u,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var iC=/\r\n?/g,oC=/\u0000|\uFFFD/g;function Ev(e){return(typeof e=="string"?e:""+e).replace(iC,`
|
|
49
|
+
`).replace(oC,"")}function J9(e,t){return t=Ev(t),Ev(e)===t}function Ce(e,t,n,r,a,l){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Mi(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Mi(e,""+r);break;case"className":Tu(e,"class",r);break;case"tabIndex":Tu(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Tu(e,n,r);break;case"style":Z2(e,r,l);break;case"data":if(t!=="object"){Tu(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=wc(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"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 l=="function"&&(n==="formAction"?(t!=="input"&&Ce(e,t,"name",a.name,a,null),Ce(e,t,"formEncType",a.formEncType,a,null),Ce(e,t,"formMethod",a.formMethod,a,null),Ce(e,t,"formTarget",a.formTarget,a,null)):(Ce(e,t,"encType",a.encType,a,null),Ce(e,t,"method",a.method,a,null),Ce(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=wc(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=mr);break;case"onScroll":r!=null&&le("scroll",e);break;case"onScrollEnd":r!=null&&le("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(H(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(H(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=wc(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":le("beforetoggle",e),le("toggle",e),xc(e,"popover",r);break;case"xlinkActuate":tr(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":tr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":tr(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":tr(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":tr(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":tr(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":tr(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":tr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":tr(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":xc(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=_w.get(n)||n,xc(e,n,r))}}function up(e,t,n,r,a,l){switch(n){case"style":Z2(e,r,l);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(H(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(H(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Mi(e,r):(typeof r=="number"||typeof r=="bigint")&&Mi(e,""+r);break;case"onScroll":r!=null&&le("scroll",e);break;case"onScrollEnd":r!=null&&le("scrollend",e);break;case"onClick":r!=null&&(e.onclick=mr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!V2.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),l=e[Pt]||null,l=l!=null?l[n]:null,typeof l=="function"&&e.removeEventListener(t,l,a),typeof r=="function")){typeof l!="function"&&l!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):xc(e,n,r)}}}function mt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":le("error",e),le("load",e);var r=!1,a=!1,l;for(l in n)if(n.hasOwnProperty(l)){var i=n[l];if(i!=null)switch(l){case"src":r=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(H(137,t));default:Ce(e,t,l,i,n,null)}}a&&Ce(e,t,"srcSet",n.srcSet,n,null),r&&Ce(e,t,"src",n.src,n,null);return;case"input":le("invalid",e);var o=l=i=a=null,s=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"name":a=f;break;case"type":i=f;break;case"checked":s=f;break;case"defaultChecked":u=f;break;case"value":l=f;break;case"defaultValue":o=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(H(137,t));break;default:Ce(e,t,r,f,n,null)}}I2(e,l,o,s,u,i,a,!1);return;case"select":le("invalid",e),r=i=l=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":l=o;break;case"defaultValue":i=o;break;case"multiple":r=o;default:Ce(e,t,a,o,n,null)}t=l,n=i,e.multiple=!!r,t!=null?pi(e,!!r,t,!1):n!=null&&pi(e,!!r,n,!0);return;case"textarea":le("invalid",e),l=a=r=null;for(i in n)if(n.hasOwnProperty(i)&&(o=n[i],o!=null))switch(i){case"value":r=o;break;case"defaultValue":a=o;break;case"children":l=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(H(91));break;default:Ce(e,t,i,o,n,null)}Y2(e,r,a,l);return;case"option":for(s in n)if(n.hasOwnProperty(s)&&(r=n[s],r!=null))switch(s){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Ce(e,t,s,r,n,null)}return;case"dialog":le("beforetoggle",e),le("toggle",e),le("cancel",e),le("close",e);break;case"iframe":case"object":le("load",e);break;case"video":case"audio":for(r=0;r<js.length;r++)le(js[r],e);break;case"image":le("error",e),le("load",e);break;case"details":le("toggle",e);break;case"embed":case"source":case"link":le("error",e),le("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(H(137,t));default:Ce(e,t,u,r,n,null)}return;default:if(Mm(t)){for(f in n)n.hasOwnProperty(f)&&(r=n[f],r!==void 0&&up(e,t,f,r,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(r=n[o],r!=null&&Ce(e,t,o,r,n,null))}function sC(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,l=null,i=null,o=null,s=null,u=null,f=null;for(h in n){var c=n[h];if(n.hasOwnProperty(h)&&c!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":s=c;default:r.hasOwnProperty(h)||Ce(e,t,h,null,r,c)}}for(var d in r){var h=r[d];if(c=n[d],r.hasOwnProperty(d)&&(h!=null||c!=null))switch(d){case"type":l=h;break;case"name":a=h;break;case"checked":u=h;break;case"defaultChecked":f=h;break;case"value":i=h;break;case"defaultValue":o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(H(137,t));break;default:h!==c&&Ce(e,t,d,h,r,c)}}Lh(e,i,o,s,u,f,l,a);return;case"select":h=i=o=d=null;for(l in n)if(s=n[l],n.hasOwnProperty(l)&&s!=null)switch(l){case"value":break;case"multiple":h=s;default:r.hasOwnProperty(l)||Ce(e,t,l,null,r,s)}for(a in r)if(l=r[a],s=n[a],r.hasOwnProperty(a)&&(l!=null||s!=null))switch(a){case"value":d=l;break;case"defaultValue":o=l;break;case"multiple":i=l;default:l!==s&&Ce(e,t,a,l,r,s)}t=o,n=i,r=h,d!=null?pi(e,!!n,d,!1):!!r!=!!n&&(t!=null?pi(e,!!n,t,!0):pi(e,!!n,n?[]:"",!1));return;case"textarea":h=d=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!r.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Ce(e,t,o,null,r,a)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case"value":d=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(H(91));break;default:a!==l&&Ce(e,t,i,a,r,l)}X2(e,d,h);return;case"option":for(var m in n)if(d=n[m],n.hasOwnProperty(m)&&d!=null&&!r.hasOwnProperty(m))switch(m){case"selected":e.selected=!1;break;default:Ce(e,t,m,null,r,d)}for(s in r)if(d=r[s],h=n[s],r.hasOwnProperty(s)&&d!==h&&(d!=null||h!=null))switch(s){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:Ce(e,t,s,d,r,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in n)d=n[v],n.hasOwnProperty(v)&&d!=null&&!r.hasOwnProperty(v)&&Ce(e,t,v,null,r,d);for(u in r)if(d=r[u],h=n[u],r.hasOwnProperty(u)&&d!==h&&(d!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(H(137,t));break;default:Ce(e,t,u,d,r,h)}return;default:if(Mm(t)){for(var y in n)d=n[y],n.hasOwnProperty(y)&&d!==void 0&&!r.hasOwnProperty(y)&&up(e,t,y,void 0,r,d);for(f in r)d=r[f],h=n[f],!r.hasOwnProperty(f)||d===h||d===void 0&&h===void 0||up(e,t,f,d,r,h);return}}for(var b in n)d=n[b],n.hasOwnProperty(b)&&d!=null&&!r.hasOwnProperty(b)&&Ce(e,t,b,null,r,d);for(c in r)d=r[c],h=n[c],!r.hasOwnProperty(c)||d===h||d==null&&h==null||Ce(e,t,c,d,r,h)}function Mv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uC(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],l=a.transferSize,i=a.initiatorType,o=a.duration;if(l&&o&&Mv(i)){for(i=0,o=a.responseEnd,r+=1;r<n.length;r++){var s=n[r],u=s.startTime;if(u>o)break;var f=s.transferSize,c=s.initiatorType;f&&Mv(c)&&(s=s.responseEnd,i+=f*(s<o?1:(o-u)/(s-u)))}if(--r,t+=8*(l+i)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var cp=null,dp=null;function dd(e){return e.nodeType===9?e:e.ownerDocument}function Ov(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function e8(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function fp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var w0=null;function cC(){var e=window.event;return e&&e.type==="popstate"?e===w0?!1:(w0=e,!0):(w0=null,!1)}var t8=typeof setTimeout=="function"?setTimeout:void 0,dC=typeof clearTimeout=="function"?clearTimeout:void 0,Rv=typeof Promise=="function"?Promise:void 0,fC=typeof queueMicrotask=="function"?queueMicrotask:typeof Rv<"u"?function(e){return Rv.resolve(null).then(e).catch(hC)}:t8;function hC(e){setTimeout(function(){throw e})}function Ma(e){return e==="head"}function kv(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(a),Ai(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")fs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,fs(n);for(var l=n.firstChild;l;){var i=l.nextSibling,o=l.nodeName;l[nu]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&l.rel.toLowerCase()==="stylesheet"||n.removeChild(l),l=i}}else n==="body"&&fs(e.ownerDocument.body);n=a}while(n);Ai(t)}function Tv(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function hp(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":hp(n),Em(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function pC(e,t,n,r){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[nu])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(l!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var l=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;if(e=Sn(e.nextSibling),e===null)break}return null}function mC(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Sn(e.nextSibling),e===null))return null;return e}function n8(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Sn(e.nextSibling),e===null))return null;return e}function pp(e){return e.data==="$?"||e.data==="$~"}function mp(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function gC(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Sn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var gp=null;function Dv(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Sn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function jv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function r8(e,t,n){switch(t=dd(n),e){case"html":if(e=t.documentElement,!e)throw Error(H(452));return e;case"head":if(e=t.head,!e)throw Error(H(453));return e;case"body":if(e=t.body,!e)throw Error(H(454));return e;default:throw Error(H(451))}}function fs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Em(e)}var Cn=new Map,Nv=new Set;function fd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Tr=ve.d;ve.d={f:vC,r:bC,D:yC,C:xC,L:wC,m:SC,X:EC,S:CC,M:MC};function vC(){var e=Tr.f(),t=uf();return e||t}function bC(e){var t=Vi(e);t!==null&&t.tag===5&&t.type==="form"?Z5(t):Tr.r(e)}var Xi=typeof document>"u"?null:document;function a8(e,t,n){var r=Xi;if(r&&typeof t=="string"&&t){var a=vn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Nv.has(a)||(Nv.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),mt(t,"link",e),it(t),r.head.appendChild(t)))}}function yC(e){Tr.D(e),a8("dns-prefetch",e,null)}function xC(e,t){Tr.C(e,t),a8("preconnect",e,t)}function wC(e,t,n){Tr.L(e,t,n);var r=Xi;if(r&&e&&t){var a='link[rel="preload"][as="'+vn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+vn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+vn(n.imageSizes)+'"]')):a+='[href="'+vn(e)+'"]';var l=a;switch(t){case"style":l=Ni(e);break;case"script":l=Yi(e)}Cn.has(l)||(e=Ne({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Cn.set(l,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(su(l))||t==="script"&&r.querySelector(uu(l))||(t=r.createElement("link"),mt(t,"link",e),it(t),r.head.appendChild(t)))}}function SC(e,t){Tr.m(e,t);var n=Xi;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+vn(r)+'"][href="'+vn(e)+'"]',l=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=Yi(e)}if(!Cn.has(l)&&(e=Ne({rel:"modulepreload",href:e},t),Cn.set(l,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(uu(l)))return}r=n.createElement("link"),mt(r,"link",e),it(r),n.head.appendChild(r)}}}function CC(e,t,n){Tr.S(e,t,n);var r=Xi;if(r&&e){var a=hi(r).hoistableStyles,l=Ni(e);t=t||"default";var i=a.get(l);if(!i){var o={loading:0,preload:null};if(i=r.querySelector(su(l)))o.loading=5;else{e=Ne({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Cn.get(l))&&ug(e,n);var s=i=r.createElement("link");it(s),mt(s,"link",e),s._p=new Promise(function(u,f){s.onload=u,s.onerror=f}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,jc(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:o},a.set(l,i)}}}function EC(e,t){Tr.X(e,t);var n=Xi;if(n&&e){var r=hi(n).hoistableScripts,a=Yi(e),l=r.get(a);l||(l=n.querySelector(uu(a)),l||(e=Ne({src:e,async:!0},t),(t=Cn.get(a))&&cg(e,t),l=n.createElement("script"),it(l),mt(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},r.set(a,l))}}function MC(e,t){Tr.M(e,t);var n=Xi;if(n&&e){var r=hi(n).hoistableScripts,a=Yi(e),l=r.get(a);l||(l=n.querySelector(uu(a)),l||(e=Ne({src:e,async:!0,type:"module"},t),(t=Cn.get(a))&&cg(e,t),l=n.createElement("script"),it(l),mt(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},r.set(a,l))}}function Av(e,t,n,r){var a=(a=ra.current)?fd(a):null;if(!a)throw Error(H(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ni(n.href),n=hi(a).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ni(n.href);var l=hi(a).hoistableStyles,i=l.get(e);if(i||(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,i),(l=a.querySelector(su(e)))&&!l._p&&(i.instance=l,i.state.loading=5),Cn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cn.set(e,n),l||OC(a,e,n,i.state))),t&&r===null)throw Error(H(528,""));return i}if(t&&r!==null)throw Error(H(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Yi(n),n=hi(a).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(H(444,e))}}function Ni(e){return'href="'+vn(e)+'"'}function su(e){return'link[rel="stylesheet"]['+e+"]"}function l8(e){return Ne({},e,{"data-precedence":e.precedence,precedence:null})}function OC(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),mt(t,"link",n),it(t),e.head.appendChild(t))}function Yi(e){return'[src="'+vn(e)+'"]'}function uu(e){return"script[async]"+e}function Lv(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+vn(n.href)+'"]');if(r)return t.instance=r,it(r),r;var a=Ne({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),it(r),mt(r,"style",a),jc(r,n.precedence,e),t.instance=r;case"stylesheet":a=Ni(n.href);var l=e.querySelector(su(a));if(l)return t.state.loading|=4,t.instance=l,it(l),l;r=l8(n),(a=Cn.get(a))&&ug(r,a),l=(e.ownerDocument||e).createElement("link"),it(l);var i=l;return i._p=new Promise(function(o,s){i.onload=o,i.onerror=s}),mt(l,"link",r),t.state.loading|=4,jc(l,n.precedence,e),t.instance=l;case"script":return l=Yi(n.src),(a=e.querySelector(uu(l)))?(t.instance=a,it(a),a):(r=n,(a=Cn.get(l))&&(r=Ne({},n),cg(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),it(a),mt(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(H(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,jc(r,n.precedence,e));return t.instance}function jc(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,l=a,i=0;i<r.length;i++){var o=r[i];if(o.dataset.precedence===t)l=o;else if(l!==a)break}l?l.parentNode.insertBefore(e,l.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function ug(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function cg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Nc=null;function _v(e,t,n){if(Nc===null){var r=new Map,a=Nc=new Map;a.set(n,r)}else a=Nc,r=a.get(n),r||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var l=n[a];if(!(l[nu]||l[ft]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var i=l.getAttribute(t)||"";i=e+i;var o=r.get(i);o?o.push(l):r.set(i,[l])}}return r}function zv(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function RC(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function i8(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function kC(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var a=Ni(r.href),l=t.querySelector(su(a));if(l){t=l._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=hd.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=l,it(l);return}l=t.ownerDocument||t,r=l8(r),(a=Cn.get(a))&&ug(r,a),l=l.createElement("link"),it(l);var i=l;i._p=new Promise(function(o,s){i.onload=o,i.onerror=s}),mt(l,"link",r),n.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=hd.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var S0=0;function TC(e,t){return e.stylesheets&&e.count===0&&Ac(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Ac(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4+t);0<e.imgBytes&&S0===0&&(S0=62500*uC());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ac(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>S0?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function hd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ac(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var pd=null;function Ac(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,pd=new Map,t.forEach(DC,e),pd=null,hd.call(e))}function DC(e,t){if(!(t.state.loading&4)){var n=pd.get(e);if(n)var r=n.get(null);else{n=new Map,pd.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<a.length;l++){var i=a[l];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}a=t.instance,i=a.getAttribute("data-precedence"),l=n.get(i)||r,l===r&&n.set(null,a),n.set(i,a),this.count++,r=hd.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),l?l.parentNode.insertBefore(a,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var As={$$typeof:pr,Provider:null,Consumer:null,_currentValue:el,_currentValue2:el,_threadCount:0};function jC(e,t,n,r,a,l,i,o,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Gf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gf(0),this.hiddenUpdates=Gf(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=l,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function o8(e,t,n,r,a,l,i,o,s,u,f,c){return e=new jC(e,t,n,i,s,u,f,c,o),t=1,l===!0&&(t|=24),l=Qt(3,null,null,t),e.current=l,l.stateNode=e,t=zm(),t.refCount++,e.pooledCache=t,t.refCount++,l.memoizedState={element:r,isDehydrated:n,cache:t},Km(l),e}function s8(e){return e?(e=ii,e):ii}function u8(e,t,n,r,a,l){a=s8(a),r.context===null?r.context=a:r.pendingContext=a,r=la(t),r.payload={element:n},l=l===void 0?null:l,l!==null&&(r.callback=l),n=ia(e,r,t),n!==null&&(zt(n,e,t),as(n,e,t))}function Pv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function dg(e,t){Pv(e,t),(e=e.alternate)&&Pv(e,t)}function c8(e){if(e.tag===13||e.tag===31){var t=bl(e,67108864);t!==null&&zt(t,e,67108864),dg(e,67108864)}}function Hv(e){if(e.tag===13||e.tag===31){var t=tn();t=Sm(t);var n=bl(e,t);n!==null&&zt(n,e,t),dg(e,t)}}var md=!0;function NC(e,t,n,r){var a=J.T;J.T=null;var l=ve.p;try{ve.p=2,fg(e,t,n,r)}finally{ve.p=l,J.T=a}}function AC(e,t,n,r){var a=J.T;J.T=null;var l=ve.p;try{ve.p=8,fg(e,t,n,r)}finally{ve.p=l,J.T=a}}function fg(e,t,n,r){if(md){var a=vp(r);if(a===null)x0(e,t,r,gd,n),Kv(e,r);else if(_C(a,e,t,n,r))r.stopPropagation();else if(Kv(e,r),t&4&&-1<LC.indexOf(e)){for(;a!==null;){var l=Vi(a);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var i=Ia(l.pendingLanes);if(i!==0){var o=l;for(o.pendingLanes|=2,o.entangledLanes|=2;i;){var s=1<<31-en(i);o.entanglements[1]|=s,i&=~s}$n(l),!(me&6)&&(ld=$t()+500,ou(0))}}break;case 31:case 13:o=bl(l,2),o!==null&&zt(o,l,2),uf(),dg(l,2)}if(l=vp(r),l===null&&x0(e,t,r,gd,n),l===a)break;a=l}a!==null&&r.stopPropagation()}else x0(e,t,r,null,n)}}function vp(e){return e=Om(e),hg(e)}var gd=null;function hg(e){if(gd=null,e=ei(e),e!==null){var t=$s(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=D2(t),e!==null)return e;e=null}else if(n===31){if(e=j2(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return gd=e,null}function d8(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(yw()){case _2:return 2;case z2:return 8;case Gc:case xw:return 32;case P2:return 268435456;default:return 32}default:return 32}}var bp=!1,ua=null,ca=null,da=null,Ls=new Map,_s=new Map,Ir=[],LC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Kv(e,t){switch(e){case"focusin":case"focusout":ua=null;break;case"dragenter":case"dragleave":ca=null;break;case"mouseover":case"mouseout":da=null;break;case"pointerover":case"pointerout":Ls.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_s.delete(t.pointerId)}}function go(e,t,n,r,a,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[a]},t!==null&&(t=Vi(t),t!==null&&c8(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function _C(e,t,n,r,a){switch(t){case"focusin":return ua=go(ua,e,t,n,r,a),!0;case"dragenter":return ca=go(ca,e,t,n,r,a),!0;case"mouseover":return da=go(da,e,t,n,r,a),!0;case"pointerover":var l=a.pointerId;return Ls.set(l,go(Ls.get(l)||null,e,t,n,r,a)),!0;case"gotpointercapture":return l=a.pointerId,_s.set(l,go(_s.get(l)||null,e,t,n,r,a)),!0}return!1}function f8(e){var t=ei(e.target);if(t!==null){var n=$s(t);if(n!==null){if(t=n.tag,t===13){if(t=D2(n),t!==null){e.blockedOn=t,C1(e.priority,function(){Hv(n)});return}}else if(t===31){if(t=j2(n),t!==null){e.blockedOn=t,C1(e.priority,function(){Hv(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);zh=r,n.target.dispatchEvent(r),zh=null}else return t=Vi(n),t!==null&&c8(t),e.blockedOn=n,!1;t.shift()}return!0}function Uv(e,t,n){Lc(e)&&n.delete(t)}function zC(){bp=!1,ua!==null&&Lc(ua)&&(ua=null),ca!==null&&Lc(ca)&&(ca=null),da!==null&&Lc(da)&&(da=null),Ls.forEach(Uv),_s.forEach(Uv)}function Pu(e,t){e.blockedOn===t&&(e.blockedOn=null,bp||(bp=!0,tt.unstable_scheduleCallback(tt.unstable_NormalPriority,zC)))}var Hu=null;function Bv(e){Hu!==e&&(Hu=e,tt.unstable_scheduleCallback(tt.unstable_NormalPriority,function(){Hu===e&&(Hu=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if(typeof r!="function"){if(hg(r||n)===null)continue;break}var l=Vi(n);l!==null&&(e.splice(t,3),t-=3,$h(l,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Ai(e){function t(s){return Pu(s,e)}ua!==null&&Pu(ua,e),ca!==null&&Pu(ca,e),da!==null&&Pu(da,e),Ls.forEach(t),_s.forEach(t);for(var n=0;n<Ir.length;n++){var r=Ir[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ir.length&&(n=Ir[0],n.blockedOn===null);)f8(n),n.blockedOn===null&&Ir.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var a=n[r],l=n[r+1],i=a[Pt]||null;if(typeof l=="function")i||Bv(n);else if(i){var o=null;if(l&&l.hasAttribute("formAction")){if(a=l,i=l[Pt]||null)o=i.formAction;else if(hg(a)!==null)continue}else o=i.action;typeof o=="function"?n[r+1]=o:(n.splice(r,3),r-=3),Bv(n)}}}function h8(){function e(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(i){return a=i})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function pg(e){this._internalRoot=e}ff.prototype.render=pg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));var n=t.current,r=tn();u8(n,r,e,t,null,null)};ff.prototype.unmount=pg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;u8(e.current,2,null,e,null,null),uf(),t[qi]=null}};function ff(e){this._internalRoot=e}ff.prototype.unstable_scheduleHydration=function(e){if(e){var t=F2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ir.length&&t!==0&&t<Ir[n].priority;n++);Ir.splice(n,0,e),n===0&&f8(e)}};var Fv=k2.version;if(Fv!=="19.2.3")throw Error(H(527,Fv,"19.2.3"));ve.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=fw(t),e=e!==null?N2(e):null,e=e===null?null:e.stateNode,e};var PC={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:J,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ku.isDisabled&&Ku.supportsFiber)try{Js=Ku.inject(PC),Jt=Ku}catch{}}Xd.createRoot=function(e,t){if(!T2(e))throw Error(H(299));var n=!1,r="",a=a9,l=l9,i=i9;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=o8(e,1,!1,null,null,n,r,null,a,l,i,h8),e[qi]=t.current,sg(e),new pg(t)};Xd.hydrateRoot=function(e,t,n){if(!T2(e))throw Error(H(299));var r=!1,a="",l=a9,i=l9,o=i9,s=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(l=n.onUncaughtError),n.onCaughtError!==void 0&&(i=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),t=o8(e,1,!0,t,n??null,r,a,s,l,i,o,h8),t.context=s8(null),n=t.current,r=tn(),r=Sm(r),a=la(r),a.callback=null,ia(n,a,r),n=r,t.current.lanes=n,tu(t,n),$n(t),e[qi]=t.current,sg(e),new ff(t)};Xd.version="19.2.3";function p8(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(p8)}catch(e){console.error(e)}}p8(),p2.exports=Xd;var HC=p2.exports,m8=e=>{throw TypeError(e)},mg=(e,t,n)=>t.has(e)||m8("Cannot "+n),R=(e,t,n)=>(mg(e,t,"read from private field"),n?n.call(e):t.get(e)),X=(e,t,n)=>t.has(e)?m8("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),q=(e,t,n,r)=>(mg(e,t,"write to private field"),t.set(e,n),n),$=(e,t,n)=>(mg(e,t,"access private method"),n),yp=(e,t,n,r)=>({set _(a){q(e,t,a)},get _(){return R(e,t,r)}});function g8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var v8={exports:{}},hf={};/**
|
|
50
50
|
* @license React
|
|
51
51
|
* react-jsx-runtime.production.js
|
|
52
52
|
*
|
|
@@ -54,8 +54,8 @@ Error generating stack: `+r.message+`
|
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the MIT license found in the
|
|
56
56
|
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var DS=Symbol.for("react.transitional.element"),NS=Symbol.for("react.fragment");function g8(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:DS,type:e,key:r,ref:t!==void 0?t:null,props:n}}hf.Fragment=NS;hf.jsx=g8;hf.jsxs=g8;m8.exports=hf;var w=m8.exports,El=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},AS={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},_a,Bv,qv,LS=(qv=class{constructor(){X(this,_a,AS),X(this,Bv,!1)}setTimeoutProvider(e){q(this,_a,e)}setTimeout(e,t){return R(this,_a).setTimeout(e,t)}clearTimeout(e){R(this,_a).clearTimeout(e)}setInterval(e,t){return R(this,_a).setInterval(e,t)}clearInterval(e){R(this,_a).clearInterval(e)}},_a=new WeakMap,Bv=new WeakMap,qv),tl=new LS;function _S(e){setTimeout(e,0)}var hl=typeof window>"u"||"Deno"in globalThis;function gt(){}function zS(e,t){return typeof e=="function"?e(t):e}function bp(e){return typeof e=="number"&&e>=0&&e!==1/0}function v8(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pa(e,t){return typeof e=="function"?e(t):e}function hn(e,t){return typeof e=="function"?e(t):e}function Fv(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:l,queryKey:i,stale:o}=e;if(i){if(r){if(t.queryHash!==pg(i,t.options))return!1}else if(!Ks(t.queryKey,i))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||a&&a!==t.state.fetchStatus||l&&!l(t))}function Vv(e,t){const{exact:n,status:r,predicate:a,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(Ca(t.options.mutationKey)!==Ca(l))return!1}else if(!Ks(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function pg(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ca)(e)}function Ca(e){return JSON.stringify(e,(t,n)=>yp(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Ks(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ks(e[n],t[n])):!1}var PS=Object.prototype.hasOwnProperty;function mg(e,t){if(e===t)return e;const n=Gv(e)&&Gv(t);if(!n&&!(yp(e)&&yp(t)))return t;const r=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),l=a.length,i=n?new Array(l):{};let o=0;for(let s=0;s<l;s++){const u=n?s:a[s],f=e[u],c=t[u];if(f===c){i[u]=f,(n?s<r:PS.call(e,u))&&o++;continue}if(f===null||c===null||typeof f!="object"||typeof c!="object"){i[u]=c;continue}const d=mg(f,c);i[u]=d,d===f&&o++}return r===l&&o===r?e:i}function Us(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Gv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function yp(e){if(!Qv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Qv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Qv(e){return Object.prototype.toString.call(e)==="[object Object]"}function HS(e){return new Promise(t=>{tl.setTimeout(t,e)})}function xp(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?mg(e,t):t}function KS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function US(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Xt=Symbol();function b8(e,t){return!e.queryFn&&t!=null&&t.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Xt?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function y8(e,t){return typeof e=="function"?e(...t):!!e}var _l,za,xo,Iv,BS=(Iv=class extends El{constructor(){super(),X(this,_l),X(this,za),X(this,xo),q(this,xo,e=>{if(!hl&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){R(this,za)||this.setEventListener(R(this,xo))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,za))==null||e.call(this),q(this,za,void 0))}setEventListener(e){var t;q(this,xo,e),(t=R(this,za))==null||t.call(this),q(this,za,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){R(this,_l)!==e&&(q(this,_l,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return typeof R(this,_l)=="boolean"?R(this,_l):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},_l=new WeakMap,za=new WeakMap,xo=new WeakMap,Iv),gg=new BS;function wp(){let e,t;const n=new Promise((a,l)=>{e=a,t=l});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var qS=_S;function FS(){let e=[],t=0,n=o=>{o()},r=o=>{o()},a=qS;const l=o=>{t?e.push(o):a(()=>{n(o)})},i=()=>{const o=e;e=[],o.length&&a(()=>{r(()=>{o.forEach(s=>{n(s)})})})};return{batch:o=>{let s;t++;try{s=o()}finally{t--,t||i()}return s},batchCalls:o=>(...s)=>{l(()=>{o(...s)})},schedule:l,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{a=o}}}var Pe=FS(),wo,Pa,Co,Xv,VS=(Xv=class extends El{constructor(){super(),X(this,wo,!0),X(this,Pa),X(this,Co),q(this,Co,e=>{if(!hl&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){R(this,Pa)||this.setEventListener(R(this,Co))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,Pa))==null||e.call(this),q(this,Pa,void 0))}setEventListener(e){var t;q(this,Co,e),(t=R(this,Pa))==null||t.call(this),q(this,Pa,e(this.setOnline.bind(this)))}setOnline(e){R(this,wo)!==e&&(q(this,wo,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return R(this,wo)}},wo=new WeakMap,Pa=new WeakMap,Co=new WeakMap,Xv),vd=new VS;function GS(e){return Math.min(1e3*2**e,3e4)}function x8(e){return(e??"online")==="online"?vd.isOnline():!0}var Cp=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function w8(e){let t=!1,n=0,r;const a=wp(),l=()=>a.status!=="pending",i=b=>{var y;if(!l()){const v=new Cp(b);d(v),(y=e.onCancel)==null||y.call(e,v)}},o=()=>{t=!0},s=()=>{t=!1},u=()=>gg.isFocused()&&(e.networkMode==="always"||vd.isOnline())&&e.canRun(),f=()=>x8(e.networkMode)&&e.canRun(),c=b=>{l()||(r==null||r(),a.resolve(b))},d=b=>{l()||(r==null||r(),a.reject(b))},h=()=>new Promise(b=>{var y;r=v=>{(l()||u())&&b(v)},(y=e.onPause)==null||y.call(e)}).then(()=>{var b;r=void 0,l()||(b=e.onContinue)==null||b.call(e)}),m=()=>{if(l())return;let b;const y=n===0?e.initialPromise:void 0;try{b=y??e.fn()}catch(v){b=Promise.reject(v)}Promise.resolve(b).then(c).catch(v=>{var g;if(l())return;const x=e.retry??(hl?0:3),C=e.retryDelay??GS,E=typeof C=="function"?C(n,v):C,S=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,v);if(t||!S){d(v);return}n++,(g=e.onFail)==null||g.call(e,n,v),HS(E).then(()=>u()?void 0:h()).then(()=>{t?d(v):m()})})};return{promise:a,status:()=>a.status,cancel:i,continue:()=>(r==null||r(),a),cancelRetry:o,continueRetry:s,canStart:f,start:()=>(f()?m():h().then(m),a)}}var zl,Yv,C8=(Yv=class{constructor(){X(this,zl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bp(this.gcTime)&&q(this,zl,tl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(hl?1/0:5*60*1e3))}clearGcTimeout(){R(this,zl)&&(tl.clearTimeout(R(this,zl)),q(this,zl,void 0))}},zl=new WeakMap,Yv),Pl,So,Ln,Hl,ut,Bu,Kl,Gn,ur,Zv,QS=(Zv=class extends C8{constructor(e){super(),X(this,Gn),X(this,Pl),X(this,So),X(this,Ln),X(this,Hl),X(this,ut),X(this,Bu),X(this,Kl),q(this,Kl,!1),q(this,Bu,e.defaultOptions),this.setOptions(e.options),this.observers=[],q(this,Hl,e.client),q(this,Ln,R(this,Hl).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,q(this,Pl,Wv(this.options)),this.state=e.state??R(this,Pl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=R(this,ut))==null?void 0:e.promise}setOptions(e){if(this.options={...R(this,Bu),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Wv(this.options);t.data!==void 0&&(this.setState($v(t.data,t.dataUpdatedAt)),q(this,Pl,t))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,Ln).remove(this)}setData(e,t){const n=xp(this.state.data,e,this.options);return $(this,Gn,ur).call(this,{data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e,t){$(this,Gn,ur).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=(t=R(this,ut))==null?void 0:t.promise;return(n=R(this,ut))==null||n.cancel(e),r?r.then(gt).catch(gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,Pl))}isActive(){return this.observers.some(e=>hn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xt||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>pa(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!v8(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=R(this,ut))==null||e.continue()}onOnline(){var e;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=R(this,ut))==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),R(this,Ln).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(R(this,ut)&&(R(this,Kl)?R(this,ut).cancel({revert:!0}):R(this,ut).cancelRetry()),this.scheduleGc()),R(this,Ln).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$(this,Gn,ur).call(this,{type:"invalidate"})}async fetch(e,t){var n,r,a,l,i,o,s,u,f,c,d,h;if(this.state.fetchStatus!=="idle"&&((n=R(this,ut))==null?void 0:n.status())!=="rejected"){if(this.state.data!==void 0&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(R(this,ut))return R(this,ut).continueRetry(),R(this,ut).promise}if(e&&this.setOptions(e),!this.options.queryFn){const g=this.observers.find(x=>x.options.queryFn);g&&this.setOptions(g.options)}const m=new AbortController,b=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(q(this,Kl,!0),m.signal)})},y=()=>{const g=b8(this.options,t),x=(()=>{const C={client:R(this,Hl),queryKey:this.queryKey,meta:this.meta};return b(C),C})();return q(this,Kl,!1),this.options.persister?this.options.persister(g,x,this):g(x)},v=(()=>{const g={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:R(this,Hl),state:this.state,fetchFn:y};return b(g),g})();(r=this.options.behavior)==null||r.onFetch(v,this),q(this,So,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=v.fetchOptions)==null?void 0:a.meta))&&$(this,Gn,ur).call(this,{type:"fetch",meta:(l=v.fetchOptions)==null?void 0:l.meta}),q(this,ut,w8({initialPromise:t==null?void 0:t.initialPromise,fn:v.fetchFn,onCancel:g=>{g instanceof Cp&&g.revert&&this.setState({...R(this,So),fetchStatus:"idle"}),m.abort()},onFail:(g,x)=>{$(this,Gn,ur).call(this,{type:"failed",failureCount:g,error:x})},onPause:()=>{$(this,Gn,ur).call(this,{type:"pause"})},onContinue:()=>{$(this,Gn,ur).call(this,{type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0}));try{const g=await R(this,ut).start();if(g===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(g),(o=(i=R(this,Ln).config).onSuccess)==null||o.call(i,g,this),(u=(s=R(this,Ln).config).onSettled)==null||u.call(s,g,this.state.error,this),g}catch(g){if(g instanceof Cp){if(g.silent)return R(this,ut).promise;if(g.revert){if(this.state.data===void 0)throw g;return this.state.data}}throw $(this,Gn,ur).call(this,{type:"error",error:g}),(c=(f=R(this,Ln).config).onError)==null||c.call(f,g,this),(h=(d=R(this,Ln).config).onSettled)==null||h.call(d,this.state.data,g,this),g}finally{this.scheduleGc()}}},Pl=new WeakMap,So=new WeakMap,Ln=new WeakMap,Hl=new WeakMap,ut=new WeakMap,Bu=new WeakMap,Kl=new WeakMap,Gn=new WeakSet,ur=function(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...S8(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...$v(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,So,e.manual?r:void 0),r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Pe.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),R(this,Ln).notify({query:this,type:"updated",action:e})})},Zv);function S8(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:x8(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function $v(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Wv(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Bt,de,qu,Ot,Ul,Eo,Pr,Ha,Fu,Mo,Oo,Bl,ql,Ka,Ro,He,To,S0,E0,M0,O0,R0,T0,k0,Jv,eb,fu=(eb=class extends El{constructor(e,t){super(),X(this,He),X(this,Bt),X(this,de),X(this,qu),X(this,Ot),X(this,Ul),X(this,Eo),X(this,Pr),X(this,Ha),X(this,Fu),X(this,Mo),X(this,Oo),X(this,Bl),X(this,ql),X(this,Ka),X(this,Ro,new Set),this.options=t,q(this,Bt,e),q(this,Ha,null),q(this,Pr,wp()),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,de).addObserver(this),tb(R(this,de),this.options)?$(this,He,To).call(this):this.updateResult(),$(this,He,O0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Sp(R(this,de),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Sp(R(this,de),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$(this,He,R0).call(this),$(this,He,T0).call(this),R(this,de).removeObserver(this)}setOptions(e){const t=this.options,n=R(this,de);if(this.options=R(this,Bt).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof hn(this.options.enabled,R(this,de))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$(this,He,k0).call(this),R(this,de).setOptions(this.options),t._defaulted&&!Us(this.options,t)&&R(this,Bt).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,de),observer:this});const r=this.hasListeners();r&&nb(R(this,de),n,this.options,t)&&$(this,He,To).call(this),this.updateResult(),r&&(R(this,de)!==n||hn(this.options.enabled,R(this,de))!==hn(t.enabled,R(this,de))||pa(this.options.staleTime,R(this,de))!==pa(t.staleTime,R(this,de)))&&$(this,He,S0).call(this);const a=$(this,He,E0).call(this);r&&(R(this,de)!==n||hn(this.options.enabled,R(this,de))!==hn(t.enabled,R(this,de))||a!==R(this,Ka))&&$(this,He,M0).call(this,a)}getOptimisticResult(e){const t=R(this,Bt).getQueryCache().build(R(this,Bt),e),n=this.createResult(t,e);return XS(this,n)&&(q(this,Ot,n),q(this,Eo,this.options),q(this,Ul,R(this,de).state)),n}getCurrentResult(){return R(this,Ot)}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t==null||t(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&R(this,Pr).status==="pending"&&R(this,Pr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){R(this,Ro).add(e)}getCurrentQuery(){return R(this,de)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=R(this,Bt).defaultQueryOptions(e),n=R(this,Bt).getQueryCache().build(R(this,Bt),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return $(this,He,To).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,Ot)))}createResult(e,t){var n;const r=R(this,de),a=this.options,l=R(this,Ot),i=R(this,Ul),o=R(this,Eo),s=e!==r?e.state:R(this,qu),{state:u}=e;let f={...u},c=!1,d;if(t._optimisticResults){const M=this.hasListeners(),A=!M&&tb(e,t),D=M&&nb(e,r,t,a);(A||D)&&(f={...f,...S8(u.data,e.options)}),t._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:h,errorUpdatedAt:m,status:b}=f;d=f.data;let y=!1;if(t.placeholderData!==void 0&&d===void 0&&b==="pending"){let M;l!=null&&l.isPlaceholderData&&t.placeholderData===(o==null?void 0:o.placeholderData)?(M=l.data,y=!0):M=typeof t.placeholderData=="function"?t.placeholderData((n=R(this,Oo))==null?void 0:n.state.data,R(this,Oo)):t.placeholderData,M!==void 0&&(b="success",d=xp(l==null?void 0:l.data,M,t),c=!0)}if(t.select&&d!==void 0&&!y)if(l&&d===(i==null?void 0:i.data)&&t.select===R(this,Fu))d=R(this,Mo);else try{q(this,Fu,t.select),d=t.select(d),d=xp(l==null?void 0:l.data,d,t),q(this,Mo,d),q(this,Ha,null)}catch(M){q(this,Ha,M)}R(this,Ha)&&(h=R(this,Ha),d=R(this,Mo),m=Date.now(),b="error");const v=f.fetchStatus==="fetching",g=b==="pending",x=b==="error",C=g&&v,E=d!==void 0,S={status:b,fetchStatus:f.fetchStatus,isPending:g,isSuccess:b==="success",isError:x,isInitialLoading:C,isLoading:C,data:d,dataUpdatedAt:f.dataUpdatedAt,error:h,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>s.dataUpdateCount||f.errorUpdateCount>s.errorUpdateCount,isFetching:v,isRefetching:v&&!g,isLoadingError:x&&!E,isPaused:f.fetchStatus==="paused",isPlaceholderData:c,isRefetchError:x&&E,isStale:vg(e,t),refetch:this.refetch,promise:R(this,Pr),isEnabled:hn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const M=N=>{S.status==="error"?N.reject(S.error):S.data!==void 0&&N.resolve(S.data)},A=()=>{const N=q(this,Pr,S.promise=wp());M(N)},D=R(this,Pr);switch(D.status){case"pending":e.queryHash===r.queryHash&&M(D);break;case"fulfilled":(S.status==="error"||S.data!==D.value)&&A();break;case"rejected":(S.status!=="error"||S.error!==D.reason)&&A();break}}return S}updateResult(){const e=R(this,Ot),t=this.createResult(R(this,de),this.options);if(q(this,Ul,R(this,de).state),q(this,Eo,this.options),R(this,Ul).data!==void 0&&q(this,Oo,R(this,de)),Us(t,e))return;q(this,Ot,t);const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!R(this,Ro).size)return!0;const l=new Set(a??R(this,Ro));return this.options.throwOnError&&l.add("error"),Object.keys(R(this,Ot)).some(i=>{const o=i;return R(this,Ot)[o]!==e[o]&&l.has(o)})};$(this,He,Jv).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$(this,He,O0).call(this)}},Bt=new WeakMap,de=new WeakMap,qu=new WeakMap,Ot=new WeakMap,Ul=new WeakMap,Eo=new WeakMap,Pr=new WeakMap,Ha=new WeakMap,Fu=new WeakMap,Mo=new WeakMap,Oo=new WeakMap,Bl=new WeakMap,ql=new WeakMap,Ka=new WeakMap,Ro=new WeakMap,He=new WeakSet,To=function(e){$(this,He,k0).call(this);let t=R(this,de).fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(gt)),t},S0=function(){$(this,He,R0).call(this);const e=pa(this.options.staleTime,R(this,de));if(hl||R(this,Ot).isStale||!bp(e))return;const t=v8(R(this,Ot).dataUpdatedAt,e)+1;q(this,Bl,tl.setTimeout(()=>{R(this,Ot).isStale||this.updateResult()},t))},E0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,de)):this.options.refetchInterval)??!1},M0=function(e){$(this,He,T0).call(this),q(this,Ka,e),!(hl||hn(this.options.enabled,R(this,de))===!1||!bp(R(this,Ka))||R(this,Ka)===0)&&q(this,ql,tl.setInterval(()=>{(this.options.refetchIntervalInBackground||gg.isFocused())&&$(this,He,To).call(this)},R(this,Ka)))},O0=function(){$(this,He,S0).call(this),$(this,He,M0).call(this,$(this,He,E0).call(this))},R0=function(){R(this,Bl)&&(tl.clearTimeout(R(this,Bl)),q(this,Bl,void 0))},T0=function(){R(this,ql)&&(tl.clearInterval(R(this,ql)),q(this,ql,void 0))},k0=function(){const e=R(this,Bt).getQueryCache().build(R(this,Bt),this.options);if(e===R(this,de))return;const t=R(this,de);q(this,de,e),q(this,qu,e.state),this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))},Jv=function(e){Pe.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(R(this,Ot))}),R(this,Bt).getQueryCache().notify({query:R(this,de),type:"observerResultsUpdated"})})},eb);function IS(e,t){return hn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function tb(e,t){return IS(e,t)||e.state.data!==void 0&&Sp(e,t,t.refetchOnMount)}function Sp(e,t,n){if(hn(t.enabled,e)!==!1&&pa(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&vg(e,t)}return!1}function nb(e,t,n,r){return(e!==t||hn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&vg(e,n)}function vg(e,t){return hn(t.enabled,e)!==!1&&e.isStaleByTime(pa(t.staleTime,e))}function XS(e,t){return!Us(e.getCurrentResult(),t)}function bd(e){return{onFetch:(t,n)=>{var r,a,l,i,o;const s=t.options,u=(l=(a=(r=t.fetchOptions)==null?void 0:r.meta)==null?void 0:a.fetchMore)==null?void 0:l.direction,f=((i=t.state.data)==null?void 0:i.pages)||[],c=((o=t.state.data)==null?void 0:o.pageParams)||[];let d={pages:[],pageParams:[]},h=0;const m=async()=>{let b=!1;const y=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},v=b8(t.options,t.fetchOptions),g=async(x,C,E)=>{if(b)return Promise.reject();if(C==null&&x.pages.length)return Promise.resolve(x);const S=(()=>{const N={client:t.client,queryKey:t.queryKey,pageParam:C,direction:E?"backward":"forward",meta:t.options.meta};return y(N),N})(),M=await v(S),{maxPages:A}=t.options,D=E?US:KS;return{pages:D(x.pages,M,A),pageParams:D(x.pageParams,C,A)}};if(u&&f.length){const x=u==="backward",C=x?E8:Ep,E={pages:f,pageParams:c},S=C(s,E);d=await g(E,S,x)}else{const x=e??f.length;do{const C=h===0?c[0]??s.initialPageParam:Ep(s,d);if(h>0&&C==null)break;d=await g(d,C),h++}while(h<x)}return d};t.options.persister?t.fetchFn=()=>{var b,y;return(y=(b=t.options).persister)==null?void 0:y.call(b,m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=m}}}function Ep(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function E8(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function YS(e,t){return t?Ep(e,t)!=null:!1}function ZS(e,t){return!t||!e.getPreviousPageParam?!1:E8(e,t)!=null}var M8=class extends fu{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:bd()})}getOptimisticResult(e){return e.behavior=bd(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var n,r;const{state:a}=e,l=super.createResult(e,t),{isFetching:i,isRefetching:o,isError:s,isRefetchError:u}=l,f=(r=(n=a.fetchMeta)==null?void 0:n.fetchMore)==null?void 0:r.direction,c=s&&f==="forward",d=i&&f==="forward",h=s&&f==="backward",m=i&&f==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:YS(t,a.data),hasPreviousPage:ZS(t,a.data),isFetchNextPageError:c,isFetchingNextPage:d,isFetchPreviousPageError:h,isFetchingPreviousPage:m,isRefetchError:u&&!c&&!h,isRefetching:o&&!d&&!m}}},Vu,cr,Rt,Fl,dr,Hr,rb,$S=(rb=class extends C8{constructor(e){super(),X(this,dr),X(this,Vu),X(this,cr),X(this,Rt),X(this,Fl),q(this,Vu,e.client),this.mutationId=e.mutationId,q(this,Rt,e.mutationCache),q(this,cr,[]),this.state=e.state||O8(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){R(this,cr).includes(e)||(R(this,cr).push(e),this.clearGcTimeout(),R(this,Rt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){q(this,cr,R(this,cr).filter(t=>t!==e)),this.scheduleGc(),R(this,Rt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){R(this,cr).length||(this.state.status==="pending"?this.scheduleGc():R(this,Rt).remove(this))}continue(){var e;return((e=R(this,Fl))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,r,a,l,i,o,s,u,f,c,d,h,m,b,y,v,g,x,C;const E=()=>{$(this,dr,Hr).call(this,{type:"continue"})},S={client:R(this,Vu),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,Fl,w8({fn:()=>this.options.mutationFn?this.options.mutationFn(e,S):Promise.reject(new Error("No mutationFn found")),onFail:(D,N)=>{$(this,dr,Hr).call(this,{type:"failed",failureCount:D,error:N})},onPause:()=>{$(this,dr,Hr).call(this,{type:"pause"})},onContinue:E,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,Rt).canRun(this)}));const M=this.state.status==="pending",A=!R(this,Fl).canStart();try{if(M)E();else{$(this,dr,Hr).call(this,{type:"pending",variables:e,isPaused:A}),await((n=(t=R(this,Rt).config).onMutate)==null?void 0:n.call(t,e,this,S));const N=await((a=(r=this.options).onMutate)==null?void 0:a.call(r,e,S));N!==this.state.context&&$(this,dr,Hr).call(this,{type:"pending",context:N,variables:e,isPaused:A})}const D=await R(this,Fl).start();return await((i=(l=R(this,Rt).config).onSuccess)==null?void 0:i.call(l,D,e,this.state.context,this,S)),await((s=(o=this.options).onSuccess)==null?void 0:s.call(o,D,e,this.state.context,S)),await((f=(u=R(this,Rt).config).onSettled)==null?void 0:f.call(u,D,null,this.state.variables,this.state.context,this,S)),await((d=(c=this.options).onSettled)==null?void 0:d.call(c,D,null,e,this.state.context,S)),$(this,dr,Hr).call(this,{type:"success",data:D}),D}catch(D){try{throw await((m=(h=R(this,Rt).config).onError)==null?void 0:m.call(h,D,e,this.state.context,this,S)),await((y=(b=this.options).onError)==null?void 0:y.call(b,D,e,this.state.context,S)),await((g=(v=R(this,Rt).config).onSettled)==null?void 0:g.call(v,void 0,D,this.state.variables,this.state.context,this,S)),await((C=(x=this.options).onSettled)==null?void 0:C.call(x,void 0,D,e,this.state.context,S)),D}finally{$(this,dr,Hr).call(this,{type:"error",error:D})}}finally{R(this,Rt).runNext(this)}}},Vu=new WeakMap,cr=new WeakMap,Rt=new WeakMap,Fl=new WeakMap,dr=new WeakSet,Hr=function(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Pe.batch(()=>{R(this,cr).forEach(n=>{n.onMutationUpdate(e)}),R(this,Rt).notify({mutation:this,type:"updated",action:e})})},rb);function O8(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kr,Qn,Gu,ab,WS=(ab=class extends El{constructor(e={}){super(),X(this,Kr),X(this,Qn),X(this,Gu),this.config=e,q(this,Kr,new Set),q(this,Qn,new Map),q(this,Gu,0)}build(e,t,n){const r=new $S({client:e,mutationCache:this,mutationId:++vp(this,Gu)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){R(this,Kr).add(e);const t=Qu(e);if(typeof t=="string"){const n=R(this,Qn).get(t);n?n.push(e):R(this,Qn).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(R(this,Kr).delete(e)){const t=Qu(e);if(typeof t=="string"){const n=R(this,Qn).get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&R(this,Qn).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Qu(e);if(typeof t=="string"){const n=R(this,Qn).get(t),r=n==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){var t;const n=Qu(e);if(typeof n=="string"){const r=(t=R(this,Qn).get(n))==null?void 0:t.find(a=>a!==e&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Pe.batch(()=>{R(this,Kr).forEach(e=>{this.notify({type:"removed",mutation:e})}),R(this,Kr).clear(),R(this,Qn).clear()})}getAll(){return Array.from(R(this,Kr))}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Vv(t,n))}findAll(e={}){return this.getAll().filter(t=>Vv(e,t))}notify(e){Pe.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Pe.batch(()=>Promise.all(e.map(t=>t.continue().catch(gt))))}},Kr=new WeakMap,Qn=new WeakMap,Gu=new WeakMap,ab);function Qu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ur,Ua,qt,Br,Ba,Iu,j0,lb,JS=(lb=class extends El{constructor(e,t){super(),X(this,Ba),X(this,Ur),X(this,Ua),X(this,qt),X(this,Br),q(this,Ur,e),this.setOptions(t),this.bindMethods(),$(this,Ba,Iu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=R(this,Ur).defaultMutationOptions(e),Us(this.options,n)||R(this,Ur).getMutationCache().notify({type:"observerOptionsUpdated",mutation:R(this,qt),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ca(n.mutationKey)!==Ca(this.options.mutationKey)?this.reset():((t=R(this,qt))==null?void 0:t.state.status)==="pending"&&R(this,qt).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(e=R(this,qt))==null||e.removeObserver(this)}onMutationUpdate(e){$(this,Ba,Iu).call(this),$(this,Ba,j0).call(this,e)}getCurrentResult(){return R(this,Ua)}reset(){var e;(e=R(this,qt))==null||e.removeObserver(this),q(this,qt,void 0),$(this,Ba,Iu).call(this),$(this,Ba,j0).call(this)}mutate(e,t){var n;return q(this,Br,t),(n=R(this,qt))==null||n.removeObserver(this),q(this,qt,R(this,Ur).getMutationCache().build(R(this,Ur),this.options)),R(this,qt).addObserver(this),R(this,qt).execute(e)}},Ur=new WeakMap,Ua=new WeakMap,qt=new WeakMap,Br=new WeakMap,Ba=new WeakSet,Iu=function(){var e;const t=((e=R(this,qt))==null?void 0:e.state)??O8();q(this,Ua,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},j0=function(e){Pe.batch(()=>{var t,n,r,a,l,i,o,s;if(R(this,Br)&&this.hasListeners()){const u=R(this,Ua).variables,f=R(this,Ua).context,c={client:R(this,Ur),meta:this.options.meta,mutationKey:this.options.mutationKey};(e==null?void 0:e.type)==="success"?((n=(t=R(this,Br)).onSuccess)==null||n.call(t,e.data,u,f,c),(a=(r=R(this,Br)).onSettled)==null||a.call(r,e.data,null,u,f,c)):(e==null?void 0:e.type)==="error"&&((i=(l=R(this,Br)).onError)==null||i.call(l,e.error,u,f,c),(s=(o=R(this,Br)).onSettled)==null||s.call(o,void 0,e.error,u,f,c))}this.listeners.forEach(u=>{u(R(this,Ua))})})},lb);function ib(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function eE(e,t,n){const r=e.slice(0);return r[t]=n,r}var ko,un,jo,Do,_n,qa,Xu,Yu,Zu,cn,D0,N0,A0,L0,_0,ob,tE=(ob=class extends El{constructor(e,t,n){super(),X(this,cn),X(this,ko),X(this,un),X(this,jo),X(this,Do),X(this,_n),X(this,qa),X(this,Xu),X(this,Yu),X(this,Zu,[]),q(this,ko,e),q(this,Do,n),q(this,jo,[]),q(this,_n,[]),q(this,un,[]),this.setQueries(t)}onSubscribe(){this.listeners.size===1&&R(this,_n).forEach(e=>{e.subscribe(t=>{$(this,cn,L0).call(this,e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,R(this,_n).forEach(e=>{e.destroy()})}setQueries(e,t){q(this,jo,e),q(this,Do,t),Pe.batch(()=>{const n=R(this,_n),r=$(this,cn,A0).call(this,R(this,jo));q(this,Zu,r),r.forEach(f=>f.observer.setOptions(f.defaultedQueryOptions));const a=r.map(f=>f.observer),l=a.map(f=>f.getCurrentResult()),i=n.length!==a.length,o=a.some((f,c)=>f!==n[c]),s=i||o,u=s?!0:l.some((f,c)=>{const d=R(this,un)[c];return!d||!Us(f,d)});!s&&!u||(s&&q(this,_n,a),q(this,un,l),this.hasListeners()&&(s&&(ib(n,a).forEach(f=>{f.destroy()}),ib(a,n).forEach(f=>{f.subscribe(c=>{$(this,cn,L0).call(this,f,c)})})),$(this,cn,_0).call(this)))})}getCurrentResult(){return R(this,un)}getQueries(){return R(this,_n).map(e=>e.getCurrentQuery())}getObservers(){return R(this,_n)}getOptimisticResult(e,t){const n=$(this,cn,A0).call(this,e),r=n.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions));return[r,a=>$(this,cn,N0).call(this,a??r,t),()=>$(this,cn,D0).call(this,r,n)]}},ko=new WeakMap,un=new WeakMap,jo=new WeakMap,Do=new WeakMap,_n=new WeakMap,qa=new WeakMap,Xu=new WeakMap,Yu=new WeakMap,Zu=new WeakMap,cn=new WeakSet,D0=function(e,t){return t.map((n,r)=>{const a=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?a:n.observer.trackResult(a,l=>{t.forEach(i=>{i.observer.trackProp(l)})})})},N0=function(e,t){return t?((!R(this,qa)||R(this,un)!==R(this,Yu)||t!==R(this,Xu))&&(q(this,Xu,t),q(this,Yu,R(this,un)),q(this,qa,mg(R(this,qa),t(e)))),R(this,qa)):e},A0=function(e){const t=new Map;R(this,_n).forEach(r=>{const a=r.options.queryHash;if(!a)return;const l=t.get(a);l?l.push(r):t.set(a,[r])});const n=[];return e.forEach(r=>{var a;const l=R(this,ko).defaultQueryOptions(r),i=((a=t.get(l.queryHash))==null?void 0:a.shift())??new fu(R(this,ko),l);n.push({defaultedQueryOptions:l,observer:i})}),n},L0=function(e,t){const n=R(this,_n).indexOf(e);n!==-1&&(q(this,un,eE(R(this,un),n,t)),$(this,cn,_0).call(this))},_0=function(){var e;if(this.hasListeners()){const t=R(this,qa),n=$(this,cn,D0).call(this,R(this,un),R(this,Zu)),r=$(this,cn,N0).call(this,n,(e=R(this,Do))==null?void 0:e.combine);t!==r&&Pe.batch(()=>{this.listeners.forEach(a=>{a(R(this,un))})})}},ob),fr,sb,nE=(sb=class extends El{constructor(e={}){super(),X(this,fr),this.config=e,q(this,fr,new Map)}build(e,t,n){const r=t.queryKey,a=t.queryHash??pg(r,t);let l=this.get(a);return l||(l=new QS({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(l)),l}add(e){R(this,fr).has(e.queryHash)||(R(this,fr).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=R(this,fr).get(e.queryHash);t&&(e.destroy(),t===e&&R(this,fr).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Pe.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return R(this,fr).get(e)}getAll(){return[...R(this,fr).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Fv(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Fv(e,n)):t}notify(e){Pe.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Pe.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Pe.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},fr=new WeakMap,sb),Ke,Fa,Va,No,Ao,Ga,Lo,_o,ub,rE=(ub=class{constructor(e={}){X(this,Ke),X(this,Fa),X(this,Va),X(this,No),X(this,Ao),X(this,Ga),X(this,Lo),X(this,_o),q(this,Ke,e.queryCache||new nE),q(this,Fa,e.mutationCache||new WS),q(this,Va,e.defaultOptions||{}),q(this,No,new Map),q(this,Ao,new Map),q(this,Ga,0)}mount(){vp(this,Ga)._++,R(this,Ga)===1&&(q(this,Lo,gg.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Ke).onFocus())})),q(this,_o,vd.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Ke).onOnline())})))}unmount(){var e,t;vp(this,Ga)._--,R(this,Ga)===0&&((e=R(this,Lo))==null||e.call(this),q(this,Lo,void 0),(t=R(this,_o))==null||t.call(this),q(this,_o,void 0))}isFetching(e){return R(this,Ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,Fa).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return(t=R(this,Ke).get(n.queryHash))==null?void 0:t.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=R(this,Ke).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(pa(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return R(this,Ke).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=R(this,Ke).get(r.queryHash),l=a==null?void 0:a.state.data,i=zS(t,l);if(i!==void 0)return R(this,Ke).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Pe.batch(()=>R(this,Ke).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return(t=R(this,Ke).get(n.queryHash))==null?void 0:t.state}removeQueries(e){const t=R(this,Ke);Pe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=R(this,Ke);return Pe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Pe.batch(()=>R(this,Ke).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(gt).catch(gt)}invalidateQueries(e,t={}){return Pe.batch(()=>(R(this,Ke).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Pe.batch(()=>R(this,Ke).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,n);return n.throwOnError||(l=l.catch(gt)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(gt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=R(this,Ke).build(this,t);return n.isStaleByTime(pa(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gt).catch(gt)}fetchInfiniteQuery(e){return e.behavior=bd(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gt).catch(gt)}ensureInfiniteQueryData(e){return e.behavior=bd(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return vd.isOnline()?R(this,Fa).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Ke)}getMutationCache(){return R(this,Fa)}getDefaultOptions(){return R(this,Va)}setDefaultOptions(e){q(this,Va,e)}setQueryDefaults(e,t){R(this,No).set(Ca(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,No).values()],n={};return t.forEach(r=>{Ks(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){R(this,Ao).set(Ca(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,Ao).values()],n={};return t.forEach(r=>{Ks(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,Va).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pg(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Xt&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,Va).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,Ke).clear(),R(this,Fa).clear()}},Ke=new WeakMap,Fa=new WeakMap,Va=new WeakMap,No=new WeakMap,Ao=new WeakMap,Ga=new WeakMap,Lo=new WeakMap,_o=new WeakMap,ub),R8=p.createContext(void 0),hu=e=>{const t=p.useContext(R8);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},aE=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),w.jsx(R8.Provider,{value:e,children:t})),T8=p.createContext(!1),k8=()=>p.useContext(T8);T8.Provider;function lE(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var iE=p.createContext(lE()),j8=()=>p.useContext(iE),D8=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},N8=e=>{p.useEffect(()=>{e.clearReset()},[e])},A8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||y8(n,[e.error,r])),bg=(e,t)=>t.state.data===void 0,L8=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},_8=(e,t)=>e.isLoading&&e.isFetching&&!t,Mp=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,yd=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function z8({queries:e,...t},n){const r=hu(n),a=k8(),l=j8(),i=p.useMemo(()=>e.map(m=>{const b=r.defaultQueryOptions(m);return b._optimisticResults=a?"isRestoring":"optimistic",b}),[e,r,a]);i.forEach(m=>{L8(m),D8(m,l)}),N8(l);const[o]=p.useState(()=>new tE(r,i,t)),[s,u,f]=o.getOptimisticResult(i,t.combine),c=!a&&t.subscribed!==!1;p.useSyncExternalStore(p.useCallback(m=>c?o.subscribe(Pe.batchCalls(m)):gt,[o,c]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),p.useEffect(()=>{o.setQueries(i,t)},[i,t,o]);const d=s.some((m,b)=>Mp(i[b],m))?s.flatMap((m,b)=>{const y=i[b];if(y){const v=new fu(r,y);if(Mp(y,m))return yd(y,v,l);_8(m,a)&&yd(y,v,l)}return[]}):[];if(d.length>0)throw Promise.all(d);const h=s.find((m,b)=>{const y=i[b];return y&&A8({result:m,errorResetBoundary:l,throwOnError:y.throwOnError,query:r.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(h!=null&&h.error)throw h.error;return u(f())}function pf(e,t,n){var r,a,l,i,o;const s=k8(),u=j8(),f=hu(n),c=f.defaultQueryOptions(e);(a=(r=f.getDefaultOptions().queries)==null?void 0:r._experimental_beforeQuery)==null||a.call(r,c),c._optimisticResults=s?"isRestoring":"optimistic",L8(c),D8(c,u),N8(u);const d=!f.getQueryCache().get(c.queryHash),[h]=p.useState(()=>new t(f,c)),m=h.getOptimisticResult(c),b=!s&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(y=>{const v=b?h.subscribe(Pe.batchCalls(y)):gt;return h.updateResult(),v},[h,b]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),p.useEffect(()=>{h.setOptions(c)},[c,h]),Mp(c,m))throw yd(c,h,u);if(A8({result:m,errorResetBoundary:u,throwOnError:c.throwOnError,query:f.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw m.error;if((i=(l=f.getDefaultOptions().queries)==null?void 0:l._experimental_afterQuery)==null||i.call(l,c,m),c.experimental_prefetchInRender&&!hl&&_8(m,s)){const y=d?yd(c,h,u):(o=f.getQueryCache().get(c.queryHash))==null?void 0:o.promise;y==null||y.catch(gt).finally(()=>{h.updateResult()})}return c.notifyOnChangeProps?m:h.trackResult(m)}function oE(e,t){return pf(e,fu,t)}function sE(e,t){return pf({...e,enabled:!0,suspense:!0,throwOnError:bg,placeholderData:void 0},fu,t)}function uE(e,t){return pf({...e,enabled:!0,suspense:!0,throwOnError:bg},M8,t)}function cE(e,t){return z8({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:bg,enabled:!0,placeholderData:void 0}))},t)}function dE(e,t){const n=hu(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function fE(e,t){const n=hu(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function hE(e,t){const n=hu(t),[r]=p.useState(()=>new JS(n,e));p.useEffect(()=>{r.setOptions(e)},[r,e]);const a=p.useSyncExternalStore(p.useCallback(i=>r.subscribe(Pe.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=p.useCallback((i,o)=>{r.mutate(i,o).catch(gt)},[r]);if(a.error&&y8(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}function pE(e,t){return pf(e,M8,t)}var mE=Object.create,P8=Object.defineProperty,gE=Object.getOwnPropertyDescriptor,H8=Object.getOwnPropertyNames,vE=Object.getPrototypeOf,bE=Object.prototype.hasOwnProperty,rr=(e,t)=>function(){return t||(0,e[H8(e)[0]])((t={exports:{}}).exports,t),t.exports},yE=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=H8(t),l=0,i=a.length,o;l<i;l++)o=a[l],!bE.call(e,o)&&o!==n&&P8(e,o,{get:(s=>t[s]).bind(null,o),enumerable:!(r=gE(t,o))||r.enumerable});return e},Fe=(e,t,n)=>(n=e!=null?mE(vE(e)):{},yE(P8(n,"default",{value:e,enumerable:!0}),e)),K8=rr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),xE=rr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=K8().default;function r(a,l){if(n(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,l||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),wE=rr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=K8().default,r=xE();function a(l){var i=r(l,"string");return n(i)=="symbol"?i:i+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ml=rr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=wE();function r(a,l,i){return(l=n(l))in a?Object.defineProperty(a,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[l]=i,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Bn=rr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Ml();function r(l,i){var o=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);i&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),o.push.apply(o,s)}return o}function a(l){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(s){n(l,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(o,s))})}return l}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});function mf(e){const t={subscribe(n){let r=null,a=!1,l=!1,i=!1;function o(){if(r===null){i=!0;return}l||(l=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(s){var u;a||(u=n.next)===null||u===void 0||u.call(n,s)},error(s){var u;a||(a=!0,(u=n.error)===null||u===void 0||u.call(n,s),o())},complete(){var s;a||(a=!0,(s=n.complete)===null||s===void 0||s.call(n),o())}}),i&&o(),{unsubscribe:o}},pipe(...n){return n.reduce(CE,t)}};return t}function CE(e,t){return t(e)}function SE(e){const t=new AbortController;return new Promise((n,r)=>{let a=!1;function l(){a||(a=!0,i.unsubscribe())}t.signal.addEventListener("abort",()=>{r(t.signal.reason)});const i=e.subscribe({next(o){a=!0,n(o),l()},error(o){r(o)},complete(){t.abort(),l()}})})}function EE(e){return t=>{let n=0,r=null;const a=[];function l(){r||(r=t.subscribe({next(o){for(const u of a){var s;(s=u.next)===null||s===void 0||s.call(u,o)}},error(o){for(const u of a){var s;(s=u.error)===null||s===void 0||s.call(u,o)}},complete(){for(const s of a){var o;(o=s.complete)===null||o===void 0||o.call(s)}}}))}function i(){if(n===0&&r){const o=r;r=null,o.unsubscribe()}}return mf(o=>(n++,a.push(o),l(),{unsubscribe(){n--,i();const s=a.findIndex(u=>u===o);s>-1&&a.splice(s,1)}}))}}function ME(e){let t=e;const n=[],r=i=>{t!==void 0&&i.next(t),n.push(i)},a=i=>{n.splice(n.indexOf(i),1)},l=mf(i=>(r(i),()=>{a(i)}));return l.next=i=>{if(t!==i){t=i;for(const o of n)o.next(i)}},l.get=()=>t,l}function OE(e){return mf(t=>{function n(r=0,a=e.op){const l=e.links[r];if(!l)throw new Error("No more links to execute - did you forget to add an ending link?");return l({op:a,next(i){return n(r+1,i)}})}return n().subscribe(t)})}function pl(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const RE=typeof Symbol=="function"&&!!Symbol.asyncIterator;function U8(e){return RE&&pl(e)&&Symbol.asyncIterator in e}var TE=Object.create,B8=Object.defineProperty,kE=Object.getOwnPropertyDescriptor,q8=Object.getOwnPropertyNames,jE=Object.getPrototypeOf,DE=Object.prototype.hasOwnProperty,pu=(e,t)=>function(){return t||(0,e[q8(e)[0]])((t={exports:{}}).exports,t),t.exports},NE=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=q8(t),l=0,i=a.length,o;l<i;l++)o=a[l],!DE.call(e,o)&&o!==n&&B8(e,o,{get:(s=>t[s]).bind(null,o),enumerable:!(r=kE(t,o))||r.enumerable});return e},gf=(e,t,n)=>(n=e!=null?TE(jE(e)):{},NE(B8(n,"default",{value:e,enumerable:!0}),e));const F8=()=>{},cb=e=>{Object.freeze&&Object.freeze(e)};function V8(e,t,n){var r;const a=t.join(".");return(r=n[a])!==null&&r!==void 0||(n[a]=new Proxy(F8,{get(l,i){if(!(typeof i!="string"||i==="then"))return V8(e,[...t,i],n)},apply(l,i,o){const s=t[t.length-1];let u={args:o,path:t};return s==="call"?u={args:o.length>=2?[o[1]]:[],path:t.slice(0,-1)}:s==="apply"&&(u={args:o.length>=2?o[1]:[],path:t.slice(0,-1)}),cb(u.args),cb(u.path),e(u)}})),n[a]}const vf=e=>V8(e,[],Object.create(null)),yg=e=>new Proxy(F8,{get(t,n){if(n!=="then")return e(n)}});var G8=pu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),AE=pu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=G8().default;function r(a,l){if(n(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,l||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),LE=pu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=G8().default,r=AE();function a(l){var i=r(l,"string");return n(i)=="symbol"?i:i+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Q8=pu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=LE();function r(a,l,i){return(l=n(l))in a?Object.defineProperty(a,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[l]=i,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),xg=pu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Q8();function r(l,i){var o=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);i&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),o.push.apply(o,s)}return o}function a(l){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(s){n(l,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(o,s))})}return l}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});gf(xg());gf(Q8());var $u=gf(xg());function _E(e,t){if("error"in e){const n=t.deserialize(e.error);return{ok:!1,error:(0,$u.default)((0,$u.default)({},e),{},{error:n})}}return{ok:!0,result:(0,$u.default)((0,$u.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var z0=class extends Error{constructor(){super("Unable to transform response from server")}};function zE(e,t){let n;try{n=_E(e,t)}catch{throw new z0}if(!n.ok&&(!pl(n.error.error)||typeof n.error.error.code!="number"))throw new z0;if(n.ok&&!pl(n.result))throw new z0;return n}gf(xg());var Wu=Fe(Ml()),Vl=Fe(Bn());function PE(e){return e instanceof xd}function HE(e){return pl(e)&&pl(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function KE(e,t){return typeof e=="string"?e:pl(e)&&typeof e.message=="string"?e.message:t}var xd=class _c extends Error{constructor(t,n){var r,a;const l=n==null?void 0:n.cause;super(t,{cause:l}),(0,Wu.default)(this,"cause",void 0),(0,Wu.default)(this,"shape",void 0),(0,Wu.default)(this,"data",void 0),(0,Wu.default)(this,"meta",void 0),this.meta=n==null?void 0:n.meta,this.cause=l,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(a=n.result)===null||a===void 0?void 0:a.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,_c.prototype)}static from(t,n={}){const r=t;return PE(r)?(n.meta&&(r.meta=(0,Vl.default)((0,Vl.default)({},r.meta),n.meta)),r):HE(r)?new _c(r.error.message,(0,Vl.default)((0,Vl.default)({},n),{},{result:r})):new _c(KE(r,"Unknown error"),(0,Vl.default)((0,Vl.default)({},n),{},{cause:r}))}};function UE(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const db=e=>typeof e=="function";function BE(e){if(e)return e;if(typeof window<"u"&&db(window.fetch))return window.fetch;if(typeof globalThis<"u"&&db(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var gs=Fe(Bn());function qE(e){return{url:e.url.toString(),fetch:e.fetch,transformer:UE(e.transformer),methodOverride:e.methodOverride}}function FE(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const VE={query:"GET",mutation:"POST",subscription:"PATCH"};function I8(e){return"input"in e?e.transformer.input.serialize(e.input):FE(e.inputs.map(t=>e.transformer.input.serialize(t)))}const X8=e=>{const t=e.url.split("?");let n=t[0].replace(/\/$/,"")+"/"+e.path;const r=[];if(t[1]&&r.push(t[1]),"inputs"in e&&r.push("batch=1"),e.type==="query"||e.type==="subscription"){const a=I8(e);a!==void 0&&e.methodOverride!=="POST"&&r.push(`input=${encodeURIComponent(JSON.stringify(a))}`)}return r.length&&(n+="?"+r.join("&")),n},GE=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=I8(e);return t!==void 0?JSON.stringify(t):void 0},QE=e=>ZE((0,gs.default)((0,gs.default)({},e),{},{contentTypeHeader:"application/json",getUrl:X8,getBody:GE}));var IE=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const XE=e=>{var t;if(e!=null&&e.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new IE};async function YE(e){var t;XE(e.signal);const n=e.getUrl(e),r=e.getBody(e),a=(t=e.methodOverride)!==null&&t!==void 0?t:VE[e.type],l=await(async()=>{const o=await e.headers();return Symbol.iterator in o?Object.fromEntries(o):o})(),i=(0,gs.default)((0,gs.default)((0,gs.default)({},e.contentTypeHeader&&a!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),l);return BE(e.fetch)(n,{method:a,signal:e.signal,body:r,headers:i})}async function ZE(e){const t={},n=await YE(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}Fe(Bn());const fb=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function hb(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function a(o){const s=[[]];let u=0;for(;;){const d=o[u];if(!d)break;const h=s[s.length-1];if(d.aborted){var f;(f=d.reject)===null||f===void 0||f.call(d,new Error("Aborted")),u++;continue}if(e.validate(h.concat(d).map(m=>m.key))){h.push(d),u++;continue}if(h.length===0){var c;(c=d.reject)===null||c===void 0||c.call(d,new Error("Input is too big for a single dispatch")),u++;continue}s.push([])}return s}function l(){const o=a(t);r();for(const s of o){if(!s.length)continue;const u={items:s};for(const f of s)f.batch=u;e.fetch(u.items.map(f=>f.key)).then(async f=>{await Promise.all(f.map(async(d,h)=>{const m=u.items[h];try{var b;const v=await Promise.resolve(d);(b=m.resolve)===null||b===void 0||b.call(m,v)}catch(v){var y;(y=m.reject)===null||y===void 0||y.call(m,v)}m.batch=null,m.reject=null,m.resolve=null}));for(const d of u.items){var c;(c=d.reject)===null||c===void 0||c.call(d,new Error("Missing result")),d.batch=null}}).catch(f=>{for(const d of u.items){var c;(c=d.reject)===null||c===void 0||c.call(d,f),d.batch=null}})}}function i(o){var s;const u={aborted:!1,key:o,batch:null,resolve:fb,reject:fb},f=new Promise((c,d)=>{var h;u.reject=d,u.resolve=c,(h=t)!==null&&h!==void 0||(t=[]),t.push(u)});return(s=n)!==null&&s!==void 0||(n=setTimeout(l)),f}return{load:i}}function $E(...e){const t=new AbortController,n=e.length;let r=0;const a=()=>{++r===n&&t.abort()};for(const l of e)l!=null&&l.aborted?a():l==null||l.addEventListener("abort",a,{once:!0});return t.signal}var Ju=Fe(Bn());function WE(e){var t,n;const r=qE(e),a=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,l=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const i=f=>({validate(c){if(a===1/0&&l===1/0)return!0;if(c.length>l)return!1;const d=c.map(m=>m.path).join(","),h=c.map(m=>m.input);return X8((0,Ju.default)((0,Ju.default)({},r),{},{type:f,path:d,inputs:h,signal:null})).length<=a},async fetch(c){const d=c.map(y=>y.path).join(","),h=c.map(y=>y.input),m=$E(...c.map(y=>y.signal)),b=await QE((0,Ju.default)((0,Ju.default)({},r),{},{path:d,inputs:h,type:f,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:c}):e.headers:{}},signal:m}));return(Array.isArray(b.json)?b.json:c.map(()=>b.json)).map(y=>({meta:b.meta,json:y}))}}),o=hb(i("query")),s=hb(i("mutation")),u={query:o,mutation:s};return({op:f})=>mf(c=>{/* istanbul ignore if -- @preserve */if(f.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const d=u[f.type].load(f);let h;return d.then(m=>{h=m;const b=zE(m.json,r.transformer.output);if(!b.ok){c.error(xd.from(b.error,{meta:m.meta}));return}c.next({context:m.meta,result:b.result}),c.complete()}).catch(m=>{c.error(xd.from(m,{meta:h==null?void 0:h.meta}))}),()=>{}})}}Fe(Bn());const Y8=(e,...t)=>typeof e=="function"?e(...t):e;Fe(Ml());function JE(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}async function eM(e){const t=await Y8(e.url);if(!e.connectionParams)return t;const n=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+n}async function tM(e){const t={method:"connectionParams",data:await Y8(e)};return JSON.stringify(t)}Fe(Ml());var Ja=Fe(Ml());function nM(e){const{promise:t,resolve:n,reject:r}=JE();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function rM(e,{intervalMs:t,pongTimeoutMs:n}){let r,a;function l(){r=setTimeout(()=>{e.send("PING"),a=setTimeout(()=>{e.close()},n)},t)}function i(){clearTimeout(r),l()}function o(){clearTimeout(a),i()}e.addEventListener("open",l),e.addEventListener("message",({data:s})=>{clearTimeout(r),l(),s==="PONG"&&o()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(a)})}var aM=class Op{constructor(t){var n;if((0,Ja.default)(this,"id",++Op.connectCount),(0,Ja.default)(this,"WebSocketPonyfill",void 0),(0,Ja.default)(this,"urlOptions",void 0),(0,Ja.default)(this,"keepAliveOpts",void 0),(0,Ja.default)(this,"wsObservable",ME(null)),(0,Ja.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++Op.connectCount;const n=eM(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:a}){a==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&rM(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await nM(r),t.urlOptions.connectionParams&&r.send(await tM(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,Ja.default)(aM,"connectCount",0);Fe(Ml());Fe(Bn());var P0=Fe(Ml()),pb=Fe(Bn()),bf=class{constructor(e){(0,P0.default)(this,"links",void 0),(0,P0.default)(this,"runtime",void 0),(0,P0.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return OE({links:this.links,op:(0,pb.default)((0,pb.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(EE())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await SE(n)).result.data}catch(n){throw xd.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(r){switch(r.result.type){case"state":{var a;(a=n.onConnectionStateChange)===null||a===void 0||a.call(n,r.result);break}case"started":{var l;(l=n.onStarted)===null||l===void 0||l.call(n,{context:r.context});break}case"stopped":{var i;(i=n.onStopped)===null||i===void 0||i.call(n);break}case"data":case void 0:{var o;(o=n.onData)===null||o===void 0||o.call(n,r.result.data);break}}},error(r){var a;(a=n.onError)===null||a===void 0||a.call(n,r)},complete(){var r;(r=n.onComplete)===null||r===void 0||r.call(n)}})}};const Z8=Symbol.for("trpc_untypedClient"),lM={query:"query",mutate:"mutation",subscribe:"subscription"},iM=e=>lM[e];function $8(e){const t=vf(({path:n,args:r})=>{const a=[...n],l=iM(a.pop()),i=a.join(".");return e[l](i,...r)});return yg(n=>n===Z8?e:t[n])}function oM(e){const t=new bf(e);return $8(t)}function wg(e){return e[Z8]}Fe(Bn());Fe(Bn());var sM=rr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var l,i,o,s=2;for(typeof Symbol<"u"&&(i=Symbol.asyncIterator,o=Symbol.iterator);s--;){if(i&&(l=a[i])!=null)return l.call(a);if(o&&(l=a[o])!=null)return new r(l.call(a));i="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function l(i){if(Object(i)!==i)return Promise.reject(new TypeError(i+" is not an object."));var o=i.done;return Promise.resolve(i.value).then(function(s){return{value:s,done:o}})}return r=function(i){this.s=i,this.n=i.next},r.prototype={s:null,n:null,next:function(){return l(this.n.apply(this.s,arguments))},return:function(i){var o=this.s.return;return o===void 0?Promise.resolve({value:i,done:!0}):l(o.apply(this.s,arguments))},throw:function(i){var o=this.s.return;return o===void 0?Promise.reject(i):l(o.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});Fe(sM());Fe(Bn());var uM=rr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(o,s){var u=Error();return u.name="SuppressedError",u.error=o,u.suppressed=s,u},a={},l=[];function i(o,s){if(s!=null){if(Object(s)!==s)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(o)var u=s[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(u===void 0&&(u=s[Symbol.dispose||Symbol.for("Symbol.dispose")],o))var f=u;if(typeof u!="function")throw new TypeError("Object is not disposable.");f&&(u=function(){try{f.call(s)}catch(c){return Promise.reject(c)}}),l.push({v:s,d:u,a:o})}else o&&l.push({d:s,a:o});return s}return{e:a,u:i.bind(null,!1),a:i.bind(null,!0),d:function(){var o,s=this.e,u=0;function f(){for(;o=l.pop();)try{if(!o.a&&u===1)return u=0,l.push(o),Promise.resolve().then(f);if(o.d){var d=o.d.call(o.v);if(o.a)return u|=2,Promise.resolve(d).then(f,c)}else u|=1}catch(h){return c(h)}if(u===1)return s!==a?Promise.reject(s):Promise.resolve();if(s!==a)throw s}function c(d){return s=s!==a?new r(d,s):d,f()}return f()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),W8=rr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,a){this.v=r,this.k=a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),cM=rr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=W8();function r(a){return new n(a,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),dM=rr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=W8();function r(l){return function(){return new a(l.apply(this,arguments))}}function a(l){var i,o;function s(f,c){try{var d=l[f](c),h=d.value,m=h instanceof n;Promise.resolve(m?h.v:h).then(function(b){if(m){var y=f==="return"?"return":"next";if(!h.k||b.done)return s(y,b);b=l[y](b).value}u(d.done?"return":"normal",b)},function(b){s("throw",b)})}catch(b){u("throw",b)}}function u(f,c){switch(f){case"return":i.resolve({value:c,done:!0});break;case"throw":i.reject(c);break;default:i.resolve({value:c,done:!1})}(i=i.next)?s(i.key,i.arg):o=null}this._invoke=function(f,c){return new Promise(function(d,h){var m={key:f,arg:c,resolve:d,reject:h,next:null};o?o=o.next=m:(i=o=m,s(f,c))})},typeof l.return!="function"&&(this.return=void 0)}a.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(l){return this._invoke("next",l)},a.prototype.throw=function(l){return this._invoke("throw",l)},a.prototype.return=function(l){return this._invoke("return",l)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Fe(uM());Fe(cM());Fe(dM());Fe(Bn());var Hi=function(){return Hi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Hi.apply(this,arguments)};function fM(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function hM(e,t,n,r){function a(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function o(f){try{u(r.next(f))}catch(c){i(c)}}function s(f){try{u(r.throw(f))}catch(c){i(c)}}function u(f){f.done?l(f.value):a(f.value).then(o,s)}u((r=r.apply(e,[])).next())})}function pM(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,a,l,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=o(0),i.throw=o(1),i.return=o(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(u){return function(f){return s([u,f])}}function s(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(n=0)),n;)try{if(r=1,a&&(l=u[0]&2?a.return:u[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,u[1])).done)return l;switch(a=0,l&&(u=[u[0]&2,l.value]),u[0]){case 0:case 1:l=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!l||u[1]>l[0]&&u[1]<l[3])){n.label=u[1];break}if(u[0]===6&&n.label<l[1]){n.label=l[1],l=u;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(u);break}l[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(f){u=[6,f],a=0}finally{r=l=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function wt(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,l;r<a;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}var mM=Object.create,J8=Object.defineProperty,gM=Object.getOwnPropertyDescriptor,e3=Object.getOwnPropertyNames,vM=Object.getPrototypeOf,bM=Object.prototype.hasOwnProperty,Ta=(e,t)=>function(){return t||(0,e[e3(e)[0]])((t={exports:{}}).exports,t),t.exports},yM=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=e3(t),l=0,i=a.length,o;l<i;l++)o=a[l],!bM.call(e,o)&&o!==n&&J8(e,o,{get:(s=>t[s]).bind(null,o),enumerable:!(r=gM(t,o))||r.enumerable});return e},Ol=(e,t,n)=>(n=e!=null?mM(vM(e)):{},yM(t||!e||!e.__esModule?J8(n,"default",{value:e,enumerable:!0}):n,e)),xM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,a){if(r==null)return{};var l={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(a.includes(i))continue;l[i]=r[i]}return l}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),wM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=xM();function r(a,l){if(a==null)return{};var i,o,s=n(a,l);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);for(o=0;o<u.length;o++)i=u[o],l.includes(i)||{}.propertyIsEnumerable.call(a,i)&&(s[i]=a[i])}return s}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),t3=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),CM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=t3().default;function r(a,l){if(n(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,l||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),SM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=t3().default,r=CM();function a(l){var i=r(l,"string");return n(i)=="symbol"?i:i+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),EM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=SM();function r(a,l,i){return(l=n(l))in a?Object.defineProperty(a,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[l]=i,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),mu=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=EM();function r(l,i){var o=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);i&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),o.push.apply(o,s)}return o}function a(l){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(s){n(l,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(o,s))})}return l}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),MM=Ol(wM(),1),mb=Ol(mu(),1);const OM=["cursor","direction"];function Yn(e,t,n){const r=e.flatMap(a=>a.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&pl(t)&&("direction"in t||"cursor"in t)){const{cursor:a,direction:l}=t,i=(0,MM.default)(t,OM);return[r,{input:i,type:"infinite"}]}return[r,(0,mb.default)((0,mb.default)({},typeof t<"u"&&t!==Xt&&{input:t}),n&&n!=="any"&&{type:n})]}function zc(e){return Yn(e,void 0,"any")}function RM(e){return vf(({path:t,args:n})=>{var r;const a=[...t],l=a.pop();if(l==="useMutation")return e[l](a,...n);if(l==="_def")return{path:a};const[i,...o]=n,s=(r=o[0])!==null&&r!==void 0?r:{};return e[l](a,i,s)})}var H0;const TM=["client","ssrContext","ssrState","abortOnUnmount"],kM=(H0=p.createContext)===null||H0===void 0?void 0:H0.call(C2,null),jM=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function DM(e){return vf(t=>{const n=[...t.path],r=n.pop(),a=[...t.args],l=a.shift(),i=jM(r),o=Yn(n,l,i);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,o,a[0]),queryOptions:()=>e.queryOptions(n,o,...a),fetch:()=>e.fetchQuery(o,...a),fetchInfinite:()=>e.fetchInfiniteQuery(o,a[0]),prefetch:()=>e.prefetchQuery(o,...a),prefetchInfinite:()=>e.prefetchInfiniteQuery(o,a[0]),ensureData:()=>e.ensureQueryData(o,...a),invalidate:()=>e.invalidateQueries(o,...a),reset:()=>e.resetQueries(o,...a),refetch:()=>e.refetchQueries(o,...a),cancel:()=>e.cancelQuery(o,...a),setData:()=>{e.setQueryData(o,a[0],a[1])},setQueriesData:()=>e.setQueriesData(o,a[0],a[1],a[2]),setInfiniteData:()=>{e.setInfiniteQueryData(o,a[0],a[1])},getData:()=>e.getQueryData(o),getInfiniteData:()=>e.getInfiniteQueryData(o),setMutationDefaults:()=>e.setMutationDefaults(zc(n),l),getMutationDefaults:()=>e.getMutationDefaults(zc(n)),isMutating:()=>e.isMutating({mutationKey:zc(n)})}[r]()})}function NM(e){const t=$8(e.client),n=DM(e);return yg(r=>{const a=r;return a==="client"?t:TM.includes(a)?e[a]:n[r]})}var AM=Ol(mu(),1);function gb(e){const t=e instanceof bf?e:wg(e);return vf(n=>{const r=n.path,a=r.join("."),[l,i]=n.args;return(0,AM.default)({queryKey:Yn(r,l,"query"),queryFn:()=>t.query(a,l,i==null?void 0:i.trpc)},i)})}var K0=Ol(mu(),1);function yt(e,t,n){var r;const a=e[0];let l=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var i;l=(0,K0.default)((0,K0.default)((0,K0.default)({},(i=l)!==null&&i!==void 0?i:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[a.join("."),l,t==null?void 0:t.trpc]}var LM=Ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var l,i,o,s=2;for(typeof Symbol<"u"&&(i=Symbol.asyncIterator,o=Symbol.iterator);s--;){if(i&&(l=a[i])!=null)return l.call(a);if(o&&(l=a[o])!=null)return new r(l.call(a));i="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function l(i){if(Object(i)!==i)return Promise.reject(new TypeError(i+" is not an object."));var o=i.done;return Promise.resolve(i.value).then(function(s){return{value:s,done:o}})}return r=function(i){this.s=i,this.n=i.next},r.prototype={s:null,n:null,next:function(){return l(this.n.apply(this.s,arguments))},return:function(i){var o=this.s.return;return o===void 0?Promise.resolve({value:i,done:!0}):l(o.apply(this.s,arguments))},throw:function(i){var o=this.s.return;return o===void 0?Promise.reject(i):l(o.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),_M=Ol(LM(),1);function Rp(e){return{path:e.path.join(".")}}function zo(e){const t=Rp(e);return p.useMemo(()=>t,[t])}async function n3(e,t,n){const r=t.getQueryCache().build(t,{queryKey:n});r.setState({data:[],status:"success"});const a=[];var l=!1,i=!1,o;try{for(var s=(0,_M.default)(e),u;l=!(u=await s.next()).done;l=!1){const f=u.value;a.push(f),r.setState({data:[...a]})}}catch(f){i=!0,o=f}finally{try{l&&s.return!=null&&await s.return()}finally{if(i)throw o}}return a}var fe=Ol(mu(),1);function zM(e){const{client:t,queryClient:n}=e,r=t instanceof bf?t:wg(t);return{infiniteQueryOptions:(a,l,i)=>{var o,s;const u=((o=l[1])===null||o===void 0?void 0:o.input)===Xt,f=async c=>{var d;const h=(0,fe.default)((0,fe.default)({},i),{},{trpc:(0,fe.default)((0,fe.default)({},i==null?void 0:i.trpc),!(i==null||(d=i.trpc)===null||d===void 0)&&d.abortOnUnmount?{signal:c.signal}:{signal:null})});return await r.query(...yt(l,h,{direction:c.direction,pageParam:c.pageParam}))};return Object.assign((0,fe.default)((0,fe.default)({},i),{},{initialData:i==null?void 0:i.initialData,queryKey:l,queryFn:u?Xt:f,initialPageParam:(s=i==null?void 0:i.initialCursor)!==null&&s!==void 0?s:null}),{trpc:Rp({path:a})})},queryOptions:(a,l,i)=>{var o;const s=((o=l[1])===null||o===void 0?void 0:o.input)===Xt,u=async f=>{var c;const d=(0,fe.default)((0,fe.default)({},i),{},{trpc:(0,fe.default)((0,fe.default)({},i==null?void 0:i.trpc),!(i==null||(c=i.trpc)===null||c===void 0)&&c.abortOnUnmount?{signal:f.signal}:{signal:null})}),h=await r.query(...yt(l,d));return U8(h)?n3(h,n,l):h};return Object.assign((0,fe.default)((0,fe.default)({},i),{},{initialData:i==null?void 0:i.initialData,queryKey:l,queryFn:s?Xt:u}),{trpc:Rp({path:a})})},fetchQuery:(a,l)=>n.fetchQuery((0,fe.default)((0,fe.default)({},l),{},{queryKey:a,queryFn:()=>r.query(...yt(a,l))})),fetchInfiniteQuery:(a,l)=>{var i;return n.fetchInfiniteQuery((0,fe.default)((0,fe.default)({},l),{},{queryKey:a,queryFn:({pageParam:o,direction:s})=>r.query(...yt(a,l,{pageParam:o,direction:s})),initialPageParam:(i=l==null?void 0:l.initialCursor)!==null&&i!==void 0?i:null}))},prefetchQuery:(a,l)=>n.prefetchQuery((0,fe.default)((0,fe.default)({},l),{},{queryKey:a,queryFn:()=>r.query(...yt(a,l))})),prefetchInfiniteQuery:(a,l)=>{var i;return n.prefetchInfiniteQuery((0,fe.default)((0,fe.default)({},l),{},{queryKey:a,queryFn:({pageParam:o,direction:s})=>r.query(...yt(a,l,{pageParam:o,direction:s})),initialPageParam:(i=l==null?void 0:l.initialCursor)!==null&&i!==void 0?i:null}))},ensureQueryData:(a,l)=>n.ensureQueryData((0,fe.default)((0,fe.default)({},l),{},{queryKey:a,queryFn:()=>r.query(...yt(a,l))})),invalidateQueries:(a,l,i)=>n.invalidateQueries((0,fe.default)((0,fe.default)({},l),{},{queryKey:a}),i),resetQueries:(a,l,i)=>n.resetQueries((0,fe.default)((0,fe.default)({},l),{},{queryKey:a}),i),refetchQueries:(a,l,i)=>n.refetchQueries((0,fe.default)((0,fe.default)({},l),{},{queryKey:a}),i),cancelQuery:(a,l)=>n.cancelQueries({queryKey:a},l),setQueryData:(a,l,i)=>n.setQueryData(a,l,i),setQueriesData:(a,l,i,o)=>n.setQueriesData((0,fe.default)((0,fe.default)({},l),{},{queryKey:a}),i,o),getQueryData:a=>n.getQueryData(a),setInfiniteQueryData:(a,l,i)=>n.setQueryData(a,l,i),getInfiniteQueryData:a=>n.getQueryData(a),setMutationDefaults:(a,l)=>{const i=a[0],o=s=>r.mutation(...yt([i,{input:s}],e));return n.setMutationDefaults(a,typeof l=="function"?l({canonicalMutationFn:o}):l)},getMutationDefaults:a=>n.getMutationDefaults(a),isMutating:a=>n.isMutating((0,fe.default)((0,fe.default)({},a),{},{exact:!0}))}}var Q=Ol(mu());const vb=(e,t)=>new Proxy(e,{get(n,r){return t(r),n[r]}});function PM(e){var t,n,r;const a=(t=e==null||(n=e.overrides)===null||n===void 0||(n=n.useMutation)===null||n===void 0?void 0:n.onSuccess)!==null&&t!==void 0?t:C=>C.originalFn(),l=(r=e==null?void 0:e.context)!==null&&r!==void 0?r:kM,i=oM,o=C=>{var E;const{abortOnUnmount:S=!1,queryClient:M,ssrContext:A}=C,[D,N]=p.useState((E=C.ssrState)!==null&&E!==void 0?E:!1),j=C.client instanceof bf?C.client:wg(C.client),z=p.useMemo(()=>zM({client:j,queryClient:M}),[j,M]),B=p.useMemo(()=>(0,Q.default)({abortOnUnmount:S,queryClient:M,client:j,ssrContext:A??null,ssrState:D},z),[S,j,z,M,A,D]);return p.useEffect(()=>{N(L=>L?"mounted":!1)},[]),w.jsx(l.Provider,{value:B,children:C.children})};function s(){const C=p.useContext(l);if(!C)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return C}function u(C,E){var S;const{queryClient:M,ssrState:A}=s();return A&&A!=="mounted"&&((S=M.getQueryCache().find({queryKey:C}))===null||S===void 0?void 0:S.state.status)==="error"?(0,Q.default)({retryOnMount:!1},E):E}function f(C,E,S){var M,A,D,N,j;const z=s(),{abortOnUnmount:B,client:L,ssrState:P,queryClient:T,prefetchQuery:k}=z,_=Yn(C,E,"query"),U=T.getQueryDefaults(_),F=E===Xt;typeof window>"u"&&P==="prepass"&&(S==null||(M=S.trpc)===null||M===void 0?void 0:M.ssr)!==!1&&((A=S==null?void 0:S.enabled)!==null&&A!==void 0?A:U==null?void 0:U.enabled)!==!1&&!F&&!T.getQueryCache().find({queryKey:_})&&k(_,S);const G=u(_,(0,Q.default)((0,Q.default)({},U),S)),K=(D=(N=S==null||(j=S.trpc)===null||j===void 0?void 0:j.abortOnUnmount)!==null&&N!==void 0?N:e==null?void 0:e.abortOnUnmount)!==null&&D!==void 0?D:B,V=oE((0,Q.default)((0,Q.default)({},G),{},{queryKey:_,queryFn:F?E:async I=>{const J=(0,Q.default)((0,Q.default)({},G),{},{trpc:(0,Q.default)((0,Q.default)({},G==null?void 0:G.trpc),K?{signal:I.signal}:{signal:null})}),et=await L.query(...yt(_,J));return U8(et)?n3(et,T,_):et}}),T);return V.trpc=zo({path:C}),V}function c(C,E,S){var M,A,D;const N=s(),j=Yn(C,E,"query"),z=E===Xt,B=(M=(A=S==null||(D=S.trpc)===null||D===void 0?void 0:D.abortOnUnmount)!==null&&A!==void 0?A:e==null?void 0:e.abortOnUnmount)!==null&&M!==void 0?M:N.abortOnUnmount;dE((0,Q.default)((0,Q.default)({},S),{},{queryKey:j,queryFn:z?E:L=>{const P={trpc:(0,Q.default)((0,Q.default)({},S==null?void 0:S.trpc),B?{signal:L.signal}:{})};return N.client.query(...yt(j,P))}}))}function d(C,E,S){var M,A,D;const N=s(),j=Yn(C,E,"query"),z=(M=(A=S==null||(D=S.trpc)===null||D===void 0?void 0:D.abortOnUnmount)!==null&&A!==void 0?A:e==null?void 0:e.abortOnUnmount)!==null&&M!==void 0?M:N.abortOnUnmount,B=sE((0,Q.default)((0,Q.default)({},S),{},{queryKey:j,queryFn:L=>{const P=(0,Q.default)((0,Q.default)({},S),{},{trpc:(0,Q.default)((0,Q.default)({},S==null?void 0:S.trpc),z?{signal:L.signal}:{signal:null})});return N.client.query(...yt(j,P))}}),N.queryClient);return B.trpc=zo({path:C}),[B.data,B]}function h(C,E){const{client:S,queryClient:M}=s(),A=zc(C),D=M.defaultMutationOptions(M.getMutationDefaults(A)),N=hE((0,Q.default)((0,Q.default)({},E),{},{mutationKey:A,mutationFn:j=>S.mutation(...yt([C,{input:j}],E)),onSuccess(...j){var z,B;return a({originalFn:()=>{var L,P,T;return(L=E==null||(P=E.onSuccess)===null||P===void 0?void 0:P.call(E,...j))!==null&&L!==void 0?L:D==null||(T=D.onSuccess)===null||T===void 0?void 0:T.call(D,...j)},queryClient:M,meta:(z=(B=E==null?void 0:E.meta)!==null&&B!==void 0?B:D==null?void 0:D.meta)!==null&&z!==void 0?z:{}})}}),M);return N.trpc=zo({path:C}),N}const m={data:void 0,error:null,status:"idle"},b={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function y(C,E,S){var M;const A=(M=S==null?void 0:S.enabled)!==null&&M!==void 0?M:E!==Xt,D=Ca(Yn(C,E,"any")),{client:N}=s(),j=p.useRef(S);p.useEffect(()=>{j.current=S});const[z]=p.useState(new Set([])),B=p.useCallback(F=>{z.add(F)},[z]),L=p.useRef(null),P=p.useCallback(F=>{const G=k.current,K=k.current=F(G);let V=!1;for(const I of z)if(G[I]!==K[I]){V=!0;break}V&&U(vb(K,B))},[B,z]),T=p.useCallback(()=>{var F;if((F=L.current)===null||F===void 0||F.unsubscribe(),!A){P(()=>(0,Q.default)((0,Q.default)({},m),{},{reset:T}));return}P(()=>(0,Q.default)((0,Q.default)({},b),{},{reset:T}));const G=N.subscription(C.join("."),E??void 0,{onStarted:()=>{var K,V;(K=(V=j.current).onStarted)===null||K===void 0||K.call(V),P(I=>(0,Q.default)((0,Q.default)({},I),{},{status:"pending",error:null}))},onData:K=>{var V,I;(V=(I=j.current).onData)===null||V===void 0||V.call(I,K),P(J=>(0,Q.default)((0,Q.default)({},J),{},{status:"pending",data:K,error:null}))},onError:K=>{var V,I;(V=(I=j.current).onError)===null||V===void 0||V.call(I,K),P(J=>(0,Q.default)((0,Q.default)({},J),{},{status:"error",error:K}))},onConnectionStateChange:K=>{P(V=>{switch(K.state){case"idle":return(0,Q.default)((0,Q.default)({},V),{},{status:K.state,error:null,data:void 0});case"connecting":return(0,Q.default)((0,Q.default)({},V),{},{error:K.error,status:K.state});case"pending":return V}})},onComplete:()=>{var K,V;(K=(V=j.current).onComplete)===null||K===void 0||K.call(V),P(I=>(0,Q.default)((0,Q.default)({},I),{},{status:"idle",error:null,data:void 0}))}});L.current=G},[N,D,A,P]);p.useEffect(()=>(T(),()=>{var F;(F=L.current)===null||F===void 0||F.unsubscribe()}),[T]);const k=p.useRef(A?(0,Q.default)((0,Q.default)({},b),{},{reset:T}):(0,Q.default)((0,Q.default)({},m),{},{reset:T})),[_,U]=p.useState(vb(k.current,B));return _}function v(C,E,S){var M,A,D,N,j;const{client:z,ssrState:B,prefetchInfiniteQuery:L,queryClient:P,abortOnUnmount:T}=s(),k=Yn(C,E,"infinite"),_=P.getQueryDefaults(k),U=E===Xt;typeof window>"u"&&B==="prepass"&&(S==null||(M=S.trpc)===null||M===void 0?void 0:M.ssr)!==!1&&((A=S==null?void 0:S.enabled)!==null&&A!==void 0?A:_==null?void 0:_.enabled)!==!1&&!U&&!P.getQueryCache().find({queryKey:k})&&L(k,(0,Q.default)((0,Q.default)({},_),S));const F=u(k,(0,Q.default)((0,Q.default)({},_),S)),G=(D=S==null||(N=S.trpc)===null||N===void 0?void 0:N.abortOnUnmount)!==null&&D!==void 0?D:T,K=pE((0,Q.default)((0,Q.default)({},F),{},{initialPageParam:(j=S.initialCursor)!==null&&j!==void 0?j:null,persister:S.persister,queryKey:k,queryFn:U?E:V=>{var I;const J=(0,Q.default)((0,Q.default)({},F),{},{trpc:(0,Q.default)((0,Q.default)({},F==null?void 0:F.trpc),G?{signal:V.signal}:{signal:null})});return z.query(...yt(k,J,{pageParam:(I=V.pageParam)!==null&&I!==void 0?I:S.initialCursor,direction:V.direction}))}}),P);return K.trpc=zo({path:C}),K}function g(C,E,S){var M,A,D;const N=s(),j=Yn(C,E,"infinite"),z=N.queryClient.getQueryDefaults(j),B=E===Xt,L=u(j,(0,Q.default)((0,Q.default)({},z),S)),P=(M=S==null||(A=S.trpc)===null||A===void 0?void 0:A.abortOnUnmount)!==null&&M!==void 0?M:N.abortOnUnmount;fE((0,Q.default)((0,Q.default)({},S),{},{initialPageParam:(D=S.initialCursor)!==null&&D!==void 0?D:null,queryKey:j,queryFn:B?E:T=>{var k;const _=(0,Q.default)((0,Q.default)({},L),{},{trpc:(0,Q.default)((0,Q.default)({},L==null?void 0:L.trpc),P?{signal:T.signal}:{})});return N.client.query(...yt(j,_,{pageParam:(k=T.pageParam)!==null&&k!==void 0?k:S.initialCursor,direction:T.direction}))}}))}function x(C,E,S){var M,A,D;const N=s(),j=Yn(C,E,"infinite"),z=N.queryClient.getQueryDefaults(j),B=u(j,(0,Q.default)((0,Q.default)({},z),S)),L=(M=S==null||(A=S.trpc)===null||A===void 0?void 0:A.abortOnUnmount)!==null&&M!==void 0?M:N.abortOnUnmount,P=uE((0,Q.default)((0,Q.default)({},S),{},{initialPageParam:(D=S.initialCursor)!==null&&D!==void 0?D:null,queryKey:j,queryFn:T=>{var k;const _=(0,Q.default)((0,Q.default)({},B),{},{trpc:(0,Q.default)((0,Q.default)({},B==null?void 0:B.trpc),L?{signal:T.signal}:{})});return N.client.query(...yt(j,_,{pageParam:(k=T.pageParam)!==null&&k!==void 0?k:S.initialCursor,direction:T.direction}))}}),N.queryClient);return P.trpc=zo({path:C}),[P.data,P]}return{Provider:o,createClient:i,useContext:s,useUtils:s,useQuery:f,usePrefetchQuery:c,useSuspenseQuery:d,useQueries:(C,E)=>{const{ssrState:S,queryClient:M,prefetchQuery:A,client:D}=s(),N=gb(D),j=C(N);if(typeof window>"u"&&S==="prepass")for(const B of j){var z;const L=B;((z=L.trpc)===null||z===void 0?void 0:z.ssr)!==!1&&!M.getQueryCache().find({queryKey:L.queryKey})&&A(L.queryKey,L)}return z8({queries:j.map(B=>(0,Q.default)((0,Q.default)({},B),{},{queryKey:B.queryKey})),combine:E==null?void 0:E.combine},M)},useSuspenseQueries:C=>{const{queryClient:E,client:S}=s(),M=gb(S),A=C(M),D=cE({queries:A.map(N=>(0,Q.default)((0,Q.default)({},N),{},{queryFn:N.queryFn,queryKey:N.queryKey}))},E);return[D.map(N=>N.data),D]},useMutation:h,useSubscription:y,useInfiniteQuery:v,usePrefetchInfiniteQuery:g,useSuspenseInfiniteQuery:x}}function HM(e){const t=RM(e);return yg(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return p.useMemo(()=>NM(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function KM(e){const t=PM(e);return HM(t)}var ge=KM({overrides:{useMutation:{onSuccess:function(e){return hM(this,void 0,void 0,function(){return pM(this,function(t){switch(t.label){case 0:return[4,e.originalFn()];case 1:return t.sent(),[4,e.queryClient.invalidateQueries()];case 2:return t.sent(),[2]}})})}}}});/**
|
|
58
|
-
* react-router v7.
|
|
57
|
+
*/var KC=Symbol.for("react.transitional.element"),UC=Symbol.for("react.fragment");function b8(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:KC,type:e,key:r,ref:t!==void 0?t:null,props:n}}hf.Fragment=UC;hf.jsx=b8;hf.jsxs=b8;v8.exports=hf;var w=v8.exports,xl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},BC={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Na,qv,Vv,FC=(Vv=class{constructor(){X(this,Na,BC),X(this,qv,!1)}setTimeoutProvider(e){q(this,Na,e)}setTimeout(e,t){return R(this,Na).setTimeout(e,t)}clearTimeout(e){R(this,Na).clearTimeout(e)}setInterval(e,t){return R(this,Na).setInterval(e,t)}clearInterval(e){R(this,Na).clearInterval(e)}},Na=new WeakMap,qv=new WeakMap,Vv),$a=new FC;function qC(e){setTimeout(e,0)}var cl=typeof window>"u"||"Deno"in globalThis;function vt(){}function VC(e,t){return typeof e=="function"?e(t):e}function xp(e){return typeof e=="number"&&e>=0&&e!==1/0}function y8(e,t){return Math.max(e+(t||0)-Date.now(),0)}function fa(e,t){return typeof e=="function"?e(t):e}function fn(e,t){return typeof e=="function"?e(t):e}function Gv(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:l,queryKey:i,stale:o}=e;if(i){if(r){if(t.queryHash!==gg(i,t.options))return!1}else if(!zs(t.queryKey,i))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||a&&a!==t.state.fetchStatus||l&&!l(t))}function Qv(e,t){const{exact:n,status:r,predicate:a,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(xa(t.options.mutationKey)!==xa(l))return!1}else if(!zs(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function gg(e,t){return((t==null?void 0:t.queryKeyHashFn)||xa)(e)}function xa(e){return JSON.stringify(e,(t,n)=>wp(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function zs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>zs(e[n],t[n])):!1}var GC=Object.prototype.hasOwnProperty;function vg(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Iv(e)&&Iv(t);if(!r&&!(wp(e)&&wp(t)))return t;const a=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),i=l.length,o=r?new Array(i):{};let s=0;for(let u=0;u<i;u++){const f=r?u:l[u],c=e[f],d=t[f];if(c===d){o[f]=c,(r?u<a:GC.call(e,f))&&s++;continue}if(c===null||d===null||typeof c!="object"||typeof d!="object"){o[f]=d;continue}const h=vg(c,d,n+1);o[f]=h,h===c&&s++}return a===i&&s===a?e:o}function Ps(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Iv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function wp(e){if(!Xv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Xv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Xv(e){return Object.prototype.toString.call(e)==="[object Object]"}function QC(e){return new Promise(t=>{$a.setTimeout(t,e)})}function Sp(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?vg(e,t):t}function IC(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function XC(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var It=Symbol();function x8(e,t){return!e.queryFn&&t!=null&&t.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===It?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function bg(e,t){return typeof e=="function"?e(...t):!!e}function YC(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??(a=t()),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var Nl,Aa,vo,Yv,ZC=(Yv=class extends xl{constructor(){super(),X(this,Nl),X(this,Aa),X(this,vo),q(this,vo,e=>{if(!cl&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){R(this,Aa)||this.setEventListener(R(this,vo))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,Aa))==null||e.call(this),q(this,Aa,void 0))}setEventListener(e){var t;q(this,vo,e),(t=R(this,Aa))==null||t.call(this),q(this,Aa,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){R(this,Nl)!==e&&(q(this,Nl,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return typeof R(this,Nl)=="boolean"?R(this,Nl):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Nl=new WeakMap,Aa=new WeakMap,vo=new WeakMap,Yv),yg=new ZC;function Cp(){let e,t;const n=new Promise((a,l)=>{e=a,t=l});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var WC=qC;function $C(){let e=[],t=0,n=o=>{o()},r=o=>{o()},a=WC;const l=o=>{t?e.push(o):a(()=>{n(o)})},i=()=>{const o=e;e=[],o.length&&a(()=>{r(()=>{o.forEach(s=>{n(s)})})})};return{batch:o=>{let s;t++;try{s=o()}finally{t--,t||i()}return s},batchCalls:o=>(...s)=>{l(()=>{o(...s)})},schedule:l,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{a=o}}}var Ke=$C(),bo,La,yo,Zv,JC=(Zv=class extends xl{constructor(){super(),X(this,bo,!0),X(this,La),X(this,yo),q(this,yo,e=>{if(!cl&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){R(this,La)||this.setEventListener(R(this,yo))}onUnsubscribe(){var e;this.hasListeners()||((e=R(this,La))==null||e.call(this),q(this,La,void 0))}setEventListener(e){var t;q(this,yo,e),(t=R(this,La))==null||t.call(this),q(this,La,e(this.setOnline.bind(this)))}setOnline(e){R(this,bo)!==e&&(q(this,bo,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return R(this,bo)}},bo=new WeakMap,La=new WeakMap,yo=new WeakMap,Zv),vd=new JC;function eE(e){return Math.min(1e3*2**e,3e4)}function w8(e){return(e??"online")==="online"?vd.isOnline():!0}var Ep=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function S8(e){let t=!1,n=0,r;const a=Cp(),l=()=>a.status!=="pending",i=v=>{var y;if(!l()){const b=new Ep(v);d(b),(y=e.onCancel)==null||y.call(e,b)}},o=()=>{t=!0},s=()=>{t=!1},u=()=>yg.isFocused()&&(e.networkMode==="always"||vd.isOnline())&&e.canRun(),f=()=>w8(e.networkMode)&&e.canRun(),c=v=>{l()||(r==null||r(),a.resolve(v))},d=v=>{l()||(r==null||r(),a.reject(v))},h=()=>new Promise(v=>{var y;r=b=>{(l()||u())&&v(b)},(y=e.onPause)==null||y.call(e)}).then(()=>{var v;r=void 0,l()||(v=e.onContinue)==null||v.call(e)}),m=()=>{if(l())return;let v;const y=n===0?e.initialPromise:void 0;try{v=y??e.fn()}catch(b){v=Promise.reject(b)}Promise.resolve(v).then(c).catch(b=>{var g;if(l())return;const x=e.retry??(cl?0:3),S=e.retryDelay??eE,C=typeof S=="function"?S(n,b):S,E=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,b);if(t||!E){d(b);return}n++,(g=e.onFail)==null||g.call(e,n,b),QC(C).then(()=>u()?void 0:h()).then(()=>{t?d(b):m()})})};return{promise:a,status:()=>a.status,cancel:i,continue:()=>(r==null||r(),a),cancelRetry:o,continueRetry:s,canStart:f,start:()=>(f()?m():h().then(m),a)}}var Al,Wv,C8=(Wv=class{constructor(){X(this,Al)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xp(this.gcTime)&&q(this,Al,$a.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(cl?1/0:5*60*1e3))}clearGcTimeout(){R(this,Al)&&($a.clearTimeout(R(this,Al)),q(this,Al,void 0))}},Al=new WeakMap,Wv),Ll,xo,An,_l,ct,Uu,zl,Fn,lr,$v,tE=($v=class extends C8{constructor(e){super(),X(this,Fn),X(this,Ll),X(this,xo),X(this,An),X(this,_l),X(this,ct),X(this,Uu),X(this,zl),q(this,zl,!1),q(this,Uu,e.defaultOptions),this.setOptions(e.options),this.observers=[],q(this,_l,e.client),q(this,An,R(this,_l).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,q(this,Ll,eb(this.options)),this.state=e.state??R(this,Ll),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=R(this,ct))==null?void 0:e.promise}setOptions(e){if(this.options={...R(this,Uu),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=eb(this.options);t.data!==void 0&&(this.setState(Jv(t.data,t.dataUpdatedAt)),q(this,Ll,t))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,An).remove(this)}setData(e,t){const n=Sp(this.state.data,e,this.options);return $(this,Fn,lr).call(this,{data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e,t){$(this,Fn,lr).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=(t=R(this,ct))==null?void 0:t.promise;return(n=R(this,ct))==null||n.cancel(e),r?r.then(vt).catch(vt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,Ll))}isActive(){return this.observers.some(e=>fn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===It||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>fa(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!y8(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=R(this,ct))==null||e.continue()}onOnline(){var e;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=R(this,ct))==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),R(this,An).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(R(this,ct)&&(R(this,zl)?R(this,ct).cancel({revert:!0}):R(this,ct).cancelRetry()),this.scheduleGc()),R(this,An).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$(this,Fn,lr).call(this,{type:"invalidate"})}async fetch(e,t){var n,r,a,l,i,o,s,u,f,c,d,h;if(this.state.fetchStatus!=="idle"&&((n=R(this,ct))==null?void 0:n.status())!=="rejected"){if(this.state.data!==void 0&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(R(this,ct))return R(this,ct).continueRetry(),R(this,ct).promise}if(e&&this.setOptions(e),!this.options.queryFn){const g=this.observers.find(x=>x.options.queryFn);g&&this.setOptions(g.options)}const m=new AbortController,v=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(q(this,zl,!0),m.signal)})},y=()=>{const g=x8(this.options,t),x=(()=>{const S={client:R(this,_l),queryKey:this.queryKey,meta:this.meta};return v(S),S})();return q(this,zl,!1),this.options.persister?this.options.persister(g,x,this):g(x)},b=(()=>{const g={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:R(this,_l),state:this.state,fetchFn:y};return v(g),g})();(r=this.options.behavior)==null||r.onFetch(b,this),q(this,xo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=b.fetchOptions)==null?void 0:a.meta))&&$(this,Fn,lr).call(this,{type:"fetch",meta:(l=b.fetchOptions)==null?void 0:l.meta}),q(this,ct,S8({initialPromise:t==null?void 0:t.initialPromise,fn:b.fetchFn,onCancel:g=>{g instanceof Ep&&g.revert&&this.setState({...R(this,xo),fetchStatus:"idle"}),m.abort()},onFail:(g,x)=>{$(this,Fn,lr).call(this,{type:"failed",failureCount:g,error:x})},onPause:()=>{$(this,Fn,lr).call(this,{type:"pause"})},onContinue:()=>{$(this,Fn,lr).call(this,{type:"continue"})},retry:b.options.retry,retryDelay:b.options.retryDelay,networkMode:b.options.networkMode,canRun:()=>!0}));try{const g=await R(this,ct).start();if(g===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(g),(o=(i=R(this,An).config).onSuccess)==null||o.call(i,g,this),(u=(s=R(this,An).config).onSettled)==null||u.call(s,g,this.state.error,this),g}catch(g){if(g instanceof Ep){if(g.silent)return R(this,ct).promise;if(g.revert){if(this.state.data===void 0)throw g;return this.state.data}}throw $(this,Fn,lr).call(this,{type:"error",error:g}),(c=(f=R(this,An).config).onError)==null||c.call(f,g,this),(h=(d=R(this,An).config).onSettled)==null||h.call(d,this.state.data,g,this),g}finally{this.scheduleGc()}}},Ll=new WeakMap,xo=new WeakMap,An=new WeakMap,_l=new WeakMap,ct=new WeakMap,Uu=new WeakMap,zl=new WeakMap,Fn=new WeakSet,lr=function(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...E8(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...Jv(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,xo,e.manual?r:void 0),r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Ke.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),R(this,An).notify({query:this,type:"updated",action:e})})},$v);function E8(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:w8(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Jv(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function eb(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Bt,fe,Bu,Rt,Pl,wo,Lr,_a,Fu,So,Co,Hl,Kl,za,Eo,Be,Mo,C0,E0,M0,O0,R0,k0,T0,tb,nb,cu=(nb=class extends xl{constructor(e,t){super(),X(this,Be),X(this,Bt),X(this,fe),X(this,Bu),X(this,Rt),X(this,Pl),X(this,wo),X(this,Lr),X(this,_a),X(this,Fu),X(this,So),X(this,Co),X(this,Hl),X(this,Kl),X(this,za),X(this,Eo,new Set),this.options=t,q(this,Bt,e),q(this,_a,null),q(this,Lr,Cp()),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,fe).addObserver(this),rb(R(this,fe),this.options)?$(this,Be,Mo).call(this):this.updateResult(),$(this,Be,O0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Mp(R(this,fe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Mp(R(this,fe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$(this,Be,R0).call(this),$(this,Be,k0).call(this),R(this,fe).removeObserver(this)}setOptions(e){const t=this.options,n=R(this,fe);if(this.options=R(this,Bt).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof fn(this.options.enabled,R(this,fe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$(this,Be,T0).call(this),R(this,fe).setOptions(this.options),t._defaulted&&!Ps(this.options,t)&&R(this,Bt).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,fe),observer:this});const r=this.hasListeners();r&&ab(R(this,fe),n,this.options,t)&&$(this,Be,Mo).call(this),this.updateResult(),r&&(R(this,fe)!==n||fn(this.options.enabled,R(this,fe))!==fn(t.enabled,R(this,fe))||fa(this.options.staleTime,R(this,fe))!==fa(t.staleTime,R(this,fe)))&&$(this,Be,C0).call(this);const a=$(this,Be,E0).call(this);r&&(R(this,fe)!==n||fn(this.options.enabled,R(this,fe))!==fn(t.enabled,R(this,fe))||a!==R(this,za))&&$(this,Be,M0).call(this,a)}getOptimisticResult(e){const t=R(this,Bt).getQueryCache().build(R(this,Bt),e),n=this.createResult(t,e);return rE(this,n)&&(q(this,Rt,n),q(this,wo,this.options),q(this,Pl,R(this,fe).state)),n}getCurrentResult(){return R(this,Rt)}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t==null||t(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&R(this,Lr).status==="pending"&&R(this,Lr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){R(this,Eo).add(e)}getCurrentQuery(){return R(this,fe)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=R(this,Bt).defaultQueryOptions(e),n=R(this,Bt).getQueryCache().build(R(this,Bt),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return $(this,Be,Mo).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,Rt)))}createResult(e,t){var n;const r=R(this,fe),a=this.options,l=R(this,Rt),i=R(this,Pl),o=R(this,wo),s=e!==r?e.state:R(this,Bu),{state:u}=e;let f={...u},c=!1,d;if(t._optimisticResults){const M=this.hasListeners(),N=!M&&rb(e,t),j=M&&ab(e,r,t,a);(N||j)&&(f={...f,...E8(u.data,e.options)}),t._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:h,errorUpdatedAt:m,status:v}=f;d=f.data;let y=!1;if(t.placeholderData!==void 0&&d===void 0&&v==="pending"){let M;l!=null&&l.isPlaceholderData&&t.placeholderData===(o==null?void 0:o.placeholderData)?(M=l.data,y=!0):M=typeof t.placeholderData=="function"?t.placeholderData((n=R(this,Co))==null?void 0:n.state.data,R(this,Co)):t.placeholderData,M!==void 0&&(v="success",d=Sp(l==null?void 0:l.data,M,t),c=!0)}if(t.select&&d!==void 0&&!y)if(l&&d===(i==null?void 0:i.data)&&t.select===R(this,Fu))d=R(this,So);else try{q(this,Fu,t.select),d=t.select(d),d=Sp(l==null?void 0:l.data,d,t),q(this,So,d),q(this,_a,null)}catch(M){q(this,_a,M)}R(this,_a)&&(h=R(this,_a),d=R(this,So),m=Date.now(),v="error");const b=f.fetchStatus==="fetching",g=v==="pending",x=v==="error",S=g&&b,C=d!==void 0,E={status:v,fetchStatus:f.fetchStatus,isPending:g,isSuccess:v==="success",isError:x,isInitialLoading:S,isLoading:S,data:d,dataUpdatedAt:f.dataUpdatedAt,error:h,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>s.dataUpdateCount||f.errorUpdateCount>s.errorUpdateCount,isFetching:b,isRefetching:b&&!g,isLoadingError:x&&!C,isPaused:f.fetchStatus==="paused",isPlaceholderData:c,isRefetchError:x&&C,isStale:xg(e,t),refetch:this.refetch,promise:R(this,Lr),isEnabled:fn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const M=E.data!==void 0,N=E.status==="error"&&!M,j=F=>{N?F.reject(E.error):M&&F.resolve(E.data)},A=()=>{const F=q(this,Lr,E.promise=Cp());j(F)},U=R(this,Lr);switch(U.status){case"pending":e.queryHash===r.queryHash&&j(U);break;case"fulfilled":(N||E.data!==U.value)&&A();break;case"rejected":(!N||E.error!==U.reason)&&A();break}}return E}updateResult(){const e=R(this,Rt),t=this.createResult(R(this,fe),this.options);if(q(this,Pl,R(this,fe).state),q(this,wo,this.options),R(this,Pl).data!==void 0&&q(this,Co,R(this,fe)),Ps(t,e))return;q(this,Rt,t);const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!R(this,Eo).size)return!0;const l=new Set(a??R(this,Eo));return this.options.throwOnError&&l.add("error"),Object.keys(R(this,Rt)).some(i=>{const o=i;return R(this,Rt)[o]!==e[o]&&l.has(o)})};$(this,Be,tb).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$(this,Be,O0).call(this)}},Bt=new WeakMap,fe=new WeakMap,Bu=new WeakMap,Rt=new WeakMap,Pl=new WeakMap,wo=new WeakMap,Lr=new WeakMap,_a=new WeakMap,Fu=new WeakMap,So=new WeakMap,Co=new WeakMap,Hl=new WeakMap,Kl=new WeakMap,za=new WeakMap,Eo=new WeakMap,Be=new WeakSet,Mo=function(e){$(this,Be,T0).call(this);let t=R(this,fe).fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(vt)),t},C0=function(){$(this,Be,R0).call(this);const e=fa(this.options.staleTime,R(this,fe));if(cl||R(this,Rt).isStale||!xp(e))return;const t=y8(R(this,Rt).dataUpdatedAt,e)+1;q(this,Hl,$a.setTimeout(()=>{R(this,Rt).isStale||this.updateResult()},t))},E0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,fe)):this.options.refetchInterval)??!1},M0=function(e){$(this,Be,k0).call(this),q(this,za,e),!(cl||fn(this.options.enabled,R(this,fe))===!1||!xp(R(this,za))||R(this,za)===0)&&q(this,Kl,$a.setInterval(()=>{(this.options.refetchIntervalInBackground||yg.isFocused())&&$(this,Be,Mo).call(this)},R(this,za)))},O0=function(){$(this,Be,C0).call(this),$(this,Be,M0).call(this,$(this,Be,E0).call(this))},R0=function(){R(this,Hl)&&($a.clearTimeout(R(this,Hl)),q(this,Hl,void 0))},k0=function(){R(this,Kl)&&($a.clearInterval(R(this,Kl)),q(this,Kl,void 0))},T0=function(){const e=R(this,Bt).getQueryCache().build(R(this,Bt),this.options);if(e===R(this,fe))return;const t=R(this,fe);q(this,fe,e),q(this,Bu,e.state),this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))},tb=function(e){Ke.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(R(this,Rt))}),R(this,Bt).getQueryCache().notify({query:R(this,fe),type:"observerResultsUpdated"})})},nb);function nE(e,t){return fn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function rb(e,t){return nE(e,t)||e.state.data!==void 0&&Mp(e,t,t.refetchOnMount)}function Mp(e,t,n){if(fn(t.enabled,e)!==!1&&fa(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&xg(e,t)}return!1}function ab(e,t,n,r){return(e!==t||fn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&xg(e,n)}function xg(e,t){return fn(t.enabled,e)!==!1&&e.isStaleByTime(fa(t.staleTime,e))}function rE(e,t){return!Ps(e.getCurrentResult(),t)}function bd(e){return{onFetch:(t,n)=>{var r,a,l,i,o;const s=t.options,u=(l=(a=(r=t.fetchOptions)==null?void 0:r.meta)==null?void 0:a.fetchMore)==null?void 0:l.direction,f=((i=t.state.data)==null?void 0:i.pages)||[],c=((o=t.state.data)==null?void 0:o.pageParams)||[];let d={pages:[],pageParams:[]},h=0;const m=async()=>{let v=!1;const y=x=>{YC(x,()=>t.signal,()=>v=!0)},b=x8(t.options,t.fetchOptions),g=async(x,S,C)=>{if(v)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const E=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};return y(A),A})(),M=await b(E),{maxPages:N}=t.options,j=C?XC:IC;return{pages:j(x.pages,M,N),pageParams:j(x.pageParams,S,N)}};if(u&&f.length){const x=u==="backward",S=x?M8:Op,C={pages:f,pageParams:c},E=S(s,C);d=await g(C,E,x)}else{const x=e??f.length;do{const S=h===0?c[0]??s.initialPageParam:Op(s,d);if(h>0&&S==null)break;d=await g(d,S),h++}while(h<x)}return d};t.options.persister?t.fetchFn=()=>{var v,y;return(y=(v=t.options).persister)==null?void 0:y.call(v,m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=m}}}function Op(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function M8(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function aE(e,t){return t?Op(e,t)!=null:!1}function lE(e,t){return!t||!e.getPreviousPageParam?!1:M8(e,t)!=null}var O8=class extends cu{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:bd()})}getOptimisticResult(e){return e.behavior=bd(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var n,r;const{state:a}=e,l=super.createResult(e,t),{isFetching:i,isRefetching:o,isError:s,isRefetchError:u}=l,f=(r=(n=a.fetchMeta)==null?void 0:n.fetchMore)==null?void 0:r.direction,c=s&&f==="forward",d=i&&f==="forward",h=s&&f==="backward",m=i&&f==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:aE(t,a.data),hasPreviousPage:lE(t,a.data),isFetchNextPageError:c,isFetchingNextPage:d,isFetchPreviousPageError:h,isFetchingPreviousPage:m,isRefetchError:u&&!c&&!h,isRefetching:o&&!d&&!m}}},qu,ir,kt,Ul,or,_r,lb,iE=(lb=class extends C8{constructor(e){super(),X(this,or),X(this,qu),X(this,ir),X(this,kt),X(this,Ul),q(this,qu,e.client),this.mutationId=e.mutationId,q(this,kt,e.mutationCache),q(this,ir,[]),this.state=e.state||R8(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){R(this,ir).includes(e)||(R(this,ir).push(e),this.clearGcTimeout(),R(this,kt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){q(this,ir,R(this,ir).filter(t=>t!==e)),this.scheduleGc(),R(this,kt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){R(this,ir).length||(this.state.status==="pending"?this.scheduleGc():R(this,kt).remove(this))}continue(){var e;return((e=R(this,Ul))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,r,a,l,i,o,s,u,f,c,d,h,m,v,y,b,g,x,S;const C=()=>{$(this,or,_r).call(this,{type:"continue"})},E={client:R(this,qu),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,Ul,S8({fn:()=>this.options.mutationFn?this.options.mutationFn(e,E):Promise.reject(new Error("No mutationFn found")),onFail:(j,A)=>{$(this,or,_r).call(this,{type:"failed",failureCount:j,error:A})},onPause:()=>{$(this,or,_r).call(this,{type:"pause"})},onContinue:C,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,kt).canRun(this)}));const M=this.state.status==="pending",N=!R(this,Ul).canStart();try{if(M)C();else{$(this,or,_r).call(this,{type:"pending",variables:e,isPaused:N}),await((n=(t=R(this,kt).config).onMutate)==null?void 0:n.call(t,e,this,E));const A=await((a=(r=this.options).onMutate)==null?void 0:a.call(r,e,E));A!==this.state.context&&$(this,or,_r).call(this,{type:"pending",context:A,variables:e,isPaused:N})}const j=await R(this,Ul).start();return await((i=(l=R(this,kt).config).onSuccess)==null?void 0:i.call(l,j,e,this.state.context,this,E)),await((s=(o=this.options).onSuccess)==null?void 0:s.call(o,j,e,this.state.context,E)),await((f=(u=R(this,kt).config).onSettled)==null?void 0:f.call(u,j,null,this.state.variables,this.state.context,this,E)),await((d=(c=this.options).onSettled)==null?void 0:d.call(c,j,null,e,this.state.context,E)),$(this,or,_r).call(this,{type:"success",data:j}),j}catch(j){try{await((m=(h=R(this,kt).config).onError)==null?void 0:m.call(h,j,e,this.state.context,this,E))}catch(A){Promise.reject(A)}try{await((y=(v=this.options).onError)==null?void 0:y.call(v,j,e,this.state.context,E))}catch(A){Promise.reject(A)}try{await((g=(b=R(this,kt).config).onSettled)==null?void 0:g.call(b,void 0,j,this.state.variables,this.state.context,this,E))}catch(A){Promise.reject(A)}try{await((S=(x=this.options).onSettled)==null?void 0:S.call(x,void 0,j,e,this.state.context,E))}catch(A){Promise.reject(A)}throw $(this,or,_r).call(this,{type:"error",error:j}),j}finally{R(this,kt).runNext(this)}}},qu=new WeakMap,ir=new WeakMap,kt=new WeakMap,Ul=new WeakMap,or=new WeakSet,_r=function(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Ke.batch(()=>{R(this,ir).forEach(n=>{n.onMutationUpdate(e)}),R(this,kt).notify({mutation:this,type:"updated",action:e})})},lb);function R8(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zr,qn,Vu,ib,oE=(ib=class extends xl{constructor(e={}){super(),X(this,zr),X(this,qn),X(this,Vu),this.config=e,q(this,zr,new Set),q(this,qn,new Map),q(this,Vu,0)}build(e,t,n){const r=new iE({client:e,mutationCache:this,mutationId:++yp(this,Vu)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){R(this,zr).add(e);const t=Gu(e);if(typeof t=="string"){const n=R(this,qn).get(t);n?n.push(e):R(this,qn).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(R(this,zr).delete(e)){const t=Gu(e);if(typeof t=="string"){const n=R(this,qn).get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&R(this,qn).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Gu(e);if(typeof t=="string"){const n=R(this,qn).get(t),r=n==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){var t;const n=Gu(e);if(typeof n=="string"){const r=(t=R(this,qn).get(n))==null?void 0:t.find(a=>a!==e&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ke.batch(()=>{R(this,zr).forEach(e=>{this.notify({type:"removed",mutation:e})}),R(this,zr).clear(),R(this,qn).clear()})}getAll(){return Array.from(R(this,zr))}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Qv(t,n))}findAll(e={}){return this.getAll().filter(t=>Qv(e,t))}notify(e){Ke.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Ke.batch(()=>Promise.all(e.map(t=>t.continue().catch(vt))))}},zr=new WeakMap,qn=new WeakMap,Vu=new WeakMap,ib);function Gu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Pr,Pa,Ft,Hr,Ha,Qu,D0,ob,sE=(ob=class extends xl{constructor(e,t){super(),X(this,Ha),X(this,Pr),X(this,Pa),X(this,Ft),X(this,Hr),q(this,Pr,e),this.setOptions(t),this.bindMethods(),$(this,Ha,Qu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=R(this,Pr).defaultMutationOptions(e),Ps(this.options,n)||R(this,Pr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:R(this,Ft),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&xa(n.mutationKey)!==xa(this.options.mutationKey)?this.reset():((t=R(this,Ft))==null?void 0:t.state.status)==="pending"&&R(this,Ft).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(e=R(this,Ft))==null||e.removeObserver(this)}onMutationUpdate(e){$(this,Ha,Qu).call(this),$(this,Ha,D0).call(this,e)}getCurrentResult(){return R(this,Pa)}reset(){var e;(e=R(this,Ft))==null||e.removeObserver(this),q(this,Ft,void 0),$(this,Ha,Qu).call(this),$(this,Ha,D0).call(this)}mutate(e,t){var n;return q(this,Hr,t),(n=R(this,Ft))==null||n.removeObserver(this),q(this,Ft,R(this,Pr).getMutationCache().build(R(this,Pr),this.options)),R(this,Ft).addObserver(this),R(this,Ft).execute(e)}},Pr=new WeakMap,Pa=new WeakMap,Ft=new WeakMap,Hr=new WeakMap,Ha=new WeakSet,Qu=function(){var e;const t=((e=R(this,Ft))==null?void 0:e.state)??R8();q(this,Pa,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},D0=function(e){Ke.batch(()=>{var t,n,r,a,l,i,o,s;if(R(this,Hr)&&this.hasListeners()){const u=R(this,Pa).variables,f=R(this,Pa).context,c={client:R(this,Pr),meta:this.options.meta,mutationKey:this.options.mutationKey};if((e==null?void 0:e.type)==="success"){try{(n=(t=R(this,Hr)).onSuccess)==null||n.call(t,e.data,u,f,c)}catch(d){Promise.reject(d)}try{(a=(r=R(this,Hr)).onSettled)==null||a.call(r,e.data,null,u,f,c)}catch(d){Promise.reject(d)}}else if((e==null?void 0:e.type)==="error"){try{(i=(l=R(this,Hr)).onError)==null||i.call(l,e.error,u,f,c)}catch(d){Promise.reject(d)}try{(s=(o=R(this,Hr)).onSettled)==null||s.call(o,void 0,e.error,u,f,c)}catch(d){Promise.reject(d)}}}this.listeners.forEach(u=>{u(R(this,Pa))})})},ob);function sb(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function uE(e,t,n){const r=e.slice(0);return r[t]=n,r}var Oo,sn,Ro,ko,Ln,Ka,Iu,Xu,Yu,Zu,un,j0,N0,A0,L0,_0,ub,cE=(ub=class extends xl{constructor(e,t,n){super(),X(this,un),X(this,Oo),X(this,sn),X(this,Ro),X(this,ko),X(this,Ln),X(this,Ka),X(this,Iu),X(this,Xu),X(this,Yu),X(this,Zu,[]),q(this,Oo,e),q(this,ko,n),q(this,Ro,[]),q(this,Ln,[]),q(this,sn,[]),this.setQueries(t)}onSubscribe(){this.listeners.size===1&&R(this,Ln).forEach(e=>{e.subscribe(t=>{$(this,un,L0).call(this,e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,R(this,Ln).forEach(e=>{e.destroy()})}setQueries(e,t){q(this,Ro,e),q(this,ko,t),Ke.batch(()=>{const n=R(this,Ln),r=$(this,un,A0).call(this,R(this,Ro));r.forEach(f=>f.observer.setOptions(f.defaultedQueryOptions));const a=r.map(f=>f.observer),l=a.map(f=>f.getCurrentResult()),i=n.length!==a.length,o=a.some((f,c)=>f!==n[c]),s=i||o,u=s?!0:l.some((f,c)=>{const d=R(this,sn)[c];return!d||!Ps(f,d)});!s&&!u||(s&&(q(this,Zu,r),q(this,Ln,a)),q(this,sn,l),this.hasListeners()&&(s&&(sb(n,a).forEach(f=>{f.destroy()}),sb(a,n).forEach(f=>{f.subscribe(c=>{$(this,un,L0).call(this,f,c)})})),$(this,un,_0).call(this)))})}getCurrentResult(){return R(this,sn)}getQueries(){return R(this,Ln).map(e=>e.getCurrentQuery())}getObservers(){return R(this,Ln)}getOptimisticResult(e,t){const n=$(this,un,A0).call(this,e),r=n.map(l=>l.observer.getOptimisticResult(l.defaultedQueryOptions)),a=n.map(l=>l.defaultedQueryOptions.queryHash);return[r,l=>$(this,un,N0).call(this,l??r,t,a),()=>$(this,un,j0).call(this,r,n)]}},Oo=new WeakMap,sn=new WeakMap,Ro=new WeakMap,ko=new WeakMap,Ln=new WeakMap,Ka=new WeakMap,Iu=new WeakMap,Xu=new WeakMap,Yu=new WeakMap,Zu=new WeakMap,un=new WeakSet,j0=function(e,t){return t.map((n,r)=>{const a=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?a:n.observer.trackResult(a,l=>{t.forEach(i=>{i.observer.trackProp(l)})})})},N0=function(e,t,n){if(t){const r=R(this,Yu),a=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((l,i)=>l!==r[i]));return(!R(this,Ka)||R(this,sn)!==R(this,Xu)||a||t!==R(this,Iu))&&(q(this,Iu,t),q(this,Xu,R(this,sn)),n!==void 0&&q(this,Yu,n),q(this,Ka,vg(R(this,Ka),t(e)))),R(this,Ka)}return e},A0=function(e){const t=new Map;R(this,Ln).forEach(r=>{const a=r.options.queryHash;if(!a)return;const l=t.get(a);l?l.push(r):t.set(a,[r])});const n=[];return e.forEach(r=>{var a;const l=R(this,Oo).defaultQueryOptions(r),i=((a=t.get(l.queryHash))==null?void 0:a.shift())??new cu(R(this,Oo),l);n.push({defaultedQueryOptions:l,observer:i})}),n},L0=function(e,t){const n=R(this,Ln).indexOf(e);n!==-1&&(q(this,sn,uE(R(this,sn),n,t)),$(this,un,_0).call(this))},_0=function(){var e;if(this.hasListeners()){const t=R(this,Ka),n=$(this,un,j0).call(this,R(this,sn),R(this,Zu)),r=$(this,un,N0).call(this,n,(e=R(this,ko))==null?void 0:e.combine);t!==r&&Ke.batch(()=>{this.listeners.forEach(a=>{a(R(this,sn))})})}},ub),sr,cb,dE=(cb=class extends xl{constructor(e={}){super(),X(this,sr),this.config=e,q(this,sr,new Map)}build(e,t,n){const r=t.queryKey,a=t.queryHash??gg(r,t);let l=this.get(a);return l||(l=new tE({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(l)),l}add(e){R(this,sr).has(e.queryHash)||(R(this,sr).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=R(this,sr).get(e.queryHash);t&&(e.destroy(),t===e&&R(this,sr).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ke.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return R(this,sr).get(e)}getAll(){return[...R(this,sr).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Gv(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Gv(e,n)):t}notify(e){Ke.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ke.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ke.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},sr=new WeakMap,cb),Fe,Ua,Ba,To,Do,Fa,jo,No,db,fE=(db=class{constructor(e={}){X(this,Fe),X(this,Ua),X(this,Ba),X(this,To),X(this,Do),X(this,Fa),X(this,jo),X(this,No),q(this,Fe,e.queryCache||new dE),q(this,Ua,e.mutationCache||new oE),q(this,Ba,e.defaultOptions||{}),q(this,To,new Map),q(this,Do,new Map),q(this,Fa,0)}mount(){yp(this,Fa)._++,R(this,Fa)===1&&(q(this,jo,yg.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Fe).onFocus())})),q(this,No,vd.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Fe).onOnline())})))}unmount(){var e,t;yp(this,Fa)._--,R(this,Fa)===0&&((e=R(this,jo))==null||e.call(this),q(this,jo,void 0),(t=R(this,No))==null||t.call(this),q(this,No,void 0))}isFetching(e){return R(this,Fe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,Ua).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return(t=R(this,Fe).get(n.queryHash))==null?void 0:t.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=R(this,Fe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(fa(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return R(this,Fe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=R(this,Fe).get(r.queryHash),l=a==null?void 0:a.state.data,i=VC(t,l);if(i!==void 0)return R(this,Fe).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ke.batch(()=>R(this,Fe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return(t=R(this,Fe).get(n.queryHash))==null?void 0:t.state}removeQueries(e){const t=R(this,Fe);Ke.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=R(this,Fe);return Ke.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ke.batch(()=>R(this,Fe).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(vt).catch(vt)}invalidateQueries(e,t={}){return Ke.batch(()=>(R(this,Fe).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ke.batch(()=>R(this,Fe).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,n);return n.throwOnError||(l=l.catch(vt)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(vt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=R(this,Fe).build(this,t);return n.isStaleByTime(fa(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(vt).catch(vt)}fetchInfiniteQuery(e){return e.behavior=bd(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(vt).catch(vt)}ensureInfiniteQueryData(e){return e.behavior=bd(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return vd.isOnline()?R(this,Ua).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Fe)}getMutationCache(){return R(this,Ua)}getDefaultOptions(){return R(this,Ba)}setDefaultOptions(e){q(this,Ba,e)}setQueryDefaults(e,t){R(this,To).set(xa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,To).values()],n={};return t.forEach(r=>{zs(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){R(this,Do).set(xa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,Do).values()],n={};return t.forEach(r=>{zs(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,Ba).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=gg(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===It&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,Ba).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,Fe).clear(),R(this,Ua).clear()}},Fe=new WeakMap,Ua=new WeakMap,Ba=new WeakMap,To=new WeakMap,Do=new WeakMap,Fa=new WeakMap,jo=new WeakMap,No=new WeakMap,db),k8=p.createContext(void 0),du=e=>{const t=p.useContext(k8);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},hE=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),w.jsx(k8.Provider,{value:e,children:t})),T8=p.createContext(!1),D8=()=>p.useContext(T8);T8.Provider;function pE(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var mE=p.createContext(pE()),j8=()=>p.useContext(mE),N8=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?bg(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},A8=e=>{p.useEffect(()=>{e.clearReset()},[e])},L8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||bg(n,[e.error,r])),wg=(e,t)=>t.state.data===void 0,_8=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},z8=(e,t)=>e.isLoading&&e.isFetching&&!t,Rp=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,yd=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function P8({queries:e,...t},n){const r=du(n),a=D8(),l=j8(),i=p.useMemo(()=>e.map(m=>{const v=r.defaultQueryOptions(m);return v._optimisticResults=a?"isRestoring":"optimistic",v}),[e,r,a]);i.forEach(m=>{_8(m);const v=r.getQueryCache().get(m.queryHash);N8(m,l,v)}),A8(l);const[o]=p.useState(()=>new cE(r,i,t)),[s,u,f]=o.getOptimisticResult(i,t.combine),c=!a&&t.subscribed!==!1;p.useSyncExternalStore(p.useCallback(m=>c?o.subscribe(Ke.batchCalls(m)):vt,[o,c]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),p.useEffect(()=>{o.setQueries(i,t)},[i,t,o]);const d=s.some((m,v)=>Rp(i[v],m))?s.flatMap((m,v)=>{const y=i[v];if(y){const b=new cu(r,y);if(Rp(y,m))return yd(y,b,l);z8(m,a)&&yd(y,b,l)}return[]}):[];if(d.length>0)throw Promise.all(d);const h=s.find((m,v)=>{const y=i[v];return y&&L8({result:m,errorResetBoundary:l,throwOnError:y.throwOnError,query:r.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(h!=null&&h.error)throw h.error;return u(f())}function pf(e,t,n){var r,a,l,i;const o=D8(),s=j8(),u=du(n),f=u.defaultQueryOptions(e);(a=(r=u.getDefaultOptions().queries)==null?void 0:r._experimental_beforeQuery)==null||a.call(r,f);const c=u.getQueryCache().get(f.queryHash);f._optimisticResults=o?"isRestoring":"optimistic",_8(f),N8(f,s,c),A8(s);const d=!u.getQueryCache().get(f.queryHash),[h]=p.useState(()=>new t(u,f)),m=h.getOptimisticResult(f),v=!o&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(y=>{const b=v?h.subscribe(Ke.batchCalls(y)):vt;return h.updateResult(),b},[h,v]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),p.useEffect(()=>{h.setOptions(f)},[f,h]),Rp(f,m))throw yd(f,h,s);if(L8({result:m,errorResetBoundary:s,throwOnError:f.throwOnError,query:c,suspense:f.suspense}))throw m.error;if((i=(l=u.getDefaultOptions().queries)==null?void 0:l._experimental_afterQuery)==null||i.call(l,f,m),f.experimental_prefetchInRender&&!cl&&z8(m,o)){const y=d?yd(f,h,s):c==null?void 0:c.promise;y==null||y.catch(vt).finally(()=>{h.updateResult()})}return f.notifyOnChangeProps?m:h.trackResult(m)}function gE(e,t){return pf(e,cu,t)}function vE(e,t){return pf({...e,enabled:!0,suspense:!0,throwOnError:wg,placeholderData:void 0},cu,t)}function bE(e,t){return pf({...e,enabled:!0,suspense:!0,throwOnError:wg},O8,t)}function yE(e,t){return P8({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:wg,enabled:!0,placeholderData:void 0}))},t)}function xE(e,t){const n=du(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function wE(e,t){const n=du(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function SE(e,t){const n=du(t),[r]=p.useState(()=>new sE(n,e));p.useEffect(()=>{r.setOptions(e)},[r,e]);const a=p.useSyncExternalStore(p.useCallback(i=>r.subscribe(Ke.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=p.useCallback((i,o)=>{r.mutate(i,o).catch(vt)},[r]);if(a.error&&bg(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}function CE(e,t){return pf(e,O8,t)}var EE=Object.create,H8=Object.defineProperty,ME=Object.getOwnPropertyDescriptor,K8=Object.getOwnPropertyNames,OE=Object.getPrototypeOf,RE=Object.prototype.hasOwnProperty,Jn=(e,t)=>function(){return t||(0,e[K8(e)[0]])((t={exports:{}}).exports,t),t.exports},kE=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=K8(t),l=0,i=a.length,o;l<i;l++)o=a[l],!RE.call(e,o)&&o!==n&&H8(e,o,{get:(s=>t[s]).bind(null,o),enumerable:!(r=ME(t,o))||r.enumerable});return e},Qe=(e,t,n)=>(n=e!=null?EE(OE(e)):{},kE(H8(n,"default",{value:e,enumerable:!0}),e)),U8=Jn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),TE=Jn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=U8().default;function r(a,l){if(n(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,l||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),DE=Jn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=U8().default,r=TE();function a(l){var i=r(l,"string");return n(i)=="symbol"?i:i+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),wl=Jn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=DE();function r(a,l,i){return(l=n(l))in a?Object.defineProperty(a,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[l]=i,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Un=Jn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=wl();function r(l,i){var o=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);i&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),o.push.apply(o,s)}return o}function a(l){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(s){n(l,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(o,s))})}return l}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});function mf(e){const t={subscribe(n){let r=null,a=!1,l=!1,i=!1;function o(){if(r===null){i=!0;return}l||(l=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(s){var u;a||(u=n.next)===null||u===void 0||u.call(n,s)},error(s){var u;a||(a=!0,(u=n.error)===null||u===void 0||u.call(n,s),o())},complete(){var s;a||(a=!0,(s=n.complete)===null||s===void 0||s.call(n),o())}}),i&&o(),{unsubscribe:o}},pipe(...n){return n.reduce(jE,t)}};return t}function jE(e,t){return t(e)}function NE(e){const t=new AbortController;return new Promise((n,r)=>{let a=!1;function l(){a||(a=!0,i.unsubscribe())}t.signal.addEventListener("abort",()=>{r(t.signal.reason)});const i=e.subscribe({next(o){a=!0,n(o),l()},error(o){r(o)},complete(){t.abort(),l()}})})}function AE(e){return t=>{let n=0,r=null;const a=[];function l(){r||(r=t.subscribe({next(o){for(const u of a){var s;(s=u.next)===null||s===void 0||s.call(u,o)}},error(o){for(const u of a){var s;(s=u.error)===null||s===void 0||s.call(u,o)}},complete(){for(const s of a){var o;(o=s.complete)===null||o===void 0||o.call(s)}}}))}function i(){if(n===0&&r){const o=r;r=null,o.unsubscribe()}}return mf(o=>(n++,a.push(o),l(),{unsubscribe(){n--,i();const s=a.findIndex(u=>u===o);s>-1&&a.splice(s,1)}}))}}function LE(e){let t=e;const n=[],r=i=>{t!==void 0&&i.next(t),n.push(i)},a=i=>{n.splice(n.indexOf(i),1)},l=mf(i=>(r(i),()=>{a(i)}));return l.next=i=>{if(t!==i){t=i;for(const o of n)o.next(i)}},l.get=()=>t,l}function _E(e){return mf(t=>{function n(r=0,a=e.op){const l=e.links[r];if(!l)throw new Error("No more links to execute - did you forget to add an ending link?");return l({op:a,next(i){return n(r+1,i)}})}return n().subscribe(t)})}function dl(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function zE(){return Object.create(null)}const PE=typeof Symbol=="function"&&!!Symbol.asyncIterator;function B8(e){return PE&&dl(e)&&Symbol.asyncIterator in e}var HE=Object.create,F8=Object.defineProperty,KE=Object.getOwnPropertyDescriptor,q8=Object.getOwnPropertyNames,UE=Object.getPrototypeOf,BE=Object.prototype.hasOwnProperty,fu=(e,t)=>function(){return t||(0,e[q8(e)[0]])((t={exports:{}}).exports,t),t.exports},FE=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=q8(t),l=0,i=a.length,o;l<i;l++)o=a[l],!BE.call(e,o)&&o!==n&&F8(e,o,{get:(s=>t[s]).bind(null,o),enumerable:!(r=KE(t,o))||r.enumerable});return e},gf=(e,t,n)=>(n=e!=null?HE(UE(e)):{},FE(F8(n,"default",{value:e,enumerable:!0}),e));const V8=()=>{},fb=e=>{Object.freeze&&Object.freeze(e)};function G8(e,t,n){var r;const a=t.join(".");return(r=n[a])!==null&&r!==void 0||(n[a]=new Proxy(V8,{get(l,i){if(!(typeof i!="string"||i==="then"))return G8(e,[...t,i],n)},apply(l,i,o){const s=t[t.length-1];let u={args:o,path:t};return s==="call"?u={args:o.length>=2?[o[1]]:[],path:t.slice(0,-1)}:s==="apply"&&(u={args:o.length>=2?o[1]:[],path:t.slice(0,-1)}),fb(u.args),fb(u.path),e(u)}})),n[a]}const vf=e=>G8(e,[],zE()),Sg=e=>new Proxy(V8,{get(t,n){if(n!=="then")return e(n)}});var Q8=fu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),qE=fu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Q8().default;function r(a,l){if(n(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,l||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),VE=fu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Q8().default,r=qE();function a(l){var i=r(l,"string");return n(i)=="symbol"?i:i+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),I8=fu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=VE();function r(a,l,i){return(l=n(l))in a?Object.defineProperty(a,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[l]=i,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Cg=fu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=I8();function r(l,i){var o=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);i&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),o.push.apply(o,s)}return o}function a(l){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(s){n(l,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(o,s))})}return l}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});gf(Cg());gf(I8());var Wu=gf(Cg());function GE(e,t){if("error"in e){const n=t.deserialize(e.error);return{ok:!1,error:(0,Wu.default)((0,Wu.default)({},e),{},{error:n})}}return{ok:!0,result:(0,Wu.default)((0,Wu.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var z0=class extends Error{constructor(){super("Unable to transform response from server")}};function QE(e,t){let n;try{n=GE(e,t)}catch{throw new z0}if(!n.ok&&(!dl(n.error.error)||typeof n.error.error.code!="number"))throw new z0;if(n.ok&&!dl(n.result))throw new z0;return n}gf(Cg());var $u=Qe(wl()),Bl=Qe(Un());function IE(e){return e instanceof xd}function XE(e){return dl(e)&&dl(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function YE(e,t){return typeof e=="string"?e:dl(e)&&typeof e.message=="string"?e.message:t}var xd=class _c extends Error{constructor(t,n){var r,a;const l=n==null?void 0:n.cause;super(t,{cause:l}),(0,$u.default)(this,"cause",void 0),(0,$u.default)(this,"shape",void 0),(0,$u.default)(this,"data",void 0),(0,$u.default)(this,"meta",void 0),this.meta=n==null?void 0:n.meta,this.cause=l,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(a=n.result)===null||a===void 0?void 0:a.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,_c.prototype)}static from(t,n={}){const r=t;return IE(r)?(n.meta&&(r.meta=(0,Bl.default)((0,Bl.default)({},r.meta),n.meta)),r):XE(r)?new _c(r.error.message,(0,Bl.default)((0,Bl.default)({},n),{},{result:r})):new _c(YE(r,"Unknown error"),(0,Bl.default)((0,Bl.default)({},n),{},{cause:r}))}};function ZE(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const hb=e=>typeof e=="function";function WE(e){if(e)return e;if(typeof window<"u"&&hb(window.fetch))return window.fetch;if(typeof globalThis<"u"&&hb(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var hs=Qe(Un());function $E(e){return{url:e.url.toString(),fetch:e.fetch,transformer:ZE(e.transformer),methodOverride:e.methodOverride}}function JE(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const eM={query:"GET",mutation:"POST",subscription:"PATCH"};function X8(e){return"input"in e?e.transformer.input.serialize(e.input):JE(e.inputs.map(t=>e.transformer.input.serialize(t)))}const Y8=e=>{const t=e.url.split("?");let n=t[0].replace(/\/$/,"")+"/"+e.path;const r=[];if(t[1]&&r.push(t[1]),"inputs"in e&&r.push("batch=1"),e.type==="query"||e.type==="subscription"){const a=X8(e);a!==void 0&&e.methodOverride!=="POST"&&r.push(`input=${encodeURIComponent(JSON.stringify(a))}`)}return r.length&&(n+="?"+r.join("&")),n},tM=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=X8(e);return t!==void 0?JSON.stringify(t):void 0},nM=e=>iM((0,hs.default)((0,hs.default)({},e),{},{contentTypeHeader:"application/json",getUrl:Y8,getBody:tM}));var rM=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const aM=e=>{var t;if(e!=null&&e.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new rM};async function lM(e){var t;aM(e.signal);const n=e.getUrl(e),r=e.getBody(e),a=(t=e.methodOverride)!==null&&t!==void 0?t:eM[e.type],l=await(async()=>{const o=await e.headers();return Symbol.iterator in o?Object.fromEntries(o):o})(),i=(0,hs.default)((0,hs.default)((0,hs.default)({},e.contentTypeHeader&&a!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),l);return WE(e.fetch)(n,{method:a,signal:e.signal,body:r,headers:i})}async function iM(e){const t={},n=await lM(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}Qe(Un());const pb=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function mb(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function a(o){const s=[[]];let u=0;for(;;){const d=o[u];if(!d)break;const h=s[s.length-1];if(d.aborted){var f;(f=d.reject)===null||f===void 0||f.call(d,new Error("Aborted")),u++;continue}if(e.validate(h.concat(d).map(m=>m.key))){h.push(d),u++;continue}if(h.length===0){var c;(c=d.reject)===null||c===void 0||c.call(d,new Error("Input is too big for a single dispatch")),u++;continue}s.push([])}return s}function l(){const o=a(t);r();for(const s of o){if(!s.length)continue;const u={items:s};for(const f of s)f.batch=u;e.fetch(u.items.map(f=>f.key)).then(async f=>{await Promise.all(f.map(async(d,h)=>{const m=u.items[h];try{var v;const b=await Promise.resolve(d);(v=m.resolve)===null||v===void 0||v.call(m,b)}catch(b){var y;(y=m.reject)===null||y===void 0||y.call(m,b)}m.batch=null,m.reject=null,m.resolve=null}));for(const d of u.items){var c;(c=d.reject)===null||c===void 0||c.call(d,new Error("Missing result")),d.batch=null}}).catch(f=>{for(const d of u.items){var c;(c=d.reject)===null||c===void 0||c.call(d,f),d.batch=null}})}}function i(o){var s;const u={aborted:!1,key:o,batch:null,resolve:pb,reject:pb},f=new Promise((c,d)=>{var h;u.reject=d,u.resolve=c,(h=t)!==null&&h!==void 0||(t=[]),t.push(u)});return(s=n)!==null&&s!==void 0||(n=setTimeout(l)),f}return{load:i}}function oM(...e){const t=new AbortController,n=e.length;let r=0;const a=()=>{++r===n&&t.abort()};for(const l of e)l!=null&&l.aborted?a():l==null||l.addEventListener("abort",a,{once:!0});return t.signal}var Ju=Qe(Un());function sM(e){var t,n;const r=$E(e),a=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,l=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const i=f=>({validate(c){if(a===1/0&&l===1/0)return!0;if(c.length>l)return!1;const d=c.map(m=>m.path).join(","),h=c.map(m=>m.input);return Y8((0,Ju.default)((0,Ju.default)({},r),{},{type:f,path:d,inputs:h,signal:null})).length<=a},async fetch(c){const d=c.map(y=>y.path).join(","),h=c.map(y=>y.input),m=oM(...c.map(y=>y.signal)),v=await nM((0,Ju.default)((0,Ju.default)({},r),{},{path:d,inputs:h,type:f,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:c}):e.headers:{}},signal:m}));return(Array.isArray(v.json)?v.json:c.map(()=>v.json)).map(y=>({meta:v.meta,json:y}))}}),o=mb(i("query")),s=mb(i("mutation")),u={query:o,mutation:s};return({op:f})=>mf(c=>{/* istanbul ignore if -- @preserve */if(f.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const d=u[f.type].load(f);let h;return d.then(m=>{h=m;const v=QE(m.json,r.transformer.output);if(!v.ok){c.error(xd.from(v.error,{meta:m.meta}));return}c.next({context:m.meta,result:v.result}),c.complete()}).catch(m=>{c.error(xd.from(m,{meta:h==null?void 0:h.meta}))}),()=>{}})}}Qe(Un());const Z8=(e,...t)=>typeof e=="function"?e(...t):e;Qe(wl());function uM(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}async function cM(e){const t=await Z8(e.url);if(!e.connectionParams)return t;const n=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+n}async function dM(e){const t={method:"connectionParams",data:await Z8(e)};return JSON.stringify(t)}Qe(wl());var Za=Qe(wl());function fM(e){const{promise:t,resolve:n,reject:r}=uM();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function hM(e,{intervalMs:t,pongTimeoutMs:n}){let r,a;function l(){r=setTimeout(()=>{e.send("PING"),a=setTimeout(()=>{e.close()},n)},t)}function i(){clearTimeout(r),l()}function o(){clearTimeout(a),i()}e.addEventListener("open",l),e.addEventListener("message",({data:s})=>{clearTimeout(r),l(),s==="PONG"&&o()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(a)})}var pM=class kp{constructor(t){var n;if((0,Za.default)(this,"id",++kp.connectCount),(0,Za.default)(this,"WebSocketPonyfill",void 0),(0,Za.default)(this,"urlOptions",void 0),(0,Za.default)(this,"keepAliveOpts",void 0),(0,Za.default)(this,"wsObservable",LE(null)),(0,Za.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++kp.connectCount;const n=cM(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:a}){a==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&hM(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await fM(r),t.urlOptions.connectionParams&&r.send(await dM(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,Za.default)(pM,"connectCount",0);Qe(wl());Qe(Un());var P0=Qe(wl()),gb=Qe(Un()),bf=class{constructor(e){(0,P0.default)(this,"links",void 0),(0,P0.default)(this,"runtime",void 0),(0,P0.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return _E({links:this.links,op:(0,gb.default)((0,gb.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(AE())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await NE(n)).result.data}catch(n){throw xd.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(r){switch(r.result.type){case"state":{var a;(a=n.onConnectionStateChange)===null||a===void 0||a.call(n,r.result);break}case"started":{var l;(l=n.onStarted)===null||l===void 0||l.call(n,{context:r.context});break}case"stopped":{var i;(i=n.onStopped)===null||i===void 0||i.call(n);break}case"data":case void 0:{var o;(o=n.onData)===null||o===void 0||o.call(n,r.result.data);break}}},error(r){var a;(a=n.onError)===null||a===void 0||a.call(n,r)},complete(){var r;(r=n.onComplete)===null||r===void 0||r.call(n)}})}};const W8=Symbol.for("trpc_untypedClient"),mM={query:"query",mutate:"mutation",subscribe:"subscription"},gM=e=>mM[e];function $8(e){const t=vf(({path:n,args:r})=>{const a=[...n],l=gM(a.pop()),i=a.join(".");return e[l](i,...r)});return Sg(n=>n===W8?e:t[n])}function vM(e){const t=new bf(e);return $8(t)}function Eg(e){return e[W8]}Qe(Un());Qe(Un());var bM=Jn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var l,i,o,s=2;for(typeof Symbol<"u"&&(i=Symbol.asyncIterator,o=Symbol.iterator);s--;){if(i&&(l=a[i])!=null)return l.call(a);if(o&&(l=a[o])!=null)return new r(l.call(a));i="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function l(i){if(Object(i)!==i)return Promise.reject(new TypeError(i+" is not an object."));var o=i.done;return Promise.resolve(i.value).then(function(s){return{value:s,done:o}})}return r=function(i){this.s=i,this.n=i.next},r.prototype={s:null,n:null,next:function(){return l(this.n.apply(this.s,arguments))},return:function(i){var o=this.s.return;return o===void 0?Promise.resolve({value:i,done:!0}):l(o.apply(this.s,arguments))},throw:function(i){var o=this.s.return;return o===void 0?Promise.reject(i):l(o.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});Qe(bM());Qe(Un());var yM=Jn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(o,s){var u=Error();return u.name="SuppressedError",u.error=o,u.suppressed=s,u},a={},l=[];function i(o,s){if(s!=null){if(Object(s)!==s)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(o)var u=s[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(u===void 0&&(u=s[Symbol.dispose||Symbol.for("Symbol.dispose")],o))var f=u;if(typeof u!="function")throw new TypeError("Object is not disposable.");f&&(u=function(){try{f.call(s)}catch(c){return Promise.reject(c)}}),l.push({v:s,d:u,a:o})}else o&&l.push({d:s,a:o});return s}return{e:a,u:i.bind(null,!1),a:i.bind(null,!0),d:function(){var o,s=this.e,u=0;function f(){for(;o=l.pop();)try{if(!o.a&&u===1)return u=0,l.push(o),Promise.resolve().then(f);if(o.d){var d=o.d.call(o.v);if(o.a)return u|=2,Promise.resolve(d).then(f,c)}else u|=1}catch(h){return c(h)}if(u===1)return s!==a?Promise.reject(s):Promise.resolve();if(s!==a)throw s}function c(d){return s=s!==a?new r(d,s):d,f()}return f()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),J8=Jn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,a){this.v=r,this.k=a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),xM=Jn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=J8();function r(a){return new n(a,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),wM=Jn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=J8();function r(l){return function(){return new a(l.apply(this,arguments))}}function a(l){var i,o;function s(f,c){try{var d=l[f](c),h=d.value,m=h instanceof n;Promise.resolve(m?h.v:h).then(function(v){if(m){var y=f==="return"?"return":"next";if(!h.k||v.done)return s(y,v);v=l[y](v).value}u(d.done?"return":"normal",v)},function(v){s("throw",v)})}catch(v){u("throw",v)}}function u(f,c){switch(f){case"return":i.resolve({value:c,done:!0});break;case"throw":i.reject(c);break;default:i.resolve({value:c,done:!1})}(i=i.next)?s(i.key,i.arg):o=null}this._invoke=function(f,c){return new Promise(function(d,h){var m={key:f,arg:c,resolve:d,reject:h,next:null};o?o=o.next=m:(i=o=m,s(f,c))})},typeof l.return!="function"&&(this.return=void 0)}a.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(l){return this._invoke("next",l)},a.prototype.throw=function(l){return this._invoke("throw",l)},a.prototype.return=function(l){return this._invoke("return",l)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Qe(yM());Qe(xM());Qe(wM());Qe(Un());var Li=function(){return Li=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Li.apply(this,arguments)};function SM(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function CM(e,t,n,r){function a(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function o(f){try{u(r.next(f))}catch(c){i(c)}}function s(f){try{u(r.throw(f))}catch(c){i(c)}}function u(f){f.done?l(f.value):a(f.value).then(o,s)}u((r=r.apply(e,[])).next())})}function EM(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,a,l,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=o(0),i.throw=o(1),i.return=o(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(u){return function(f){return s([u,f])}}function s(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(n=0)),n;)try{if(r=1,a&&(l=u[0]&2?a.return:u[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,u[1])).done)return l;switch(a=0,l&&(u=[u[0]&2,l.value]),u[0]){case 0:case 1:l=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!l||u[1]>l[0]&&u[1]<l[3])){n.label=u[1];break}if(u[0]===6&&n.label<l[1]){n.label=l[1],l=u;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(u);break}l[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(f){u=[6,f],a=0}finally{r=l=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function St(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,l;r<a;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}var MM=Object.create,e3=Object.defineProperty,OM=Object.getOwnPropertyDescriptor,t3=Object.getOwnPropertyNames,RM=Object.getPrototypeOf,kM=Object.prototype.hasOwnProperty,Oa=(e,t)=>function(){return t||(0,e[t3(e)[0]])((t={exports:{}}).exports,t),t.exports},TM=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=t3(t),l=0,i=a.length,o;l<i;l++)o=a[l],!kM.call(e,o)&&o!==n&&e3(e,o,{get:(s=>t[s]).bind(null,o),enumerable:!(r=OM(t,o))||r.enumerable});return e},Sl=(e,t,n)=>(n=e!=null?MM(RM(e)):{},TM(t||!e||!e.__esModule?e3(n,"default",{value:e,enumerable:!0}):n,e)),DM=Oa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,a){if(r==null)return{};var l={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(a.includes(i))continue;l[i]=r[i]}return l}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),jM=Oa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=DM();function r(a,l){if(a==null)return{};var i,o,s=n(a,l);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);for(o=0;o<u.length;o++)i=u[o],l.includes(i)||{}.propertyIsEnumerable.call(a,i)&&(s[i]=a[i])}return s}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),n3=Oa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),NM=Oa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=n3().default;function r(a,l){if(n(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,l||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),AM=Oa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=n3().default,r=NM();function a(l){var i=r(l,"string");return n(i)=="symbol"?i:i+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),LM=Oa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=AM();function r(a,l,i){return(l=n(l))in a?Object.defineProperty(a,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[l]=i,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),hu=Oa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=LM();function r(l,i){var o=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);i&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),o.push.apply(o,s)}return o}function a(l){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(s){n(l,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(o,s))})}return l}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),_M=Sl(jM(),1),vb=Sl(hu(),1);const zM=["cursor","direction"];function Qn(e,t,n){const r=e.flatMap(a=>a.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&dl(t)&&("direction"in t||"cursor"in t)){const{cursor:a,direction:l}=t,i=(0,_M.default)(t,zM);return[r,{input:i,type:"infinite"}]}return[r,(0,vb.default)((0,vb.default)({},typeof t<"u"&&t!==It&&{input:t}),n&&n!=="any"&&{type:n})]}function zc(e){return Qn(e,void 0,"any")}function PM(e){return vf(({path:t,args:n})=>{var r;const a=[...t],l=a.pop();if(l==="useMutation")return e[l](a,...n);if(l==="_def")return{path:a};const[i,...o]=n,s=(r=o[0])!==null&&r!==void 0?r:{};return e[l](a,i,s)})}var H0;const HM=["client","ssrContext","ssrState","abortOnUnmount"],KM=(H0=p.createContext)===null||H0===void 0?void 0:H0.call(E2,null),UM=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function BM(e){return vf(t=>{const n=[...t.path],r=n.pop(),a=[...t.args],l=a.shift(),i=UM(r),o=Qn(n,l,i);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,o,a[0]),queryOptions:()=>e.queryOptions(n,o,...a),fetch:()=>e.fetchQuery(o,...a),fetchInfinite:()=>e.fetchInfiniteQuery(o,a[0]),prefetch:()=>e.prefetchQuery(o,...a),prefetchInfinite:()=>e.prefetchInfiniteQuery(o,a[0]),ensureData:()=>e.ensureQueryData(o,...a),invalidate:()=>e.invalidateQueries(o,...a),reset:()=>e.resetQueries(o,...a),refetch:()=>e.refetchQueries(o,...a),cancel:()=>e.cancelQuery(o,...a),setData:()=>{e.setQueryData(o,a[0],a[1])},setQueriesData:()=>e.setQueriesData(o,a[0],a[1],a[2]),setInfiniteData:()=>{e.setInfiniteQueryData(o,a[0],a[1])},getData:()=>e.getQueryData(o),getInfiniteData:()=>e.getInfiniteQueryData(o),setMutationDefaults:()=>e.setMutationDefaults(zc(n),l),getMutationDefaults:()=>e.getMutationDefaults(zc(n)),isMutating:()=>e.isMutating({mutationKey:zc(n)})}[r]()})}function FM(e){const t=$8(e.client),n=BM(e);return Sg(r=>{const a=r;return a==="client"?t:HM.includes(a)?e[a]:n[r]})}var qM=Sl(hu(),1);function bb(e){const t=e instanceof bf?e:Eg(e);return vf(n=>{const r=n.path,a=r.join("."),[l,i]=n.args;return(0,qM.default)({queryKey:Qn(r,l,"query"),queryFn:()=>t.query(a,l,i==null?void 0:i.trpc)},i)})}var K0=Sl(hu(),1);function wt(e,t,n){var r;const a=e[0];let l=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var i;l=(0,K0.default)((0,K0.default)((0,K0.default)({},(i=l)!==null&&i!==void 0?i:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[a.join("."),l,t==null?void 0:t.trpc]}var VM=Oa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var l,i,o,s=2;for(typeof Symbol<"u"&&(i=Symbol.asyncIterator,o=Symbol.iterator);s--;){if(i&&(l=a[i])!=null)return l.call(a);if(o&&(l=a[o])!=null)return new r(l.call(a));i="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function l(i){if(Object(i)!==i)return Promise.reject(new TypeError(i+" is not an object."));var o=i.done;return Promise.resolve(i.value).then(function(s){return{value:s,done:o}})}return r=function(i){this.s=i,this.n=i.next},r.prototype={s:null,n:null,next:function(){return l(this.n.apply(this.s,arguments))},return:function(i){var o=this.s.return;return o===void 0?Promise.resolve({value:i,done:!0}):l(o.apply(this.s,arguments))},throw:function(i){var o=this.s.return;return o===void 0?Promise.reject(i):l(o.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),GM=Sl(VM(),1);function Tp(e){return{path:e.path.join(".")}}function Ao(e){const t=Tp(e);return p.useMemo(()=>t,[t])}async function r3(e,t,n){const r=t.getQueryCache().build(t,{queryKey:n});r.setState({data:[],status:"success"});const a=[];var l=!1,i=!1,o;try{for(var s=(0,GM.default)(e),u;l=!(u=await s.next()).done;l=!1){const f=u.value;a.push(f),r.setState({data:[...a]})}}catch(f){i=!0,o=f}finally{try{l&&s.return!=null&&await s.return()}finally{if(i)throw o}}return a}var pe=Sl(hu(),1);function QM(e){const{client:t,queryClient:n}=e,r=t instanceof bf?t:Eg(t);return{infiniteQueryOptions:(a,l,i)=>{var o,s;const u=((o=l[1])===null||o===void 0?void 0:o.input)===It,f=async c=>{var d;const h=(0,pe.default)((0,pe.default)({},i),{},{trpc:(0,pe.default)((0,pe.default)({},i==null?void 0:i.trpc),!(i==null||(d=i.trpc)===null||d===void 0)&&d.abortOnUnmount?{signal:c.signal}:{signal:null})});return await r.query(...wt(l,h,{direction:c.direction,pageParam:c.pageParam}))};return Object.assign((0,pe.default)((0,pe.default)({},i),{},{initialData:i==null?void 0:i.initialData,queryKey:l,queryFn:u?It:f,initialPageParam:(s=i==null?void 0:i.initialCursor)!==null&&s!==void 0?s:null}),{trpc:Tp({path:a})})},queryOptions:(a,l,i)=>{var o;const s=((o=l[1])===null||o===void 0?void 0:o.input)===It,u=async f=>{var c;const d=(0,pe.default)((0,pe.default)({},i),{},{trpc:(0,pe.default)((0,pe.default)({},i==null?void 0:i.trpc),!(i==null||(c=i.trpc)===null||c===void 0)&&c.abortOnUnmount?{signal:f.signal}:{signal:null})}),h=await r.query(...wt(l,d));return B8(h)?r3(h,n,l):h};return Object.assign((0,pe.default)((0,pe.default)({},i),{},{initialData:i==null?void 0:i.initialData,queryKey:l,queryFn:s?It:u}),{trpc:Tp({path:a})})},fetchQuery:(a,l)=>n.fetchQuery((0,pe.default)((0,pe.default)({},l),{},{queryKey:a,queryFn:()=>r.query(...wt(a,l))})),fetchInfiniteQuery:(a,l)=>{var i;return n.fetchInfiniteQuery((0,pe.default)((0,pe.default)({},l),{},{queryKey:a,queryFn:({pageParam:o,direction:s})=>r.query(...wt(a,l,{pageParam:o,direction:s})),initialPageParam:(i=l==null?void 0:l.initialCursor)!==null&&i!==void 0?i:null}))},prefetchQuery:(a,l)=>n.prefetchQuery((0,pe.default)((0,pe.default)({},l),{},{queryKey:a,queryFn:()=>r.query(...wt(a,l))})),prefetchInfiniteQuery:(a,l)=>{var i;return n.prefetchInfiniteQuery((0,pe.default)((0,pe.default)({},l),{},{queryKey:a,queryFn:({pageParam:o,direction:s})=>r.query(...wt(a,l,{pageParam:o,direction:s})),initialPageParam:(i=l==null?void 0:l.initialCursor)!==null&&i!==void 0?i:null}))},ensureQueryData:(a,l)=>n.ensureQueryData((0,pe.default)((0,pe.default)({},l),{},{queryKey:a,queryFn:()=>r.query(...wt(a,l))})),invalidateQueries:(a,l,i)=>n.invalidateQueries((0,pe.default)((0,pe.default)({},l),{},{queryKey:a}),i),resetQueries:(a,l,i)=>n.resetQueries((0,pe.default)((0,pe.default)({},l),{},{queryKey:a}),i),refetchQueries:(a,l,i)=>n.refetchQueries((0,pe.default)((0,pe.default)({},l),{},{queryKey:a}),i),cancelQuery:(a,l)=>n.cancelQueries({queryKey:a},l),setQueryData:(a,l,i)=>n.setQueryData(a,l,i),setQueriesData:(a,l,i,o)=>n.setQueriesData((0,pe.default)((0,pe.default)({},l),{},{queryKey:a}),i,o),getQueryData:a=>n.getQueryData(a),setInfiniteQueryData:(a,l,i)=>n.setQueryData(a,l,i),getInfiniteQueryData:a=>n.getQueryData(a),setMutationDefaults:(a,l)=>{const i=a[0],o=s=>r.mutation(...wt([i,{input:s}],e));return n.setMutationDefaults(a,typeof l=="function"?l({canonicalMutationFn:o}):l)},getMutationDefaults:a=>n.getMutationDefaults(a),isMutating:a=>n.isMutating((0,pe.default)((0,pe.default)({},a),{},{exact:!0}))}}var I=Sl(hu());const yb=(e,t)=>new Proxy(e,{get(n,r){return t(r),n[r]}});function IM(e){var t,n,r;const a=(t=e==null||(n=e.overrides)===null||n===void 0||(n=n.useMutation)===null||n===void 0?void 0:n.onSuccess)!==null&&t!==void 0?t:S=>S.originalFn(),l=(r=e==null?void 0:e.context)!==null&&r!==void 0?r:KM,i=vM,o=S=>{var C;const{abortOnUnmount:E=!1,queryClient:M,ssrContext:N}=S,[j,A]=p.useState((C=S.ssrState)!==null&&C!==void 0?C:!1),U=S.client instanceof bf?S.client:Eg(S.client),F=p.useMemo(()=>QM({client:U,queryClient:M}),[U,M]),G=p.useMemo(()=>(0,I.default)({abortOnUnmount:E,queryClient:M,client:U,ssrContext:N??null,ssrState:j},F),[E,U,F,M,N,j]);return p.useEffect(()=>{A(Q=>Q?"mounted":!1)},[]),w.jsx(l.Provider,{value:G,children:S.children})};function s(){const S=p.useContext(l);if(!S)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return S}function u(S,C){var E;const{queryClient:M,ssrState:N}=s();return N&&N!=="mounted"&&((E=M.getQueryCache().find({queryKey:S}))===null||E===void 0?void 0:E.state.status)==="error"?(0,I.default)({retryOnMount:!1},C):C}function f(S,C,E){var M,N,j,A,U;const F=s(),{abortOnUnmount:G,client:Q,ssrState:_,queryClient:T,prefetchQuery:L}=F,K=Qn(S,C,"query"),V=T.getQueryDefaults(K),D=C===It;typeof window>"u"&&_==="prepass"&&(E==null||(M=E.trpc)===null||M===void 0?void 0:M.ssr)!==!1&&((N=E==null?void 0:E.enabled)!==null&&N!==void 0?N:V==null?void 0:V.enabled)!==!1&&!D&&!T.getQueryCache().find({queryKey:K})&&L(K,E);const z=u(K,(0,I.default)((0,I.default)({},V),E)),k=(j=(A=E==null||(U=E.trpc)===null||U===void 0?void 0:U.abortOnUnmount)!==null&&A!==void 0?A:e==null?void 0:e.abortOnUnmount)!==null&&j!==void 0?j:G,P=gE((0,I.default)((0,I.default)({},z),{},{queryKey:K,queryFn:D?C:async B=>{const Y=(0,I.default)((0,I.default)({},z),{},{trpc:(0,I.default)((0,I.default)({},z==null?void 0:z.trpc),k?{signal:B.signal}:{signal:null})}),Oe=await Q.query(...wt(K,Y));return B8(Oe)?r3(Oe,T,K):Oe}}),T);return P.trpc=Ao({path:S}),P}function c(S,C,E){var M,N,j;const A=s(),U=Qn(S,C,"query"),F=C===It,G=(M=(N=E==null||(j=E.trpc)===null||j===void 0?void 0:j.abortOnUnmount)!==null&&N!==void 0?N:e==null?void 0:e.abortOnUnmount)!==null&&M!==void 0?M:A.abortOnUnmount;xE((0,I.default)((0,I.default)({},E),{},{queryKey:U,queryFn:F?C:Q=>{const _={trpc:(0,I.default)((0,I.default)({},E==null?void 0:E.trpc),G?{signal:Q.signal}:{})};return A.client.query(...wt(U,_))}}))}function d(S,C,E){var M,N,j;const A=s(),U=Qn(S,C,"query"),F=(M=(N=E==null||(j=E.trpc)===null||j===void 0?void 0:j.abortOnUnmount)!==null&&N!==void 0?N:e==null?void 0:e.abortOnUnmount)!==null&&M!==void 0?M:A.abortOnUnmount,G=vE((0,I.default)((0,I.default)({},E),{},{queryKey:U,queryFn:Q=>{const _=(0,I.default)((0,I.default)({},E),{},{trpc:(0,I.default)((0,I.default)({},E==null?void 0:E.trpc),F?{signal:Q.signal}:{signal:null})});return A.client.query(...wt(U,_))}}),A.queryClient);return G.trpc=Ao({path:S}),[G.data,G]}function h(S,C){const{client:E,queryClient:M}=s(),N=zc(S),j=M.defaultMutationOptions(M.getMutationDefaults(N)),A=SE((0,I.default)((0,I.default)({},C),{},{mutationKey:N,mutationFn:U=>E.mutation(...wt([S,{input:U}],C)),onSuccess(...U){var F,G;return a({originalFn:()=>{var Q,_,T;return(Q=C==null||(_=C.onSuccess)===null||_===void 0?void 0:_.call(C,...U))!==null&&Q!==void 0?Q:j==null||(T=j.onSuccess)===null||T===void 0?void 0:T.call(j,...U)},queryClient:M,meta:(F=(G=C==null?void 0:C.meta)!==null&&G!==void 0?G:j==null?void 0:j.meta)!==null&&F!==void 0?F:{}})}}),M);return A.trpc=Ao({path:S}),A}const m={data:void 0,error:null,status:"idle"},v={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function y(S,C,E){var M;const N=(M=E==null?void 0:E.enabled)!==null&&M!==void 0?M:C!==It,j=xa(Qn(S,C,"any")),{client:A}=s(),U=p.useRef(E);p.useEffect(()=>{U.current=E});const[F]=p.useState(new Set([])),G=p.useCallback(D=>{F.add(D)},[F]),Q=p.useRef(null),_=p.useCallback(D=>{const z=L.current,k=L.current=D(z);let P=!1;for(const B of F)if(z[B]!==k[B]){P=!0;break}P&&V(yb(k,G))},[G,F]),T=p.useCallback(()=>{var D;if((D=Q.current)===null||D===void 0||D.unsubscribe(),!N){_(()=>(0,I.default)((0,I.default)({},m),{},{reset:T}));return}_(()=>(0,I.default)((0,I.default)({},v),{},{reset:T}));const z=A.subscription(S.join("."),C??void 0,{onStarted:()=>{var k,P;(k=(P=U.current).onStarted)===null||k===void 0||k.call(P),_(B=>(0,I.default)((0,I.default)({},B),{},{status:"pending",error:null}))},onData:k=>{var P,B;(P=(B=U.current).onData)===null||P===void 0||P.call(B,k),_(Y=>(0,I.default)((0,I.default)({},Y),{},{status:"pending",data:k,error:null}))},onError:k=>{var P,B;(P=(B=U.current).onError)===null||P===void 0||P.call(B,k),_(Y=>(0,I.default)((0,I.default)({},Y),{},{status:"error",error:k}))},onConnectionStateChange:k=>{_(P=>{switch(k.state){case"idle":return(0,I.default)((0,I.default)({},P),{},{status:k.state,error:null,data:void 0});case"connecting":return(0,I.default)((0,I.default)({},P),{},{error:k.error,status:k.state});case"pending":return P}})},onComplete:()=>{var k,P;(k=(P=U.current).onComplete)===null||k===void 0||k.call(P),_(B=>(0,I.default)((0,I.default)({},B),{},{status:"idle",error:null,data:void 0}))}});Q.current=z},[A,j,N,_]);p.useEffect(()=>(T(),()=>{var D;(D=Q.current)===null||D===void 0||D.unsubscribe()}),[T]);const L=p.useRef(N?(0,I.default)((0,I.default)({},v),{},{reset:T}):(0,I.default)((0,I.default)({},m),{},{reset:T})),[K,V]=p.useState(yb(L.current,G));return K}function b(S,C,E){var M,N,j,A,U;const{client:F,ssrState:G,prefetchInfiniteQuery:Q,queryClient:_,abortOnUnmount:T}=s(),L=Qn(S,C,"infinite"),K=_.getQueryDefaults(L),V=C===It;typeof window>"u"&&G==="prepass"&&(E==null||(M=E.trpc)===null||M===void 0?void 0:M.ssr)!==!1&&((N=E==null?void 0:E.enabled)!==null&&N!==void 0?N:K==null?void 0:K.enabled)!==!1&&!V&&!_.getQueryCache().find({queryKey:L})&&Q(L,(0,I.default)((0,I.default)({},K),E));const D=u(L,(0,I.default)((0,I.default)({},K),E)),z=(j=E==null||(A=E.trpc)===null||A===void 0?void 0:A.abortOnUnmount)!==null&&j!==void 0?j:T,k=CE((0,I.default)((0,I.default)({},D),{},{initialPageParam:(U=E.initialCursor)!==null&&U!==void 0?U:null,persister:E.persister,queryKey:L,queryFn:V?C:P=>{var B;const Y=(0,I.default)((0,I.default)({},D),{},{trpc:(0,I.default)((0,I.default)({},D==null?void 0:D.trpc),z?{signal:P.signal}:{signal:null})});return F.query(...wt(L,Y,{pageParam:(B=P.pageParam)!==null&&B!==void 0?B:E.initialCursor,direction:P.direction}))}}),_);return k.trpc=Ao({path:S}),k}function g(S,C,E){var M,N,j;const A=s(),U=Qn(S,C,"infinite"),F=A.queryClient.getQueryDefaults(U),G=C===It,Q=u(U,(0,I.default)((0,I.default)({},F),E)),_=(M=E==null||(N=E.trpc)===null||N===void 0?void 0:N.abortOnUnmount)!==null&&M!==void 0?M:A.abortOnUnmount;wE((0,I.default)((0,I.default)({},E),{},{initialPageParam:(j=E.initialCursor)!==null&&j!==void 0?j:null,queryKey:U,queryFn:G?C:T=>{var L;const K=(0,I.default)((0,I.default)({},Q),{},{trpc:(0,I.default)((0,I.default)({},Q==null?void 0:Q.trpc),_?{signal:T.signal}:{})});return A.client.query(...wt(U,K,{pageParam:(L=T.pageParam)!==null&&L!==void 0?L:E.initialCursor,direction:T.direction}))}}))}function x(S,C,E){var M,N,j;const A=s(),U=Qn(S,C,"infinite"),F=A.queryClient.getQueryDefaults(U),G=u(U,(0,I.default)((0,I.default)({},F),E)),Q=(M=E==null||(N=E.trpc)===null||N===void 0?void 0:N.abortOnUnmount)!==null&&M!==void 0?M:A.abortOnUnmount,_=bE((0,I.default)((0,I.default)({},E),{},{initialPageParam:(j=E.initialCursor)!==null&&j!==void 0?j:null,queryKey:U,queryFn:T=>{var L;const K=(0,I.default)((0,I.default)({},G),{},{trpc:(0,I.default)((0,I.default)({},G==null?void 0:G.trpc),Q?{signal:T.signal}:{})});return A.client.query(...wt(U,K,{pageParam:(L=T.pageParam)!==null&&L!==void 0?L:E.initialCursor,direction:T.direction}))}}),A.queryClient);return _.trpc=Ao({path:S}),[_.data,_]}return{Provider:o,createClient:i,useContext:s,useUtils:s,useQuery:f,usePrefetchQuery:c,useSuspenseQuery:d,useQueries:(S,C)=>{const{ssrState:E,queryClient:M,prefetchQuery:N,client:j}=s(),A=bb(j),U=S(A);if(typeof window>"u"&&E==="prepass")for(const G of U){var F;const Q=G;((F=Q.trpc)===null||F===void 0?void 0:F.ssr)!==!1&&!M.getQueryCache().find({queryKey:Q.queryKey})&&N(Q.queryKey,Q)}return P8({queries:U.map(G=>(0,I.default)((0,I.default)({},G),{},{queryKey:G.queryKey})),combine:C==null?void 0:C.combine},M)},useSuspenseQueries:S=>{const{queryClient:C,client:E}=s(),M=bb(E),N=S(M),j=yE({queries:N.map(A=>(0,I.default)((0,I.default)({},A),{},{queryFn:A.queryFn,queryKey:A.queryKey}))},C);return[j.map(A=>A.data),j]},useMutation:h,useSubscription:y,useInfiniteQuery:b,usePrefetchInfiniteQuery:g,useSuspenseInfiniteQuery:x}}function XM(e){const t=PM(e);return Sg(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return p.useMemo(()=>FM(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function YM(e){const t=IM(e);return XM(t)}var be=YM({overrides:{useMutation:{onSuccess:function(e){return CM(this,void 0,void 0,function(){return EM(this,function(t){switch(t.label){case 0:return[4,e.originalFn()];case 1:return t.sent(),[4,e.queryClient.invalidateQueries()];case 2:return t.sent(),[2]}})})}}}});/**
|
|
58
|
+
* react-router v7.12.0
|
|
59
59
|
*
|
|
60
60
|
* Copyright (c) Remix Software Inc.
|
|
61
61
|
*
|
|
@@ -63,20 +63,20 @@ Error generating stack: `+r.message+`
|
|
|
63
63
|
* LICENSE.md file in the root directory of this source tree.
|
|
64
64
|
*
|
|
65
65
|
* @license MIT
|
|
66
|
-
*/var bb="popstate";function UM(e={}){function t(r,a){let{pathname:l,search:i,hash:o}=r.location;return Tp("",{pathname:l,search:i,hash:o},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Bs(a)}return qM(t,n,null,e)}function Ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function En(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function BM(){return Math.random().toString(36).substring(2,10)}function yb(e,t){return{usr:e.state,key:e.key,idx:t}}function Tp(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?eo(t):t,state:n,key:t&&t.key||r||BM()}}function Bs({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function eo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function qM(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:l=!1}=r,i=a.history,o="POP",s=null,u=f();u==null&&(u=0,i.replaceState({...i.state,idx:u},""));function f(){return(i.state||{idx:null}).idx}function c(){o="POP";let y=f(),v=y==null?null:y-u;u=y,s&&s({action:o,location:b.location,delta:v})}function d(y,v){o="PUSH";let g=Tp(b.location,y,v);u=f()+1;let x=yb(g,u),C=b.createHref(g);try{i.pushState(x,"",C)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;a.location.assign(C)}l&&s&&s({action:o,location:b.location,delta:1})}function h(y,v){o="REPLACE";let g=Tp(b.location,y,v);u=f();let x=yb(g,u),C=b.createHref(g);i.replaceState(x,"",C),l&&s&&s({action:o,location:b.location,delta:0})}function m(y){return FM(y)}let b={get action(){return o},get location(){return e(a,i)},listen(y){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(bb,c),s=y,()=>{a.removeEventListener(bb,c),s=null}},createHref(y){return t(a,y)},createURL:m,encodeLocation(y){let v=m(y);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:h,go(y){return i.go(y)}};return b}function FM(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ae(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Bs(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function r3(e,t,n="/"){return VM(e,t,n,!1)}function VM(e,t,n,r){let a=typeof t=="string"?eo(t):t,l=jr(a.pathname||"/",n);if(l==null)return null;let i=a3(e);GM(i);let o=null;for(let s=0;o==null&&s<i.length;++s){let u=nO(l);o=eO(i[s],u,r)}return o}function a3(e,t=[],n=[],r="",a=!1){let l=(i,o,s=a,u)=>{let f={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&s)return;Ae(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let c=Er([r,f.relativePath]),d=n.concat(f);i.children&&i.children.length>0&&(Ae(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),a3(i.children,t,d,c,s)),!(i.path==null&&!i.index)&&t.push({path:c,score:WM(c,i.index),routesMeta:d})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))l(i,o);else for(let u of l3(i.path))l(i,o,!0,u)}),t}function l3(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return a?[l,""]:[l];let i=l3(r.join("/")),o=[];return o.push(...i.map(s=>s===""?l:[l,s].join("/"))),a&&o.push(...i),o.map(s=>e.startsWith("/")&&s===""?"/":s)}function GM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:JM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var QM=/^:[\w-]+$/,IM=3,XM=2,YM=1,ZM=10,$M=-2,xb=e=>e==="*";function WM(e,t){let n=e.split("/"),r=n.length;return n.some(xb)&&(r+=$M),t&&(r+=XM),n.filter(a=>!xb(a)).reduce((a,l)=>a+(QM.test(l)?IM:l===""?YM:ZM),r)}function JM(e,t){return e.length===t.length&&e.slice(0,-1).every((n,r)=>n===t[r])?e[e.length-1]-t[t.length-1]:0}function eO(e,t,n=!1){let{routesMeta:r}=e,a={},l="/",i=[];for(let o=0;o<r.length;++o){let s=r[o],u=o===r.length-1,f=l==="/"?t:t.slice(l.length)||"/",c=wd({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},f),d=s.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=wd({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},f)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:Er([l,c.pathname]),pathnameBase:oO(Er([l,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(l=Er([l,c.pathnameBase]))}return i}function wd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=tO(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let l=a[0],i=l.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce((s,{paramName:u,isOptional:f},c)=>{if(u==="*"){let h=o[c]||"";i=l.slice(0,l.length-h.length).replace(/(.)\/+$/,"$1")}const d=o[c];return f&&!d?s[u]=void 0:s[u]=(d||"").replace(/%2F/g,"/"),s},{}),pathname:l,pathnameBase:i,pattern:e}}function tO(e,t=!1,n=!0){En(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,i,o)=>(r.push({paramName:i,isOptional:o!=null}),o?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function nO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return En(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function jr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var rO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,aO=e=>rO.test(e);function lO(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?eo(e):e,l;if(n)if(aO(n))l=n;else{if(n.includes("//")){let i=n;n=n.replace(/\/\/+/g,"/"),En(!1,`Pathnames cannot have embedded double slashes - normalizing ${i} -> ${n}`)}n.startsWith("/")?l=wb(n.substring(1),"/"):l=wb(n,t)}else l=t;return{pathname:l,search:sO(r),hash:uO(a)}}function wb(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function U0(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function iO(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function i3(e){let t=iO(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function o3(e,t,n,r=!1){let a;typeof e=="string"?a=eo(e):(a={...e},Ae(!a.pathname||!a.pathname.includes("?"),U0("?","pathname","search",a)),Ae(!a.pathname||!a.pathname.includes("#"),U0("#","pathname","hash",a)),Ae(!a.search||!a.search.includes("#"),U0("#","search","hash",a)));let l=e===""||a.pathname==="",i=l?"/":a.pathname,o;if(i==null)o=n;else{let c=t.length-1;if(!r&&i.startsWith("..")){let d=i.split("/");for(;d[0]==="..";)d.shift(),c-=1;a.pathname=d.join("/")}o=c>=0?t[c]:"/"}let s=lO(a,o),u=i&&i!=="/"&&i.endsWith("/"),f=(l||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||f)&&(s.pathname+="/"),s}var Er=e=>e.join("/").replace(/\/\/+/g,"/"),oO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),sO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,uO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function cO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function dO(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var s3=["POST","PUT","PATCH","DELETE"];new Set(s3);var fO=["GET",...s3];new Set(fO);var to=p.createContext(null);to.displayName="DataRouter";var yf=p.createContext(null);yf.displayName="DataRouterState";p.createContext(!1);var u3=p.createContext({isTransitioning:!1});u3.displayName="ViewTransition";var hO=p.createContext(new Map);hO.displayName="Fetchers";var pO=p.createContext(null);pO.displayName="Await";var qn=p.createContext(null);qn.displayName="Navigation";var gu=p.createContext(null);gu.displayName="Location";var ar=p.createContext({outlet:null,matches:[],isDataRoute:!1});ar.displayName="Route";var Cg=p.createContext(null);Cg.displayName="RouteError";function mO(e,{relative:t}={}){Ae(vu(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=p.useContext(qn),{hash:a,pathname:l,search:i}=bu(e,{relative:t}),o=l;return n!=="/"&&(o=l==="/"?n:Er([n,l])),r.createHref({pathname:o,search:i,hash:a})}function vu(){return p.useContext(gu)!=null}function ka(){return Ae(vu(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(gu).location}var c3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function d3(e){p.useContext(qn).static||p.useLayoutEffect(e)}function f3(){let{isDataRoute:e}=p.useContext(ar);return e?kO():gO()}function gO(){Ae(vu(),"useNavigate() may be used only in the context of a <Router> component.");let e=p.useContext(to),{basename:t,navigator:n}=p.useContext(qn),{matches:r}=p.useContext(ar),{pathname:a}=ka(),l=JSON.stringify(i3(r)),i=p.useRef(!1);return d3(()=>{i.current=!0}),p.useCallback((o,s={})=>{if(En(i.current,c3),!i.current)return;if(typeof o=="number"){n.go(o);return}let u=o3(o,JSON.parse(l),a,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Er([t,u.pathname])),(s.replace?n.replace:n.push)(u,s.state,s)},[t,n,l,a,e])}p.createContext(null);function vO(){let{matches:e}=p.useContext(ar),t=e[e.length-1];return t?t.params:{}}function bu(e,{relative:t}={}){let{matches:n}=p.useContext(ar),{pathname:r}=ka(),a=JSON.stringify(i3(n));return p.useMemo(()=>o3(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function bO(e,t){return h3(e,t)}function h3(e,t,n,r,a){var l;Ae(vu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=p.useContext(qn),{matches:o}=p.useContext(ar),s=o[o.length-1],u=s?s.params:{},f=s?s.pathname:"/",c=s?s.pathnameBase:"/",d=s&&s.route;{let x=d&&d.path||"";p3(f,!d||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
66
|
+
*/var xb="popstate";function ZM(e={}){function t(r,a){let{pathname:l,search:i,hash:o}=r.location;return Dp("",{pathname:l,search:i,hash:o},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Hs(a)}return $M(t,n,null,e)}function Le(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function En(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function WM(){return Math.random().toString(36).substring(2,10)}function wb(e,t){return{usr:e.state,key:e.key,idx:t}}function Dp(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Zi(t):t,state:n,key:t&&t.key||r||WM()}}function Hs({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Zi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function $M(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:l=!1}=r,i=a.history,o="POP",s=null,u=f();u==null&&(u=0,i.replaceState({...i.state,idx:u},""));function f(){return(i.state||{idx:null}).idx}function c(){o="POP";let y=f(),b=y==null?null:y-u;u=y,s&&s({action:o,location:v.location,delta:b})}function d(y,b){o="PUSH";let g=Dp(v.location,y,b);u=f()+1;let x=wb(g,u),S=v.createHref(g);try{i.pushState(x,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(S)}l&&s&&s({action:o,location:v.location,delta:1})}function h(y,b){o="REPLACE";let g=Dp(v.location,y,b);u=f();let x=wb(g,u),S=v.createHref(g);i.replaceState(x,"",S),l&&s&&s({action:o,location:v.location,delta:0})}function m(y){return JM(y)}let v={get action(){return o},get location(){return e(a,i)},listen(y){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(xb,c),s=y,()=>{a.removeEventListener(xb,c),s=null}},createHref(y){return t(a,y)},createURL:m,encodeLocation(y){let b=m(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:d,replace:h,go(y){return i.go(y)}};return v}function JM(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Le(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Hs(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function a3(e,t,n="/"){return eO(e,t,n,!1)}function eO(e,t,n,r){let a=typeof t=="string"?Zi(t):t,l=Or(a.pathname||"/",n);if(l==null)return null;let i=l3(e);tO(i);let o=null;for(let s=0;o==null&&s<i.length;++s){let u=fO(l);o=cO(i[s],u,r)}return o}function l3(e,t=[],n=[],r="",a=!1){let l=(i,o,s=a,u)=>{let f={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&s)return;Le(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let c=xr([r,f.relativePath]),d=n.concat(f);i.children&&i.children.length>0&&(Le(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),l3(i.children,t,d,c,s)),!(i.path==null&&!i.index)&&t.push({path:c,score:sO(c,i.index),routesMeta:d})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))l(i,o);else for(let u of i3(i.path))l(i,o,!0,u)}),t}function i3(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return a?[l,""]:[l];let i=i3(r.join("/")),o=[];return o.push(...i.map(s=>s===""?l:[l,s].join("/"))),a&&o.push(...i),o.map(s=>e.startsWith("/")&&s===""?"/":s)}function tO(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uO(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var nO=/^:[\w-]+$/,rO=3,aO=2,lO=1,iO=10,oO=-2,Sb=e=>e==="*";function sO(e,t){let n=e.split("/"),r=n.length;return n.some(Sb)&&(r+=oO),t&&(r+=aO),n.filter(a=>!Sb(a)).reduce((a,l)=>a+(nO.test(l)?rO:l===""?lO:iO),r)}function uO(e,t){return e.length===t.length&&e.slice(0,-1).every((n,r)=>n===t[r])?e[e.length-1]-t[t.length-1]:0}function cO(e,t,n=!1){let{routesMeta:r}=e,a={},l="/",i=[];for(let o=0;o<r.length;++o){let s=r[o],u=o===r.length-1,f=l==="/"?t:t.slice(l.length)||"/",c=wd({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},f),d=s.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=wd({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},f)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:xr([l,c.pathname]),pathnameBase:gO(xr([l,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(l=xr([l,c.pathnameBase]))}return i}function wd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=dO(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let l=a[0],i=l.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce((s,{paramName:u,isOptional:f},c)=>{if(u==="*"){let h=o[c]||"";i=l.slice(0,l.length-h.length).replace(/(.)\/+$/,"$1")}const d=o[c];return f&&!d?s[u]=void 0:s[u]=(d||"").replace(/%2F/g,"/"),s},{}),pathname:l,pathnameBase:i,pattern:e}}function dO(e,t=!1,n=!0){En(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,i,o)=>(r.push({paramName:i,isOptional:o!=null}),o?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function fO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return En(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Or(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var o3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hO=e=>o3.test(e);function pO(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Zi(e):e,l;if(n)if(hO(n))l=n;else{if(n.includes("//")){let i=n;n=n.replace(/\/\/+/g,"/"),En(!1,`Pathnames cannot have embedded double slashes - normalizing ${i} -> ${n}`)}n.startsWith("/")?l=Cb(n.substring(1),"/"):l=Cb(n,t)}else l=t;return{pathname:l,search:vO(r),hash:bO(a)}}function Cb(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function U0(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function mO(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function s3(e){let t=mO(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function u3(e,t,n,r=!1){let a;typeof e=="string"?a=Zi(e):(a={...e},Le(!a.pathname||!a.pathname.includes("?"),U0("?","pathname","search",a)),Le(!a.pathname||!a.pathname.includes("#"),U0("#","pathname","hash",a)),Le(!a.search||!a.search.includes("#"),U0("#","search","hash",a)));let l=e===""||a.pathname==="",i=l?"/":a.pathname,o;if(i==null)o=n;else{let c=t.length-1;if(!r&&i.startsWith("..")){let d=i.split("/");for(;d[0]==="..";)d.shift(),c-=1;a.pathname=d.join("/")}o=c>=0?t[c]:"/"}let s=pO(a,o),u=i&&i!=="/"&&i.endsWith("/"),f=(l||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||f)&&(s.pathname+="/"),s}var xr=e=>e.join("/").replace(/\/\/+/g,"/"),gO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,yO=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function xO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function wO(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var c3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function d3(e,t){let n=e;if(typeof n!="string"||!o3.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(c3)try{let l=new URL(window.location.href),i=n.startsWith("//")?new URL(l.protocol+n):new URL(n),o=Or(i.pathname,t);i.origin===l.origin&&o!=null?n=o+i.search+i.hash:a=!0}catch{En(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var f3=["POST","PUT","PATCH","DELETE"];new Set(f3);var SO=["GET",...f3];new Set(SO);var Wi=p.createContext(null);Wi.displayName="DataRouter";var yf=p.createContext(null);yf.displayName="DataRouterState";var CO=p.createContext(!1),h3=p.createContext({isTransitioning:!1});h3.displayName="ViewTransition";var EO=p.createContext(new Map);EO.displayName="Fetchers";var MO=p.createContext(null);MO.displayName="Await";var On=p.createContext(null);On.displayName="Navigation";var pu=p.createContext(null);pu.displayName="Location";var er=p.createContext({outlet:null,matches:[],isDataRoute:!1});er.displayName="Route";var Mg=p.createContext(null);Mg.displayName="RouteError";var p3="REACT_ROUTER_ERROR",OO="REDIRECT",RO="ROUTE_ERROR_RESPONSE";function kO(e){if(e.startsWith(`${p3}:${OO}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function TO(e){if(e.startsWith(`${p3}:${RO}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new yO(t.status,t.statusText,t.data)}catch{}}function DO(e,{relative:t}={}){Le(mu(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=p.useContext(On),{hash:a,pathname:l,search:i}=gu(e,{relative:t}),o=l;return n!=="/"&&(o=l==="/"?n:xr([n,l])),r.createHref({pathname:o,search:i,hash:a})}function mu(){return p.useContext(pu)!=null}function Ra(){return Le(mu(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(pu).location}var m3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function g3(e){p.useContext(On).static||p.useLayoutEffect(e)}function v3(){let{isDataRoute:e}=p.useContext(er);return e?VO():jO()}function jO(){Le(mu(),"useNavigate() may be used only in the context of a <Router> component.");let e=p.useContext(Wi),{basename:t,navigator:n}=p.useContext(On),{matches:r}=p.useContext(er),{pathname:a}=Ra(),l=JSON.stringify(s3(r)),i=p.useRef(!1);return g3(()=>{i.current=!0}),p.useCallback((o,s={})=>{if(En(i.current,m3),!i.current)return;if(typeof o=="number"){n.go(o);return}let u=u3(o,JSON.parse(l),a,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:xr([t,u.pathname])),(s.replace?n.replace:n.push)(u,s.state,s)},[t,n,l,a,e])}p.createContext(null);function NO(){let{matches:e}=p.useContext(er),t=e[e.length-1];return t?t.params:{}}function gu(e,{relative:t}={}){let{matches:n}=p.useContext(er),{pathname:r}=Ra(),a=JSON.stringify(s3(n));return p.useMemo(()=>u3(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function AO(e,t){return b3(e,t)}function b3(e,t,n,r,a){var l;Le(mu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=p.useContext(On),{matches:o}=p.useContext(er),s=o[o.length-1],u=s?s.params:{},f=s?s.pathname:"/",c=s?s.pathnameBase:"/",d=s&&s.route;{let x=d&&d.path||"";x3(f,!d||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
67
67
|
|
|
68
|
-
Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let h=ka(),m;if(t){let x=typeof t=="string"?eo(t):t;Ae(c==="/"||((l=x.pathname)==null?void 0:l.startsWith(c)),`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 "${c}" but pathname "${x.pathname}" was given in the \`location\` prop.`),m=x}else m=h;let b=m.pathname||"/",y=b;if(c!=="/"){let x=c.replace(/^\//,"").split("/");y="/"+b.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=r3(e,{pathname:y});En(d||v!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),En(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.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 g=SO(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},u,x.params),pathname:Er([c,i.encodeLocation?i.encodeLocation(x.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:Er([c,i.encodeLocation?i.encodeLocation(x.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),o,n,r,a);return t&&g?p.createElement(gu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},g):g}function yO(){let e=TO(),t=cO(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:l},"ErrorBoundary")," or"," ",p.createElement("code",{style:l},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:a},n):null,i)}var xO=p.createElement(yO,null),wO=class extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?p.createElement(ar.Provider,{value:this.props.routeContext},p.createElement(Cg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function CO({routeContext:e,match:t,children:n}){let r=p.useContext(to);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(ar.Provider,{value:e},n)}function SO(e,t=[],n=null,r=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,i=n==null?void 0:n.errors;if(i!=null){let f=l.findIndex(c=>c.route.id&&(i==null?void 0:i[c.route.id])!==void 0);Ae(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),l=l.slice(0,Math.min(l.length,f+1))}let o=!1,s=-1;if(n)for(let f=0;f<l.length;f++){let c=l[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(s=f),c.route.id){let{loaderData:d,errors:h}=n,m=c.route.loader&&!d.hasOwnProperty(c.route.id)&&(!h||h[c.route.id]===void 0);if(c.route.lazy||m){o=!0,s>=0?l=l.slice(0,s+1):l=[l[0]];break}}}let u=n&&r?(f,c)=>{var d,h;r(f,{location:n.location,params:((h=(d=n.matches)==null?void 0:d[0])==null?void 0:h.params)??{},unstable_pattern:dO(n.matches),errorInfo:c})}:void 0;return l.reduceRight((f,c,d)=>{let h,m=!1,b=null,y=null;n&&(h=i&&c.route.id?i[c.route.id]:void 0,b=c.route.errorElement||xO,o&&(s<0&&d===0?(p3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,y=null):s===d&&(m=!0,y=c.route.hydrateFallbackElement||null)));let v=t.concat(l.slice(0,d+1)),g=()=>{let x;return h?x=b:m?x=y:c.route.Component?x=p.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=f,p.createElement(CO,{match:c,routeContext:{outlet:f,matches:v,isDataRoute:n!=null},children:x})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?p.createElement(wO,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0},onError:u}):g()},null)}function Sg(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function EO(e){let t=p.useContext(to);return Ae(t,Sg(e)),t}function MO(e){let t=p.useContext(yf);return Ae(t,Sg(e)),t}function OO(e){let t=p.useContext(ar);return Ae(t,Sg(e)),t}function Eg(e){let t=OO(e),n=t.matches[t.matches.length-1];return Ae(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function RO(){return Eg("useRouteId")}function TO(){var e;let t=p.useContext(Cg),n=MO("useRouteError"),r=Eg("useRouteError");return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function kO(){let{router:e}=EO("useNavigate"),t=Eg("useNavigate"),n=p.useRef(!1);return d3(()=>{n.current=!0}),p.useCallback(async(r,a={})=>{En(n.current,c3),n.current&&(typeof r=="number"?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...a}))},[e,t])}var Cb={};function p3(e,t,n){!t&&!Cb[e]&&(Cb[e]=!0,En(!1,n))}p.memo(jO);function jO({routes:e,future:t,state:n,unstable_onError:r}){return h3(e,void 0,n,r,t)}function kp(e){Ae(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function DO({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:l=!1,unstable_useTransitions:i}){Ae(!vu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),s=p.useMemo(()=>({basename:o,navigator:a,static:l,unstable_useTransitions:i,future:{}}),[o,a,l,i]);typeof n=="string"&&(n=eo(n));let{pathname:u="/",search:f="",hash:c="",state:d=null,key:h="default"}=n,m=p.useMemo(()=>{let b=jr(u,o);return b==null?null:{location:{pathname:b,search:f,hash:c,state:d,key:h},navigationType:r}},[o,u,f,c,d,h,r]);return En(m!=null,`<Router basename="${o}"> is not able to match the URL "${u}${f}${c}" because it does not start with the basename, so the <Router> won't render anything.`),m==null?null:p.createElement(qn.Provider,{value:s},p.createElement(gu.Provider,{children:t,value:m}))}function NO({children:e,location:t}){return bO(jp(e),t)}function jp(e,t=[]){let n=[];return p.Children.forEach(e,(r,a)=>{if(!p.isValidElement(r))return;let l=[...t,a];if(r.type===p.Fragment){n.push.apply(n,jp(r.props.children,l));return}Ae(r.type===kp,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ae(!r.props.index||!r.props.children,"An index route cannot have child routes.");let i={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=jp(r.props.children,l)),n.push(i)}),n}var Pc="get",Hc="application/x-www-form-urlencoded";function xf(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function AO(e){return xf(e)&&e.tagName.toLowerCase()==="button"}function LO(e){return xf(e)&&e.tagName.toLowerCase()==="form"}function _O(e){return xf(e)&&e.tagName.toLowerCase()==="input"}function zO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function PO(e,t){return e.button===0&&(!t||t==="_self")&&!zO(e)}function Dp(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function HO(e,t){let n=Dp(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(l=>{n.append(a,l)})}),n}var ec=null;function KO(){if(ec===null)try{new FormData(document.createElement("form"),0),ec=!1}catch{ec=!0}return ec}var UO=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function B0(e){return e!=null&&!UO.has(e)?(En(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Hc}"`),null):e}function BO(e,t){let n,r,a,l,i;if(LO(e)){let o=e.getAttribute("action");r=o?jr(o,t):null,n=e.getAttribute("method")||Pc,a=B0(e.getAttribute("enctype"))||Hc,l=new FormData(e)}else if(AO(e)||_O(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||o.getAttribute("action");if(r=s?jr(s,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||Pc,a=B0(e.getAttribute("formenctype"))||B0(o.getAttribute("enctype"))||Hc,l=new FormData(o,e),!KO()){let{name:u,type:f,value:c}=e;if(f==="image"){let d=u?`${u}.`:"";l.append(`${d}x`,"0"),l.append(`${d}y`,"0")}else u&&l.append(u,c)}}else{if(xf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Pc,r=null,a=Hc,i=e}return l&&a==="text/plain"&&(i=l,l=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:l,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Mg(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function qO(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&jr(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function FO(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function VO(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function GO(e,t,n){let r=await Promise.all(e.map(async a=>{let l=t.routes[a.route.id];if(l){let i=await FO(l,n);return i.links?i.links():[]}return[]}));return YO(r.flat(1).filter(VO).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Sb(e,t,n,r,a,l){let i=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,o=(s,u)=>{var f;return n[u].pathname!==s.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==s.params["*"]};return l==="assets"?t.filter((s,u)=>i(s,u)||o(s,u)):l==="data"?t.filter((s,u)=>{var f;let c=r.routes[s.route.id];if(!c||!c.hasLoader)return!1;if(i(s,u)||o(s,u))return!0;if(s.route.shouldRevalidate){let d=s.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function QO(e,t,{includeHydrateFallback:n}={}){return IO(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let l=[a.module];return a.clientActionModule&&(l=l.concat(a.clientActionModule)),a.clientLoaderModule&&(l=l.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(l=l.concat(a.hydrateFallbackModule)),a.imports&&(l=l.concat(a.imports)),l}).flat(1))}function IO(e){return[...new Set(e)]}function XO(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function YO(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let l=JSON.stringify(XO(a));return n.has(l)||(n.add(l),r.push({key:l,link:a})),r},[])}function m3(){let e=p.useContext(to);return Mg(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ZO(){let e=p.useContext(yf);return Mg(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Og=p.createContext(void 0);Og.displayName="FrameworkContext";function g3(){let e=p.useContext(Og);return Mg(e,"You must render this element inside a <HydratedRouter> element"),e}function $O(e,t){let n=p.useContext(Og),[r,a]=p.useState(!1),[l,i]=p.useState(!1),{onFocus:o,onBlur:s,onMouseEnter:u,onMouseLeave:f,onTouchStart:c}=t,d=p.useRef(null);p.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let b=v=>{v.forEach(g=>{i(g.isIntersecting)})},y=new IntersectionObserver(b,{threshold:.5});return d.current&&y.observe(d.current),()=>{y.disconnect()}}},[e]),p.useEffect(()=>{if(r){let b=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(b)}}},[r]);let h=()=>{a(!0)},m=()=>{a(!1),i(!1)};return n?e!=="intent"?[l,d,{}]:[l,d,{onFocus:Po(o,h),onBlur:Po(s,m),onMouseEnter:Po(u,h),onMouseLeave:Po(f,m),onTouchStart:Po(c,h)}]:[!1,d,{}]}function Po(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function WO({page:e,...t}){let{router:n}=m3(),r=p.useMemo(()=>r3(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?p.createElement(eR,{page:e,matches:r,...t}):null}function JO(e){let{manifest:t,routeModules:n}=g3(),[r,a]=p.useState([]);return p.useEffect(()=>{let l=!1;return GO(e,t,n).then(i=>{l||a(i)}),()=>{l=!0}},[e,t,n]),r}function eR({page:e,matches:t,...n}){let r=ka(),{manifest:a,routeModules:l}=g3(),{basename:i}=m3(),{loaderData:o,matches:s}=ZO(),u=p.useMemo(()=>Sb(e,t,s,a,r,"data"),[e,t,s,a,r]),f=p.useMemo(()=>Sb(e,t,s,a,r,"assets"),[e,t,s,a,r]),c=p.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let m=new Set,b=!1;if(t.forEach(v=>{var g;let x=a.routes[v.route.id];!x||!x.hasLoader||(!u.some(C=>C.route.id===v.route.id)&&v.route.id in o&&(g=l[v.route.id])!=null&&g.shouldRevalidate||x.hasClientLoader?b=!0:m.add(v.route.id))}),m.size===0)return[];let y=qO(e,i,"data");return b&&m.size>0&&y.searchParams.set("_routes",t.filter(v=>m.has(v.route.id)).map(v=>v.route.id).join(",")),[y.pathname+y.search]},[i,o,r,a,u,t,e,l]),d=p.useMemo(()=>QO(f,a),[f,a]),h=JO(f);return p.createElement(p.Fragment,null,c.map(m=>p.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),d.map(m=>p.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),h.map(({key:m,link:b})=>p.createElement("link",{key:m,nonce:n.nonce,...b})))}function tR(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var v3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{v3&&(window.__reactRouterVersion="7.10.1")}catch{}function nR({basename:e,children:t,unstable_useTransitions:n,window:r}){let a=p.useRef();a.current==null&&(a.current=UM({window:r,v5Compat:!0}));let l=a.current,[i,o]=p.useState({action:l.action,location:l.location}),s=p.useCallback(u=>{n===!1?o(u):p.startTransition(()=>o(u))},[n]);return p.useLayoutEffect(()=>l.listen(s),[l,s]),p.createElement(DO,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:l,unstable_useTransitions:n===!0})}var b3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wf=p.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:l,state:i,target:o,to:s,preventScrollReset:u,viewTransition:f,...c},d){let{basename:h,unstable_useTransitions:m}=p.useContext(qn),b=typeof s=="string"&&b3.test(s),y,v=!1;if(typeof s=="string"&&b&&(y=s,v3))try{let D=new URL(window.location.href),N=s.startsWith("//")?new URL(D.protocol+s):new URL(s),j=jr(N.pathname,h);N.origin===D.origin&&j!=null?s=j+N.search+N.hash:v=!0}catch{En(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let g=mO(s,{relative:r}),[x,C,E]=$O(n,c),S=lR(s,{replace:l,state:i,target:o,preventScrollReset:u,relative:r,viewTransition:f,unstable_useTransitions:m});function M(D){e&&e(D),D.defaultPrevented||S(D)}let A=p.createElement("a",{...c,...E,href:y||g,onClick:v||a?e:M,ref:tR(d,C),target:o,"data-discover":!b&&t==="render"?"true":void 0});return x&&!b?p.createElement(p.Fragment,null,A,p.createElement(WO,{page:g})):A});wf.displayName="Link";var y3=p.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:l,viewTransition:i,children:o,...s},u){let f=bu(l,{relative:s.relative}),c=ka(),d=p.useContext(yf),{navigator:h,basename:m}=p.useContext(qn),b=d!=null&&dR(f)&&i===!0,y=h.encodeLocation?h.encodeLocation(f).pathname:f.pathname,v=c.pathname,g=d&&d.navigation&&d.navigation.location?d.navigation.location.pathname:null;t||(v=v.toLowerCase(),g=g?g.toLowerCase():null,y=y.toLowerCase()),g&&m&&(g=jr(g,m)||g);const x=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let C=v===y||!r&&v.startsWith(y)&&v.charAt(x)==="/",E=g!=null&&(g===y||!r&&g.startsWith(y)&&g.charAt(y.length)==="/"),S={isActive:C,isPending:E,isTransitioning:b},M=C?e:void 0,A;typeof n=="function"?A=n(S):A=[n,C?"active":null,E?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let D=typeof a=="function"?a(S):a;return p.createElement(wf,{...s,"aria-current":M,className:A,ref:u,style:D,to:l,viewTransition:i},typeof o=="function"?o(S):o)});y3.displayName="NavLink";var rR=p.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:l,method:i=Pc,action:o,onSubmit:s,relative:u,preventScrollReset:f,viewTransition:c,...d},h)=>{let{unstable_useTransitions:m}=p.useContext(qn),b=uR(),y=cR(o,{relative:u}),v=i.toLowerCase()==="get"?"get":"post",g=typeof o=="string"&&b3.test(o),x=C=>{if(s&&s(C),C.defaultPrevented)return;C.preventDefault();let E=C.nativeEvent.submitter,S=(E==null?void 0:E.getAttribute("formmethod"))||i,M=()=>b(E||C.currentTarget,{fetcherKey:t,method:S,navigate:n,replace:a,state:l,relative:u,preventScrollReset:f,viewTransition:c});m&&n!==!1?p.startTransition(()=>M()):M()};return p.createElement("form",{ref:h,method:v,action:y,onSubmit:r?s:x,...d,"data-discover":!g&&e==="render"?"true":void 0})});rR.displayName="Form";function aR(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function x3(e){let t=p.useContext(to);return Ae(t,aR(e)),t}function lR(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:l,viewTransition:i,unstable_useTransitions:o}={}){let s=f3(),u=ka(),f=bu(e,{relative:l});return p.useCallback(c=>{if(PO(c,t)){c.preventDefault();let d=n!==void 0?n:Bs(u)===Bs(f),h=()=>s(e,{replace:d,state:r,preventScrollReset:a,relative:l,viewTransition:i});o?p.startTransition(()=>h()):h()}},[u,s,f,n,r,t,e,a,l,i,o])}function iR(e){En(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=p.useRef(Dp(e)),n=p.useRef(!1),r=ka(),a=p.useMemo(()=>HO(r.search,n.current?null:t.current),[r.search]),l=f3(),i=p.useCallback((o,s)=>{const u=Dp(typeof o=="function"?o(new URLSearchParams(a)):o);n.current=!0,l("?"+u,s)},[l,a]);return[a,i]}var oR=0,sR=()=>`__${String(++oR)}__`;function uR(){let{router:e}=x3("useSubmit"),{basename:t}=p.useContext(qn),n=RO(),r=e.fetch,a=e.navigate;return p.useCallback(async(l,i={})=>{let{action:o,method:s,encType:u,formData:f,body:c}=BO(l,t);if(i.navigate===!1){let d=i.fetcherKey||sR();await r(d,n,i.action||o,{preventScrollReset:i.preventScrollReset,formData:f,body:c,formMethod:i.method||s,formEncType:i.encType||u,flushSync:i.flushSync})}else await a(i.action||o,{preventScrollReset:i.preventScrollReset,formData:f,body:c,formMethod:i.method||s,formEncType:i.encType||u,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[r,a,t,n])}function cR(e,{relative:t}={}){let{basename:n}=p.useContext(qn),r=p.useContext(ar);Ae(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),l={...bu(e||".",{relative:t})},i=ka();if(e==null){l.search=i.search;let o=new URLSearchParams(l.search),s=o.getAll("index");if(s.some(u=>u==="")){o.delete("index"),s.filter(f=>f).forEach(f=>o.append("index",f));let u=o.toString();l.search=u?`?${u}`:""}}return(!e||e===".")&&a.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Er([n,l.pathname])),Bs(l)}function dR(e,{relative:t}={}){let n=p.useContext(u3);Ae(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=x3("useViewTransitionState"),a=bu(e,{relative:t});if(!n.isTransitioning)return!1;let l=jr(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=jr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return wd(a.pathname,i)!=null||wd(a.pathname,l)!=null}var qs=function(e){var t=e.className;return w.jsx("div",{className:"animate-pulse bg-slate-100 dark:bg-slate-800 ".concat(t)})};function Ce(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,l;for(l=0;l<r.length;l++)a=r[l],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var fR=["color"],hR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,fR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.5 2C7.77614 2 8 2.22386 8 2.5L8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.75979 12.9473 7.63261 13 7.5 13C7.36739 13 7.24021 12.9473 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 2.5C7 2.22386 7.22386 2 7.5 2Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),pR=["color"],mR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,pR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.14645 2.14645C7.34171 1.95118 7.65829 1.95118 7.85355 2.14645L11.8536 6.14645C12.0488 6.34171 12.0488 6.65829 11.8536 6.85355C11.6583 7.04882 11.3417 7.04882 11.1464 6.85355L8 3.70711L8 12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 3.70711L3.85355 6.85355C3.65829 7.04882 3.34171 7.04882 3.14645 6.85355C2.95118 6.65829 2.95118 6.34171 3.14645 6.14645L7.14645 2.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),gR=["color"],vR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,gR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),bR=["color"],w3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,bR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),yR=["color"],xR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,yR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.50009 0.877014C3.84241 0.877014 0.877258 3.84216 0.877258 7.49984C0.877258 11.1575 3.8424 14.1227 7.50009 14.1227C11.1578 14.1227 14.1229 11.1575 14.1229 7.49984C14.1229 3.84216 11.1577 0.877014 7.50009 0.877014ZM1.82726 7.49984C1.82726 4.36683 4.36708 1.82701 7.50009 1.82701C10.6331 1.82701 13.1729 4.36683 13.1729 7.49984C13.1729 10.6328 10.6331 13.1727 7.50009 13.1727C4.36708 13.1727 1.82726 10.6328 1.82726 7.49984ZM8 4.50001C8 4.22387 7.77614 4.00001 7.5 4.00001C7.22386 4.00001 7 4.22387 7 4.50001V7.50001C7 7.63262 7.05268 7.7598 7.14645 7.85357L9.14645 9.85357C9.34171 10.0488 9.65829 10.0488 9.85355 9.85357C10.0488 9.65831 10.0488 9.34172 9.85355 9.14646L8 7.29291V4.50001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),wR=["color"],Ki=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,wR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M13.15 7.49998C13.15 4.66458 10.9402 1.84998 7.50002 1.84998C4.72167 1.84998 3.34849 3.9064 2.76335 5H4.5C4.77614 5 5 5.22386 5 5.5C5 5.77614 4.77614 6 4.5 6H1.5C1.22386 6 1 5.77614 1 5.5V2.5C1 2.22386 1.22386 2 1.5 2C1.77614 2 2 2.22386 2 2.5V4.31318C2.70453 3.07126 4.33406 0.849976 7.50002 0.849976C11.5628 0.849976 14.15 4.18537 14.15 7.49998C14.15 10.8146 11.5628 14.15 7.50002 14.15C5.55618 14.15 3.93778 13.3808 2.78548 12.2084C2.16852 11.5806 1.68668 10.839 1.35816 10.0407C1.25306 9.78536 1.37488 9.49315 1.63024 9.38806C1.8856 9.28296 2.17781 9.40478 2.2829 9.66014C2.56374 10.3425 2.97495 10.9745 3.4987 11.5074C4.47052 12.4963 5.83496 13.15 7.50002 13.15C10.9402 13.15 13.15 10.3354 13.15 7.49998ZM7.5 4.00001C7.77614 4.00001 8 4.22387 8 4.50001V7.29291L9.85355 9.14646C10.0488 9.34172 10.0488 9.65831 9.85355 9.85357C9.65829 10.0488 9.34171 10.0488 9.14645 9.85357L7.14645 7.85357C7.05268 7.7598 7 7.63262 7 7.50001V4.50001C7 4.22387 7.22386 4.00001 7.5 4.00001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),CR=["color"],Rg=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,CR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),SR=["color"],C3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,SR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ER=["color"],MR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,ER);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M2.8 1L2.74967 0.99997C2.52122 0.999752 2.32429 0.999564 2.14983 1.04145C1.60136 1.17312 1.17312 1.60136 1.04145 2.14983C0.999564 2.32429 0.999752 2.52122 0.99997 2.74967L1 2.8V5.2L0.99997 5.25033C0.999752 5.47878 0.999564 5.67572 1.04145 5.85017C1.17312 6.39864 1.60136 6.82688 2.14983 6.95856C2.32429 7.00044 2.52122 7.00025 2.74967 7.00003L2.8 7H5.2L5.25033 7.00003C5.47878 7.00025 5.67572 7.00044 5.85017 6.95856C6.39864 6.82688 6.82688 6.39864 6.95856 5.85017C7.00044 5.67572 7.00025 5.47878 7.00003 5.25033L7 5.2V2.8L7.00003 2.74967C7.00025 2.52122 7.00044 2.32429 6.95856 2.14983C6.82688 1.60136 6.39864 1.17312 5.85017 1.04145C5.67572 0.999564 5.47878 0.999752 5.25033 0.99997L5.2 1H2.8ZM2.38328 2.01382C2.42632 2.00348 2.49222 2 2.8 2H5.2C5.50779 2 5.57369 2.00348 5.61672 2.01382C5.79955 2.05771 5.94229 2.20045 5.98619 2.38328C5.99652 2.42632 6 2.49222 6 2.8V5.2C6 5.50779 5.99652 5.57369 5.98619 5.61672C5.94229 5.79955 5.79955 5.94229 5.61672 5.98619C5.57369 5.99652 5.50779 6 5.2 6H2.8C2.49222 6 2.42632 5.99652 2.38328 5.98619C2.20045 5.94229 2.05771 5.79955 2.01382 5.61672C2.00348 5.57369 2 5.50779 2 5.2V2.8C2 2.49222 2.00348 2.42632 2.01382 2.38328C2.05771 2.20045 2.20045 2.05771 2.38328 2.01382ZM9.8 1L9.74967 0.99997C9.52122 0.999752 9.32429 0.999564 9.14983 1.04145C8.60136 1.17312 8.17312 1.60136 8.04145 2.14983C7.99956 2.32429 7.99975 2.52122 7.99997 2.74967L8 2.8V5.2L7.99997 5.25033C7.99975 5.47878 7.99956 5.67572 8.04145 5.85017C8.17312 6.39864 8.60136 6.82688 9.14983 6.95856C9.32429 7.00044 9.52122 7.00025 9.74967 7.00003L9.8 7H12.2L12.2503 7.00003C12.4788 7.00025 12.6757 7.00044 12.8502 6.95856C13.3986 6.82688 13.8269 6.39864 13.9586 5.85017C14.0004 5.67572 14.0003 5.47878 14 5.25033L14 5.2V2.8L14 2.74967C14.0003 2.52122 14.0004 2.32429 13.9586 2.14983C13.8269 1.60136 13.3986 1.17312 12.8502 1.04145C12.6757 0.999564 12.4788 0.999752 12.2503 0.99997L12.2 1H9.8ZM9.38328 2.01382C9.42632 2.00348 9.49222 2 9.8 2H12.2C12.5078 2 12.5737 2.00348 12.6167 2.01382C12.7995 2.05771 12.9423 2.20045 12.9862 2.38328C12.9965 2.42632 13 2.49222 13 2.8V5.2C13 5.50779 12.9965 5.57369 12.9862 5.61672C12.9423 5.79955 12.7995 5.94229 12.6167 5.98619C12.5737 5.99652 12.5078 6 12.2 6H9.8C9.49222 6 9.42632 5.99652 9.38328 5.98619C9.20045 5.94229 9.05771 5.79955 9.01382 5.61672C9.00348 5.57369 9 5.50779 9 5.2V2.8C9 2.49222 9.00348 2.42632 9.01382 2.38328C9.05771 2.20045 9.20045 2.05771 9.38328 2.01382ZM2.74967 7.99997L2.8 8H5.2L5.25033 7.99997C5.47878 7.99975 5.67572 7.99956 5.85017 8.04145C6.39864 8.17312 6.82688 8.60136 6.95856 9.14983C7.00044 9.32429 7.00025 9.52122 7.00003 9.74967L7 9.8V12.2L7.00003 12.2503C7.00025 12.4788 7.00044 12.6757 6.95856 12.8502C6.82688 13.3986 6.39864 13.8269 5.85017 13.9586C5.67572 14.0004 5.47878 14.0003 5.25033 14L5.2 14H2.8L2.74967 14C2.52122 14.0003 2.32429 14.0004 2.14983 13.9586C1.60136 13.8269 1.17312 13.3986 1.04145 12.8502C0.999564 12.6757 0.999752 12.4788 0.99997 12.2503L1 12.2V9.8L0.99997 9.74967C0.999752 9.52122 0.999564 9.32429 1.04145 9.14983C1.17312 8.60136 1.60136 8.17312 2.14983 8.04145C2.32429 7.99956 2.52122 7.99975 2.74967 7.99997ZM2.8 9C2.49222 9 2.42632 9.00348 2.38328 9.01382C2.20045 9.05771 2.05771 9.20045 2.01382 9.38328C2.00348 9.42632 2 9.49222 2 9.8V12.2C2 12.5078 2.00348 12.5737 2.01382 12.6167C2.05771 12.7995 2.20045 12.9423 2.38328 12.9862C2.42632 12.9965 2.49222 13 2.8 13H5.2C5.50779 13 5.57369 12.9965 5.61672 12.9862C5.79955 12.9423 5.94229 12.7995 5.98619 12.6167C5.99652 12.5737 6 12.5078 6 12.2V9.8C6 9.49222 5.99652 9.42632 5.98619 9.38328C5.94229 9.20045 5.79955 9.05771 5.61672 9.01382C5.57369 9.00348 5.50779 9 5.2 9H2.8ZM9.8 8L9.74967 7.99997C9.52122 7.99975 9.32429 7.99956 9.14983 8.04145C8.60136 8.17312 8.17312 8.60136 8.04145 9.14983C7.99956 9.32429 7.99975 9.52122 7.99997 9.74967L8 9.8V12.2L7.99997 12.2503C7.99975 12.4788 7.99956 12.6757 8.04145 12.8502C8.17312 13.3986 8.60136 13.8269 9.14983 13.9586C9.32429 14.0004 9.52122 14.0003 9.74967 14L9.8 14H12.2L12.2503 14C12.4788 14.0003 12.6757 14.0004 12.8502 13.9586C13.3986 13.8269 13.8269 13.3986 13.9586 12.8502C14.0004 12.6757 14.0003 12.4788 14 12.2503L14 12.2V9.8L14 9.74967C14.0003 9.52122 14.0004 9.32429 13.9586 9.14983C13.8269 8.60136 13.3986 8.17312 12.8502 8.04145C12.6757 7.99956 12.4788 7.99975 12.2503 7.99997L12.2 8H9.8ZM9.38328 9.01382C9.42632 9.00348 9.49222 9 9.8 9H12.2C12.5078 9 12.5737 9.00348 12.6167 9.01382C12.7995 9.05771 12.9423 9.20045 12.9862 9.38328C12.9965 9.42632 13 9.49222 13 9.8V12.2C13 12.5078 12.9965 12.5737 12.9862 12.6167C12.9423 12.7995 12.7995 12.9423 12.6167 12.9862C12.5737 12.9965 12.5078 13 12.2 13H9.8C9.49222 13 9.42632 12.9965 9.38328 12.9862C9.20045 12.9423 9.05771 12.7995 9.01382 12.6167C9.00348 12.5737 9 12.5078 9 12.2V9.8C9 9.49222 9.00348 9.42632 9.01382 9.38328C9.05771 9.20045 9.20045 9.05771 9.38328 9.01382Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),OR=["color"],RR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,OR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M1 3.25C1 3.11193 1.11193 3 1.25 3H13.75C13.8881 3 14 3.11193 14 3.25V10.75C14 10.8881 13.8881 11 13.75 11H1.25C1.11193 11 1 10.8881 1 10.75V3.25ZM1.25 2C0.559643 2 0 2.55964 0 3.25V10.75C0 11.4404 0.559644 12 1.25 12H5.07341L4.82991 13.2986C4.76645 13.6371 5.02612 13.95 5.37049 13.95H9.62951C9.97389 13.95 10.2336 13.6371 10.1701 13.2986L9.92659 12H13.75C14.4404 12 15 11.4404 15 10.75V3.25C15 2.55964 14.4404 2 13.75 2H1.25ZM9.01091 12H5.98909L5.79222 13.05H9.20778L9.01091 12Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),TR=["color"],kR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,TR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),jR=["color"],Np=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,jR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),DR=["color"],NR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,DR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M8.625 2.5C8.625 3.12132 8.12132 3.625 7.5 3.625C6.87868 3.625 6.375 3.12132 6.375 2.5C6.375 1.87868 6.87868 1.375 7.5 1.375C8.12132 1.375 8.625 1.87868 8.625 2.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM7.5 13.625C8.12132 13.625 8.625 13.1213 8.625 12.5C8.625 11.8787 8.12132 11.375 7.5 11.375C6.87868 11.375 6.375 11.8787 6.375 12.5C6.375 13.1213 6.87868 13.625 7.5 13.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),AR=["color"],LR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,AR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),_R=["color"],zR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,_R);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.49933 0.25C3.49635 0.25 0.25 3.49593 0.25 7.50024C0.25 10.703 2.32715 13.4206 5.2081 14.3797C5.57084 14.446 5.70302 14.2222 5.70302 14.0299C5.70302 13.8576 5.69679 13.4019 5.69323 12.797C3.67661 13.235 3.25112 11.825 3.25112 11.825C2.92132 10.9874 2.44599 10.7644 2.44599 10.7644C1.78773 10.3149 2.49584 10.3238 2.49584 10.3238C3.22353 10.375 3.60629 11.0711 3.60629 11.0711C4.25298 12.1788 5.30335 11.8588 5.71638 11.6732C5.78225 11.205 5.96962 10.8854 6.17658 10.7043C4.56675 10.5209 2.87415 9.89918 2.87415 7.12104C2.87415 6.32925 3.15677 5.68257 3.62053 5.17563C3.54576 4.99226 3.29697 4.25521 3.69174 3.25691C3.69174 3.25691 4.30015 3.06196 5.68522 3.99973C6.26337 3.83906 6.8838 3.75895 7.50022 3.75583C8.1162 3.75895 8.73619 3.83906 9.31523 3.99973C10.6994 3.06196 11.3069 3.25691 11.3069 3.25691C11.7026 4.25521 11.4538 4.99226 11.3795 5.17563C11.8441 5.68257 12.1245 6.32925 12.1245 7.12104C12.1245 9.9063 10.4292 10.5192 8.81452 10.6985C9.07444 10.9224 9.30633 11.3648 9.30633 12.0413C9.30633 13.0102 9.29742 13.7922 9.29742 14.0299C9.29742 14.2239 9.42828 14.4496 9.79591 14.3788C12.6746 13.4179 14.75 10.7025 14.75 7.50024C14.75 3.49593 11.5036 0.25 7.49933 0.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),PR=["color"],HR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,PR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M12.3536 13.3536C12.1583 13.5488 11.8417 13.5488 11.6465 13.3536L6.39645 8.10355C6.36478 8.07188 6.33824 8.03702 6.31685 8H5.00002C4.78719 8 4.59769 7.86528 4.52777 7.66426L2.12777 0.764277C2.05268 0.548387 2.13355 0.309061 2.3242 0.182972C2.51486 0.0568819 2.76674 0.0761337 2.93602 0.229734L8.336 5.12972C8.44044 5.22449 8.50001 5.35897 8.50001 5.5V5.81684C8.53702 5.83824 8.57189 5.86478 8.60356 5.89645L13.8536 11.1464C14.0488 11.3417 14.0488 11.6583 13.8536 11.8536L12.3536 13.3536ZM8.25 6.95711L7.45711 7.75L12 12.2929L12.7929 11.5L8.25 6.95711ZM3.71669 2.28845L5.35549 7H6.2929L7.50001 5.79289V5.72146L3.71669 2.28845Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),KR=["color"],UR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,KR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M5.49998 0.5C5.49998 0.223858 5.72383 0 5.99998 0H7.49998H8.99998C9.27612 0 9.49998 0.223858 9.49998 0.5C9.49998 0.776142 9.27612 1 8.99998 1H7.99998V2.11922C9.09832 2.20409 10.119 2.56622 10.992 3.13572C11.0116 3.10851 11.0336 3.08252 11.058 3.05806L12.058 2.05806C12.3021 1.81398 12.6978 1.81398 12.9419 2.05806C13.186 2.30214 13.186 2.69786 12.9419 2.94194L11.967 3.91682C13.1595 5.07925 13.9 6.70314 13.9 8.49998C13.9 12.0346 11.0346 14.9 7.49998 14.9C3.96535 14.9 1.09998 12.0346 1.09998 8.49998C1.09998 5.13361 3.69904 2.3743 6.99998 2.11922V1H5.99998C5.72383 1 5.49998 0.776142 5.49998 0.5ZM2.09998 8.49998C2.09998 5.51764 4.51764 3.09998 7.49998 3.09998C10.4823 3.09998 12.9 5.51764 12.9 8.49998C12.9 11.4823 10.4823 13.9 7.49998 13.9C4.51764 13.9 2.09998 11.4823 2.09998 8.49998ZM7.49998 8.49998V4.09998C5.06992 4.09998 3.09998 6.06992 3.09998 8.49998C3.09998 10.93 5.06992 12.9 7.49998 12.9C8.715 12.9 9.815 12.4075 10.6112 11.6112L7.49998 8.49998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),BR=["color"],qR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,BR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M3.35355 1.85355C3.54882 1.65829 3.54882 1.34171 3.35355 1.14645C3.15829 0.951184 2.84171 0.951184 2.64645 1.14645L0.646447 3.14645C0.451184 3.34171 0.451184 3.65829 0.646447 3.85355L2.64645 5.85355C2.84171 6.04882 3.15829 6.04882 3.35355 5.85355C3.54882 5.65829 3.54882 5.34171 3.35355 5.14645L2.20711 4H9.5C11.433 4 13 5.567 13 7.5C13 7.77614 13.2239 8 13.5 8C13.7761 8 14 7.77614 14 7.5C14 5.01472 11.9853 3 9.5 3H2.20711L3.35355 1.85355ZM2 7.5C2 7.22386 1.77614 7 1.5 7C1.22386 7 1 7.22386 1 7.5C1 9.98528 3.01472 12 5.5 12H12.7929L11.6464 13.1464C11.4512 13.3417 11.4512 13.6583 11.6464 13.8536C11.8417 14.0488 12.1583 14.0488 12.3536 13.8536L14.3536 11.8536C14.5488 11.6583 14.5488 11.3417 14.3536 11.1464L12.3536 9.14645C12.1583 8.95118 11.8417 8.95118 11.6464 9.14645C11.4512 9.34171 11.4512 9.65829 11.6464 9.85355L12.7929 11H5.5C3.567 11 2 9.433 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),FR=["color"],VR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,FR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM4.50003 7C4.22389 7 4.00003 7.22386 4.00003 7.5C4.00003 7.77614 4.22389 8 4.50003 8H10.5C10.7762 8 11 7.77614 11 7.5C11 7.22386 10.7762 7 10.5 7H4.50003Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),GR=["color"],QR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,GR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),IR=["color"],S3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,IR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),XR=["color"],E3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,XR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M3.24182 2.32181C3.3919 2.23132 3.5784 2.22601 3.73338 2.30781L12.7334 7.05781C12.8974 7.14436 13 7.31457 13 7.5C13 7.68543 12.8974 7.85564 12.7334 7.94219L3.73338 12.6922C3.5784 12.774 3.3919 12.7687 3.24182 12.6782C3.09175 12.5877 3 12.4252 3 12.25V2.75C3 2.57476 3.09175 2.4123 3.24182 2.32181ZM4 3.57925V11.4207L11.4288 7.5L4 3.57925Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),YR=["color"],Eb=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,YR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ZR=["color"],M3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,ZR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM7.50003 4C7.77617 4 8.00003 4.22386 8.00003 4.5V7H10.5C10.7762 7 11 7.22386 11 7.5C11 7.77614 10.7762 8 10.5 8H8.00003V10.5C8.00003 10.7761 7.77617 11 7.50003 11C7.22389 11 7.00003 10.7761 7.00003 10.5V8H4.50003C4.22389 8 4.00003 7.77614 4.00003 7.5C4.00003 7.22386 4.22389 7 4.50003 7H7.00003V4.5C7.00003 4.22386 7.22389 4 7.50003 4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),$R=["color"],WR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,$R);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{opacity:".05",d:"M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".1",d:"M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".15",d:"M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".2",d:"M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".25",d:"M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".3",d:"M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".35",d:"M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".4",d:"M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".45",d:"M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".5",d:"M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 9.1488 1.47969 10.657 2.4767 11.8162L1.64647 12.6464C1.45121 12.8417 1.45121 13.1583 1.64647 13.3535C1.84173 13.5488 2.15832 13.5488 2.35358 13.3535L3.18383 12.5233C4.34302 13.5202 5.8511 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 5.85107 13.5202 4.34298 12.5233 3.1838L13.3536 2.35355C13.5488 2.15829 13.5488 1.8417 13.3536 1.64644C13.1583 1.45118 12.8417 1.45118 12.6465 1.64644L11.8162 2.47667C10.657 1.47966 9.14883 0.877045 7.49991 0.877045ZM11.1423 3.15065C10.1568 2.32449 8.88644 1.82704 7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 8.88641 2.32452 10.1568 3.15069 11.1422L11.1423 3.15065ZM3.85781 11.8493C4.84322 12.6753 6.11348 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 6.11345 12.6754 4.84319 11.8493 3.85778L3.85781 11.8493Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),JR=["color"],Tg=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,JR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M4.10876 14L9.46582 1H10.8178L5.46074 14H4.10876Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),eT=["color"],tT=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,eT);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),nT=["color"],rT=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,nT);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M0.900024 7.50002C0.900024 3.85495 3.85495 0.900024 7.50002 0.900024C11.1451 0.900024 14.1 3.85495 14.1 7.50002C14.1 11.1451 11.1451 14.1 7.50002 14.1C3.85495 14.1 0.900024 11.1451 0.900024 7.50002ZM7.50002 1.80002C4.35201 1.80002 1.80002 4.35201 1.80002 7.50002C1.80002 10.648 4.35201 13.2 7.50002 13.2C10.648 13.2 13.2 10.648 13.2 7.50002C13.2 4.35201 10.648 1.80002 7.50002 1.80002ZM3.07504 7.50002C3.07504 5.05617 5.05618 3.07502 7.50004 3.07502C9.94388 3.07502 11.925 5.05617 11.925 7.50002C11.925 9.94386 9.94388 11.925 7.50004 11.925C5.05618 11.925 3.07504 9.94386 3.07504 7.50002ZM7.50004 3.92502C5.52562 3.92502 3.92504 5.52561 3.92504 7.50002C3.92504 9.47442 5.52563 11.075 7.50004 11.075C9.47444 11.075 11.075 9.47442 11.075 7.50002C11.075 5.52561 9.47444 3.92502 7.50004 3.92502ZM7.50004 5.25002C6.2574 5.25002 5.25004 6.25739 5.25004 7.50002C5.25004 8.74266 6.2574 9.75002 7.50004 9.75002C8.74267 9.75002 9.75004 8.74266 9.75004 7.50002C9.75004 6.25738 8.74267 5.25002 7.50004 5.25002ZM6.05004 7.50002C6.05004 6.69921 6.69923 6.05002 7.50004 6.05002C8.30084 6.05002 8.95004 6.69921 8.95004 7.50002C8.95004 8.30083 8.30084 8.95002 7.50004 8.95002C6.69923 8.95002 6.05004 8.30083 6.05004 7.50002Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),aT=["color"],no=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Ce(e,aT);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);const O3=p.createContext({}),Mb=p.createContext(null),lT=p.createContext(null),we=typeof document<"u"?O.useLayoutEffect:()=>{};var q0;const iT=(q0=O.useInsertionEffect)!==null&&q0!==void 0?q0:we;function xt(e){const t=p.useRef(null);return iT(()=>{t.current=e},[e]),p.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function oT(e){let[t,n]=p.useState(e),r=p.useRef(null),a=xt(()=>{if(!r.current)return;let i=r.current.next();if(i.done){r.current=null;return}t===i.value?a():n(i.value)});we(()=>{r.current&&a()});let l=xt(i=>{r.current=i(t),a()});return[t,l]}const R3={prefix:String(Math.round(Math.random()*1e10)),current:0},T3=O.createContext(R3),sT=O.createContext(!1);let F0=new WeakMap;function uT(e=!1){let t=p.useContext(T3),n=p.useRef(null);if(n.current===null&&!e){var r,a;let l=(a=O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(l){let i=F0.get(l);i==null?F0.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==i.state&&(t.current=i.id,F0.delete(l))}n.current=++t.current}return n.current}function cT(e){let t=p.useContext(T3),n=uT(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function dT(e){let t=O.useId(),[n]=p.useState(ja()),r=n?"react-aria":`react-aria${R3.prefix}`;return e||`${r}-${t}`}const fT=typeof O.useId=="function"?dT:cT;function hT(){return!1}function pT(){return!0}function mT(e){return()=>{}}function ja(){return typeof O.useSyncExternalStore=="function"?O.useSyncExternalStore(mT,hT,pT):p.useContext(sT)}let gT=!!(typeof window<"u"&&window.document&&window.document.createElement),Si=new Map,Wo;typeof FinalizationRegistry<"u"&&(Wo=new FinalizationRegistry(e=>{Si.delete(e)}));function ln(e){let[t,n]=p.useState(e),r=p.useRef(null),a=fT(t),l=p.useRef(null);if(Wo&&Wo.register(l,a),gT){const i=Si.get(a);i&&!i.includes(r)?i.push(r):Si.set(a,[r])}return we(()=>{let i=a;return()=>{Wo&&Wo.unregister(l),Si.delete(i)}},[a]),p.useEffect(()=>{let i=r.current;return i&&n(i),()=>{i&&(r.current=null)}}),a}function vT(e,t){if(e===t)return e;let n=Si.get(e);if(n)return n.forEach(a=>a.current=t),t;let r=Si.get(t);return r?(r.forEach(a=>a.current=e),e):t}function Kc(e=[]){let t=ln(),[n,r]=oT(t),a=p.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return we(a,[t,a,...e]),n}function ro(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const he=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},xn=e=>e&&"window"in e&&e.window===e?e:he(e).defaultView||window;function dn(e,t){return t&&e?e.contains(t):!1}const ot=(e=document)=>e.activeElement;function Ue(e){return e.target}function bT(e,t,n,r){return e.createTreeWalker(t,n,r)}function k3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=k3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ui(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=k3(e))&&(r&&(r+=" "),r+=t);return r}function ue(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let a in r){let l=t[a],i=r[a];typeof l=="function"&&typeof i=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=ro(l,i):(a==="className"||a==="UNSAFE_className")&&typeof l=="string"&&typeof i=="string"?t[a]=Ui(l,i):a==="id"&&l&&i?t.id=vT(l,i):t[a]=i!==void 0?i:l}}return t}function j3(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(a=>{const l=Ob(a,t);return n||(n=typeof l=="function"),l});if(n)return()=>{r.forEach((a,l)=>{typeof a=="function"?a():Ob(e[l],null)})}}}function Ob(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}const yT=new Set(["id"]),xT=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),wT=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),CT=new Set(["dir","lang","hidden","inert","translate"]),Rb=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),ST=/^(data-.*)$/;function Je(e,t={}){let{labelable:n,isLink:r,global:a,events:l=a,propNames:i}=t,o={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(yT.has(s)||n&&xT.has(s)||r&&wT.has(s)||a&&CT.has(s)||l&&Rb.has(s)||s.endsWith("Capture")&&Rb.has(s.slice(0,-7))||i!=null&&i.has(s)||ST.test(s))&&(o[s]=e[s]);return o}function Kn(e){if(ET())e.focus({preventScroll:!0});else{let t=MT(e);e.focus(),OT(t)}}let tc=null;function ET(){if(tc==null){tc=!1;try{document.createElement("div").focus({get preventScroll(){return tc=!0,!0}})}catch{}}return tc}function MT(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function OT(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Cf(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function kg(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ar(e){let t=null;return()=>(t==null&&(t=e()),t)}const ml=Ar(function(){return kg(/^Mac/i)}),RT=Ar(function(){return kg(/^iPhone/i)}),D3=Ar(function(){return kg(/^iPad/i)||ml()&&navigator.maxTouchPoints>1}),Sf=Ar(function(){return RT()||D3()}),TT=Ar(function(){return ml()||Sf()}),N3=Ar(function(){return Cf(/AppleWebKit/i)&&!jg()}),jg=Ar(function(){return Cf(/Chrome/i)}),Dg=Ar(function(){return Cf(/Android/i)}),kT=Ar(function(){return Cf(/Firefox/i)}),jT=p.createContext({isNative:!0,open:AT,useHref:e=>e});function Ef(){return p.useContext(jT)}function DT(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function gl(e,t,n=!0){var r,a;let{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}=t;kT()&&!((a=window.event)===null||a===void 0||(r=a.type)===null||r===void 0)&&r.startsWith("key")&&e.target==="_blank"&&(ml()?l=!0:i=!0);let u=N3()&&ml()&&!D3()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s,bubbles:!0,cancelable:!0});gl.isOpening=n,Kn(e),e.dispatchEvent(u),gl.isOpening=!1}gl.isOpening=!1;function NT(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function AT(e,t){NT(e,n=>gl(n,t))}function LT(e){let t=Ef();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function _T(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&DT(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let $r=new Map,Ap=new Set;function Tb(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let a=$r.get(r.target);a||(a=new Set,$r.set(r.target,a),r.target.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let a=$r.get(r.target);if(a&&(a.delete(r.propertyName),a.size===0&&(r.target.removeEventListener("transitioncancel",n),$r.delete(r.target)),$r.size===0)){for(let l of Ap)l();Ap.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Tb():document.addEventListener("DOMContentLoaded",Tb));function zT(){for(const[e]of $r)"isConnected"in e&&!e.isConnected&&$r.delete(e)}function A3(e){requestAnimationFrame(()=>{zT(),$r.size===0?e():Ap.add(e)})}function Mf(){let e=p.useRef(new Map),t=p.useCallback((a,l,i,o)=>{let s=o!=null&&o.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:l,eventTarget:a,fn:s,options:o}),a.addEventListener(l,s,o)},[]),n=p.useCallback((a,l,i,o)=>{var s;let u=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;a.removeEventListener(l,u,o),e.current.delete(i)},[]),r=p.useCallback(()=>{e.current.forEach((a,l)=>{n(a.eventTarget,a.type,l,a.options)})},[n]);return p.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function L3(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=ln(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!r&&!a&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function ao(e){const t=p.useRef(null),n=p.useRef(void 0),r=p.useCallback(a=>{if(typeof e=="function"){const l=e,i=l(a);return()=>{typeof i=="function"?i():l(null)}}else if(e)return e.current=a,()=>{e.current=null}},[e]);return p.useMemo(()=>({get current(){return t.current},set current(a){t.current=a,n.current&&(n.current(),n.current=void 0),a!=null&&(n.current=r(a))}}),[r])}function kb(e,t){const n=p.useRef(!0),r=p.useRef(null);we(()=>(n.current=!0,()=>{n.current=!1}),[]),we(()=>{n.current?n.current=!1:(!r.current||t.some((a,l)=>!Object.is(a,r[l])))&&e(),r.current=t},t)}function PT(){return typeof window.ResizeObserver<"u"}function Cd(e){const{ref:t,box:n,onResize:r}=e;p.useEffect(()=>{let a=t==null?void 0:t.current;if(a)if(PT()){const l=new window.ResizeObserver(i=>{i.length&&r()});return l.observe(a,{box:n}),()=>{a&&l.unobserve(a)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function Ng(e,t){we(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function vl(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function _3(e,t){let n=e;for(vl(n,t)&&(n=n.parentElement);n&&!vl(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function HT(e,t){const n=[];for(;e&&e!==document.documentElement;)vl(e,t)&&n.push(e),e=e.parentElement;return n}function $l(e){return ml()?e.metaKey:e.ctrlKey}const KT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function vs(e){return e instanceof HTMLInputElement&&!KT.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let At=typeof document<"u"&&window.visualViewport;function UT(){let e=ja(),[t,n]=p.useState(()=>e?{width:0,height:0}:jb());return p.useEffect(()=>{let r=()=>{At&&At.scale>1||n(i=>{let o=jb();return o.width===i.width&&o.height===i.height?i:o})},a,l=i=>{At&&At.scale>1||vs(i.target)&&(a=requestAnimationFrame(()=>{(!document.activeElement||!vs(document.activeElement))&&n(o=>{let s={width:window.innerWidth,height:window.innerHeight};return s.width===o.width&&s.height===o.height?o:s})}))};return window.addEventListener("blur",l,!0),At?At.addEventListener("resize",r):window.addEventListener("resize",r),()=>{cancelAnimationFrame(a),window.removeEventListener("blur",l,!0),At?At.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function jb(){return{width:At?At.width*At.scale:window.innerWidth,height:At?At.height*At.scale:window.innerHeight}}let BT=0;const V0=new Map;function qT(e){let[t,n]=p.useState();return we(()=>{if(!e)return;let r=V0.get(e);if(r)n(r.element.id);else{let a=`react-aria-description-${BT++}`;n(a);let l=document.createElement("div");l.id=a,l.style.display="none",l.textContent=e,document.body.appendChild(l),r={refCount:0,element:l},V0.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),V0.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function nc(e,t,n,r){let a=xt(n),l=n==null;p.useEffect(()=>{if(l||!e.current)return;let i=e.current;return i.addEventListener(t,a,r),()=>{i.removeEventListener(t,a,r)}},[e,t,r,l,a])}function z3(e,t){let n=Db(e,t,"left"),r=Db(e,t,"top"),a=t.offsetWidth,l=t.offsetHeight,i=e.scrollLeft,o=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:f,scrollPaddingRight:c,scrollPaddingBottom:d,scrollPaddingLeft:h}=getComputedStyle(e),{scrollMarginTop:m,scrollMarginRight:b,scrollMarginBottom:y,scrollMarginLeft:v}=getComputedStyle(t),g=i+parseInt(u,10),x=o+parseInt(s,10),C=g+e.clientWidth,E=x+e.clientHeight,S=parseInt(f,10)||0,M=parseInt(d,10)||0,A=parseInt(c,10)||0,D=parseInt(h,10)||0,N=parseInt(m,10)||0,j=parseInt(y,10)||0,z=parseInt(b,10)||0,B=parseInt(v,10)||0,L=n-B,P=n+a+z,T=r-N,k=r+l+j,_=i+parseInt(u,10)+D,U=C-A,F=o+parseInt(s,10)+S,G=E-M;(L>_||P<U)&&(L<=i+D?i=L-parseInt(u,10)-D:P>C-A&&(i+=P-C+A)),(T>F||k<G)&&(T<=x+S?o=T-parseInt(s,10)-S:k>E-M&&(o+=k-E+M)),e.scrollTo({left:i,top:o})}function Db(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let a=0;for(;t.offsetParent&&(a+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){a-=e[r];break}t=t.offsetParent}return a}function Nb(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement;if(window.getComputedStyle(i).overflow!=="hidden"&&!jg()){var n;let{left:o,top:s}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:u,top:f}=e.getBoundingClientRect();if(Math.abs(o-u)>1||Math.abs(s-f)>1){var r,a,l;t==null||(a=t.containingElement)===null||a===void 0||(r=a.scrollIntoView)===null||r===void 0||r.call(a,{block:"center",inline:"center"}),(l=e.scrollIntoView)===null||l===void 0||l.call(e,{block:"nearest"})}}else{let o=HT(e);for(let s of o)z3(s,e)}}}function P3(e){return e.pointerType===""&&e.isTrusted?!0:Dg()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function FT(e){return!Dg()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const VT="react-aria-clear-focus",GT="react-aria-focus";function Of(e,t=!0){let[n,r]=p.useState(!0),a=n&&t;return we(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let l of e.current.getAnimations())l instanceof CSSTransition&&l.cancel()},[e,a]),H3(e,a,p.useCallback(()=>r(!1),[])),a}function Sd(e,t){let[n,r]=p.useState(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open");break}let a=n==="exiting";return H3(e,a,p.useCallback(()=>{r(l=>l==="exiting"?"closed":l)},[])),a}function H3(e,t,n){we(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let r=e.current.getAnimations();if(r.length===0){n();return}let a=!1;return Promise.all(r.map(l=>l.finished)).then(()=>{a||Js.flushSync(()=>{n()})}).catch(()=>{}),()=>{a=!0}}},[e,t,n])}const QT=typeof Element<"u"&&"checkVisibility"in Element.prototype;function IT(e){const t=xn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,a=n!=="none"&&r!=="hidden"&&r!=="collapse";if(a){const{getComputedStyle:l}=e.ownerDocument.defaultView;let{display:i,visibility:o}=l(e);a=i!=="none"&&o!=="hidden"&&o!=="collapse"}return a}function XT(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Ag(e,t){return QT?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&IT(e)&&XT(e,t)&&(!e.parentElement||Ag(e.parentElement,e))}const Lg=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],YT=Lg.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Lg.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const ZT=Lg.join(':not([hidden]):not([tabindex="-1"]),');function K3(e){return e.matches(YT)&&Ag(e)&&!U3(e)}function $T(e){return e.matches(ZT)&&Ag(e)&&!U3(e)}function U3(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function yu(e,t,n){let[r,a]=p.useState(e||t),l=p.useRef(e!==void 0),i=e!==void 0;p.useEffect(()=>{l.current,l.current=i},[i]);let o=i?e:r,s=p.useCallback((u,...f)=>{let c=(d,...h)=>{n&&(Object.is(o,d)||n(d,...h)),i||(o=d)};typeof u=="function"?a((d,...h)=>{let m=u(i?o:d,...h);return c(m,...f),i?d:m}):(i||a(u),c(u,...f))},[i,o,n]);return[o,s]}function Fs(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const Ed=Symbol("default");function Da({values:e,children:t}){for(let[n,r]of e)t=O.createElement(n.Provider,{value:r},t);return t}function On(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:l,defaultStyle:i,values:o}=e;return p.useMemo(()=>{let s,u,f;return typeof t=="function"?s=t({...o,defaultClassName:a}):s=t,typeof n=="function"?u=n({...o,defaultStyle:i||{}}):u=n,typeof r=="function"?f=r({...o,defaultChildren:l}):r==null?f=l:f=r,{className:s??a,style:u||i?{...i,...u}:void 0,children:f??l,"data-rac":""}},[t,n,r,a,l,i,o])}function B3(e,t){let n=p.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||Ed;if(!n.slots[r]){let a=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`)),l=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${l} Valid slot names are ${a}.`)}return n.slots[r]}return n}function Rn(e,t,n){let r=B3(n,e.slot)||{},{ref:a,...l}=r,i=ao(p.useMemo(()=>j3(t,a),[t,a])),o=ue(l,e);return"style"in l&&l.style&&"style"in e&&e.style&&(typeof l.style=="function"||typeof e.style=="function"?o.style=s=>{let u=typeof l.style=="function"?l.style(s):l.style,f={...s.defaultStyle,...u},c=typeof e.style=="function"?e.style({...s,defaultStyle:f}):e.style;return{...f,...c}}:o.style={...l.style,...e.style}),[o,i]}function q3(e=!0){let[t,n]=p.useState(e),r=p.useRef(!1),a=p.useCallback(l=>{r.current=!0,n(!!l)},[]);return we(()=>{r.current||n(!1)},[]),[a,t]}const F3=7e3;let qr=null;function WT(e,t="assertive",n=F3){qr?qr.announce(e,t,n):(qr=new JT,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?qr.announce(e,t,n):setTimeout(()=>{qr!=null&&qr.isAttached()&&(qr==null||qr.announce(e,t,n))},100))}class JT{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=F3){var a,l;if(!this.node)return;let i=document.createElement("div");typeof t=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",t["aria-labelledby"])):i.textContent=t,n==="assertive"?(a=this.assertiveLog)===null||a===void 0||a.appendChild(i):(l=this.politeLog)===null||l===void 0||l.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const Jn={top:"top",bottom:"top",left:"left",right:"left"},Md={top:"bottom",bottom:"top",left:"right",right:"left"},ek={top:"left",left:"top"},Lp={top:"height",left:"width"},V3={width:"totalWidth",height:"totalHeight"},rc={};let Ft=typeof document<"u"?window.visualViewport:null;function Ab(e){let t=0,n=0,r=0,a=0,l=0,i=0,o={};var s;let u=((s=Ft==null?void 0:Ft.scale)!==null&&s!==void 0?s:1)>1;if(e.tagName==="BODY"){let m=document.documentElement;r=m.clientWidth,a=m.clientHeight;var f;t=(f=Ft==null?void 0:Ft.width)!==null&&f!==void 0?f:r;var c;n=(c=Ft==null?void 0:Ft.height)!==null&&c!==void 0?c:a,o.top=m.scrollTop||e.scrollTop,o.left=m.scrollLeft||e.scrollLeft,Ft&&(l=Ft.offsetTop,i=Ft.offsetLeft)}else({width:t,height:n,top:l,left:i}=Ei(e,!1)),o.top=e.scrollTop,o.left=e.scrollLeft,r=t,a=n;if(N3()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){o.top=0,o.left=0;var d;l=(d=Ft==null?void 0:Ft.pageTop)!==null&&d!==void 0?d:0;var h;i=(h=Ft==null?void 0:Ft.pageLeft)!==null&&h!==void 0?h:0}return{width:t,height:n,totalWidth:r,totalHeight:a,scroll:o,top:l,left:i}}function tk(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Lb(e,t,n,r,a,l,i){var o;let s=(o=a.scroll[e])!==null&&o!==void 0?o:0,u=r[Lp[e]],f=r.scroll[Jn[e]]+l,c=u+r.scroll[Jn[e]]-l,d=t-s+i[e]-r[Jn[e]],h=t-s+n+i[e]-r[Jn[e]];return d<f?f-d:h>c?Math.max(c-h,f-d):0}function nk(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function _b(e){if(rc[e])return rc[e];let[t,n]=e.split(" "),r=Jn[t]||"right",a=ek[r];Jn[n]||(n="center");let l=Lp[r],i=Lp[a];return rc[e]={placement:t,crossPlacement:n,axis:r,crossAxis:a,size:l,crossSize:i},rc[e]}function G0(e,t,n,r,a,l,i,o,s,u){let{placement:f,crossPlacement:c,axis:d,crossAxis:h,size:m,crossSize:b}=r,y={};var v;y[h]=(v=e[h])!==null&&v!==void 0?v:0;var g,x,C,E;c==="center"?y[h]+=(((g=e[b])!==null&&g!==void 0?g:0)-((x=n[b])!==null&&x!==void 0?x:0))/2:c!==h&&(y[h]+=((C=e[b])!==null&&C!==void 0?C:0)-((E=n[b])!==null&&E!==void 0?E:0)),y[h]+=l;const S=e[h]-n[b]+s+u,M=e[h]+e[b]-s-u;if(y[h]=Fs(y[h],S,M),f===d){const A=o?i[m]:t[V3[m]];y[Md[d]]=Math.floor(A-e[d]+a)}else y[d]=Math.floor(e[d]+e[m]+a);return y}function rk(e,t,n,r,a,l,i,o){const s=r?n.height:t[V3.height];var u;let f=e.top!=null?n.top+e.top:n.top+(s-((u=e.bottom)!==null&&u!==void 0?u:0)-i);var c,d,h,m,b,y;let v=o!=="top"?Math.max(0,t.height+t.top+((c=t.scroll.top)!==null&&c!==void 0?c:0)-f-(((d=a.top)!==null&&d!==void 0?d:0)+((h=a.bottom)!==null&&h!==void 0?h:0)+l)):Math.max(0,f+i-(t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0))-(((b=a.top)!==null&&b!==void 0?b:0)+((y=a.bottom)!==null&&y!==void 0?y:0)+l));return Math.min(t.height-l*2,v)}function zb(e,t,n,r,a,l){let{placement:i,axis:o,size:s}=l;var u,f;if(i===o)return Math.max(0,n[o]-e[o]-((u=e.scroll[o])!==null&&u!==void 0?u:0)+t[o]-((f=r[o])!==null&&f!==void 0?f:0)-r[Md[o]]-a);var c;return Math.max(0,e[s]+e[o]+e.scroll[o]-t[o]-n[o]-n[s]-((c=r[o])!==null&&c!==void 0?c:0)-r[Md[o]]-a)}function ak(e,t,n,r,a,l,i,o,s,u,f,c,d,h,m,b){let y=_b(e),{size:v,crossAxis:g,crossSize:x,placement:C,crossPlacement:E}=y,S=G0(t,o,n,y,f,c,u,d,m,b),M=f,A=zb(o,u,t,a,l+f,y);if(i&&r[v]>A){let ve=_b(`${Md[C]} ${E}`),tt=G0(t,o,n,ve,f,c,u,d,m,b);zb(o,u,t,a,l+f,ve)>A&&(y=ve,S=tt,M=f)}let D="bottom";y.axis==="top"?y.placement==="top"?D="top":y.placement==="bottom"&&(D="bottom"):y.crossAxis==="top"&&(y.crossPlacement==="top"?D="bottom":y.crossPlacement==="bottom"&&(D="top"));let N=Lb(g,S[g],n[x],o,s,l,u);S[g]+=N;let j=rk(S,o,u,d,a,l,n.height,D);h&&h<j&&(j=h),n.height=Math.min(n.height,j),S=G0(t,o,n,y,M,c,u,d,m,b),N=Lb(g,S[g],n[x],o,s,l,u),S[g]+=N;let z={},B=t[g]-S[g]-a[Jn[g]],L=B+.5*t[x];const P=m/2+b;var T,k,_,U;const F=Jn[g]==="left"?((T=a.left)!==null&&T!==void 0?T:0)+((k=a.right)!==null&&k!==void 0?k:0):((_=a.top)!==null&&_!==void 0?_:0)+((U=a.bottom)!==null&&U!==void 0?U:0),G=n[x]-F-m/2-b,K=t[g]+m/2-(S[g]+a[Jn[g]]),V=t[g]+t[x]-m/2-(S[g]+a[Jn[g]]),I=Fs(L,K,V);z[g]=Fs(I,P,G),{placement:C,crossPlacement:E}=y,m?B=z[g]:E==="right"?B+=t[x]:E==="center"&&(B+=t[x]/2);let J=C==="left"||C==="top"?n[v]:0,et={x:C==="top"||C==="bottom"?B:J,y:C==="left"||C==="right"?B:J};return{position:S,maxHeight:j,arrowOffsetLeft:z.left,arrowOffsetTop:z.top,placement:C,triggerAnchorPoint:et}}function lk(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:a,padding:l,shouldFlip:i,boundaryElement:o,offset:s,crossOffset:u,maxHeight:f,arrowSize:c=0,arrowBoundaryOffset:d=0}=e,h=r instanceof HTMLElement?ik(r):document.documentElement,m=h===document.documentElement;const b=window.getComputedStyle(h).position;let y=!!b&&b!=="static",v=m?Ei(n,!1):Pb(n,h,!1);if(!m){let{marginTop:z,marginLeft:B}=window.getComputedStyle(n);v.top+=parseInt(z,10)||0,v.left+=parseInt(B,10)||0}let g=Ei(r,!0),x=nk(r);var C,E;g.width+=((C=x.left)!==null&&C!==void 0?C:0)+((E=x.right)!==null&&E!==void 0?E:0);var S,M;g.height+=((S=x.top)!==null&&S!==void 0?S:0)+((M=x.bottom)!==null&&M!==void 0?M:0);let A=tk(a),D=Ab(o),N=Ab(h),j=o.tagName==="BODY"?Ei(h,!1):Pb(h,o,!1);return h.tagName==="HTML"&&o.tagName==="BODY"&&(N.scroll.top=0,N.scroll.left=0),ak(t,v,g,A,x,l,i,D,N,j,s,u,y,f,c,d)}function _g(e,t){let{top:n,left:r,width:a,height:l}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(a=e.offsetWidth,l=e.offsetHeight),{top:n,left:r,width:a,height:l}}function Ei(e,t){let{top:n,left:r,width:a,height:l}=_g(e,t),{scrollTop:i,scrollLeft:o,clientTop:s,clientLeft:u}=document.documentElement;return{top:n+i-s,left:r+o-u,width:a,height:l}}function Pb(e,t,n){let r=window.getComputedStyle(e),a;if(r.position==="fixed")a=_g(e,n);else{a=Ei(e,n);let l=Ei(t,n),i=window.getComputedStyle(t);l.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=l.top,a.left-=l.left}return a.top-=parseInt(r.marginTop,10)||0,a.left-=parseInt(r.marginLeft,10)||0,a}function ik(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Hb(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Hb(t);)t=t.parentElement;return t||document.documentElement}function Hb(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const G3=new WeakMap;function ok(e){let{triggerRef:t,isOpen:n,onClose:r}=e;p.useEffect(()=>{if(!n||r===null)return;let a=l=>{let i=l.target;if(!t.current||i instanceof Node&&!i.contains(t.current)||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement)return;let o=r||G3.get(t.current);o&&o()};return window.addEventListener("scroll",a,!0),()=>{window.removeEventListener("scroll",a,!0)}},[n,r,t])}const sk=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),uk=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ck(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return sk.has(n.script)}let t=e.split("-")[0];return uk.has(t)}const dk=Symbol.for("react-aria.i18n.locale");function Q3(){let e=typeof window<"u"&&window[dk]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:ck(e)?"rtl":"ltr"}}let _p=Q3(),Jo=new Set;function Kb(){_p=Q3();for(let e of Jo)e(_p)}function fk(){let e=ja(),[t,n]=p.useState(_p);return p.useEffect(()=>(Jo.size===0&&window.addEventListener("languagechange",Kb),Jo.add(n),()=>{Jo.delete(n),Jo.size===0&&window.removeEventListener("languagechange",Kb)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const hk=O.createContext(null);function Rl(){let e=fk();return p.useContext(hk)||e}const pk=Symbol.for("react-aria.i18n.locale"),mk=Symbol.for("react-aria.i18n.strings");let Ho;class Rf{getStringForLocale(t,n){let r=this.getStringsForLocale(n)[t];if(!r)throw new Error(`Could not find intl message ${t} in ${n} locale`);return r}getStringsForLocale(t){let n=this.strings[t];return n||(n=gk(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[pk];if(Ho===void 0){let a=window[mk];if(!a)return null;Ho={};for(let l in a)Ho[l]=new Rf({[n]:a[l]},n)}let r=Ho==null?void 0:Ho[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function gk(e,t,n="en-US"){if(t[e])return t[e];let r=vk(e);if(t[r])return t[r];for(let a in t)if(a.startsWith(r+"-"))return t[a];return t[n]}function vk(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Ub=new Map,Bb=new Map;class bk{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let a=n["="+t];if(a)return typeof a=="function"?a():a;let l=this.locale+":"+r,i=Ub.get(l);i||(i=new Intl.PluralRules(this.locale,{type:r}),Ub.set(l,i));let o=i.select(t);return a=n[o]||n.other,typeof a=="function"?a():a}number(t){let n=Bb.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Bb.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const qb=new WeakMap;function yk(e){let t=qb.get(e);return t||(t=new Rf(e),qb.set(e,t)),t}function xk(e,t){return t&&Rf.getGlobalDictionaryForPackage(t)||yk(e)}function I3(e,t){let{locale:n}=Rl(),r=xk(e,t);return p.useMemo(()=>new bk(n,r),[n,r])}function wk(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ck(e,t,n){wk(e,t),t.set(e,n)}let Q0=new Map,zp=!1;try{zp=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Od=!1;try{Od=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const X3={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Sk{format(t){let n="";if(!zp&&this.options.signDisplay!=null?n=Mk(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Od){var r;let{unit:a,unitDisplay:l="short",locale:i}=this.resolvedOptions();if(!a)return n;let o=(r=X3[a])===null||r===void 0?void 0:r[l];n+=o[i]||o.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),a=this.numberFormatter.formatToParts(n);return[...r.map(l=>({...l,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(l=>({...l,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!zp&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Od&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=Ek(t,n),this.options=n}}function Ek(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Od){var r;let{unit:i,unitDisplay:o="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=X3[i])===null||r===void 0)&&r[o]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let a=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Q0.has(a))return Q0.get(a);let l=new Intl.NumberFormat(e,t);return Q0.set(a,l),l}function Mk(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let a=e.format(-n),l=e.format(n),i=a.replace(l,"").replace(/\u200e|\u061C/,"");return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),a.replace(l,"!!!").replace(i,"+").replace("!!!",l)}else return e.format(n)}}function Ok(e={}){let{locale:t}=Rl();return p.useMemo(()=>new Sk(t,e),[t,e])}let I0=new Map;function Rk(e){let{locale:t}=Rl(),n=t+(e?Object.entries(e).sort((a,l)=>a[0]<l[0]?-1:1).join():"");if(I0.has(n))return I0.get(n);let r=new Intl.Collator(t,e);return I0.set(n,r),r}let Tt=typeof document<"u"?window.visualViewport:null;function Y3(e){let{direction:t}=Rl(),{arrowSize:n,targetRef:r,overlayRef:a,arrowRef:l,scrollRef:i=a,placement:o="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:f=typeof document<"u"?document.body:null,offset:c=0,crossOffset:d=0,shouldUpdatePosition:h=!0,isOpen:m=!0,onClose:b,maxHeight:y,arrowBoundaryOffset:v=0}=e,[g,x]=p.useState(null),C=[h,o,a.current,r.current,l==null?void 0:l.current,i.current,s,u,f,c,d,m,t,y,v,n],E=p.useRef(Tt==null?void 0:Tt.scale);p.useEffect(()=>{m&&(E.current=Tt==null?void 0:Tt.scale)},[m]);let S=p.useCallback(()=>{if(h===!1||!m||!a.current||!r.current||!f||(Tt==null?void 0:Tt.scale)!==E.current)return;let z=null;if(i.current&&i.current.contains(document.activeElement)){var B;let F=(B=document.activeElement)===null||B===void 0?void 0:B.getBoundingClientRect(),G=i.current.getBoundingClientRect();var L;if(z={type:"top",offset:((L=F==null?void 0:F.top)!==null&&L!==void 0?L:0)-G.top},z.offset>G.height/2){z.type="bottom";var P;z.offset=((P=F==null?void 0:F.bottom)!==null&&P!==void 0?P:0)-G.bottom}}let T=a.current;if(!y&&a.current){var k;T.style.top="0px",T.style.bottom="";var _;T.style.maxHeight=((_=(k=window.visualViewport)===null||k===void 0?void 0:k.height)!==null&&_!==void 0?_:window.innerHeight)+"px"}let U=lk({placement:kk(o,t),overlayNode:a.current,targetNode:r.current,scrollNode:i.current||a.current,padding:s,shouldFlip:u,boundaryElement:f,offset:c,crossOffset:d,maxHeight:y,arrowSize:n??(l!=null&&l.current?_g(l.current,!0).width:0),arrowBoundaryOffset:v});if(U.position){if(T.style.top="",T.style.bottom="",T.style.left="",T.style.right="",Object.keys(U.position).forEach(F=>T.style[F]=U.position[F]+"px"),T.style.maxHeight=U.maxHeight!=null?U.maxHeight+"px":"",z&&document.activeElement&&i.current){let F=document.activeElement.getBoundingClientRect(),G=i.current.getBoundingClientRect(),K=F[z.type]-G[z.type];i.current.scrollTop+=K-z.offset}x(U)}},C);we(S,C),Tk(S),Cd({ref:a,onResize:S}),Cd({ref:r,onResize:S});let M=p.useRef(!1);we(()=>{let z,B=()=>{M.current=!0,clearTimeout(z),z=setTimeout(()=>{M.current=!1},500),S()},L=()=>{M.current&&B()};return Tt==null||Tt.addEventListener("resize",B),Tt==null||Tt.addEventListener("scroll",L),()=>{Tt==null||Tt.removeEventListener("resize",B),Tt==null||Tt.removeEventListener("scroll",L)}},[S]);let A=p.useCallback(()=>{M.current||b==null||b()},[b,M]);ok({triggerRef:r,isOpen:m,onClose:b&&A});var D,N,j;return{overlayProps:{style:{position:g?"absolute":"fixed",top:g?void 0:0,left:g?void 0:0,zIndex:1e5,...g==null?void 0:g.position,maxHeight:(D=g==null?void 0:g.maxHeight)!==null&&D!==void 0?D:"100vh"}},placement:(N=g==null?void 0:g.placement)!==null&&N!==void 0?N:null,triggerAnchorPoint:(j=g==null?void 0:g.triggerAnchorPoint)!==null&&j!==void 0?j:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:g==null?void 0:g.arrowOffsetLeft,top:g==null?void 0:g.arrowOffsetTop}},updatePosition:S}}function Tk(e){we(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function kk(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function zg(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Z3(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function $3(e){let t=p.useRef({isFocused:!1,observer:null});we(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=xt(r=>{e==null||e(r)});return p.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=r.target,l=i=>{if(t.current.isFocused=!1,a.disabled){let o=zg(i);n(o)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",l,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let o=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Rd=!1;function jk(e){for(;e&&!K3(e);)e=e.parentElement;let t=xn(e),n=t.document.activeElement;if(!n||n===e)return;Rd=!0;let r=!1,a=f=>{(f.target===n||r)&&f.stopImmediatePropagation()},l=f=>{(f.target===n||r)&&(f.stopImmediatePropagation(),!e&&!r&&(r=!0,Kn(n),s()))},i=f=>{(f.target===e||r)&&f.stopImmediatePropagation()},o=f=>{(f.target===e||r)&&(f.stopImmediatePropagation(),r||(r=!0,Kn(n),s()))};t.addEventListener("blur",a,!0),t.addEventListener("focusout",l,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",i,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",a,!0),t.removeEventListener("focusout",l,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",i,!0),Rd=!1,r=!1},u=requestAnimationFrame(s);return s}let hi="default",Pp="",Uc=new WeakMap;function Dk(e){if(Sf()){if(hi==="default"){const t=he(e);Pp=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}hi="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Uc.set(e,e.style[t]),e.style[t]="none"}}function Fb(e){if(Sf()){if(hi!=="disabled")return;hi="restoring",setTimeout(()=>{A3(()=>{if(hi==="restoring"){const t=he(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Pp||""),Pp="",hi="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Uc.has(e)){let t=Uc.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Uc.delete(e)}}const Vs=O.createContext({register:()=>{}});Vs.displayName="PressResponderContext";function Nk(e,t){return t.get?t.get.call(e):t.value}function W3(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Ak(e,t){var n=W3(e,t,"get");return Nk(e,n)}function Lk(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Vb(e,t,n){var r=W3(e,t,"set");return Lk(e,r,n),n}function _k(e){let t=p.useContext(Vs);if(t){let{register:n,...r}=t;e=ue(r,e),n()}return Ng(t,e.ref),e}var ac=new WeakMap;class lc{continuePropagation(){Vb(this,ac,!1)}get shouldStopPropagation(){return Ak(this,ac)}constructor(t,n,r,a){Ck(this,ac,{writable:!0,value:void 0}),Vb(this,ac,!0);var l;let i=(l=a==null?void 0:a.target)!==null&&l!==void 0?l:r.currentTarget;const o=i==null?void 0:i.getBoundingClientRect();let s,u=0,f,c=null;r.clientX!=null&&r.clientY!=null&&(f=r.clientX,c=r.clientY),o&&(f!=null&&c!=null?(s=f-o.left,u=c-o.top):(s=o.width/2,u=o.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=u}}const Gb=Symbol("linkClicked"),Qb="react-aria-pressable-style",Ib="data-react-aria-pressable";function Tf(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:a,onPressUp:l,onClick:i,isDisabled:o,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:c,ref:d,...h}=_k(e),[m,b]=p.useState(!1),y=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:g}=Mf(),x=xt((j,z)=>{let B=y.current;if(o||B.didFirePressStart)return!1;let L=!0;if(B.isTriggeringEvent=!0,r){let P=new lc("pressstart",z,j);r(P),L=P.shouldStopPropagation}return n&&n(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,b(!0),L}),C=xt((j,z,B=!0)=>{let L=y.current;if(!L.didFirePressStart)return!1;L.didFirePressStart=!1,L.isTriggeringEvent=!0;let P=!0;if(a){let T=new lc("pressend",z,j);a(T),P=T.shouldStopPropagation}if(n&&n(!1),b(!1),t&&B&&!o){let T=new lc("press",z,j);t(T),P&&(P=T.shouldStopPropagation)}return L.isTriggeringEvent=!1,P}),E=xt((j,z)=>{let B=y.current;if(o)return!1;if(l){B.isTriggeringEvent=!0;let L=new lc("pressup",z,j);return l(L),B.isTriggeringEvent=!1,L.shouldStopPropagation}return!0}),S=xt(j=>{let z=y.current;if(z.isPressed&&z.target){z.didFirePressStart&&z.pointerType!=null&&C(Qa(z.target,j),z.pointerType,!1),z.isPressed=!1,z.isOverTarget=!1,z.activePointerId=null,z.pointerType=null,g(),c||Fb(z.target);for(let B of z.disposables)B();z.disposables=[]}}),M=xt(j=>{f&&S(j)}),A=xt(j=>{o||i==null||i(j)}),D=xt((j,z)=>{if(!o&&i){let B=new MouseEvent("click",j);Z3(B,z),i(zg(B))}}),N=p.useMemo(()=>{let j=y.current,z={onKeyDown(L){if(X0(L.nativeEvent,L.currentTarget)&&dn(L.currentTarget,Ue(L.nativeEvent))){var P;Xb(Ue(L.nativeEvent),L.key)&&L.preventDefault();let T=!0;if(!j.isPressed&&!L.repeat){j.target=L.currentTarget,j.isPressed=!0,j.pointerType="keyboard",T=x(L,"keyboard");let k=L.currentTarget,_=U=>{X0(U,k)&&!U.repeat&&dn(k,Ue(U))&&j.target&&E(Qa(j.target,U),"keyboard")};v(he(L.currentTarget),"keyup",ro(_,B),!0)}T&&L.stopPropagation(),L.metaKey&&ml()&&((P=j.metaKeyEvents)===null||P===void 0||P.set(L.key,L.nativeEvent))}else L.key==="Meta"&&(j.metaKeyEvents=new Map)},onClick(L){if(!(L&&!dn(L.currentTarget,Ue(L.nativeEvent)))&&L&&L.button===0&&!j.isTriggeringEvent&&!gl.isOpening){let P=!0;if(o&&L.preventDefault(),!j.ignoreEmulatedMouseEvents&&!j.isPressed&&(j.pointerType==="virtual"||P3(L.nativeEvent))){let T=x(L,"virtual"),k=E(L,"virtual"),_=C(L,"virtual");A(L),P=T&&k&&_}else if(j.isPressed&&j.pointerType!=="keyboard"){let T=j.pointerType||L.nativeEvent.pointerType||"virtual",k=E(Qa(L.currentTarget,L),T),_=C(Qa(L.currentTarget,L),T,!0);P=k&&_,j.isOverTarget=!1,A(L),S(L)}j.ignoreEmulatedMouseEvents=!1,P&&L.stopPropagation()}}},B=L=>{var P;if(j.isPressed&&j.target&&X0(L,j.target)){var T;Xb(Ue(L),L.key)&&L.preventDefault();let _=Ue(L),U=dn(j.target,Ue(L));C(Qa(j.target,L),"keyboard",U),U&&D(L,j.target),g(),L.key!=="Enter"&&Pg(j.target)&&dn(j.target,_)&&!L[Gb]&&(L[Gb]=!0,gl(j.target,L,!1)),j.isPressed=!1,(T=j.metaKeyEvents)===null||T===void 0||T.delete(L.key)}else if(L.key==="Meta"&&!((P=j.metaKeyEvents)===null||P===void 0)&&P.size){var k;let _=j.metaKeyEvents;j.metaKeyEvents=void 0;for(let U of _.values())(k=j.target)===null||k===void 0||k.dispatchEvent(new KeyboardEvent("keyup",U))}};if(typeof PointerEvent<"u"){z.onPointerDown=T=>{if(T.button!==0||!dn(T.currentTarget,Ue(T.nativeEvent)))return;if(FT(T.nativeEvent)){j.pointerType="virtual";return}j.pointerType=T.pointerType;let k=!0;if(!j.isPressed){j.isPressed=!0,j.isOverTarget=!0,j.activePointerId=T.pointerId,j.target=T.currentTarget,c||Dk(j.target),k=x(T,j.pointerType);let _=Ue(T.nativeEvent);"releasePointerCapture"in _&&_.releasePointerCapture(T.pointerId),v(he(T.currentTarget),"pointerup",L,!1),v(he(T.currentTarget),"pointercancel",P,!1)}k&&T.stopPropagation()},z.onMouseDown=T=>{if(dn(T.currentTarget,Ue(T.nativeEvent))&&T.button===0){if(u){let k=jk(T.target);k&&j.disposables.push(k)}T.stopPropagation()}},z.onPointerUp=T=>{!dn(T.currentTarget,Ue(T.nativeEvent))||j.pointerType==="virtual"||T.button===0&&!j.isPressed&&E(T,j.pointerType||T.pointerType)},z.onPointerEnter=T=>{T.pointerId===j.activePointerId&&j.target&&!j.isOverTarget&&j.pointerType!=null&&(j.isOverTarget=!0,x(Qa(j.target,T),j.pointerType))},z.onPointerLeave=T=>{T.pointerId===j.activePointerId&&j.target&&j.isOverTarget&&j.pointerType!=null&&(j.isOverTarget=!1,C(Qa(j.target,T),j.pointerType,!1),M(T))};let L=T=>{if(T.pointerId===j.activePointerId&&j.isPressed&&T.button===0&&j.target){if(dn(j.target,Ue(T))&&j.pointerType!=null){let k=!1,_=setTimeout(()=>{j.isPressed&&j.target instanceof HTMLElement&&(k?S(T):(Kn(j.target),j.target.click()))},80);v(T.currentTarget,"click",()=>k=!0,!0),j.disposables.push(()=>clearTimeout(_))}else S(T);j.isOverTarget=!1}},P=T=>{S(T)};z.onDragStart=T=>{dn(T.currentTarget,Ue(T.nativeEvent))&&S(T)}}return z},[v,o,u,g,c,S,M,C,x,E,A,D]);return p.useEffect(()=>{if(!d)return;const j=he(d.current);if(!j||!j.head||j.getElementById(Qb))return;const z=j.createElement("style");z.id=Qb,z.textContent=`
|
|
68
|
+
Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let h=Ra(),m;if(t){let x=typeof t=="string"?Zi(t):t;Le(c==="/"||((l=x.pathname)==null?void 0:l.startsWith(c)),`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 "${c}" but pathname "${x.pathname}" was given in the \`location\` prop.`),m=x}else m=h;let v=m.pathname||"/",y=v;if(c!=="/"){let x=c.replace(/^\//,"").split("/");y="/"+v.replace(/^\//,"").split("/").slice(x.length).join("/")}let b=a3(e,{pathname:y});En(d||b!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),En(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.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 g=HO(b&&b.map(x=>Object.assign({},x,{params:Object.assign({},u,x.params),pathname:xr([c,i.encodeLocation?i.encodeLocation(x.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:xr([c,i.encodeLocation?i.encodeLocation(x.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),o,n,r,a);return t&&g?p.createElement(pu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},g):g}function LO(){let e=qO(),t=xO(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:l},"ErrorBoundary")," or"," ",p.createElement("code",{style:l},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:a},n):null,i)}var _O=p.createElement(LO,null),y3=class extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=TO(e.digest);n&&(e=n)}let t=e!==void 0?p.createElement(er.Provider,{value:this.props.routeContext},p.createElement(Mg.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?p.createElement(zO,{error:e},t):t}};y3.contextType=CO;var B0=new WeakMap;function zO({children:e,error:t}){let{basename:n}=p.useContext(On);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=kO(t.digest);if(r){let a=B0.get(t);if(a)throw a;let l=d3(r.location,n);if(c3&&!B0.get(t))if(l.isExternal||r.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:r.replace}));throw B0.set(t,i),i}return p.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function PO({routeContext:e,match:t,children:n}){let r=p.useContext(Wi);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(er.Provider,{value:e},n)}function HO(e,t=[],n=null,r=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,i=n==null?void 0:n.errors;if(i!=null){let f=l.findIndex(c=>c.route.id&&(i==null?void 0:i[c.route.id])!==void 0);Le(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),l=l.slice(0,Math.min(l.length,f+1))}let o=!1,s=-1;if(n)for(let f=0;f<l.length;f++){let c=l[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(s=f),c.route.id){let{loaderData:d,errors:h}=n,m=c.route.loader&&!d.hasOwnProperty(c.route.id)&&(!h||h[c.route.id]===void 0);if(c.route.lazy||m){o=!0,s>=0?l=l.slice(0,s+1):l=[l[0]];break}}}let u=n&&r?(f,c)=>{var d,h;r(f,{location:n.location,params:((h=(d=n.matches)==null?void 0:d[0])==null?void 0:h.params)??{},unstable_pattern:wO(n.matches),errorInfo:c})}:void 0;return l.reduceRight((f,c,d)=>{let h,m=!1,v=null,y=null;n&&(h=i&&c.route.id?i[c.route.id]:void 0,v=c.route.errorElement||_O,o&&(s<0&&d===0?(x3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,y=null):s===d&&(m=!0,y=c.route.hydrateFallbackElement||null)));let b=t.concat(l.slice(0,d+1)),g=()=>{let x;return h?x=v:m?x=y:c.route.Component?x=p.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=f,p.createElement(PO,{match:c,routeContext:{outlet:f,matches:b,isDataRoute:n!=null},children:x})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?p.createElement(y3,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:g(),routeContext:{outlet:null,matches:b,isDataRoute:!0},onError:u}):g()},null)}function Og(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function KO(e){let t=p.useContext(Wi);return Le(t,Og(e)),t}function UO(e){let t=p.useContext(yf);return Le(t,Og(e)),t}function BO(e){let t=p.useContext(er);return Le(t,Og(e)),t}function Rg(e){let t=BO(e),n=t.matches[t.matches.length-1];return Le(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function FO(){return Rg("useRouteId")}function qO(){var e;let t=p.useContext(Mg),n=UO("useRouteError"),r=Rg("useRouteError");return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function VO(){let{router:e}=KO("useNavigate"),t=Rg("useNavigate"),n=p.useRef(!1);return g3(()=>{n.current=!0}),p.useCallback(async(r,a={})=>{En(n.current,m3),n.current&&(typeof r=="number"?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...a}))},[e,t])}var Eb={};function x3(e,t,n){!t&&!Eb[e]&&(Eb[e]=!0,En(!1,n))}p.memo(GO);function GO({routes:e,future:t,state:n,onError:r}){return b3(e,void 0,n,r,t)}function jp(e){Le(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function QO({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:l=!1,unstable_useTransitions:i}){Le(!mu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),s=p.useMemo(()=>({basename:o,navigator:a,static:l,unstable_useTransitions:i,future:{}}),[o,a,l,i]);typeof n=="string"&&(n=Zi(n));let{pathname:u="/",search:f="",hash:c="",state:d=null,key:h="default"}=n,m=p.useMemo(()=>{let v=Or(u,o);return v==null?null:{location:{pathname:v,search:f,hash:c,state:d,key:h},navigationType:r}},[o,u,f,c,d,h,r]);return En(m!=null,`<Router basename="${o}"> is not able to match the URL "${u}${f}${c}" because it does not start with the basename, so the <Router> won't render anything.`),m==null?null:p.createElement(On.Provider,{value:s},p.createElement(pu.Provider,{children:t,value:m}))}function IO({children:e,location:t}){return AO(Np(e),t)}function Np(e,t=[]){let n=[];return p.Children.forEach(e,(r,a)=>{if(!p.isValidElement(r))return;let l=[...t,a];if(r.type===p.Fragment){n.push.apply(n,Np(r.props.children,l));return}Le(r.type===jp,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Le(!r.props.index||!r.props.children,"An index route cannot have child routes.");let i={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Np(r.props.children,l)),n.push(i)}),n}var Pc="get",Hc="application/x-www-form-urlencoded";function xf(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function XO(e){return xf(e)&&e.tagName.toLowerCase()==="button"}function YO(e){return xf(e)&&e.tagName.toLowerCase()==="form"}function ZO(e){return xf(e)&&e.tagName.toLowerCase()==="input"}function WO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $O(e,t){return e.button===0&&(!t||t==="_self")&&!WO(e)}function Ap(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function JO(e,t){let n=Ap(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(l=>{n.append(a,l)})}),n}var ec=null;function eR(){if(ec===null)try{new FormData(document.createElement("form"),0),ec=!1}catch{ec=!0}return ec}var tR=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function F0(e){return e!=null&&!tR.has(e)?(En(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Hc}"`),null):e}function nR(e,t){let n,r,a,l,i;if(YO(e)){let o=e.getAttribute("action");r=o?Or(o,t):null,n=e.getAttribute("method")||Pc,a=F0(e.getAttribute("enctype"))||Hc,l=new FormData(e)}else if(XO(e)||ZO(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||o.getAttribute("action");if(r=s?Or(s,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||Pc,a=F0(e.getAttribute("formenctype"))||F0(o.getAttribute("enctype"))||Hc,l=new FormData(o,e),!eR()){let{name:u,type:f,value:c}=e;if(f==="image"){let d=u?`${u}.`:"";l.append(`${d}x`,"0"),l.append(`${d}y`,"0")}else u&&l.append(u,c)}}else{if(xf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Pc,r=null,a=Hc,i=e}return l&&a==="text/plain"&&(i=l,l=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:l,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function kg(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function rR(e,t,n,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:a.pathname==="/"?a.pathname=`_root.${r}`:t&&Or(a.pathname,t)==="/"?a.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${r}`,a}async function aR(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function lR(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function iR(e,t,n){let r=await Promise.all(e.map(async a=>{let l=t.routes[a.route.id];if(l){let i=await aR(l,n);return i.links?i.links():[]}return[]}));return cR(r.flat(1).filter(lR).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Mb(e,t,n,r,a,l){let i=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,o=(s,u)=>{var f;return n[u].pathname!==s.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==s.params["*"]};return l==="assets"?t.filter((s,u)=>i(s,u)||o(s,u)):l==="data"?t.filter((s,u)=>{var f;let c=r.routes[s.route.id];if(!c||!c.hasLoader)return!1;if(i(s,u)||o(s,u))return!0;if(s.route.shouldRevalidate){let d=s.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function oR(e,t,{includeHydrateFallback:n}={}){return sR(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let l=[a.module];return a.clientActionModule&&(l=l.concat(a.clientActionModule)),a.clientLoaderModule&&(l=l.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(l=l.concat(a.hydrateFallbackModule)),a.imports&&(l=l.concat(a.imports)),l}).flat(1))}function sR(e){return[...new Set(e)]}function uR(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function cR(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let l=JSON.stringify(uR(a));return n.has(l)||(n.add(l),r.push({key:l,link:a})),r},[])}function w3(){let e=p.useContext(Wi);return kg(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function dR(){let e=p.useContext(yf);return kg(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Tg=p.createContext(void 0);Tg.displayName="FrameworkContext";function S3(){let e=p.useContext(Tg);return kg(e,"You must render this element inside a <HydratedRouter> element"),e}function fR(e,t){let n=p.useContext(Tg),[r,a]=p.useState(!1),[l,i]=p.useState(!1),{onFocus:o,onBlur:s,onMouseEnter:u,onMouseLeave:f,onTouchStart:c}=t,d=p.useRef(null);p.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let v=b=>{b.forEach(g=>{i(g.isIntersecting)})},y=new IntersectionObserver(v,{threshold:.5});return d.current&&y.observe(d.current),()=>{y.disconnect()}}},[e]),p.useEffect(()=>{if(r){let v=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(v)}}},[r]);let h=()=>{a(!0)},m=()=>{a(!1),i(!1)};return n?e!=="intent"?[l,d,{}]:[l,d,{onFocus:Lo(o,h),onBlur:Lo(s,m),onMouseEnter:Lo(u,h),onMouseLeave:Lo(f,m),onTouchStart:Lo(c,h)}]:[!1,d,{}]}function Lo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function hR({page:e,...t}){let{router:n}=w3(),r=p.useMemo(()=>a3(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?p.createElement(mR,{page:e,matches:r,...t}):null}function pR(e){let{manifest:t,routeModules:n}=S3(),[r,a]=p.useState([]);return p.useEffect(()=>{let l=!1;return iR(e,t,n).then(i=>{l||a(i)}),()=>{l=!0}},[e,t,n]),r}function mR({page:e,matches:t,...n}){let r=Ra(),{future:a,manifest:l,routeModules:i}=S3(),{basename:o}=w3(),{loaderData:s,matches:u}=dR(),f=p.useMemo(()=>Mb(e,t,u,l,r,"data"),[e,t,u,l,r]),c=p.useMemo(()=>Mb(e,t,u,l,r,"assets"),[e,t,u,l,r]),d=p.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,y=!1;if(t.forEach(g=>{var x;let S=l.routes[g.route.id];!S||!S.hasLoader||(!f.some(C=>C.route.id===g.route.id)&&g.route.id in s&&(x=i[g.route.id])!=null&&x.shouldRevalidate||S.hasClientLoader?y=!0:v.add(g.route.id))}),v.size===0)return[];let b=rR(e,o,a.unstable_trailingSlashAwareDataRequests,"data");return y&&v.size>0&&b.searchParams.set("_routes",t.filter(g=>v.has(g.route.id)).map(g=>g.route.id).join(",")),[b.pathname+b.search]},[o,a.unstable_trailingSlashAwareDataRequests,s,r,l,f,t,e,i]),h=p.useMemo(()=>oR(c,l),[c,l]),m=pR(c);return p.createElement(p.Fragment,null,d.map(v=>p.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),h.map(v=>p.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),m.map(({key:v,link:y})=>p.createElement("link",{key:v,nonce:n.nonce,...y})))}function gR(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var vR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{vR&&(window.__reactRouterVersion="7.12.0")}catch{}function bR({basename:e,children:t,unstable_useTransitions:n,window:r}){let a=p.useRef();a.current==null&&(a.current=ZM({window:r,v5Compat:!0}));let l=a.current,[i,o]=p.useState({action:l.action,location:l.location}),s=p.useCallback(u=>{n===!1?o(u):p.startTransition(()=>o(u))},[n]);return p.useLayoutEffect(()=>l.listen(s),[l,s]),p.createElement(QO,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:l,unstable_useTransitions:n})}var C3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wf=p.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:l,state:i,target:o,to:s,preventScrollReset:u,viewTransition:f,unstable_defaultShouldRevalidate:c,...d},h){let{basename:m,unstable_useTransitions:v}=p.useContext(On),y=typeof s=="string"&&C3.test(s),b=d3(s,m);s=b.to;let g=DO(s,{relative:r}),[x,S,C]=fR(n,d),E=wR(s,{replace:l,state:i,target:o,preventScrollReset:u,relative:r,viewTransition:f,unstable_defaultShouldRevalidate:c,unstable_useTransitions:v});function M(j){e&&e(j),j.defaultPrevented||E(j)}let N=p.createElement("a",{...d,...C,href:b.absoluteURL||g,onClick:b.isExternal||a?e:M,ref:gR(h,S),target:o,"data-discover":!y&&t==="render"?"true":void 0});return x&&!y?p.createElement(p.Fragment,null,N,p.createElement(hR,{page:g})):N});wf.displayName="Link";var E3=p.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:l,viewTransition:i,children:o,...s},u){let f=gu(l,{relative:s.relative}),c=Ra(),d=p.useContext(yf),{navigator:h,basename:m}=p.useContext(On),v=d!=null&&RR(f)&&i===!0,y=h.encodeLocation?h.encodeLocation(f).pathname:f.pathname,b=c.pathname,g=d&&d.navigation&&d.navigation.location?d.navigation.location.pathname:null;t||(b=b.toLowerCase(),g=g?g.toLowerCase():null,y=y.toLowerCase()),g&&m&&(g=Or(g,m)||g);const x=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let S=b===y||!r&&b.startsWith(y)&&b.charAt(x)==="/",C=g!=null&&(g===y||!r&&g.startsWith(y)&&g.charAt(y.length)==="/"),E={isActive:S,isPending:C,isTransitioning:v},M=S?e:void 0,N;typeof n=="function"?N=n(E):N=[n,S?"active":null,C?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let j=typeof a=="function"?a(E):a;return p.createElement(wf,{...s,"aria-current":M,className:N,ref:u,style:j,to:l,viewTransition:i},typeof o=="function"?o(E):o)});E3.displayName="NavLink";var yR=p.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:l,method:i=Pc,action:o,onSubmit:s,relative:u,preventScrollReset:f,viewTransition:c,unstable_defaultShouldRevalidate:d,...h},m)=>{let{unstable_useTransitions:v}=p.useContext(On),y=MR(),b=OR(o,{relative:u}),g=i.toLowerCase()==="get"?"get":"post",x=typeof o=="string"&&C3.test(o),S=C=>{if(s&&s(C),C.defaultPrevented)return;C.preventDefault();let E=C.nativeEvent.submitter,M=(E==null?void 0:E.getAttribute("formmethod"))||i,N=()=>y(E||C.currentTarget,{fetcherKey:t,method:M,navigate:n,replace:a,state:l,relative:u,preventScrollReset:f,viewTransition:c,unstable_defaultShouldRevalidate:d});v&&n!==!1?p.startTransition(()=>N()):N()};return p.createElement("form",{ref:m,method:g,action:b,onSubmit:r?s:S,...h,"data-discover":!x&&e==="render"?"true":void 0})});yR.displayName="Form";function xR(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function M3(e){let t=p.useContext(Wi);return Le(t,xR(e)),t}function wR(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:l,viewTransition:i,unstable_defaultShouldRevalidate:o,unstable_useTransitions:s}={}){let u=v3(),f=Ra(),c=gu(e,{relative:l});return p.useCallback(d=>{if($O(d,t)){d.preventDefault();let h=n!==void 0?n:Hs(f)===Hs(c),m=()=>u(e,{replace:h,state:r,preventScrollReset:a,relative:l,viewTransition:i,unstable_defaultShouldRevalidate:o});s?p.startTransition(()=>m()):m()}},[f,u,c,n,r,t,e,a,l,i,o,s])}function SR(e){En(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=p.useRef(Ap(e)),n=p.useRef(!1),r=Ra(),a=p.useMemo(()=>JO(r.search,n.current?null:t.current),[r.search]),l=v3(),i=p.useCallback((o,s)=>{const u=Ap(typeof o=="function"?o(new URLSearchParams(a)):o);n.current=!0,l("?"+u,s)},[l,a]);return[a,i]}var CR=0,ER=()=>`__${String(++CR)}__`;function MR(){let{router:e}=M3("useSubmit"),{basename:t}=p.useContext(On),n=FO(),r=e.fetch,a=e.navigate;return p.useCallback(async(l,i={})=>{let{action:o,method:s,encType:u,formData:f,body:c}=nR(l,t);if(i.navigate===!1){let d=i.fetcherKey||ER();await r(d,n,i.action||o,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:f,body:c,formMethod:i.method||s,formEncType:i.encType||u,flushSync:i.flushSync})}else await a(i.action||o,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:f,body:c,formMethod:i.method||s,formEncType:i.encType||u,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[r,a,t,n])}function OR(e,{relative:t}={}){let{basename:n}=p.useContext(On),r=p.useContext(er);Le(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),l={...gu(e||".",{relative:t})},i=Ra();if(e==null){l.search=i.search;let o=new URLSearchParams(l.search),s=o.getAll("index");if(s.some(u=>u==="")){o.delete("index"),s.filter(f=>f).forEach(f=>o.append("index",f));let u=o.toString();l.search=u?`?${u}`:""}}return(!e||e===".")&&a.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:xr([n,l.pathname])),Hs(l)}function RR(e,{relative:t}={}){let n=p.useContext(h3);Le(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=M3("useViewTransitionState"),a=gu(e,{relative:t});if(!n.isTransitioning)return!1;let l=Or(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Or(n.nextLocation.pathname,r)||n.nextLocation.pathname;return wd(a.pathname,i)!=null||wd(a.pathname,l)!=null}var Ks=function(e){var t=e.className;return w.jsx("div",{className:"animate-pulse bg-slate-100 dark:bg-slate-800 ".concat(t)})};function Se(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,l;for(l=0;l<r.length;l++)a=r[l],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var kR=["color"],TR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,kR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.5 2C7.77614 2 8 2.22386 8 2.5L8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.75979 12.9473 7.63261 13 7.5 13C7.36739 13 7.24021 12.9473 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 2.5C7 2.22386 7.22386 2 7.5 2Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),DR=["color"],jR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,DR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.14645 2.14645C7.34171 1.95118 7.65829 1.95118 7.85355 2.14645L11.8536 6.14645C12.0488 6.34171 12.0488 6.65829 11.8536 6.85355C11.6583 7.04882 11.3417 7.04882 11.1464 6.85355L8 3.70711L8 12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 3.70711L3.85355 6.85355C3.65829 7.04882 3.34171 7.04882 3.14645 6.85355C2.95118 6.65829 2.95118 6.34171 3.14645 6.14645L7.14645 2.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),NR=["color"],AR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,NR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),LR=["color"],O3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,LR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),_R=["color"],zR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,_R);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.50009 0.877014C3.84241 0.877014 0.877258 3.84216 0.877258 7.49984C0.877258 11.1575 3.8424 14.1227 7.50009 14.1227C11.1578 14.1227 14.1229 11.1575 14.1229 7.49984C14.1229 3.84216 11.1577 0.877014 7.50009 0.877014ZM1.82726 7.49984C1.82726 4.36683 4.36708 1.82701 7.50009 1.82701C10.6331 1.82701 13.1729 4.36683 13.1729 7.49984C13.1729 10.6328 10.6331 13.1727 7.50009 13.1727C4.36708 13.1727 1.82726 10.6328 1.82726 7.49984ZM8 4.50001C8 4.22387 7.77614 4.00001 7.5 4.00001C7.22386 4.00001 7 4.22387 7 4.50001V7.50001C7 7.63262 7.05268 7.7598 7.14645 7.85357L9.14645 9.85357C9.34171 10.0488 9.65829 10.0488 9.85355 9.85357C10.0488 9.65831 10.0488 9.34172 9.85355 9.14646L8 7.29291V4.50001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),PR=["color"],_i=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,PR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M13.15 7.49998C13.15 4.66458 10.9402 1.84998 7.50002 1.84998C4.72167 1.84998 3.34849 3.9064 2.76335 5H4.5C4.77614 5 5 5.22386 5 5.5C5 5.77614 4.77614 6 4.5 6H1.5C1.22386 6 1 5.77614 1 5.5V2.5C1 2.22386 1.22386 2 1.5 2C1.77614 2 2 2.22386 2 2.5V4.31318C2.70453 3.07126 4.33406 0.849976 7.50002 0.849976C11.5628 0.849976 14.15 4.18537 14.15 7.49998C14.15 10.8146 11.5628 14.15 7.50002 14.15C5.55618 14.15 3.93778 13.3808 2.78548 12.2084C2.16852 11.5806 1.68668 10.839 1.35816 10.0407C1.25306 9.78536 1.37488 9.49315 1.63024 9.38806C1.8856 9.28296 2.17781 9.40478 2.2829 9.66014C2.56374 10.3425 2.97495 10.9745 3.4987 11.5074C4.47052 12.4963 5.83496 13.15 7.50002 13.15C10.9402 13.15 13.15 10.3354 13.15 7.49998ZM7.5 4.00001C7.77614 4.00001 8 4.22387 8 4.50001V7.29291L9.85355 9.14646C10.0488 9.34172 10.0488 9.65831 9.85355 9.85357C9.65829 10.0488 9.34171 10.0488 9.14645 9.85357L7.14645 7.85357C7.05268 7.7598 7 7.63262 7 7.50001V4.50001C7 4.22387 7.22386 4.00001 7.5 4.00001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),HR=["color"],Dg=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,HR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),KR=["color"],R3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,KR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),UR=["color"],BR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,UR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M2.8 1L2.74967 0.99997C2.52122 0.999752 2.32429 0.999564 2.14983 1.04145C1.60136 1.17312 1.17312 1.60136 1.04145 2.14983C0.999564 2.32429 0.999752 2.52122 0.99997 2.74967L1 2.8V5.2L0.99997 5.25033C0.999752 5.47878 0.999564 5.67572 1.04145 5.85017C1.17312 6.39864 1.60136 6.82688 2.14983 6.95856C2.32429 7.00044 2.52122 7.00025 2.74967 7.00003L2.8 7H5.2L5.25033 7.00003C5.47878 7.00025 5.67572 7.00044 5.85017 6.95856C6.39864 6.82688 6.82688 6.39864 6.95856 5.85017C7.00044 5.67572 7.00025 5.47878 7.00003 5.25033L7 5.2V2.8L7.00003 2.74967C7.00025 2.52122 7.00044 2.32429 6.95856 2.14983C6.82688 1.60136 6.39864 1.17312 5.85017 1.04145C5.67572 0.999564 5.47878 0.999752 5.25033 0.99997L5.2 1H2.8ZM2.38328 2.01382C2.42632 2.00348 2.49222 2 2.8 2H5.2C5.50779 2 5.57369 2.00348 5.61672 2.01382C5.79955 2.05771 5.94229 2.20045 5.98619 2.38328C5.99652 2.42632 6 2.49222 6 2.8V5.2C6 5.50779 5.99652 5.57369 5.98619 5.61672C5.94229 5.79955 5.79955 5.94229 5.61672 5.98619C5.57369 5.99652 5.50779 6 5.2 6H2.8C2.49222 6 2.42632 5.99652 2.38328 5.98619C2.20045 5.94229 2.05771 5.79955 2.01382 5.61672C2.00348 5.57369 2 5.50779 2 5.2V2.8C2 2.49222 2.00348 2.42632 2.01382 2.38328C2.05771 2.20045 2.20045 2.05771 2.38328 2.01382ZM9.8 1L9.74967 0.99997C9.52122 0.999752 9.32429 0.999564 9.14983 1.04145C8.60136 1.17312 8.17312 1.60136 8.04145 2.14983C7.99956 2.32429 7.99975 2.52122 7.99997 2.74967L8 2.8V5.2L7.99997 5.25033C7.99975 5.47878 7.99956 5.67572 8.04145 5.85017C8.17312 6.39864 8.60136 6.82688 9.14983 6.95856C9.32429 7.00044 9.52122 7.00025 9.74967 7.00003L9.8 7H12.2L12.2503 7.00003C12.4788 7.00025 12.6757 7.00044 12.8502 6.95856C13.3986 6.82688 13.8269 6.39864 13.9586 5.85017C14.0004 5.67572 14.0003 5.47878 14 5.25033L14 5.2V2.8L14 2.74967C14.0003 2.52122 14.0004 2.32429 13.9586 2.14983C13.8269 1.60136 13.3986 1.17312 12.8502 1.04145C12.6757 0.999564 12.4788 0.999752 12.2503 0.99997L12.2 1H9.8ZM9.38328 2.01382C9.42632 2.00348 9.49222 2 9.8 2H12.2C12.5078 2 12.5737 2.00348 12.6167 2.01382C12.7995 2.05771 12.9423 2.20045 12.9862 2.38328C12.9965 2.42632 13 2.49222 13 2.8V5.2C13 5.50779 12.9965 5.57369 12.9862 5.61672C12.9423 5.79955 12.7995 5.94229 12.6167 5.98619C12.5737 5.99652 12.5078 6 12.2 6H9.8C9.49222 6 9.42632 5.99652 9.38328 5.98619C9.20045 5.94229 9.05771 5.79955 9.01382 5.61672C9.00348 5.57369 9 5.50779 9 5.2V2.8C9 2.49222 9.00348 2.42632 9.01382 2.38328C9.05771 2.20045 9.20045 2.05771 9.38328 2.01382ZM2.74967 7.99997L2.8 8H5.2L5.25033 7.99997C5.47878 7.99975 5.67572 7.99956 5.85017 8.04145C6.39864 8.17312 6.82688 8.60136 6.95856 9.14983C7.00044 9.32429 7.00025 9.52122 7.00003 9.74967L7 9.8V12.2L7.00003 12.2503C7.00025 12.4788 7.00044 12.6757 6.95856 12.8502C6.82688 13.3986 6.39864 13.8269 5.85017 13.9586C5.67572 14.0004 5.47878 14.0003 5.25033 14L5.2 14H2.8L2.74967 14C2.52122 14.0003 2.32429 14.0004 2.14983 13.9586C1.60136 13.8269 1.17312 13.3986 1.04145 12.8502C0.999564 12.6757 0.999752 12.4788 0.99997 12.2503L1 12.2V9.8L0.99997 9.74967C0.999752 9.52122 0.999564 9.32429 1.04145 9.14983C1.17312 8.60136 1.60136 8.17312 2.14983 8.04145C2.32429 7.99956 2.52122 7.99975 2.74967 7.99997ZM2.8 9C2.49222 9 2.42632 9.00348 2.38328 9.01382C2.20045 9.05771 2.05771 9.20045 2.01382 9.38328C2.00348 9.42632 2 9.49222 2 9.8V12.2C2 12.5078 2.00348 12.5737 2.01382 12.6167C2.05771 12.7995 2.20045 12.9423 2.38328 12.9862C2.42632 12.9965 2.49222 13 2.8 13H5.2C5.50779 13 5.57369 12.9965 5.61672 12.9862C5.79955 12.9423 5.94229 12.7995 5.98619 12.6167C5.99652 12.5737 6 12.5078 6 12.2V9.8C6 9.49222 5.99652 9.42632 5.98619 9.38328C5.94229 9.20045 5.79955 9.05771 5.61672 9.01382C5.57369 9.00348 5.50779 9 5.2 9H2.8ZM9.8 8L9.74967 7.99997C9.52122 7.99975 9.32429 7.99956 9.14983 8.04145C8.60136 8.17312 8.17312 8.60136 8.04145 9.14983C7.99956 9.32429 7.99975 9.52122 7.99997 9.74967L8 9.8V12.2L7.99997 12.2503C7.99975 12.4788 7.99956 12.6757 8.04145 12.8502C8.17312 13.3986 8.60136 13.8269 9.14983 13.9586C9.32429 14.0004 9.52122 14.0003 9.74967 14L9.8 14H12.2L12.2503 14C12.4788 14.0003 12.6757 14.0004 12.8502 13.9586C13.3986 13.8269 13.8269 13.3986 13.9586 12.8502C14.0004 12.6757 14.0003 12.4788 14 12.2503L14 12.2V9.8L14 9.74967C14.0003 9.52122 14.0004 9.32429 13.9586 9.14983C13.8269 8.60136 13.3986 8.17312 12.8502 8.04145C12.6757 7.99956 12.4788 7.99975 12.2503 7.99997L12.2 8H9.8ZM9.38328 9.01382C9.42632 9.00348 9.49222 9 9.8 9H12.2C12.5078 9 12.5737 9.00348 12.6167 9.01382C12.7995 9.05771 12.9423 9.20045 12.9862 9.38328C12.9965 9.42632 13 9.49222 13 9.8V12.2C13 12.5078 12.9965 12.5737 12.9862 12.6167C12.9423 12.7995 12.7995 12.9423 12.6167 12.9862C12.5737 12.9965 12.5078 13 12.2 13H9.8C9.49222 13 9.42632 12.9965 9.38328 12.9862C9.20045 12.9423 9.05771 12.7995 9.01382 12.6167C9.00348 12.5737 9 12.5078 9 12.2V9.8C9 9.49222 9.00348 9.42632 9.01382 9.38328C9.05771 9.20045 9.20045 9.05771 9.38328 9.01382Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),FR=["color"],qR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,FR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M1 3.25C1 3.11193 1.11193 3 1.25 3H13.75C13.8881 3 14 3.11193 14 3.25V10.75C14 10.8881 13.8881 11 13.75 11H1.25C1.11193 11 1 10.8881 1 10.75V3.25ZM1.25 2C0.559643 2 0 2.55964 0 3.25V10.75C0 11.4404 0.559644 12 1.25 12H5.07341L4.82991 13.2986C4.76645 13.6371 5.02612 13.95 5.37049 13.95H9.62951C9.97389 13.95 10.2336 13.6371 10.1701 13.2986L9.92659 12H13.75C14.4404 12 15 11.4404 15 10.75V3.25C15 2.55964 14.4404 2 13.75 2H1.25ZM9.01091 12H5.98909L5.79222 13.05H9.20778L9.01091 12Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),VR=["color"],GR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,VR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),QR=["color"],Lp=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,QR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),IR=["color"],XR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,IR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M8.625 2.5C8.625 3.12132 8.12132 3.625 7.5 3.625C6.87868 3.625 6.375 3.12132 6.375 2.5C6.375 1.87868 6.87868 1.375 7.5 1.375C8.12132 1.375 8.625 1.87868 8.625 2.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM7.5 13.625C8.12132 13.625 8.625 13.1213 8.625 12.5C8.625 11.8787 8.12132 11.375 7.5 11.375C6.87868 11.375 6.375 11.8787 6.375 12.5C6.375 13.1213 6.87868 13.625 7.5 13.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),YR=["color"],ZR=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,YR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),WR=["color"],$R=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,WR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.49933 0.25C3.49635 0.25 0.25 3.49593 0.25 7.50024C0.25 10.703 2.32715 13.4206 5.2081 14.3797C5.57084 14.446 5.70302 14.2222 5.70302 14.0299C5.70302 13.8576 5.69679 13.4019 5.69323 12.797C3.67661 13.235 3.25112 11.825 3.25112 11.825C2.92132 10.9874 2.44599 10.7644 2.44599 10.7644C1.78773 10.3149 2.49584 10.3238 2.49584 10.3238C3.22353 10.375 3.60629 11.0711 3.60629 11.0711C4.25298 12.1788 5.30335 11.8588 5.71638 11.6732C5.78225 11.205 5.96962 10.8854 6.17658 10.7043C4.56675 10.5209 2.87415 9.89918 2.87415 7.12104C2.87415 6.32925 3.15677 5.68257 3.62053 5.17563C3.54576 4.99226 3.29697 4.25521 3.69174 3.25691C3.69174 3.25691 4.30015 3.06196 5.68522 3.99973C6.26337 3.83906 6.8838 3.75895 7.50022 3.75583C8.1162 3.75895 8.73619 3.83906 9.31523 3.99973C10.6994 3.06196 11.3069 3.25691 11.3069 3.25691C11.7026 4.25521 11.4538 4.99226 11.3795 5.17563C11.8441 5.68257 12.1245 6.32925 12.1245 7.12104C12.1245 9.9063 10.4292 10.5192 8.81452 10.6985C9.07444 10.9224 9.30633 11.3648 9.30633 12.0413C9.30633 13.0102 9.29742 13.7922 9.29742 14.0299C9.29742 14.2239 9.42828 14.4496 9.79591 14.3788C12.6746 13.4179 14.75 10.7025 14.75 7.50024C14.75 3.49593 11.5036 0.25 7.49933 0.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),JR=["color"],ek=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,JR);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M12.3536 13.3536C12.1583 13.5488 11.8417 13.5488 11.6465 13.3536L6.39645 8.10355C6.36478 8.07188 6.33824 8.03702 6.31685 8H5.00002C4.78719 8 4.59769 7.86528 4.52777 7.66426L2.12777 0.764277C2.05268 0.548387 2.13355 0.309061 2.3242 0.182972C2.51486 0.0568819 2.76674 0.0761337 2.93602 0.229734L8.336 5.12972C8.44044 5.22449 8.50001 5.35897 8.50001 5.5V5.81684C8.53702 5.83824 8.57189 5.86478 8.60356 5.89645L13.8536 11.1464C14.0488 11.3417 14.0488 11.6583 13.8536 11.8536L12.3536 13.3536ZM8.25 6.95711L7.45711 7.75L12 12.2929L12.7929 11.5L8.25 6.95711ZM3.71669 2.28845L5.35549 7H6.2929L7.50001 5.79289V5.72146L3.71669 2.28845Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),tk=["color"],nk=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,tk);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M5.49998 0.5C5.49998 0.223858 5.72383 0 5.99998 0H7.49998H8.99998C9.27612 0 9.49998 0.223858 9.49998 0.5C9.49998 0.776142 9.27612 1 8.99998 1H7.99998V2.11922C9.09832 2.20409 10.119 2.56622 10.992 3.13572C11.0116 3.10851 11.0336 3.08252 11.058 3.05806L12.058 2.05806C12.3021 1.81398 12.6978 1.81398 12.9419 2.05806C13.186 2.30214 13.186 2.69786 12.9419 2.94194L11.967 3.91682C13.1595 5.07925 13.9 6.70314 13.9 8.49998C13.9 12.0346 11.0346 14.9 7.49998 14.9C3.96535 14.9 1.09998 12.0346 1.09998 8.49998C1.09998 5.13361 3.69904 2.3743 6.99998 2.11922V1H5.99998C5.72383 1 5.49998 0.776142 5.49998 0.5ZM2.09998 8.49998C2.09998 5.51764 4.51764 3.09998 7.49998 3.09998C10.4823 3.09998 12.9 5.51764 12.9 8.49998C12.9 11.4823 10.4823 13.9 7.49998 13.9C4.51764 13.9 2.09998 11.4823 2.09998 8.49998ZM7.49998 8.49998V4.09998C5.06992 4.09998 3.09998 6.06992 3.09998 8.49998C3.09998 10.93 5.06992 12.9 7.49998 12.9C8.715 12.9 9.815 12.4075 10.6112 11.6112L7.49998 8.49998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),rk=["color"],ak=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,rk);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M3.35355 1.85355C3.54882 1.65829 3.54882 1.34171 3.35355 1.14645C3.15829 0.951184 2.84171 0.951184 2.64645 1.14645L0.646447 3.14645C0.451184 3.34171 0.451184 3.65829 0.646447 3.85355L2.64645 5.85355C2.84171 6.04882 3.15829 6.04882 3.35355 5.85355C3.54882 5.65829 3.54882 5.34171 3.35355 5.14645L2.20711 4H9.5C11.433 4 13 5.567 13 7.5C13 7.77614 13.2239 8 13.5 8C13.7761 8 14 7.77614 14 7.5C14 5.01472 11.9853 3 9.5 3H2.20711L3.35355 1.85355ZM2 7.5C2 7.22386 1.77614 7 1.5 7C1.22386 7 1 7.22386 1 7.5C1 9.98528 3.01472 12 5.5 12H12.7929L11.6464 13.1464C11.4512 13.3417 11.4512 13.6583 11.6464 13.8536C11.8417 14.0488 12.1583 14.0488 12.3536 13.8536L14.3536 11.8536C14.5488 11.6583 14.5488 11.3417 14.3536 11.1464L12.3536 9.14645C12.1583 8.95118 11.8417 8.95118 11.6464 9.14645C11.4512 9.34171 11.4512 9.65829 11.6464 9.85355L12.7929 11H5.5C3.567 11 2 9.433 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),lk=["color"],ik=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,lk);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM4.50003 7C4.22389 7 4.00003 7.22386 4.00003 7.5C4.00003 7.77614 4.22389 8 4.50003 8H10.5C10.7762 8 11 7.77614 11 7.5C11 7.22386 10.7762 7 10.5 7H4.50003Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ok=["color"],sk=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,ok);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),uk=["color"],k3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,uk);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ck=["color"],T3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,ck);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M3.24182 2.32181C3.3919 2.23132 3.5784 2.22601 3.73338 2.30781L12.7334 7.05781C12.8974 7.14436 13 7.31457 13 7.5C13 7.68543 12.8974 7.85564 12.7334 7.94219L3.73338 12.6922C3.5784 12.774 3.3919 12.7687 3.24182 12.6782C3.09175 12.5877 3 12.4252 3 12.25V2.75C3 2.57476 3.09175 2.4123 3.24182 2.32181ZM4 3.57925V11.4207L11.4288 7.5L4 3.57925Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),dk=["color"],Ob=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,dk);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),fk=["color"],D3=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,fk);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM7.50003 4C7.77617 4 8.00003 4.22386 8.00003 4.5V7H10.5C10.7762 7 11 7.22386 11 7.5C11 7.77614 10.7762 8 10.5 8H8.00003V10.5C8.00003 10.7761 7.77617 11 7.50003 11C7.22389 11 7.00003 10.7761 7.00003 10.5V8H4.50003C4.22389 8 4.00003 7.77614 4.00003 7.5C4.00003 7.22386 4.22389 7 4.50003 7H7.00003V4.5C7.00003 4.22386 7.22389 4 7.50003 4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),hk=["color"],pk=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,hk);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{opacity:".05",d:"M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".1",d:"M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".15",d:"M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".2",d:"M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".25",d:"M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".3",d:"M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".35",d:"M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".4",d:"M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".45",d:"M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{opacity:".5",d:"M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),p.createElement("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 9.1488 1.47969 10.657 2.4767 11.8162L1.64647 12.6464C1.45121 12.8417 1.45121 13.1583 1.64647 13.3535C1.84173 13.5488 2.15832 13.5488 2.35358 13.3535L3.18383 12.5233C4.34302 13.5202 5.8511 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 5.85107 13.5202 4.34298 12.5233 3.1838L13.3536 2.35355C13.5488 2.15829 13.5488 1.8417 13.3536 1.64644C13.1583 1.45118 12.8417 1.45118 12.6465 1.64644L11.8162 2.47667C10.657 1.47966 9.14883 0.877045 7.49991 0.877045ZM11.1423 3.15065C10.1568 2.32449 8.88644 1.82704 7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 8.88641 2.32452 10.1568 3.15069 11.1422L11.1423 3.15065ZM3.85781 11.8493C4.84322 12.6753 6.11348 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 6.11345 12.6754 4.84319 11.8493 3.85778L3.85781 11.8493Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),mk=["color"],jg=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,mk);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M4.10876 14L9.46582 1H10.8178L5.46074 14H4.10876Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),gk=["color"],vk=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,gk);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),bk=["color"],yk=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,bk);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M0.900024 7.50002C0.900024 3.85495 3.85495 0.900024 7.50002 0.900024C11.1451 0.900024 14.1 3.85495 14.1 7.50002C14.1 11.1451 11.1451 14.1 7.50002 14.1C3.85495 14.1 0.900024 11.1451 0.900024 7.50002ZM7.50002 1.80002C4.35201 1.80002 1.80002 4.35201 1.80002 7.50002C1.80002 10.648 4.35201 13.2 7.50002 13.2C10.648 13.2 13.2 10.648 13.2 7.50002C13.2 4.35201 10.648 1.80002 7.50002 1.80002ZM3.07504 7.50002C3.07504 5.05617 5.05618 3.07502 7.50004 3.07502C9.94388 3.07502 11.925 5.05617 11.925 7.50002C11.925 9.94386 9.94388 11.925 7.50004 11.925C5.05618 11.925 3.07504 9.94386 3.07504 7.50002ZM7.50004 3.92502C5.52562 3.92502 3.92504 5.52561 3.92504 7.50002C3.92504 9.47442 5.52563 11.075 7.50004 11.075C9.47444 11.075 11.075 9.47442 11.075 7.50002C11.075 5.52561 9.47444 3.92502 7.50004 3.92502ZM7.50004 5.25002C6.2574 5.25002 5.25004 6.25739 5.25004 7.50002C5.25004 8.74266 6.2574 9.75002 7.50004 9.75002C8.74267 9.75002 9.75004 8.74266 9.75004 7.50002C9.75004 6.25738 8.74267 5.25002 7.50004 5.25002ZM6.05004 7.50002C6.05004 6.69921 6.69923 6.05002 7.50004 6.05002C8.30084 6.05002 8.95004 6.69921 8.95004 7.50002C8.95004 8.30083 8.30084 8.95002 7.50004 8.95002C6.69923 8.95002 6.05004 8.30083 6.05004 7.50002Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),xk=["color"],$i=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,a=Se(e,xk);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),p.createElement("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);const j3=p.createContext({}),Rb=p.createContext(null),wk=p.createContext(null),ge=typeof document<"u"?O.useLayoutEffect:()=>{};function Sk(e){let[t,n]=p.useState(e),r=p.useRef(t),a=p.useRef(null),l=p.useRef(()=>{if(!a.current)return;let o=a.current.next();if(o.done){a.current=null;return}r.current===o.value?l.current():n(o.value)});ge(()=>{r.current=t,a.current&&l.current()});let i=p.useCallback(o=>{a.current=o(r.current),l.current()},[l]);return[t,i]}const N3={prefix:String(Math.round(Math.random()*1e10)),current:0},A3=O.createContext(N3),Ck=O.createContext(!1);let q0=new WeakMap;function Ek(e=!1){let t=p.useContext(A3),n=p.useRef(null);if(n.current===null&&!e){var r,a;let l=(a=O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(l){let i=q0.get(l);i==null?q0.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==i.state&&(t.current=i.id,q0.delete(l))}n.current=++t.current}return n.current}function Mk(e){let t=p.useContext(A3),n=Ek(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function Ok(e){let t=O.useId(),[n]=p.useState(ka()),r=n?"react-aria":`react-aria${N3.prefix}`;return e||`${r}-${t}`}const Rk=typeof O.useId=="function"?Ok:Mk;function kk(){return!1}function Tk(){return!0}function Dk(e){return()=>{}}function ka(){return typeof O.useSyncExternalStore=="function"?O.useSyncExternalStore(Dk,kk,Tk):p.useContext(Ck)}let jk=!!(typeof window<"u"&&window.document&&window.document.createElement),xi=new Map,Yo;typeof FinalizationRegistry<"u"&&(Yo=new FinalizationRegistry(e=>{xi.delete(e)}));function an(e){let[t,n]=p.useState(e),r=p.useRef(null),a=Rk(t),l=p.useRef(null);if(Yo&&Yo.register(l,a),jk){const i=xi.get(a);i&&!i.includes(r)?i.push(r):xi.set(a,[r])}return ge(()=>{let i=a;return()=>{Yo&&Yo.unregister(l),xi.delete(i)}},[a]),p.useEffect(()=>{let i=r.current;return i&&n(i),()=>{i&&(r.current=null)}}),a}function Nk(e,t){if(e===t)return e;let n=xi.get(e);if(n)return n.forEach(a=>a.current=t),t;let r=xi.get(t);return r?(r.forEach(a=>a.current=e),e):t}function Kc(e=[]){let t=an(),[n,r]=Sk(t),a=p.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return ge(a,[t,a,...e]),n}function Ji(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const se=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},xn=e=>e&&"window"in e&&e.window===e?e:se(e).defaultView||window;function cn(e,t){return t&&e?e.contains(t):!1}const st=(e=document)=>e.activeElement;function qe(e){return e.target}function Ak(e,t,n,r){return e.createTreeWalker(t,n,r)}function L3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=L3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function zi(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=L3(e))&&(r&&(r+=" "),r+=t);return r}function ce(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let a in r){let l=t[a],i=r[a];typeof l=="function"&&typeof i=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=Ji(l,i):(a==="className"||a==="UNSAFE_className")&&typeof l=="string"&&typeof i=="string"?t[a]=zi(l,i):a==="id"&&l&&i?t.id=Nk(l,i):t[a]=i!==void 0?i:l}}return t}function _3(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(a=>{const l=kb(a,t);return n||(n=typeof l=="function"),l});if(n)return()=>{r.forEach((a,l)=>{typeof a=="function"?a():kb(e[l],null)})}}}function kb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}const Lk=new Set(["id"]),_k=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),zk=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Pk=new Set(["dir","lang","hidden","inert","translate"]),Tb=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Hk=/^(data-.*)$/;function nt(e,t={}){let{labelable:n,isLink:r,global:a,events:l=a,propNames:i}=t,o={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(Lk.has(s)||n&&_k.has(s)||r&&zk.has(s)||a&&Pk.has(s)||l&&(Tb.has(s)||s.endsWith("Capture")&&Tb.has(s.slice(0,-7)))||i!=null&&i.has(s)||Hk.test(s))&&(o[s]=e[s]);return o}function Hn(e){if(Kk())e.focus({preventScroll:!0});else{let t=Uk(e);e.focus(),Bk(t)}}let tc=null;function Kk(){if(tc==null){tc=!1;try{document.createElement("div").focus({get preventScroll(){return tc=!0,!0}})}catch{}}return tc}function Uk(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Bk(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Sf(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function Ng(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Dr(e){let t=null;return()=>(t==null&&(t=e()),t)}const fl=Dr(function(){return Ng(/^Mac/i)}),Fk=Dr(function(){return Ng(/^iPhone/i)}),z3=Dr(function(){return Ng(/^iPad/i)||fl()&&navigator.maxTouchPoints>1}),Cf=Dr(function(){return Fk()||z3()}),qk=Dr(function(){return fl()||Cf()}),P3=Dr(function(){return Sf(/AppleWebKit/i)&&!H3()}),H3=Dr(function(){return Sf(/Chrome/i)}),Ag=Dr(function(){return Sf(/Android/i)}),Vk=Dr(function(){return Sf(/Firefox/i)}),Gk=p.createContext({isNative:!0,open:Xk,useHref:e=>e});function Ef(){return p.useContext(Gk)}function Qk(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Rr(e,t,n=!0){var r,a;let{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}=t;Vk()&&!((a=window.event)===null||a===void 0||(r=a.type)===null||r===void 0)&&r.startsWith("key")&&e.target==="_blank"&&(fl()?l=!0:i=!0);let u=P3()&&fl()&&!z3()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});Rr.isOpening=n,Hn(e),e.dispatchEvent(u),Rr.isOpening=!1}Rr.isOpening=!1;function Ik(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function Xk(e,t){Ik(e,n=>Rr(n,t))}function Yk(e){let t=Ef();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function Zk(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Qk(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let Xr=new Map,_p=new Set;function Db(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let a=Xr.get(r.target);a||(a=new Set,Xr.set(r.target,a),r.target.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let a=Xr.get(r.target);if(a&&(a.delete(r.propertyName),a.size===0&&(r.target.removeEventListener("transitioncancel",n),Xr.delete(r.target)),Xr.size===0)){for(let l of _p)l();_p.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Db():document.addEventListener("DOMContentLoaded",Db));function Wk(){for(const[e]of Xr)"isConnected"in e&&!e.isConnected&&Xr.delete(e)}function K3(e){requestAnimationFrame(()=>{Wk(),Xr.size===0?e():_p.add(e)})}function Mf(){let e=p.useRef(new Map),t=p.useCallback((a,l,i,o)=>{let s=o!=null&&o.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:l,eventTarget:a,fn:s,options:o}),a.addEventListener(l,s,o)},[]),n=p.useCallback((a,l,i,o)=>{var s;let u=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;a.removeEventListener(l,u,o),e.current.delete(i)},[]),r=p.useCallback(()=>{e.current.forEach((a,l)=>{n(a.eventTarget,a.type,l,a.options)})},[n]);return p.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function U3(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=an(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!r&&!a&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function eo(e){const t=p.useRef(null),n=p.useRef(void 0),r=p.useCallback(a=>{if(typeof e=="function"){const l=e,i=l(a);return()=>{typeof i=="function"?i():l(null)}}else if(e)return e.current=a,()=>{e.current=null}},[e]);return p.useMemo(()=>({get current(){return t.current},set current(a){t.current=a,n.current&&(n.current(),n.current=void 0),a!=null&&(n.current=r(a))}}),[r])}var V0;const $k=(V0=O.useInsertionEffect)!==null&&V0!==void 0?V0:ge;function ea(e){const t=p.useRef(null);return $k(()=>{t.current=e},[e]),p.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function jb(e,t){const n=p.useRef(!0),r=p.useRef(null);ge(()=>(n.current=!0,()=>{n.current=!1}),[]),ge(()=>{n.current?n.current=!1:(!r.current||t.some((a,l)=>!Object.is(a,r[l])))&&e(),r.current=t},t)}function Jk(){return typeof window.ResizeObserver<"u"}function Sd(e){const{ref:t,box:n,onResize:r}=e;let a=ea(r);p.useEffect(()=>{let l=t==null?void 0:t.current;if(l)if(Jk()){const i=new window.ResizeObserver(o=>{o.length&&a()});return i.observe(l,{box:n}),()=>{l&&i.unobserve(l)}}else return window.addEventListener("resize",a,!1),()=>{window.removeEventListener("resize",a,!1)}},[t,n])}function Lg(e,t){ge(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function hl(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function B3(e,t){let n=e;for(hl(n,t)&&(n=n.parentElement);n&&!hl(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function eT(e,t){const n=[];for(;e&&e!==document.documentElement;)hl(e,t)&&n.push(e),e=e.parentElement;return n}function Xl(e){return fl()?e.metaKey:e.ctrlKey}const tT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ps(e){return e instanceof HTMLInputElement&&!tT.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Lt=typeof document<"u"&&window.visualViewport;function nT(){let e=ka(),[t,n]=p.useState(()=>e?{width:0,height:0}:Nb());return p.useEffect(()=>{let r=()=>{Lt&&Lt.scale>1||n(i=>{let o=Nb();return o.width===i.width&&o.height===i.height?i:o})},a,l=i=>{Lt&&Lt.scale>1||ps(i.target)&&(a=requestAnimationFrame(()=>{(!document.activeElement||!ps(document.activeElement))&&n(o=>{let s={width:window.innerWidth,height:window.innerHeight};return s.width===o.width&&s.height===o.height?o:s})}))};return window.addEventListener("blur",l,!0),Lt?Lt.addEventListener("resize",r):window.addEventListener("resize",r),()=>{cancelAnimationFrame(a),window.removeEventListener("blur",l,!0),Lt?Lt.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function Nb(){return{width:Lt?Lt.width*Lt.scale:window.innerWidth,height:Lt?Lt.height*Lt.scale:window.innerHeight}}let rT=0;const G0=new Map;function aT(e){let[t,n]=p.useState();return ge(()=>{if(!e)return;let r=G0.get(e);if(r)n(r.element.id);else{let a=`react-aria-description-${rT++}`;n(a);let l=document.createElement("div");l.id=a,l.style.display="none",l.textContent=e,document.body.appendChild(l),r={refCount:0,element:l},G0.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),G0.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function nc(e,t,n,r){let a=ea(n),l=n==null;p.useEffect(()=>{if(l||!e.current)return;let i=e.current;return i.addEventListener(t,a,r),()=>{i.removeEventListener(t,a,r)}},[e,t,r,l])}function F3(e,t){let n=Ab(e,t,"left"),r=Ab(e,t,"top"),a=t.offsetWidth,l=t.offsetHeight,i=e.scrollLeft,o=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:f,scrollPaddingRight:c,scrollPaddingBottom:d,scrollPaddingLeft:h}=getComputedStyle(e),m=i+parseInt(u,10),v=o+parseInt(s,10),y=m+e.clientWidth,b=v+e.clientHeight,g=parseInt(f,10)||0,x=parseInt(d,10)||0,S=parseInt(c,10)||0,C=parseInt(h,10)||0;n<=i+C?i=n-parseInt(u,10)-C:n+a>y-S&&(i+=n+a-y+S),r<=v+g?o=r-parseInt(s,10)-g:r+l>b-x&&(o+=r+l-b+x),e.scrollLeft=i,e.scrollTop=o}function Ab(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let a=0;for(;t.offsetParent&&(a+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){a-=e[r];break}t=t.offsetParent}return a}function Lb(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement,o=window.getComputedStyle(i).overflow==="hidden";if(o){let s=eT(e);o||s.push(i);for(let u of s)F3(u,e)}else{var n;let{left:s,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:f,top:c}=e.getBoundingClientRect();if(Math.abs(s-f)>1||Math.abs(u-c)>1){var r,a,l;t==null||(a=t.containingElement)===null||a===void 0||(r=a.scrollIntoView)===null||r===void 0||r.call(a,{block:"center",inline:"center"}),(l=e.scrollIntoView)===null||l===void 0||l.call(e,{block:"nearest"})}}}}function q3(e){return e.pointerType===""&&e.isTrusted?!0:Ag()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function lT(e){return!Ag()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const iT="react-aria-clear-focus",oT="react-aria-focus";function Of(e,t=!0){let[n,r]=p.useState(!0),a=n&&t;return ge(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let l of e.current.getAnimations())l instanceof CSSTransition&&l.cancel()},[e,a]),V3(e,a,p.useCallback(()=>r(!1),[])),a}function Cd(e,t){let[n,r]=p.useState(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open");break}let a=n==="exiting";return V3(e,a,p.useCallback(()=>{r(l=>l==="exiting"?"closed":l)},[])),a}function V3(e,t,n){ge(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let r=e.current.getAnimations();if(r.length===0){n();return}let a=!1;return Promise.all(r.map(l=>l.finished)).then(()=>{a||Ws.flushSync(()=>{n()})}).catch(()=>{}),()=>{a=!0}}},[e,t,n])}const sT=typeof Element<"u"&&"checkVisibility"in Element.prototype;function uT(e){const t=xn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,a=n!=="none"&&r!=="hidden"&&r!=="collapse";if(a){const{getComputedStyle:l}=e.ownerDocument.defaultView;let{display:i,visibility:o}=l(e);a=i!=="none"&&o!=="hidden"&&o!=="collapse"}return a}function cT(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function _g(e,t){return sT?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&uT(e)&&cT(e,t)&&(!e.parentElement||_g(e.parentElement,e))}const zg=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],dT=zg.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";zg.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const fT=zg.join(':not([hidden]):not([tabindex="-1"]),');function G3(e){return e.matches(dT)&&_g(e)&&!I3(e)}function Q3(e){return e.matches(fT)&&_g(e)&&!I3(e)}function I3(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var Q0;const hT=typeof document<"u"?(Q0=O.useInsertionEffect)!==null&&Q0!==void 0?Q0:O.useLayoutEffect:()=>{};function vu(e,t,n){let[r,a]=p.useState(e||t),l=p.useRef(r),i=p.useRef(e!==void 0),o=e!==void 0;p.useEffect(()=>{i.current,i.current=o},[o]);let s=o?e:r;hT(()=>{l.current=s});let[,u]=p.useReducer(()=>({}),{}),f=p.useCallback((c,...d)=>{let h=typeof c=="function"?c(l.current):c;Object.is(l.current,h)||(l.current=h,a(h),u(),n==null||n(h,...d))},[n]);return[s,f]}function Us(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const Ed=Symbol("default");function Ta({values:e,children:t}){for(let[n,r]of e)t=O.createElement(n.Provider,{value:r},t);return t}function Rn(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:l,defaultStyle:i,values:o}=e;return p.useMemo(()=>{let s,u,f;return typeof t=="function"?s=t({...o,defaultClassName:a}):s=t,typeof n=="function"?u=n({...o,defaultStyle:i||{}}):u=n,typeof r=="function"?f=r({...o,defaultChildren:l}):r==null?f=l:f=r,{className:s??a,style:u||i?{...i,...u}:void 0,children:f??l,"data-rac":""}},[t,n,r,a,l,i,o])}function X3(e,t){let n=p.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||Ed;if(!n.slots[r]){let a=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`)),l=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${l} Valid slot names are ${a}.`)}return n.slots[r]}return n}function kn(e,t,n){let r=X3(n,e.slot)||{},{ref:a,...l}=r,i=eo(p.useMemo(()=>_3(t,a),[t,a])),o=ce(l,e);return"style"in l&&l.style&&"style"in e&&e.style&&(typeof l.style=="function"||typeof e.style=="function"?o.style=s=>{let u=typeof l.style=="function"?l.style(s):l.style,f={...s.defaultStyle,...u},c=typeof e.style=="function"?e.style({...s,defaultStyle:f}):e.style;return{...f,...c}}:o.style={...l.style,...e.style}),[o,i]}function Y3(e=!0){let[t,n]=p.useState(e),r=p.useRef(!1),a=p.useCallback(l=>{r.current=!0,n(!!l)},[]);return ge(()=>{r.current||n(!1)},[]),[a,t]}const Z3=7e3;let Kr=null;function pT(e,t="assertive",n=Z3){Kr?Kr.announce(e,t,n):(Kr=new mT,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Kr.announce(e,t,n):setTimeout(()=>{Kr!=null&&Kr.isAttached()&&(Kr==null||Kr.announce(e,t,n))},100))}class mT{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=Z3){var a,l;if(!this.node)return;let i=document.createElement("div");typeof t=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",t["aria-labelledby"])):i.textContent=t,n==="assertive"?(a=this.assertiveLog)===null||a===void 0||a.appendChild(i):(l=this.politeLog)===null||l===void 0||l.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const gn={top:"top",bottom:"top",left:"left",right:"left"},Md={top:"bottom",bottom:"top",left:"right",right:"left"},gT={top:"left",left:"top"},zp={top:"height",left:"width"},W3={width:"totalWidth",height:"totalHeight"},rc={};let vT=()=>typeof document<"u"?window.visualViewport:null;function _b(e,t){let n=0,r=0,a=0,l=0,i=0,o=0,s={};var u;let f=((u=t==null?void 0:t.scale)!==null&&u!==void 0?u:1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let v=document.documentElement;a=v.clientWidth,l=v.clientHeight;var c;n=(c=t==null?void 0:t.width)!==null&&c!==void 0?c:a;var d;r=(d=t==null?void 0:t.height)!==null&&d!==void 0?d:l,s.top=v.scrollTop||e.scrollTop,s.left=v.scrollLeft||e.scrollLeft,t&&(i=t.offsetTop,o=t.offsetLeft)}else({width:n,height:r,top:i,left:o}=Bs(e,!1)),s.top=e.scrollTop,s.left=e.scrollLeft,a=n,l=r;if(P3()&&(e.tagName==="BODY"||e.tagName==="HTML")&&f){s.top=0,s.left=0;var h;i=(h=t==null?void 0:t.pageTop)!==null&&h!==void 0?h:0;var m;o=(m=t==null?void 0:t.pageLeft)!==null&&m!==void 0?m:0}return{width:n,height:r,totalWidth:a,totalHeight:l,scroll:s,top:i,left:o}}function bT(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function zb(e,t,n,r,a,l,i){var o;let s=(o=a.scroll[e])!==null&&o!==void 0?o:0,u=r[zp[e]],f=i[e]+r.scroll[gn[e]]+l,c=i[e]+r.scroll[gn[e]]+u-l,d=t-s+r.scroll[gn[e]]+i[e]-r[gn[e]],h=t-s+n+r.scroll[gn[e]]+i[e]-r[gn[e]];return d<f?f-d:h>c?Math.max(c-h,f-d):0}function yT(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Pb(e){if(rc[e])return rc[e];let[t,n]=e.split(" "),r=gn[t]||"right",a=gT[r];gn[n]||(n="center");let l=zp[r],i=zp[a];return rc[e]={placement:t,crossPlacement:n,axis:r,crossAxis:a,size:l,crossSize:i},rc[e]}function I0(e,t,n,r,a,l,i,o,s,u,f){let{placement:c,crossPlacement:d,axis:h,crossAxis:m,size:v,crossSize:y}=r,b={};var g;b[m]=(g=e[m])!==null&&g!==void 0?g:0;var x,S,C,E;d==="center"?b[m]+=(((x=e[y])!==null&&x!==void 0?x:0)-((S=n[y])!==null&&S!==void 0?S:0))/2:d!==m&&(b[m]+=((C=e[y])!==null&&C!==void 0?C:0)-((E=n[y])!==null&&E!==void 0?E:0)),b[m]+=l;const M=e[m]-n[y]+s+u,N=e[m]+e[y]-s-u;if(b[m]=Us(b[m],M,N),c===h){let j=o?f[v]:f[W3[v]];b[Md[h]]=Math.floor(j-e[h]+a)}else b[h]=Math.floor(e[h]+e[v]+a);return b}function xT(e,t,n,r,a,l,i,o,s,u,f){var c,d;let h=(e.top!=null?e.top:s[W3.height]-((c=e.bottom)!==null&&c!==void 0?c:0)-i)-((d=s.scroll.top)!==null&&d!==void 0?d:0),m=u?n.top:0;var v,y,b;let g={top:Math.max(t.top+m,((v=f==null?void 0:f.offsetTop)!==null&&v!==void 0?v:t.top)+m),bottom:Math.min(t.top+t.height+m,((y=f==null?void 0:f.offsetTop)!==null&&y!==void 0?y:0)+((b=f==null?void 0:f.height)!==null&&b!==void 0?b:0))};var x,S,C,E;return o!=="top"?Math.max(0,g.bottom-h-(((x=a.top)!==null&&x!==void 0?x:0)+((S=a.bottom)!==null&&S!==void 0?S:0)+l)):Math.max(0,h+i-g.top-(((C=a.top)!==null&&C!==void 0?C:0)+((E=a.bottom)!==null&&E!==void 0?E:0)+l))}function Hb(e,t,n,r,a,l,i,o){let{placement:s,axis:u,size:f}=l;var c,d;if(s===u)return Math.max(0,n[u]-((c=i.scroll[u])!==null&&c!==void 0?c:0)-(e[u]+(o?t[u]:0))-((d=r[u])!==null&&d!==void 0?d:0)-r[Md[u]]-a);var h,m;return Math.max(0,e[f]+e[u]+(o?t[u]:0)-n[u]-n[f]+((h=i.scroll[u])!==null&&h!==void 0?h:0)-((m=r[u])!==null&&m!==void 0?m:0)-r[Md[u]]-a)}function wT(e,t,n,r,a,l,i,o,s,u,f,c,d,h,m,v,y,b){let g=Pb(e),{size:x,crossAxis:S,crossSize:C,placement:E,crossPlacement:M}=g,N=I0(t,o,n,g,f,c,u,d,m,v,s),j=f,A=Hb(o,u,t,a,l+f,g,s,y);if(i&&n[x]>A){let Ue=Pb(`${Md[E]} ${M}`),W=I0(t,o,n,Ue,f,c,u,d,m,v,s);Hb(o,u,t,a,l+f,Ue,s,y)>A&&(g=Ue,N=W,j=f)}let U="bottom";g.axis==="top"?g.placement==="top"?U="top":g.placement==="bottom"&&(U="bottom"):g.crossAxis==="top"&&(g.crossPlacement==="top"?U="bottom":g.crossPlacement==="bottom"&&(U="top"));let F=zb(S,N[S],n[C],o,s,l,u);N[S]+=F;let G=xT(N,o,u,d,a,l,n.height,U,s,y,b);h&&h<G&&(G=h),n.height=Math.min(n.height,G),N=I0(t,o,n,g,j,c,u,d,m,v,s),F=zb(S,N[S],n[C],o,s,l,u),N[S]+=F;let Q={},_=t[S]-N[S]-a[gn[S]],T=_+.5*t[C];const L=m/2+v;var K,V,D,z;const k=gn[S]==="left"?((K=a.left)!==null&&K!==void 0?K:0)+((V=a.right)!==null&&V!==void 0?V:0):((D=a.top)!==null&&D!==void 0?D:0)+((z=a.bottom)!==null&&z!==void 0?z:0),P=n[C]-k-m/2-v,B=t[S]+m/2-(N[S]+a[gn[S]]),Y=t[S]+t[C]-m/2-(N[S]+a[gn[S]]),Oe=Us(T,B,Y);Q[S]=Us(Oe,L,P),{placement:E,crossPlacement:M}=g,m?_=Q[S]:M==="right"?_+=t[C]:M==="center"&&(_+=t[C]/2);let he=E==="left"||E==="top"?n[x]:0,_e={x:E==="top"||E==="bottom"?_:he,y:E==="left"||E==="right"?_:he};return{position:N,maxHeight:G,arrowOffsetLeft:Q.left,arrowOffsetTop:Q.top,placement:E,triggerAnchorPoint:_e}}function ST(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:a,padding:l,shouldFlip:i,boundaryElement:o,offset:s,crossOffset:u,maxHeight:f,arrowSize:c=0,arrowBoundaryOffset:d=0}=e,h=vT(),m=r instanceof HTMLElement?CT(r):document.documentElement,v=m===document.documentElement;const y=window.getComputedStyle(m).position;let b=!!y&&y!=="static",g=v?Bs(n,!1):Kb(n,m,!1);if(!v){let{marginTop:Q,marginLeft:_}=window.getComputedStyle(n);g.top+=parseInt(Q,10)||0,g.left+=parseInt(_,10)||0}let x=Bs(r,!0),S=yT(r);var C,E;x.width+=((C=S.left)!==null&&C!==void 0?C:0)+((E=S.right)!==null&&E!==void 0?E:0);var M,N;x.height+=((M=S.top)!==null&&M!==void 0?M:0)+((N=S.bottom)!==null&&N!==void 0?N:0);let j=bT(a),A=_b(o,h),U=_b(m,h),F=Kb(o,m,!1),G=o.contains(m);return wT(t,g,x,j,S,l,i,A,U,F,s,u,b,f,c,d,G,h)}function Pg(e,t){let{top:n,left:r,width:a,height:l}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(a=e.offsetWidth,l=e.offsetHeight),{top:n,left:r,width:a,height:l}}function Bs(e,t){let{top:n,left:r,width:a,height:l}=Pg(e,t),{scrollTop:i,scrollLeft:o,clientTop:s,clientLeft:u}=document.documentElement;return{top:n+i-s,left:r+o-u,width:a,height:l}}function Kb(e,t,n){let r=window.getComputedStyle(e),a;if(r.position==="fixed")a=Pg(e,n);else{a=Bs(e,n);let l=Bs(t,n),i=window.getComputedStyle(t);l.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=l.top,a.left-=l.left}return a.top-=parseInt(r.marginTop,10)||0,a.left-=parseInt(r.marginLeft,10)||0,a}function CT(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Ub(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Ub(t);)t=t.parentElement;return t||document.documentElement}function Ub(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const $3=new WeakMap;function ET(e){let{triggerRef:t,isOpen:n,onClose:r}=e;p.useEffect(()=>{if(!n||r===null)return;let a=l=>{let i=l.target;if(!t.current||i instanceof Node&&!i.contains(t.current)||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement)return;let o=r||$3.get(t.current);o&&o()};return window.addEventListener("scroll",a,!0),()=>{window.removeEventListener("scroll",a,!0)}},[n,r,t])}const MT=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),OT=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function RT(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return MT.has(n.script)}let t=e.split("-")[0];return OT.has(t)}const J3=Symbol.for("react-aria.i18n.locale");function e4(){let e=typeof window<"u"&&window[J3]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:RT(e)?"rtl":"ltr"}}let Pp=e4(),Zo=new Set;function Bb(){Pp=e4();for(let e of Zo)e(Pp)}function kT(){let e=ka(),[t,n]=p.useState(Pp);return p.useEffect(()=>(Zo.size===0&&window.addEventListener("languagechange",Bb),Zo.add(n),()=>{Zo.delete(n),Zo.size===0&&window.removeEventListener("languagechange",Bb)}),[]),e?{locale:typeof window<"u"&&window[J3]||"en-US",direction:"ltr"}:t}const TT=O.createContext(null);function Cl(){let e=kT();return p.useContext(TT)||e}const DT=Symbol.for("react-aria.i18n.locale"),jT=Symbol.for("react-aria.i18n.strings");let _o;class Rf{getStringForLocale(t,n){let r=this.getStringsForLocale(n)[t];if(!r)throw new Error(`Could not find intl message ${t} in ${n} locale`);return r}getStringsForLocale(t){let n=this.strings[t];return n||(n=NT(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[DT];if(_o===void 0){let a=window[jT];if(!a)return null;_o={};for(let l in a)_o[l]=new Rf({[n]:a[l]},n)}let r=_o==null?void 0:_o[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function NT(e,t,n="en-US"){if(t[e])return t[e];let r=AT(e);if(t[r])return t[r];for(let a in t)if(a.startsWith(r+"-"))return t[a];return t[n]}function AT(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Fb=new Map,qb=new Map;class LT{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let a=n["="+t];if(a)return typeof a=="function"?a():a;let l=this.locale+":"+r,i=Fb.get(l);i||(i=new Intl.PluralRules(this.locale,{type:r}),Fb.set(l,i));let o=i.select(t);return a=n[o]||n.other,typeof a=="function"?a():a}number(t){let n=qb.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),qb.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const Vb=new WeakMap;function _T(e){let t=Vb.get(e);return t||(t=new Rf(e),Vb.set(e,t)),t}function zT(e,t){return t&&Rf.getGlobalDictionaryForPackage(t)||_T(e)}function t4(e,t){let{locale:n}=Cl(),r=zT(e,t);return p.useMemo(()=>new LT(n,r),[n,r])}function PT(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function HT(e,t,n){PT(e,t),t.set(e,n)}let X0=new Map,Hp=!1;try{Hp=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Od=!1;try{Od=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const n4={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class KT{format(t){let n="";if(!Hp&&this.options.signDisplay!=null?n=BT(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Od){var r;let{unit:a,unitDisplay:l="short",locale:i}=this.resolvedOptions();if(!a)return n;let o=(r=n4[a])===null||r===void 0?void 0:r[l];n+=o[i]||o.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),a=this.numberFormatter.formatToParts(n);return[...r.map(l=>({...l,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(l=>({...l,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Hp&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Od&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=UT(t,n),this.options=n}}function UT(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Od){var r;let{unit:i,unitDisplay:o="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=n4[i])===null||r===void 0)&&r[o]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let a=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(X0.has(a))return X0.get(a);let l=new Intl.NumberFormat(e,t);return X0.set(a,l),l}function BT(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let a=e.format(-n),l=e.format(n),i=a.replace(l,"").replace(/\u200e|\u061C/,"");return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),a.replace(l,"!!!").replace(i,"+").replace("!!!",l)}else return e.format(n)}}function FT(e={}){let{locale:t}=Cl();return p.useMemo(()=>new KT(t,e),[t,e])}let Y0=new Map;function qT(e){let{locale:t}=Cl(),n=t+(e?Object.entries(e).sort((a,l)=>a[0]<l[0]?-1:1).join():"");if(Y0.has(n))return Y0.get(n);let r=new Intl.Collator(t,e);return Y0.set(n,r),r}let Tt=typeof document<"u"?window.visualViewport:null;function r4(e){let{direction:t}=Cl(),{arrowSize:n,targetRef:r,overlayRef:a,arrowRef:l,scrollRef:i=a,placement:o="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:f=typeof document<"u"?document.body:null,offset:c=0,crossOffset:d=0,shouldUpdatePosition:h=!0,isOpen:m=!0,onClose:v,maxHeight:y,arrowBoundaryOffset:b=0}=e,[g,x]=p.useState(null),S=[h,o,a.current,r.current,l==null?void 0:l.current,i.current,s,u,f,c,d,m,t,y,b,n],C=p.useRef(Tt==null?void 0:Tt.scale);p.useEffect(()=>{m&&(C.current=Tt==null?void 0:Tt.scale)},[m]);let E=p.useCallback(()=>{if(h===!1||!m||!a.current||!r.current||!f||(Tt==null?void 0:Tt.scale)!==C.current)return;let F=null;if(i.current&&i.current.contains(document.activeElement)){var G;let D=(G=document.activeElement)===null||G===void 0?void 0:G.getBoundingClientRect(),z=i.current.getBoundingClientRect();var Q;if(F={type:"top",offset:((Q=D==null?void 0:D.top)!==null&&Q!==void 0?Q:0)-z.top},F.offset>z.height/2){F.type="bottom";var _;F.offset=((_=D==null?void 0:D.bottom)!==null&&_!==void 0?_:0)-z.bottom}}let T=a.current;if(!y&&a.current){var L;T.style.top="0px",T.style.bottom="";var K;T.style.maxHeight=((K=(L=window.visualViewport)===null||L===void 0?void 0:L.height)!==null&&K!==void 0?K:window.innerHeight)+"px"}let V=ST({placement:GT(o,t),overlayNode:a.current,targetNode:r.current,scrollNode:i.current||a.current,padding:s,shouldFlip:u,boundaryElement:f,offset:c,crossOffset:d,maxHeight:y,arrowSize:n??(l!=null&&l.current?Pg(l.current,!0).width:0),arrowBoundaryOffset:b});if(V.position){if(T.style.top="",T.style.bottom="",T.style.left="",T.style.right="",Object.keys(V.position).forEach(D=>T.style[D]=V.position[D]+"px"),T.style.maxHeight=V.maxHeight!=null?V.maxHeight+"px":"",F&&document.activeElement&&i.current){let D=document.activeElement.getBoundingClientRect(),z=i.current.getBoundingClientRect(),k=D[F.type]-z[F.type];i.current.scrollTop+=k-F.offset}x(V)}},S);ge(E,S),VT(E),Sd({ref:a,onResize:E}),Sd({ref:r,onResize:E});let M=p.useRef(!1);ge(()=>{let F,G=()=>{M.current=!0,clearTimeout(F),F=setTimeout(()=>{M.current=!1},500),E()},Q=()=>{M.current&&G()};return Tt==null||Tt.addEventListener("resize",G),Tt==null||Tt.addEventListener("scroll",Q),()=>{Tt==null||Tt.removeEventListener("resize",G),Tt==null||Tt.removeEventListener("scroll",Q)}},[E]);let N=p.useCallback(()=>{M.current||v==null||v()},[v,M]);ET({triggerRef:r,isOpen:m,onClose:v&&N});var j,A,U;return{overlayProps:{style:{position:g?"absolute":"fixed",top:g?void 0:0,left:g?void 0:0,zIndex:1e5,...g==null?void 0:g.position,maxHeight:(j=g==null?void 0:g.maxHeight)!==null&&j!==void 0?j:"100vh"}},placement:(A=g==null?void 0:g.placement)!==null&&A!==void 0?A:null,triggerAnchorPoint:(U=g==null?void 0:g.triggerAnchorPoint)!==null&&U!==void 0?U:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:g==null?void 0:g.arrowOffsetLeft,top:g==null?void 0:g.arrowOffsetTop}},updatePosition:E}}function VT(e){ge(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function GT(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function Hg(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function a4(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function l4(e){let t=p.useRef({isFocused:!1,observer:null});return ge(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),p.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target,a=l=>{if(t.current.isFocused=!1,r.disabled){let i=Hg(l);e==null||e(i)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var l;(l=t.current.observer)===null||l===void 0||l.disconnect();let i=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:i}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Rd=!1;function QT(e){for(;e&&!G3(e);)e=e.parentElement;let t=xn(e),n=t.document.activeElement;if(!n||n===e)return;Rd=!0;let r=!1,a=f=>{(f.target===n||r)&&f.stopImmediatePropagation()},l=f=>{(f.target===n||r)&&(f.stopImmediatePropagation(),!e&&!r&&(r=!0,Hn(n),s()))},i=f=>{(f.target===e||r)&&f.stopImmediatePropagation()},o=f=>{(f.target===e||r)&&(f.stopImmediatePropagation(),r||(r=!0,Hn(n),s()))};t.addEventListener("blur",a,!0),t.addEventListener("focusout",l,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",i,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",a,!0),t.removeEventListener("focusout",l,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",i,!0),Rd=!1,r=!1},u=requestAnimationFrame(s);return s}let ci="default",Kp="",Uc=new WeakMap;function IT(e){if(Cf()){if(ci==="default"){const t=se(e);Kp=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ci="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Uc.set(e,e.style[t]),e.style[t]="none"}}function Gb(e){if(Cf()){if(ci!=="disabled")return;ci="restoring",setTimeout(()=>{K3(()=>{if(ci==="restoring"){const t=se(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Kp||""),Kp="",ci="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Uc.has(e)){let t=Uc.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Uc.delete(e)}}const Fs=O.createContext({register:()=>{}});Fs.displayName="PressResponderContext";function XT(e,t){return t.get?t.get.call(e):t.value}function i4(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function YT(e,t){var n=i4(e,t,"get");return XT(e,n)}function ZT(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Qb(e,t,n){var r=i4(e,t,"set");return ZT(e,r,n),n}function WT(e){let t=p.useContext(Fs);if(t){let{register:n,...r}=t;e=ce(r,e),n()}return Lg(t,e.ref),e}var ac=new WeakMap;class lc{continuePropagation(){Qb(this,ac,!1)}get shouldStopPropagation(){return YT(this,ac)}constructor(t,n,r,a){HT(this,ac,{writable:!0,value:void 0}),Qb(this,ac,!0);var l;let i=(l=a==null?void 0:a.target)!==null&&l!==void 0?l:r.currentTarget;const o=i==null?void 0:i.getBoundingClientRect();let s,u=0,f,c=null;r.clientX!=null&&r.clientY!=null&&(f=r.clientX,c=r.clientY),o&&(f!=null&&c!=null?(s=f-o.left,u=c-o.top):(s=o.width/2,u=o.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=u}}const Ib=Symbol("linkClicked"),Xb="react-aria-pressable-style",Yb="data-react-aria-pressable";function kf(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:a,onPressUp:l,onClick:i,isDisabled:o,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:c,ref:d,...h}=WT(e),[m,v]=p.useState(!1),y=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:g,removeGlobalListener:x}=Mf(),S=p.useCallback((D,z)=>{let k=y.current;if(o||k.didFirePressStart)return!1;let P=!0;if(k.isTriggeringEvent=!0,r){let B=new lc("pressstart",z,D);r(B),P=B.shouldStopPropagation}return n&&n(!0),k.isTriggeringEvent=!1,k.didFirePressStart=!0,v(!0),P},[o,r,n]),C=p.useCallback((D,z,k=!0)=>{let P=y.current;if(!P.didFirePressStart)return!1;P.didFirePressStart=!1,P.isTriggeringEvent=!0;let B=!0;if(a){let Y=new lc("pressend",z,D);a(Y),B=Y.shouldStopPropagation}if(n&&n(!1),v(!1),t&&k&&!o){let Y=new lc("press",z,D);t(Y),B&&(B=Y.shouldStopPropagation)}return P.isTriggeringEvent=!1,B},[o,a,n,t]),E=ea(C),M=p.useCallback((D,z)=>{let k=y.current;if(o)return!1;if(l){k.isTriggeringEvent=!0;let P=new lc("pressup",z,D);return l(P),k.isTriggeringEvent=!1,P.shouldStopPropagation}return!0},[o,l]),N=ea(M),j=p.useCallback(D=>{let z=y.current;if(z.isPressed&&z.target){z.didFirePressStart&&z.pointerType!=null&&C(qa(z.target,D),z.pointerType,!1),z.isPressed=!1,K(null),z.isOverTarget=!1,z.activePointerId=null,z.pointerType=null,g(),c||Gb(z.target);for(let k of z.disposables)k();z.disposables=[]}},[c,g,C]),A=ea(j),U=p.useCallback(D=>{f&&j(D)},[f,j]),F=p.useCallback(D=>{o||i==null||i(D)},[o,i]),G=p.useCallback((D,z)=>{if(!o&&i){let k=new MouseEvent("click",D);a4(k,z),i(Hg(k))}},[o,i]),Q=ea(G),[_,T]=p.useState(!1);ge(()=>{let D=y.current;if(_){let z=B=>{var Y;if(D.isPressed&&D.target&&Z0(B,D.target)){var Oe;Zb(qe(B),B.key)&&B.preventDefault();let _e=qe(B),Ue=cn(D.target,qe(B));E(qa(D.target,B),"keyboard",Ue),Ue&&Q(B,D.target),g(),B.key!=="Enter"&&Kg(D.target)&&cn(D.target,_e)&&!B[Ib]&&(B[Ib]=!0,Rr(D.target,B,!1)),D.isPressed=!1,T(!1),(Oe=D.metaKeyEvents)===null||Oe===void 0||Oe.delete(B.key)}else if(B.key==="Meta"&&!((Y=D.metaKeyEvents)===null||Y===void 0)&&Y.size){var he;let _e=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let Ue of _e.values())(he=D.target)===null||he===void 0||he.dispatchEvent(new KeyboardEvent("keyup",Ue))}},k=D.target,P=Ji(B=>{k&&Z0(B,k)&&!B.repeat&&cn(k,qe(B))&&D.target&&N(qa(D.target,B),"keyboard")},z);return b(se(D.target),"keyup",P,!0),()=>{x(se(D.target),"keyup",P,!0)}}},[_,b,g,x]);let[L,K]=p.useState(null);ge(()=>{let D=y.current;if(L==="pointer"){let z=P=>{if(P.pointerId===D.activePointerId&&D.isPressed&&P.button===0&&D.target){if(cn(D.target,qe(P))&&D.pointerType!=null){let B=!1,Y=setTimeout(()=>{D.isPressed&&D.target instanceof HTMLElement&&(B?A(P):(Hn(D.target),D.target.click()))},80);b(P.currentTarget,"click",()=>B=!0,!0),D.disposables.push(()=>clearTimeout(Y))}else A(P);D.isOverTarget=!1}},k=P=>{A(P)};return b(se(D.target),"pointerup",z,!1),b(se(D.target),"pointercancel",k,!1),()=>{x(se(D.target),"pointerup",z,!1),x(se(D.target),"pointercancel",k,!1)}}},[L,b,x]);let V=p.useMemo(()=>{let D=y.current,z={onKeyDown(k){if(Z0(k.nativeEvent,k.currentTarget)&&cn(k.currentTarget,qe(k.nativeEvent))){var P;Zb(qe(k.nativeEvent),k.key)&&k.preventDefault();let B=!0;!D.isPressed&&!k.repeat&&(D.target=k.currentTarget,D.isPressed=!0,T(!0),D.pointerType="keyboard",B=S(k,"keyboard")),B&&k.stopPropagation(),k.metaKey&&fl()&&((P=D.metaKeyEvents)===null||P===void 0||P.set(k.key,k.nativeEvent))}else k.key==="Meta"&&(D.metaKeyEvents=new Map)},onClick(k){if(!(k&&!cn(k.currentTarget,qe(k.nativeEvent)))&&k&&k.button===0&&!D.isTriggeringEvent&&!Rr.isOpening){let P=!0;if(o&&k.preventDefault(),!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||q3(k.nativeEvent))){let B=S(k,"virtual"),Y=M(k,"virtual"),Oe=C(k,"virtual");F(k),P=B&&Y&&Oe}else if(D.isPressed&&D.pointerType!=="keyboard"){let B=D.pointerType||k.nativeEvent.pointerType||"virtual",Y=M(qa(k.currentTarget,k),B),Oe=C(qa(k.currentTarget,k),B,!0);P=Y&&Oe,D.isOverTarget=!1,F(k),j(k)}D.ignoreEmulatedMouseEvents=!1,P&&k.stopPropagation()}}};return typeof PointerEvent<"u"&&(z.onPointerDown=k=>{if(k.button!==0||!cn(k.currentTarget,qe(k.nativeEvent)))return;if(lT(k.nativeEvent)){D.pointerType="virtual";return}D.pointerType=k.pointerType;let P=!0;if(!D.isPressed){D.isPressed=!0,K("pointer"),D.isOverTarget=!0,D.activePointerId=k.pointerId,D.target=k.currentTarget,c||IT(D.target),P=S(k,D.pointerType);let B=qe(k.nativeEvent);"releasePointerCapture"in B&&B.releasePointerCapture(k.pointerId)}P&&k.stopPropagation()},z.onMouseDown=k=>{if(cn(k.currentTarget,qe(k.nativeEvent))&&k.button===0){if(u){let P=QT(k.target);P&&D.disposables.push(P)}k.stopPropagation()}},z.onPointerUp=k=>{!cn(k.currentTarget,qe(k.nativeEvent))||D.pointerType==="virtual"||k.button===0&&!D.isPressed&&M(k,D.pointerType||k.pointerType)},z.onPointerEnter=k=>{k.pointerId===D.activePointerId&&D.target&&!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,S(qa(D.target,k),D.pointerType))},z.onPointerLeave=k=>{k.pointerId===D.activePointerId&&D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,C(qa(D.target,k),D.pointerType,!1),U(k))},z.onDragStart=k=>{cn(k.currentTarget,qe(k.nativeEvent))&&j(k)}),z},[o,u,g,c,j,U,C,S,M,F,G]);return p.useEffect(()=>{if(!d)return;const D=se(d.current);if(!D||!D.head||D.getElementById(Xb))return;const z=D.createElement("style");z.id=Xb,z.textContent=`
|
|
69
69
|
@layer {
|
|
70
|
-
[${
|
|
70
|
+
[${Yb}] {
|
|
71
71
|
touch-action: pan-x pan-y pinch-zoom;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
`.trim(),j.head.prepend(z)},[d]),p.useEffect(()=>{let j=y.current;return()=>{var z;c||Fb((z=j.target)!==null&&z!==void 0?z:void 0);for(let B of j.disposables)B();j.disposables=[]}},[c]),{isPressed:s||m,pressProps:ue(h,N,{[Ib]:!0})}}function Pg(e){return e.tagName==="A"&&e.hasAttribute("href")}function X0(e,t){const{key:n,code:r}=e,a=t,l=a.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(a instanceof xn(a).HTMLInputElement&&!J3(a,n)||a instanceof xn(a).HTMLTextAreaElement||a.isContentEditable)&&!((l==="link"||!l&&Pg(a))&&n!=="Enter")}function Qa(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function zk(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Pg(e)}function Xb(e,t){return e instanceof HTMLInputElement?!J3(e,t):zk(e)}const Pk=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function J3(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Pk.has(e.type)}let lo=null,Hp=new Set,bs=new Map,bl=!1,Kp=!1;const Hk={Tab:!0,Escape:!0};function Hg(e,t){for(let n of Hp)n(e,t)}function Kk(e){return!(e.metaKey||!ml()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Td(e){bl=!0,Kk(e)&&(lo="keyboard",Hg("keyboard",e))}function Mi(e){lo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(bl=!0,Hg("pointer",e))}function e4(e){P3(e)&&(bl=!0,lo="virtual")}function t4(e){e.target===window||e.target===document||Rd||!e.isTrusted||(!bl&&!Kp&&(lo="virtual",Hg("virtual",e)),bl=!1,Kp=!1)}function n4(){Rd||(bl=!1,Kp=!0)}function Up(e){if(typeof window>"u"||typeof document>"u"||bs.get(xn(e)))return;const t=xn(e),n=he(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){bl=!0,r.apply(this,arguments)},n.addEventListener("keydown",Td,!0),n.addEventListener("keyup",Td,!0),n.addEventListener("click",e4,!0),t.addEventListener("focus",t4,!0),t.addEventListener("blur",n4,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Mi,!0),n.addEventListener("pointermove",Mi,!0),n.addEventListener("pointerup",Mi,!0)),t.addEventListener("beforeunload",()=>{r4(e)},{once:!0}),bs.set(t,{focus:r})}const r4=(e,t)=>{const n=xn(e),r=he(e);t&&r.removeEventListener("DOMContentLoaded",t),bs.has(n)&&(n.HTMLElement.prototype.focus=bs.get(n).focus,r.removeEventListener("keydown",Td,!0),r.removeEventListener("keyup",Td,!0),r.removeEventListener("click",e4,!0),n.removeEventListener("focus",t4,!0),n.removeEventListener("blur",n4,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",Mi,!0),r.removeEventListener("pointermove",Mi,!0),r.removeEventListener("pointerup",Mi,!0)),bs.delete(n))};function Uk(e){const t=he(e);let n;return t.readyState!=="loading"?Up(e):(n=()=>{Up(e)},t.addEventListener("DOMContentLoaded",n)),()=>r4(e,n)}typeof document<"u"&&Uk();function Gs(){return lo!=="pointer"}function Qs(){return lo}const Bk=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function qk(e,t,n){let r=he(n==null?void 0:n.target);const a=typeof window<"u"?xn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?xn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?xn(n==null?void 0:n.target).HTMLElement:HTMLElement,o=typeof window<"u"?xn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof a&&!Bk.has(r.activeElement.type)||r.activeElement instanceof l||r.activeElement instanceof i&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof o&&!Hk[n.key])}function Fk(e,t,n){Up(),p.useEffect(()=>{let r=(a,l)=>{qk(!!(n!=null&&n.isTextInput),a,l)&&e(Gs())};return Hp.add(r),()=>{Hp.delete(r)}},t)}function Sa(e){const t=he(e),n=ot(t);if(Qs()==="virtual"){let r=n;A3(()=>{ot(t)===r&&e.isConnected&&Kn(e)})}else Kn(e)}function Kg(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e;const l=p.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),a&&a(!1),!0},[r,a]),i=$3(l),o=p.useCallback(s=>{const u=he(s.target),f=u?ot(u):ot();s.target===s.currentTarget&&f===Ue(s.nativeEvent)&&(n&&n(s),a&&a(!0),i(s))},[a,n,i]);return{focusProps:{onFocus:!t&&(n||a||r)?o:void 0,onBlur:!t&&(r||a)?l:void 0}}}function Yb(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function a4(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Yb(e.onKeyDown),onKeyUp:Yb(e.onKeyUp)}}}let kd=O.createContext(null);function Vk(e){let t=p.useContext(kd)||{};Ng(t,e);let{ref:n,...r}=t;return r}const Gk=O.forwardRef(function(e,t){let{children:n,...r}=e,a=ao(t),l={...r,ref:a};return O.createElement(kd.Provider,{value:l},n)});function l4(e,t){let{focusProps:n}=Kg(e),{keyboardProps:r}=a4(e),a=ue(n,r),l=Vk(t),i=e.isDisabled?{}:l,o=p.useRef(e.autoFocus);p.useEffect(()=>{o.current&&t.current&&Sa(t.current),o.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:ue({...a,tabIndex:s},i)}}const i4=O.forwardRef(({children:e,...t},n)=>{let r=p.useRef(!1),a=p.useContext(Vs);n=ao(n||(a==null?void 0:a.ref));let l=ue(a||{},{...t,ref:n,register(){r.current=!0,a&&a.register()}});return Ng(a,n),p.useEffect(()=>{r.current||(r.current=!0)},[]),O.createElement(Vs.Provider,{value:l},e)});function Qk({children:e}){let t=p.useMemo(()=>({register:()=>{}}),[]);return O.createElement(Vs.Provider,{value:t},e)}function Ug(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:a}=e,l=p.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:o}=Mf(),s=p.useCallback(c=>{c.currentTarget.contains(c.target)&&l.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(l.current.isFocusWithin=!1,o(),n&&n(c),a&&a(!1))},[n,a,l,o]),u=$3(s),f=p.useCallback(c=>{if(!c.currentTarget.contains(c.target))return;const d=he(c.target),h=ot(d);if(!l.current.isFocusWithin&&h===Ue(c.nativeEvent)){r&&r(c),a&&a(!0),l.current.isFocusWithin=!0,u(c);let m=c.currentTarget;i(d,"focus",b=>{if(l.current.isFocusWithin&&!dn(m,b.target)){let y=new d.defaultView.FocusEvent("blur",{relatedTarget:b.target});Z3(y,m);let v=zg(y);s(v)}},{capture:!0})}},[r,a,u,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:s}}}let Bp=!1,ic=0;function Ik(){Bp=!0,setTimeout(()=>{Bp=!1},50)}function Zb(e){e.pointerType==="touch"&&Ik()}function Xk(){if(!(typeof document>"u"))return ic===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",Zb),ic++,()=>{ic--,!(ic>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Zb)}}function io(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:a}=e,[l,i]=p.useState(!1),o=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(Xk,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=Mf(),{hoverProps:f,triggerHoverEnd:c}=p.useMemo(()=>{let d=(b,y)=>{if(o.pointerType=y,a||y==="touch"||o.isHovered||!b.currentTarget.contains(b.target))return;o.isHovered=!0;let v=b.currentTarget;o.target=v,s(he(b.target),"pointerover",g=>{o.isHovered&&o.target&&!dn(o.target,g.target)&&h(g,g.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:v,pointerType:y}),n&&n(!0),i(!0)},h=(b,y)=>{let v=o.target;o.pointerType="",o.target=null,!(y==="touch"||!o.isHovered||!v)&&(o.isHovered=!1,u(),r&&r({type:"hoverend",target:v,pointerType:y}),n&&n(!1),i(!1))},m={};return typeof PointerEvent<"u"&&(m.onPointerEnter=b=>{Bp&&b.pointerType==="mouse"||d(b,b.pointerType)},m.onPointerLeave=b=>{!a&&b.currentTarget.contains(b.target)&&h(b,b.pointerType)}),{hoverProps:m,triggerHoverEnd:h}},[t,n,r,a,o,s,u]);return p.useEffect(()=>{a&&c({currentTarget:o.target},o.pointerType)},[a]),{hoverProps:f,isHovered:l}}function Yk(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:a}=e,l=p.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=xt(s=>{n&&$b(s,t)&&(a&&a(s),l.current.isPointerDown=!0)}),o=xt(s=>{n&&n(s)});p.useEffect(()=>{let s=l.current;if(r)return;const u=t.current,f=he(u);if(typeof PointerEvent<"u"){let c=d=>{s.isPointerDown&&$b(d,t)&&o(d),s.isPointerDown=!1};return f.addEventListener("pointerdown",i,!0),f.addEventListener("click",c,!0),()=>{f.removeEventListener("pointerdown",i,!0),f.removeEventListener("click",c,!0)}}},[t,r,i,o])}function $b(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const Zk=500;function o4(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:a,threshold:l=Zk,accessibilityDescription:i}=e;const o=p.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=Mf(),{pressProps:f}=Tf({isDisabled:t,onPressStart(d){if(d.continuePropagation(),(d.pointerType==="mouse"||d.pointerType==="touch")&&(n&&n({...d,type:"longpressstart"}),o.current=setTimeout(()=>{d.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),he(d.target).activeElement!==d.target&&Kn(d.target),a&&a({...d,type:"longpress"}),o.current=void 0},l),d.pointerType==="touch")){let h=m=>{m.preventDefault()};s(d.target,"contextmenu",h,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(d.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(d){o.current&&clearTimeout(o.current),r&&(d.pointerType==="mouse"||d.pointerType==="touch")&&r({...d,type:"longpressend"})}}),c=qT(a&&!t?i:void 0);return{longPressProps:ue(f,c)}}const Wb=O.createContext(null),qp="react-aria-focus-scope-restore";let Oe=null;function s4(e){let{children:t,contain:n,restoreFocus:r,autoFocus:a}=e,l=p.useRef(null),i=p.useRef(null),o=p.useRef([]),{parentNode:s}=p.useContext(Wb)||{},u=p.useMemo(()=>new Vp({scopeRef:o}),[o]);we(()=>{let d=s||Ve.root;if(Ve.getTreeNode(d.scopeRef)&&Oe&&!jd(Oe,d.scopeRef)){let h=Ve.getTreeNode(Oe);h&&(d=h)}d.addChild(u),Ve.addNode(u)},[u,s]),we(()=>{let d=Ve.getTreeNode(o);d&&(d.contain=!!n)},[n]),we(()=>{var d;let h=(d=l.current)===null||d===void 0?void 0:d.nextSibling,m=[],b=y=>y.stopPropagation();for(;h&&h!==i.current;)m.push(h),h.addEventListener(qp,b),h=h.nextSibling;return o.current=m,()=>{for(let y of m)y.removeEventListener(qp,b)}},[t]),nj(o,r,n),Jk(o,n),rj(o,r,n),tj(o,a),p.useEffect(()=>{const d=ot(he(o.current?o.current[0]:void 0));let h=null;if(Mn(d,o.current)){for(let m of Ve.traverse())m.scopeRef&&Mn(d,m.scopeRef.current)&&(h=m);h===Ve.getTreeNode(o)&&(Oe=h.scopeRef)}},[o]),we(()=>()=>{var d,h,m;let b=(m=(h=Ve.getTreeNode(o))===null||h===void 0||(d=h.parent)===null||d===void 0?void 0:d.scopeRef)!==null&&m!==void 0?m:null;(o===Oe||jd(o,Oe))&&(!b||Ve.getTreeNode(b))&&(Oe=b),Ve.removeTreeNode(o)},[o]);let f=p.useMemo(()=>$k(o),[]),c=p.useMemo(()=>({focusManager:f,parentNode:u}),[u,f]);return O.createElement(Wb.Provider,{value:c},O.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:l}),t,O.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function $k(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:a,wrap:l,accept:i}=t;var o;let s=r||ot(he((o=n[0])!==null&&o!==void 0?o:void 0)),u=n[0].previousElementSibling,f=nl(n),c=$t(f,{tabbable:a,accept:i},n);c.currentNode=Mn(s,n)?s:u;let d=c.nextNode();return!d&&l&&(c.currentNode=u,d=c.nextNode()),d&&Lt(d,!0),d},focusPrevious(t={}){let n=e.current,{from:r,tabbable:a,wrap:l,accept:i}=t;var o;let s=r||ot(he((o=n[0])!==null&&o!==void 0?o:void 0)),u=n[n.length-1].nextElementSibling,f=nl(n),c=$t(f,{tabbable:a,accept:i},n);c.currentNode=Mn(s,n)?s:u;let d=c.previousNode();return!d&&l&&(c.currentNode=u,d=c.previousNode()),d&&Lt(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:a}=t,l=nl(n),i=$t(l,{tabbable:r,accept:a},n);i.currentNode=n[0].previousElementSibling;let o=i.nextNode();return o&&Lt(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:a}=t,l=nl(n),i=$t(l,{tabbable:r,accept:a},n);i.currentNode=n[n.length-1].nextElementSibling;let o=i.previousNode();return o&&Lt(o,!0),o}}}function nl(e){return e[0].parentElement}function es(e){let t=Ve.getTreeNode(Oe);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Wk(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...he(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(a=>!a.form);else{var n,r;t=[...((r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name))??[]]}return t?!t.some(a=>a.checked):!1}function Jk(e,t){let n=p.useRef(void 0),r=p.useRef(void 0);we(()=>{let a=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const l=he(a?a[0]:void 0);let i=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!es(e)||u.isComposing)return;let f=ot(l),c=e.current;if(!c||!Mn(f,c))return;let d=nl(c),h=$t(d,{tabbable:!0},c);if(!f)return;h.currentNode=f;let m=u.shiftKey?h.previousNode():h.nextNode();m||(h.currentNode=u.shiftKey?c[c.length-1].nextElementSibling:c[0].previousElementSibling,m=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),m&&Lt(m,!0)},o=u=>{(!Oe||jd(Oe,e))&&Mn(Ue(u),e.current)?(Oe=e,n.current=Ue(u)):es(e)&&!ra(Ue(u),e)?n.current?n.current.focus():Oe&&Oe.current&&Fp(Oe.current):es(e)&&(n.current=Ue(u))},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let f=Qs(),c=(f==="virtual"||f===null)&&Dg()&&jg(),d=ot(l);if(!c&&d&&es(e)&&!ra(d,e)){Oe=e;let m=Ue(u);if(m&&m.isConnected){var h;n.current=m,(h=n.current)===null||h===void 0||h.focus()}else Oe.current&&Fp(Oe.current)}})};return l.addEventListener("keydown",i,!1),l.addEventListener("focusin",o,!1),a==null||a.forEach(u=>u.addEventListener("focusin",o,!1)),a==null||a.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{l.removeEventListener("keydown",i,!1),l.removeEventListener("focusin",o,!1),a==null||a.forEach(u=>u.removeEventListener("focusin",o,!1)),a==null||a.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),we(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function u4(e){return ra(e)}function Mn(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function ra(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ve.traverse(Ve.getTreeNode(t)))if(n&&Mn(e,n.current))return!0;return!1}function ej(e){return ra(e,Oe)}function jd(e,t){var n;let r=(n=Ve.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Lt(e,t=!1){if(e!=null&&!t)try{Sa(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function c4(e,t=!0){let n=e[0].previousElementSibling,r=nl(e),a=$t(r,{tabbable:t},e);a.currentNode=n;let l=a.nextNode();return t&&!l&&(r=nl(e),a=$t(r,{tabbable:!1},e),a.currentNode=n,l=a.nextNode()),l}function Fp(e,t=!0){Lt(c4(e,t))}function tj(e,t){const n=O.useRef(t);p.useEffect(()=>{if(n.current){Oe=e;const r=he(e.current?e.current[0]:void 0);!Mn(ot(r),Oe.current)&&e.current&&Fp(e.current)}n.current=!1},[e])}function nj(e,t,n){we(()=>{if(t||n)return;let r=e.current;const a=he(r?r[0]:void 0);let l=i=>{let o=Ue(i);Mn(o,e.current)?Oe=e:u4(o)||(Oe=null)};return a.addEventListener("focusin",l,!1),r==null||r.forEach(i=>i.addEventListener("focusin",l,!1)),()=>{a.removeEventListener("focusin",l,!1),r==null||r.forEach(i=>i.removeEventListener("focusin",l,!1))}},[e,t,n])}function Jb(e){let t=Ve.getTreeNode(Oe);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function rj(e,t,n){const r=p.useRef(typeof document<"u"?ot(he(e.current?e.current[0]:void 0)):null);we(()=>{let a=e.current;const l=he(a?a[0]:void 0);if(!t||n)return;let i=()=>{(!Oe||jd(Oe,e))&&Mn(ot(l),e.current)&&(Oe=e)};return l.addEventListener("focusin",i,!1),a==null||a.forEach(o=>o.addEventListener("focusin",i,!1)),()=>{l.removeEventListener("focusin",i,!1),a==null||a.forEach(o=>o.removeEventListener("focusin",i,!1))}},[e,n]),we(()=>{const a=he(e.current?e.current[0]:void 0);if(!t)return;let l=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!es(e)||i.isComposing)return;let o=a.activeElement;if(!ra(o,e)||!Jb(e))return;let s=Ve.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,f=$t(a.body,{tabbable:!0});f.currentNode=o;let c=i.shiftKey?f.previousNode():f.nextNode();if((!u||!u.isConnected||u===a.body)&&(u=void 0,s.nodeToRestore=void 0),(!c||!ra(c,e))&&u){f.currentNode=u;do c=i.shiftKey?f.previousNode():f.nextNode();while(ra(c,e));i.preventDefault(),i.stopPropagation(),c?Lt(c,!0):u4(u)?Lt(u,!0):o.blur()}};return n||a.addEventListener("keydown",l,!0),()=>{n||a.removeEventListener("keydown",l,!0)}},[e,t,n]),we(()=>{const a=he(e.current?e.current[0]:void 0);if(!t)return;let l=Ve.getTreeNode(e);if(l){var i;return l.nodeToRestore=(i=r.current)!==null&&i!==void 0?i:void 0,()=>{let o=Ve.getTreeNode(e);if(!o)return;let s=o.nodeToRestore,u=ot(a);if(t&&s&&(u&&ra(u,e)||u===a.body&&Jb(e))){let f=Ve.clone();requestAnimationFrame(()=>{if(a.activeElement===a.body){let c=f.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){ey(c.nodeToRestore);return}c=c.parent}for(c=f.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Ve.getTreeNode(c.scopeRef)){let d=c4(c.scopeRef.current,!0);ey(d);return}c=c.parent}}})}}}},[e,t])}function ey(e){e.dispatchEvent(new CustomEvent(qp,{bubbles:!0,cancelable:!0}))&&Lt(e)}function $t(e,t,n){let r=t!=null&&t.tabbable?$T:K3,a=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,l=he(a),i=bT(l,e||l,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(o)||t!=null&&t.tabbable&&o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(!Wk(o)||i.currentNode.tagName==="INPUT"&&i.currentNode.type==="radio"&&i.currentNode.name===o.name)?NodeFilter.FILTER_REJECT:r(o)&&(!n||Mn(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function aj(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:a,tabbable:l=t.tabbable,wrap:i=t.wrap,accept:o=t.accept}=n,s=a||ot(he(r)),u=$t(r,{tabbable:l,accept:o});r.contains(s)&&(u.currentNode=s);let f=u.nextNode();return!f&&i&&(u.currentNode=r,f=u.nextNode()),f&&Lt(f,!0),f},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:a,tabbable:l=t.tabbable,wrap:i=t.wrap,accept:o=t.accept}=n,s=a||ot(he(r)),u=$t(r,{tabbable:l,accept:o});if(r.contains(s))u.currentNode=s;else{let c=Y0(u);return c&&Lt(c,!0),c??null}let f=u.previousNode();if(!f&&i){u.currentNode=r;let c=Y0(u);if(!c)return null;f=c}return f&&Lt(f,!0),f??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:l=t.accept}=n,i=$t(r,{tabbable:a,accept:l}).nextNode();return i&&Lt(i,!0),i},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:l=t.accept}=n,i=$t(r,{tabbable:a,accept:l}),o=Y0(i);return o&&Lt(o,!0),o??null}}}function Y0(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Bg{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let a=this.fastMap.get(n??null);if(!a)return;let l=new Vp({scopeRef:t});a.addChild(l),l.parent=a,this.fastMap.set(t,l),r&&(l.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let l of this.traverse())l!==n&&n.nodeToRestore&&l.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Mn(l.nodeToRestore,n.scopeRef.current)&&(l.nodeToRestore=n.nodeToRestore);let a=n.children;r&&(r.removeChild(n),a.size>0&&a.forEach(l=>r&&r.addChild(l))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Bg;var r;for(let a of this.traverse())n.addTreeNode(a.scopeRef,(r=(t=a.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,a.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Vp({scopeRef:null}),this.fastMap.set(null,this.root)}}class Vp{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Ve=new Bg;function d4(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,a=p.useRef({isFocused:!1,isFocusVisible:t||Gs()}),[l,i]=p.useState(!1),[o,s]=p.useState(()=>a.current.isFocused&&a.current.isFocusVisible),u=p.useCallback(()=>s(a.current.isFocused&&a.current.isFocusVisible),[]),f=p.useCallback(h=>{a.current.isFocused=h,i(h),u()},[u]);Fk(h=>{a.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:c}=Kg({isDisabled:r,onFocusChange:f}),{focusWithinProps:d}=Ug({isDisabled:!r,onFocusWithinChange:f});return{isFocused:l,isFocusVisible:o,focusProps:r?d:c}}function f4(e){let t=ij(he(e));t!==e&&(t&&lj(t,e),e&&h4(e,t))}function lj(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function h4(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function ij(e){let t=ot(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}const In=[];function p4(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:a,isDismissable:l=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:o}=e;p.useEffect(()=>{if(a&&!In.includes(t))return In.push(t),()=>{let m=In.indexOf(t);m>=0&&In.splice(m,1)}},[a,t]);let s=()=>{In[In.length-1]===t&&n&&n()},u=m=>{(!o||o(m.target))&&In[In.length-1]===t&&(m.stopPropagation(),m.preventDefault())},f=m=>{(!o||o(m.target))&&(In[In.length-1]===t&&(m.stopPropagation(),m.preventDefault()),s())},c=m=>{m.key==="Escape"&&!i&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),s())};Yk({ref:t,onInteractOutside:l&&a?f:void 0,onInteractOutsideStart:u});let{focusWithinProps:d}=Ug({isDisabled:!r,onBlurWithin:m=>{!m.relatedTarget||ej(m.relatedTarget)||(!o||o(m.relatedTarget))&&(n==null||n())}}),h=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:c,...d},underlayProps:{onPointerDown:h}}}function m4(e,t,n){let{type:r}=e,{isOpen:a}=t;p.useEffect(()=>{n&&n.current&&G3.set(n.current,t.close)});let l;r==="menu"?l=!0:r==="listbox"&&(l="listbox");let i=ln();return{triggerProps:{"aria-haspopup":l,"aria-expanded":a,"aria-controls":a?i:void 0,onPress:t.toggle},overlayProps:{id:i}}}const ys=typeof document<"u"&&window.visualViewport;let oc=0,Z0;function g4(e={}){let{isDisabled:t}=e;we(()=>{if(!t)return oc++,oc===1&&(Sf()?Z0=sj():Z0=oj()),()=>{oc--,oc===0&&Z0()}},[t])}function oj(){let e=window.innerWidth-document.documentElement.clientWidth;return ro(e>0&&("scrollbarGutter"in document.documentElement.style?$0(document.documentElement,"scrollbarGutter","stable"):$0(document.documentElement,"paddingRight",`${e}px`)),$0(document.documentElement,"overflow","hidden"))}function sj(){let e,t=!1,n=s=>{let u=s.target;e=vl(u)?u:_3(u,!0),t=!1;let f=u.ownerDocument.defaultView.getSelection();f&&!f.isCollapsed&&f.containsNode(u,!0)&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},r=document.createElement("style");r.textContent=`
|
|
74
|
+
`.trim(),D.head.prepend(z)},[d]),p.useEffect(()=>{let D=y.current;return()=>{var z;c||Gb((z=D.target)!==null&&z!==void 0?z:void 0);for(let k of D.disposables)k();D.disposables=[]}},[c]),{isPressed:s||m,pressProps:ce(h,V,{[Yb]:!0})}}function Kg(e){return e.tagName==="A"&&e.hasAttribute("href")}function Z0(e,t){const{key:n,code:r}=e,a=t,l=a.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(a instanceof xn(a).HTMLInputElement&&!o4(a,n)||a instanceof xn(a).HTMLTextAreaElement||a.isContentEditable)&&!((l==="link"||!l&&Kg(a))&&n!=="Enter")}function qa(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function $T(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Kg(e)}function Zb(e,t){return e instanceof HTMLInputElement?!o4(e,t):$T(e)}const JT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function o4(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":JT.has(e.type)}let to=null,Up=new Set,ms=new Map,pl=!1,Bp=!1;const eD={Tab:!0,Escape:!0};function Ug(e,t){for(let n of Up)n(e,t)}function tD(e){return!(e.metaKey||!fl()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function kd(e){pl=!0,!Rr.isOpening&&tD(e)&&(to="keyboard",Ug("keyboard",e))}function wi(e){to="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(pl=!0,Ug("pointer",e))}function s4(e){!Rr.isOpening&&q3(e)&&(pl=!0,to="virtual")}function u4(e){e.target===window||e.target===document||Rd||!e.isTrusted||(!pl&&!Bp&&(to="virtual",Ug("virtual",e)),pl=!1,Bp=!1)}function c4(){Rd||(pl=!1,Bp=!0)}function Fp(e){if(typeof window>"u"||typeof document>"u"||ms.get(xn(e)))return;const t=xn(e),n=se(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){pl=!0,r.apply(this,arguments)},n.addEventListener("keydown",kd,!0),n.addEventListener("keyup",kd,!0),n.addEventListener("click",s4,!0),t.addEventListener("focus",u4,!0),t.addEventListener("blur",c4,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",wi,!0),n.addEventListener("pointermove",wi,!0),n.addEventListener("pointerup",wi,!0)),t.addEventListener("beforeunload",()=>{d4(e)},{once:!0}),ms.set(t,{focus:r})}const d4=(e,t)=>{const n=xn(e),r=se(e);t&&r.removeEventListener("DOMContentLoaded",t),ms.has(n)&&(n.HTMLElement.prototype.focus=ms.get(n).focus,r.removeEventListener("keydown",kd,!0),r.removeEventListener("keyup",kd,!0),r.removeEventListener("click",s4,!0),n.removeEventListener("focus",u4,!0),n.removeEventListener("blur",c4,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",wi,!0),r.removeEventListener("pointermove",wi,!0),r.removeEventListener("pointerup",wi,!0)),ms.delete(n))};function nD(e){const t=se(e);let n;return t.readyState!=="loading"?Fp(e):(n=()=>{Fp(e)},t.addEventListener("DOMContentLoaded",n)),()=>d4(e,n)}typeof document<"u"&&nD();function qs(){return to!=="pointer"}function Vs(){return to}const rD=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function aD(e,t,n){let r=se(n==null?void 0:n.target);const a=typeof window<"u"?xn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?xn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?xn(n==null?void 0:n.target).HTMLElement:HTMLElement,o=typeof window<"u"?xn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof a&&!rD.has(r.activeElement.type)||r.activeElement instanceof l||r.activeElement instanceof i&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof o&&!eD[n.key])}function lD(e,t,n){Fp(),p.useEffect(()=>{let r=(a,l)=>{aD(!!(n!=null&&n.isTextInput),a,l)&&e(qs())};return Up.add(r),()=>{Up.delete(r)}},t)}function wa(e){const t=se(e);if(Vs()==="virtual"){let n=st(t);K3(()=>{const r=st(t);(r===n||r===t.body)&&e.isConnected&&Hn(e)})}else Hn(e)}function Bg(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e;const l=p.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),a&&a(!1),!0},[r,a]),i=l4(l),o=p.useCallback(s=>{const u=se(s.target),f=u?st(u):st();s.target===s.currentTarget&&f===qe(s.nativeEvent)&&(n&&n(s),a&&a(!0),i(s))},[a,n,i]);return{focusProps:{onFocus:!t&&(n||a||r)?o:void 0,onBlur:!t&&(r||a)?l:void 0}}}function Wb(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function f4(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Wb(e.onKeyDown),onKeyUp:Wb(e.onKeyUp)}}}let Td=O.createContext(null);function iD(e){let t=p.useContext(Td)||{};Lg(t,e);let{ref:n,...r}=t;return r}const oD=O.forwardRef(function(e,t){let{children:n,...r}=e,a=eo(t),l={...r,ref:a};return O.createElement(Td.Provider,{value:l},n)});function h4(e,t){let{focusProps:n}=Bg(e),{keyboardProps:r}=f4(e),a=ce(n,r),l=iD(t),i=e.isDisabled?{}:l,o=p.useRef(e.autoFocus);p.useEffect(()=>{o.current&&t.current&&wa(t.current),o.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:ce({...a,tabIndex:s},i)}}const p4=O.forwardRef(({children:e,...t},n)=>{let r=p.useRef(!1),a=p.useContext(Fs);n=eo(n||(a==null?void 0:a.ref));let l=ce(a||{},{...t,ref:n,register(){r.current=!0,a&&a.register()}});return Lg(a,n),p.useEffect(()=>{r.current||(r.current=!0)},[]),O.createElement(Fs.Provider,{value:l},e)});function sD({children:e}){let t=p.useMemo(()=>({register:()=>{}}),[]);return O.createElement(Fs.Provider,{value:t},e)}function Fg(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:a}=e,l=p.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:o}=Mf(),s=p.useCallback(c=>{c.currentTarget.contains(c.target)&&l.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(l.current.isFocusWithin=!1,o(),n&&n(c),a&&a(!1))},[n,a,l,o]),u=l4(s),f=p.useCallback(c=>{if(!c.currentTarget.contains(c.target))return;const d=se(c.target),h=st(d);if(!l.current.isFocusWithin&&h===qe(c.nativeEvent)){r&&r(c),a&&a(!0),l.current.isFocusWithin=!0,u(c);let m=c.currentTarget;i(d,"focus",v=>{if(l.current.isFocusWithin&&!cn(m,v.target)){let y=new d.defaultView.FocusEvent("blur",{relatedTarget:v.target});a4(y,m);let b=Hg(y);s(b)}},{capture:!0})}},[r,a,u,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:s}}}let qp=!1,ic=0;function uD(){qp=!0,setTimeout(()=>{qp=!1},50)}function $b(e){e.pointerType==="touch"&&uD()}function cD(){if(!(typeof document>"u"))return ic===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",$b),ic++,()=>{ic--,!(ic>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",$b)}}function no(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:a}=e,[l,i]=p.useState(!1),o=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(cD,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=Mf(),{hoverProps:f,triggerHoverEnd:c}=p.useMemo(()=>{let d=(v,y)=>{if(o.pointerType=y,a||y==="touch"||o.isHovered||!v.currentTarget.contains(v.target))return;o.isHovered=!0;let b=v.currentTarget;o.target=b,s(se(v.target),"pointerover",g=>{o.isHovered&&o.target&&!cn(o.target,g.target)&&h(g,g.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:b,pointerType:y}),n&&n(!0),i(!0)},h=(v,y)=>{let b=o.target;o.pointerType="",o.target=null,!(y==="touch"||!o.isHovered||!b)&&(o.isHovered=!1,u(),r&&r({type:"hoverend",target:b,pointerType:y}),n&&n(!1),i(!1))},m={};return typeof PointerEvent<"u"&&(m.onPointerEnter=v=>{qp&&v.pointerType==="mouse"||d(v,v.pointerType)},m.onPointerLeave=v=>{!a&&v.currentTarget.contains(v.target)&&h(v,v.pointerType)}),{hoverProps:m,triggerHoverEnd:h}},[t,n,r,a,o,s,u]);return p.useEffect(()=>{a&&c({currentTarget:o.target},o.pointerType)},[a]),{hoverProps:f,isHovered:l}}function dD(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:a}=e,l=p.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=ea(s=>{n&&Jb(s,t)&&(a&&a(s),l.current.isPointerDown=!0)}),o=ea(s=>{n&&n(s)});p.useEffect(()=>{let s=l.current;if(r)return;const u=t.current,f=se(u);if(typeof PointerEvent<"u"){let c=d=>{s.isPointerDown&&Jb(d,t)&&o(d),s.isPointerDown=!1};return f.addEventListener("pointerdown",i,!0),f.addEventListener("click",c,!0),()=>{f.removeEventListener("pointerdown",i,!0),f.removeEventListener("click",c,!0)}}},[t,r])}function Jb(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const fD=500;function m4(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:a,threshold:l=fD,accessibilityDescription:i}=e;const o=p.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=Mf(),{pressProps:f}=kf({isDisabled:t,onPressStart(d){if(d.continuePropagation(),(d.pointerType==="mouse"||d.pointerType==="touch")&&(n&&n({...d,type:"longpressstart"}),o.current=setTimeout(()=>{d.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),se(d.target).activeElement!==d.target&&Hn(d.target),a&&a({...d,type:"longpress"}),o.current=void 0},l),d.pointerType==="touch")){let h=m=>{m.preventDefault()};s(d.target,"contextmenu",h,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(d.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(d){o.current&&clearTimeout(o.current),r&&(d.pointerType==="mouse"||d.pointerType==="touch")&&r({...d,type:"longpressend"})}}),c=aT(a&&!t?i:void 0);return{longPressProps:ce(f,c)}}const ey=O.createContext(null),Vp="react-aria-focus-scope-restore";let Re=null;function g4(e){let{children:t,contain:n,restoreFocus:r,autoFocus:a}=e,l=p.useRef(null),i=p.useRef(null),o=p.useRef([]),{parentNode:s}=p.useContext(ey)||{},u=p.useMemo(()=>new Qp({scopeRef:o}),[o]);ge(()=>{let d=s||Ie.root;if(Ie.getTreeNode(d.scopeRef)&&Re&&!Dd(Re,d.scopeRef)){let h=Ie.getTreeNode(Re);h&&(d=h)}d.addChild(u),Ie.addNode(u)},[u,s]),ge(()=>{let d=Ie.getTreeNode(o);d&&(d.contain=!!n)},[n]),ge(()=>{var d;let h=(d=l.current)===null||d===void 0?void 0:d.nextSibling,m=[],v=y=>y.stopPropagation();for(;h&&h!==i.current;)m.push(h),h.addEventListener(Vp,v),h=h.nextSibling;return o.current=m,()=>{for(let y of m)y.removeEventListener(Vp,v)}},[t]),bD(o,r,n),mD(o,n),yD(o,r,n),vD(o,a),p.useEffect(()=>{const d=st(se(o.current?o.current[0]:void 0));let h=null;if(Mn(d,o.current)){for(let m of Ie.traverse())m.scopeRef&&Mn(d,m.scopeRef.current)&&(h=m);h===Ie.getTreeNode(o)&&(Re=h.scopeRef)}},[o]),ge(()=>()=>{var d,h,m;let v=(m=(h=Ie.getTreeNode(o))===null||h===void 0||(d=h.parent)===null||d===void 0?void 0:d.scopeRef)!==null&&m!==void 0?m:null;(o===Re||Dd(o,Re))&&(!v||Ie.getTreeNode(v))&&(Re=v),Ie.removeTreeNode(o)},[o]);let f=p.useMemo(()=>hD(o),[]),c=p.useMemo(()=>({focusManager:f,parentNode:u}),[u,f]);return O.createElement(ey.Provider,{value:c},O.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:l}),t,O.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function hD(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:a,wrap:l,accept:i}=t;var o;let s=r||st(se((o=n[0])!==null&&o!==void 0?o:void 0)),u=n[0].previousElementSibling,f=Ja(n),c=Zt(f,{tabbable:a,accept:i},n);c.currentNode=Mn(s,n)?s:u;let d=c.nextNode();return!d&&l&&(c.currentNode=u,d=c.nextNode()),d&&_t(d,!0),d},focusPrevious(t={}){let n=e.current,{from:r,tabbable:a,wrap:l,accept:i}=t;var o;let s=r||st(se((o=n[0])!==null&&o!==void 0?o:void 0)),u=n[n.length-1].nextElementSibling,f=Ja(n),c=Zt(f,{tabbable:a,accept:i},n);c.currentNode=Mn(s,n)?s:u;let d=c.previousNode();return!d&&l&&(c.currentNode=u,d=c.previousNode()),d&&_t(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:a}=t,l=Ja(n),i=Zt(l,{tabbable:r,accept:a},n);i.currentNode=n[0].previousElementSibling;let o=i.nextNode();return o&&_t(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:a}=t,l=Ja(n),i=Zt(l,{tabbable:r,accept:a},n);i.currentNode=n[n.length-1].nextElementSibling;let o=i.previousNode();return o&&_t(o,!0),o}}}function Ja(e){return e[0].parentElement}function Wo(e){let t=Ie.getTreeNode(Re);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function pD(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...se(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(a=>!a.form);else{var n,r;t=[...((r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name))??[]]}return t?!t.some(a=>a.checked):!1}function mD(e,t){let n=p.useRef(void 0),r=p.useRef(void 0);ge(()=>{let a=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const l=se(a?a[0]:void 0);let i=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Wo(e)||u.isComposing)return;let f=st(l),c=e.current;if(!c||!Mn(f,c))return;let d=Ja(c),h=Zt(d,{tabbable:!0},c);if(!f)return;h.currentNode=f;let m=u.shiftKey?h.previousNode():h.nextNode();m||(h.currentNode=u.shiftKey?c[c.length-1].nextElementSibling:c[0].previousElementSibling,m=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),m&&_t(m,!0)},o=u=>{(!Re||Dd(Re,e))&&Mn(qe(u),e.current)?(Re=e,n.current=qe(u)):Wo(e)&&!ta(qe(u),e)?n.current?n.current.focus():Re&&Re.current&&Gp(Re.current):Wo(e)&&(n.current=qe(u))},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let f=Vs(),c=(f==="virtual"||f===null)&&Ag()&&H3(),d=st(l);if(!c&&d&&Wo(e)&&!ta(d,e)){Re=e;let m=qe(u);if(m&&m.isConnected){var h;n.current=m,(h=n.current)===null||h===void 0||h.focus()}else Re.current&&Gp(Re.current)}})};return l.addEventListener("keydown",i,!1),l.addEventListener("focusin",o,!1),a==null||a.forEach(u=>u.addEventListener("focusin",o,!1)),a==null||a.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{l.removeEventListener("keydown",i,!1),l.removeEventListener("focusin",o,!1),a==null||a.forEach(u=>u.removeEventListener("focusin",o,!1)),a==null||a.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),ge(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function v4(e){return ta(e)}function Mn(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function ta(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ie.traverse(Ie.getTreeNode(t)))if(n&&Mn(e,n.current))return!0;return!1}function gD(e){return ta(e,Re)}function Dd(e,t){var n;let r=(n=Ie.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function _t(e,t=!1){if(e!=null&&!t)try{wa(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function b4(e,t=!0){let n=e[0].previousElementSibling,r=Ja(e),a=Zt(r,{tabbable:t},e);a.currentNode=n;let l=a.nextNode();return t&&!l&&(r=Ja(e),a=Zt(r,{tabbable:!1},e),a.currentNode=n,l=a.nextNode()),l}function Gp(e,t=!0){_t(b4(e,t))}function vD(e,t){const n=O.useRef(t);p.useEffect(()=>{if(n.current){Re=e;const r=se(e.current?e.current[0]:void 0);!Mn(st(r),Re.current)&&e.current&&Gp(e.current)}n.current=!1},[e])}function bD(e,t,n){ge(()=>{if(t||n)return;let r=e.current;const a=se(r?r[0]:void 0);let l=i=>{let o=qe(i);Mn(o,e.current)?Re=e:v4(o)||(Re=null)};return a.addEventListener("focusin",l,!1),r==null||r.forEach(i=>i.addEventListener("focusin",l,!1)),()=>{a.removeEventListener("focusin",l,!1),r==null||r.forEach(i=>i.removeEventListener("focusin",l,!1))}},[e,t,n])}function ty(e){let t=Ie.getTreeNode(Re);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function yD(e,t,n){const r=p.useRef(typeof document<"u"?st(se(e.current?e.current[0]:void 0)):null);ge(()=>{let a=e.current;const l=se(a?a[0]:void 0);if(!t||n)return;let i=()=>{(!Re||Dd(Re,e))&&Mn(st(l),e.current)&&(Re=e)};return l.addEventListener("focusin",i,!1),a==null||a.forEach(o=>o.addEventListener("focusin",i,!1)),()=>{l.removeEventListener("focusin",i,!1),a==null||a.forEach(o=>o.removeEventListener("focusin",i,!1))}},[e,n]),ge(()=>{const a=se(e.current?e.current[0]:void 0);if(!t)return;let l=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!Wo(e)||i.isComposing)return;let o=a.activeElement;if(!ta(o,e)||!ty(e))return;let s=Ie.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,f=Zt(a.body,{tabbable:!0});f.currentNode=o;let c=i.shiftKey?f.previousNode():f.nextNode();if((!u||!u.isConnected||u===a.body)&&(u=void 0,s.nodeToRestore=void 0),(!c||!ta(c,e))&&u){f.currentNode=u;do c=i.shiftKey?f.previousNode():f.nextNode();while(ta(c,e));i.preventDefault(),i.stopPropagation(),c?_t(c,!0):v4(u)?_t(u,!0):o.blur()}};return n||a.addEventListener("keydown",l,!0),()=>{n||a.removeEventListener("keydown",l,!0)}},[e,t,n]),ge(()=>{const a=se(e.current?e.current[0]:void 0);if(!t)return;let l=Ie.getTreeNode(e);if(l){var i;return l.nodeToRestore=(i=r.current)!==null&&i!==void 0?i:void 0,()=>{let o=Ie.getTreeNode(e);if(!o)return;let s=o.nodeToRestore,u=st(a);if(t&&s&&(u&&ta(u,e)||u===a.body&&ty(e))){let f=Ie.clone();requestAnimationFrame(()=>{if(a.activeElement===a.body){let c=f.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){ny(c.nodeToRestore);return}c=c.parent}for(c=f.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Ie.getTreeNode(c.scopeRef)){let d=b4(c.scopeRef.current,!0);ny(d);return}c=c.parent}}})}}}},[e,t])}function ny(e){e.dispatchEvent(new CustomEvent(Vp,{bubbles:!0,cancelable:!0}))&&_t(e)}function Zt(e,t,n){let r=t!=null&&t.tabbable?Q3:G3,a=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,l=se(a),i=Ak(l,e||l,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(o)||t!=null&&t.tabbable&&o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(!pD(o)||i.currentNode.tagName==="INPUT"&&i.currentNode.type==="radio"&&i.currentNode.name===o.name)?NodeFilter.FILTER_REJECT:r(o)&&(!n||Mn(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function xD(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:a,tabbable:l=t.tabbable,wrap:i=t.wrap,accept:o=t.accept}=n,s=a||st(se(r)),u=Zt(r,{tabbable:l,accept:o});r.contains(s)&&(u.currentNode=s);let f=u.nextNode();return!f&&i&&(u.currentNode=r,f=u.nextNode()),f&&_t(f,!0),f},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:a,tabbable:l=t.tabbable,wrap:i=t.wrap,accept:o=t.accept}=n,s=a||st(se(r)),u=Zt(r,{tabbable:l,accept:o});if(r.contains(s))u.currentNode=s;else{let c=W0(u);return c&&_t(c,!0),c??null}let f=u.previousNode();if(!f&&i){u.currentNode=r;let c=W0(u);if(!c)return null;f=c}return f&&_t(f,!0),f??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:l=t.accept}=n,i=Zt(r,{tabbable:a,accept:l}).nextNode();return i&&_t(i,!0),i},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:l=t.accept}=n,i=Zt(r,{tabbable:a,accept:l}),o=W0(i);return o&&_t(o,!0),o??null}}}function W0(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class qg{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let a=this.fastMap.get(n??null);if(!a)return;let l=new Qp({scopeRef:t});a.addChild(l),l.parent=a,this.fastMap.set(t,l),r&&(l.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let l of this.traverse())l!==n&&n.nodeToRestore&&l.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Mn(l.nodeToRestore,n.scopeRef.current)&&(l.nodeToRestore=n.nodeToRestore);let a=n.children;r&&(r.removeChild(n),a.size>0&&a.forEach(l=>r&&r.addChild(l))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new qg;var r;for(let a of this.traverse())n.addTreeNode(a.scopeRef,(r=(t=a.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,a.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Qp({scopeRef:null}),this.fastMap.set(null,this.root)}}class Qp{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Ie=new qg;function y4(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,a=p.useRef({isFocused:!1,isFocusVisible:t||qs()}),[l,i]=p.useState(!1),[o,s]=p.useState(()=>a.current.isFocused&&a.current.isFocusVisible),u=p.useCallback(()=>s(a.current.isFocused&&a.current.isFocusVisible),[]),f=p.useCallback(h=>{a.current.isFocused=h,i(h),u()},[u]);lD(h=>{a.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:c}=Bg({isDisabled:r,onFocusChange:f}),{focusWithinProps:d}=Fg({isDisabled:!r,onFocusWithinChange:f});return{isFocused:l,isFocusVisible:o,focusProps:r?d:c}}function x4(e){let t=SD(se(e));t!==e&&(t&&wD(t,e),e&&w4(e,t))}function wD(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function w4(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function SD(e){let t=st(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}const Vn=[];function S4(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:a,isDismissable:l=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:o}=e;p.useEffect(()=>{if(a&&!Vn.includes(t))return Vn.push(t),()=>{let m=Vn.indexOf(t);m>=0&&Vn.splice(m,1)}},[a,t]);let s=()=>{Vn[Vn.length-1]===t&&n&&n()},u=m=>{(!o||o(m.target))&&Vn[Vn.length-1]===t&&(m.stopPropagation(),m.preventDefault())},f=m=>{(!o||o(m.target))&&(Vn[Vn.length-1]===t&&(m.stopPropagation(),m.preventDefault()),s())},c=m=>{m.key==="Escape"&&!i&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),s())};dD({ref:t,onInteractOutside:l&&a?f:void 0,onInteractOutsideStart:u});let{focusWithinProps:d}=Fg({isDisabled:!r,onBlurWithin:m=>{!m.relatedTarget||gD(m.relatedTarget)||(!o||o(m.relatedTarget))&&(n==null||n())}}),h=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:c,...d},underlayProps:{onPointerDown:h}}}function C4(e,t,n){let{type:r}=e,{isOpen:a}=t;p.useEffect(()=>{n&&n.current&&$3.set(n.current,t.close)});let l;r==="menu"?l=!0:r==="listbox"&&(l="listbox");let i=an();return{triggerProps:{"aria-haspopup":l,"aria-expanded":a,"aria-controls":a?i:void 0,onPress:t.toggle},overlayProps:{id:i}}}const gs=typeof document<"u"&&window.visualViewport;let oc=0,$0;function E4(e={}){let{isDisabled:t}=e;ge(()=>{if(!t)return oc++,oc===1&&(Cf()?$0=ED():$0=CD()),()=>{oc--,oc===0&&$0()}},[t])}function CD(){let e=window.innerWidth-document.documentElement.clientWidth;return Ji(e>0&&("scrollbarGutter"in document.documentElement.style?J0(document.documentElement,"scrollbarGutter","stable"):J0(document.documentElement,"paddingRight",`${e}px`)),J0(document.documentElement,"overflow","hidden"))}function ED(){let e,t=!1,n=s=>{let u=s.target;e=hl(u)?u:B3(u,!0),t=!1;let f=u.ownerDocument.defaultView.getSelection();f&&!f.isCollapsed&&f.containsNode(u,!0)&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},r=document.createElement("style");r.textContent=`
|
|
75
75
|
@layer {
|
|
76
76
|
* {
|
|
77
77
|
overscroll-behavior: contain;
|
|
78
78
|
}
|
|
79
|
-
}`.trim(),document.head.prepend(r);let a=s=>{if(!(s.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){s.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&s.preventDefault()}},l=s=>{let u=s.target,f=s.relatedTarget;if(f&&vs(f))f.focus({preventScroll:!0}),ty(f,vs(u));else if(!f){var c;let d=(c=u.parentElement)===null||c===void 0?void 0:c.closest("[tabindex]");d==null||d.focus({preventScroll:!0})}},i=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(s){let u=document.activeElement!=null&&vs(document.activeElement);i.call(this,{...s,preventScroll:!0}),(!s||!s.preventScroll)&&ty(this,u)};let o=ro(W0(document,"touchstart",n,{passive:!1,capture:!0}),W0(document,"touchmove",a,{passive:!1,capture:!0}),W0(document,"blur",l,!0));return()=>{o(),r.remove(),HTMLElement.prototype.focus=i}}function $0(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function W0(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function ty(e,t){t||!ys?ny(e):ys.addEventListener("resize",()=>ny(e),{once:!0})}function ny(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=_3(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let a=r.getBoundingClientRect(),l=n.getBoundingClientRect();if(l.top<a.top||l.bottom>a.top+n.clientHeight){let i=a.bottom;ys&&(i=Math.min(i,ys.offsetTop+ys.height));let o=l.top-a.top-((i-a.top)/2-l.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+o)),behavior:"smooth"})}}n=r.parentElement}}const uj=p.createContext({});function v4(){var e;return(e=p.useContext(uj))!==null&&e!==void 0?e:{}}const Gp=O.createContext(null);function cj(e){let{children:t}=e,n=p.useContext(Gp),[r,a]=p.useState(0),l=p.useMemo(()=>({parent:n,modalCount:r,addModal(){a(i=>i+1),n&&n.addModal()},removeModal(){a(i=>i-1),n&&n.removeModal()}}),[n,r]);return O.createElement(Gp.Provider,{value:l},t)}function dj(){let e=p.useContext(Gp);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function fj(e){let{modalProviderProps:t}=dj();return O.createElement("div",{"data-overlay-container":!0,...e,...t})}function hj(e){return O.createElement(cj,null,O.createElement(fj,e))}function pj(e){let t=ja(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:a}=v4();if(!e.portalContainer&&a&&(n=a()),O.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let l=O.createElement(hj,r);return gm.createPortal(l,n)}var b4={};b4={dismiss:"تجاهل"};var y4={};y4={dismiss:"Отхвърляне"};var x4={};x4={dismiss:"Odstranit"};var w4={};w4={dismiss:"Luk"};var C4={};C4={dismiss:"Schließen"};var S4={};S4={dismiss:"Απόρριψη"};var E4={};E4={dismiss:"Dismiss"};var M4={};M4={dismiss:"Descartar"};var O4={};O4={dismiss:"Lõpeta"};var R4={};R4={dismiss:"Hylkää"};var T4={};T4={dismiss:"Rejeter"};var k4={};k4={dismiss:"התעלם"};var j4={};j4={dismiss:"Odbaci"};var D4={};D4={dismiss:"Elutasítás"};var N4={};N4={dismiss:"Ignora"};var A4={};A4={dismiss:"閉じる"};var L4={};L4={dismiss:"무시"};var _4={};_4={dismiss:"Atmesti"};var z4={};z4={dismiss:"Nerādīt"};var P4={};P4={dismiss:"Lukk"};var H4={};H4={dismiss:"Negeren"};var K4={};K4={dismiss:"Zignoruj"};var U4={};U4={dismiss:"Descartar"};var B4={};B4={dismiss:"Dispensar"};var q4={};q4={dismiss:"Revocare"};var F4={};F4={dismiss:"Пропустить"};var V4={};V4={dismiss:"Zrušiť"};var G4={};G4={dismiss:"Opusti"};var Q4={};Q4={dismiss:"Odbaci"};var I4={};I4={dismiss:"Avvisa"};var X4={};X4={dismiss:"Kapat"};var Y4={};Y4={dismiss:"Скасувати"};var Z4={};Z4={dismiss:"取消"};var $4={};$4={dismiss:"關閉"};var W4={};W4={"ar-AE":b4,"bg-BG":y4,"cs-CZ":x4,"da-DK":w4,"de-DE":C4,"el-GR":S4,"en-US":E4,"es-ES":M4,"et-EE":O4,"fi-FI":R4,"fr-FR":T4,"he-IL":k4,"hr-HR":j4,"hu-HU":D4,"it-IT":N4,"ja-JP":A4,"ko-KR":L4,"lt-LT":_4,"lv-LV":z4,"nb-NO":P4,"nl-NL":H4,"pl-PL":K4,"pt-BR":U4,"pt-PT":B4,"ro-RO":q4,"ru-RU":F4,"sk-SK":V4,"sl-SI":G4,"sr-SP":Q4,"sv-SE":I4,"tr-TR":X4,"uk-UA":Y4,"zh-CN":Z4,"zh-TW":$4};const ry={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function mj(e={}){let{style:t,isFocusable:n}=e,[r,a]=p.useState(!1),{focusWithinProps:l}=Ug({isDisabled:!n,onFocusWithinChange:o=>a(o)}),i=p.useMemo(()=>r?t:t?{...ry,...t}:ry,[r]);return{visuallyHiddenProps:{...l,style:i}}}function gj(e){let{children:t,elementType:n="div",isFocusable:r,style:a,...l}=e,{visuallyHiddenProps:i}=mj(e);return O.createElement(n,ue(l,i),t)}function vj(e){return e&&e.__esModule?e.default:e}function Qp(e){let{onDismiss:t,...n}=e,r=I3(vj(W4),"@react-aria/overlays"),a=L3(n,r.format("dismiss")),l=()=>{t&&t()};return O.createElement(gj,null,O.createElement("button",{...a,tabIndex:-1,onClick:l,style:{width:1,height:1}}))}const bj=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let Ko=new WeakMap,kt=[];function J4(e,t){let n=xn(e==null?void 0:e[0]),r=t instanceof n.Element?{root:t}:t;var a;let l=(a=r==null?void 0:r.root)!==null&&a!==void 0?a:document.body,i=(r==null?void 0:r.shouldUseInert)&&bj,o=new Set(e),s=new Set,u=b=>i&&b instanceof n.HTMLElement?b.inert:b.getAttribute("aria-hidden")==="true",f=(b,y)=>{i&&b instanceof n.HTMLElement?b.inert=y:y?b.setAttribute("aria-hidden","true"):(b.removeAttribute("aria-hidden"),b instanceof n.HTMLElement&&(b.inert=!1))},c=b=>{for(let x of b.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))o.add(x);let y=x=>{if(s.has(x)||o.has(x)||x.parentElement&&s.has(x.parentElement)&&x.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let C of o)if(x.contains(C))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},v=document.createTreeWalker(b,NodeFilter.SHOW_ELEMENT,{acceptNode:y}),g=y(b);if(g===NodeFilter.FILTER_ACCEPT&&d(b),g!==NodeFilter.FILTER_REJECT){let x=v.nextNode();for(;x!=null;)d(x),x=v.nextNode()}},d=b=>{var y;let v=(y=Ko.get(b))!==null&&y!==void 0?y:0;u(b)&&v===0||(v===0&&f(b,!0),s.add(b),Ko.set(b,v+1))};kt.length&&kt[kt.length-1].disconnect(),c(l);let h=new MutationObserver(b=>{for(let y of b)if(y.type==="childList"&&![...o,...s].some(v=>v.contains(y.target)))for(let v of y.addedNodes)(v instanceof HTMLElement||v instanceof SVGElement)&&(v.dataset.liveAnnouncer==="true"||v.dataset.reactAriaTopLayer==="true")?o.add(v):v instanceof Element&&c(v)});h.observe(l,{childList:!0,subtree:!0});let m={visibleNodes:o,hiddenNodes:s,observe(){h.observe(l,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return kt.push(m),()=>{h.disconnect();for(let b of s){let y=Ko.get(b);y!=null&&(y===1?(f(b,!1),Ko.delete(b)):Ko.set(b,y-1))}m===kt[kt.length-1]?(kt.pop(),kt.length&&kt[kt.length-1].observe()):kt.splice(kt.indexOf(m),1)}}function yj(e){let t=kt[kt.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function xj(e,t){let{triggerRef:n,popoverRef:r,groupRef:a,isNonModal:l,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:o,...s}=e,u=s.trigger==="SubmenuTrigger",{overlayProps:f,underlayProps:c}=p4({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!l||u,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:o},a??r),{overlayProps:d,arrowProps:h,placement:m,triggerAnchorPoint:b}=Y3({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:l&&!u?t.close:null});return g4({isDisabled:l||!t.isOpen}),p.useEffect(()=>{if(t.isOpen&&r.current){var y,v;return l?yj((y=a==null?void 0:a.current)!==null&&y!==void 0?y:r.current):J4([(v=a==null?void 0:a.current)!==null&&v!==void 0?v:r.current],{shouldUseInert:!0})}},[l,t.isOpen,r,a]),{popoverProps:ue(f,d),arrowProps:h,underlayProps:c,placement:m,triggerAnchorPoint:b}}const e7=O.createContext(null);function Ip(e){let t=ja(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[a,l]=p.useState(!1),i=p.useMemo(()=>({contain:a,setContain:l}),[a,l]),{getContainer:o}=v4();if(!e.portalContainer&&o&&(n=o()),!n)return null;let s=e.children;return e.disableFocusManagement||(s=O.createElement(s4,{restoreFocus:!0,contain:(e.shouldContainFocus||a)&&!r},s)),s=O.createElement(e7.Provider,{value:i},O.createElement(Qk,null,s)),gm.createPortal(s,n)}function t7(){let e=p.useContext(e7),t=e==null?void 0:e.setContain;we(()=>{t==null||t(!0)},[t])}function wj(e,t,n){let{overlayProps:r,underlayProps:a}=p4({...e,isOpen:t.isOpen,onClose:t.close},n);return g4({isDisabled:!t.isOpen}),t7(),p.useEffect(()=>{if(t.isOpen&&n.current)return J4([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:ue(r),underlayProps:a}}function Cj(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:l="label"}=e;t=ln(t);let i=ln(),o={};n&&(r=r?`${i} ${r}`:i,o={id:i,htmlFor:l==="label"?t:void 0});let s=L3({id:t,"aria-label":a,"aria-labelledby":r});return{labelProps:o,fieldProps:s}}function Xp(e){return TT()?e.altKey:e.ctrlKey}function Bc(e,t){var n,r;let a=`[data-key="${CSS.escape(String(t))}"]`,l=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return l&&(a=`[data-collection="${CSS.escape(l)}"]${a}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(a)}const n7=new WeakMap;function Sj(e){let t=ln();return n7.set(e,t),t}function Ej(e){return n7.get(e)}const Mj=1e3;function Oj(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,a=p.useRef({search:"",timeout:void 0}).current,l=i=>{let o=Rj(i.key);if(!(!o||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target)||a.search.length===0&&o===" ")){if(o===" "&&a.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),a.search+=o,t.getKeyForSearch!=null){let s=t.getKeyForSearch(a.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(a.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(a.timeout),a.timeout=setTimeout(()=>{a.search=""},Mj)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?l:void 0}}}function Rj(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Tj(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:a=!1,shouldFocusWrap:l=!1,disallowEmptySelection:i=!1,disallowSelectAll:o=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:f=!1,shouldUseVirtualFocus:c,allowsTabNavigation:d=!1,isVirtualized:h,scrollRef:m=r,linkBehavior:b="action"}=e,{direction:y}=Rl(),v=Ef(),g=k=>{var _;if(k.altKey&&k.key==="Tab"&&k.preventDefault(),!(!((_=r.current)===null||_===void 0)&&_.contains(k.target)))return;const U=(Z,kn)=>{if(Z!=null){if(t.isLink(Z)&&b==="selection"&&u&&!Xp(k)){Js.flushSync(()=>{t.setFocusedKey(Z,kn)});let Ht=Bc(r,Z),Na=t.getItemProps(Z);Ht&&v.open(Ht,k,Na.href,Na.routerOptions);return}if(t.setFocusedKey(Z,kn),t.isLink(Z)&&b==="override")return;k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):u&&!Xp(k)&&t.replaceSelection(Z)}};switch(k.key){case"ArrowDown":if(n.getKeyBelow){var F,G,K;let Z=t.focusedKey!=null?(F=n.getKeyBelow)===null||F===void 0?void 0:F.call(n,t.focusedKey):(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n);Z==null&&l&&(Z=(K=n.getFirstKey)===null||K===void 0?void 0:K.call(n,t.focusedKey)),Z!=null&&(k.preventDefault(),U(Z))}break;case"ArrowUp":if(n.getKeyAbove){var V,I,J;let Z=t.focusedKey!=null?(V=n.getKeyAbove)===null||V===void 0?void 0:V.call(n,t.focusedKey):(I=n.getLastKey)===null||I===void 0?void 0:I.call(n);Z==null&&l&&(Z=(J=n.getLastKey)===null||J===void 0?void 0:J.call(n,t.focusedKey)),Z!=null&&(k.preventDefault(),U(Z))}break;case"ArrowLeft":if(n.getKeyLeftOf){var et,ve,tt;let Z=t.focusedKey!=null?(et=n.getKeyLeftOf)===null||et===void 0?void 0:et.call(n,t.focusedKey):null;Z==null&&l&&(Z=y==="rtl"?(ve=n.getFirstKey)===null||ve===void 0?void 0:ve.call(n,t.focusedKey):(tt=n.getLastKey)===null||tt===void 0?void 0:tt.call(n,t.focusedKey)),Z!=null&&(k.preventDefault(),U(Z,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var sn,Fn,Tn;let Z=t.focusedKey!=null?(sn=n.getKeyRightOf)===null||sn===void 0?void 0:sn.call(n,t.focusedKey):null;Z==null&&l&&(Z=y==="rtl"?(Fn=n.getLastKey)===null||Fn===void 0?void 0:Fn.call(n,t.focusedKey):(Tn=n.getFirstKey)===null||Tn===void 0?void 0:Tn.call(n,t.focusedKey)),Z!=null&&(k.preventDefault(),U(Z,y==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&k.shiftKey)return;k.preventDefault();let Z=n.getFirstKey(t.focusedKey,$l(k));t.setFocusedKey(Z),Z!=null&&($l(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):u&&t.replaceSelection(Z))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&k.shiftKey)return;k.preventDefault();let Z=n.getLastKey(t.focusedKey,$l(k));t.setFocusedKey(Z),Z!=null&&($l(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Z):u&&t.replaceSelection(Z))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Z=n.getKeyPageBelow(t.focusedKey);Z!=null&&(k.preventDefault(),U(Z))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Z=n.getKeyPageAbove(t.focusedKey);Z!=null&&(k.preventDefault(),U(Z))}break;case"a":$l(k)&&t.selectionMode==="multiple"&&o!==!0&&(k.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(k.stopPropagation(),k.preventDefault(),t.clearSelection());break;case"Tab":if(!d){if(k.shiftKey)r.current.focus();else{let Z=$t(r.current,{tabbable:!0}),kn,Ht;do Ht=Z.lastChild(),Ht&&(kn=Ht);while(Ht);kn&&!kn.contains(document.activeElement)&&Kn(kn)}break}}},x=p.useRef({top:0,left:0});nc(m,"scroll",h?void 0:()=>{var k,_,U,F;x.current={top:(U=(k=m.current)===null||k===void 0?void 0:k.scrollTop)!==null&&U!==void 0?U:0,left:(F=(_=m.current)===null||_===void 0?void 0:_.scrollLeft)!==null&&F!==void 0?F:0}});let C=k=>{if(t.isFocused){k.currentTarget.contains(k.target)||t.setFocused(!1);return}if(k.currentTarget.contains(k.target)){if(t.setFocused(!0),t.focusedKey==null){var _,U;let K=I=>{I!=null&&(t.setFocusedKey(I),u&&!t.isSelected(I)&&t.replaceSelection(I))},V=k.relatedTarget;var F,G;V&&k.currentTarget.compareDocumentPosition(V)&Node.DOCUMENT_POSITION_FOLLOWING?K((F=t.lastSelectedKey)!==null&&F!==void 0?F:(_=n.getLastKey)===null||_===void 0?void 0:_.call(n)):K((G=t.firstSelectedKey)!==null&&G!==void 0?G:(U=n.getFirstKey)===null||U===void 0?void 0:U.call(n))}else!h&&m.current&&(m.current.scrollTop=x.current.top,m.current.scrollLeft=x.current.left);if(t.focusedKey!=null&&m.current){let K=Bc(r,t.focusedKey);K instanceof HTMLElement&&(!K.contains(document.activeElement)&&!c&&Kn(K),Qs()==="keyboard"&&Nb(K,{containingElement:r.current}))}}},E=k=>{k.currentTarget.contains(k.relatedTarget)||t.setFocused(!1)},S=p.useRef(!1);nc(r,GT,c?k=>{let{detail:_}=k;k.stopPropagation(),t.setFocused(!0),(_==null?void 0:_.focusStrategy)==="first"&&(S.current=!0)}:void 0);let M=xt(()=>{var k,_;let U=(_=(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n))!==null&&_!==void 0?_:null;if(U==null){let F=ot();f4(r.current),h4(F,null),t.collection.size>0&&(S.current=!1)}else t.setFocusedKey(U),S.current=!1});kb(()=>{S.current&&M()},[t.collection,M]);let A=xt(()=>{t.collection.size>0&&(S.current=!1)});kb(()=>{A()},[t.focusedKey,A]),nc(r,VT,c?k=>{var _;k.stopPropagation(),t.setFocused(!1),!((_=k.detail)===null||_===void 0)&&_.clearFocusKey&&t.setFocusedKey(null)}:void 0);const D=p.useRef(a),N=p.useRef(!1);p.useEffect(()=>{if(D.current){var k,_;let G=null;var U;a==="first"&&(G=(U=(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n))!==null&&U!==void 0?U:null);var F;a==="last"&&(G=(F=(_=n.getLastKey)===null||_===void 0?void 0:_.call(n))!==null&&F!==void 0?F:null);let K=t.selectedKeys;if(K.size){for(let V of K)if(t.canSelectItem(V)){G=V;break}}t.setFocused(!0),t.setFocusedKey(G),G==null&&!c&&r.current&&Sa(r.current),t.collection.size>0&&(D.current=!1,N.current=!0)}});let j=p.useRef(t.focusedKey),z=p.useRef(null);p.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==j.current||N.current)&&m.current&&r.current){let k=Qs(),_=Bc(r,t.focusedKey);if(!(_ instanceof HTMLElement))return;(k==="keyboard"||N.current)&&(z.current&&cancelAnimationFrame(z.current),z.current=requestAnimationFrame(()=>{m.current&&(z3(m.current,_),k!=="virtual"&&Nb(_,{containingElement:r.current}))}))}!c&&t.isFocused&&t.focusedKey==null&&j.current!=null&&r.current&&Sa(r.current),j.current=t.focusedKey,N.current=!1}),p.useEffect(()=>()=>{z.current&&cancelAnimationFrame(z.current)},[]),nc(r,"react-aria-focus-scope-restore",k=>{k.preventDefault(),t.setFocused(!0)});let B={onKeyDown:g,onFocus:C,onBlur:E,onMouseDown(k){m.current===k.target&&k.preventDefault()}},{typeSelectProps:L}=Oj({keyboardDelegate:n,selectionManager:t});f||(B=ue(L,B));let P;c||(P=t.focusedKey==null?0:-1);let T=Sj(t.collection);return{collectionProps:ue(B,{tabIndex:P,"data-collection":T})}}function kj(e){let{id:t,selectionManager:n,key:r,ref:a,shouldUseVirtualFocus:l,focus:i,isDisabled:o,onAction:s,linkBehavior:u="action"}=e,f=Ef();t=ln(t);let c=k=>{if(k.pointerType==="keyboard"&&Xp(k))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(u==="selection"&&a.current){let _=n.getItemProps(r);f.open(a.current,k,_.href,_.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(u==="override"||u==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):k&&k.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||k&&($l(k)||k.pointerType==="touch"||k.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};p.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?f4(a.current):i?i():document.activeElement!==a.current&&a.current&&Sa(a.current))},[a,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),o=o||n.isDisabled(r);let d={};!l&&!o?d={tabIndex:r===n.focusedKey?0:-1,onFocus(k){k.target===a.current&&n.setFocusedKey(r)}}:o&&(d.onMouseDown=k=>{k.preventDefault()});let h=n.isLink(r)&&u==="override",m=s&&e.UNSTABLE_itemBehavior==="action",b=n.isLink(r)&&u!=="selection"&&u!=="none",y=!o&&n.canSelectItem(r)&&!h&&!m,v=(s||b)&&!o,g=v&&(n.selectionBehavior==="replace"?!y:!y||n.isEmpty),x=v&&y&&n.selectionBehavior==="replace",C=g||x,E=p.useRef(null),S=C&&y,M=p.useRef(!1);p.useRef(!1);let A=n.getItemProps(r),D=k=>{if(s){var _;s(),(_=a.current)===null||_===void 0||_.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&a.current&&f.open(a.current,k,A.href,A.routerOptions)},N={ref:a};if(N.onPressStart=k=>{E.current=k.pointerType,M.current=S,k.pointerType==="keyboard"&&(!C||jj())&&c(k)},N.onPressUp=g?void 0:k=>{k.pointerType==="mouse"&&y&&c(k)},N.onPress=g?D:k=>{k.pointerType!=="keyboard"&&k.pointerType!=="mouse"&&y&&c(k)},d["data-collection"]=Ej(n.collection),d["data-key"]=r,N.preventFocusOnPress=l,l&&(N=ue(N,{onPressStart(k){k.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(k){k.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),A)for(let k of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])A[k]&&(N[k]=ro(N[k],A[k]));let{pressProps:j,isPressed:z}=Tf(N),B=x?k=>{E.current==="mouse"&&(k.stopPropagation(),k.preventDefault(),D(k))}:void 0,{longPressProps:L}=o4({isDisabled:!S,onLongPress(k){k.pointerType==="touch"&&(c(k),n.setSelectionBehavior("toggle"))}}),P=k=>{E.current==="touch"&&M.current&&k.preventDefault()},T=u!=="none"&&n.isLink(r)?k=>{gl.isOpening||k.preventDefault()}:void 0;return{itemProps:ue(d,y||g||l&&!o?j:{},S?L:{},{onDoubleClick:B,onDragStartCapture:P,onClick:T,id:t},l?{onMouseDown:k=>k.preventDefault()}:void 0),isPressed:z,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:o,allowsSelection:y,hasAction:C}}function jj(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class ay{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?Bc(this.ref,t):null;if(!r)return null;let a=n.getBoundingClientRect(),l=r.getBoundingClientRect();return{x:l.left-a.left-n.clientLeft+n.scrollLeft,y:l.top-a.top-n.clientTop+n.scrollTop,width:l.width,height:l.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,a,l;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(a=t==null?void 0:t.clientWidth)!==null&&a!==void 0?a:0,height:(l=t==null?void 0:t.clientHeight)!==null&&l!==void 0?l:0}}constructor(t){this.ref=t}}class Dj{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let a=this.collection.getItem(r);if((a==null?void 0:a.type)==="item"&&!this.isDisabled(a))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let a=t,l=this.layoutDelegate.getItemRect(a);if(!l||a==null)return null;let i=l;do{if(a=n(a),a==null)break;l=this.layoutDelegate.getItemRect(a)}while(l&&r(i,l)&&a!=null);return a}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!vl(n))return this.getFirstKey();let a=t;if(this.orientation==="horizontal"){let l=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>l&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>l&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!vl(n))return this.getLastKey();let a=t;if(this.orientation==="horizontal"){let l=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<l&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<l&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,a=n||this.getFirstKey();for(;a!=null;){let l=r.getItem(a);if(!l)return null;let i=l.textValue.slice(0,t.length);if(l.textValue&&this.collator.compare(i,t)===0)return a;a=this.getNextKey(a)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new ay(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new ay(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Nj(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:a,keyboardDelegate:l,layoutDelegate:i}=e,o=Rk({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=p.useMemo(()=>l||new Dj({collection:n,disabledKeys:r,disabledBehavior:s,ref:a,collator:o,layoutDelegate:i}),[l,i,n,r,a,o,s]),{collectionProps:f}=Tj({...e,ref:a,selectionManager:t,keyboardDelegate:u});return{listProps:f}}class Aj{build(t,n){return this.context=n,ly(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(O.isValidElement(n)&&n.type===O.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let a=0;for(let l of r)yield*this.getFullNode({value:l,index:a},{renderer:n}),a++}else{let a=[];O.Children.forEach(n,i=>{i&&a.push(i)});let l=0;for(let i of a){let o=this.getFullNode({element:i,index:l},{});for(let s of o)l++,yield s}}}getKey(t,n,r,a){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${a}${n.key}`;let l=n.value;if(l!=null){var i;let o=(i=l.key)!==null&&i!==void 0?i:l.id;if(o==null)throw new Error("No key found for item");return o}return a?`${a}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,a){if(O.isValidElement(t.element)&&t.element.type===O.Fragment){let y=[];O.Children.forEach(t.element.props.children,g=>{y.push(g)});var l;let v=(l=t.index)!==null&&l!==void 0?l:0;for(const g of y)yield*this.getFullNode({element:g,index:v++},n,r,a);return}let i=t.element;if(!i&&t.value&&n&&n.renderer){let y=this.cache.get(t.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=t.index,y.parentKey=a?a.key:null,yield y;return}i=n.renderer(t.value)}if(O.isValidElement(i)){let y=i.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let C=i.type;throw new Error(`Unknown element <${C}> in collection.`)}let v=y.getCollectionNode(i.props,this.context);var o;let g=(o=t.index)!==null&&o!==void 0?o:0,x=v.next();for(;!x.done&&x.value;){let C=x.value;t.index=g;var s;let E=(s=C.key)!==null&&s!==void 0?s:null;E==null&&(E=C.element?null:this.getKey(i,t,n,r));let S=[...this.getFullNode({...C,key:E,index:g,wrapper:Lj(t.wrapper,C.wrapper)},this.getChildState(n,C),r?`${r}${i.key}`:i.key,a)];for(let M of S){var u,f;M.value=(f=(u=C.value)!==null&&u!==void 0?u:t.value)!==null&&f!==void 0?f:null,M.value&&this.cache.set(M.value,M);var c;if(t.type&&M.type!==t.type)throw new Error(`Unsupported type <${J0(M.type)}> in <${J0((c=a==null?void 0:a.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${J0(t.type)}> is supported.`);g++,yield M}x=v.next(S)}return}if(t.key==null||t.type==null)return;let d=this;var h,m;let b={type:t.type,props:t.props,key:t.key,parentKey:a?a.key:null,value:(h=t.value)!==null&&h!==void 0?h:null,level:a?a.level+1:0,index:t.index,rendered:t.rendered,textValue:(m=t.textValue)!==null&&m!==void 0?m:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:ly(function*(){if(!t.hasChildNodes||!t.childNodes)return;let y=0;for(let v of t.childNodes()){v.key!=null&&(v.key=`${b.key}${v.key}`);let g=d.getFullNode({...v,index:y},d.getChildState(n,v),b.key,b);for(let x of g)y++,yield x}})};yield b}constructor(){this.cache=new WeakMap}}function ly(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Lj(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function J0(e){return e[0].toUpperCase()+e.slice(1)}function _j(e,t,n){let r=p.useMemo(()=>new Aj,[]),{children:a,items:l,collection:i}=e;return p.useMemo(()=>{if(i)return i;let o=r.build({children:a,items:l},n);return t(o)},[r,a,l,i,n,t])}function r7(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function zj(e){return Pj(e)}function Pj(e,t){for(let n of e)return n}function eh(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...iy(e,t),t],a=[...iy(e,n),n],l=r.slice(0,a.length).findIndex((i,o)=>i!==a[o]);return l!==-1?(t=r[l],n=a[l],t.index-n.index):r.findIndex(i=>i===n)>=0?1:(a.findIndex(i=>i===t)>=0,-1)}function iy(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const oy=new WeakMap;function Hj(e){let t=oy.get(e);if(t!=null)return t;let n=0,r=a=>{for(let l of a)l.type==="section"?r(r7(l,e)):l.type==="item"&&n++};return r(e),oy.set(e,n),n}var a7={};a7={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var l7={};l7={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var i7={};i7={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var o7={};o7={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var s7={};s7={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var u7={};u7={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var c7={};c7={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var d7={};d7={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var f7={};f7={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var h7={};h7={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var p7={};p7={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var m7={};m7={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var g7={};g7={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var v7={};v7={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var b7={};b7={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var y7={};y7={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var x7={};x7={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var w7={};w7={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var C7={};C7={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var S7={};S7={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var E7={};E7={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var M7={};M7={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var O7={};O7={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var R7={};R7={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var T7={};T7={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var k7={};k7={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var j7={};j7={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var D7={};D7={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var N7={};N7={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var A7={};A7={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var L7={};L7={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var _7={};_7={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var z7={};z7={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var P7={};P7={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var H7={};H7={"ar-AE":a7,"bg-BG":l7,"cs-CZ":i7,"da-DK":o7,"de-DE":s7,"el-GR":u7,"en-US":c7,"es-ES":d7,"et-EE":f7,"fi-FI":h7,"fr-FR":p7,"he-IL":m7,"hr-HR":g7,"hu-HU":v7,"it-IT":b7,"ja-JP":y7,"ko-KR":x7,"lt-LT":w7,"lv-LV":C7,"nb-NO":S7,"nl-NL":E7,"pl-PL":M7,"pt-BR":O7,"pt-PT":R7,"ro-RO":T7,"ru-RU":k7,"sk-SK":j7,"sl-SI":D7,"sr-SP":N7,"sv-SE":A7,"tr-TR":L7,"uk-UA":_7,"zh-CN":z7,"zh-TW":P7};function Kj(e){return e&&e.__esModule?e.default:e}function Uj(e,t,n){let{type:r="menu",isDisabled:a,trigger:l="press"}=e,i=ln(),{triggerProps:o,overlayProps:s}=m4({type:r},t,n),u=h=>{if(!a&&!(l==="longPress"&&!h.altKey)&&n&&n.current)switch(h.key){case"Enter":case" ":if(l==="longPress"||h.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},f=I3(Kj(H7),"@react-aria/menu"),{longPressProps:c}=o4({isDisabled:a||l!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),d={preventFocusOnPress:!0,onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!a&&(Kn(h.target),t.open(h.pointerType==="virtual"?"first":null))},onPress(h){h.pointerType==="touch"&&!a&&(Kn(h.target),t.toggle())}};return delete o.onPress,{menuTriggerProps:{...o,...l==="press"?d:c,id:i,onKeyDown:u},menuProps:{...s,"aria-labelledby":i,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const K7=new WeakMap;function Bj(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:a,onKeyUp:l,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let o=Je(e,{labelable:!0}),{listProps:s}=Nj({...i,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return K7.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:ue(o,{onKeyDown:a,onKeyUp:l},{role:"menu",...s,onKeyDown:u=>{var f;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((f=s.onKeyDown)===null||f===void 0||f.call(s,u))}})}}function qj(e,t,n){let{id:r,key:a,closeOnSelect:l,isVirtualized:i,"aria-haspopup":o,onPressStart:s,onPressUp:u,onPress:f,onPressChange:c,onPressEnd:d,onClick:h,onHoverStart:m,onHoverChange:b,onHoverEnd:y,onKeyDown:v,onKeyUp:g,onFocus:x,onFocusChange:C,onBlur:E,selectionManager:S=t.selectionManager}=e,M=!!o,A=M&&e["aria-expanded"]==="true";var D;let N=(D=e.isDisabled)!==null&&D!==void 0?D:S.isDisabled(a);var j;let z=(j=e.isSelected)!==null&&j!==void 0?j:S.isSelected(a),B=K7.get(t),L=t.collection.getItem(a),P=e.onClose||B.onClose,T=Ef(),k=()=>{var ce;if(!M&&(!(L==null||(ce=L.props)===null||ce===void 0)&&ce.onAction?L.props.onAction():e.onAction&&e.onAction(a),B.onAction)){let Lr=B.onAction;Lr(a)}},_="menuitem";M||(S.selectionMode==="single"?_="menuitemradio":S.selectionMode==="multiple"&&(_="menuitemcheckbox"));let U=Kc(),F=Kc(),G=Kc(),K={id:r,"aria-disabled":N||void 0,role:_,"aria-label":e["aria-label"],"aria-labelledby":U,"aria-describedby":[F,G].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":o,"aria-expanded":e["aria-expanded"]};S.selectionMode!=="none"&&!M&&(K["aria-checked"]=z),i&&(K["aria-posinset"]=L==null?void 0:L.index,K["aria-setsize"]=Hj(t.collection));let V=p.useRef(!1),I=ce=>{c==null||c(ce),V.current=ce},J=p.useRef(null),et=ce=>{ce.pointerType!=="keyboard"&&(J.current={pointerType:ce.pointerType}),ce.pointerType==="mouse"&&(V.current||ce.target.click()),u==null||u(ce)},ve=ce=>{var Lr,Kt;h==null||h(ce),k(),_T(ce,T,L.props.href,L==null?void 0:L.props.routerOptions);let uo=((Lr=J.current)===null||Lr===void 0?void 0:Lr.pointerType)==="keyboard"?((Kt=J.current)===null||Kt===void 0?void 0:Kt.key)==="Enter"||S.selectionMode==="none"||S.isLink(a):S.selectionMode!=="multiple"||S.isLink(a);uo=l??uo,P&&!M&&uo&&P(),J.current=null},{itemProps:tt,isFocused:sn}=kj({id:r,selectionManager:S,key:a,ref:n,linkBehavior:"none",shouldUseVirtualFocus:B.shouldUseVirtualFocus}),{pressProps:Fn,isPressed:Tn}=Tf({onPressStart:s,onPress:f,onPressUp:et,onPressChange:I,onPressEnd:d,isDisabled:N}),{hoverProps:Z}=io({isDisabled:N,onHoverStart(ce){!Gs()&&!(A&&o)&&(S.setFocused(!0),S.setFocusedKey(a)),m==null||m(ce)},onHoverChange:b,onHoverEnd:y}),{keyboardProps:kn}=a4({onKeyDown:ce=>{if(ce.repeat){ce.continuePropagation();return}switch(ce.key){case" ":J.current={pointerType:"keyboard",key:" "},ce.target.click();break;case"Enter":J.current={pointerType:"keyboard",key:"Enter"},ce.target.tagName!=="A"&&ce.target.click();break;default:M||ce.continuePropagation(),v==null||v(ce);break}},onKeyUp:g}),{focusProps:Ht}=Kg({onBlur:E,onFocus:x,onFocusChange:C}),Na=Je(L==null?void 0:L.props);delete Na.id;let Su=LT(L==null?void 0:L.props);return{menuItemProps:{...K,...ue(Na,Su,M?{onFocus:tt.onFocus,"data-collection":tt["data-collection"],"data-key":tt["data-key"]}:tt,Fn,Z,kn,Ht,B.shouldUseVirtualFocus||M?{onMouseDown:ce=>ce.preventDefault()}:void 0,N?void 0:{onClick:ve}),tabIndex:tt.tabIndex!=null&&A&&!B.shouldUseVirtualFocus?-1:tt.tabIndex},labelProps:{id:U},descriptionProps:{id:F},keyboardShortcutProps:{id:G},isFocused:sn,isFocusVisible:sn&&S.isFocused&&Gs()&&!A,isSelected:z,isPressed:Tn,isDisabled:N}}function Fj(e){let{heading:t,"aria-label":n}=e,r=ln();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}class oo{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,n,r){let a=this.clone();return n.addDescendants(a,t),a}constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}}class U7 extends oo{filter(t,n,r){let[a,l]=q7(t,n,this.firstChildKey,r),i=this.clone();return i.firstChildKey=a,i.lastChildKey=l,i}}class Vj extends oo{}Vj.type="header";class Gj extends oo{}Gj.type="loader";class B7 extends U7{filter(t,n,r){if(r(this.textValue,this)){let a=this.clone();return n.addDescendants(a,t),a}return null}}B7.type="item";class Qj extends U7{filter(t,n,r){let a=super.filter(t,n,r);if(a&&a.lastChildKey!==null){let l=t.getItem(a.lastChildKey);if(l&&l.type!=="header")return a}return null}}Qj.type="section";class Ij{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),a=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;a;)yield a,a=a.nextKey!=null?n.get(a.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,n){this.addNode(t);let r=n.getChildren(t.key);for(let a of r)this.addDescendants(a,n)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(t);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}filter(t){let n=new this.constructor,[r,a]=q7(this,n,this.firstKey,t);return n==null||n.commit(r,a),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function q7(e,t,n,r){if(n==null)return[null,null];let a=null,l=null,i=e.getItem(n);for(;i!=null;){let u=i.filter(e,t,r);u!=null&&(u.nextKey=null,l&&(u.prevKey=l.key,l.nextKey=u.key),a==null&&(a=u),t.addNode(u),l=u),i=i.nextKey?e.getItem(i.nextKey):null}if(l&&l.type==="separator"){let u=l.prevKey;t.removeNode(l.key),u?(l=t.getItem(u),l.nextKey=null):l=null}var o,s;return[(o=a==null?void 0:a.key)!==null&&o!==void 0?o:null,(s=l==null?void 0:l.key)!==null&&s!==void 0?s:null]}class F7{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class Oi extends F7{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof Oi?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,a,l,i,o,s;let u=this.nextVisibleSibling,f=this.getMutableNode();if(f!=null){f.index=this.index,f.level=this.level;var c;f.parentKey=this.parentNode instanceof Oi&&(c=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&c!==void 0?c:null;var d;f.prevKey=(d=(r=this.previousVisibleSibling)===null||r===void 0||(n=r.node)===null||n===void 0?void 0:n.key)!==null&&d!==void 0?d:null;var h;f.nextKey=(h=u==null||(a=u.node)===null||a===void 0?void 0:a.key)!==null&&h!==void 0?h:null,f.hasChildNodes=!!this.firstChild;var m;f.firstChildKey=(m=(i=this.firstVisibleChild)===null||i===void 0||(l=i.node)===null||l===void 0?void 0:l.key)!==null&&m!==void 0?m:null;var b;if(f.lastChildKey=(b=(s=this.lastVisibleChild)===null||s===void 0||(o=s.node)===null||o===void 0?void 0:o.key)!==null&&b!==void 0?b:null,(f.colSpan!=null||f.colIndex!=null)&&u){var y,v;let g=((y=f.colIndex)!==null&&y!==void 0?y:f.index)+((v=f.colSpan)!==null&&v!==void 0?v:1);if(u.node!=null&&g!==u.node.colIndex){let x=u.getMutableNode();x.colIndex=g}}}}setProps(t,n,r,a,l){let i,{value:o,textValue:s,id:u,...f}=t;if(this.node==null?(i=new r(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=i):i=this.getMutableNode(),f.ref=n,i.props=f,i.rendered=a,i.render=l,i.value=o,i.textValue=s||(typeof f.children=="string"?f.children:"")||t["aria-label"]||"",u!=null&&u!==i.key)throw new Error("Cannot change the id of an item");f.colSpan!=null&&(i.colSpan=f.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){var a,l;(((a=t.parentNode)===null||a===void 0?void 0:a.firstVisibleChild)===t||((l=t.parentNode)===null||l===void 0?void 0:l.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,o=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),o&&t.ownerDocument.markDirty(o),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class Xj extends F7{get isConnected(){return!0}createElement(t){return new Oi(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof Oi&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof Oi?(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.node&&this.dirtyNodes.delete(o),o.isMutated=!1):this.dirtyNodes.delete(o);if(this.nextCollection){var t,n,r,a,l,i;this.nextCollection.commit((l=(n=this.firstVisibleChild)===null||n===void 0||(t=n.node)===null||t===void 0?void 0:t.key)!==null&&l!==void 0?l:null,(i=(a=this.lastVisibleChild)===null||a===void 0||(r=a.node)===null||r===void 0?void 0:r.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function V7(e){let{children:t,items:n,idScope:r,addIdAndValue:a,dependencies:l=[]}=e,i=p.useMemo(()=>new WeakMap,l);return p.useMemo(()=>{if(n&&typeof t=="function"){let u=[];for(let f of n){let c=i.get(f);if(!c){c=t(f);var o,s;let d=(s=(o=c.props.id)!==null&&o!==void 0?o:f.key)!==null&&s!==void 0?s:f.id;if(d==null)throw new Error("Could not determine key for item");r&&(d=r+":"+d),c=p.cloneElement(c,a?{key:d,id:d,value:f}:{key:d}),i.set(f,c)}u.push(c)}return u}else if(typeof t!="function")return t},[t,n,i,r,a])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const Dd=p.createContext(!1);function Yj(e){if(p.useContext(Dd))return O.createElement(O.Fragment,null,e.children);let t=O.createElement(Dd.Provider,{value:!0},e.children);return O.createElement("template",{"data-react-aria-hidden":!0},t)}function Zj(e){let t=(n,r)=>p.useContext(Dd)?null:e(n,r);return t.displayName=e.displayName||e.name,p.forwardRef(t)}function $j(){return p.useContext(Dd)}var G7={exports:{}},Q7={};/**
|
|
79
|
+
}`.trim(),document.head.prepend(r);let a=s=>{if(!(s.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){s.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&s.preventDefault()}},l=s=>{let u=s.target,f=s.relatedTarget;if(f&&ps(f))f.focus({preventScroll:!0}),ry(f,ps(u));else if(!f){var c;let d=(c=u.parentElement)===null||c===void 0?void 0:c.closest("[tabindex]");d==null||d.focus({preventScroll:!0})}},i=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(s){let u=document.activeElement!=null&&ps(document.activeElement);i.call(this,{...s,preventScroll:!0}),(!s||!s.preventScroll)&&ry(this,u)};let o=Ji(eh(document,"touchstart",n,{passive:!1,capture:!0}),eh(document,"touchmove",a,{passive:!1,capture:!0}),eh(document,"blur",l,!0));return()=>{o(),r.remove(),HTMLElement.prototype.focus=i}}function J0(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function eh(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function ry(e,t){t||!gs?ay(e):gs.addEventListener("resize",()=>ay(e),{once:!0})}function ay(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=B3(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let a=r.getBoundingClientRect(),l=n.getBoundingClientRect();if(l.top<a.top||l.bottom>a.top+n.clientHeight){let i=a.bottom;gs&&(i=Math.min(i,gs.offsetTop+gs.height));let o=l.top-a.top-((i-a.top)/2-l.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+o)),behavior:"smooth"})}}n=r.parentElement}}const MD=p.createContext({});function M4(){var e;return(e=p.useContext(MD))!==null&&e!==void 0?e:{}}const Ip=O.createContext(null);function OD(e){let{children:t}=e,n=p.useContext(Ip),[r,a]=p.useState(0),l=p.useMemo(()=>({parent:n,modalCount:r,addModal(){a(i=>i+1),n&&n.addModal()},removeModal(){a(i=>i-1),n&&n.removeModal()}}),[n,r]);return O.createElement(Ip.Provider,{value:l},t)}function RD(){let e=p.useContext(Ip);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function kD(e){let{modalProviderProps:t}=RD();return O.createElement("div",{"data-overlay-container":!0,...e,...t})}function TD(e){return O.createElement(OD,null,O.createElement(kD,e))}function DD(e){let t=ka(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:a}=M4();if(!e.portalContainer&&a&&(n=a()),O.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let l=O.createElement(TD,r);return bm.createPortal(l,n)}var O4={};O4={dismiss:"تجاهل"};var R4={};R4={dismiss:"Отхвърляне"};var k4={};k4={dismiss:"Odstranit"};var T4={};T4={dismiss:"Luk"};var D4={};D4={dismiss:"Schließen"};var j4={};j4={dismiss:"Απόρριψη"};var N4={};N4={dismiss:"Dismiss"};var A4={};A4={dismiss:"Descartar"};var L4={};L4={dismiss:"Lõpeta"};var _4={};_4={dismiss:"Hylkää"};var z4={};z4={dismiss:"Rejeter"};var P4={};P4={dismiss:"התעלם"};var H4={};H4={dismiss:"Odbaci"};var K4={};K4={dismiss:"Elutasítás"};var U4={};U4={dismiss:"Ignora"};var B4={};B4={dismiss:"閉じる"};var F4={};F4={dismiss:"무시"};var q4={};q4={dismiss:"Atmesti"};var V4={};V4={dismiss:"Nerādīt"};var G4={};G4={dismiss:"Lukk"};var Q4={};Q4={dismiss:"Negeren"};var I4={};I4={dismiss:"Zignoruj"};var X4={};X4={dismiss:"Descartar"};var Y4={};Y4={dismiss:"Dispensar"};var Z4={};Z4={dismiss:"Revocare"};var W4={};W4={dismiss:"Пропустить"};var $4={};$4={dismiss:"Zrušiť"};var J4={};J4={dismiss:"Opusti"};var e7={};e7={dismiss:"Odbaci"};var t7={};t7={dismiss:"Avvisa"};var n7={};n7={dismiss:"Kapat"};var r7={};r7={dismiss:"Скасувати"};var a7={};a7={dismiss:"取消"};var l7={};l7={dismiss:"關閉"};var i7={};i7={"ar-AE":O4,"bg-BG":R4,"cs-CZ":k4,"da-DK":T4,"de-DE":D4,"el-GR":j4,"en-US":N4,"es-ES":A4,"et-EE":L4,"fi-FI":_4,"fr-FR":z4,"he-IL":P4,"hr-HR":H4,"hu-HU":K4,"it-IT":U4,"ja-JP":B4,"ko-KR":F4,"lt-LT":q4,"lv-LV":V4,"nb-NO":G4,"nl-NL":Q4,"pl-PL":I4,"pt-BR":X4,"pt-PT":Y4,"ro-RO":Z4,"ru-RU":W4,"sk-SK":$4,"sl-SI":J4,"sr-SP":e7,"sv-SE":t7,"tr-TR":n7,"uk-UA":r7,"zh-CN":a7,"zh-TW":l7};const ly={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function jD(e={}){let{style:t,isFocusable:n}=e,[r,a]=p.useState(!1),{focusWithinProps:l}=Fg({isDisabled:!n,onFocusWithinChange:o=>a(o)}),i=p.useMemo(()=>r?t:t?{...ly,...t}:ly,[r]);return{visuallyHiddenProps:{...l,style:i}}}function ND(e){let{children:t,elementType:n="div",isFocusable:r,style:a,...l}=e,{visuallyHiddenProps:i}=jD(e);return O.createElement(n,ce(l,i),t)}function AD(e){return e&&e.__esModule?e.default:e}function Xp(e){let{onDismiss:t,...n}=e,r=t4(AD(i7),"@react-aria/overlays"),a=U3(n,r.format("dismiss")),l=()=>{t&&t()};return O.createElement(ND,null,O.createElement("button",{...a,tabIndex:-1,onClick:l,style:{width:1,height:1}}))}const LD=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let zo=new WeakMap,Dt=[];function o7(e,t){let n=xn(e==null?void 0:e[0]),r=t instanceof n.Element?{root:t}:t;var a;let l=(a=r==null?void 0:r.root)!==null&&a!==void 0?a:document.body,i=(r==null?void 0:r.shouldUseInert)&&LD,o=new Set(e),s=new Set,u=v=>i&&v instanceof n.HTMLElement?v.inert:v.getAttribute("aria-hidden")==="true",f=(v,y)=>{i&&v instanceof n.HTMLElement?v.inert=y:y?v.setAttribute("aria-hidden","true"):(v.removeAttribute("aria-hidden"),v instanceof n.HTMLElement&&(v.inert=!1))},c=v=>{for(let x of v.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))o.add(x);let y=x=>{if(s.has(x)||o.has(x)||x.parentElement&&s.has(x.parentElement)&&x.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let S of o)if(x.contains(S))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},b=document.createTreeWalker(v,NodeFilter.SHOW_ELEMENT,{acceptNode:y}),g=y(v);if(g===NodeFilter.FILTER_ACCEPT&&d(v),g!==NodeFilter.FILTER_REJECT){let x=b.nextNode();for(;x!=null;)d(x),x=b.nextNode()}},d=v=>{var y;let b=(y=zo.get(v))!==null&&y!==void 0?y:0;u(v)&&b===0||(b===0&&f(v,!0),s.add(v),zo.set(v,b+1))};Dt.length&&Dt[Dt.length-1].disconnect(),c(l);let h=new MutationObserver(v=>{for(let y of v)if(y.type==="childList"&&![...o,...s].some(b=>b.contains(y.target)))for(let b of y.addedNodes)(b instanceof HTMLElement||b instanceof SVGElement)&&(b.dataset.liveAnnouncer==="true"||b.dataset.reactAriaTopLayer==="true")?o.add(b):b instanceof Element&&c(b)});h.observe(l,{childList:!0,subtree:!0});let m={visibleNodes:o,hiddenNodes:s,observe(){h.observe(l,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return Dt.push(m),()=>{h.disconnect();for(let v of s){let y=zo.get(v);y!=null&&(y===1?(f(v,!1),zo.delete(v)):zo.set(v,y-1))}m===Dt[Dt.length-1]?(Dt.pop(),Dt.length&&Dt[Dt.length-1].observe()):Dt.splice(Dt.indexOf(m),1)}}function _D(e){let t=Dt[Dt.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function zD(e,t){let{triggerRef:n,popoverRef:r,groupRef:a,isNonModal:l,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:o,...s}=e,u=s.trigger==="SubmenuTrigger",{overlayProps:f,underlayProps:c}=S4({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!l||u,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:o},a??r),{overlayProps:d,arrowProps:h,placement:m,triggerAnchorPoint:v}=r4({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:l&&!u?t.close:null});return E4({isDisabled:l||!t.isOpen}),p.useEffect(()=>{if(t.isOpen&&r.current){var y,b;return l?_D((y=a==null?void 0:a.current)!==null&&y!==void 0?y:r.current):o7([(b=a==null?void 0:a.current)!==null&&b!==void 0?b:r.current],{shouldUseInert:!0})}},[l,t.isOpen,r,a]),{popoverProps:ce(f,d),arrowProps:h,underlayProps:c,placement:m,triggerAnchorPoint:v}}const s7=O.createContext(null);function Yp(e){let t=ka(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[a,l]=p.useState(!1),i=p.useMemo(()=>({contain:a,setContain:l}),[a,l]),{getContainer:o}=M4();if(!e.portalContainer&&o&&(n=o()),!n)return null;let s=e.children;return e.disableFocusManagement||(s=O.createElement(g4,{restoreFocus:!0,contain:(e.shouldContainFocus||a)&&!r},s)),s=O.createElement(s7.Provider,{value:i},O.createElement(sD,null,s)),bm.createPortal(s,n)}function u7(){let e=p.useContext(s7),t=e==null?void 0:e.setContain;ge(()=>{t==null||t(!0)},[t])}function PD(e,t,n){let{overlayProps:r,underlayProps:a}=S4({...e,isOpen:t.isOpen,onClose:t.close},n);return E4({isDisabled:!t.isOpen}),u7(),p.useEffect(()=>{if(t.isOpen&&n.current)return o7([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:ce(r),underlayProps:a}}function HD(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:l="label"}=e;t=an(t);let i=an(),o={};n&&(r=r?`${i} ${r}`:i,o={id:i,htmlFor:l==="label"?t:void 0});let s=U3({id:t,"aria-label":a,"aria-labelledby":r});return{labelProps:o,fieldProps:s}}function Zp(e){return qk()?e.altKey:e.ctrlKey}function Bc(e,t){var n,r;let a=`[data-key="${CSS.escape(String(t))}"]`,l=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return l&&(a=`[data-collection="${CSS.escape(l)}"]${a}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(a)}const c7=new WeakMap;function KD(e){let t=an();return c7.set(e,t),t}function UD(e){return c7.get(e)}const BD=1e3;function FD(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,a=p.useRef({search:"",timeout:void 0}).current,l=i=>{let o=qD(i.key);if(!(!o||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target)||a.search.length===0&&o===" ")){if(o===" "&&a.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),a.search+=o,t.getKeyForSearch!=null){let s=t.getKeyForSearch(a.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(a.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(a.timeout),a.timeout=setTimeout(()=>{a.search=""},BD)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?l:void 0}}}function qD(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function VD(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:a=!1,shouldFocusWrap:l=!1,disallowEmptySelection:i=!1,disallowSelectAll:o=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:f=!1,shouldUseVirtualFocus:c,allowsTabNavigation:d=!1,isVirtualized:h,scrollRef:m=r,linkBehavior:v="action"}=e,{direction:y}=Cl(),b=Ef(),g=_=>{var T;if(_.altKey&&_.key==="Tab"&&_.preventDefault(),!(!((T=r.current)===null||T===void 0)&&T.contains(_.target)))return;const L=(W,bt)=>{if(W!=null){if(t.isLink(W)&&v==="selection"&&u&&!Zp(_)){Ws.flushSync(()=>{t.setFocusedKey(W,bt)});let on=Bc(r,W),Ol=t.getItemProps(W);on&&b.open(on,_,Ol.href,Ol.routerOptions);return}if(t.setFocusedKey(W,bt),t.isLink(W)&&v==="override")return;_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(W):u&&!Zp(_)&&t.replaceSelection(W)}};switch(_.key){case"ArrowDown":if(n.getKeyBelow){var K,V,D;let W=t.focusedKey!=null?(K=n.getKeyBelow)===null||K===void 0?void 0:K.call(n,t.focusedKey):(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n);W==null&&l&&(W=(D=n.getFirstKey)===null||D===void 0?void 0:D.call(n,t.focusedKey)),W!=null&&(_.preventDefault(),L(W))}break;case"ArrowUp":if(n.getKeyAbove){var z,k,P;let W=t.focusedKey!=null?(z=n.getKeyAbove)===null||z===void 0?void 0:z.call(n,t.focusedKey):(k=n.getLastKey)===null||k===void 0?void 0:k.call(n);W==null&&l&&(W=(P=n.getLastKey)===null||P===void 0?void 0:P.call(n,t.focusedKey)),W!=null&&(_.preventDefault(),L(W))}break;case"ArrowLeft":if(n.getKeyLeftOf){var B,Y,Oe;let W=t.focusedKey!=null?(B=n.getKeyLeftOf)===null||B===void 0?void 0:B.call(n,t.focusedKey):null;W==null&&l&&(W=y==="rtl"?(Y=n.getFirstKey)===null||Y===void 0?void 0:Y.call(n,t.focusedKey):(Oe=n.getLastKey)===null||Oe===void 0?void 0:Oe.call(n,t.focusedKey)),W!=null&&(_.preventDefault(),L(W,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var he,_e,Ue;let W=t.focusedKey!=null?(he=n.getKeyRightOf)===null||he===void 0?void 0:he.call(n,t.focusedKey):null;W==null&&l&&(W=y==="rtl"?(_e=n.getLastKey)===null||_e===void 0?void 0:_e.call(n,t.focusedKey):(Ue=n.getFirstKey)===null||Ue===void 0?void 0:Ue.call(n,t.focusedKey)),W!=null&&(_.preventDefault(),L(W,y==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&_.shiftKey)return;_.preventDefault();let W=n.getFirstKey(t.focusedKey,Xl(_));t.setFocusedKey(W),W!=null&&(Xl(_)&&_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(W):u&&t.replaceSelection(W))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&_.shiftKey)return;_.preventDefault();let W=n.getLastKey(t.focusedKey,Xl(_));t.setFocusedKey(W),W!=null&&(Xl(_)&&_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(W):u&&t.replaceSelection(W))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let W=n.getKeyPageBelow(t.focusedKey);W!=null&&(_.preventDefault(),L(W))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let W=n.getKeyPageAbove(t.focusedKey);W!=null&&(_.preventDefault(),L(W))}break;case"a":Xl(_)&&t.selectionMode==="multiple"&&o!==!0&&(_.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(_.stopPropagation(),_.preventDefault(),t.clearSelection());break;case"Tab":if(!d){if(_.shiftKey)r.current.focus();else{let W=Zt(r.current,{tabbable:!0}),bt,on;do on=W.lastChild(),on&&(bt=on);while(on);bt&&(!bt.contains(document.activeElement)||document.activeElement&&!Q3(document.activeElement))&&Hn(bt)}break}}},x=p.useRef({top:0,left:0});nc(m,"scroll",h?void 0:()=>{var _,T,L,K;x.current={top:(L=(_=m.current)===null||_===void 0?void 0:_.scrollTop)!==null&&L!==void 0?L:0,left:(K=(T=m.current)===null||T===void 0?void 0:T.scrollLeft)!==null&&K!==void 0?K:0}});let S=_=>{if(t.isFocused){_.currentTarget.contains(_.target)||t.setFocused(!1);return}if(_.currentTarget.contains(_.target)){if(t.setFocused(!0),t.focusedKey==null){var T,L;let D=k=>{k!=null&&(t.setFocusedKey(k),u&&!t.isSelected(k)&&t.replaceSelection(k))},z=_.relatedTarget;var K,V;z&&_.currentTarget.compareDocumentPosition(z)&Node.DOCUMENT_POSITION_FOLLOWING?D((K=t.lastSelectedKey)!==null&&K!==void 0?K:(T=n.getLastKey)===null||T===void 0?void 0:T.call(n)):D((V=t.firstSelectedKey)!==null&&V!==void 0?V:(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n))}else!h&&m.current&&(m.current.scrollTop=x.current.top,m.current.scrollLeft=x.current.left);if(t.focusedKey!=null&&m.current){let D=Bc(r,t.focusedKey);D instanceof HTMLElement&&(!D.contains(document.activeElement)&&!c&&Hn(D),Vs()==="keyboard"&&Lb(D,{containingElement:r.current}))}}},C=_=>{_.currentTarget.contains(_.relatedTarget)||t.setFocused(!1)},E=p.useRef(!1);nc(r,oT,c?_=>{let{detail:T}=_;_.stopPropagation(),t.setFocused(!0),(T==null?void 0:T.focusStrategy)==="first"&&(E.current=!0)}:void 0),jb(()=>{if(E.current){var _,T;let L=(T=(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n))!==null&&T!==void 0?T:null;if(L==null){let K=st();x4(r.current),w4(K,null),t.collection.size>0&&(E.current=!1)}else t.setFocusedKey(L),E.current=!1}},[t.collection]),jb(()=>{t.collection.size>0&&(E.current=!1)},[t.focusedKey]),nc(r,iT,c?_=>{var T;_.stopPropagation(),t.setFocused(!1),!((T=_.detail)===null||T===void 0)&&T.clearFocusKey&&t.setFocusedKey(null)}:void 0);const M=p.useRef(a),N=p.useRef(!1);p.useEffect(()=>{if(M.current){var _,T;let V=null;var L;a==="first"&&(V=(L=(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n))!==null&&L!==void 0?L:null);var K;a==="last"&&(V=(K=(T=n.getLastKey)===null||T===void 0?void 0:T.call(n))!==null&&K!==void 0?K:null);let D=t.selectedKeys;if(D.size){for(let z of D)if(t.canSelectItem(z)){V=z;break}}t.setFocused(!0),t.setFocusedKey(V),V==null&&!c&&r.current&&wa(r.current),t.collection.size>0&&(M.current=!1,N.current=!0)}});let j=p.useRef(t.focusedKey),A=p.useRef(null);p.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==j.current||N.current)&&m.current&&r.current){let _=Vs(),T=Bc(r,t.focusedKey);if(!(T instanceof HTMLElement))return;(_==="keyboard"||N.current)&&(A.current&&cancelAnimationFrame(A.current),A.current=requestAnimationFrame(()=>{m.current&&(F3(m.current,T),_!=="virtual"&&Lb(T,{containingElement:r.current}))}))}!c&&t.isFocused&&t.focusedKey==null&&j.current!=null&&r.current&&wa(r.current),j.current=t.focusedKey,N.current=!1}),p.useEffect(()=>()=>{A.current&&cancelAnimationFrame(A.current)},[]),nc(r,"react-aria-focus-scope-restore",_=>{_.preventDefault(),t.setFocused(!0)});let U={onKeyDown:g,onFocus:S,onBlur:C,onMouseDown(_){m.current===_.target&&_.preventDefault()}},{typeSelectProps:F}=FD({keyboardDelegate:n,selectionManager:t});f||(U=ce(F,U));let G;c||(G=t.focusedKey==null?0:-1);let Q=KD(t.collection);return{collectionProps:ce(U,{tabIndex:G,"data-collection":Q})}}function GD(e){let{id:t,selectionManager:n,key:r,ref:a,shouldUseVirtualFocus:l,focus:i,isDisabled:o,onAction:s,linkBehavior:u="action"}=e,f=Ef();t=an(t);let c=L=>{if(L.pointerType==="keyboard"&&Zp(L))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(u==="selection"&&a.current){let K=n.getItemProps(r);f.open(a.current,L,K.href,K.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(u==="override"||u==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):L&&L.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||L&&(Xl(L)||L.pointerType==="touch"||L.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};p.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?x4(a.current):i?i():document.activeElement!==a.current&&a.current&&wa(a.current))},[a,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),o=o||n.isDisabled(r);let d={};!l&&!o?d={tabIndex:r===n.focusedKey?0:-1,onFocus(L){L.target===a.current&&n.setFocusedKey(r)}}:o&&(d.onMouseDown=L=>{L.preventDefault()});let h=n.isLink(r)&&u==="override",m=s&&e.UNSTABLE_itemBehavior==="action",v=n.isLink(r)&&u!=="selection"&&u!=="none",y=!o&&n.canSelectItem(r)&&!h&&!m,b=(s||v)&&!o,g=b&&(n.selectionBehavior==="replace"?!y:!y||n.isEmpty),x=b&&y&&n.selectionBehavior==="replace",S=g||x,C=p.useRef(null),E=S&&y,M=p.useRef(!1);p.useRef(!1);let N=n.getItemProps(r),j=L=>{if(s){var K;s(),(K=a.current)===null||K===void 0||K.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}v&&a.current&&f.open(a.current,L,N.href,N.routerOptions)},A={ref:a};if(A.onPressStart=L=>{C.current=L.pointerType,M.current=E,L.pointerType==="keyboard"&&(!S||QD())&&c(L)},A.onPressUp=g?void 0:L=>{L.pointerType==="mouse"&&y&&c(L)},A.onPress=g?j:L=>{L.pointerType!=="keyboard"&&L.pointerType!=="mouse"&&y&&c(L)},d["data-collection"]=UD(n.collection),d["data-key"]=r,A.preventFocusOnPress=l,l&&(A=ce(A,{onPressStart(L){L.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(L){L.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),N)for(let L of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])N[L]&&(A[L]=Ji(A[L],N[L]));let{pressProps:U,isPressed:F}=kf(A),G=x?L=>{C.current==="mouse"&&(L.stopPropagation(),L.preventDefault(),j(L))}:void 0,{longPressProps:Q}=m4({isDisabled:!E,onLongPress(L){L.pointerType==="touch"&&(c(L),n.setSelectionBehavior("toggle"))}}),_=L=>{C.current==="touch"&&M.current&&L.preventDefault()},T=u!=="none"&&n.isLink(r)?L=>{Rr.isOpening||L.preventDefault()}:void 0;return{itemProps:ce(d,y||g||l&&!o?U:{},E?Q:{},{onDoubleClick:G,onDragStartCapture:_,onClick:T,id:t},l?{onMouseDown:L=>L.preventDefault()}:void 0),isPressed:F,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:o,allowsSelection:y,hasAction:S}}function QD(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class iy{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?Bc(this.ref,t):null;if(!r)return null;let a=n.getBoundingClientRect(),l=r.getBoundingClientRect();return{x:l.left-a.left-n.clientLeft+n.scrollLeft,y:l.top-a.top-n.clientTop+n.scrollTop,width:l.width,height:l.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,a,l;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(a=t==null?void 0:t.clientWidth)!==null&&a!==void 0?a:0,height:(l=t==null?void 0:t.clientHeight)!==null&&l!==void 0?l:0}}constructor(t){this.ref=t}}class ID{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let a=this.collection.getItem(r);if((a==null?void 0:a.type)==="item"&&!this.isDisabled(a))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let a=t,l=this.layoutDelegate.getItemRect(a);if(!l||a==null)return null;let i=l;do{if(a=n(a),a==null)break;l=this.layoutDelegate.getItemRect(a)}while(l&&r(i,l)&&a!=null);return a}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!hl(n))return this.getFirstKey();let a=t;if(this.orientation==="horizontal"){let l=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>l&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>l&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!hl(n))return this.getLastKey();let a=t;if(this.orientation==="horizontal"){let l=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<l&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<l&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,a=n||this.getFirstKey();for(;a!=null;){let l=r.getItem(a);if(!l)return null;let i=l.textValue.slice(0,t.length);if(l.textValue&&this.collator.compare(i,t)===0)return a;a=this.getNextKey(a)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new iy(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new iy(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function XD(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:a,keyboardDelegate:l,layoutDelegate:i}=e,o=qT({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=p.useMemo(()=>l||new ID({collection:n,disabledKeys:r,disabledBehavior:s,ref:a,collator:o,layoutDelegate:i}),[l,i,n,r,a,o,s]),{collectionProps:f}=VD({...e,ref:a,selectionManager:t,keyboardDelegate:u});return{listProps:f}}class YD{build(t,n){return this.context=n,oy(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(O.isValidElement(n)&&n.type===O.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let a=0;for(let l of r)yield*this.getFullNode({value:l,index:a},{renderer:n}),a++}else{let a=[];O.Children.forEach(n,i=>{i&&a.push(i)});let l=0;for(let i of a){let o=this.getFullNode({element:i,index:l},{});for(let s of o)l++,yield s}}}getKey(t,n,r,a){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${a}${n.key}`;let l=n.value;if(l!=null){var i;let o=(i=l.key)!==null&&i!==void 0?i:l.id;if(o==null)throw new Error("No key found for item");return o}return a?`${a}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,a){if(O.isValidElement(t.element)&&t.element.type===O.Fragment){let y=[];O.Children.forEach(t.element.props.children,g=>{y.push(g)});var l;let b=(l=t.index)!==null&&l!==void 0?l:0;for(const g of y)yield*this.getFullNode({element:g,index:b++},n,r,a);return}let i=t.element;if(!i&&t.value&&n&&n.renderer){let y=this.cache.get(t.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=t.index,y.parentKey=a?a.key:null,yield y;return}i=n.renderer(t.value)}if(O.isValidElement(i)){let y=i.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let S=i.type;throw new Error(`Unknown element <${S}> in collection.`)}let b=y.getCollectionNode(i.props,this.context);var o;let g=(o=t.index)!==null&&o!==void 0?o:0,x=b.next();for(;!x.done&&x.value;){let S=x.value;t.index=g;var s;let C=(s=S.key)!==null&&s!==void 0?s:null;C==null&&(C=S.element?null:this.getKey(i,t,n,r));let E=[...this.getFullNode({...S,key:C,index:g,wrapper:ZD(t.wrapper,S.wrapper)},this.getChildState(n,S),r?`${r}${i.key}`:i.key,a)];for(let M of E){var u,f;M.value=(f=(u=S.value)!==null&&u!==void 0?u:t.value)!==null&&f!==void 0?f:null,M.value&&this.cache.set(M.value,M);var c;if(t.type&&M.type!==t.type)throw new Error(`Unsupported type <${th(M.type)}> in <${th((c=a==null?void 0:a.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${th(t.type)}> is supported.`);g++,yield M}x=b.next(E)}return}if(t.key==null||t.type==null)return;let d=this;var h,m;let v={type:t.type,props:t.props,key:t.key,parentKey:a?a.key:null,value:(h=t.value)!==null&&h!==void 0?h:null,level:a?a.level+1:0,index:t.index,rendered:t.rendered,textValue:(m=t.textValue)!==null&&m!==void 0?m:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:oy(function*(){if(!t.hasChildNodes||!t.childNodes)return;let y=0;for(let b of t.childNodes()){b.key!=null&&(b.key=`${v.key}${b.key}`);let g=d.getFullNode({...b,index:y},d.getChildState(n,b),v.key,v);for(let x of g)y++,yield x}})};yield v}constructor(){this.cache=new WeakMap}}function oy(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function ZD(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function th(e){return e[0].toUpperCase()+e.slice(1)}function WD(e,t,n){let r=p.useMemo(()=>new YD,[]),{children:a,items:l,collection:i}=e;return p.useMemo(()=>{if(i)return i;let o=r.build({children:a,items:l},n);return t(o)},[r,a,l,i,n,t])}function d7(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function $D(e){return JD(e)}function JD(e,t){for(let n of e)return n}function nh(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...sy(e,t),t],a=[...sy(e,n),n],l=r.slice(0,a.length).findIndex((i,o)=>i!==a[o]);return l!==-1?(t=r[l],n=a[l],t.index-n.index):r.findIndex(i=>i===n)>=0?1:(a.findIndex(i=>i===t)>=0,-1)}function sy(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const uy=new WeakMap;function ej(e){let t=uy.get(e);if(t!=null)return t;let n=0,r=a=>{for(let l of a)l.type==="section"?r(d7(l,e)):l.type==="item"&&n++};return r(e),uy.set(e,n),n}var f7={};f7={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var h7={};h7={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var p7={};p7={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var m7={};m7={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var g7={};g7={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var v7={};v7={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var b7={};b7={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var y7={};y7={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var x7={};x7={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var w7={};w7={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var S7={};S7={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var C7={};C7={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var E7={};E7={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var M7={};M7={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var O7={};O7={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var R7={};R7={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var k7={};k7={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var T7={};T7={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var D7={};D7={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var j7={};j7={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var N7={};N7={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var A7={};A7={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var L7={};L7={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var _7={};_7={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var z7={};z7={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var P7={};P7={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var H7={};H7={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var K7={};K7={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var U7={};U7={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var B7={};B7={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var F7={};F7={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var q7={};q7={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var V7={};V7={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var G7={};G7={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Q7={};Q7={"ar-AE":f7,"bg-BG":h7,"cs-CZ":p7,"da-DK":m7,"de-DE":g7,"el-GR":v7,"en-US":b7,"es-ES":y7,"et-EE":x7,"fi-FI":w7,"fr-FR":S7,"he-IL":C7,"hr-HR":E7,"hu-HU":M7,"it-IT":O7,"ja-JP":R7,"ko-KR":k7,"lt-LT":T7,"lv-LV":D7,"nb-NO":j7,"nl-NL":N7,"pl-PL":A7,"pt-BR":L7,"pt-PT":_7,"ro-RO":z7,"ru-RU":P7,"sk-SK":H7,"sl-SI":K7,"sr-SP":U7,"sv-SE":B7,"tr-TR":F7,"uk-UA":q7,"zh-CN":V7,"zh-TW":G7};function tj(e){return e&&e.__esModule?e.default:e}function nj(e,t,n){let{type:r="menu",isDisabled:a,trigger:l="press"}=e,i=an(),{triggerProps:o,overlayProps:s}=C4({type:r},t,n),u=h=>{if(!a&&!(l==="longPress"&&!h.altKey)&&n&&n.current)switch(h.key){case"Enter":case" ":if(l==="longPress"||h.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},f=t4(tj(Q7),"@react-aria/menu"),{longPressProps:c}=m4({isDisabled:a||l!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),d={preventFocusOnPress:!0,onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!a&&(Hn(h.target),t.open(h.pointerType==="virtual"?"first":null))},onPress(h){h.pointerType==="touch"&&!a&&(Hn(h.target),t.toggle())}};return delete o.onPress,{menuTriggerProps:{...o,...l==="press"?d:c,id:i,onKeyDown:u},menuProps:{...s,"aria-labelledby":i,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const I7=new WeakMap;function rj(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:a,onKeyUp:l,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let o=nt(e,{labelable:!0}),{listProps:s}=XD({...i,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return I7.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:ce(o,{onKeyDown:a,onKeyUp:l},{role:"menu",...s,onKeyDown:u=>{var f;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((f=s.onKeyDown)===null||f===void 0||f.call(s,u))}})}}function aj(e,t,n){let{id:r,key:a,closeOnSelect:l,isVirtualized:i,"aria-haspopup":o,onPressStart:s,onPressUp:u,onPress:f,onPressChange:c,onPressEnd:d,onClick:h,onHoverStart:m,onHoverChange:v,onHoverEnd:y,onKeyDown:b,onKeyUp:g,onFocus:x,onFocusChange:S,onBlur:C,selectionManager:E=t.selectionManager}=e,M=!!o,N=M&&e["aria-expanded"]==="true";var j;let A=(j=e.isDisabled)!==null&&j!==void 0?j:E.isDisabled(a);var U;let F=(U=e.isSelected)!==null&&U!==void 0?U:E.isSelected(a),G=I7.get(t),Q=t.collection.getItem(a),_=e.onClose||G.onClose,T=Ef(),L=()=>{var de;if(!M&&(!(Q==null||(de=Q.props)===null||de===void 0)&&de.onAction?Q.props.onAction():e.onAction&&e.onAction(a),G.onAction)){let jr=G.onAction;jr(a)}},K="menuitem";M||(E.selectionMode==="single"?K="menuitemradio":E.selectionMode==="multiple"&&(K="menuitemcheckbox"));let V=Kc(),D=Kc(),z=Kc(),k={id:r,"aria-disabled":A||void 0,role:K,"aria-label":e["aria-label"],"aria-labelledby":V,"aria-describedby":[D,z].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":o,"aria-expanded":e["aria-expanded"]};E.selectionMode!=="none"&&!M&&(k["aria-checked"]=F),i&&(k["aria-posinset"]=Q==null?void 0:Q.index,k["aria-setsize"]=ej(t.collection));let P=p.useRef(!1),B=de=>{c==null||c(de),P.current=de},Y=p.useRef(null),Oe=de=>{de.pointerType!=="keyboard"&&(Y.current={pointerType:de.pointerType}),de.pointerType==="mouse"&&(P.current||de.target.click()),u==null||u(de)},he=de=>{var jr,Kt;h==null||h(de),L(),Zk(de,T,Q.props.href,Q==null?void 0:Q.props.routerOptions);let io=((jr=Y.current)===null||jr===void 0?void 0:jr.pointerType)==="keyboard"?((Kt=Y.current)===null||Kt===void 0?void 0:Kt.key)==="Enter"||E.selectionMode==="none"||E.isLink(a):E.selectionMode!=="multiple"||E.isLink(a);io=l??io,_&&!M&&io&&_(),Y.current=null},{itemProps:_e,isFocused:Ue}=GD({id:r,selectionManager:E,key:a,ref:n,linkBehavior:"none",shouldUseVirtualFocus:G.shouldUseVirtualFocus}),{pressProps:W,isPressed:bt}=kf({onPressStart:s,onPress:f,onPressUp:Oe,onPressChange:B,onPressEnd:d,isDisabled:A}),{hoverProps:on}=no({isDisabled:A,onHoverStart(de){!qs()&&!(N&&o)&&(E.setFocused(!0),E.setFocusedKey(a)),m==null||m(de)},onHoverChange:v,onHoverEnd:y}),{keyboardProps:Ol}=f4({onKeyDown:de=>{if(de.repeat){de.continuePropagation();return}switch(de.key){case" ":Y.current={pointerType:"keyboard",key:" "},de.target.click();break;case"Enter":Y.current={pointerType:"keyboard",key:"Enter"},de.target.tagName!=="A"&&de.target.click();break;default:M||de.continuePropagation(),b==null||b(de);break}},onKeyUp:g}),{focusProps:lo}=Bg({onBlur:C,onFocus:x,onFocusChange:S}),wu=nt(Q==null?void 0:Q.props);delete wu.id;let Su=Yk(Q==null?void 0:Q.props);return{menuItemProps:{...k,...ce(wu,Su,M?{onFocus:_e.onFocus,"data-collection":_e["data-collection"],"data-key":_e["data-key"]}:_e,W,on,Ol,lo,G.shouldUseVirtualFocus||M?{onMouseDown:de=>de.preventDefault()}:void 0,A?void 0:{onClick:he}),tabIndex:_e.tabIndex!=null&&N&&!G.shouldUseVirtualFocus?-1:_e.tabIndex},labelProps:{id:V},descriptionProps:{id:D},keyboardShortcutProps:{id:z},isFocused:Ue,isFocusVisible:Ue&&E.isFocused&&qs()&&!N,isSelected:F,isPressed:bt,isDisabled:A}}function lj(e){let{heading:t,"aria-label":n}=e,r=an();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}class ro{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,n,r){let a=this.clone();return n.addDescendants(a,t),a}constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}}class X7 extends ro{filter(t,n,r){let[a,l]=Z7(t,n,this.firstChildKey,r),i=this.clone();return i.firstChildKey=a,i.lastChildKey=l,i}}class ij extends ro{}ij.type="header";class oj extends ro{}oj.type="loader";class Y7 extends X7{filter(t,n,r){if(r(this.textValue,this)){let a=this.clone();return n.addDescendants(a,t),a}return null}}Y7.type="item";class sj extends X7{filter(t,n,r){let a=super.filter(t,n,r);if(a&&a.lastChildKey!==null){let l=t.getItem(a.lastChildKey);if(l&&l.type!=="header")return a}return null}}sj.type="section";class uj{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),a=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;a;)yield a,a=a.nextKey!=null?n.get(a.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,n){this.addNode(t);let r=n.getChildren(t.key);for(let a of r)this.addDescendants(a,n)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(t);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}filter(t){let n=new this.constructor,[r,a]=Z7(this,n,this.firstKey,t);return n==null||n.commit(r,a),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function Z7(e,t,n,r){if(n==null)return[null,null];let a=null,l=null,i=e.getItem(n);for(;i!=null;){let u=i.filter(e,t,r);u!=null&&(u.nextKey=null,l&&(u.prevKey=l.key,l.nextKey=u.key),a==null&&(a=u),t.addNode(u),l=u),i=i.nextKey?e.getItem(i.nextKey):null}if(l&&l.type==="separator"){let u=l.prevKey;t.removeNode(l.key),u?(l=t.getItem(u),l.nextKey=null):l=null}var o,s;return[(o=a==null?void 0:a.key)!==null&&o!==void 0?o:null,(s=l==null?void 0:l.key)!==null&&s!==void 0?s:null]}class W7{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class Si extends W7{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof Si?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,a,l,i,o,s;let u=this.nextVisibleSibling,f=this.getMutableNode();if(f!=null){f.index=this.index,f.level=this.level;var c;f.parentKey=this.parentNode instanceof Si&&(c=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&c!==void 0?c:null;var d;f.prevKey=(d=(r=this.previousVisibleSibling)===null||r===void 0||(n=r.node)===null||n===void 0?void 0:n.key)!==null&&d!==void 0?d:null;var h;f.nextKey=(h=u==null||(a=u.node)===null||a===void 0?void 0:a.key)!==null&&h!==void 0?h:null,f.hasChildNodes=!!this.firstChild;var m;f.firstChildKey=(m=(i=this.firstVisibleChild)===null||i===void 0||(l=i.node)===null||l===void 0?void 0:l.key)!==null&&m!==void 0?m:null;var v;if(f.lastChildKey=(v=(s=this.lastVisibleChild)===null||s===void 0||(o=s.node)===null||o===void 0?void 0:o.key)!==null&&v!==void 0?v:null,(f.colSpan!=null||f.colIndex!=null)&&u){var y,b;let g=((y=f.colIndex)!==null&&y!==void 0?y:f.index)+((b=f.colSpan)!==null&&b!==void 0?b:1);if(u.node!=null&&g!==u.node.colIndex){let x=u.getMutableNode();x.colIndex=g}}}}setProps(t,n,r,a,l){let i,{value:o,textValue:s,id:u,...f}=t;if(this.node==null?(i=new r(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=i):i=this.getMutableNode(),f.ref=n,i.props=f,i.rendered=a,i.render=l,i.value=o,t["aria-label"]&&(i["aria-label"]=t["aria-label"]),i.textValue=s||(typeof f.children=="string"?f.children:"")||t["aria-label"]||"",u!=null&&u!==i.key)throw new Error("Cannot change the id of an item");f.colSpan!=null&&(i.colSpan=f.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){var a,l;(((a=t.parentNode)===null||a===void 0?void 0:a.firstVisibleChild)===t||((l=t.parentNode)===null||l===void 0?void 0:l.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,o=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),o&&t.ownerDocument.markDirty(o),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class cj extends W7{get isConnected(){return!0}createElement(t){return new Si(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof Si&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof Si?(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.node&&this.dirtyNodes.delete(o),o.isMutated=!1):this.dirtyNodes.delete(o);if(this.nextCollection){var t,n,r,a,l,i;this.nextCollection.commit((l=(n=this.firstVisibleChild)===null||n===void 0||(t=n.node)===null||t===void 0?void 0:t.key)!==null&&l!==void 0?l:null,(i=(a=this.lastVisibleChild)===null||a===void 0||(r=a.node)===null||r===void 0?void 0:r.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function $7(e){let{children:t,items:n,idScope:r,addIdAndValue:a,dependencies:l=[]}=e,i=p.useMemo(()=>new WeakMap,l);return p.useMemo(()=>{if(n&&typeof t=="function"){let u=[];for(let f of n){let c=i.get(f);if(!c){c=t(f);var o,s;let d=(s=(o=c.props.id)!==null&&o!==void 0?o:f.key)!==null&&s!==void 0?s:f.id;if(d==null)throw new Error("Could not determine key for item");r!=null&&(d=r+":"+d),c=p.cloneElement(c,a?{key:d,id:d,value:f}:{key:d}),i.set(f,c)}u.push(c)}return u}else if(typeof t!="function")return t},[t,n,i,r,a])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const jd=p.createContext(!1);function dj(e){if(p.useContext(jd))return O.createElement(O.Fragment,null,e.children);let t=O.createElement(jd.Provider,{value:!0},e.children);return O.createElement("template",{"data-react-aria-hidden":!0},t)}function fj(e){let t=(n,r)=>p.useContext(jd)?null:e(n,r);return t.displayName=e.displayName||e.name,p.forwardRef(t)}function hj(){return p.useContext(jd)}var J7={exports:{}},ex={};/**
|
|
80
80
|
* @license React
|
|
81
81
|
* use-sync-external-store-shim.production.js
|
|
82
82
|
*
|
|
@@ -84,7 +84,7 @@ Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}
|
|
|
84
84
|
*
|
|
85
85
|
* This source code is licensed under the MIT license found in the
|
|
86
86
|
* LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/var Bi=O;function Wj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jj=typeof Object.is=="function"?Object.is:Wj,eD=Bi.useState,tD=Bi.useEffect,nD=Bi.useLayoutEffect,rD=Bi.useDebugValue;function aD(e,t){var n=t(),r=eD({inst:{value:n,getSnapshot:t}}),a=r[0].inst,l=r[1];return nD(function(){a.value=n,a.getSnapshot=t,th(a)&&l({inst:a})},[e,n,t]),tD(function(){return th(a)&&l({inst:a}),e(function(){th(a)&&l({inst:a})})},[e]),rD(n),n}function th(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jj(e,n)}catch{return!0}}function lD(e,t){return t()}var iD=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?lD:aD;Q7.useSyncExternalStore=Bi.useSyncExternalStore!==void 0?Bi.useSyncExternalStore:iD;G7.exports=Q7;var oD=G7.exports;const I7=p.createContext(!1),Is=p.createContext(null);function sD(e){if(p.useContext(Is))return e.content;let{collection:t,document:n}=fD(e.createCollection);return O.createElement(O.Fragment,null,O.createElement(Yj,null,O.createElement(Is.Provider,{value:n},e.content)),O.createElement(uD,{render:e.children,collection:t}))}function uD({collection:e,render:t}){return t(e)}function cD(e,t,n){let r=ja(),a=p.useRef(r);a.current=r;let l=p.useCallback(()=>a.current?n():t(),[t,n]);return oD.useSyncExternalStore(e,l)}const dD=typeof O.useSyncExternalStore=="function"?O.useSyncExternalStore:cD;function fD(e){let[t]=p.useState(()=>new Xj((e==null?void 0:e())||new Ij)),n=p.useCallback(l=>t.subscribe(l),[t]),r=p.useCallback(()=>{let l=t.getCollection();return t.isSSR&&t.resetAfterSSR(),l},[t]),a=p.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:dD(n,r,a),document:t}}const Yp=p.createContext(null);function hD(e){var t;return t=class extends oo{},t.type=e,t}function pD(e,t,n,r,a,l){typeof e=="string"&&(e=hD(e));let i=p.useCallback(s=>{s==null||s.setProps(t,n,e,r,l)},[t,n,r,l,e]),o=p.useContext(Yp);if(o){let s=o.ownerDocument.nodesByProps.get(t);return s||(s=o.ownerDocument.createElement(e.type),s.setProps(t,n,e,r,l),o.appendChild(s),o.ownerDocument.updateCollection(),o.ownerDocument.nodesByProps.set(t,s)),a?O.createElement(Yp.Provider,{value:s},a):null}return O.createElement(e.type,{ref:i},a)}function mD(e,t){let n=({node:a})=>t(a.props,a.props.ref,a),r=p.forwardRef((a,l)=>{let i=p.useContext(kd);if(!p.useContext(I7)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(a,l)}return pD(e,a,l,"children"in a?a.children:null,null,o=>O.createElement(kd.Provider,{value:i},O.createElement(n,{node:o})))});return r.displayName=t.name,r}function gD(e){return V7({...e,addIdAndValue:!0})}const sy=p.createContext(null);function vD(e){let t=p.useContext(sy),n=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),r=e.idScope||(t==null?void 0:t.idScope),a=gD({...e,idScope:r,dependencies:n});return p.useContext(Is)&&(a=O.createElement(bD,null,a)),t=p.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),O.createElement(sy.Provider,{value:t},a)}function bD({children:e}){let t=p.useContext(Is),n=p.useMemo(()=>O.createElement(Is.Provider,{value:null},O.createElement(I7.Provider,{value:!0},e)),[e]);return ja()?O.createElement(Yp.Provider,{value:t},n):Js.createPortal(n,t)}const yD=p.createContext(null),xD={CollectionRoot({collection:e,renderDropIndicator:t}){return uy(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return uy(e,t,n)}};function uy(e,t,n){return V7({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){let a=r.render(r);return!n||r.type!=="item"?a:O.createElement(O.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),a,wD(e,r,n))}})}function wD(e,t,n){let r=t.key,a=e.getKeyAfter(r),l=a!=null?e.getItem(a):null;for(;l!=null&&l.type!=="item";)a=e.getKeyAfter(l.key),l=a!=null?e.getItem(a):null;let i=t.nextKey!=null?e.getItem(t.nextKey):null;for(;i!=null&&i.type!=="item";)i=i.nextKey!=null?e.getItem(i.nextKey):null;let o=[];if(i==null){let s=t;for(;s&&(!l||s.parentKey!==l.parentKey&&l.level<s.level);){let u=n({type:"item",key:s.key,dropPosition:"after"});p.isValidElement(u)&&o.push(p.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return o}const X7=p.createContext(xD);function CD(e){return p.useMemo(()=>e!=null?new Set([e]):null,[e])}function Y7(e,t){let{elementType:n="button",isDisabled:r,onPress:a,onPressStart:l,onPressEnd:i,onPressUp:o,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:f,onClick:c,href:d,target:h,rel:m,type:b="button"}=e,y;n==="button"?y={type:b,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:y={role:"button",href:n==="a"&&!r?d:void 0,target:n==="a"?h:void 0,type:n==="input"?b:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?m:void 0};let{pressProps:v,isPressed:g}=Tf({onPressStart:l,onPressEnd:i,onPressChange:s,onPress:a,onPressUp:o,onClick:c,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:x}=l4(e,t);f&&(x.tabIndex=r?-1:x.tabIndex);let C=ue(x,v,Je(e,{labelable:!0}));return{isPressed:g,buttonProps:ue(y,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function Z7(e,t,n){const{isSelected:r}=t,{isPressed:a,buttonProps:l}=Y7({...e,onPress:ro(t.toggle,e.onPress)},n);return{isPressed:a,isSelected:r,isDisabled:e.isDisabled||!1,buttonProps:ue(l,{"aria-pressed":r})}}function SD(e,t){const{"aria-label":n,"aria-labelledby":r,orientation:a="horizontal"}=e;let[l,i]=p.useState(!1);we(()=>{var m;i(!!(t.current&&!((m=t.current.parentElement)===null||m===void 0)&&m.closest('[role="toolbar"]')))});const{direction:o}=Rl(),s=o==="rtl"&&a==="horizontal";let u=aj(t);const f=m=>{if(m.currentTarget.contains(m.target)){if(a==="horizontal"&&m.key==="ArrowRight"||a==="vertical"&&m.key==="ArrowDown")s?u.focusPrevious():u.focusNext();else if(a==="horizontal"&&m.key==="ArrowLeft"||a==="vertical"&&m.key==="ArrowUp")s?u.focusNext():u.focusPrevious();else if(m.key==="Tab"){m.stopPropagation(),c.current=document.activeElement,m.shiftKey?u.focusFirst():u.focusLast();return}else return;m.stopPropagation(),m.preventDefault()}},c=p.useRef(null),d=m=>{!m.currentTarget.contains(m.relatedTarget)&&!c.current&&(c.current=m.target)},h=m=>{var b;if(c.current&&!m.currentTarget.contains(m.relatedTarget)&&!((b=t.current)===null||b===void 0)&&b.contains(m.target)){var y;(y=c.current)===null||y===void 0||y.focus(),c.current=null}};return{toolbarProps:{...Je(e,{labelable:!0}),role:l?"group":"toolbar","aria-orientation":a,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:l?void 0:f,onFocusCapture:l?void 0:h,onBlurCapture:l?void 0:d}}}function ED(e,t,n){let{isDisabled:r}=e,{toolbarProps:a}=SD(e,n);return{groupProps:{...a,role:t.selectionMode==="single"?"radiogroup":a.role,"aria-disabled":r}}}function MD(e,t,n){let r={isSelected:t.selectedKeys.has(e.id),toggle(){t.toggleKey(e.id)}},{isPressed:a,isSelected:l,isDisabled:i,buttonProps:o}=Z7({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},r,n);return t.selectionMode==="single"&&(o.role="radio",o["aria-checked"]=r.isSelected,delete o["aria-pressed"]),{isPressed:a,isSelected:l,isDisabled:i,buttonProps:o}}function OD(e={}){let{isReadOnly:t}=e,[n,r]=yu(e.isSelected,e.defaultSelected||!1,e.onChange),[a]=p.useState(n);function l(s){t||r(s)}function i(){t||r(!n)}var o;return{isSelected:n,defaultSelected:(o=e.defaultSelected)!==null&&o!==void 0?o:a,setSelected:l,toggle:i}}function RD(e){let{selectionMode:t="single",disallowEmptySelection:n,isDisabled:r=!1}=e,[a,l]=yu(p.useMemo(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),p.useMemo(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:r,selectedKeys:a,setSelectedKeys:l,toggleKey(i){let o;t==="multiple"?(o=new Set(a),o.has(i)&&(!n||o.size>1)?o.delete(i):o.add(i)):o=new Set(a.has(i)&&!n?[]:[i]),l(o)},setSelected(i,o){o!==a.has(i)&&this.toggleKey(i)}}}function TD(e,t){let{role:n="dialog"}=e,r=Kc();r=e["aria-label"]?void 0:r;let a=p.useRef(!1);return p.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Sa(t.current);let l=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(a.current=!0,t.current&&(t.current.blur(),Sa(t.current)),a.current=!1)},500);return()=>{clearTimeout(l)}}},[t]),t7(),{dialogProps:{...Je(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:l=>{a.current&&l.stopPropagation()}},titleProps:{id:r}}}function kD(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:a,isIndeterminate:l,formatOptions:i={style:"percent"}}=e,o=Je(e,{labelable:!0}),{labelProps:s,fieldProps:u}=Cj({...e,labelElementType:"span"});t=Fs(t,n,r);let f=(t-n)/(r-n),c=Ok(i);if(!l&&!a){let d=i.style==="percent"?f:t;a=c.format(d)}return{progressBarProps:ue(o,{...u,"aria-valuenow":l?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":l?void 0:a,role:"progressbar"}),labelProps:s}}function jD(e){let{progressBarProps:t,labelProps:n}=kD(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}function DD(e,t){let n=Je(e,{labelable:!0}),{hoverProps:r}=io({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:ue(n,r,{role:"tooltip"})}}function ND(e,t,n){let{isDisabled:r,trigger:a}=e,l=ln(),i=p.useRef(!1),o=p.useRef(!1),s=()=>{(i.current||o.current)&&t.open(o.current)},u=v=>{!i.current&&!o.current&&t.close(v)};p.useEffect(()=>{let v=g=>{n&&n.current&&g.key==="Escape"&&(g.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",v,!0),()=>{document.removeEventListener("keydown",v,!0)}},[n,t]);let f=()=>{a!=="focus"&&(Qs()==="pointer"?i.current=!0:i.current=!1,s())},c=()=>{a!=="focus"&&(o.current=!1,i.current=!1,u())},d=()=>{o.current=!1,i.current=!1,u(!0)},h=()=>{Gs()&&(o.current=!0,s())},m=()=>{o.current=!1,i.current=!1,u(!0)},{hoverProps:b}=io({isDisabled:r,onHoverStart:f,onHoverEnd:c}),{focusableProps:y}=l4({isDisabled:r,onFocus:h,onBlur:m},n);return{triggerProps:{"aria-describedby":t.isOpen?l:void 0,...ue(y,b,{onPointerDown:d,onKeyDown:d}),tabIndex:void 0},tooltipProps:{id:l}}}const AD=p.createContext({}),LD=p.createContext(null),$7=p.createContext({}),qg=Zj(function(e,t){[e,t]=Rn(e,t,$7);let n=e,{isPending:r}=n,{buttonProps:a,isPressed:l}=Y7(e,t);a=_D(a,r);let{focusProps:i,isFocused:o,isFocusVisible:s}=d4(e),{hoverProps:u,isHovered:f}=io({...e,isDisabled:e.isDisabled||r}),c={isHovered:f,isPressed:(n.isPressed||l)&&!r,isFocused:o,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:r??!1},d=On({...e,values:c,defaultClassName:"react-aria-Button"}),h=ln(a.id),m=ln(),b=a["aria-labelledby"];r&&(b?b=`${b} ${m}`:a["aria-label"]&&(b=`${h} ${m}`));let y=p.useRef(r);p.useEffect(()=>{let g={"aria-labelledby":b||h};(!y.current&&o&&r||y.current&&o&&!r)&&WT(g,"assertive"),y.current=r},[r,o,b,h]);let v=Je(e,{global:!0});return delete v.onClick,O.createElement("button",{...ue(v,d,a,i,u),type:a.type==="submit"&&r?"button":a.type,id:h,ref:t,"aria-labelledby":b,slot:e.slot||void 0,"aria-disabled":r?"true":a["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":c.isPressed||void 0,"data-hovered":f||void 0,"data-focused":o||void 0,"data-pending":r||void 0,"data-focus-visible":s||void 0},O.createElement(LD.Provider,{value:{id:m}},d.children))});function _D(e,t){if(t){for(const n in e)n.startsWith("on")&&!(n.includes("Focus")||n.includes("Blur"))&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const zD=p.createContext({});class Pn extends Set{constructor(t,n,r){super(t),t instanceof Pn?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function PD(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function W7(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:a="toggle",disabledBehavior:l="all"}=e,i=p.useRef(!1),[,o]=p.useState(!1),s=p.useRef(null),u=p.useRef(null),[,f]=p.useState(null),c=p.useMemo(()=>cy(e.selectedKeys),[e.selectedKeys]),d=p.useMemo(()=>cy(e.defaultSelectedKeys,new Pn),[e.defaultSelectedKeys]),[h,m]=yu(c,d,e.onSelectionChange),b=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[y,v]=p.useState(a);a==="replace"&&y==="toggle"&&typeof h=="object"&&h.size===0&&v("replace");let g=p.useRef(a);return p.useEffect(()=>{a!==g.current&&(v(a),g.current=a)},[a]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:v,get isFocused(){return i.current},setFocused(x){i.current=x,o(x)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(x,C="first"){s.current=x,u.current=C,f(x)},selectedKeys:h,setSelectedKeys(x){(r||!PD(x,h))&&m(x)},disabledKeys:b,disabledBehavior:l}}function cy(e,t){return e?e==="all"?"all":new Pn(e):t}class kf{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let a=this.collection.getItem(r);(!t||a&&eh(this.collection,a,t)<0)&&(t=a)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let a=this.collection.getItem(r);(!t||a&&eh(this.collection,a,t)>0)&&(t=a)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new Pn([n],n,n);else{let i=this.state.selectedKeys;var a;let o=(a=i.anchorKey)!==null&&a!==void 0?a:n;r=new Pn(i,o,n);var l;for(let s of this.getKeyRange(o,(l=i.currentKey)!==null&&l!==void 0?l:n))r.delete(s);for(let s of this.getKeyRange(n,o))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),a=this.collection.getItem(n);return r&&a?eh(this.collection,r,a)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let a=[],l=t;for(;l!=null;){let i=this.collection.getItem(l);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&a.push(l),l===n)return a;l=this.collection.getKeyAfter(l)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new Pn(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new Pn([n],n,n):new Pn;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Pn;for(let r of t){let a=this.getKey(r);if(a!=null&&(n.add(a),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var a;let i=this.collection.getItem(r);(i==null?void 0:i.type)==="item"&&t.push(r);var l;i!=null&&i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&n((l=(a=zj(r7(i,this.collection)))===null||a===void 0?void 0:a.key)!==null&&l!==void 0?l:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Pn)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new kf(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var a;this.allowsCellSelection=(a=r==null?void 0:r.allowsCellSelection)!==null&&a!==void 0?a:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function jf(e){let[t,n]=yu(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=p.useCallback(()=>{n(!0)},[n]),a=p.useCallback(()=>{n(!1)},[n]),l=p.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:a,toggle:l}}function Fg(e){let t=jf(e),[n,r]=p.useState(null),[a,l]=p.useState([]),i=()=>{l([]),t.close()};return{focusStrategy:n,...t,open(o=null){r(o),t.open()},toggle(o=null){r(o),t.toggle()},close(){i()},expandedKeysStack:a,openSubmenu:(o,s)=>{l(u=>s>u.length?u:[...u.slice(0,s),o])},closeSubmenu:(o,s)=>{l(u=>u[s]===o?u.slice(0,s):u)}}}const HD=1500,dy=500;let Ia={},KD=0,Uo=!1,hr=null,Xa=null;function J7(e={}){let{delay:t=HD,closeDelay:n=dy}=e,{isOpen:r,open:a,close:l}=jf(e),i=p.useMemo(()=>`${++KD}`,[]),o=p.useRef(null),s=p.useRef(l),u=()=>{Ia[i]=d},f=()=>{for(let m in Ia)m!==i&&(Ia[m](!0),delete Ia[m])},c=()=>{o.current&&clearTimeout(o.current),o.current=null,f(),u(),Uo=!0,a(),hr&&(clearTimeout(hr),hr=null),Xa&&(clearTimeout(Xa),Xa=null)},d=m=>{m||n<=0?(o.current&&clearTimeout(o.current),o.current=null,s.current()):o.current||(o.current=setTimeout(()=>{o.current=null,s.current()},n)),hr&&(clearTimeout(hr),hr=null),Uo&&(Xa&&clearTimeout(Xa),Xa=setTimeout(()=>{delete Ia[i],Xa=null,Uo=!1},Math.max(dy,n)))},h=()=>{f(),u(),!r&&!hr&&!Uo?hr=setTimeout(()=>{hr=null,Uo=!0,c()},t):r||c()};return p.useEffect(()=>{s.current=l},[l]),p.useEffect(()=>()=>{o.current&&clearTimeout(o.current),Ia[i]&&delete Ia[i]},[i]),{isOpen:r,open:m=>{!m&&t>0&&!o.current?h():c()},close:d}}class UD{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&(o.type==="section"||n.has(o.key)))for(let s of o.childNodes)r(s)};for(let o of t)r(o);let a=null,l=0;for(let[o,s]of this.keyMap)a?(a.nextKey=o,s.prevKey=a.key):(this.firstKey=o,s.prevKey=void 0),s.type==="item"&&(s.index=l++),a=s,a.nextKey=void 0;var i;this.lastKey=(i=a==null?void 0:a.key)!==null&&i!==void 0?i:null}}function BD(e){let{onExpandedChange:t}=e,[n,r]=yu(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),a=W7(e),l=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=_j(e,p.useCallback(o=>new UD(o,{expandedKeys:n}),[n]),null);return p.useEffect(()=>{a.focusedKey!=null&&!i.getItem(a.focusedKey)&&a.setFocusedKey(null)},[i,a.focusedKey]),{collection:i,expandedKeys:n,disabledKeys:l,toggleKey:o=>{r(qD(n,o))},setExpandedKeys:r,selectionManager:new kf(i,a)}}function qD(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}const FD=p.createContext({}),VD=p.createContext(null);function e6(e){let t=p.useRef({});return O.createElement(VD.Provider,{value:t},e.children)}const t6=p.createContext({isSelected:!1}),GD=p.createContext({});class QD extends oo{filter(t,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let a=this.clone();return n.addDescendants(a,t),a}return null}}QD.type="separator";const n6=p.createContext({placement:"bottom"}),Vg=p.createContext(null),fy=p.createContext(null),ID=p.forwardRef(function(e,t){[e,t]=Rn(e,t,Vg);let n=p.useContext(Tl),r=jf(e),a=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,l=Sd(t,a.isOpen)||e.isExiting||!1,i=$j(),{direction:o}=Rl();if(i){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),O.createElement(O.Fragment,null,s)}return a&&!a.isOpen&&!l?null:O.createElement(XD,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:l,dir:o})});function XD({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...a}){let l=p.useRef(null),i=p.useRef(null),o=p.useContext(fy),s=o&&a.trigger==="SubmenuTrigger";var u;let{popoverProps:f,underlayProps:c,arrowProps:d,placement:h,triggerAnchorPoint:m}=xj({...a,offset:(u=a.offset)!==null&&u!==void 0?u:8,arrowRef:l,groupRef:s?o:i},e),b=a.popoverRef,y=Of(b,!!h)||a.isEntering||!1,v=On({...a,defaultClassName:"react-aria-Popover",values:{trigger:a.trigger||null,placement:h,isEntering:y,isExiting:t}}),g=!a.isNonModal||a.trigger==="SubmenuTrigger",[x,C]=p.useState(!1);we(()=>{b.current&&C(g&&!b.current.querySelector("[role=dialog]"))},[b,g]),p.useEffect(()=>{x&&a.trigger!=="SubmenuTrigger"&&b.current&&!b.current.contains(document.activeElement)&&Sa(b.current)},[x,b,a.trigger]);let E=p.useMemo(()=>{let D=v.children;if(r)for(let N of r)D=O.createElement(N.Provider,{value:null},D);return D},[v.children,r]),S={...f.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...v.style},M=O.createElement("div",{...ue(Je(a,{global:!0}),f),...v,role:x?"dialog":void 0,tabIndex:x?-1:void 0,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"],ref:b,slot:a.slot||void 0,style:S,dir:a.dir,"data-trigger":a.trigger,"data-placement":h,"data-entering":y||void 0,"data-exiting":t||void 0},!a.isNonModal&&O.createElement(Qp,{onDismiss:e.close}),O.createElement(n6.Provider,{value:{...d,placement:h,ref:l}},E),O.createElement(Qp,{onDismiss:e.close}));if(!s)return O.createElement(Ip,{...a,shouldContainFocus:x,isExiting:t,portalContainer:n},!a.isNonModal&&e.isOpen&&O.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),O.createElement("div",{ref:i,style:{display:"contents"}},O.createElement(fy.Provider,{value:i},M)));var A;return O.createElement(Ip,{...a,shouldContainFocus:x,isExiting:t,portalContainer:(A=n??(o==null?void 0:o.current))!==null&&A!==void 0?A:void 0},M)}const YD=p.createContext({}),r6=p.createContext(null),Gg=p.createContext(null),Nd=p.createContext(null),Ad=p.createContext(null);function ZD(e){let t=Fg(e),n=p.useRef(null),{menuTriggerProps:r,menuProps:a}=Uj({...e,type:"menu"},t,n),[l,i]=p.useState(null),o=p.useCallback(()=>{n.current&&i(n.current.offsetWidth+"px")},[n]);Cd({ref:n,onResize:o});let s=p.useRef(null);return O.createElement(Da,{values:[[r6,{...a,ref:s}],[Tl,t],[Nd,t],[Vg,{trigger:"MenuTrigger",triggerRef:n,scrollRef:s,placement:"bottom start",style:{"--trigger-width":l},"aria-labelledby":a["aria-labelledby"]}]]},O.createElement(i4,{...r,ref:n,isPressed:t.isOpen},e.children))}const $D=p.createContext(null);class WD extends oo{filter(t,n,r){let a=t.getItem(this.firstChildKey);if(a&&r(a.textValue,this)){let l=this.clone();return n.addDescendants(l,t),l}return null}}WD.type="submenutrigger";const JD=p.forwardRef(function(e,t){return[e,t]=Rn(e,t,r6),O.createElement(sD,{content:O.createElement(vD,e)},n=>O.createElement(eN,{props:e,collection:n,menuRef:t}))});function eN({props:e,collection:t,menuRef:n}){[e,n]=Rn(e,n,Mb);let{filter:r,...a}=e,l=p.useMemo(()=>r?t.filter(r):t,[t,r]),i=BD({...e,collection:l,children:void 0}),o=p.useContext(Nd),{isVirtualized:s,CollectionRoot:u}=p.useContext(X7),{menuProps:f}=Bj({...e,isVirtualized:s,onClose:e.onClose||(o==null?void 0:o.close)},i,n),c=On({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:i.collection.size===0}}),d=null;i.collection.size===0&&e.renderEmptyState&&(d=O.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let h=Je(e,{global:!0});return O.createElement(s4,null,O.createElement("div",{...ue(h,c,f),ref:n,slot:e.slot||void 0,"data-empty":i.collection.size===0||void 0,onScroll:e.onScroll},O.createElement(Da,{values:[[Gg,i],[GD,{elementType:"div"}],[yD,{name:"MenuSection",render:nN}],[$D,{parentMenuRef:n,shouldUseVirtualFocus:a==null?void 0:a.shouldUseVirtualFocus}],[Zp,null],[Mb,null],[lT,null],[Ad,i.selectionManager],[Nd,o??Fg({})]]},O.createElement(e6,null,O.createElement(u,{collection:i.collection,persistedKeys:CD(i.selectionManager.focusedKey),scrollRef:n}))),d))}class tN extends kf{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,n){return this.parent.setFocusedKey(t,n)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(t,n){super(t.collection,n),this.parent=t}}function nN(e,t,n,r="react-aria-MenuSection"){var a,l;let i=p.useContext(Gg),{CollectionBranch:o}=p.useContext(X7),[s,u]=q3();var f;let{headingProps:c,groupProps:d}=Fj({heading:u,"aria-label":(f=n.props["aria-label"])!==null&&f!==void 0?f:void 0}),h=On({defaultClassName:r,className:(a=n.props)===null||a===void 0?void 0:a.className,style:(l=n.props)===null||l===void 0?void 0:l.style,values:{}}),m=p.useContext(Ad),b=W7(e),y=e.selectionMode!=null?new tN(m,b):m,v=Je(e,{global:!0});return delete v.id,O.createElement("section",{...ue(v,h,d),ref:t},O.createElement(Da,{values:[[FD,{...c,ref:s}],[Ad,y]]},O.createElement(o,{collection:i.collection,parent:n})))}const Zp=p.createContext(null),rN=mD(B7,function(e,t,n){var r;[e,t]=Rn(e,t,Zp);let a=(r=B3(Zp))===null||r===void 0?void 0:r.id,l=p.useContext(Gg),i=ao(t),o=p.useContext(Ad),{menuItemProps:s,labelProps:u,descriptionProps:f,keyboardShortcutProps:c,...d}=qj({...e,id:a,key:n.key,selectionManager:o},l,i),{hoverProps:h,isHovered:m}=io({isDisabled:d.isDisabled}),b=On({...e,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...d,isHovered:m,isFocusVisible:d.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),y=e.href?"a":"div",v=Je(e,{global:!0});return delete v.id,delete v.onClick,O.createElement(y,{...ue(v,b,s,h),ref:i,"data-disabled":d.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-selected":d.isSelected||void 0,"data-selection-mode":o.selectionMode==="none"?void 0:o.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},O.createElement(Da,{values:[[zD,{slots:{[Ed]:u,label:u,description:f}}],[YD,c],[t6,{isSelected:d.isSelected}]]},b.children))}),a6=p.createContext(null),Tl=p.createContext(null);function l6(e){let t=Fg(e),n=p.useRef(null),{triggerProps:r,overlayProps:a}=m4({type:"dialog"},t,n),[l,i]=p.useState(null),o=p.useCallback(()=>{n.current&&i(n.current.offsetWidth+"px")},[n]);return Cd({ref:n,onResize:o}),r.id=ln(),a["aria-labelledby"]=r.id,O.createElement(Da,{values:[[Tl,t],[Nd,t],[a6,a],[Vg,{trigger:"DialogTrigger",triggerRef:n,"aria-labelledby":a["aria-labelledby"],style:{"--trigger-width":l}}]]},O.createElement(i4,{...r,ref:n,isPressed:t.isOpen},e.children))}const Df=p.forwardRef(function(e,t){let n=e["aria-labelledby"];[e,t]=Rn(e,t,a6);let{dialogProps:r,titleProps:a}=TD({...e,"aria-labelledby":n},t),l=p.useContext(Tl);!r["aria-label"]&&!r["aria-labelledby"]&&e["aria-labelledby"]&&(r["aria-labelledby"]=e["aria-labelledby"]);let i=On({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}}),o=Je(e,{global:!0});return O.createElement("section",{...ue(o,i,r),ref:t,slot:e.slot||void 0},O.createElement(Da,{values:[[O3,{slots:{[Ed]:{},title:{...a,level:2}}}],[$7,{slots:{[Ed]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},i.children))}),Nf=p.forwardRef(function(e,t){[e,t]=Rn(e,t,O3);let{children:n,level:r=3,className:a,...l}=e,i=`h${r}`;return O.createElement(i,{...l,ref:t,className:a??"react-aria-Heading"},n)}),aN=p.createContext(null),lN=p.forwardRef(function(e,t){[e,t]=Rn(e,t,aN);let{value:n=0,minValue:r=0,maxValue:a=100}=e;n=Fs(n,r,a);let[l,i]=q3(!e["aria-label"]&&!e["aria-labelledby"]),{meterProps:o,labelProps:s}=jD({...e,label:i}),u=(n-r)/(a-r)*100,f=On({...e,defaultClassName:"react-aria-Meter",values:{percentage:u,valueText:o["aria-valuetext"]}}),c=Je(e,{global:!0});return O.createElement("div",{...ue(c,f,o),ref:t,slot:e.slot||void 0},O.createElement(AD.Provider,{value:{...s,ref:l,elementType:"span"}},f.children))}),iN=p.createContext(null),Qg=p.createContext(null),Af=p.forwardRef(function(e,t){if(p.useContext(Qg))return O.createElement(hy,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:a,defaultOpen:l,onOpenChange:i,children:o,isEntering:s,isExiting:u,UNSTABLE_portalContainer:f,shouldCloseOnInteractOutside:c,...d}=e;return O.createElement(sN,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:a,defaultOpen:l,onOpenChange:i,isEntering:s,isExiting:u,UNSTABLE_portalContainer:f,shouldCloseOnInteractOutside:c},O.createElement(hy,{...d,modalRef:t},o))});function oN(e,t){[e,t]=Rn(e,t,iN);let n=p.useContext(Tl),r=jf(e),a=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,l=ao(t),i=p.useRef(null),o=Sd(l,a.isOpen),s=Sd(i,a.isOpen),u=o||s||e.isExiting||!1,f=ja();return!a.isOpen&&!u||f?null:O.createElement(uN,{...e,state:a,isExiting:u,overlayRef:l,modalRef:i})}const sN=p.forwardRef(oN);function uN({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:a,underlayProps:l}=wj(t,r,n),i=Of(t.overlayRef)||t.isEntering||!1,o=On({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:i,isExiting:t.isExiting,state:r}}),s=UT(),u;if(typeof document<"u"){let c=vl(document.body)?document.body:document.scrollingElement||document.documentElement,d=c.getBoundingClientRect().height%1;u=c.scrollHeight-d}let f={...o.style,"--visual-viewport-height":s.height+"px","--page-height":u!==void 0?u+"px":void 0};return O.createElement(Ip,{isExiting:t.isExiting,portalContainer:e},O.createElement("div",{...ue(Je(t,{global:!0}),l),...o,style:f,ref:t.overlayRef,"data-entering":i||void 0,"data-exiting":t.isExiting||void 0},O.createElement(Da,{values:[[Qg,{modalProps:a,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Tl,r]]},o.children)))}function hy(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:a}=p.useContext(Qg),l=p.useContext(Tl),i=p.useMemo(()=>j3(e.modalRef,n),[e.modalRef,n]),o=ao(i),s=Of(o),u=On({...e,defaultClassName:"react-aria-Modal",values:{isEntering:s,isExiting:r,state:l}});return O.createElement("div",{...ue(Je(e,{global:!0}),t),...u,ref:o,"data-entering":s||void 0,"data-exiting":r||void 0},a&&O.createElement(Qp,{onDismiss:l.close}),u.children)}const cN=p.createContext({}),i6=p.createContext(null),dN=p.forwardRef(function(e,t){[e,t]=Rn(e,t,cN);let n=RD(e),{groupProps:r}=ED(e,n,t),a=On({...e,values:{isDisabled:n.isDisabled,state:n},defaultClassName:"react-aria-ToggleButtonGroup"}),l=Je(e,{global:!0});return O.createElement("div",{...ue(l,a,r),ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},O.createElement(i6.Provider,{value:n},O.createElement(e6,null,a.children)))}),fN=p.createContext({}),hN=p.forwardRef(function(e,t){[e,t]=Rn(e,t,fN);let n=p.useContext(i6),r=OD(n&&e.id!=null?{isSelected:n.selectedKeys.has(e.id),onChange(b){n.setSelected(e.id,b)}}:e),{buttonProps:a,isPressed:l,isSelected:i,isDisabled:o}=n&&e.id!=null?MD({...e,id:e.id},n,t):Z7({...e,id:e.id!=null?String(e.id):void 0},r,t),{focusProps:s,isFocused:u,isFocusVisible:f}=d4(e),{hoverProps:c,isHovered:d}=io(e),h=On({...e,values:{isHovered:d,isPressed:l,isFocused:u,isSelected:r.isSelected,isFocusVisible:f,isDisabled:o,state:r},defaultClassName:"react-aria-ToggleButton"}),m=Je(e,{global:!0});return delete m.id,delete m.onClick,O.createElement("button",{...ue(m,h,a,s,c),ref:t,slot:e.slot||void 0,"data-focused":u||void 0,"data-disabled":o||void 0,"data-pressed":l||void 0,"data-selected":i||void 0,"data-hovered":d||void 0,"data-focus-visible":f||void 0},O.createElement(t6.Provider,{value:{isSelected:i}},h.children))}),Ig=p.createContext(null),o6=p.createContext(null);function pN(e){let t=J7(e),n=p.useRef(null),{triggerProps:r,tooltipProps:a}=ND(e,t,n);return O.createElement(Da,{values:[[Ig,t],[o6,{...a,triggerRef:n}]]},O.createElement(Gk,{...r,ref:n},e.children))}const mN=p.forwardRef(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=Rn(t,n,o6);let r=p.useContext(Ig),a=J7(t),l=t.isOpen!=null||t.defaultOpen!=null||!r?a:r,i=Sd(n,l.isOpen)||t.isExiting||!1;return!l.isOpen&&!i?null:O.createElement(pj,{portalContainer:e},O.createElement(gN,{...t,tooltipRef:n,isExiting:i}))});function gN(e){let t=p.useContext(Ig),n=p.useRef(null),{overlayProps:r,arrowProps:a,placement:l,triggerAnchorPoint:i}=Y3({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),o=Of(e.tooltipRef,!!l)||e.isEntering||!1,s=On({...e,defaultClassName:"react-aria-Tooltip",values:{placement:l,isEntering:o,isExiting:e.isExiting,state:t}});e=ue(e,r);let{tooltipProps:u}=DD(e,t),f=Je(e,{global:!0});return O.createElement("div",{...ue(f,s,u),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":i?`${i.x}px ${i.y}px`:void 0,...s.style},"data-placement":l??void 0,"data-entering":o||void 0,"data-exiting":e.isExiting||void 0},O.createElement(n6.Provider,{value:{...a,placement:l,ref:n}},s.children))}function vN(e,t){var n=p.useState(function(){if(typeof window>"u")return t;try{for(var i=window.localStorage.getItem(e),o=i?JSON.parse(i):t,s=0,u=Object.entries(t);s<u.length;s++){var f=u[s][0];if(typeof o[f]>"u")throw new Error("Missing key in local storage")}return o}catch(c){return console.log(c),t}}),r=n[0],a=n[1],l=function(i){try{var o=i instanceof Function?i(r):i;a(o),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(o))}catch(s){console.log(s)}};return[r,l]}var bN=function(){var e=vN("user-preferences",{theme:"system"}),t=e[0],n=e[1];return w.jsx(dN,{className:"flex h-7 space-x-0.5 rounded-md bg-slate-100 p-0.5 dark:bg-slate-700",defaultSelectedKeys:["system"],"aria-label":"Theme",selectedKeys:[t.theme],onSelectionChange:function(r){r.has("system")?n({theme:"system"}):r.has("light")?(document.documentElement.classList.remove("dark"),n({theme:"light"})):r.has("dark")&&(document.documentElement.classList.add("dark"),n({theme:"dark"}))},children:[{value:"system",icon:function(){return w.jsx(RR,{})},ariaLabel:"System theme"},{value:"light",icon:function(){return w.jsx(tT,{})},ariaLabel:"Light theme"},{value:"dark",icon:function(){return w.jsx(QR,{})},ariaLabel:"Dark theme"}].map(function(r){return w.jsx(hN,{className:"flex aspect-square h-full items-center justify-center rounded-md text-slate-900 transition duration-150 ease-in-out hover:bg-slate-200 active:bg-slate-300 data-[selected=true]:bg-slate-200 data-[selected=true]:shadow-sm dark:text-slate-50 dark:hover:bg-slate-500 dark:data-[selected=true]:bg-slate-500",id:r.value,"aria-label":r.ariaLabel,children:r.icon()},r.value)})})},$p=function(e){var t=e.message;return w.jsx("div",{className:"flex items-center justify-center rounded-md bg-red-50 py-4 dark:bg-red-950/50",children:w.jsx("div",{className:"flex flex-col justify-center",children:w.jsx("p",{className:"text-sm text-red-900 dark:text-red-200",children:t})})})},py=function(e){var t=e.to,n=e.label,r=e.icon;return w.jsxs(y3,{to:t,className:function(a){var l=a.isActive;return"relative -ml-px backdrop-blur-50 flex w-full items-center space-x-2 rounded-md pl-4 py-1 transition duration-150 ease-in-out ".concat(l?"bg-slate-100/90 font-medium text-slate-900 dark:bg-slate-900 dark:text-brand-300":"text-slate-500 dark:text-slate-400 border-slate-100 hover:bg-slate-50 dark:hover:bg-slate-900 hover:border-slate-300 hover:text-slate-900 dark:border-slate-700 dark:hover:border-slate-600 dark:hover:text-slate-100")},children:[r,w.jsx("span",{className:"block truncate",children:n})]})},s6=function(e){var t=e.children,n=ge.queue.list.useQuery(),r=n.data,a=n.isLoading,l=n.isError;return w.jsxs("div",{className:"grid xl:grid-cols-[auto,1fr]",children:[w.jsx("div",{className:"hidden w-64 xl:block",children:w.jsxs("div",{className:"sticky top-0 isolate flex h-full max-h-screen min-h-screen flex-col justify-between overflow-hidden border-r border-brand-50 px-4 pb-4 pt-8 shadow-sm dark:border-slate-700 dark:bg-black",children:[w.jsxs("svg",{viewBox:"0 0 1108 632","aria-hidden":"true",className:"absolute left-[calc(50%-24rem)] top-10 -z-10 w-[69.25rem] max-w-none rotate-90 transform-gpu opacity-50 blur-3xl lg:top-[calc(50%-30rem)]",children:[w.jsx("path",{fill:"url(#175c433f-44f6-4d59-93f0-c5c51ad5566d)",fillOpacity:".2",d:"M235.233 402.609 57.541 321.573.83 631.05l234.404-228.441 320.018 145.945c-65.036-115.261-134.286-322.756 109.01-230.655C968.382 433.026 1031 651.247 1092.23 459.36c48.98-153.51-34.51-321.107-82.37-385.717L810.952 324.222 648.261.088 235.233 402.609Z"}),w.jsx("defs",{children:w.jsxs("linearGradient",{id:"175c433f-44f6-4d59-93f0-c5c51ad5566d",x1:"1220.59",x2:"-85.053",y1:"432.766",y2:"638.714",gradientUnits:"userSpaceOnUse",children:[w.jsx("stop",{stopColor:"#bbebff"}),w.jsx("stop",{offset:1,stopColor:"#ffffff"})]})})]}),w.jsxs("div",{className:"space-y-8",children:[w.jsxs("div",{className:"flex items-center space-x-2 text-slate-900 dark:text-brand-50",children:[w.jsx(WR,{width:28,height:28}),w.jsx("p",{className:"text-lg font-semibold",children:"QueueDash"})]}),w.jsxs("div",{className:"w-full space-y-4",children:[w.jsx(py,{label:"Overview",icon:w.jsx(MR,{className:"mb-0.5",height:16,width:16}),to:"../"}),w.jsx("div",{className:"h-px w-full bg-slate-100 dark:bg-slate-700"}),w.jsx("div",{className:"w-full space-y-1",children:a?wt([],new Array(10),!0).map(function(i,o){return w.jsx(qs,{className:"h-8 w-full"},o)}):l?w.jsx($p,{message:"Could not fetch queues"}):r==null?void 0:r.map(function(i){return w.jsx(py,{to:"../".concat(i.name),label:i.displayName},i.name)})})]})]}),w.jsxs("div",{className:"flex w-full items-center justify-between",children:[w.jsx("a",{href:"https://github.com/alexbudure/queuedash",target:"_blank",rel:"noreferrer",className:"flex size-7 items-center justify-center rounded-md bg-slate-100 text-slate-900 shadow-sm transition duration-150 ease-in-out hover:bg-slate-200 active:bg-slate-300 dark:bg-slate-600 dark:text-slate-50 dark:hover:bg-slate-500",children:w.jsx(zR,{})}),w.jsx(bN,{})]})]})}),w.jsx("div",{className:"bg-white px-4 py-3 dark:bg-[#121212] lg:px-10 lg:py-8",children:w.jsx("div",{className:"max-w-screen-xl",children:t})})]})};/**
|
|
87
|
+
*/var Pi=O;function pj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mj=typeof Object.is=="function"?Object.is:pj,gj=Pi.useState,vj=Pi.useEffect,bj=Pi.useLayoutEffect,yj=Pi.useDebugValue;function xj(e,t){var n=t(),r=gj({inst:{value:n,getSnapshot:t}}),a=r[0].inst,l=r[1];return bj(function(){a.value=n,a.getSnapshot=t,rh(a)&&l({inst:a})},[e,n,t]),vj(function(){return rh(a)&&l({inst:a}),e(function(){rh(a)&&l({inst:a})})},[e]),yj(n),n}function rh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mj(e,n)}catch{return!0}}function wj(e,t){return t()}var Sj=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?wj:xj;ex.useSyncExternalStore=Pi.useSyncExternalStore!==void 0?Pi.useSyncExternalStore:Sj;J7.exports=ex;var Cj=J7.exports;const tx=p.createContext(!1),Gs=p.createContext(null);function Ej(e){if(p.useContext(Gs))return e.content;let{collection:t,document:n}=kj(e.createCollection);return O.createElement(O.Fragment,null,O.createElement(dj,null,O.createElement(Gs.Provider,{value:n},e.content)),O.createElement(Mj,{render:e.children,collection:t}))}function Mj({collection:e,render:t}){return t(e)}function Oj(e,t,n){let r=ka(),a=p.useRef(r);a.current=r;let l=p.useCallback(()=>a.current?n():t(),[t,n]);return Cj.useSyncExternalStore(e,l)}const Rj=typeof O.useSyncExternalStore=="function"?O.useSyncExternalStore:Oj;function kj(e){let[t]=p.useState(()=>new cj((e==null?void 0:e())||new uj)),n=p.useCallback(l=>t.subscribe(l),[t]),r=p.useCallback(()=>{let l=t.getCollection();return t.isSSR&&t.resetAfterSSR(),l},[t]),a=p.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:Rj(n,r,a),document:t}}const Wp=p.createContext(null);function Tj(e){var t;return t=class extends ro{},t.type=e,t}function Dj(e,t,n,r,a,l){typeof e=="string"&&(e=Tj(e));let i=p.useCallback(s=>{s==null||s.setProps(t,n,e,r,l)},[t,n,r,l,e]),o=p.useContext(Wp);if(o){let s=o.ownerDocument.nodesByProps.get(t);return s||(s=o.ownerDocument.createElement(e.type),s.setProps(t,n,e,r,l),o.appendChild(s),o.ownerDocument.updateCollection(),o.ownerDocument.nodesByProps.set(t,s)),a?O.createElement(Wp.Provider,{value:s},a):null}return O.createElement(e.type,{ref:i},a)}function jj(e,t){let n=({node:a})=>t(a.props,a.props.ref,a),r=p.forwardRef((a,l)=>{let i=p.useContext(Td);if(!p.useContext(tx)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(a,l)}return Dj(e,a,l,"children"in a?a.children:null,null,o=>O.createElement(Td.Provider,{value:i},O.createElement(n,{node:o})))});return r.displayName=t.name,r}function Nj(e){return $7({...e,addIdAndValue:!0})}const cy=p.createContext(null);function Aj(e){let t=p.useContext(cy),n=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies);var r;let a=(r=e.idScope)!==null&&r!==void 0?r:t==null?void 0:t.idScope,l=Nj({...e,idScope:a,dependencies:n});return p.useContext(Gs)&&(l=O.createElement(Lj,null,l)),t=p.useMemo(()=>({dependencies:n,idScope:a}),[a,...n]),O.createElement(cy.Provider,{value:t},l)}function Lj({children:e}){let t=p.useContext(Gs),n=p.useMemo(()=>O.createElement(Gs.Provider,{value:null},O.createElement(tx.Provider,{value:!0},e)),[e]);return ka()?O.createElement(Wp.Provider,{value:t},n):Ws.createPortal(n,t)}const _j=p.createContext(null),zj={CollectionRoot({collection:e,renderDropIndicator:t}){return dy(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return dy(e,t,n)}};function dy(e,t,n){return $7({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){let a=r.render(r);return!n||r.type!=="item"?a:O.createElement(O.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),a,Pj(e,r,n))}})}function Pj(e,t,n){let r=t.key,a=e.getKeyAfter(r),l=a!=null?e.getItem(a):null;for(;l!=null&&l.type!=="item";)a=e.getKeyAfter(l.key),l=a!=null?e.getItem(a):null;let i=t.nextKey!=null?e.getItem(t.nextKey):null;for(;i!=null&&i.type!=="item";)i=i.nextKey!=null?e.getItem(i.nextKey):null;let o=[];if(i==null){let s=t;for(;(s==null?void 0:s.type)==="item"&&(!l||s.parentKey!==l.parentKey&&l.level<s.level);){let u=n({type:"item",key:s.key,dropPosition:"after"});p.isValidElement(u)&&o.push(p.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return o}const nx=p.createContext(zj);function Hj(e){return p.useMemo(()=>e!=null?new Set([e]):null,[e])}function rx(e,t){let{elementType:n="button",isDisabled:r,onPress:a,onPressStart:l,onPressEnd:i,onPressUp:o,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:f,onClick:c,href:d,target:h,rel:m,type:v="button"}=e,y;n==="button"?y={type:v,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:y={role:"button",href:n==="a"&&!r?d:void 0,target:n==="a"?h:void 0,type:n==="input"?v:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?m:void 0};let{pressProps:b,isPressed:g}=kf({onPressStart:l,onPressEnd:i,onPressChange:s,onPress:a,onPressUp:o,onClick:c,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:x}=h4(e,t);f&&(x.tabIndex=r?-1:x.tabIndex);let S=ce(x,b,nt(e,{labelable:!0}));return{isPressed:g,buttonProps:ce(y,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function ax(e,t,n){const{isSelected:r}=t,{isPressed:a,buttonProps:l}=rx({...e,onPress:Ji(t.toggle,e.onPress)},n);return{isPressed:a,isSelected:r,isDisabled:e.isDisabled||!1,buttonProps:ce(l,{"aria-pressed":r})}}function Kj(e,t){const{"aria-label":n,"aria-labelledby":r,orientation:a="horizontal"}=e;let[l,i]=p.useState(!1);ge(()=>{var m;i(!!(t.current&&!((m=t.current.parentElement)===null||m===void 0)&&m.closest('[role="toolbar"]')))});const{direction:o}=Cl(),s=o==="rtl"&&a==="horizontal";let u=xD(t);const f=m=>{if(m.currentTarget.contains(m.target)){if(a==="horizontal"&&m.key==="ArrowRight"||a==="vertical"&&m.key==="ArrowDown")s?u.focusPrevious():u.focusNext();else if(a==="horizontal"&&m.key==="ArrowLeft"||a==="vertical"&&m.key==="ArrowUp")s?u.focusNext():u.focusPrevious();else if(m.key==="Tab"){m.stopPropagation(),c.current=document.activeElement,m.shiftKey?u.focusFirst():u.focusLast();return}else return;m.stopPropagation(),m.preventDefault()}},c=p.useRef(null),d=m=>{!m.currentTarget.contains(m.relatedTarget)&&!c.current&&(c.current=m.target)},h=m=>{var v;if(c.current&&!m.currentTarget.contains(m.relatedTarget)&&!((v=t.current)===null||v===void 0)&&v.contains(m.target)){var y;(y=c.current)===null||y===void 0||y.focus(),c.current=null}};return{toolbarProps:{...nt(e,{labelable:!0}),role:l?"group":"toolbar","aria-orientation":a,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:l?void 0:f,onFocusCapture:l?void 0:h,onBlurCapture:l?void 0:d}}}function Uj(e,t,n){let{isDisabled:r}=e,{toolbarProps:a}=Kj(e,n);return{groupProps:{...a,role:t.selectionMode==="single"?"radiogroup":a.role,"aria-disabled":r}}}function Bj(e,t,n){let r={isSelected:t.selectedKeys.has(e.id),toggle(){t.toggleKey(e.id)}},{isPressed:a,isSelected:l,isDisabled:i,buttonProps:o}=ax({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},r,n);return t.selectionMode==="single"&&(o.role="radio",o["aria-checked"]=r.isSelected,delete o["aria-pressed"]),{isPressed:a,isSelected:l,isDisabled:i,buttonProps:o}}function Fj(e={}){let{isReadOnly:t}=e,[n,r]=vu(e.isSelected,e.defaultSelected||!1,e.onChange),[a]=p.useState(n);function l(s){t||r(s)}function i(){t||r(!n)}var o;return{isSelected:n,defaultSelected:(o=e.defaultSelected)!==null&&o!==void 0?o:a,setSelected:l,toggle:i}}function qj(e){let{selectionMode:t="single",disallowEmptySelection:n,isDisabled:r=!1}=e,[a,l]=vu(p.useMemo(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),p.useMemo(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:r,selectedKeys:a,setSelectedKeys:l,toggleKey(i){let o;t==="multiple"?(o=new Set(a),o.has(i)&&(!n||o.size>1)?o.delete(i):o.add(i)):o=new Set(a.has(i)&&!n?[]:[i]),l(o)},setSelected(i,o){o!==a.has(i)&&this.toggleKey(i)}}}function Vj(e,t){let{role:n="dialog"}=e,r=Kc();r=e["aria-label"]?void 0:r;let a=p.useRef(!1);return p.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){wa(t.current);let l=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(a.current=!0,t.current&&(t.current.blur(),wa(t.current)),a.current=!1)},500);return()=>{clearTimeout(l)}}},[t]),u7(),{dialogProps:{...nt(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:l=>{a.current&&l.stopPropagation()}},titleProps:{id:r}}}function Gj(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:a,isIndeterminate:l,formatOptions:i={style:"percent"}}=e,o=nt(e,{labelable:!0}),{labelProps:s,fieldProps:u}=HD({...e,labelElementType:"span"});t=Us(t,n,r);let f=(t-n)/(r-n),c=FT(i);if(!l&&!a){let d=i.style==="percent"?f:t;a=c.format(d)}return{progressBarProps:ce(o,{...u,"aria-valuenow":l?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":l?void 0:a,role:"progressbar"}),labelProps:s}}function Qj(e){let{progressBarProps:t,labelProps:n}=Gj(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}function Ij(e,t){let n=nt(e,{labelable:!0}),{hoverProps:r}=no({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:ce(n,r,{role:"tooltip"})}}function Xj(e,t,n){let{isDisabled:r,trigger:a,shouldCloseOnPress:l=!0}=e,i=an(),o=p.useRef(!1),s=p.useRef(!1),u=()=>{(o.current||s.current)&&t.open(s.current)},f=g=>{!o.current&&!s.current&&t.close(g)};p.useEffect(()=>{let g=x=>{n&&n.current&&x.key==="Escape"&&(x.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",g,!0),()=>{document.removeEventListener("keydown",g,!0)}},[n,t]);let c=()=>{a!=="focus"&&(Vs()==="pointer"?o.current=!0:o.current=!1,u())},d=()=>{a!=="focus"&&(s.current=!1,o.current=!1,f())},h=()=>{l&&(s.current=!1,o.current=!1,f(!0))},m=()=>{qs()&&(s.current=!0,u())},v=()=>{s.current=!1,o.current=!1,f(!0)},{hoverProps:y}=no({isDisabled:r,onHoverStart:c,onHoverEnd:d}),{focusableProps:b}=h4({isDisabled:r,onFocus:m,onBlur:v},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...ce(b,y,{onPointerDown:h,onKeyDown:h}),tabIndex:void 0},tooltipProps:{id:i}}}const Yj=p.createContext({}),Zj=p.createContext(null),lx=p.createContext({}),Vg=fj(function(e,t){[e,t]=kn(e,t,lx);let n=e,{isPending:r}=n,{buttonProps:a,isPressed:l}=rx(e,t);a=Wj(a,r);let{focusProps:i,isFocused:o,isFocusVisible:s}=y4(e),{hoverProps:u,isHovered:f}=no({...e,isDisabled:e.isDisabled||r}),c={isHovered:f,isPressed:(n.isPressed||l)&&!r,isFocused:o,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:r??!1},d=Rn({...e,values:c,defaultClassName:"react-aria-Button"}),h=an(a.id),m=an(),v=a["aria-labelledby"];r&&(v?v=`${v} ${m}`:a["aria-label"]&&(v=`${h} ${m}`));let y=p.useRef(r);p.useEffect(()=>{let g={"aria-labelledby":v||h};(!y.current&&o&&r||y.current&&o&&!r)&&pT(g,"assertive"),y.current=r},[r,o,v,h]);let b=nt(e,{global:!0});return delete b.onClick,O.createElement("button",{...ce(b,d,a,i,u),type:a.type==="submit"&&r?"button":a.type,id:h,ref:t,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":r?"true":a["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":c.isPressed||void 0,"data-hovered":f||void 0,"data-focused":o||void 0,"data-pending":r||void 0,"data-focus-visible":s||void 0},O.createElement(Zj.Provider,{value:{id:m}},d.children))});function Wj(e,t){if(t){for(const n in e)n.startsWith("on")&&!(n.includes("Focus")||n.includes("Blur"))&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const $j=p.createContext({});class zn extends Set{constructor(t,n,r){super(t),t instanceof zn?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Jj(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function ix(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:a="toggle",disabledBehavior:l="all"}=e,i=p.useRef(!1),[,o]=p.useState(!1),s=p.useRef(null),u=p.useRef(null),[,f]=p.useState(null),c=p.useMemo(()=>fy(e.selectedKeys),[e.selectedKeys]),d=p.useMemo(()=>fy(e.defaultSelectedKeys,new zn),[e.defaultSelectedKeys]),[h,m]=vu(c,d,e.onSelectionChange),v=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[y,b]=p.useState(a);a==="replace"&&y==="toggle"&&typeof h=="object"&&h.size===0&&b("replace");let g=p.useRef(a);return p.useEffect(()=>{a!==g.current&&(b(a),g.current=a)},[a]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:b,get isFocused(){return i.current},setFocused(x){i.current=x,o(x)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(x,S="first"){s.current=x,u.current=S,f(x)},selectedKeys:h,setSelectedKeys(x){(r||!Jj(x,h))&&m(x)},disabledKeys:v,disabledBehavior:l}}function fy(e,t){return e?e==="all"?"all":new zn(e):t}class Tf{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let a=this.collection.getItem(r);(!t||a&&nh(this.collection,a,t)<0)&&(t=a)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let a=this.collection.getItem(r);(!t||a&&nh(this.collection,a,t)>0)&&(t=a)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new zn([n],n,n);else{let i=this.state.selectedKeys;var a;let o=(a=i.anchorKey)!==null&&a!==void 0?a:n;r=new zn(i,o,n);var l;for(let s of this.getKeyRange(o,(l=i.currentKey)!==null&&l!==void 0?l:n))r.delete(s);for(let s of this.getKeyRange(n,o))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),a=this.collection.getItem(n);return r&&a?nh(this.collection,r,a)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let a=[],l=t;for(;l!=null;){let i=this.collection.getItem(l);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&a.push(l),l===n)return a;l=this.collection.getKeyAfter(l)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new zn(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new zn([n],n,n):new zn;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new zn;for(let r of t){let a=this.getKey(r);if(a!=null&&(n.add(a),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var a;let i=this.collection.getItem(r);(i==null?void 0:i.type)==="item"&&t.push(r);var l;i!=null&&i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&n((l=(a=$D(d7(i,this.collection)))===null||a===void 0?void 0:a.key)!==null&&l!==void 0?l:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new zn)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new Tf(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var a;this.allowsCellSelection=(a=r==null?void 0:r.allowsCellSelection)!==null&&a!==void 0?a:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function Df(e){let[t,n]=vu(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=p.useCallback(()=>{n(!0)},[n]),a=p.useCallback(()=>{n(!1)},[n]),l=p.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:a,toggle:l}}function Gg(e){let t=Df(e),[n,r]=p.useState(null),[a,l]=p.useState([]),i=()=>{l([]),t.close()};return{focusStrategy:n,...t,open(o=null){r(o),t.open()},toggle(o=null){r(o),t.toggle()},close(){i()},expandedKeysStack:a,openSubmenu:(o,s)=>{l(u=>s>u.length?u:[...u.slice(0,s),o])},closeSubmenu:(o,s)=>{l(u=>u[s]===o?u.slice(0,s):u)}}}const eN=1500,hy=500;let Va={},tN=0,Po=!1,ur=null,Ga=null;function ox(e={}){let{delay:t=eN,closeDelay:n=hy}=e,{isOpen:r,open:a,close:l}=Df(e),i=p.useMemo(()=>`${++tN}`,[]),o=p.useRef(null),s=p.useRef(l),u=()=>{Va[i]=d},f=()=>{for(let m in Va)m!==i&&(Va[m](!0),delete Va[m])},c=()=>{o.current&&clearTimeout(o.current),o.current=null,f(),u(),Po=!0,a(),ur&&(clearTimeout(ur),ur=null),Ga&&(clearTimeout(Ga),Ga=null)},d=m=>{m||n<=0?(o.current&&clearTimeout(o.current),o.current=null,s.current()):o.current||(o.current=setTimeout(()=>{o.current=null,s.current()},n)),ur&&(clearTimeout(ur),ur=null),Po&&(Ga&&clearTimeout(Ga),Ga=setTimeout(()=>{delete Va[i],Ga=null,Po=!1},Math.max(hy,n)))},h=()=>{f(),u(),!r&&!ur&&!Po?ur=setTimeout(()=>{ur=null,Po=!0,c()},t):r||c()};return p.useEffect(()=>{s.current=l},[l]),p.useEffect(()=>()=>{o.current&&clearTimeout(o.current),Va[i]&&delete Va[i]},[i]),{isOpen:r,open:m=>{!m&&t>0&&!o.current?h():c()},close:d}}class nN{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&(o.type==="section"||n.has(o.key)))for(let s of o.childNodes)r(s)};for(let o of t)r(o);let a=null,l=0;for(let[o,s]of this.keyMap)a?(a.nextKey=o,s.prevKey=a.key):(this.firstKey=o,s.prevKey=void 0),s.type==="item"&&(s.index=l++),a=s,a.nextKey=void 0;var i;this.lastKey=(i=a==null?void 0:a.key)!==null&&i!==void 0?i:null}}function rN(e){let{onExpandedChange:t}=e,[n,r]=vu(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),a=ix(e),l=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=WD(e,p.useCallback(o=>new nN(o,{expandedKeys:n}),[n]),null);return p.useEffect(()=>{a.focusedKey!=null&&!i.getItem(a.focusedKey)&&a.setFocusedKey(null)},[i,a.focusedKey]),{collection:i,expandedKeys:n,disabledKeys:l,toggleKey:o=>{r(aN(n,o))},setExpandedKeys:r,selectionManager:new Tf(i,a)}}function aN(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}const lN=p.createContext({}),iN=p.createContext(null);function sx(e){let t=p.useRef({});return O.createElement(iN.Provider,{value:t},e.children)}const ux=p.createContext({isSelected:!1}),oN=p.createContext({});class sN extends ro{filter(t,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let a=this.clone();return n.addDescendants(a,t),a}return null}}sN.type="separator";const cx=p.createContext({placement:"bottom"}),Qg=p.createContext(null),py=p.createContext(null),uN=p.forwardRef(function(e,t){[e,t]=kn(e,t,Qg);let n=p.useContext(El),r=Df(e),a=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,l=Cd(t,a.isOpen)||e.isExiting||!1,i=hj(),{direction:o}=Cl();if(i){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),O.createElement(O.Fragment,null,s)}return a&&!a.isOpen&&!l?null:O.createElement(cN,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:l,dir:o})});function cN({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...a}){let l=p.useRef(null),i=p.useRef(null),o=p.useContext(py),s=o&&a.trigger==="SubmenuTrigger";var u;let{popoverProps:f,underlayProps:c,arrowProps:d,placement:h,triggerAnchorPoint:m}=zD({...a,offset:(u=a.offset)!==null&&u!==void 0?u:8,arrowRef:l,groupRef:s?o:i},e),v=a.popoverRef,y=Of(v,!!h)||a.isEntering||!1,b=Rn({...a,defaultClassName:"react-aria-Popover",values:{trigger:a.trigger||null,placement:h,isEntering:y,isExiting:t}}),g=!a.isNonModal||a.trigger==="SubmenuTrigger",[x,S]=p.useState(!1);ge(()=>{v.current&&S(g&&!v.current.querySelector("[role=dialog]"))},[v,g]),p.useEffect(()=>{x&&a.trigger!=="SubmenuTrigger"&&v.current&&!v.current.contains(document.activeElement)&&wa(v.current)},[x,v,a.trigger]);let C=p.useMemo(()=>{let j=b.children;if(r)for(let A of r)j=O.createElement(A.Provider,{value:null},j);return j},[b.children,r]),E={...f.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...b.style},M=O.createElement("div",{...ce(nt(a,{global:!0}),f),...b,role:x?"dialog":void 0,tabIndex:x?-1:void 0,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"],ref:v,slot:a.slot||void 0,style:E,dir:a.dir,"data-trigger":a.trigger,"data-placement":h,"data-entering":y||void 0,"data-exiting":t||void 0},!a.isNonModal&&O.createElement(Xp,{onDismiss:e.close}),O.createElement(cx.Provider,{value:{...d,placement:h,ref:l}},C),O.createElement(Xp,{onDismiss:e.close}));if(!s)return O.createElement(Yp,{...a,shouldContainFocus:x,isExiting:t,portalContainer:n},!a.isNonModal&&e.isOpen&&O.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),O.createElement("div",{ref:i,style:{display:"contents"}},O.createElement(py.Provider,{value:i},M)));var N;return O.createElement(Yp,{...a,shouldContainFocus:x,isExiting:t,portalContainer:(N=n??(o==null?void 0:o.current))!==null&&N!==void 0?N:void 0},M)}const dN=p.createContext({}),dx=p.createContext(null),Ig=p.createContext(null),Nd=p.createContext(null),Ad=p.createContext(null);function fN(e){let t=Gg(e),n=p.useRef(null),{menuTriggerProps:r,menuProps:a}=nj({...e,type:"menu"},t,n),[l,i]=p.useState(null),o=p.useCallback(()=>{n.current&&i(n.current.offsetWidth+"px")},[n]);Sd({ref:n,onResize:o});let s=p.useRef(null);return O.createElement(Ta,{values:[[dx,{...a,ref:s}],[El,t],[Nd,t],[Qg,{trigger:"MenuTrigger",triggerRef:n,scrollRef:s,placement:"bottom start",style:{"--trigger-width":l},"aria-labelledby":a["aria-labelledby"]}]]},O.createElement(p4,{...r,ref:n,isPressed:t.isOpen},e.children))}const hN=p.createContext(null);class pN extends ro{filter(t,n,r){let a=t.getItem(this.firstChildKey);if(a&&r(a.textValue,this)){let l=this.clone();return n.addDescendants(l,t),l}return null}}pN.type="submenutrigger";const mN=p.forwardRef(function(e,t){return[e,t]=kn(e,t,dx),O.createElement(Ej,{content:O.createElement(Aj,e)},n=>O.createElement(gN,{props:e,collection:n,menuRef:t}))});function gN({props:e,collection:t,menuRef:n}){[e,n]=kn(e,n,Rb);let{filter:r,...a}=e,l=p.useMemo(()=>r?t.filter(r):t,[t,r]),i=rN({...e,collection:l,children:void 0}),o=p.useContext(Nd),{isVirtualized:s,CollectionRoot:u}=p.useContext(nx),{menuProps:f}=rj({...e,isVirtualized:s,onClose:e.onClose||(o==null?void 0:o.close)},i,n),c=Rn({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:i.collection.size===0}}),d=null;i.collection.size===0&&e.renderEmptyState&&(d=O.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let h=nt(e,{global:!0});return O.createElement(g4,null,O.createElement("div",{...ce(h,c,f),ref:n,slot:e.slot||void 0,"data-empty":i.collection.size===0||void 0,onScroll:e.onScroll},O.createElement(Ta,{values:[[Ig,i],[oN,{elementType:"div"}],[_j,{name:"MenuSection",render:bN}],[hN,{parentMenuRef:n,shouldUseVirtualFocus:a==null?void 0:a.shouldUseVirtualFocus}],[$p,null],[Rb,null],[wk,null],[Ad,i.selectionManager],[Nd,o??Gg({})]]},O.createElement(sx,null,O.createElement(u,{collection:i.collection,persistedKeys:Hj(i.selectionManager.focusedKey),scrollRef:n}))),d))}class vN extends Tf{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,n){return this.parent.setFocusedKey(t,n)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(t,n){super(t.collection,n),this.parent=t}}function bN(e,t,n,r="react-aria-MenuSection"){var a,l;let i=p.useContext(Ig),{CollectionBranch:o}=p.useContext(nx),[s,u]=Y3();var f;let{headingProps:c,groupProps:d}=lj({heading:u,"aria-label":(f=n.props["aria-label"])!==null&&f!==void 0?f:void 0}),h=Rn({defaultClassName:r,className:(a=n.props)===null||a===void 0?void 0:a.className,style:(l=n.props)===null||l===void 0?void 0:l.style,values:{}}),m=p.useContext(Ad),v=ix(e),y=e.selectionMode!=null?new vN(m,v):m,b=nt(e,{global:!0});return delete b.id,O.createElement("section",{...ce(b,h,d),ref:t},O.createElement(Ta,{values:[[lN,{...c,ref:s}],[Ad,y]]},O.createElement(o,{collection:i.collection,parent:n})))}const $p=p.createContext(null),yN=jj(Y7,function(e,t,n){var r;[e,t]=kn(e,t,$p);let a=(r=X3($p))===null||r===void 0?void 0:r.id,l=p.useContext(Ig),i=eo(t),o=p.useContext(Ad),{menuItemProps:s,labelProps:u,descriptionProps:f,keyboardShortcutProps:c,...d}=aj({...e,id:a,key:n.key,selectionManager:o},l,i),{hoverProps:h,isHovered:m}=no({isDisabled:d.isDisabled}),v=Rn({...e,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...d,isHovered:m,isFocusVisible:d.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),y=e.href?"a":"div",b=nt(e,{global:!0});return delete b.id,delete b.onClick,O.createElement(y,{...ce(b,v,s,h),ref:i,"data-disabled":d.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-selected":d.isSelected||void 0,"data-selection-mode":o.selectionMode==="none"?void 0:o.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},O.createElement(Ta,{values:[[$j,{slots:{[Ed]:u,label:u,description:f}}],[dN,c],[ux,{isSelected:d.isSelected}]]},v.children))}),fx=p.createContext(null),El=p.createContext(null);function hx(e){let t=Gg(e),n=p.useRef(null),{triggerProps:r,overlayProps:a}=C4({type:"dialog"},t,n),[l,i]=p.useState(null),o=p.useCallback(()=>{n.current&&i(n.current.offsetWidth+"px")},[n]);return Sd({ref:n,onResize:o}),r.id=an(),a["aria-labelledby"]=r.id,O.createElement(Ta,{values:[[El,t],[Nd,t],[fx,a],[Qg,{trigger:"DialogTrigger",triggerRef:n,"aria-labelledby":a["aria-labelledby"],style:{"--trigger-width":l}}]]},O.createElement(p4,{...r,ref:n,isPressed:t.isOpen},e.children))}const jf=p.forwardRef(function(e,t){let n=e["aria-labelledby"];[e,t]=kn(e,t,fx);let{dialogProps:r,titleProps:a}=Vj({...e,"aria-labelledby":n},t),l=p.useContext(El);!r["aria-label"]&&!r["aria-labelledby"]&&e["aria-labelledby"]&&(r["aria-labelledby"]=e["aria-labelledby"]);let i=Rn({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}}),o=nt(e,{global:!0});return O.createElement("section",{...ce(o,i,r),ref:t,slot:e.slot||void 0},O.createElement(Ta,{values:[[j3,{slots:{[Ed]:{},title:{...a,level:2}}}],[lx,{slots:{[Ed]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},i.children))}),Nf=p.forwardRef(function(e,t){[e,t]=kn(e,t,j3);let{children:n,level:r=3,className:a,...l}=e,i=`h${r}`;return O.createElement(i,{...l,ref:t,className:a??"react-aria-Heading"},n)}),xN=p.createContext(null),wN=p.forwardRef(function(e,t){[e,t]=kn(e,t,xN);let{value:n=0,minValue:r=0,maxValue:a=100}=e;n=Us(n,r,a);let[l,i]=Y3(!e["aria-label"]&&!e["aria-labelledby"]),{meterProps:o,labelProps:s}=Qj({...e,label:i}),u=(n-r)/(a-r)*100,f=Rn({...e,defaultClassName:"react-aria-Meter",values:{percentage:u,valueText:o["aria-valuetext"]}}),c=nt(e,{global:!0});return O.createElement("div",{...ce(c,f,o),ref:t,slot:e.slot||void 0},O.createElement(Yj.Provider,{value:{...s,ref:l,elementType:"span"}},f.children))}),SN=p.createContext(null),Xg=p.createContext(null),Af=p.forwardRef(function(e,t){if(p.useContext(Xg))return O.createElement(my,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:a,defaultOpen:l,onOpenChange:i,children:o,isEntering:s,isExiting:u,UNSTABLE_portalContainer:f,shouldCloseOnInteractOutside:c,...d}=e;return O.createElement(EN,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:a,defaultOpen:l,onOpenChange:i,isEntering:s,isExiting:u,UNSTABLE_portalContainer:f,shouldCloseOnInteractOutside:c},O.createElement(my,{...d,modalRef:t},o))});function CN(e,t){[e,t]=kn(e,t,SN);let n=p.useContext(El),r=Df(e),a=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,l=eo(t),i=p.useRef(null),o=Cd(l,a.isOpen),s=Cd(i,a.isOpen),u=o||s||e.isExiting||!1,f=ka();return!a.isOpen&&!u||f?null:O.createElement(MN,{...e,state:a,isExiting:u,overlayRef:l,modalRef:i})}const EN=p.forwardRef(CN);function MN({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:a,underlayProps:l}=PD(t,r,n),i=Of(t.overlayRef)||t.isEntering||!1,o=Rn({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:i,isExiting:t.isExiting,state:r}}),s=nT(),u;if(typeof document<"u"){let c=hl(document.body)?document.body:document.scrollingElement||document.documentElement,d=c.getBoundingClientRect().height%1;u=c.scrollHeight-d}let f={...o.style,"--visual-viewport-height":s.height+"px","--page-height":u!==void 0?u+"px":void 0};return O.createElement(Yp,{isExiting:t.isExiting,portalContainer:e},O.createElement("div",{...ce(nt(t,{global:!0}),l),...o,style:f,ref:t.overlayRef,"data-entering":i||void 0,"data-exiting":t.isExiting||void 0},O.createElement(Ta,{values:[[Xg,{modalProps:a,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[El,r]]},o.children)))}function my(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:a}=p.useContext(Xg),l=p.useContext(El),i=p.useMemo(()=>_3(e.modalRef,n),[e.modalRef,n]),o=eo(i),s=Of(o),u=Rn({...e,defaultClassName:"react-aria-Modal",values:{isEntering:s,isExiting:r,state:l}});return O.createElement("div",{...ce(nt(e,{global:!0}),t),...u,ref:o,"data-entering":s||void 0,"data-exiting":r||void 0},a&&O.createElement(Xp,{onDismiss:l.close}),u.children)}const ON=p.createContext({}),px=p.createContext(null),RN=p.forwardRef(function(e,t){[e,t]=kn(e,t,ON);let n=qj(e),{groupProps:r}=Uj(e,n,t),a=Rn({...e,values:{orientation:e.orientation||"horizontal",isDisabled:n.isDisabled,state:n},defaultClassName:"react-aria-ToggleButtonGroup"}),l=nt(e,{global:!0});return O.createElement("div",{...ce(l,a,r),ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},O.createElement(px.Provider,{value:n},O.createElement(sx,null,a.children)))}),kN=p.createContext({}),TN=p.forwardRef(function(e,t){[e,t]=kn(e,t,kN);let n=p.useContext(px),r=Fj(n&&e.id!=null?{isSelected:n.selectedKeys.has(e.id),onChange(v){n.setSelected(e.id,v)}}:e),{buttonProps:a,isPressed:l,isSelected:i,isDisabled:o}=n&&e.id!=null?Bj({...e,id:e.id},n,t):ax({...e,id:e.id!=null?String(e.id):void 0},r,t),{focusProps:s,isFocused:u,isFocusVisible:f}=y4(e),{hoverProps:c,isHovered:d}=no(e),h=Rn({...e,values:{isHovered:d,isPressed:l,isFocused:u,isSelected:r.isSelected,isFocusVisible:f,isDisabled:o,state:r},defaultClassName:"react-aria-ToggleButton"}),m=nt(e,{global:!0});return delete m.id,delete m.onClick,O.createElement("button",{...ce(m,h,a,s,c),ref:t,slot:e.slot||void 0,"data-focused":u||void 0,"data-disabled":o||void 0,"data-pressed":l||void 0,"data-selected":i||void 0,"data-hovered":d||void 0,"data-focus-visible":f||void 0},O.createElement(ux.Provider,{value:{isSelected:i}},h.children))}),Yg=p.createContext(null),mx=p.createContext(null);function DN(e){let t=ox(e),n=p.useRef(null),{triggerProps:r,tooltipProps:a}=Xj(e,t,n);return O.createElement(Ta,{values:[[Yg,t],[mx,{...a,triggerRef:n}]]},O.createElement(oD,{...r,ref:n},e.children))}const jN=p.forwardRef(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=kn(t,n,mx);let r=p.useContext(Yg),a=ox(t),l=t.isOpen!=null||t.defaultOpen!=null||!r?a:r,i=Cd(n,l.isOpen)||t.isExiting||!1;return!l.isOpen&&!i?null:O.createElement(DD,{portalContainer:e},O.createElement(NN,{...t,tooltipRef:n,isExiting:i}))});function NN(e){let t=p.useContext(Yg),n=p.useRef(null),{overlayProps:r,arrowProps:a,placement:l,triggerAnchorPoint:i}=r4({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),o=Of(e.tooltipRef,!!l)||e.isEntering||!1,s=Rn({...e,defaultClassName:"react-aria-Tooltip",values:{placement:l,isEntering:o,isExiting:e.isExiting,state:t}});e=ce(e,r);let{tooltipProps:u}=Ij(e,t),f=nt(e,{global:!0});return O.createElement("div",{...ce(f,s,u),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":i?`${i.x}px ${i.y}px`:void 0,...s.style},"data-placement":l??void 0,"data-entering":o||void 0,"data-exiting":e.isExiting||void 0},O.createElement(cx.Provider,{value:{...a,placement:l,ref:n}},s.children))}function AN(e,t){var n=p.useState(function(){if(typeof window>"u")return t;try{for(var i=window.localStorage.getItem(e),o=i?JSON.parse(i):t,s=0,u=Object.entries(t);s<u.length;s++){var f=u[s][0];if(typeof o[f]>"u")throw new Error("Missing key in local storage")}return o}catch(c){return console.log(c),t}}),r=n[0],a=n[1],l=function(i){try{var o=i instanceof Function?i(r):i;a(o),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(o))}catch(s){console.log(s)}};return[r,l]}var LN=function(){var e=AN("user-preferences",{theme:"system"}),t=e[0],n=e[1];return w.jsx(RN,{className:"flex h-7 space-x-0.5 rounded-md bg-slate-100 p-0.5 dark:bg-slate-700",defaultSelectedKeys:["system"],"aria-label":"Theme",selectedKeys:[t.theme],onSelectionChange:function(r){r.has("system")?n({theme:"system"}):r.has("light")?(document.documentElement.classList.remove("dark"),n({theme:"light"})):r.has("dark")&&(document.documentElement.classList.add("dark"),n({theme:"dark"}))},children:[{value:"system",icon:function(){return w.jsx(qR,{})},ariaLabel:"System theme"},{value:"light",icon:function(){return w.jsx(vk,{})},ariaLabel:"Light theme"},{value:"dark",icon:function(){return w.jsx(sk,{})},ariaLabel:"Dark theme"}].map(function(r){return w.jsx(TN,{className:"flex aspect-square h-full items-center justify-center rounded-md text-slate-900 transition duration-150 ease-in-out hover:bg-slate-200 active:bg-slate-300 data-[selected=true]:bg-slate-200 data-[selected=true]:shadow-sm dark:text-slate-50 dark:hover:bg-slate-500 dark:data-[selected=true]:bg-slate-500",id:r.value,"aria-label":r.ariaLabel,children:r.icon()},r.value)})})},Jp=function(e){var t=e.message;return w.jsx("div",{className:"flex items-center justify-center rounded-md bg-red-50 py-4 dark:bg-red-950/50",children:w.jsx("div",{className:"flex flex-col justify-center",children:w.jsx("p",{className:"text-sm text-red-900 dark:text-red-200",children:t})})})},gy=function(e){var t=e.to,n=e.label,r=e.icon;return w.jsxs(E3,{to:t,className:function(a){var l=a.isActive;return"relative -ml-px backdrop-blur-50 flex w-full items-center space-x-2 rounded-md pl-4 py-1 transition duration-150 ease-in-out ".concat(l?"bg-slate-100/90 font-medium text-slate-900 dark:bg-slate-900 dark:text-brand-300":"text-slate-500 dark:text-slate-400 border-slate-100 hover:bg-slate-50 dark:hover:bg-slate-900 hover:border-slate-300 hover:text-slate-900 dark:border-slate-700 dark:hover:border-slate-600 dark:hover:text-slate-100")},children:[r,w.jsx("span",{className:"block truncate",children:n})]})},gx=function(e){var t=e.children,n=be.queue.list.useQuery(),r=n.data,a=n.isLoading,l=n.isError;return w.jsxs("div",{className:"grid xl:grid-cols-[auto,1fr]",children:[w.jsx("div",{className:"hidden w-64 xl:block",children:w.jsxs("div",{className:"sticky top-0 isolate flex h-full max-h-screen min-h-screen flex-col justify-between overflow-hidden border-r border-brand-50 px-4 pb-4 pt-8 shadow-sm dark:border-slate-700 dark:bg-black",children:[w.jsxs("svg",{viewBox:"0 0 1108 632","aria-hidden":"true",className:"absolute left-[calc(50%-24rem)] top-10 -z-10 w-[69.25rem] max-w-none rotate-90 transform-gpu opacity-50 blur-3xl lg:top-[calc(50%-30rem)]",children:[w.jsx("path",{fill:"url(#175c433f-44f6-4d59-93f0-c5c51ad5566d)",fillOpacity:".2",d:"M235.233 402.609 57.541 321.573.83 631.05l234.404-228.441 320.018 145.945c-65.036-115.261-134.286-322.756 109.01-230.655C968.382 433.026 1031 651.247 1092.23 459.36c48.98-153.51-34.51-321.107-82.37-385.717L810.952 324.222 648.261.088 235.233 402.609Z"}),w.jsx("defs",{children:w.jsxs("linearGradient",{id:"175c433f-44f6-4d59-93f0-c5c51ad5566d",x1:"1220.59",x2:"-85.053",y1:"432.766",y2:"638.714",gradientUnits:"userSpaceOnUse",children:[w.jsx("stop",{stopColor:"#bbebff"}),w.jsx("stop",{offset:1,stopColor:"#ffffff"})]})})]}),w.jsxs("div",{className:"space-y-8",children:[w.jsxs("div",{className:"flex items-center space-x-2 text-slate-900 dark:text-brand-50",children:[w.jsx(pk,{width:28,height:28}),w.jsx("p",{className:"text-lg font-semibold",children:"QueueDash"})]}),w.jsxs("div",{className:"w-full space-y-4",children:[w.jsx(gy,{label:"Overview",icon:w.jsx(BR,{className:"mb-0.5",height:16,width:16}),to:"../"}),w.jsx("div",{className:"h-px w-full bg-slate-100 dark:bg-slate-700"}),w.jsx("div",{className:"w-full space-y-1",children:a?St([],new Array(10),!0).map(function(i,o){return w.jsx(Ks,{className:"h-8 w-full"},o)}):l?w.jsx(Jp,{message:"Could not fetch queues"}):r==null?void 0:r.map(function(i){return w.jsx(gy,{to:"../".concat(i.name),label:i.displayName},i.name)})})]})]}),w.jsxs("div",{className:"flex w-full items-center justify-between",children:[w.jsx("a",{href:"https://github.com/alexbudure/queuedash",target:"_blank",rel:"noreferrer",className:"flex size-7 items-center justify-center rounded-md bg-slate-100 text-slate-900 shadow-sm transition duration-150 ease-in-out hover:bg-slate-200 active:bg-slate-300 dark:bg-slate-600 dark:text-slate-50 dark:hover:bg-slate-500",children:w.jsx($R,{})}),w.jsx(LN,{})]})]})}),w.jsx("div",{className:"bg-white px-4 py-3 dark:bg-[#121212] lg:px-10 lg:py-8",children:w.jsx("div",{className:"max-w-screen-xl",children:t})})]})};/**
|
|
88
88
|
* table-core
|
|
89
89
|
*
|
|
90
90
|
* Copyright (c) TanStack
|
|
@@ -93,10 +93,10 @@ Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}
|
|
|
93
93
|
* LICENSE.md file in the root directory of this source tree.
|
|
94
94
|
*
|
|
95
95
|
* @license MIT
|
|
96
|
-
*/function
|
|
96
|
+
*/function vx(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function na(e,t){return typeof e=="function"?e(t):e}function ln(e,t){return n=>{t.setState(r=>({...r,[e]:na(n,r[e])}))}}function Lf(e){return e instanceof Function}function _N(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function zN(e,t){const n=[],r=a=>{a.forEach(l=>{n.push(l);const i=t(l);i!=null&&i.length&&r(i)})};return r(e),n}function ee(e,t,n){let r=[],a;return l=>{let i;n.key&&n.debug&&(i=Date.now());const o=e(l);if(!(o.length!==r.length||o.some((u,f)=>r[f]!==u)))return a;r=o;let s;if(n.key&&n.debug&&(s=Date.now()),a=t(...o),n==null||n.onChange==null||n.onChange(a),n.key&&n.debug&&n!=null&&n.debug()){const u=Math.round((Date.now()-i)*100)/100,f=Math.round((Date.now()-s)*100)/100,c=f/16,d=(h,m)=>{for(h=String(h);h.length<m;)h=" "+h;return h};console.info(`%c⏱ ${d(f,5)} /${d(u,5)} ms`,`
|
|
97
97
|
font-size: .6rem;
|
|
98
98
|
font-weight: bold;
|
|
99
|
-
color: hsl(${Math.max(0,Math.min(120-120*c,120))}deg 100% 31%);`,n==null?void 0:n.key)}return a}}function te(e,t,n,r){return{debug:()=>{var a;return(a=e==null?void 0:e.debugAll)!=null?a:e[t]},key:!1,onChange:r}}function wN(e,t,n,r){const a=()=>{var i;return(i=l.getValue())!=null?i:e.options.renderFallbackValue},l={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:a,getContext:ee(()=>[e,n,t,l],(i,o,s,u)=>({table:i,column:o,row:s,cell:u,getValue:u.getValue,renderValue:u.renderValue}),te(e.options,"debugCells"))};return e._features.forEach(i=>{i.createCell==null||i.createCell(l,n,t,e)},{}),l}function CN(e,t,n,r){var a,l;const i={...e._getDefaultColumnDef(),...t},o=i.accessorKey;let s=(a=(l=i.id)!=null?l:o?typeof String.prototype.replaceAll=="function"?o.replaceAll(".","_"):o.replace(/\./g,"_"):void 0)!=null?a:typeof i.header=="string"?i.header:void 0,u;if(i.accessorFn?u=i.accessorFn:o&&(o.includes(".")?u=c=>{let d=c;for(const m of o.split(".")){var h;d=(h=d)==null?void 0:h[m]}return d}:u=c=>c[i.accessorKey]),!s)throw new Error;let f={id:`${String(s)}`,accessorFn:u,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:ee(()=>[!0],()=>{var c;return[f,...(c=f.columns)==null?void 0:c.flatMap(d=>d.getFlatColumns())]},te(e.options,"debugColumns")),getLeafColumns:ee(()=>[e._getOrderColumnsFn()],c=>{var d;if((d=f.columns)!=null&&d.length){let h=f.columns.flatMap(m=>m.getLeafColumns());return c(h)}return[f]},te(e.options,"debugColumns"))};for(const c of e._features)c.createColumn==null||c.createColumn(f,e);return f}const mt="debugHeaders";function my(e,t,n){var r;let a={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const l=[],i=o=>{o.subHeaders&&o.subHeaders.length&&o.subHeaders.map(i),l.push(o)};return i(a),l},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(l=>{l.createHeader==null||l.createHeader(a,e)}),a}const SN={createTable:e=>{e.getHeaderGroups=ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,a)=>{var l,i;const o=(l=r==null?void 0:r.map(f=>n.find(c=>c.id===f)).filter(Boolean))!=null?l:[],s=(i=a==null?void 0:a.map(f=>n.find(c=>c.id===f)).filter(Boolean))!=null?i:[],u=n.filter(f=>!(r!=null&&r.includes(f.id))&&!(a!=null&&a.includes(f.id)));return sc(t,[...o,...u,...s],e)},te(e.options,mt)),e.getCenterHeaderGroups=ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,a)=>(n=n.filter(l=>!(r!=null&&r.includes(l.id))&&!(a!=null&&a.includes(l.id))),sc(t,n,e,"center")),te(e.options,mt)),e.getLeftHeaderGroups=ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var a;const l=(a=r==null?void 0:r.map(i=>n.find(o=>o.id===i)).filter(Boolean))!=null?a:[];return sc(t,l,e,"left")},te(e.options,mt)),e.getRightHeaderGroups=ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var a;const l=(a=r==null?void 0:r.map(i=>n.find(o=>o.id===i)).filter(Boolean))!=null?a:[];return sc(t,l,e,"right")},te(e.options,mt)),e.getFooterGroups=ee(()=>[e.getHeaderGroups()],t=>[...t].reverse(),te(e.options,mt)),e.getLeftFooterGroups=ee(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),te(e.options,mt)),e.getCenterFooterGroups=ee(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),te(e.options,mt)),e.getRightFooterGroups=ee(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),te(e.options,mt)),e.getFlatHeaders=ee(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),te(e.options,mt)),e.getLeftFlatHeaders=ee(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),te(e.options,mt)),e.getCenterFlatHeaders=ee(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),te(e.options,mt)),e.getRightFlatHeaders=ee(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),te(e.options,mt)),e.getCenterLeafHeaders=ee(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),te(e.options,mt)),e.getLeftLeafHeaders=ee(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),te(e.options,mt)),e.getRightLeafHeaders=ee(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),te(e.options,mt)),e.getLeafHeaders=ee(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var a,l,i,o,s,u;return[...(a=(l=t[0])==null?void 0:l.headers)!=null?a:[],...(i=(o=n[0])==null?void 0:o.headers)!=null?i:[],...(s=(u=r[0])==null?void 0:u.headers)!=null?s:[]].map(f=>f.getLeafHeaders()).flat()},te(e.options,mt))}};function sc(e,t,n,r){var a,l;let i=0;const o=function(d,h){h===void 0&&(h=1),i=Math.max(i,h),d.filter(m=>m.getIsVisible()).forEach(m=>{var b;(b=m.columns)!=null&&b.length&&o(m.columns,h+1)},0)};o(e);let s=[];const u=(d,h)=>{const m={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},b=[];d.forEach(y=>{const v=[...b].reverse()[0],g=y.column.depth===m.depth;let x,C=!1;if(g&&y.column.parent?x=y.column.parent:(x=y.column,C=!0),v&&(v==null?void 0:v.column)===x)v.subHeaders.push(y);else{const E=my(n,x,{id:[r,h,x.id,y==null?void 0:y.id].filter(Boolean).join("_"),isPlaceholder:C,placeholderId:C?`${b.filter(S=>S.column===x).length}`:void 0,depth:h,index:b.length});E.subHeaders.push(y),b.push(E)}m.headers.push(y),y.headerGroup=m}),s.push(m),h>0&&u(b,h-1)},f=t.map((d,h)=>my(n,d,{depth:i,index:h}));u(f,i-1),s.reverse();const c=d=>d.filter(h=>h.column.getIsVisible()).map(h=>{let m=0,b=0,y=[0];h.subHeaders&&h.subHeaders.length?(y=[],c(h.subHeaders).forEach(g=>{let{colSpan:x,rowSpan:C}=g;m+=x,y.push(C)})):m=1;const v=Math.min(...y);return b=b+v,h.colSpan=m,h.rowSpan=b,{colSpan:m,rowSpan:b}});return c((a=(l=s[0])==null?void 0:l.headers)!=null?a:[]),s}const EN=(e,t,n,r,a,l,i)=>{let o={id:t,index:r,original:n,depth:a,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:s=>{if(o._valuesCache.hasOwnProperty(s))return o._valuesCache[s];const u=e.getColumn(s);if(u!=null&&u.accessorFn)return o._valuesCache[s]=u.accessorFn(o.original,r),o._valuesCache[s]},getUniqueValues:s=>{if(o._uniqueValuesCache.hasOwnProperty(s))return o._uniqueValuesCache[s];const u=e.getColumn(s);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(o._uniqueValuesCache[s]=u.columnDef.getUniqueValues(o.original,r),o._uniqueValuesCache[s]):(o._uniqueValuesCache[s]=[o.getValue(s)],o._uniqueValuesCache[s])},renderValue:s=>{var u;return(u=o.getValue(s))!=null?u:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>xN(o.subRows,s=>s.subRows),getParentRow:()=>o.parentId?e.getRow(o.parentId,!0):void 0,getParentRows:()=>{let s=[],u=o;for(;;){const f=u.getParentRow();if(!f)break;s.push(f),u=f}return s.reverse()},getAllCells:ee(()=>[e.getAllLeafColumns()],s=>s.map(u=>wN(e,o,u,u.id)),te(e.options,"debugRows")),_getAllCellsByColumnId:ee(()=>[o.getAllCells()],s=>s.reduce((u,f)=>(u[f.column.id]=f,u),{}),te(e.options,"debugRows"))};for(let s=0;s<e._features.length;s++){const u=e._features[s];u==null||u.createRow==null||u.createRow(o,e)}return o},MN={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},c6=(e,t,n)=>{var r,a;const l=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((a=e.getValue(t))==null||(a=a.toString())==null||(a=a.toLowerCase())==null)&&a.includes(l))};c6.autoRemove=e=>Hn(e);const d6=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};d6.autoRemove=e=>Hn(e);const f6=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};f6.autoRemove=e=>Hn(e);const h6=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};h6.autoRemove=e=>Hn(e);const p6=(e,t,n)=>!n.some(r=>{var a;return!((a=e.getValue(t))!=null&&a.includes(r))});p6.autoRemove=e=>Hn(e)||!(e!=null&&e.length);const m6=(e,t,n)=>n.some(r=>{var a;return(a=e.getValue(t))==null?void 0:a.includes(r)});m6.autoRemove=e=>Hn(e)||!(e!=null&&e.length);const g6=(e,t,n)=>e.getValue(t)===n;g6.autoRemove=e=>Hn(e);const v6=(e,t,n)=>e.getValue(t)==n;v6.autoRemove=e=>Hn(e);const Xg=(e,t,n)=>{let[r,a]=n;const l=e.getValue(t);return l>=r&&l<=a};Xg.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,a=typeof n!="number"?parseFloat(n):n,l=t===null||Number.isNaN(r)?-1/0:r,i=n===null||Number.isNaN(a)?1/0:a;if(l>i){const o=l;l=i,i=o}return[l,i]};Xg.autoRemove=e=>Hn(e)||Hn(e[0])&&Hn(e[1]);const Qr={includesString:c6,includesStringSensitive:d6,equalsString:f6,arrIncludes:h6,arrIncludesAll:p6,arrIncludesSome:m6,equals:g6,weakEquals:v6,inNumberRange:Xg};function Hn(e){return e==null||e===""}const ON={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:on("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Qr.includesString:typeof r=="number"?Qr.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Qr.equals:Array.isArray(r)?Qr.arrIncludes:Qr.weakEquals},e.getFilterFn=()=>{var n,r;return Lf(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Qr[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,a;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((a=t.options.enableFilters)!=null?a:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(a=>a.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const a=e.getFilterFn(),l=r==null?void 0:r.find(f=>f.id===e.id),i=aa(n,l?l.value:void 0);if(gy(a,i,e)){var o;return(o=r==null?void 0:r.filter(f=>f.id!==e.id))!=null?o:[]}const s={id:e.id,value:i};if(l){var u;return(u=r==null?void 0:r.map(f=>f.id===e.id?s:f))!=null?u:[]}return r!=null&&r.length?[...r,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=a=>{var l;return(l=aa(t,a))==null?void 0:l.filter(i=>{const o=n.find(s=>s.id===i.id);if(o){const s=o.getFilterFn();if(gy(s,i.value,o))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function gy(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const RN=(e,t,n)=>n.reduce((r,a)=>{const l=a.getValue(e);return r+(typeof l=="number"?l:0)},0),TN=(e,t,n)=>{let r;return n.forEach(a=>{const l=a.getValue(e);l!=null&&(r>l||r===void 0&&l>=l)&&(r=l)}),r},kN=(e,t,n)=>{let r;return n.forEach(a=>{const l=a.getValue(e);l!=null&&(r<l||r===void 0&&l>=l)&&(r=l)}),r},jN=(e,t,n)=>{let r,a;return n.forEach(l=>{const i=l.getValue(e);i!=null&&(r===void 0?i>=i&&(r=a=i):(r>i&&(r=i),a<i&&(a=i)))}),[r,a]},DN=(e,t)=>{let n=0,r=0;if(t.forEach(a=>{let l=a.getValue(e);l!=null&&(l=+l)>=l&&(++n,r+=l)}),n)return r/n},NN=(e,t)=>{if(!t.length)return;const n=t.map(l=>l.getValue(e));if(!yN(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),a=n.sort((l,i)=>l-i);return n.length%2!==0?a[r]:(a[r-1]+a[r])/2},AN=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),LN=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,_N=(e,t)=>t.length,nh={sum:RN,min:TN,max:kN,extent:jN,mean:DN,median:NN,unique:AN,uniqueCount:LN,count:_N},zN={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:on("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return nh.sum;if(Object.prototype.toString.call(r)==="[object Date]")return nh.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Lf(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:nh[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var a;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((a=n.subRows)!=null&&a.length)}}};function PN(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(a=>!t.includes(a.id));return n==="remove"?r:[...t.map(a=>e.find(l=>l.id===a)).filter(Boolean),...r]}const HN={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:on("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ee(n=>[xs(t,n)],n=>n.findIndex(r=>r.id===e.id),te(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=xs(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const a=xs(t,n);return((r=a[a.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=ee(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>a=>{let l=[];if(!(t!=null&&t.length))l=a;else{const i=[...t],o=[...a];for(;o.length&&i.length;){const s=i.shift(),u=o.findIndex(f=>f.id===s);u>-1&&l.push(o.splice(u,1)[0])}l=[...l,...o]}return PN(l,n,r)},te(e.options,"debugTable"))}},rh=()=>({left:[],right:[]}),KN={getInitialState:e=>({columnPinning:rh(),...e}),getDefaultOptions:e=>({onColumnPinningChange:on("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(a=>a.id).filter(Boolean);t.setColumnPinning(a=>{var l,i;if(n==="right"){var o,s;return{left:((o=a==null?void 0:a.left)!=null?o:[]).filter(c=>!(r!=null&&r.includes(c))),right:[...((s=a==null?void 0:a.right)!=null?s:[]).filter(c=>!(r!=null&&r.includes(c))),...r]}}if(n==="left"){var u,f;return{left:[...((u=a==null?void 0:a.left)!=null?u:[]).filter(c=>!(r!=null&&r.includes(c))),...r],right:((f=a==null?void 0:a.right)!=null?f:[]).filter(c=>!(r!=null&&r.includes(c)))}}return{left:((l=a==null?void 0:a.left)!=null?l:[]).filter(c=>!(r!=null&&r.includes(c))),right:((i=a==null?void 0:a.right)!=null?i:[]).filter(c=>!(r!=null&&r.includes(c)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var r,a,l;return((r=n.columnDef.enablePinning)!=null?r:!0)&&((a=(l=t.options.enableColumnPinning)!=null?l:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(o=>o.id),{left:r,right:a}=t.getState().columnPinning,l=n.some(o=>r==null?void 0:r.includes(o)),i=n.some(o=>a==null?void 0:a.includes(o));return l?"left":i?"right":!1},e.getPinnedIndex=()=>{var n,r;const a=e.getIsPinned();return a?(n=(r=t.getState().columnPinning)==null||(r=r[a])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=ee(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,a)=>{const l=[...r??[],...a??[]];return n.filter(i=>!l.includes(i.column.id))},te(t.options,"debugRows")),e.getLeftVisibleCells=ee(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(a=>n.find(l=>l.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),te(t.options,"debugRows")),e.getRightVisibleCells=ee(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(a=>n.find(l=>l.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),te(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?rh():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:rh())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var a,l;return!!((a=r.left)!=null&&a.length||(l=r.right)!=null&&l.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=ee(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(a=>a.id===r)).filter(Boolean),te(e.options,"debugColumns")),e.getRightLeafColumns=ee(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(a=>a.id===r)).filter(Boolean),te(e.options,"debugColumns")),e.getCenterLeafColumns=ee(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const a=[...n??[],...r??[]];return t.filter(l=>!a.includes(l.id))},te(e.options,"debugColumns"))}};function UN(e){return e||(typeof document<"u"?document:null)}const uc={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},ah=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),BN={getDefaultColumnDef:()=>uc,getInitialState:e=>({columnSizing:{},columnSizingInfo:ah(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:on("columnSizing",e),onColumnSizingInfoChange:on("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,a;const l=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:uc.minSize,(r=l??e.columnDef.size)!=null?r:uc.size),(a=e.columnDef.maxSize)!=null?a:uc.maxSize)},e.getStart=ee(n=>[n,xs(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((a,l)=>a+l.getSize(),0),te(t.options,"debugColumns")),e.getAfter=ee(n=>[n,xs(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((a,l)=>a+l.getSize(),0),te(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...a}=n;return a})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=a=>{if(a.subHeaders.length)a.subHeaders.forEach(r);else{var l;n+=(l=a.column.getSize())!=null?l:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),a=r==null?void 0:r.getCanResize();return l=>{if(!r||!a||(l.persist==null||l.persist(),lh(l)&&l.touches&&l.touches.length>1))return;const i=e.getSize(),o=e?e.getLeafHeaders().map(v=>[v.column.id,v.column.getSize()]):[[r.id,r.getSize()]],s=lh(l)?Math.round(l.touches[0].clientX):l.clientX,u={},f=(v,g)=>{typeof g=="number"&&(t.setColumnSizingInfo(x=>{var C,E;const S=t.options.columnResizeDirection==="rtl"?-1:1,M=(g-((C=x==null?void 0:x.startOffset)!=null?C:0))*S,A=Math.max(M/((E=x==null?void 0:x.startSize)!=null?E:0),-.999999);return x.columnSizingStart.forEach(D=>{let[N,j]=D;u[N]=Math.round(Math.max(j+j*A,0)*100)/100}),{...x,deltaOffset:M,deltaPercentage:A}}),(t.options.columnResizeMode==="onChange"||v==="end")&&t.setColumnSizing(x=>({...x,...u})))},c=v=>f("move",v),d=v=>{f("end",v),t.setColumnSizingInfo(g=>({...g,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=UN(n),m={moveHandler:v=>c(v.clientX),upHandler:v=>{h==null||h.removeEventListener("mousemove",m.moveHandler),h==null||h.removeEventListener("mouseup",m.upHandler),d(v.clientX)}},b={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),c(v.touches[0].clientX),!1),upHandler:v=>{var g;h==null||h.removeEventListener("touchmove",b.moveHandler),h==null||h.removeEventListener("touchend",b.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),d((g=v.touches[0])==null?void 0:g.clientX)}},y=qN()?{passive:!1}:!1;lh(l)?(h==null||h.addEventListener("touchmove",b.moveHandler,y),h==null||h.addEventListener("touchend",b.upHandler,y)):(h==null||h.addEventListener("mousemove",m.moveHandler,y),h==null||h.addEventListener("mouseup",m.upHandler,y)),t.setColumnSizingInfo(v=>({...v,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:o,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?ah():(n=e.initialState.columnSizingInfo)!=null?n:ah())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0}}};let cc=null;function qN(){if(typeof cc=="boolean")return cc;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return cc=e,cc}function lh(e){return e.type==="touchstart"}const FN={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:on("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const a=e.columns;return(n=a.length?a.some(l=>l.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=ee(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),te(t.options,"debugRows")),e.getVisibleCells=ee(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,a)=>[...n,...r,...a],te(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>ee(()=>[r(),r().filter(a=>a.getIsVisible()).map(a=>a.id).join("_")],a=>a.filter(l=>l.getIsVisible==null?void 0:l.getIsVisible()),te(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((a,l)=>({...a,[l.id]:n||!(l.getCanHide!=null&&l.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function xs(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const VN={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},GN={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:on("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,a,l;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((a=t.options.enableFilters)!=null?a:!0)&&((l=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?l:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Qr.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Lf(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Qr[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},QN={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:on("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,a;if(!t){e._queue(()=>{t=!0});return}if((r=(a=e.options.autoResetAll)!=null?a:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var a,l;e.setExpanded(r?{}:(a=(l=e.initialState)==null?void 0:l.expanded)!=null?a:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(a=>!a.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const l=a.split(".");r=Math.max(r,l.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var a;const l=r===!0?!0:!!(r!=null&&r[e.id]);let i={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(o=>{i[o]=!0}):i=r,n=(a=n)!=null?a:!l,!l&&n)return{...i,[e.id]:!0};if(l&&!n){const{[e.id]:o,...s}=i;return s}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,a;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((a=e.subRows)!=null&&a.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Wp=0,Jp=10,ih=()=>({pageIndex:Wp,pageSize:Jp}),IN={getInitialState:e=>({...e,pagination:{...ih(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:on("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,a;if(!t){e._queue(()=>{t=!0});return}if((r=(a=e.options.autoResetAll)!=null?a:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const a=l=>aa(r,l);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(a)},e.resetPagination=r=>{var a;e.setPagination(r?ih():(a=e.initialState.pagination)!=null?a:ih())},e.setPageIndex=r=>{e.setPagination(a=>{let l=aa(r,a.pageIndex);const i=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return l=Math.max(0,Math.min(l,i)),{...a,pageIndex:l}})},e.resetPageIndex=r=>{var a,l;e.setPageIndex(r?Wp:(a=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageIndex)!=null?a:Wp)},e.resetPageSize=r=>{var a,l;e.setPageSize(r?Jp:(a=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageSize)!=null?a:Jp)},e.setPageSize=r=>{e.setPagination(a=>{const l=Math.max(1,aa(r,a.pageSize)),i=a.pageSize*a.pageIndex,o=Math.floor(i/l);return{...a,pageIndex:o,pageSize:l}})},e.setPageCount=r=>e.setPagination(a=>{var l;let i=aa(r,(l=e.options.pageCount)!=null?l:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...a,pageCount:i}}),e.getPageOptions=ee(()=>[e.getPageCount()],r=>{let a=[];return r&&r>0&&(a=[...new Array(r)].fill(null).map((l,i)=>i)),a},te(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,a=e.getPageCount();return a===-1?!0:a===0?!1:r<a-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},oh=()=>({top:[],bottom:[]}),XN={getInitialState:e=>({rowPinning:oh(),...e}),getDefaultOptions:e=>({onRowPinningChange:on("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,a)=>{const l=r?e.getLeafRows().map(s=>{let{id:u}=s;return u}):[],i=a?e.getParentRows().map(s=>{let{id:u}=s;return u}):[],o=new Set([...i,e.id,...l]);t.setRowPinning(s=>{var u,f;if(n==="bottom"){var c,d;return{top:((c=s==null?void 0:s.top)!=null?c:[]).filter(b=>!(o!=null&&o.has(b))),bottom:[...((d=s==null?void 0:s.bottom)!=null?d:[]).filter(b=>!(o!=null&&o.has(b))),...Array.from(o)]}}if(n==="top"){var h,m;return{top:[...((h=s==null?void 0:s.top)!=null?h:[]).filter(b=>!(o!=null&&o.has(b))),...Array.from(o)],bottom:((m=s==null?void 0:s.bottom)!=null?m:[]).filter(b=>!(o!=null&&o.has(b)))}}return{top:((u=s==null?void 0:s.top)!=null?u:[]).filter(b=>!(o!=null&&o.has(b))),bottom:((f=s==null?void 0:s.bottom)!=null?f:[]).filter(b=>!(o!=null&&o.has(b)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:a}=t.options;return typeof r=="function"?r(e):(n=r??a)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:a}=t.getState().rowPinning,l=n.some(o=>r==null?void 0:r.includes(o)),i=n.some(o=>a==null?void 0:a.includes(o));return l?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const a=e.getIsPinned();if(!a)return-1;const l=(n=a==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(i=>{let{id:o}=i;return o});return(r=l==null?void 0:l.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?oh():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:oh())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var a,l;return!!((a=r.top)!=null&&a.length||(l=r.bottom)!=null&&l.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var a;return((a=e.options.keepPinnedRows)==null||a?(n??[]).map(l=>{const i=e.getRow(l,!0);return i.getIsAllParentsExpanded()?i:null}):(n??[]).map(l=>t.find(i=>i.id===l))).filter(Boolean).map(l=>({...l,position:r}))},e.getTopRows=ee(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),te(e.options,"debugRows")),e.getBottomRows=ee(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),te(e.options,"debugRows")),e.getCenterRows=ee(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const a=new Set([...n??[],...r??[]]);return t.filter(l=>!a.has(l.id))},te(e.options,"debugRows"))}},YN={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:on("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},a=e.getPreGroupedRowModel().flatRows;return t?a.forEach(l=>{l.getCanSelect()&&(r[l.id]=!0)}):a.forEach(l=>{delete r[l.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),a={...n};return e.getRowModel().rows.forEach(l=>{em(a,l.id,r,!0,e)}),a}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ee(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?sh(e,n):{rows:[],flatRows:[],rowsById:{}},te(e.options,"debugTable")),e.getFilteredSelectedRowModel=ee(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?sh(e,n):{rows:[],flatRows:[],rowsById:{}},te(e.options,"debugTable")),e.getGroupedSelectedRowModel=ee(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?sh(e,n):{rows:[],flatRows:[],rowsById:{}},te(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(a=>a.getCanSelect()&&!n[a.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(a=>a.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(a=>!n[a.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const a=e.getIsSelected();t.setRowSelection(l=>{var i;if(n=typeof n<"u"?n:!a,e.getCanSelect()&&a===n)return l;const o={...l};return em(o,e.id,n,(i=r==null?void 0:r.selectChildren)!=null?i:!0,t),o})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Yg(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return tm(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return tm(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var a;n&&e.toggleSelected((a=r.target)==null?void 0:a.checked)}}}},em=(e,t,n,r,a)=>{var l;const i=a.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach(o=>delete e[o]),i.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(l=i.subRows)!=null&&l.length&&i.getCanSelectSubRows()&&i.subRows.forEach(o=>em(e,o.id,n,r,a))};function sh(e,t){const n=e.getState().rowSelection,r=[],a={},l=function(i,o){return i.map(s=>{var u;const f=Yg(s,n);if(f&&(r.push(s),a[s.id]=s),(u=s.subRows)!=null&&u.length&&(s={...s,subRows:l(s.subRows)}),f)return s}).filter(Boolean)};return{rows:l(t.rows),flatRows:r,rowsById:a}}function Yg(e,t){var n;return(n=t[e.id])!=null?n:!1}function tm(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let a=!0,l=!1;return e.subRows.forEach(i=>{if(!(l&&!a)&&(i.getCanSelect()&&(Yg(i,t)?l=!0:a=!1),i.subRows&&i.subRows.length)){const o=tm(i,t);o==="all"?l=!0:(o==="some"&&(l=!0),a=!1)}}),a?"all":l?"some":!1}const nm=/([0-9]+)/gm,ZN=(e,t,n)=>b6(Ea(e.getValue(n)).toLowerCase(),Ea(t.getValue(n)).toLowerCase()),$N=(e,t,n)=>b6(Ea(e.getValue(n)),Ea(t.getValue(n))),WN=(e,t,n)=>Zg(Ea(e.getValue(n)).toLowerCase(),Ea(t.getValue(n)).toLowerCase()),JN=(e,t,n)=>Zg(Ea(e.getValue(n)),Ea(t.getValue(n))),eA=(e,t,n)=>{const r=e.getValue(n),a=t.getValue(n);return r>a?1:r<a?-1:0},tA=(e,t,n)=>Zg(e.getValue(n),t.getValue(n));function Zg(e,t){return e===t?0:e>t?1:-1}function Ea(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function b6(e,t){const n=e.split(nm).filter(Boolean),r=t.split(nm).filter(Boolean);for(;n.length&&r.length;){const a=n.shift(),l=r.shift(),i=parseInt(a,10),o=parseInt(l,10),s=[i,o].sort();if(isNaN(s[0])){if(a>l)return 1;if(l>a)return-1;continue}if(isNaN(s[1]))return isNaN(i)?-1:1;if(i>o)return 1;if(o>i)return-1}return n.length-r.length}const Bo={alphanumeric:ZN,alphanumericCaseSensitive:$N,text:WN,textCaseSensitive:JN,datetime:eA,basic:tA},nA={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:on("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const a of n){const l=a==null?void 0:a.getValue(e.id);if(Object.prototype.toString.call(l)==="[object Date]")return Bo.datetime;if(typeof l=="string"&&(r=!0,l.split(nm).length>1))return Bo.alphanumeric}return r?Bo.text:Bo.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Lf(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Bo[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const a=e.getNextSortingOrder(),l=typeof n<"u"&&n!==null;t.setSorting(i=>{const o=i==null?void 0:i.find(h=>h.id===e.id),s=i==null?void 0:i.findIndex(h=>h.id===e.id);let u=[],f,c=l?n:a==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&r?o?f="toggle":f="add":i!=null&&i.length&&s!==i.length-1?f="replace":o?f="toggle":f="replace",f==="toggle"&&(l||a||(f="remove")),f==="add"){var d;u=[...i,{id:e.id,desc:c}],u.splice(0,u.length-((d=t.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else f==="toggle"?u=i.map(h=>h.id===e.id?{...h,desc:c}:h):f==="remove"?u=i.filter(h=>h.id!==e.id):u=[{id:e.id,desc:c}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,a;const l=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==l&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(a=t.options.enableMultiRemove)!=null)||a)?!1:i==="desc"?"asc":"desc":l},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(a=>a.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(a=>a.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},rA=[SN,FN,HN,KN,MN,ON,VN,GN,nA,zN,QN,IN,XN,YN,BN];function aA(e){var t,n;const r=[...rA,...(t=e._features)!=null?t:[]];let a={_features:r};const l=a._features.reduce((c,d)=>Object.assign(c,d.getDefaultOptions==null?void 0:d.getDefaultOptions(a)),{}),i=c=>a.options.mergeOptions?a.options.mergeOptions(l,c):{...l,...c};let o={...(n=e.initialState)!=null?n:{}};a._features.forEach(c=>{var d;o=(d=c.getInitialState==null?void 0:c.getInitialState(o))!=null?d:o});const s=[];let u=!1;const f={_features:r,options:{...l,...e},initialState:o,_queue:c=>{s.push(c),u||(u=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();u=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{a.setState(a.initialState)},setOptions:c=>{const d=aa(c,a.options);a.options=i(d)},getState:()=>a.options.state,setState:c=>{a.options.onStateChange==null||a.options.onStateChange(c)},_getRowId:(c,d,h)=>{var m;return(m=a.options.getRowId==null?void 0:a.options.getRowId(c,d,h))!=null?m:`${h?[h.id,d].join("."):d}`},getCoreRowModel:()=>(a._getCoreRowModel||(a._getCoreRowModel=a.options.getCoreRowModel(a)),a._getCoreRowModel()),getRowModel:()=>a.getPaginationRowModel(),getRow:(c,d)=>{let h=(d?a.getPrePaginationRowModel():a.getRowModel()).rowsById[c];if(!h&&(h=a.getCoreRowModel().rowsById[c],!h))throw new Error;return h},_getDefaultColumnDef:ee(()=>[a.options.defaultColumn],c=>{var d;return c=(d=c)!=null?d:{},{header:h=>{const m=h.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:h=>{var m,b;return(m=(b=h.renderValue())==null||b.toString==null?void 0:b.toString())!=null?m:null},...a._features.reduce((h,m)=>Object.assign(h,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...c}},te(e,"debugColumns")),_getColumnDefs:()=>a.options.columns,getAllColumns:ee(()=>[a._getColumnDefs()],c=>{const d=function(h,m,b){return b===void 0&&(b=0),h.map(y=>{const v=CN(a,y,b,m),g=y;return v.columns=g.columns?d(g.columns,v,b+1):[],v})};return d(c)},te(e,"debugColumns")),getAllFlatColumns:ee(()=>[a.getAllColumns()],c=>c.flatMap(d=>d.getFlatColumns()),te(e,"debugColumns")),_getAllFlatColumnsById:ee(()=>[a.getAllFlatColumns()],c=>c.reduce((d,h)=>(d[h.id]=h,d),{}),te(e,"debugColumns")),getAllLeafColumns:ee(()=>[a.getAllColumns(),a._getOrderColumnsFn()],(c,d)=>{let h=c.flatMap(m=>m.getLeafColumns());return d(h)},te(e,"debugColumns")),getColumn:c=>a._getAllFlatColumnsById()[c]};Object.assign(a,f);for(let c=0;c<a._features.length;c++){const d=a._features[c];d==null||d.createTable==null||d.createTable(a)}return a}function y6(){return e=>ee(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(a,l,i){l===void 0&&(l=0);const o=[];for(let u=0;u<a.length;u++){const f=EN(e,e._getRowId(a[u],u,i),a[u],u,l,void 0,i==null?void 0:i.id);if(n.flatRows.push(f),n.rowsById[f.id]=f,o.push(f),e.options.getSubRows){var s;f.originalSubRows=e.options.getSubRows(a[u],u),(s=f.originalSubRows)!=null&&s.length&&(f.subRows=r(f.originalSubRows,l+1,f))}}return o};return n.rows=r(t),n},te(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}/**
|
|
99
|
+
color: hsl(${Math.max(0,Math.min(120-120*c,120))}deg 100% 31%);`,n==null?void 0:n.key)}return a}}function te(e,t,n,r){return{debug:()=>{var a;return(a=e==null?void 0:e.debugAll)!=null?a:e[t]},key:!1,onChange:r}}function PN(e,t,n,r){const a=()=>{var i;return(i=l.getValue())!=null?i:e.options.renderFallbackValue},l={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:a,getContext:ee(()=>[e,n,t,l],(i,o,s,u)=>({table:i,column:o,row:s,cell:u,getValue:u.getValue,renderValue:u.renderValue}),te(e.options,"debugCells"))};return e._features.forEach(i=>{i.createCell==null||i.createCell(l,n,t,e)},{}),l}function HN(e,t,n,r){var a,l;const i={...e._getDefaultColumnDef(),...t},o=i.accessorKey;let s=(a=(l=i.id)!=null?l:o?typeof String.prototype.replaceAll=="function"?o.replaceAll(".","_"):o.replace(/\./g,"_"):void 0)!=null?a:typeof i.header=="string"?i.header:void 0,u;if(i.accessorFn?u=i.accessorFn:o&&(o.includes(".")?u=c=>{let d=c;for(const m of o.split(".")){var h;d=(h=d)==null?void 0:h[m]}return d}:u=c=>c[i.accessorKey]),!s)throw new Error;let f={id:`${String(s)}`,accessorFn:u,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:ee(()=>[!0],()=>{var c;return[f,...(c=f.columns)==null?void 0:c.flatMap(d=>d.getFlatColumns())]},te(e.options,"debugColumns")),getLeafColumns:ee(()=>[e._getOrderColumnsFn()],c=>{var d;if((d=f.columns)!=null&&d.length){let h=f.columns.flatMap(m=>m.getLeafColumns());return c(h)}return[f]},te(e.options,"debugColumns"))};for(const c of e._features)c.createColumn==null||c.createColumn(f,e);return f}const gt="debugHeaders";function vy(e,t,n){var r;let a={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const l=[],i=o=>{o.subHeaders&&o.subHeaders.length&&o.subHeaders.map(i),l.push(o)};return i(a),l},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(l=>{l.createHeader==null||l.createHeader(a,e)}),a}const KN={createTable:e=>{e.getHeaderGroups=ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,a)=>{var l,i;const o=(l=r==null?void 0:r.map(f=>n.find(c=>c.id===f)).filter(Boolean))!=null?l:[],s=(i=a==null?void 0:a.map(f=>n.find(c=>c.id===f)).filter(Boolean))!=null?i:[],u=n.filter(f=>!(r!=null&&r.includes(f.id))&&!(a!=null&&a.includes(f.id)));return sc(t,[...o,...u,...s],e)},te(e.options,gt)),e.getCenterHeaderGroups=ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,a)=>(n=n.filter(l=>!(r!=null&&r.includes(l.id))&&!(a!=null&&a.includes(l.id))),sc(t,n,e,"center")),te(e.options,gt)),e.getLeftHeaderGroups=ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var a;const l=(a=r==null?void 0:r.map(i=>n.find(o=>o.id===i)).filter(Boolean))!=null?a:[];return sc(t,l,e,"left")},te(e.options,gt)),e.getRightHeaderGroups=ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var a;const l=(a=r==null?void 0:r.map(i=>n.find(o=>o.id===i)).filter(Boolean))!=null?a:[];return sc(t,l,e,"right")},te(e.options,gt)),e.getFooterGroups=ee(()=>[e.getHeaderGroups()],t=>[...t].reverse(),te(e.options,gt)),e.getLeftFooterGroups=ee(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),te(e.options,gt)),e.getCenterFooterGroups=ee(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),te(e.options,gt)),e.getRightFooterGroups=ee(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),te(e.options,gt)),e.getFlatHeaders=ee(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),te(e.options,gt)),e.getLeftFlatHeaders=ee(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),te(e.options,gt)),e.getCenterFlatHeaders=ee(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),te(e.options,gt)),e.getRightFlatHeaders=ee(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),te(e.options,gt)),e.getCenterLeafHeaders=ee(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),te(e.options,gt)),e.getLeftLeafHeaders=ee(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),te(e.options,gt)),e.getRightLeafHeaders=ee(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),te(e.options,gt)),e.getLeafHeaders=ee(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var a,l,i,o,s,u;return[...(a=(l=t[0])==null?void 0:l.headers)!=null?a:[],...(i=(o=n[0])==null?void 0:o.headers)!=null?i:[],...(s=(u=r[0])==null?void 0:u.headers)!=null?s:[]].map(f=>f.getLeafHeaders()).flat()},te(e.options,gt))}};function sc(e,t,n,r){var a,l;let i=0;const o=function(d,h){h===void 0&&(h=1),i=Math.max(i,h),d.filter(m=>m.getIsVisible()).forEach(m=>{var v;(v=m.columns)!=null&&v.length&&o(m.columns,h+1)},0)};o(e);let s=[];const u=(d,h)=>{const m={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},v=[];d.forEach(y=>{const b=[...v].reverse()[0],g=y.column.depth===m.depth;let x,S=!1;if(g&&y.column.parent?x=y.column.parent:(x=y.column,S=!0),b&&(b==null?void 0:b.column)===x)b.subHeaders.push(y);else{const C=vy(n,x,{id:[r,h,x.id,y==null?void 0:y.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${v.filter(E=>E.column===x).length}`:void 0,depth:h,index:v.length});C.subHeaders.push(y),v.push(C)}m.headers.push(y),y.headerGroup=m}),s.push(m),h>0&&u(v,h-1)},f=t.map((d,h)=>vy(n,d,{depth:i,index:h}));u(f,i-1),s.reverse();const c=d=>d.filter(h=>h.column.getIsVisible()).map(h=>{let m=0,v=0,y=[0];h.subHeaders&&h.subHeaders.length?(y=[],c(h.subHeaders).forEach(g=>{let{colSpan:x,rowSpan:S}=g;m+=x,y.push(S)})):m=1;const b=Math.min(...y);return v=v+b,h.colSpan=m,h.rowSpan=v,{colSpan:m,rowSpan:v}});return c((a=(l=s[0])==null?void 0:l.headers)!=null?a:[]),s}const UN=(e,t,n,r,a,l,i)=>{let o={id:t,index:r,original:n,depth:a,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:s=>{if(o._valuesCache.hasOwnProperty(s))return o._valuesCache[s];const u=e.getColumn(s);if(u!=null&&u.accessorFn)return o._valuesCache[s]=u.accessorFn(o.original,r),o._valuesCache[s]},getUniqueValues:s=>{if(o._uniqueValuesCache.hasOwnProperty(s))return o._uniqueValuesCache[s];const u=e.getColumn(s);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(o._uniqueValuesCache[s]=u.columnDef.getUniqueValues(o.original,r),o._uniqueValuesCache[s]):(o._uniqueValuesCache[s]=[o.getValue(s)],o._uniqueValuesCache[s])},renderValue:s=>{var u;return(u=o.getValue(s))!=null?u:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>zN(o.subRows,s=>s.subRows),getParentRow:()=>o.parentId?e.getRow(o.parentId,!0):void 0,getParentRows:()=>{let s=[],u=o;for(;;){const f=u.getParentRow();if(!f)break;s.push(f),u=f}return s.reverse()},getAllCells:ee(()=>[e.getAllLeafColumns()],s=>s.map(u=>PN(e,o,u,u.id)),te(e.options,"debugRows")),_getAllCellsByColumnId:ee(()=>[o.getAllCells()],s=>s.reduce((u,f)=>(u[f.column.id]=f,u),{}),te(e.options,"debugRows"))};for(let s=0;s<e._features.length;s++){const u=e._features[s];u==null||u.createRow==null||u.createRow(o,e)}return o},BN={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},bx=(e,t,n)=>{var r,a;const l=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((a=e.getValue(t))==null||(a=a.toString())==null||(a=a.toLowerCase())==null)&&a.includes(l))};bx.autoRemove=e=>Pn(e);const yx=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};yx.autoRemove=e=>Pn(e);const xx=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};xx.autoRemove=e=>Pn(e);const wx=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};wx.autoRemove=e=>Pn(e);const Sx=(e,t,n)=>!n.some(r=>{var a;return!((a=e.getValue(t))!=null&&a.includes(r))});Sx.autoRemove=e=>Pn(e)||!(e!=null&&e.length);const Cx=(e,t,n)=>n.some(r=>{var a;return(a=e.getValue(t))==null?void 0:a.includes(r)});Cx.autoRemove=e=>Pn(e)||!(e!=null&&e.length);const Ex=(e,t,n)=>e.getValue(t)===n;Ex.autoRemove=e=>Pn(e);const Mx=(e,t,n)=>e.getValue(t)==n;Mx.autoRemove=e=>Pn(e);const Zg=(e,t,n)=>{let[r,a]=n;const l=e.getValue(t);return l>=r&&l<=a};Zg.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,a=typeof n!="number"?parseFloat(n):n,l=t===null||Number.isNaN(r)?-1/0:r,i=n===null||Number.isNaN(a)?1/0:a;if(l>i){const o=l;l=i,i=o}return[l,i]};Zg.autoRemove=e=>Pn(e)||Pn(e[0])&&Pn(e[1]);const qr={includesString:bx,includesStringSensitive:yx,equalsString:xx,arrIncludes:wx,arrIncludesAll:Sx,arrIncludesSome:Cx,equals:Ex,weakEquals:Mx,inNumberRange:Zg};function Pn(e){return e==null||e===""}const FN={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:ln("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?qr.includesString:typeof r=="number"?qr.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?qr.equals:Array.isArray(r)?qr.arrIncludes:qr.weakEquals},e.getFilterFn=()=>{var n,r;return Lf(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:qr[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,a;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((a=t.options.enableFilters)!=null?a:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(a=>a.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const a=e.getFilterFn(),l=r==null?void 0:r.find(f=>f.id===e.id),i=na(n,l?l.value:void 0);if(by(a,i,e)){var o;return(o=r==null?void 0:r.filter(f=>f.id!==e.id))!=null?o:[]}const s={id:e.id,value:i};if(l){var u;return(u=r==null?void 0:r.map(f=>f.id===e.id?s:f))!=null?u:[]}return r!=null&&r.length?[...r,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=a=>{var l;return(l=na(t,a))==null?void 0:l.filter(i=>{const o=n.find(s=>s.id===i.id);if(o){const s=o.getFilterFn();if(by(s,i.value,o))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function by(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const qN=(e,t,n)=>n.reduce((r,a)=>{const l=a.getValue(e);return r+(typeof l=="number"?l:0)},0),VN=(e,t,n)=>{let r;return n.forEach(a=>{const l=a.getValue(e);l!=null&&(r>l||r===void 0&&l>=l)&&(r=l)}),r},GN=(e,t,n)=>{let r;return n.forEach(a=>{const l=a.getValue(e);l!=null&&(r<l||r===void 0&&l>=l)&&(r=l)}),r},QN=(e,t,n)=>{let r,a;return n.forEach(l=>{const i=l.getValue(e);i!=null&&(r===void 0?i>=i&&(r=a=i):(r>i&&(r=i),a<i&&(a=i)))}),[r,a]},IN=(e,t)=>{let n=0,r=0;if(t.forEach(a=>{let l=a.getValue(e);l!=null&&(l=+l)>=l&&(++n,r+=l)}),n)return r/n},XN=(e,t)=>{if(!t.length)return;const n=t.map(l=>l.getValue(e));if(!_N(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),a=n.sort((l,i)=>l-i);return n.length%2!==0?a[r]:(a[r-1]+a[r])/2},YN=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),ZN=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,WN=(e,t)=>t.length,ah={sum:qN,min:VN,max:GN,extent:QN,mean:IN,median:XN,unique:YN,uniqueCount:ZN,count:WN},$N={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:ln("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return ah.sum;if(Object.prototype.toString.call(r)==="[object Date]")return ah.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Lf(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:ah[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var a;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((a=n.subRows)!=null&&a.length)}}};function JN(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(a=>!t.includes(a.id));return n==="remove"?r:[...t.map(a=>e.find(l=>l.id===a)).filter(Boolean),...r]}const eA={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:ln("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ee(n=>[vs(t,n)],n=>n.findIndex(r=>r.id===e.id),te(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=vs(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const a=vs(t,n);return((r=a[a.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=ee(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>a=>{let l=[];if(!(t!=null&&t.length))l=a;else{const i=[...t],o=[...a];for(;o.length&&i.length;){const s=i.shift(),u=o.findIndex(f=>f.id===s);u>-1&&l.push(o.splice(u,1)[0])}l=[...l,...o]}return JN(l,n,r)},te(e.options,"debugTable"))}},lh=()=>({left:[],right:[]}),tA={getInitialState:e=>({columnPinning:lh(),...e}),getDefaultOptions:e=>({onColumnPinningChange:ln("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(a=>a.id).filter(Boolean);t.setColumnPinning(a=>{var l,i;if(n==="right"){var o,s;return{left:((o=a==null?void 0:a.left)!=null?o:[]).filter(c=>!(r!=null&&r.includes(c))),right:[...((s=a==null?void 0:a.right)!=null?s:[]).filter(c=>!(r!=null&&r.includes(c))),...r]}}if(n==="left"){var u,f;return{left:[...((u=a==null?void 0:a.left)!=null?u:[]).filter(c=>!(r!=null&&r.includes(c))),...r],right:((f=a==null?void 0:a.right)!=null?f:[]).filter(c=>!(r!=null&&r.includes(c)))}}return{left:((l=a==null?void 0:a.left)!=null?l:[]).filter(c=>!(r!=null&&r.includes(c))),right:((i=a==null?void 0:a.right)!=null?i:[]).filter(c=>!(r!=null&&r.includes(c)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var r,a,l;return((r=n.columnDef.enablePinning)!=null?r:!0)&&((a=(l=t.options.enableColumnPinning)!=null?l:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(o=>o.id),{left:r,right:a}=t.getState().columnPinning,l=n.some(o=>r==null?void 0:r.includes(o)),i=n.some(o=>a==null?void 0:a.includes(o));return l?"left":i?"right":!1},e.getPinnedIndex=()=>{var n,r;const a=e.getIsPinned();return a?(n=(r=t.getState().columnPinning)==null||(r=r[a])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=ee(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,a)=>{const l=[...r??[],...a??[]];return n.filter(i=>!l.includes(i.column.id))},te(t.options,"debugRows")),e.getLeftVisibleCells=ee(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(a=>n.find(l=>l.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),te(t.options,"debugRows")),e.getRightVisibleCells=ee(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(a=>n.find(l=>l.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),te(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?lh():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:lh())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var a,l;return!!((a=r.left)!=null&&a.length||(l=r.right)!=null&&l.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=ee(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(a=>a.id===r)).filter(Boolean),te(e.options,"debugColumns")),e.getRightLeafColumns=ee(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(a=>a.id===r)).filter(Boolean),te(e.options,"debugColumns")),e.getCenterLeafColumns=ee(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const a=[...n??[],...r??[]];return t.filter(l=>!a.includes(l.id))},te(e.options,"debugColumns"))}};function nA(e){return e||(typeof document<"u"?document:null)}const uc={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},ih=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),rA={getDefaultColumnDef:()=>uc,getInitialState:e=>({columnSizing:{},columnSizingInfo:ih(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:ln("columnSizing",e),onColumnSizingInfoChange:ln("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,a;const l=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:uc.minSize,(r=l??e.columnDef.size)!=null?r:uc.size),(a=e.columnDef.maxSize)!=null?a:uc.maxSize)},e.getStart=ee(n=>[n,vs(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((a,l)=>a+l.getSize(),0),te(t.options,"debugColumns")),e.getAfter=ee(n=>[n,vs(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((a,l)=>a+l.getSize(),0),te(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...a}=n;return a})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=a=>{if(a.subHeaders.length)a.subHeaders.forEach(r);else{var l;n+=(l=a.column.getSize())!=null?l:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),a=r==null?void 0:r.getCanResize();return l=>{if(!r||!a||(l.persist==null||l.persist(),oh(l)&&l.touches&&l.touches.length>1))return;const i=e.getSize(),o=e?e.getLeafHeaders().map(b=>[b.column.id,b.column.getSize()]):[[r.id,r.getSize()]],s=oh(l)?Math.round(l.touches[0].clientX):l.clientX,u={},f=(b,g)=>{typeof g=="number"&&(t.setColumnSizingInfo(x=>{var S,C;const E=t.options.columnResizeDirection==="rtl"?-1:1,M=(g-((S=x==null?void 0:x.startOffset)!=null?S:0))*E,N=Math.max(M/((C=x==null?void 0:x.startSize)!=null?C:0),-.999999);return x.columnSizingStart.forEach(j=>{let[A,U]=j;u[A]=Math.round(Math.max(U+U*N,0)*100)/100}),{...x,deltaOffset:M,deltaPercentage:N}}),(t.options.columnResizeMode==="onChange"||b==="end")&&t.setColumnSizing(x=>({...x,...u})))},c=b=>f("move",b),d=b=>{f("end",b),t.setColumnSizingInfo(g=>({...g,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=nA(n),m={moveHandler:b=>c(b.clientX),upHandler:b=>{h==null||h.removeEventListener("mousemove",m.moveHandler),h==null||h.removeEventListener("mouseup",m.upHandler),d(b.clientX)}},v={moveHandler:b=>(b.cancelable&&(b.preventDefault(),b.stopPropagation()),c(b.touches[0].clientX),!1),upHandler:b=>{var g;h==null||h.removeEventListener("touchmove",v.moveHandler),h==null||h.removeEventListener("touchend",v.upHandler),b.cancelable&&(b.preventDefault(),b.stopPropagation()),d((g=b.touches[0])==null?void 0:g.clientX)}},y=aA()?{passive:!1}:!1;oh(l)?(h==null||h.addEventListener("touchmove",v.moveHandler,y),h==null||h.addEventListener("touchend",v.upHandler,y)):(h==null||h.addEventListener("mousemove",m.moveHandler,y),h==null||h.addEventListener("mouseup",m.upHandler,y)),t.setColumnSizingInfo(b=>({...b,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:o,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?ih():(n=e.initialState.columnSizingInfo)!=null?n:ih())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0}}};let cc=null;function aA(){if(typeof cc=="boolean")return cc;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return cc=e,cc}function oh(e){return e.type==="touchstart"}const lA={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:ln("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const a=e.columns;return(n=a.length?a.some(l=>l.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=ee(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),te(t.options,"debugRows")),e.getVisibleCells=ee(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,a)=>[...n,...r,...a],te(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>ee(()=>[r(),r().filter(a=>a.getIsVisible()).map(a=>a.id).join("_")],a=>a.filter(l=>l.getIsVisible==null?void 0:l.getIsVisible()),te(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((a,l)=>({...a,[l.id]:n||!(l.getCanHide!=null&&l.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function vs(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const iA={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},oA={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:ln("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,a,l;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((a=t.options.enableFilters)!=null?a:!0)&&((l=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?l:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>qr.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Lf(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:qr[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},sA={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:ln("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,a;if(!t){e._queue(()=>{t=!0});return}if((r=(a=e.options.autoResetAll)!=null?a:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var a,l;e.setExpanded(r?{}:(a=(l=e.initialState)==null?void 0:l.expanded)!=null?a:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(a=>!a.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const l=a.split(".");r=Math.max(r,l.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var a;const l=r===!0?!0:!!(r!=null&&r[e.id]);let i={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(o=>{i[o]=!0}):i=r,n=(a=n)!=null?a:!l,!l&&n)return{...i,[e.id]:!0};if(l&&!n){const{[e.id]:o,...s}=i;return s}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,a;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((a=e.subRows)!=null&&a.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},em=0,tm=10,sh=()=>({pageIndex:em,pageSize:tm}),uA={getInitialState:e=>({...e,pagination:{...sh(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:ln("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,a;if(!t){e._queue(()=>{t=!0});return}if((r=(a=e.options.autoResetAll)!=null?a:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const a=l=>na(r,l);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(a)},e.resetPagination=r=>{var a;e.setPagination(r?sh():(a=e.initialState.pagination)!=null?a:sh())},e.setPageIndex=r=>{e.setPagination(a=>{let l=na(r,a.pageIndex);const i=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return l=Math.max(0,Math.min(l,i)),{...a,pageIndex:l}})},e.resetPageIndex=r=>{var a,l;e.setPageIndex(r?em:(a=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageIndex)!=null?a:em)},e.resetPageSize=r=>{var a,l;e.setPageSize(r?tm:(a=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageSize)!=null?a:tm)},e.setPageSize=r=>{e.setPagination(a=>{const l=Math.max(1,na(r,a.pageSize)),i=a.pageSize*a.pageIndex,o=Math.floor(i/l);return{...a,pageIndex:o,pageSize:l}})},e.setPageCount=r=>e.setPagination(a=>{var l;let i=na(r,(l=e.options.pageCount)!=null?l:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...a,pageCount:i}}),e.getPageOptions=ee(()=>[e.getPageCount()],r=>{let a=[];return r&&r>0&&(a=[...new Array(r)].fill(null).map((l,i)=>i)),a},te(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,a=e.getPageCount();return a===-1?!0:a===0?!1:r<a-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},uh=()=>({top:[],bottom:[]}),cA={getInitialState:e=>({rowPinning:uh(),...e}),getDefaultOptions:e=>({onRowPinningChange:ln("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,a)=>{const l=r?e.getLeafRows().map(s=>{let{id:u}=s;return u}):[],i=a?e.getParentRows().map(s=>{let{id:u}=s;return u}):[],o=new Set([...i,e.id,...l]);t.setRowPinning(s=>{var u,f;if(n==="bottom"){var c,d;return{top:((c=s==null?void 0:s.top)!=null?c:[]).filter(v=>!(o!=null&&o.has(v))),bottom:[...((d=s==null?void 0:s.bottom)!=null?d:[]).filter(v=>!(o!=null&&o.has(v))),...Array.from(o)]}}if(n==="top"){var h,m;return{top:[...((h=s==null?void 0:s.top)!=null?h:[]).filter(v=>!(o!=null&&o.has(v))),...Array.from(o)],bottom:((m=s==null?void 0:s.bottom)!=null?m:[]).filter(v=>!(o!=null&&o.has(v)))}}return{top:((u=s==null?void 0:s.top)!=null?u:[]).filter(v=>!(o!=null&&o.has(v))),bottom:((f=s==null?void 0:s.bottom)!=null?f:[]).filter(v=>!(o!=null&&o.has(v)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:a}=t.options;return typeof r=="function"?r(e):(n=r??a)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:a}=t.getState().rowPinning,l=n.some(o=>r==null?void 0:r.includes(o)),i=n.some(o=>a==null?void 0:a.includes(o));return l?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const a=e.getIsPinned();if(!a)return-1;const l=(n=a==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(i=>{let{id:o}=i;return o});return(r=l==null?void 0:l.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?uh():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:uh())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var a,l;return!!((a=r.top)!=null&&a.length||(l=r.bottom)!=null&&l.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var a;return((a=e.options.keepPinnedRows)==null||a?(n??[]).map(l=>{const i=e.getRow(l,!0);return i.getIsAllParentsExpanded()?i:null}):(n??[]).map(l=>t.find(i=>i.id===l))).filter(Boolean).map(l=>({...l,position:r}))},e.getTopRows=ee(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),te(e.options,"debugRows")),e.getBottomRows=ee(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),te(e.options,"debugRows")),e.getCenterRows=ee(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const a=new Set([...n??[],...r??[]]);return t.filter(l=>!a.has(l.id))},te(e.options,"debugRows"))}},dA={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:ln("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},a=e.getPreGroupedRowModel().flatRows;return t?a.forEach(l=>{l.getCanSelect()&&(r[l.id]=!0)}):a.forEach(l=>{delete r[l.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),a={...n};return e.getRowModel().rows.forEach(l=>{nm(a,l.id,r,!0,e)}),a}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ee(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?ch(e,n):{rows:[],flatRows:[],rowsById:{}},te(e.options,"debugTable")),e.getFilteredSelectedRowModel=ee(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?ch(e,n):{rows:[],flatRows:[],rowsById:{}},te(e.options,"debugTable")),e.getGroupedSelectedRowModel=ee(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?ch(e,n):{rows:[],flatRows:[],rowsById:{}},te(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(a=>a.getCanSelect()&&!n[a.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(a=>a.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(a=>!n[a.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const a=e.getIsSelected();t.setRowSelection(l=>{var i;if(n=typeof n<"u"?n:!a,e.getCanSelect()&&a===n)return l;const o={...l};return nm(o,e.id,n,(i=r==null?void 0:r.selectChildren)!=null?i:!0,t),o})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Wg(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return rm(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return rm(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var a;n&&e.toggleSelected((a=r.target)==null?void 0:a.checked)}}}},nm=(e,t,n,r,a)=>{var l;const i=a.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach(o=>delete e[o]),i.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(l=i.subRows)!=null&&l.length&&i.getCanSelectSubRows()&&i.subRows.forEach(o=>nm(e,o.id,n,r,a))};function ch(e,t){const n=e.getState().rowSelection,r=[],a={},l=function(i,o){return i.map(s=>{var u;const f=Wg(s,n);if(f&&(r.push(s),a[s.id]=s),(u=s.subRows)!=null&&u.length&&(s={...s,subRows:l(s.subRows)}),f)return s}).filter(Boolean)};return{rows:l(t.rows),flatRows:r,rowsById:a}}function Wg(e,t){var n;return(n=t[e.id])!=null?n:!1}function rm(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let a=!0,l=!1;return e.subRows.forEach(i=>{if(!(l&&!a)&&(i.getCanSelect()&&(Wg(i,t)?l=!0:a=!1),i.subRows&&i.subRows.length)){const o=rm(i,t);o==="all"?l=!0:(o==="some"&&(l=!0),a=!1)}}),a?"all":l?"some":!1}const am=/([0-9]+)/gm,fA=(e,t,n)=>Ox(Sa(e.getValue(n)).toLowerCase(),Sa(t.getValue(n)).toLowerCase()),hA=(e,t,n)=>Ox(Sa(e.getValue(n)),Sa(t.getValue(n))),pA=(e,t,n)=>$g(Sa(e.getValue(n)).toLowerCase(),Sa(t.getValue(n)).toLowerCase()),mA=(e,t,n)=>$g(Sa(e.getValue(n)),Sa(t.getValue(n))),gA=(e,t,n)=>{const r=e.getValue(n),a=t.getValue(n);return r>a?1:r<a?-1:0},vA=(e,t,n)=>$g(e.getValue(n),t.getValue(n));function $g(e,t){return e===t?0:e>t?1:-1}function Sa(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Ox(e,t){const n=e.split(am).filter(Boolean),r=t.split(am).filter(Boolean);for(;n.length&&r.length;){const a=n.shift(),l=r.shift(),i=parseInt(a,10),o=parseInt(l,10),s=[i,o].sort();if(isNaN(s[0])){if(a>l)return 1;if(l>a)return-1;continue}if(isNaN(s[1]))return isNaN(i)?-1:1;if(i>o)return 1;if(o>i)return-1}return n.length-r.length}const Ho={alphanumeric:fA,alphanumericCaseSensitive:hA,text:pA,textCaseSensitive:mA,datetime:gA,basic:vA},bA={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:ln("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const a of n){const l=a==null?void 0:a.getValue(e.id);if(Object.prototype.toString.call(l)==="[object Date]")return Ho.datetime;if(typeof l=="string"&&(r=!0,l.split(am).length>1))return Ho.alphanumeric}return r?Ho.text:Ho.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Lf(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Ho[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const a=e.getNextSortingOrder(),l=typeof n<"u"&&n!==null;t.setSorting(i=>{const o=i==null?void 0:i.find(h=>h.id===e.id),s=i==null?void 0:i.findIndex(h=>h.id===e.id);let u=[],f,c=l?n:a==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&r?o?f="toggle":f="add":i!=null&&i.length&&s!==i.length-1?f="replace":o?f="toggle":f="replace",f==="toggle"&&(l||a||(f="remove")),f==="add"){var d;u=[...i,{id:e.id,desc:c}],u.splice(0,u.length-((d=t.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else f==="toggle"?u=i.map(h=>h.id===e.id?{...h,desc:c}:h):f==="remove"?u=i.filter(h=>h.id!==e.id):u=[{id:e.id,desc:c}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,a;const l=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==l&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(a=t.options.enableMultiRemove)!=null)||a)?!1:i==="desc"?"asc":"desc":l},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(a=>a.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(a=>a.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},yA=[KN,lA,eA,tA,BN,FN,iA,oA,bA,$N,sA,uA,cA,dA,rA];function xA(e){var t,n;const r=[...yA,...(t=e._features)!=null?t:[]];let a={_features:r};const l=a._features.reduce((c,d)=>Object.assign(c,d.getDefaultOptions==null?void 0:d.getDefaultOptions(a)),{}),i=c=>a.options.mergeOptions?a.options.mergeOptions(l,c):{...l,...c};let o={...(n=e.initialState)!=null?n:{}};a._features.forEach(c=>{var d;o=(d=c.getInitialState==null?void 0:c.getInitialState(o))!=null?d:o});const s=[];let u=!1;const f={_features:r,options:{...l,...e},initialState:o,_queue:c=>{s.push(c),u||(u=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();u=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{a.setState(a.initialState)},setOptions:c=>{const d=na(c,a.options);a.options=i(d)},getState:()=>a.options.state,setState:c=>{a.options.onStateChange==null||a.options.onStateChange(c)},_getRowId:(c,d,h)=>{var m;return(m=a.options.getRowId==null?void 0:a.options.getRowId(c,d,h))!=null?m:`${h?[h.id,d].join("."):d}`},getCoreRowModel:()=>(a._getCoreRowModel||(a._getCoreRowModel=a.options.getCoreRowModel(a)),a._getCoreRowModel()),getRowModel:()=>a.getPaginationRowModel(),getRow:(c,d)=>{let h=(d?a.getPrePaginationRowModel():a.getRowModel()).rowsById[c];if(!h&&(h=a.getCoreRowModel().rowsById[c],!h))throw new Error;return h},_getDefaultColumnDef:ee(()=>[a.options.defaultColumn],c=>{var d;return c=(d=c)!=null?d:{},{header:h=>{const m=h.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:h=>{var m,v;return(m=(v=h.renderValue())==null||v.toString==null?void 0:v.toString())!=null?m:null},...a._features.reduce((h,m)=>Object.assign(h,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...c}},te(e,"debugColumns")),_getColumnDefs:()=>a.options.columns,getAllColumns:ee(()=>[a._getColumnDefs()],c=>{const d=function(h,m,v){return v===void 0&&(v=0),h.map(y=>{const b=HN(a,y,v,m),g=y;return b.columns=g.columns?d(g.columns,b,v+1):[],b})};return d(c)},te(e,"debugColumns")),getAllFlatColumns:ee(()=>[a.getAllColumns()],c=>c.flatMap(d=>d.getFlatColumns()),te(e,"debugColumns")),_getAllFlatColumnsById:ee(()=>[a.getAllFlatColumns()],c=>c.reduce((d,h)=>(d[h.id]=h,d),{}),te(e,"debugColumns")),getAllLeafColumns:ee(()=>[a.getAllColumns(),a._getOrderColumnsFn()],(c,d)=>{let h=c.flatMap(m=>m.getLeafColumns());return d(h)},te(e,"debugColumns")),getColumn:c=>a._getAllFlatColumnsById()[c]};Object.assign(a,f);for(let c=0;c<a._features.length;c++){const d=a._features[c];d==null||d.createTable==null||d.createTable(a)}return a}function Rx(){return e=>ee(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(a,l,i){l===void 0&&(l=0);const o=[];for(let u=0;u<a.length;u++){const f=UN(e,e._getRowId(a[u],u,i),a[u],u,l,void 0,i==null?void 0:i.id);if(n.flatRows.push(f),n.rowsById[f.id]=f,o.push(f),e.options.getSubRows){var s;f.originalSubRows=e.options.getSubRows(a[u],u),(s=f.originalSubRows)!=null&&s.length&&(f.subRows=r(f.originalSubRows,l+1,f))}}return o};return n.rows=r(t),n},te(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}/**
|
|
100
100
|
* react-table
|
|
101
101
|
*
|
|
102
102
|
* Copyright (c) TanStack
|
|
@@ -105,10 +105,10 @@ Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}
|
|
|
105
105
|
* LICENSE.md file in the root directory of this source tree.
|
|
106
106
|
*
|
|
107
107
|
* @license MIT
|
|
108
|
-
*/function Ld(e,t){return e?lA(e)?p.createElement(e,t):e:null}function lA(e){return iA(e)||typeof e=="function"||oA(e)}function iA(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function oA(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function x6(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=p.useState(()=>({current:aA(t)})),[r,a]=p.useState(()=>n.current.initialState);return n.current.setOptions(l=>({...l,...e,state:{...r,...e.state},onStateChange:i=>{a(i),e.onStateChange==null||e.onStateChange(i)}})),n.current}const w6=6048e5,sA=864e5,vy=6e4,by=525600,pi=43200,_d=1440,yy=Symbol.for("constructDateFrom");function Dr(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&yy in e?e[yy](t):e instanceof Date?new e.constructor(t):new Date(t)}function st(e,t){return Dr(t||e,e)}let uA={};function so(){return uA}function Xs(e,t){var n,r,a,l;const i=so(),o=(t==null?void 0:t.weekStartsOn)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??i.weekStartsOn??((l=(a=i.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??0,s=st(e,t==null?void 0:t.in),u=s.getDay(),f=(u<o?7:0)+u-o;return s.setDate(s.getDate()-f),s.setHours(0,0,0,0),s}function zd(e,t){return Xs(e,{...t,weekStartsOn:1})}function C6(e,t){const n=st(e,void 0),r=n.getFullYear(),a=Dr(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const l=zd(a),i=Dr(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const o=zd(i);return n.getTime()>=l.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function qi(e){const t=st(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function xu(e,...t){const n=Dr.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function xy(e,t){const n=st(e,void 0);return n.setHours(0,0,0,0),n}function cA(e,t,n){const[r,a]=xu(void 0,e,t),l=xy(r),i=xy(a),o=+l-qi(l),s=+i-qi(i);return Math.round((o-s)/sA)}function dA(e,t){const n=C6(e),r=Dr(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),zd(r)}function ws(e,t){const n=+st(e)-+st(t);return n<0?-1:n>0?1:n}function fA(e){return Dr(e,Date.now())}function hA(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function pA(e){return!(!hA(e)&&typeof e!="number"||isNaN(+st(e)))}function mA(e,t,n){const[r,a]=xu(void 0,e,t),l=r.getFullYear()-a.getFullYear(),i=r.getMonth()-a.getMonth();return l*12+i}function S6(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function gA(e,t){return+st(e)-+st(t)}function vA(e,t){const n=st(e,void 0);return n.setHours(23,59,59,999),n}function bA(e,t){const n=st(e,void 0),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function yA(e,t){const n=st(e,void 0);return+vA(n)==+bA(n)}function xA(e,t,n){const[r,a,l]=xu(void 0,e,e,t),i=ws(a,l),o=Math.abs(mA(a,l));if(o<1)return 0;a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-i*o);let s=ws(a,l)===-i;yA(r)&&o===1&&ws(r,l)===1&&(s=!1);const u=i*(o-+s);return u===0?0:u}function wA(e,t,n){const r=gA(e,t)/1e3;return S6(void 0)(r)}function CA(e,t){const n=st(e,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const SA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},EA=(e,t,n)=>{let r;const a=SA[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function uh(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const MA={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},OA={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},RA={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},TA={date:uh({formats:MA,defaultWidth:"full"}),time:uh({formats:OA,defaultWidth:"full"}),dateTime:uh({formats:RA,defaultWidth:"full"})},kA={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},jA=(e,t,n,r)=>kA[e];function qo(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{const i=e.defaultWidth,o=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[o]||e.values[i]}const l=e.argumentCallback?e.argumentCallback(t):t;return a[l]}}const DA={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},NA={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},AA={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},LA={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},_A={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},zA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},PA=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},HA={ordinalNumber:PA,era:qo({values:DA,defaultWidth:"wide"}),quarter:qo({values:NA,defaultWidth:"wide",argumentCallback:e=>e-1}),month:qo({values:AA,defaultWidth:"wide"}),day:qo({values:LA,defaultWidth:"wide"}),dayPeriod:qo({values:_A,defaultWidth:"wide",formattingValues:zA,defaultFormattingWidth:"wide"})};function Fo(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],l=t.match(a);if(!l)return null;const i=l[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(o)?UA(o,c=>c.test(i)):KA(o,c=>c.test(i));let u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(i.length);return{value:u,rest:f}}}function KA(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function UA(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function BA(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],l=t.match(e.parsePattern);if(!l)return null;let i=e.valueCallback?e.valueCallback(l[0]):l[0];i=n.valueCallback?n.valueCallback(i):i;const o=t.slice(a.length);return{value:i,rest:o}}}const qA=/^(\d+)(th|st|nd|rd)?/i,FA=/\d+/i,VA={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},GA={any:[/^b/i,/^(a|c)/i]},QA={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},IA={any:[/1/i,/2/i,/3/i,/4/i]},XA={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},YA={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ZA={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},$A={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},WA={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},JA={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},eL={ordinalNumber:BA({matchPattern:qA,parsePattern:FA,valueCallback:e=>parseInt(e,10)}),era:Fo({matchPatterns:VA,defaultMatchWidth:"wide",parsePatterns:GA,defaultParseWidth:"any"}),quarter:Fo({matchPatterns:QA,defaultMatchWidth:"wide",parsePatterns:IA,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Fo({matchPatterns:XA,defaultMatchWidth:"wide",parsePatterns:YA,defaultParseWidth:"any"}),day:Fo({matchPatterns:ZA,defaultMatchWidth:"wide",parsePatterns:$A,defaultParseWidth:"any"}),dayPeriod:Fo({matchPatterns:WA,defaultMatchWidth:"any",parsePatterns:JA,defaultParseWidth:"any"})},$g={code:"en-US",formatDistance:EA,formatLong:TA,formatRelative:jA,localize:HA,match:eL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function tL(e,t){const n=st(e,void 0);return cA(n,CA(n))+1}function nL(e,t){const n=st(e,void 0),r=+zd(n)-+dA(n);return Math.round(r/w6)+1}function E6(e,t){var n,r,a,l;const i=st(e,t==null?void 0:t.in),o=i.getFullYear(),s=so(),u=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??s.firstWeekContainsDate??((l=(a=s.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??1,f=Dr((t==null?void 0:t.in)||e,0);f.setFullYear(o+1,0,u),f.setHours(0,0,0,0);const c=Xs(f,t),d=Dr((t==null?void 0:t.in)||e,0);d.setFullYear(o,0,u),d.setHours(0,0,0,0);const h=Xs(d,t);return+i>=+c?o+1:+i>=+h?o:o-1}function rL(e,t){var n,r,a,l;const i=so(),o=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??i.firstWeekContainsDate??((l=(a=i.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??1,s=E6(e,t),u=Dr((t==null?void 0:t.in)||e,0);return u.setFullYear(s,0,o),u.setHours(0,0,0,0),Xs(u,t)}function aL(e,t){const n=st(e,t==null?void 0:t.in),r=+Xs(n,t)-+rL(n,t);return Math.round(r/w6)+1}function be(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Fr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return be(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):be(n+1,2)},d(e,t){return be(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return be(e.getHours()%12||12,t.length)},H(e,t){return be(e.getHours(),t.length)},m(e,t){return be(e.getMinutes(),t.length)},s(e,t){return be(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return be(a,t.length)}},Gl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wy={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return Fr.y(e,t)},Y:function(e,t,n,r){const a=E6(e,r),l=a>0?a:1-a;if(t==="YY"){const i=l%100;return be(i,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):be(l,t.length)},R:function(e,t){const n=C6(e);return be(n,t.length)},u:function(e,t){const n=e.getFullYear();return be(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return be(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return be(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Fr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return be(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=aL(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):be(a,t.length)},I:function(e,t,n){const r=nL(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):be(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Fr.d(e,t)},D:function(e,t,n){const r=tL(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):be(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),l=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return be(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),l=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return be(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return be(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=Gl.noon:r===0?a=Gl.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=Gl.evening:r>=12?a=Gl.afternoon:r>=4?a=Gl.morning:a=Gl.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Fr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Fr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):be(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):be(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Fr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Fr.s(e,t)},S:function(e,t){return Fr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Sy(r);case"XXXX":case"XX":return el(r);case"XXXXX":case"XXX":default:return el(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Sy(r);case"xxxx":case"xx":return el(r);case"xxxxx":case"xxx":default:return el(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Cy(r,":");case"OOOO":default:return"GMT"+el(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Cy(r,":");case"zzzz":default:return"GMT"+el(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return be(r,t.length)},T:function(e,t,n){return be(+e,t.length)}};function Cy(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),l=r%60;return l===0?n+String(a):n+String(a)+t+be(l,2)}function Sy(e,t){return e%60===0?(e>0?"-":"+")+be(Math.abs(e)/60,2):el(e,t)}function el(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=be(Math.trunc(r/60),2),l=be(r%60,2);return n+a+t+l}const Ey=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},M6=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},lL=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return Ey(e,t);let l;switch(r){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",Ey(r,t)).replace("{{time}}",M6(a,t))},iL={p:M6,P:lL},oL=/^D+$/,sL=/^Y+$/,uL=["D","DD","YY","YYYY"];function cL(e){return oL.test(e)}function dL(e){return sL.test(e)}function fL(e,t,n){const r=hL(e,t,n);if(console.warn(r),uL.includes(e))throw new RangeError(r)}function hL(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const pL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gL=/^'([^]*?)'?$/,vL=/''/g,bL=/[a-zA-Z]/;function O6(e,t,n){var r,a,l,i;const o=so(),s=o.locale??$g,u=o.firstWeekContainsDate??((a=(r=o.locale)==null?void 0:r.options)==null?void 0:a.firstWeekContainsDate)??1,f=o.weekStartsOn??((i=(l=o.locale)==null?void 0:l.options)==null?void 0:i.weekStartsOn)??0,c=st(e,void 0);if(!pA(c))throw new RangeError("Invalid time value");let d=t.match(mL).map(m=>{const b=m[0];if(b==="p"||b==="P"){const y=iL[b];return y(m,s.formatLong)}return m}).join("").match(pL).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const b=m[0];if(b==="'")return{isToken:!1,value:yL(m)};if(wy[b])return{isToken:!0,value:m};if(b.match(bL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:m}});s.localize.preprocessor&&(d=s.localize.preprocessor(c,d));const h={firstWeekContainsDate:u,weekStartsOn:f,locale:s};return d.map(m=>{if(!m.isToken)return m.value;const b=m.value;(dL(b)||cL(b))&&fL(b,t,String(e));const y=wy[b[0]];return y(c,b,s.localize,h)}).join("")}function yL(e){const t=e.match(gL);return t?t[1].replace(vL,"'"):e}function xL(e,t,n){const r=so(),a=r.locale??$g,l=2520,i=ws(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const o=Object.assign({},n,{addSuffix:void 0,comparison:i}),[s,u]=xu(void 0,...i>0?[t,e]:[e,t]),f=wA(u,s),c=(qi(u)-qi(s))/1e3,d=Math.round((f-c)/60);let h;if(d<2)return d===0?a.formatDistance("lessThanXMinutes",1,o):a.formatDistance("xMinutes",d,o);if(d<45)return a.formatDistance("xMinutes",d,o);if(d<90)return a.formatDistance("aboutXHours",1,o);if(d<_d){const m=Math.round(d/60);return a.formatDistance("aboutXHours",m,o)}else{if(d<l)return a.formatDistance("xDays",1,o);if(d<pi){const m=Math.round(d/_d);return a.formatDistance("xDays",m,o)}else if(d<pi*2)return h=Math.round(d/pi),a.formatDistance("aboutXMonths",h,o)}if(h=xA(u,s),h<12){const m=Math.round(d/pi);return a.formatDistance("xMonths",m,o)}else{const m=h%12,b=Math.trunc(h/12);return m<3?a.formatDistance("aboutXYears",b,o):m<9?a.formatDistance("overXYears",b,o):a.formatDistance("almostXYears",b+1,o)}}function wL(e,t,n){const r=so(),a=(n==null?void 0:n.locale)??r.locale??$g,l=ws(e,t);if(isNaN(l))throw new RangeError("Invalid time value");const i=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:l}),[o,s]=xu(n==null?void 0:n.in,...l>0?[t,e]:[e,t]),u=S6((n==null?void 0:n.roundingMethod)??"round"),f=s.getTime()-o.getTime(),c=f/vy,d=qi(s)-qi(o),h=(f-d)/vy,m=n==null?void 0:n.unit;let b;if(m?b=m:c<1?b="second":c<60?b="minute":c<_d?b="hour":h<pi?b="day":h<by?b="month":b="year",b==="second"){const y=u(f/1e3);return a.formatDistance("xSeconds",y,i)}else if(b==="minute"){const y=u(c);return a.formatDistance("xMinutes",y,i)}else if(b==="hour"){const y=u(c/60);return a.formatDistance("xHours",y,i)}else if(b==="day"){const y=u(h/_d);return a.formatDistance("xDays",y,i)}else if(b==="month"){const y=u(h/pi);return y===12&&m!=="month"?a.formatDistance("xYears",1,i):a.formatDistance("xMonths",y,i)}else{const y=u(h/by);return a.formatDistance("xYears",y,i)}}function R6(e,t){return xL(e,fA(e),t)}var rm=new Map,ch=new WeakMap,My=0,CL=void 0;function SL(e){return e?(ch.has(e)||(My+=1,ch.set(e,My.toString())),ch.get(e)):"0"}function EL(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?SL(e.root):e[t]}`).toString()}function ML(e){const t=EL(e);let n=rm.get(t);if(!n){const r=new Map;let a;const l=new IntersectionObserver(i=>{i.forEach(o=>{var s;const u=o.isIntersecting&&a.some(f=>o.intersectionRatio>=f);e.trackVisibility&&typeof o.isVisible>"u"&&(o.isVisible=u),(s=r.get(o.target))==null||s.forEach(f=>{f(u,o)})})},e);a=l.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:l,elements:r},rm.set(t,n)}return n}function OL(e,t,n={},r=CL){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:a,observer:l,elements:i}=ML(n),o=i.get(e)||[];return i.has(e)||i.set(e,o),o.push(t),l.observe(e),function(){o.splice(o.indexOf(t),1),o.length===0&&(i.delete(e),l.unobserve(e)),i.size===0&&(l.disconnect(),rm.delete(a))}}function RL({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:a,triggerOnce:l,skip:i,initialInView:o,fallbackInView:s,onChange:u}={}){var f;const[c,d]=p.useState(null),h=p.useRef(u),[m,b]=p.useState({inView:!!o,entry:void 0});h.current=u,p.useEffect(()=>{if(i||!c)return;let x;return x=OL(c,(C,E)=>{b({inView:C,entry:E}),h.current&&h.current(C,E),E.isIntersecting&&l&&x&&(x(),x=void 0)},{root:a,rootMargin:r,threshold:e,trackVisibility:n,delay:t},s),()=>{x&&x()}},[Array.isArray(e)?e.toString():e,c,a,r,l,i,n,s,t]);const y=(f=m.entry)==null?void 0:f.target,v=p.useRef(void 0);!c&&y&&!l&&!i&&v.current!==y&&(v.current=y,b({inView:!!o,entry:void 0}));const g=[d,m.inView,m.entry];return g.ref=g[0],g.inView=g[1],g.entry=g[2],g}var T6=function(e){var t=e.isLastRow,n=e.children,r=e.isSelected,a=e.onClick,l=e.layoutVariant;return w.jsx("div",{onClick:function(i){return a(i)},"aria-label":"button",className:"group grid w-full cursor-pointer p-2 transition-colors duration-150 active:bg-slate-50/25 dark:active:bg-slate-800/25 ".concat(t?"border-b border-slate-200 dark:border-slate-700":""," ").concat(l==="job"?"grid-cols-[auto,350px,576px,1fr]":"grid-cols-[auto,350px,1fr,1fr]"," ").concat(r?"bg-slate-200/50 dark:bg-slate-800/50":"hover:bg-slate-50/50 dark:hover:bg-slate-900"),children:n})},am=30,Ys=2e3,lm=2,k6=function(){return w.jsxs("div",{children:[w.jsx("div",{className:"rounded-t-md border-b border-slate-200 bg-slate-50 p-2 text-left text-sm font-semibold dark:border-slate-700 dark:bg-slate-800",children:w.jsx("span",{className:"opacity-0",children:"Placeholder"})}),wt([],new Array(am),!0).map(function(e,t){return w.jsx("div",{className:Ui("p-2",am!==t+1?"border-b border-slate-200 dark:border-slate-700":""),children:w.jsx(qs,{className:"h-6 w-full"})},t)})]})};function Oy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function j6(...e){return t=>{let n=!1;const r=e.map(a=>{const l=Oy(a,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let a=0;a<r.length;a++){const l=r[a];typeof l=="function"?l():Oy(e[a],null)}}}}function Wg(...e){return p.useCallback(j6(...e),e)}function TL(e,t=[]){let n=[];function r(l,i){const o=p.createContext(i),s=n.length;n=[...n,i];const u=c=>{var d;const{scope:h,children:m,...b}=c,y=((d=h==null?void 0:h[e])==null?void 0:d[s])||o,v=p.useMemo(()=>b,Object.values(b));return w.jsx(y.Provider,{value:v,children:m})};u.displayName=l+"Provider";function f(c,d){var h;const m=((h=d==null?void 0:d[e])==null?void 0:h[s])||o,b=p.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${l}\``)}return[u,f]}const a=()=>{const l=n.map(i=>p.createContext(i));return function(i){const o=(i==null?void 0:i[e])||l;return p.useMemo(()=>({[`__scope${e}`]:{...i,[e]:o}}),[i,o])}};return a.scopeName=e,[r,kL(a,...t)]}function kL(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const l=r.reduce((i,{useScope:o,scopeName:s})=>{const u=o(a)[`__scope${s}`];return{...i,...u}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function Ry(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}var Pd=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},jL=C2[" useInsertionEffect ".trim().toString()]||Pd;function DL({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,l,i]=NL({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:a;{const f=p.useRef(e!==void 0);p.useEffect(()=>{const c=f.current;c!==o&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=o},[o,r])}const u=p.useCallback(f=>{var c;if(o){const d=AL(f)?f(e):f;d!==e&&((c=i.current)==null||c.call(i,d))}else l(f)},[o,e,l,i]);return[s,u]}function NL({defaultProp:e,onChange:t}){const[n,r]=p.useState(e),a=p.useRef(n),l=p.useRef(t);return jL(()=>{l.current=t},[t]),p.useEffect(()=>{var i;a.current!==n&&((i=l.current)==null||i.call(l,n),a.current=n)},[n,a]),[n,r,l]}function AL(e){return typeof e=="function"}function LL(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function _L(e){const[t,n]=p.useState(void 0);return Pd(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let i,o;if("borderBoxSize"in l){const s=l.borderBoxSize,u=Array.isArray(s)?s[0]:s;i=u.inlineSize,o=u.blockSize}else i=e.offsetWidth,o=e.offsetHeight;n({width:i,height:o})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function zL(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var D6=e=>{const{present:t,children:n}=e,r=PL(t),a=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),l=Wg(r.ref,HL(a));return typeof n=="function"||r.isPresent?p.cloneElement(a,{ref:l}):null};D6.displayName="Presence";function PL(e){const[t,n]=p.useState(),r=p.useRef(null),a=p.useRef(e),l=p.useRef("none"),i=e?"mounted":"unmounted",[o,s]=zL(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=dc(r.current);l.current=o==="mounted"?u:"none"},[o]),Pd(()=>{const u=r.current,f=a.current;if(f!==e){const c=l.current,d=dc(u);e?s("MOUNT"):d==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(f&&c!==d?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,s]),Pd(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,c=h=>{const m=dc(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(s("ANIMATION_END"),!a.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},d=h=>{h.target===t&&(l.current=dc(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:p.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function dc(e){return(e==null?void 0:e.animationName)||"none"}function HL(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function KL(e){const t=UL(e),n=p.forwardRef((r,a)=>{const{children:l,...i}=r,o=p.Children.toArray(l),s=o.find(qL);if(s){const u=s.props.children,f=o.map(c=>c===s?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:c);return w.jsx(t,{...i,ref:a,children:p.isValidElement(u)?p.cloneElement(u,void 0,f):null})}return w.jsx(t,{...i,ref:a,children:l})});return n.displayName=`${e}.Slot`,n}function UL(e){const t=p.forwardRef((n,r)=>{const{children:a,...l}=n;if(p.isValidElement(a)){const i=VL(a),o=FL(l,a.props);return a.type!==p.Fragment&&(o.ref=r?j6(r,i):i),p.cloneElement(a,o)}return p.Children.count(a)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var BL=Symbol("radix.slottable");function qL(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===BL}function FL(e,t){const n={...t};for(const r in t){const a=e[r],l=t[r];/^on[A-Z]/.test(r)?a&&l?n[r]=(...i)=>{const o=l(...i);return a(...i),o}:a&&(n[r]=a):r==="style"?n[r]={...a,...l}:r==="className"&&(n[r]=[a,l].filter(Boolean).join(" "))}return{...e,...n}}function VL(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var GL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Jg=GL.reduce((e,t)=>{const n=KL(`Primitive.${t}`),r=p.forwardRef((a,l)=>{const{asChild:i,...o}=a,s=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(s,{...o,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),_f="Checkbox",[QL]=TL(_f),[IL,e1]=QL(_f);function XL(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:a,disabled:l,form:i,name:o,onCheckedChange:s,required:u,value:f="on",internal_do_not_use_render:c}=e,[d,h]=DL({prop:n,defaultProp:a??!1,onChange:s,caller:_f}),[m,b]=p.useState(null),[y,v]=p.useState(null),g=p.useRef(!1),x=m?!!i||!!m.closest("form"):!0,C={checked:d,disabled:l,setChecked:h,control:m,setControl:b,name:o,form:i,value:f,hasConsumerStoppedPropagationRef:g,required:u,defaultChecked:ma(a)?!1:a,isFormControl:x,bubbleInput:y,setBubbleInput:v};return w.jsx(IL,{scope:t,...C,children:YL(c)?c(C):r})}var N6="CheckboxTrigger",A6=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},a)=>{const{control:l,value:i,disabled:o,checked:s,required:u,setControl:f,setChecked:c,hasConsumerStoppedPropagationRef:d,isFormControl:h,bubbleInput:m}=e1(N6,e),b=Wg(a,f),y=p.useRef(s);return p.useEffect(()=>{const v=l==null?void 0:l.form;if(v){const g=()=>c(y.current);return v.addEventListener("reset",g),()=>v.removeEventListener("reset",g)}},[l,c]),w.jsx(Jg.button,{type:"button",role:"checkbox","aria-checked":ma(s)?"mixed":s,"aria-required":u,"data-state":K6(s),"data-disabled":o?"":void 0,disabled:o,value:i,...r,ref:b,onKeyDown:Ry(t,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:Ry(n,v=>{c(g=>ma(g)?!0:!g),m&&h&&(d.current=v.isPropagationStopped(),d.current||v.stopPropagation())})})});A6.displayName=N6;var L6=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:l,required:i,disabled:o,value:s,onCheckedChange:u,form:f,...c}=e;return w.jsx(XL,{__scopeCheckbox:n,checked:a,defaultChecked:l,disabled:o,required:i,onCheckedChange:u,name:r,form:f,value:s,internal_do_not_use_render:({isFormControl:d})=>w.jsxs(w.Fragment,{children:[w.jsx(A6,{...c,ref:t,__scopeCheckbox:n}),d&&w.jsx(H6,{__scopeCheckbox:n})]})})});L6.displayName=_f;var _6="CheckboxIndicator",z6=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,l=e1(_6,n);return w.jsx(D6,{present:r||ma(l.checked)||l.checked===!0,children:w.jsx(Jg.span,{"data-state":K6(l.checked),"data-disabled":l.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});z6.displayName=_6;var P6="CheckboxBubbleInput",H6=p.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:a,checked:l,defaultChecked:i,required:o,disabled:s,name:u,value:f,form:c,bubbleInput:d,setBubbleInput:h}=e1(P6,e),m=Wg(n,h),b=LL(l),y=_L(r);p.useEffect(()=>{const g=d;if(!g)return;const x=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(x,"checked").set,E=!a.current;if(b!==l&&C){const S=new Event("click",{bubbles:E});g.indeterminate=ma(l),C.call(g,ma(l)?!1:l),g.dispatchEvent(S)}},[d,b,l,a]);const v=p.useRef(ma(l)?!1:l);return w.jsx(Jg.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??v.current,required:o,disabled:s,name:u,value:f,form:c,...t,tabIndex:-1,ref:m,style:{...t.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});H6.displayName=P6;function YL(e){return typeof e=="function"}function ma(e){return e==="indeterminate"}function K6(e){return ma(e)?"indeterminate":e?"checked":"unchecked"}var Hd=function(e){var t=e.className,n=fM(e,["className"]);return w.jsx(L6,{className:Ui("flex size-4 cursor-pointer rounded-sm border shadow-sm",t,{"border-slate-300 hover:border-slate-500 hover:bg-slate-100 dark:border-slate-600 dark:hover:border-slate-400 dark:hover:bg-slate-800":!n.checked,"border-brand-500 bg-brand-500 text-brand-50 hover:border-brand-600 hover:bg-brand-600":n.checked===!0,"border-slate-500 text-slate-500 hover:border-slate-700 hover:bg-slate-100 dark:border-slate-400 dark:text-slate-400 dark:hover:border-slate-300 dark:hover:bg-slate-800":n.checked==="indeterminate"}),onClick:function(r){return r.stopPropagation()},...n,children:w.jsxs(z6,{className:"flex size-full items-center justify-center",children:[n.checked==="indeterminate"&&w.jsx(kR,{height:12,width:12}),n.checked===!0&&w.jsx(vR,{height:12,width:12})]})})},Vo=function(e){var t=e.label,n=e.icon;return w.jsxs("div",{className:"flex cursor-default items-center justify-center space-x-1.5 rounded-md bg-slate-100 px-2 py-0.5 text-sm text-slate-900 transition duration-150 ease-in-out dark:bg-slate-800 dark:text-slate-300",children:[n,w.jsx("span",{children:t})]})},t1=function(e){var t=e.children,n=e.message;return w.jsxs(pN,{children:[w.jsx(qg,{children:t}),w.jsx(mN,{offset:6,className:"rounded-md bg-white px-2 py-1 text-sm text-slate-900 shadow-md dark:bg-slate-800 dark:text-slate-100",children:n})]})},U6={exports:{}},B6={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},q6={exports:{}},ZL=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},$L=ZL,WL=Array.prototype.concat,JL=Array.prototype.slice,Ty=q6.exports=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var a=e[n];$L(a)?t=WL.call(t,JL.call(a)):t.push(a)}return t};Ty.wrap=function(e){return function(){return e(Ty(arguments))}};var e_=q6.exports,Cs=B6,wu=e_,F6=Object.hasOwnProperty,V6=Object.create(null);for(var dh in Cs)F6.call(Cs,dh)&&(V6[Cs[dh]]=dh);var Wt=U6.exports={to:{},get:{}};Wt.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case"hsl":n=Wt.get.hsl(e),r="hsl";break;case"hwb":n=Wt.get.hwb(e),r="hwb";break;default:n=Wt.get.rgb(e),r="rgb";break}return n?{model:r,value:n}:null};Wt.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,l=/^(\w+)$/,i=[0,0,0,1],o,s,u;if(o=e.match(n)){for(u=o[2],o=o[1],s=0;s<3;s++){var f=s*2;i[s]=parseInt(o.slice(f,f+2),16)}u&&(i[3]=parseInt(u,16)/255)}else if(o=e.match(t)){for(o=o[1],u=o[3],s=0;s<3;s++)i[s]=parseInt(o[s]+o[s],16);u&&(i[3]=parseInt(u+u,16)/255)}else if(o=e.match(r)){for(s=0;s<3;s++)i[s]=parseInt(o[s+1],0);o[4]&&(o[5]?i[3]=parseFloat(o[4])*.01:i[3]=parseFloat(o[4]))}else if(o=e.match(a)){for(s=0;s<3;s++)i[s]=Math.round(parseFloat(o[s+1])*2.55);o[4]&&(o[5]?i[3]=parseFloat(o[4])*.01:i[3]=parseFloat(o[4]))}else return(o=e.match(l))?o[1]==="transparent"?[0,0,0,0]:F6.call(Cs,o[1])?(i=Cs[o[1]],i[3]=1,i):null:null;for(s=0;s<3;s++)i[s]=ga(i[s],0,255);return i[3]=ga(i[3],0,1),i};Wt.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,l=ga(parseFloat(n[2]),0,100),i=ga(parseFloat(n[3]),0,100),o=ga(isNaN(r)?1:r,0,1);return[a,l,i,o]}return null};Wt.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,l=ga(parseFloat(n[2]),0,100),i=ga(parseFloat(n[3]),0,100),o=ga(isNaN(r)?1:r,0,1);return[a,l,i,o]}return null};Wt.to.hex=function(){var e=wu(arguments);return"#"+fc(e[0])+fc(e[1])+fc(e[2])+(e[3]<1?fc(Math.round(e[3]*255)):"")};Wt.to.rgb=function(){var e=wu(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};Wt.to.rgb.percent=function(){var e=wu(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"};Wt.to.hsl=function(){var e=wu(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};Wt.to.hwb=function(){var e=wu(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};Wt.to.keyword=function(e){return V6[e.slice(0,3)]};function ga(e,t,n){return Math.min(Math.max(t,e),n)}function fc(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var t_=U6.exports;const Zs=B6,G6={};for(const e of Object.keys(Zs))G6[Zs[e]]=e;const Y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Q6=Y;for(const e of Object.keys(Y)){if(!("channels"in Y[e]))throw new Error("missing channels property: "+e);if(!("labels"in Y[e]))throw new Error("missing channel labels property: "+e);if(Y[e].labels.length!==Y[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Y[e];delete Y[e].channels,delete Y[e].labels,Object.defineProperty(Y[e],"channels",{value:t}),Object.defineProperty(Y[e],"labels",{value:n})}Y.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(t,n,r),l=Math.max(t,n,r),i=l-a;let o,s;l===a?o=0:t===l?o=(n-r)/i:n===l?o=2+(r-t)/i:r===l&&(o=4+(t-n)/i),o=Math.min(o*60,360),o<0&&(o+=360);const u=(a+l)/2;return l===a?s=0:u<=.5?s=i/(l+a):s=i/(2-l-a),[o,s*100,u*100]};Y.rgb.hsv=function(e){let t,n,r,a,l;const i=e[0]/255,o=e[1]/255,s=e[2]/255,u=Math.max(i,o,s),f=u-Math.min(i,o,s),c=function(d){return(u-d)/6/f+1/2};return f===0?(a=0,l=0):(l=f/u,t=c(i),n=c(o),r=c(s),i===u?a=r-n:o===u?a=1/3+t-r:s===u&&(a=2/3+n-t),a<0?a+=1:a>1&&(a-=1)),[a*360,l*100,u*100]};Y.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const a=Y.rgb.hsl(e)[0],l=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[a,l*100,r*100]};Y.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(1-t,1-n,1-r),l=(1-t-a)/(1-a)||0,i=(1-n-a)/(1-a)||0,o=(1-r-a)/(1-a)||0;return[l*100,i*100,o*100,a*100]};function n_(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Y.rgb.keyword=function(e){const t=G6[e];if(t)return t;let n=1/0,r;for(const a of Object.keys(Zs)){const l=Zs[a],i=n_(e,l);i<n&&(n=i,r=a)}return r};Y.keyword.rgb=function(e){return Zs[e]};Y.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const a=t*.4124+n*.3576+r*.1805,l=t*.2126+n*.7152+r*.0722,i=t*.0193+n*.1192+r*.9505;return[a*100,l*100,i*100]};Y.rgb.lab=function(e){const t=Y.rgb.xyz(e);let n=t[0],r=t[1],a=t[2];n/=95.047,r/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;const l=116*r-16,i=500*(n-r),o=200*(r-a);return[l,i,o]};Y.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let a,l,i;if(n===0)return i=r*255,[i,i,i];r<.5?a=r*(1+n):a=r+n-r*n;const o=2*r-a,s=[0,0,0];for(let u=0;u<3;u++)l=t+1/3*-(u-1),l<0&&l++,l>1&&l--,6*l<1?i=o+(a-o)*6*l:2*l<1?i=a:3*l<2?i=o+(a-o)*(2/3-l)*6:i=o,s[u]=i*255;return s};Y.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,a=n;const l=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,a*=l<=1?l:2-l;const i=(r+n)/2,o=r===0?2*a/(l+a):2*n/(r+n);return[t,o*100,i*100]};Y.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const a=Math.floor(t)%6,l=t-Math.floor(t),i=255*r*(1-n),o=255*r*(1-n*l),s=255*r*(1-n*(1-l));switch(r*=255,a){case 0:return[r,s,i];case 1:return[o,r,i];case 2:return[i,r,s];case 3:return[i,o,r];case 4:return[s,i,r];case 5:return[r,i,o]}};Y.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,a=Math.max(r,.01);let l,i;i=(2-n)*r;const o=(2-n)*a;return l=n*a,l/=o<=1?o:2-o,l=l||0,i/=2,[t,l*100,i*100]};Y.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const a=n+r;let l;a>1&&(n/=a,r/=a);const i=Math.floor(6*t),o=1-r;l=6*t-i,i&1&&(l=1-l);const s=n+l*(o-n);let u,f,c;switch(i){default:case 6:case 0:u=o,f=s,c=n;break;case 1:u=s,f=o,c=n;break;case 2:u=n,f=o,c=s;break;case 3:u=n,f=s,c=o;break;case 4:u=s,f=n,c=o;break;case 5:u=o,f=n,c=s;break}return[u*255,f*255,c*255]};Y.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100,l=1-Math.min(1,t*(1-a)+a),i=1-Math.min(1,n*(1-a)+a),o=1-Math.min(1,r*(1-a)+a);return[l*255,i*255,o*255]};Y.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let a,l,i;return a=t*3.2406+n*-1.5372+r*-.4986,l=t*-.9689+n*1.8758+r*.0415,i=t*.0557+n*-.204+r*1.057,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),i=Math.min(Math.max(0,i),1),[a*255,l*255,i*255]};Y.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const a=116*n-16,l=500*(t-n),i=200*(n-r);return[a,l,i]};Y.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let a,l,i;l=(t+16)/116,a=n/500+l,i=l-r/200;const o=l**3,s=a**3,u=i**3;return l=o>.008856?o:(l-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a*=95.047,l*=100,i*=108.883,[a,l,i]};Y.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let a;a=Math.atan2(r,n)*360/2/Math.PI,a<0&&(a+=360);const l=Math.sqrt(n*n+r*r);return[t,l,a]};Y.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI,a=n*Math.cos(r),l=n*Math.sin(r);return[t,a,l]};Y.rgb.ansi16=function(e,t=null){const[n,r,a]=e;let l=t===null?Y.rgb.hsv(e)[2]:t;if(l=Math.round(l/50),l===0)return 30;let i=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return l===2&&(i+=60),i};Y.hsv.ansi16=function(e){return Y.rgb.ansi16(Y.hsv.rgb(e),e[2])};Y.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};Y.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,a=(t>>1&1)*n*255,l=(t>>2&1)*n*255;return[r,a,l]};Y.ansi256.rgb=function(e){if(e>=232){const l=(e-232)*10+8;return[l,l,l]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,a=t%6/5*255;return[n,r,a]};Y.rgb.hex=function(e){const t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};Y.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(o=>o+o).join(""));const r=parseInt(n,16),a=r>>16&255,l=r>>8&255,i=r&255;return[a,l,i]};Y.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.max(Math.max(t,n),r),l=Math.min(Math.min(t,n),r),i=a-l;let o,s;return i<1?o=l/(1-i):o=0,i<=0?s=0:a===t?s=(n-r)/i%6:a===n?s=2+(r-t)/i:s=4+(t-n)/i,s/=6,s%=1,[s*360,i*100,o*100]};Y.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let a=0;return r<1&&(a=(n-.5*r)/(1-r)),[e[0],r*100,a*100]};Y.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],r*100,a*100]};Y.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const a=[0,0,0],l=t%1*6,i=l%1,o=1-i;let s=0;switch(Math.floor(l)){case 0:a[0]=1,a[1]=i,a[2]=0;break;case 1:a[0]=o,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=i;break;case 3:a[0]=0,a[1]=o,a[2]=1;break;case 4:a[0]=i,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=o}return s=(1-n)*r,[(n*a[0]+s)*255,(n*a[1]+s)*255,(n*a[2]+s)*255]};Y.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let a=0;return r>0&&(a=t/r),[e[0],a*100,r*100]};Y.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]};Y.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};Y.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],r*100,a*100]};Y.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Y.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Y.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Y.gray.hsl=function(e){return[0,0,e[0]]};Y.gray.hsv=Y.gray.hsl;Y.gray.hwb=function(e){return[0,100,e[0]]};Y.gray.cmyk=function(e){return[0,0,0,e[0]]};Y.gray.lab=function(e){return[e[0],0,0]};Y.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};Y.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Kd=Q6;function r_(){const e={},t=Object.keys(Kd);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function a_(e){const t=r_(),n=[e];for(t[e].distance=0;n.length;){const r=n.pop(),a=Object.keys(Kd[r]);for(let l=a.length,i=0;i<l;i++){const o=a[i],s=t[o];s.distance===-1&&(s.distance=t[r].distance+1,s.parent=r,n.unshift(o))}}return t}function l_(e,t){return function(n){return t(e(n))}}function i_(e,t){const n=[t[e].parent,e];let r=Kd[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)n.unshift(t[a].parent),r=l_(Kd[t[a].parent][a],r),a=t[a].parent;return r.conversion=n,r}var o_=function(e){const t=a_(e),n={},r=Object.keys(t);for(let a=r.length,l=0;l<a;l++){const i=r[l];t[i].parent!==null&&(n[i]=i_(i,t))}return n};const im=Q6,s_=o_,Wl={},u_=Object.keys(im);function c_(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function d_(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const a=e(n);if(typeof a=="object")for(let l=a.length,i=0;i<l;i++)a[i]=Math.round(a[i]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}u_.forEach(e=>{Wl[e]={},Object.defineProperty(Wl[e],"channels",{value:im[e].channels}),Object.defineProperty(Wl[e],"labels",{value:im[e].labels});const t=s_(e);Object.keys(t).forEach(n=>{const r=t[n];Wl[e][n]=d_(r),Wl[e][n].raw=c_(r)})});var f_=Wl;const Jl=t_,Yt=f_,I6=["keyword","gray","hex"],om={};for(const e of Object.keys(Yt))om[[...Yt[e].labels].sort().join("")]=e;const Ud={};function at(e,t){if(!(this instanceof at))return new at(e,t);if(t&&t in I6&&(t=null),t&&!(t in Yt))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof at)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const a=Jl.get(e);if(a===null)throw new Error("Unable to parse color from string: "+e);this.model=a.model,r=Yt[this.model].channels,this.color=a.value.slice(0,r),this.valpha=typeof a.value[r]=="number"?a.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=Yt[this.model].channels;const a=Array.prototype.slice.call(e,0,r);this.color=sm(a,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const a=Object.keys(e);"alpha"in e&&(a.splice(a.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const l=a.sort().join("");if(!(l in om))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=om[l];const{labels:i}=Yt[this.model],o=[];for(n=0;n<i.length;n++)o.push(e[i[n]]);this.color=sm(o)}if(Ud[this.model])for(r=Yt[this.model].channels,n=0;n<r;n++){const a=Ud[this.model][n];a&&(this.color[n]=a(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}at.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Jl.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return Jl.to[t.model](n)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return Jl.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Yt[this.model],{labels:n}=Yt[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new at([...this.color.map(p_(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new at([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:Le("rgb",0,Ze(255)),green:Le("rgb",1,Ze(255)),blue:Le("rgb",2,Ze(255)),hue:Le(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:Le("hsl",1,Ze(100)),lightness:Le("hsl",2,Ze(100)),saturationv:Le("hsv",1,Ze(100)),value:Le("hsv",2,Ze(100)),chroma:Le("hcg",1,Ze(100)),gray:Le("hcg",2,Ze(100)),white:Le("hwb",1,Ze(100)),wblack:Le("hwb",2,Ze(100)),cyan:Le("cmyk",0,Ze(100)),magenta:Le("cmyk",1,Ze(100)),yellow:Le("cmyk",2,Ze(100)),black:Le("cmyk",3,Ze(100)),x:Le("xyz",0,Ze(95.047)),y:Le("xyz",1,Ze(100)),z:Le("xyz",2,Ze(108.833)),l:Le("lab",0,Ze(100)),a:Le("lab",1),b:Le("lab",2),keyword(e){return e!==void 0?new at(e):Yt[this.model].keyword(this.color)},hex(e){return e!==void 0?new at(e):Jl.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new at(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Jl.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const a=r/255;t[n]=a<=.04045?a/12.92:((a+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return at.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),a=t===void 0?.5:t,l=2*a-1,i=n.alpha()-r.alpha(),o=((l*i===-1?l:(l+i)/(1+l*i))+1)/2,s=1-o;return at.rgb(o*n.red()+s*r.red(),o*n.green()+s*r.green(),o*n.blue()+s*r.blue(),n.alpha()*a+r.alpha()*(1-a))}};for(const e of Object.keys(Yt)){if(I6.includes(e))continue;const{channels:t}=Yt[e];at.prototype[e]=function(...n){return this.model===e?new at(this):n.length>0?new at(n,e):new at([...m_(Yt[this.model][e].raw(this.color)),this.valpha],e)},at[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=sm(n,t)),new at(r,e)}}function h_(e,t){return Number(e.toFixed(t))}function p_(e){return function(t){return h_(t,e)}}function Le(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(Ud[r]||(Ud[r]=[]))[t]=n;return e=e[0],function(r){let a;return r!==void 0?(n&&(r=n(r)),a=this[e](),a.color[t]=r,a):(a=this[e]().color[t],n&&(a=n(a)),a)}}function Ze(e){return function(t){return Math.max(0,Math.min(e,t))}}function m_(e){return Array.isArray(e)?e:[e]}function sm(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}var g_=at;const ky=p8(g_);var v_=typeof global=="object"&&global&&global.Object===Object&&global,b_=typeof self=="object"&&self&&self.Object===Object&&self,kl=v_||b_||Function("return this")(),Bd=kl.Symbol,X6=Object.prototype,y_=X6.hasOwnProperty,x_=X6.toString,Go=Bd?Bd.toStringTag:void 0;function w_(e){var t=y_.call(e,Go),n=e[Go];try{e[Go]=void 0;var r=!0}catch{}var a=x_.call(e);return r&&(t?e[Go]=n:delete e[Go]),a}var C_=Object.prototype,S_=C_.toString;function E_(e){return S_.call(e)}var M_="[object Null]",O_="[object Undefined]",jy=Bd?Bd.toStringTag:void 0;function Y6(e){return e==null?e===void 0?O_:M_:jy&&jy in Object(e)?w_(e):E_(e)}function Z6(e){return e!=null&&typeof e=="object"}var R_="[object Symbol]";function T_(e){return typeof e=="symbol"||Z6(e)&&Y6(e)==R_}var k_=Array.isArray,j_=/\s/;function D_(e){for(var t=e.length;t--&&j_.test(e.charAt(t)););return t}var N_=/^\s+/;function A_(e){return e&&e.slice(0,D_(e)+1).replace(N_,"")}function Fi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Dy=NaN,L_=/^[-+]0x[0-9a-f]+$/i,__=/^0b[01]+$/i,z_=/^0o[0-7]+$/i,P_=parseInt;function H_(e){if(typeof e=="number")return e;if(T_(e))return Dy;if(Fi(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fi(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=A_(e);var n=__.test(e);return n||z_.test(e)?P_(e.slice(2),n?2:8):L_.test(e)?Dy:+e}var Ny=1/0,K_=17976931348623157e292;function U_(e){if(!e)return e===0?e:0;if(e=H_(e),e===Ny||e===-Ny){var t=e<0?-1:1;return t*K_}return e===e?e:0}function Ay(e){var t=U_(e),n=t%1;return t===t?n?t-n:t:0}function $6(e){return e}var B_="[object AsyncFunction]",q_="[object Function]",F_="[object GeneratorFunction]",V_="[object Proxy]";function G_(e){if(!Fi(e))return!1;var t=Y6(e);return t==q_||t==F_||t==B_||t==V_}var fh=kl["__core-js_shared__"],Ly=function(){var e=/[^.]+$/.exec(fh&&fh.keys&&fh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Q_(e){return!!Ly&&Ly in e}var I_=Function.prototype,X_=I_.toString;function Y_(e){if(e!=null){try{return X_.call(e)}catch{}try{return e+""}catch{}}return""}var Z_=/[\\^$.*+?()[\]{}|]/g,$_=/^\[object .+?Constructor\]$/,W_=Function.prototype,J_=Object.prototype,ez=W_.toString,tz=J_.hasOwnProperty,nz=RegExp("^"+ez.call(tz).replace(Z_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rz(e){if(!Fi(e)||Q_(e))return!1;var t=G_(e)?nz:$_;return t.test(Y_(e))}function az(e,t){return e==null?void 0:e[t]}function W6(e,t){var n=az(e,t);return rz(n)?n:void 0}var _y=W6(kl,"WeakMap"),qd=_y&&new _y,J6=qd?function(e,t){return qd.set(e,t),e}:$6,zy=Object.create,n1=function(){function e(){}return function(t){if(!Fi(t))return{};if(zy)return zy(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function $s(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=n1(e.prototype),r=e.apply(n,t);return Fi(r)?r:n}}var lz=1;function iz(e,t,n){var r=t&lz,a=$s(e);function l(){var i=this&&this!==kl&&this instanceof l?a:e;return i.apply(r?n:this,arguments)}return l}function ex(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var oz=Math.max;function tx(e,t,n,r){for(var a=-1,l=e.length,i=n.length,o=-1,s=t.length,u=oz(l-i,0),f=Array(s+u),c=!r;++o<s;)f[o]=t[o];for(;++a<i;)(c||a<l)&&(f[n[a]]=e[a]);for(;u--;)f[o++]=e[a++];return f}var sz=Math.max;function nx(e,t,n,r){for(var a=-1,l=e.length,i=-1,o=n.length,s=-1,u=t.length,f=sz(l-o,0),c=Array(f+u),d=!r;++a<f;)c[a]=e[a];for(var h=a;++s<u;)c[h+s]=t[s];for(;++i<o;)(d||a<l)&&(c[h+n[i]]=e[a++]);return c}function uz(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function r1(){}var cz=4294967295;function Vi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=cz,this.__views__=[]}Vi.prototype=n1(r1.prototype);Vi.prototype.constructor=Vi;function dz(){}var rx=qd?function(e){return qd.get(e)}:dz,Py={},fz=Object.prototype,hz=fz.hasOwnProperty;function pz(e){for(var t=e.name+"",n=Py[t],r=hz.call(Py,t)?n.length:0;r--;){var a=n[r],l=a.func;if(l==null||l==e)return a.name}return t}function Gi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Gi.prototype=n1(r1.prototype);Gi.prototype.constructor=Gi;function ax(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function mz(e){if(e instanceof Vi)return e.clone();var t=new Gi(e.__wrapped__,e.__chain__);return t.__actions__=ax(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var gz=Object.prototype,vz=gz.hasOwnProperty;function Fd(e){if(Z6(e)&&!k_(e)&&!(e instanceof Vi)){if(e instanceof Gi)return e;if(vz.call(e,"__wrapped__"))return mz(e)}return new Gi(e)}Fd.prototype=r1.prototype;Fd.prototype.constructor=Fd;function bz(e){var t=pz(e),n=Fd[t];if(typeof n!="function"||!(t in Vi.prototype))return!1;if(e===n)return!0;var r=rx(n);return!!r&&e===r[0]}var yz=800,xz=16,wz=Date.now;function lx(e){var t=0,n=0;return function(){var r=wz(),a=xz-(r-n);if(n=r,a>0){if(++t>=yz)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var ix=lx(J6),Cz=/\{\n\/\* \[wrapped with (.+)\] \*/,Sz=/,? & /;function Ez(e){var t=e.match(Cz);return t?t[1].split(Sz):[]}var Mz=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Oz(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Mz,`{
|
|
108
|
+
*/function Ld(e,t){return e?wA(e)?p.createElement(e,t):e:null}function wA(e){return SA(e)||typeof e=="function"||CA(e)}function SA(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function CA(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function kx(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=p.useState(()=>({current:xA(t)})),[r,a]=p.useState(()=>n.current.initialState);return n.current.setOptions(l=>({...l,...e,state:{...r,...e.state},onStateChange:i=>{a(i),e.onStateChange==null||e.onStateChange(i)}})),n.current}const Tx=6048e5,EA=864e5,yy=6e4,xy=525600,di=43200,_d=1440,wy=Symbol.for("constructDateFrom");function kr(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&wy in e?e[wy](t):e instanceof Date?new e.constructor(t):new Date(t)}function ut(e,t){return kr(t||e,e)}let MA={};function ao(){return MA}function Qs(e,t){var n,r,a,l;const i=ao(),o=(t==null?void 0:t.weekStartsOn)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??i.weekStartsOn??((l=(a=i.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??0,s=ut(e,t==null?void 0:t.in),u=s.getDay(),f=(u<o?7:0)+u-o;return s.setDate(s.getDate()-f),s.setHours(0,0,0,0),s}function zd(e,t){return Qs(e,{...t,weekStartsOn:1})}function Dx(e,t){const n=ut(e,void 0),r=n.getFullYear(),a=kr(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const l=zd(a),i=kr(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const o=zd(i);return n.getTime()>=l.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function Hi(e){const t=ut(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function bu(e,...t){const n=kr.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function Sy(e,t){const n=ut(e,void 0);return n.setHours(0,0,0,0),n}function OA(e,t,n){const[r,a]=bu(void 0,e,t),l=Sy(r),i=Sy(a),o=+l-Hi(l),s=+i-Hi(i);return Math.round((o-s)/EA)}function RA(e,t){const n=Dx(e),r=kr(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),zd(r)}function bs(e,t){const n=+ut(e)-+ut(t);return n<0?-1:n>0?1:n}function kA(e){return kr(e,Date.now())}function TA(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function DA(e){return!(!TA(e)&&typeof e!="number"||isNaN(+ut(e)))}function jA(e,t,n){const[r,a]=bu(void 0,e,t),l=r.getFullYear()-a.getFullYear(),i=r.getMonth()-a.getMonth();return l*12+i}function jx(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function NA(e,t){return+ut(e)-+ut(t)}function AA(e,t){const n=ut(e,void 0);return n.setHours(23,59,59,999),n}function LA(e,t){const n=ut(e,void 0),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function _A(e,t){const n=ut(e,void 0);return+AA(n)==+LA(n)}function zA(e,t,n){const[r,a,l]=bu(void 0,e,e,t),i=bs(a,l),o=Math.abs(jA(a,l));if(o<1)return 0;a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-i*o);let s=bs(a,l)===-i;_A(r)&&o===1&&bs(r,l)===1&&(s=!1);const u=i*(o-+s);return u===0?0:u}function PA(e,t,n){const r=NA(e,t)/1e3;return jx(void 0)(r)}function HA(e,t){const n=ut(e,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const KA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},UA=(e,t,n)=>{let r;const a=KA[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function dh(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const BA={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},FA={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},qA={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},VA={date:dh({formats:BA,defaultWidth:"full"}),time:dh({formats:FA,defaultWidth:"full"}),dateTime:dh({formats:qA,defaultWidth:"full"})},GA={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},QA=(e,t,n,r)=>GA[e];function Ko(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{const i=e.defaultWidth,o=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[o]||e.values[i]}const l=e.argumentCallback?e.argumentCallback(t):t;return a[l]}}const IA={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},XA={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},YA={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ZA={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},WA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},$A={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},JA=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},eL={ordinalNumber:JA,era:Ko({values:IA,defaultWidth:"wide"}),quarter:Ko({values:XA,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ko({values:YA,defaultWidth:"wide"}),day:Ko({values:ZA,defaultWidth:"wide"}),dayPeriod:Ko({values:WA,defaultWidth:"wide",formattingValues:$A,defaultFormattingWidth:"wide"})};function Uo(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],l=t.match(a);if(!l)return null;const i=l[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(o)?nL(o,c=>c.test(i)):tL(o,c=>c.test(i));let u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(i.length);return{value:u,rest:f}}}function tL(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function nL(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function rL(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],l=t.match(e.parsePattern);if(!l)return null;let i=e.valueCallback?e.valueCallback(l[0]):l[0];i=n.valueCallback?n.valueCallback(i):i;const o=t.slice(a.length);return{value:i,rest:o}}}const aL=/^(\d+)(th|st|nd|rd)?/i,lL=/\d+/i,iL={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},oL={any:[/^b/i,/^(a|c)/i]},sL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},uL={any:[/1/i,/2/i,/3/i,/4/i]},cL={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},dL={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},fL={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},hL={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},pL={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},mL={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},gL={ordinalNumber:rL({matchPattern:aL,parsePattern:lL,valueCallback:e=>parseInt(e,10)}),era:Uo({matchPatterns:iL,defaultMatchWidth:"wide",parsePatterns:oL,defaultParseWidth:"any"}),quarter:Uo({matchPatterns:sL,defaultMatchWidth:"wide",parsePatterns:uL,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Uo({matchPatterns:cL,defaultMatchWidth:"wide",parsePatterns:dL,defaultParseWidth:"any"}),day:Uo({matchPatterns:fL,defaultMatchWidth:"wide",parsePatterns:hL,defaultParseWidth:"any"}),dayPeriod:Uo({matchPatterns:pL,defaultMatchWidth:"any",parsePatterns:mL,defaultParseWidth:"any"})},Jg={code:"en-US",formatDistance:UA,formatLong:VA,formatRelative:QA,localize:eL,match:gL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function vL(e,t){const n=ut(e,void 0);return OA(n,HA(n))+1}function bL(e,t){const n=ut(e,void 0),r=+zd(n)-+RA(n);return Math.round(r/Tx)+1}function Nx(e,t){var n,r,a,l;const i=ut(e,t==null?void 0:t.in),o=i.getFullYear(),s=ao(),u=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??s.firstWeekContainsDate??((l=(a=s.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??1,f=kr((t==null?void 0:t.in)||e,0);f.setFullYear(o+1,0,u),f.setHours(0,0,0,0);const c=Qs(f,t),d=kr((t==null?void 0:t.in)||e,0);d.setFullYear(o,0,u),d.setHours(0,0,0,0);const h=Qs(d,t);return+i>=+c?o+1:+i>=+h?o:o-1}function yL(e,t){var n,r,a,l;const i=ao(),o=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??i.firstWeekContainsDate??((l=(a=i.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??1,s=Nx(e,t),u=kr((t==null?void 0:t.in)||e,0);return u.setFullYear(s,0,o),u.setHours(0,0,0,0),Qs(u,t)}function xL(e,t){const n=ut(e,t==null?void 0:t.in),r=+Qs(n,t)-+yL(n,t);return Math.round(r/Tx)+1}function ye(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ur={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ye(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ye(n+1,2)},d(e,t){return ye(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ye(e.getHours()%12||12,t.length)},H(e,t){return ye(e.getHours(),t.length)},m(e,t){return ye(e.getMinutes(),t.length)},s(e,t){return ye(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return ye(a,t.length)}},Fl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Cy={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return Ur.y(e,t)},Y:function(e,t,n,r){const a=Nx(e,r),l=a>0?a:1-a;if(t==="YY"){const i=l%100;return ye(i,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):ye(l,t.length)},R:function(e,t){const n=Dx(e);return ye(n,t.length)},u:function(e,t){const n=e.getFullYear();return ye(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ye(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ye(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ur.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ye(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=xL(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):ye(a,t.length)},I:function(e,t,n){const r=bL(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ye(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ur.d(e,t)},D:function(e,t,n){const r=vL(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ye(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),l=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return ye(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),l=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return ye(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return ye(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=Fl.noon:r===0?a=Fl.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=Fl.evening:r>=12?a=Fl.afternoon:r>=4?a=Fl.morning:a=Fl.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ur.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ur.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ye(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ye(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ur.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ur.s(e,t)},S:function(e,t){return Ur.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return My(r);case"XXXX":case"XX":return Wa(r);case"XXXXX":case"XXX":default:return Wa(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return My(r);case"xxxx":case"xx":return Wa(r);case"xxxxx":case"xxx":default:return Wa(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ey(r,":");case"OOOO":default:return"GMT"+Wa(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ey(r,":");case"zzzz":default:return"GMT"+Wa(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return ye(r,t.length)},T:function(e,t,n){return ye(+e,t.length)}};function Ey(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),l=r%60;return l===0?n+String(a):n+String(a)+t+ye(l,2)}function My(e,t){return e%60===0?(e>0?"-":"+")+ye(Math.abs(e)/60,2):Wa(e,t)}function Wa(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=ye(Math.trunc(r/60),2),l=ye(r%60,2);return n+a+t+l}const Oy=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Ax=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},wL=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return Oy(e,t);let l;switch(r){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",Oy(r,t)).replace("{{time}}",Ax(a,t))},SL={p:Ax,P:wL},CL=/^D+$/,EL=/^Y+$/,ML=["D","DD","YY","YYYY"];function OL(e){return CL.test(e)}function RL(e){return EL.test(e)}function kL(e,t,n){const r=TL(e,t,n);if(console.warn(r),ML.includes(e))throw new RangeError(r)}function TL(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const DL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,NL=/^'([^]*?)'?$/,AL=/''/g,LL=/[a-zA-Z]/;function Lx(e,t,n){var r,a,l,i;const o=ao(),s=o.locale??Jg,u=o.firstWeekContainsDate??((a=(r=o.locale)==null?void 0:r.options)==null?void 0:a.firstWeekContainsDate)??1,f=o.weekStartsOn??((i=(l=o.locale)==null?void 0:l.options)==null?void 0:i.weekStartsOn)??0,c=ut(e,void 0);if(!DA(c))throw new RangeError("Invalid time value");let d=t.match(jL).map(m=>{const v=m[0];if(v==="p"||v==="P"){const y=SL[v];return y(m,s.formatLong)}return m}).join("").match(DL).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const v=m[0];if(v==="'")return{isToken:!1,value:_L(m)};if(Cy[v])return{isToken:!0,value:m};if(v.match(LL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:m}});s.localize.preprocessor&&(d=s.localize.preprocessor(c,d));const h={firstWeekContainsDate:u,weekStartsOn:f,locale:s};return d.map(m=>{if(!m.isToken)return m.value;const v=m.value;(RL(v)||OL(v))&&kL(v,t,String(e));const y=Cy[v[0]];return y(c,v,s.localize,h)}).join("")}function _L(e){const t=e.match(NL);return t?t[1].replace(AL,"'"):e}function zL(e,t,n){const r=ao(),a=r.locale??Jg,l=2520,i=bs(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const o=Object.assign({},n,{addSuffix:void 0,comparison:i}),[s,u]=bu(void 0,...i>0?[t,e]:[e,t]),f=PA(u,s),c=(Hi(u)-Hi(s))/1e3,d=Math.round((f-c)/60);let h;if(d<2)return d===0?a.formatDistance("lessThanXMinutes",1,o):a.formatDistance("xMinutes",d,o);if(d<45)return a.formatDistance("xMinutes",d,o);if(d<90)return a.formatDistance("aboutXHours",1,o);if(d<_d){const m=Math.round(d/60);return a.formatDistance("aboutXHours",m,o)}else{if(d<l)return a.formatDistance("xDays",1,o);if(d<di){const m=Math.round(d/_d);return a.formatDistance("xDays",m,o)}else if(d<di*2)return h=Math.round(d/di),a.formatDistance("aboutXMonths",h,o)}if(h=zA(u,s),h<12){const m=Math.round(d/di);return a.formatDistance("xMonths",m,o)}else{const m=h%12,v=Math.trunc(h/12);return m<3?a.formatDistance("aboutXYears",v,o):m<9?a.formatDistance("overXYears",v,o):a.formatDistance("almostXYears",v+1,o)}}function PL(e,t,n){const r=ao(),a=(n==null?void 0:n.locale)??r.locale??Jg,l=bs(e,t);if(isNaN(l))throw new RangeError("Invalid time value");const i=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:l}),[o,s]=bu(n==null?void 0:n.in,...l>0?[t,e]:[e,t]),u=jx((n==null?void 0:n.roundingMethod)??"round"),f=s.getTime()-o.getTime(),c=f/yy,d=Hi(s)-Hi(o),h=(f-d)/yy,m=n==null?void 0:n.unit;let v;if(m?v=m:c<1?v="second":c<60?v="minute":c<_d?v="hour":h<di?v="day":h<xy?v="month":v="year",v==="second"){const y=u(f/1e3);return a.formatDistance("xSeconds",y,i)}else if(v==="minute"){const y=u(c);return a.formatDistance("xMinutes",y,i)}else if(v==="hour"){const y=u(c/60);return a.formatDistance("xHours",y,i)}else if(v==="day"){const y=u(h/_d);return a.formatDistance("xDays",y,i)}else if(v==="month"){const y=u(h/di);return y===12&&m!=="month"?a.formatDistance("xYears",1,i):a.formatDistance("xMonths",y,i)}else{const y=u(h/xy);return a.formatDistance("xYears",y,i)}}function _x(e,t){return zL(e,kA(e),t)}var lm=new Map,fh=new WeakMap,Ry=0,HL=void 0;function KL(e){return e?(fh.has(e)||(Ry+=1,fh.set(e,Ry.toString())),fh.get(e)):"0"}function UL(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?KL(e.root):e[t]}`).toString()}function BL(e){const t=UL(e);let n=lm.get(t);if(!n){const r=new Map;let a;const l=new IntersectionObserver(i=>{i.forEach(o=>{var s;const u=o.isIntersecting&&a.some(f=>o.intersectionRatio>=f);e.trackVisibility&&typeof o.isVisible>"u"&&(o.isVisible=u),(s=r.get(o.target))==null||s.forEach(f=>{f(u,o)})})},e);a=l.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:l,elements:r},lm.set(t,n)}return n}function FL(e,t,n={},r=HL){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:a,observer:l,elements:i}=BL(n),o=i.get(e)||[];return i.has(e)||i.set(e,o),o.push(t),l.observe(e),function(){o.splice(o.indexOf(t),1),o.length===0&&(i.delete(e),l.unobserve(e)),i.size===0&&(l.disconnect(),lm.delete(a))}}function qL({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:a,triggerOnce:l,skip:i,initialInView:o,fallbackInView:s,onChange:u}={}){var f;const[c,d]=p.useState(null),h=p.useRef(u),[m,v]=p.useState({inView:!!o,entry:void 0});h.current=u,p.useEffect(()=>{if(i||!c)return;let x;return x=FL(c,(S,C)=>{v({inView:S,entry:C}),h.current&&h.current(S,C),C.isIntersecting&&l&&x&&(x(),x=void 0)},{root:a,rootMargin:r,threshold:e,trackVisibility:n,delay:t},s),()=>{x&&x()}},[Array.isArray(e)?e.toString():e,c,a,r,l,i,n,s,t]);const y=(f=m.entry)==null?void 0:f.target,b=p.useRef(void 0);!c&&y&&!l&&!i&&b.current!==y&&(b.current=y,v({inView:!!o,entry:void 0}));const g=[d,m.inView,m.entry];return g.ref=g[0],g.inView=g[1],g.entry=g[2],g}var zx=function(e){var t=e.isLastRow,n=e.children,r=e.isSelected,a=e.onClick,l=e.layoutVariant;return w.jsx("div",{onClick:function(i){return a(i)},"aria-label":"button",className:"group grid w-full cursor-pointer p-2 transition-colors duration-150 active:bg-slate-50/25 dark:active:bg-slate-800/25 ".concat(t?"border-b border-slate-200 dark:border-slate-700":""," ").concat(l==="job"?"grid-cols-[auto,350px,576px,1fr]":"grid-cols-[auto,350px,1fr,1fr]"," ").concat(r?"bg-slate-200/50 dark:bg-slate-800/50":"hover:bg-slate-50/50 dark:hover:bg-slate-900"),children:n})},im=30,Is=2e3,om=2,Px=function(){return w.jsxs("div",{children:[w.jsx("div",{className:"rounded-t-md border-b border-slate-200 bg-slate-50 p-2 text-left text-sm font-semibold dark:border-slate-700 dark:bg-slate-800",children:w.jsx("span",{className:"opacity-0",children:"Placeholder"})}),St([],new Array(im),!0).map(function(e,t){return w.jsx("div",{className:zi("p-2",im!==t+1?"border-b border-slate-200 dark:border-slate-700":""),children:w.jsx(Ks,{className:"h-6 w-full"})},t)})]})};function ky(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Hx(...e){return t=>{let n=!1;const r=e.map(a=>{const l=ky(a,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let a=0;a<r.length;a++){const l=r[a];typeof l=="function"?l():ky(e[a],null)}}}}function e1(...e){return p.useCallback(Hx(...e),e)}function VL(e,t=[]){let n=[];function r(l,i){const o=p.createContext(i),s=n.length;n=[...n,i];const u=c=>{var d;const{scope:h,children:m,...v}=c,y=((d=h==null?void 0:h[e])==null?void 0:d[s])||o,b=p.useMemo(()=>v,Object.values(v));return w.jsx(y.Provider,{value:b,children:m})};u.displayName=l+"Provider";function f(c,d){var h;const m=((h=d==null?void 0:d[e])==null?void 0:h[s])||o,v=p.useContext(m);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${l}\``)}return[u,f]}const a=()=>{const l=n.map(i=>p.createContext(i));return function(i){const o=(i==null?void 0:i[e])||l;return p.useMemo(()=>({[`__scope${e}`]:{...i,[e]:o}}),[i,o])}};return a.scopeName=e,[r,GL(a,...t)]}function GL(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const l=r.reduce((i,{useScope:o,scopeName:s})=>{const u=o(a)[`__scope${s}`];return{...i,...u}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function Ty(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}var Pd=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},QL=E2[" useInsertionEffect ".trim().toString()]||Pd;function IL({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,l,i]=XL({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:a;{const f=p.useRef(e!==void 0);p.useEffect(()=>{const c=f.current;c!==o&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=o},[o,r])}const u=p.useCallback(f=>{var c;if(o){const d=YL(f)?f(e):f;d!==e&&((c=i.current)==null||c.call(i,d))}else l(f)},[o,e,l,i]);return[s,u]}function XL({defaultProp:e,onChange:t}){const[n,r]=p.useState(e),a=p.useRef(n),l=p.useRef(t);return QL(()=>{l.current=t},[t]),p.useEffect(()=>{var i;a.current!==n&&((i=l.current)==null||i.call(l,n),a.current=n)},[n,a]),[n,r,l]}function YL(e){return typeof e=="function"}function ZL(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function WL(e){const[t,n]=p.useState(void 0);return Pd(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let i,o;if("borderBoxSize"in l){const s=l.borderBoxSize,u=Array.isArray(s)?s[0]:s;i=u.inlineSize,o=u.blockSize}else i=e.offsetWidth,o=e.offsetHeight;n({width:i,height:o})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function $L(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var Kx=e=>{const{present:t,children:n}=e,r=JL(t),a=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),l=e1(r.ref,e_(a));return typeof n=="function"||r.isPresent?p.cloneElement(a,{ref:l}):null};Kx.displayName="Presence";function JL(e){const[t,n]=p.useState(),r=p.useRef(null),a=p.useRef(e),l=p.useRef("none"),i=e?"mounted":"unmounted",[o,s]=$L(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=dc(r.current);l.current=o==="mounted"?u:"none"},[o]),Pd(()=>{const u=r.current,f=a.current;if(f!==e){const c=l.current,d=dc(u);e?s("MOUNT"):d==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(f&&c!==d?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,s]),Pd(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,c=h=>{const m=dc(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(s("ANIMATION_END"),!a.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},d=h=>{h.target===t&&(l.current=dc(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:p.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function dc(e){return(e==null?void 0:e.animationName)||"none"}function e_(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function t_(e){const t=n_(e),n=p.forwardRef((r,a)=>{const{children:l,...i}=r,o=p.Children.toArray(l),s=o.find(a_);if(s){const u=s.props.children,f=o.map(c=>c===s?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:c);return w.jsx(t,{...i,ref:a,children:p.isValidElement(u)?p.cloneElement(u,void 0,f):null})}return w.jsx(t,{...i,ref:a,children:l})});return n.displayName=`${e}.Slot`,n}function n_(e){const t=p.forwardRef((n,r)=>{const{children:a,...l}=n;if(p.isValidElement(a)){const i=i_(a),o=l_(l,a.props);return a.type!==p.Fragment&&(o.ref=r?Hx(r,i):i),p.cloneElement(a,o)}return p.Children.count(a)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var r_=Symbol("radix.slottable");function a_(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===r_}function l_(e,t){const n={...t};for(const r in t){const a=e[r],l=t[r];/^on[A-Z]/.test(r)?a&&l?n[r]=(...i)=>{const o=l(...i);return a(...i),o}:a&&(n[r]=a):r==="style"?n[r]={...a,...l}:r==="className"&&(n[r]=[a,l].filter(Boolean).join(" "))}return{...e,...n}}function i_(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var o_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],t1=o_.reduce((e,t)=>{const n=t_(`Primitive.${t}`),r=p.forwardRef((a,l)=>{const{asChild:i,...o}=a,s=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(s,{...o,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),_f="Checkbox",[s_]=VL(_f),[u_,n1]=s_(_f);function c_(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:a,disabled:l,form:i,name:o,onCheckedChange:s,required:u,value:f="on",internal_do_not_use_render:c}=e,[d,h]=IL({prop:n,defaultProp:a??!1,onChange:s,caller:_f}),[m,v]=p.useState(null),[y,b]=p.useState(null),g=p.useRef(!1),x=m?!!i||!!m.closest("form"):!0,S={checked:d,disabled:l,setChecked:h,control:m,setControl:v,name:o,form:i,value:f,hasConsumerStoppedPropagationRef:g,required:u,defaultChecked:ha(a)?!1:a,isFormControl:x,bubbleInput:y,setBubbleInput:b};return w.jsx(u_,{scope:t,...S,children:d_(c)?c(S):r})}var Ux="CheckboxTrigger",Bx=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},a)=>{const{control:l,value:i,disabled:o,checked:s,required:u,setControl:f,setChecked:c,hasConsumerStoppedPropagationRef:d,isFormControl:h,bubbleInput:m}=n1(Ux,e),v=e1(a,f),y=p.useRef(s);return p.useEffect(()=>{const b=l==null?void 0:l.form;if(b){const g=()=>c(y.current);return b.addEventListener("reset",g),()=>b.removeEventListener("reset",g)}},[l,c]),w.jsx(t1.button,{type:"button",role:"checkbox","aria-checked":ha(s)?"mixed":s,"aria-required":u,"data-state":Ix(s),"data-disabled":o?"":void 0,disabled:o,value:i,...r,ref:v,onKeyDown:Ty(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:Ty(n,b=>{c(g=>ha(g)?!0:!g),m&&h&&(d.current=b.isPropagationStopped(),d.current||b.stopPropagation())})})});Bx.displayName=Ux;var Fx=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:l,required:i,disabled:o,value:s,onCheckedChange:u,form:f,...c}=e;return w.jsx(c_,{__scopeCheckbox:n,checked:a,defaultChecked:l,disabled:o,required:i,onCheckedChange:u,name:r,form:f,value:s,internal_do_not_use_render:({isFormControl:d})=>w.jsxs(w.Fragment,{children:[w.jsx(Bx,{...c,ref:t,__scopeCheckbox:n}),d&&w.jsx(Qx,{__scopeCheckbox:n})]})})});Fx.displayName=_f;var qx="CheckboxIndicator",Vx=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,l=n1(qx,n);return w.jsx(Kx,{present:r||ha(l.checked)||l.checked===!0,children:w.jsx(t1.span,{"data-state":Ix(l.checked),"data-disabled":l.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});Vx.displayName=qx;var Gx="CheckboxBubbleInput",Qx=p.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:a,checked:l,defaultChecked:i,required:o,disabled:s,name:u,value:f,form:c,bubbleInput:d,setBubbleInput:h}=n1(Gx,e),m=e1(n,h),v=ZL(l),y=WL(r);p.useEffect(()=>{const g=d;if(!g)return;const x=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(x,"checked").set,C=!a.current;if(v!==l&&S){const E=new Event("click",{bubbles:C});g.indeterminate=ha(l),S.call(g,ha(l)?!1:l),g.dispatchEvent(E)}},[d,v,l,a]);const b=p.useRef(ha(l)?!1:l);return w.jsx(t1.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??b.current,required:o,disabled:s,name:u,value:f,form:c,...t,tabIndex:-1,ref:m,style:{...t.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Qx.displayName=Gx;function d_(e){return typeof e=="function"}function ha(e){return e==="indeterminate"}function Ix(e){return ha(e)?"indeterminate":e?"checked":"unchecked"}var Hd=function(e){var t=e.className,n=SM(e,["className"]);return w.jsx(Fx,{className:zi("flex size-4 cursor-pointer rounded-sm border shadow-sm",t,{"border-slate-300 hover:border-slate-500 hover:bg-slate-100 dark:border-slate-600 dark:hover:border-slate-400 dark:hover:bg-slate-800":!n.checked,"border-brand-500 bg-brand-500 text-brand-50 hover:border-brand-600 hover:bg-brand-600":n.checked===!0,"border-slate-500 text-slate-500 hover:border-slate-700 hover:bg-slate-100 dark:border-slate-400 dark:text-slate-400 dark:hover:border-slate-300 dark:hover:bg-slate-800":n.checked==="indeterminate"}),onClick:function(r){return r.stopPropagation()},...n,children:w.jsxs(Vx,{className:"flex size-full items-center justify-center",children:[n.checked==="indeterminate"&&w.jsx(GR,{height:12,width:12}),n.checked===!0&&w.jsx(AR,{height:12,width:12})]})})},Bo=function(e){var t=e.label,n=e.icon;return w.jsxs("div",{className:"flex cursor-default items-center justify-center space-x-1.5 rounded-md bg-slate-100 px-2 py-0.5 text-sm text-slate-900 transition duration-150 ease-in-out dark:bg-slate-800 dark:text-slate-300",children:[n,w.jsx("span",{children:t})]})},r1=function(e){var t=e.children,n=e.message;return w.jsxs(DN,{children:[w.jsx(Vg,{children:t}),w.jsx(jN,{offset:6,className:"rounded-md bg-white px-2 py-1 text-sm text-slate-900 shadow-md dark:bg-slate-800 dark:text-slate-100",children:n})]})},Xx={exports:{}},Yx={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Zx={exports:{}},f_=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},h_=f_,p_=Array.prototype.concat,m_=Array.prototype.slice,Dy=Zx.exports=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var a=e[n];h_(a)?t=p_.call(t,m_.call(a)):t.push(a)}return t};Dy.wrap=function(e){return function(){return e(Dy(arguments))}};var g_=Zx.exports,ys=Yx,yu=g_,Wx=Object.hasOwnProperty,$x=Object.create(null);for(var hh in ys)Wx.call(ys,hh)&&($x[ys[hh]]=hh);var Wt=Xx.exports={to:{},get:{}};Wt.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case"hsl":n=Wt.get.hsl(e),r="hsl";break;case"hwb":n=Wt.get.hwb(e),r="hwb";break;default:n=Wt.get.rgb(e),r="rgb";break}return n?{model:r,value:n}:null};Wt.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,l=/^(\w+)$/,i=[0,0,0,1],o,s,u;if(o=e.match(n)){for(u=o[2],o=o[1],s=0;s<3;s++){var f=s*2;i[s]=parseInt(o.slice(f,f+2),16)}u&&(i[3]=parseInt(u,16)/255)}else if(o=e.match(t)){for(o=o[1],u=o[3],s=0;s<3;s++)i[s]=parseInt(o[s]+o[s],16);u&&(i[3]=parseInt(u+u,16)/255)}else if(o=e.match(r)){for(s=0;s<3;s++)i[s]=parseInt(o[s+1],0);o[4]&&(o[5]?i[3]=parseFloat(o[4])*.01:i[3]=parseFloat(o[4]))}else if(o=e.match(a)){for(s=0;s<3;s++)i[s]=Math.round(parseFloat(o[s+1])*2.55);o[4]&&(o[5]?i[3]=parseFloat(o[4])*.01:i[3]=parseFloat(o[4]))}else return(o=e.match(l))?o[1]==="transparent"?[0,0,0,0]:Wx.call(ys,o[1])?(i=ys[o[1]],i[3]=1,i):null:null;for(s=0;s<3;s++)i[s]=pa(i[s],0,255);return i[3]=pa(i[3],0,1),i};Wt.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,l=pa(parseFloat(n[2]),0,100),i=pa(parseFloat(n[3]),0,100),o=pa(isNaN(r)?1:r,0,1);return[a,l,i,o]}return null};Wt.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,l=pa(parseFloat(n[2]),0,100),i=pa(parseFloat(n[3]),0,100),o=pa(isNaN(r)?1:r,0,1);return[a,l,i,o]}return null};Wt.to.hex=function(){var e=yu(arguments);return"#"+fc(e[0])+fc(e[1])+fc(e[2])+(e[3]<1?fc(Math.round(e[3]*255)):"")};Wt.to.rgb=function(){var e=yu(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};Wt.to.rgb.percent=function(){var e=yu(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"};Wt.to.hsl=function(){var e=yu(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};Wt.to.hwb=function(){var e=yu(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};Wt.to.keyword=function(e){return $x[e.slice(0,3)]};function pa(e,t,n){return Math.min(Math.max(t,e),n)}function fc(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var v_=Xx.exports;const Xs=Yx,Jx={};for(const e of Object.keys(Xs))Jx[Xs[e]]=e;const Z={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var e6=Z;for(const e of Object.keys(Z)){if(!("channels"in Z[e]))throw new Error("missing channels property: "+e);if(!("labels"in Z[e]))throw new Error("missing channel labels property: "+e);if(Z[e].labels.length!==Z[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Z[e];delete Z[e].channels,delete Z[e].labels,Object.defineProperty(Z[e],"channels",{value:t}),Object.defineProperty(Z[e],"labels",{value:n})}Z.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(t,n,r),l=Math.max(t,n,r),i=l-a;let o,s;l===a?o=0:t===l?o=(n-r)/i:n===l?o=2+(r-t)/i:r===l&&(o=4+(t-n)/i),o=Math.min(o*60,360),o<0&&(o+=360);const u=(a+l)/2;return l===a?s=0:u<=.5?s=i/(l+a):s=i/(2-l-a),[o,s*100,u*100]};Z.rgb.hsv=function(e){let t,n,r,a,l;const i=e[0]/255,o=e[1]/255,s=e[2]/255,u=Math.max(i,o,s),f=u-Math.min(i,o,s),c=function(d){return(u-d)/6/f+1/2};return f===0?(a=0,l=0):(l=f/u,t=c(i),n=c(o),r=c(s),i===u?a=r-n:o===u?a=1/3+t-r:s===u&&(a=2/3+n-t),a<0?a+=1:a>1&&(a-=1)),[a*360,l*100,u*100]};Z.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const a=Z.rgb.hsl(e)[0],l=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[a,l*100,r*100]};Z.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(1-t,1-n,1-r),l=(1-t-a)/(1-a)||0,i=(1-n-a)/(1-a)||0,o=(1-r-a)/(1-a)||0;return[l*100,i*100,o*100,a*100]};function b_(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Z.rgb.keyword=function(e){const t=Jx[e];if(t)return t;let n=1/0,r;for(const a of Object.keys(Xs)){const l=Xs[a],i=b_(e,l);i<n&&(n=i,r=a)}return r};Z.keyword.rgb=function(e){return Xs[e]};Z.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const a=t*.4124+n*.3576+r*.1805,l=t*.2126+n*.7152+r*.0722,i=t*.0193+n*.1192+r*.9505;return[a*100,l*100,i*100]};Z.rgb.lab=function(e){const t=Z.rgb.xyz(e);let n=t[0],r=t[1],a=t[2];n/=95.047,r/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;const l=116*r-16,i=500*(n-r),o=200*(r-a);return[l,i,o]};Z.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let a,l,i;if(n===0)return i=r*255,[i,i,i];r<.5?a=r*(1+n):a=r+n-r*n;const o=2*r-a,s=[0,0,0];for(let u=0;u<3;u++)l=t+1/3*-(u-1),l<0&&l++,l>1&&l--,6*l<1?i=o+(a-o)*6*l:2*l<1?i=a:3*l<2?i=o+(a-o)*(2/3-l)*6:i=o,s[u]=i*255;return s};Z.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,a=n;const l=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,a*=l<=1?l:2-l;const i=(r+n)/2,o=r===0?2*a/(l+a):2*n/(r+n);return[t,o*100,i*100]};Z.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const a=Math.floor(t)%6,l=t-Math.floor(t),i=255*r*(1-n),o=255*r*(1-n*l),s=255*r*(1-n*(1-l));switch(r*=255,a){case 0:return[r,s,i];case 1:return[o,r,i];case 2:return[i,r,s];case 3:return[i,o,r];case 4:return[s,i,r];case 5:return[r,i,o]}};Z.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,a=Math.max(r,.01);let l,i;i=(2-n)*r;const o=(2-n)*a;return l=n*a,l/=o<=1?o:2-o,l=l||0,i/=2,[t,l*100,i*100]};Z.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const a=n+r;let l;a>1&&(n/=a,r/=a);const i=Math.floor(6*t),o=1-r;l=6*t-i,i&1&&(l=1-l);const s=n+l*(o-n);let u,f,c;switch(i){default:case 6:case 0:u=o,f=s,c=n;break;case 1:u=s,f=o,c=n;break;case 2:u=n,f=o,c=s;break;case 3:u=n,f=s,c=o;break;case 4:u=s,f=n,c=o;break;case 5:u=o,f=n,c=s;break}return[u*255,f*255,c*255]};Z.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100,l=1-Math.min(1,t*(1-a)+a),i=1-Math.min(1,n*(1-a)+a),o=1-Math.min(1,r*(1-a)+a);return[l*255,i*255,o*255]};Z.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let a,l,i;return a=t*3.2406+n*-1.5372+r*-.4986,l=t*-.9689+n*1.8758+r*.0415,i=t*.0557+n*-.204+r*1.057,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),i=Math.min(Math.max(0,i),1),[a*255,l*255,i*255]};Z.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const a=116*n-16,l=500*(t-n),i=200*(n-r);return[a,l,i]};Z.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let a,l,i;l=(t+16)/116,a=n/500+l,i=l-r/200;const o=l**3,s=a**3,u=i**3;return l=o>.008856?o:(l-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a*=95.047,l*=100,i*=108.883,[a,l,i]};Z.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let a;a=Math.atan2(r,n)*360/2/Math.PI,a<0&&(a+=360);const l=Math.sqrt(n*n+r*r);return[t,l,a]};Z.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI,a=n*Math.cos(r),l=n*Math.sin(r);return[t,a,l]};Z.rgb.ansi16=function(e,t=null){const[n,r,a]=e;let l=t===null?Z.rgb.hsv(e)[2]:t;if(l=Math.round(l/50),l===0)return 30;let i=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return l===2&&(i+=60),i};Z.hsv.ansi16=function(e){return Z.rgb.ansi16(Z.hsv.rgb(e),e[2])};Z.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};Z.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,a=(t>>1&1)*n*255,l=(t>>2&1)*n*255;return[r,a,l]};Z.ansi256.rgb=function(e){if(e>=232){const l=(e-232)*10+8;return[l,l,l]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,a=t%6/5*255;return[n,r,a]};Z.rgb.hex=function(e){const t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};Z.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(o=>o+o).join(""));const r=parseInt(n,16),a=r>>16&255,l=r>>8&255,i=r&255;return[a,l,i]};Z.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.max(Math.max(t,n),r),l=Math.min(Math.min(t,n),r),i=a-l;let o,s;return i<1?o=l/(1-i):o=0,i<=0?s=0:a===t?s=(n-r)/i%6:a===n?s=2+(r-t)/i:s=4+(t-n)/i,s/=6,s%=1,[s*360,i*100,o*100]};Z.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let a=0;return r<1&&(a=(n-.5*r)/(1-r)),[e[0],r*100,a*100]};Z.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],r*100,a*100]};Z.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const a=[0,0,0],l=t%1*6,i=l%1,o=1-i;let s=0;switch(Math.floor(l)){case 0:a[0]=1,a[1]=i,a[2]=0;break;case 1:a[0]=o,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=i;break;case 3:a[0]=0,a[1]=o,a[2]=1;break;case 4:a[0]=i,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=o}return s=(1-n)*r,[(n*a[0]+s)*255,(n*a[1]+s)*255,(n*a[2]+s)*255]};Z.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let a=0;return r>0&&(a=t/r),[e[0],a*100,r*100]};Z.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]};Z.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};Z.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],r*100,a*100]};Z.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Z.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Z.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Z.gray.hsl=function(e){return[0,0,e[0]]};Z.gray.hsv=Z.gray.hsl;Z.gray.hwb=function(e){return[0,100,e[0]]};Z.gray.cmyk=function(e){return[0,0,0,e[0]]};Z.gray.lab=function(e){return[e[0],0,0]};Z.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};Z.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Kd=e6;function y_(){const e={},t=Object.keys(Kd);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function x_(e){const t=y_(),n=[e];for(t[e].distance=0;n.length;){const r=n.pop(),a=Object.keys(Kd[r]);for(let l=a.length,i=0;i<l;i++){const o=a[i],s=t[o];s.distance===-1&&(s.distance=t[r].distance+1,s.parent=r,n.unshift(o))}}return t}function w_(e,t){return function(n){return t(e(n))}}function S_(e,t){const n=[t[e].parent,e];let r=Kd[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)n.unshift(t[a].parent),r=w_(Kd[t[a].parent][a],r),a=t[a].parent;return r.conversion=n,r}var C_=function(e){const t=x_(e),n={},r=Object.keys(t);for(let a=r.length,l=0;l<a;l++){const i=r[l];t[i].parent!==null&&(n[i]=S_(i,t))}return n};const sm=e6,E_=C_,Yl={},M_=Object.keys(sm);function O_(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function R_(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const a=e(n);if(typeof a=="object")for(let l=a.length,i=0;i<l;i++)a[i]=Math.round(a[i]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}M_.forEach(e=>{Yl[e]={},Object.defineProperty(Yl[e],"channels",{value:sm[e].channels}),Object.defineProperty(Yl[e],"labels",{value:sm[e].labels});const t=E_(e);Object.keys(t).forEach(n=>{const r=t[n];Yl[e][n]=R_(r),Yl[e][n].raw=O_(r)})});var k_=Yl;const Zl=v_,Xt=k_,t6=["keyword","gray","hex"],um={};for(const e of Object.keys(Xt))um[[...Xt[e].labels].sort().join("")]=e;const Ud={};function lt(e,t){if(!(this instanceof lt))return new lt(e,t);if(t&&t in t6&&(t=null),t&&!(t in Xt))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof lt)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const a=Zl.get(e);if(a===null)throw new Error("Unable to parse color from string: "+e);this.model=a.model,r=Xt[this.model].channels,this.color=a.value.slice(0,r),this.valpha=typeof a.value[r]=="number"?a.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=Xt[this.model].channels;const a=Array.prototype.slice.call(e,0,r);this.color=cm(a,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const a=Object.keys(e);"alpha"in e&&(a.splice(a.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const l=a.sort().join("");if(!(l in um))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=um[l];const{labels:i}=Xt[this.model],o=[];for(n=0;n<i.length;n++)o.push(e[i[n]]);this.color=cm(o)}if(Ud[this.model])for(r=Xt[this.model].channels,n=0;n<r;n++){const a=Ud[this.model][n];a&&(this.color[n]=a(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}lt.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Zl.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return Zl.to[t.model](n)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return Zl.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Xt[this.model],{labels:n}=Xt[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new lt([...this.color.map(D_(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new lt([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:ze("rgb",0,Je(255)),green:ze("rgb",1,Je(255)),blue:ze("rgb",2,Je(255)),hue:ze(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:ze("hsl",1,Je(100)),lightness:ze("hsl",2,Je(100)),saturationv:ze("hsv",1,Je(100)),value:ze("hsv",2,Je(100)),chroma:ze("hcg",1,Je(100)),gray:ze("hcg",2,Je(100)),white:ze("hwb",1,Je(100)),wblack:ze("hwb",2,Je(100)),cyan:ze("cmyk",0,Je(100)),magenta:ze("cmyk",1,Je(100)),yellow:ze("cmyk",2,Je(100)),black:ze("cmyk",3,Je(100)),x:ze("xyz",0,Je(95.047)),y:ze("xyz",1,Je(100)),z:ze("xyz",2,Je(108.833)),l:ze("lab",0,Je(100)),a:ze("lab",1),b:ze("lab",2),keyword(e){return e!==void 0?new lt(e):Xt[this.model].keyword(this.color)},hex(e){return e!==void 0?new lt(e):Zl.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new lt(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Zl.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const a=r/255;t[n]=a<=.04045?a/12.92:((a+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return lt.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),a=t===void 0?.5:t,l=2*a-1,i=n.alpha()-r.alpha(),o=((l*i===-1?l:(l+i)/(1+l*i))+1)/2,s=1-o;return lt.rgb(o*n.red()+s*r.red(),o*n.green()+s*r.green(),o*n.blue()+s*r.blue(),n.alpha()*a+r.alpha()*(1-a))}};for(const e of Object.keys(Xt)){if(t6.includes(e))continue;const{channels:t}=Xt[e];lt.prototype[e]=function(...n){return this.model===e?new lt(this):n.length>0?new lt(n,e):new lt([...j_(Xt[this.model][e].raw(this.color)),this.valpha],e)},lt[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=cm(n,t)),new lt(r,e)}}function T_(e,t){return Number(e.toFixed(t))}function D_(e){return function(t){return T_(t,e)}}function ze(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(Ud[r]||(Ud[r]=[]))[t]=n;return e=e[0],function(r){let a;return r!==void 0?(n&&(r=n(r)),a=this[e](),a.color[t]=r,a):(a=this[e]().color[t],n&&(a=n(a)),a)}}function Je(e){return function(t){return Math.max(0,Math.min(e,t))}}function j_(e){return Array.isArray(e)?e:[e]}function cm(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}var N_=lt;const jy=g8(N_);var A_=typeof global=="object"&&global&&global.Object===Object&&global,L_=typeof self=="object"&&self&&self.Object===Object&&self,Ml=A_||L_||Function("return this")(),Bd=Ml.Symbol,n6=Object.prototype,__=n6.hasOwnProperty,z_=n6.toString,Fo=Bd?Bd.toStringTag:void 0;function P_(e){var t=__.call(e,Fo),n=e[Fo];try{e[Fo]=void 0;var r=!0}catch{}var a=z_.call(e);return r&&(t?e[Fo]=n:delete e[Fo]),a}var H_=Object.prototype,K_=H_.toString;function U_(e){return K_.call(e)}var B_="[object Null]",F_="[object Undefined]",Ny=Bd?Bd.toStringTag:void 0;function r6(e){return e==null?e===void 0?F_:B_:Ny&&Ny in Object(e)?P_(e):U_(e)}function a6(e){return e!=null&&typeof e=="object"}var q_="[object Symbol]";function V_(e){return typeof e=="symbol"||a6(e)&&r6(e)==q_}var G_=Array.isArray,Q_=/\s/;function I_(e){for(var t=e.length;t--&&Q_.test(e.charAt(t)););return t}var X_=/^\s+/;function Y_(e){return e&&e.slice(0,I_(e)+1).replace(X_,"")}function Ki(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ay=NaN,Z_=/^[-+]0x[0-9a-f]+$/i,W_=/^0b[01]+$/i,$_=/^0o[0-7]+$/i,J_=parseInt;function ez(e){if(typeof e=="number")return e;if(V_(e))return Ay;if(Ki(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ki(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Y_(e);var n=W_.test(e);return n||$_.test(e)?J_(e.slice(2),n?2:8):Z_.test(e)?Ay:+e}var Ly=1/0,tz=17976931348623157e292;function nz(e){if(!e)return e===0?e:0;if(e=ez(e),e===Ly||e===-Ly){var t=e<0?-1:1;return t*tz}return e===e?e:0}function _y(e){var t=nz(e),n=t%1;return t===t?n?t-n:t:0}function l6(e){return e}var rz="[object AsyncFunction]",az="[object Function]",lz="[object GeneratorFunction]",iz="[object Proxy]";function oz(e){if(!Ki(e))return!1;var t=r6(e);return t==az||t==lz||t==rz||t==iz}var ph=Ml["__core-js_shared__"],zy=function(){var e=/[^.]+$/.exec(ph&&ph.keys&&ph.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sz(e){return!!zy&&zy in e}var uz=Function.prototype,cz=uz.toString;function dz(e){if(e!=null){try{return cz.call(e)}catch{}try{return e+""}catch{}}return""}var fz=/[\\^$.*+?()[\]{}|]/g,hz=/^\[object .+?Constructor\]$/,pz=Function.prototype,mz=Object.prototype,gz=pz.toString,vz=mz.hasOwnProperty,bz=RegExp("^"+gz.call(vz).replace(fz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yz(e){if(!Ki(e)||sz(e))return!1;var t=oz(e)?bz:hz;return t.test(dz(e))}function xz(e,t){return e==null?void 0:e[t]}function i6(e,t){var n=xz(e,t);return yz(n)?n:void 0}var Py=i6(Ml,"WeakMap"),Fd=Py&&new Py,o6=Fd?function(e,t){return Fd.set(e,t),e}:l6,Hy=Object.create,a1=function(){function e(){}return function(t){if(!Ki(t))return{};if(Hy)return Hy(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ys(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=a1(e.prototype),r=e.apply(n,t);return Ki(r)?r:n}}var wz=1;function Sz(e,t,n){var r=t&wz,a=Ys(e);function l(){var i=this&&this!==Ml&&this instanceof l?a:e;return i.apply(r?n:this,arguments)}return l}function s6(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Cz=Math.max;function u6(e,t,n,r){for(var a=-1,l=e.length,i=n.length,o=-1,s=t.length,u=Cz(l-i,0),f=Array(s+u),c=!r;++o<s;)f[o]=t[o];for(;++a<i;)(c||a<l)&&(f[n[a]]=e[a]);for(;u--;)f[o++]=e[a++];return f}var Ez=Math.max;function c6(e,t,n,r){for(var a=-1,l=e.length,i=-1,o=n.length,s=-1,u=t.length,f=Ez(l-o,0),c=Array(f+u),d=!r;++a<f;)c[a]=e[a];for(var h=a;++s<u;)c[h+s]=t[s];for(;++i<o;)(d||a<l)&&(c[h+n[i]]=e[a++]);return c}function Mz(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function l1(){}var Oz=4294967295;function Ui(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Oz,this.__views__=[]}Ui.prototype=a1(l1.prototype);Ui.prototype.constructor=Ui;function Rz(){}var d6=Fd?function(e){return Fd.get(e)}:Rz,Ky={},kz=Object.prototype,Tz=kz.hasOwnProperty;function Dz(e){for(var t=e.name+"",n=Ky[t],r=Tz.call(Ky,t)?n.length:0;r--;){var a=n[r],l=a.func;if(l==null||l==e)return a.name}return t}function Bi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Bi.prototype=a1(l1.prototype);Bi.prototype.constructor=Bi;function f6(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function jz(e){if(e instanceof Ui)return e.clone();var t=new Bi(e.__wrapped__,e.__chain__);return t.__actions__=f6(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Nz=Object.prototype,Az=Nz.hasOwnProperty;function qd(e){if(a6(e)&&!G_(e)&&!(e instanceof Ui)){if(e instanceof Bi)return e;if(Az.call(e,"__wrapped__"))return jz(e)}return new Bi(e)}qd.prototype=l1.prototype;qd.prototype.constructor=qd;function Lz(e){var t=Dz(e),n=qd[t];if(typeof n!="function"||!(t in Ui.prototype))return!1;if(e===n)return!0;var r=d6(n);return!!r&&e===r[0]}var _z=800,zz=16,Pz=Date.now;function h6(e){var t=0,n=0;return function(){var r=Pz(),a=zz-(r-n);if(n=r,a>0){if(++t>=_z)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var p6=h6(o6),Hz=/\{\n\/\* \[wrapped with (.+)\] \*/,Kz=/,? & /;function Uz(e){var t=e.match(Hz);return t?t[1].split(Kz):[]}var Bz=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Fz(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Bz,`{
|
|
109
109
|
/* [wrapped with `+t+`] */
|
|
110
|
-
`)}function Rz(e){return function(){return e}}var Hy=function(){try{var e=W6(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Tz=Hy?function(e,t){return Hy(e,"toString",{configurable:!0,enumerable:!1,value:Rz(t),writable:!0})}:$6,kz=lx(Tz);function jz(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function Dz(e,t,n,r){for(var a=e.length,l=n+-1;++l<a;)if(t(e[l],l,e))return l;return-1}function Nz(e){return e!==e}function Az(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function Lz(e,t,n){return t===t?Az(e,t,n):Dz(e,Nz,n)}function _z(e,t){var n=e==null?0:e.length;return!!n&&Lz(e,t,0)>-1}var zz=1,Pz=2,Hz=8,Kz=16,Uz=32,Bz=64,qz=128,Fz=256,Vz=512,Gz=[["ary",qz],["bind",zz],["bindKey",Pz],["curry",Hz],["curryRight",Kz],["flip",Vz],["partial",Uz],["partialRight",Bz],["rearg",Fz]];function Qz(e,t){return jz(Gz,function(n){var r="_."+n[0];t&n[1]&&!_z(e,r)&&e.push(r)}),e.sort()}function ox(e,t,n){var r=t+"";return kz(e,Oz(r,Qz(Ez(r),n)))}var Iz=4,Xz=8,Ky=32,Uy=64;function sx(e,t,n,r,a,l,i,o,s,u){var f=t&Xz,c=f?i:void 0,d=f?void 0:i,h=f?l:void 0,m=f?void 0:l;t|=f?Ky:Uy,t&=~(f?Uy:Ky),t&Iz||(t&=-4);var b=[e,t,a,h,c,m,d,o,s,u],y=n.apply(void 0,b);return bz(e)&&ix(y,b),y.placeholder=r,ox(y,e,t)}function ux(e){var t=e;return t.placeholder}var Yz=9007199254740991,Zz=/^(?:0|[1-9]\d*)$/;function $z(e,t){var n=typeof e;return t=t??Yz,!!t&&(n=="number"||n!="symbol"&&Zz.test(e))&&e>-1&&e%1==0&&e<t}var Wz=Math.min;function Jz(e,t){for(var n=e.length,r=Wz(t.length,n),a=ax(e);r--;){var l=t[r];e[r]=$z(l,n)?a[l]:void 0}return e}var By="__lodash_placeholder__";function Vd(e,t){for(var n=-1,r=e.length,a=0,l=[];++n<r;){var i=e[n];(i===t||i===By)&&(e[n]=By,l[a++]=n)}return l}var eP=1,tP=2,nP=8,rP=16,aP=128,lP=512;function a1(e,t,n,r,a,l,i,o,s,u){var f=t&aP,c=t&eP,d=t&tP,h=t&(nP|rP),m=t&lP,b=d?void 0:$s(e);function y(){for(var v=arguments.length,g=Array(v),x=v;x--;)g[x]=arguments[x];if(h)var C=ux(y),E=uz(g,C);if(r&&(g=tx(g,r,a,h)),l&&(g=nx(g,l,i,h)),v-=E,h&&v<u){var S=Vd(g,C);return sx(e,t,a1,y.placeholder,n,g,S,o,s,u-v)}var M=c?n:this,A=d?M[e]:e;return v=g.length,o?g=Jz(g,o):m&&v>1&&g.reverse(),f&&s<v&&(g.length=s),this&&this!==kl&&this instanceof y&&(A=b||$s(A)),A.apply(M,g)}return y}function iP(e,t,n){var r=$s(e);function a(){for(var l=arguments.length,i=Array(l),o=l,s=ux(a);o--;)i[o]=arguments[o];var u=l<3&&i[0]!==s&&i[l-1]!==s?[]:Vd(i,s);if(l-=u.length,l<n)return sx(e,t,a1,a.placeholder,void 0,i,u,void 0,void 0,n-l);var f=this&&this!==kl&&this instanceof a?r:e;return ex(f,this,i)}return a}var oP=1;function sP(e,t,n,r){var a=t&oP,l=$s(e);function i(){for(var o=-1,s=arguments.length,u=-1,f=r.length,c=Array(f+s),d=this&&this!==kl&&this instanceof i?l:e;++u<f;)c[u]=r[u];for(;s--;)c[u++]=arguments[++o];return ex(d,a?n:this,c)}return i}var qy="__lodash_placeholder__",hh=1,uP=2,cP=4,Fy=8,Qo=128,Vy=256,dP=Math.min;function fP(e,t){var n=e[1],r=t[1],a=n|r,l=a<(hh|uP|Qo),i=r==Qo&&n==Fy||r==Qo&&n==Vy&&e[7].length<=t[8]||r==(Qo|Vy)&&t[7].length<=t[8]&&n==Fy;if(!(l||i))return e;r&hh&&(e[2]=t[2],a|=n&hh?0:cP);var o=t[3];if(o){var s=e[3];e[3]=s?tx(s,o,t[4]):o,e[4]=s?Vd(e[3],qy):t[4]}return o=t[5],o&&(s=e[5],e[5]=s?nx(s,o,t[6]):o,e[6]=s?Vd(e[5],qy):t[6]),o=t[7],o&&(e[7]=o),r&Qo&&(e[8]=e[8]==null?t[8]:dP(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}var hP="Expected a function",Gy=1,pP=2,Qy=8,Iy=16,Xy=32,mP=64,Yy=Math.max;function gP(e,t,n,r,a,l,i,o){var s=t&pP;if(!s&&typeof e!="function")throw new TypeError(hP);var u=r?r.length:0;if(u||(t&=-97,r=a=void 0),i=i===void 0?i:Yy(Ay(i),0),o=o===void 0?o:Ay(o),u-=a?a.length:0,t&mP){var f=r,c=a;r=a=void 0}var d=s?void 0:rx(e),h=[e,t,n,r,a,f,c,l,i,o];if(d&&fP(h,d),e=h[0],t=h[1],n=h[2],r=h[3],a=h[4],o=h[9]=h[9]===void 0?s?0:e.length:Yy(h[9]-u,0),!o&&t&(Qy|Iy)&&(t&=-25),!t||t==Gy)var m=iz(e,t,n);else t==Qy||t==Iy?m=iP(e,t,o):(t==Xy||t==(Gy|Xy))&&!a.length?m=sP(e,t,n,r):m=a1.apply(void 0,h);var b=d?J6:ix;return ox(b(m,h),e,t)}var vP=8;function Gd(e,t,n){t=n?void 0:t;var r=gP(e,vP,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=Gd.placeholder,r}Gd.placeholder={};function bP(e){const t=e[0],n=e[1],r=e[2];let a,l,i;return a=t*1+n*0+r*1.13983,l=t*1+n*-.39465+r*-.5806,i=t*1+n*2.02311+r*0,a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),i=Math.min(Math.max(0,i),1),[a*255,l*255,i*255]}function yP(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=t*.299+n*.587+r*.114,l=t*-.14713+n*-.28886+r*.436,i=t*.615+n*-.51499+r*-.10001;return[a,l,i]}const xP={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},wP={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},CP={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},SP={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},EP={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},MP={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},OP={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},RP={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},TP={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},kP={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},jP={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},DP={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},NP={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},AP={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},LP={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},_P={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},zP={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},PP={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},HP={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},KP={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},UP={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},BP={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},qP={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},FP={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},VP={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},GP={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},QP={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},IP={scheme:"nicinabox",author:"nicinabox (http://github.com/nicinabox)",base00:"#2A2F3A",base01:"#3C444F",base02:"#4F5A65",base03:"#BEBEBE",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#FFFFFF",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#FC6D24",base0A:"#ddb26f",base0B:"#A1C659",base0C:"#12cfc0",base0D:"#6FB3D2",base0E:"#D381C3",base0F:"#deaf8f"},XP={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},YP={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},ZP={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},$P={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},WP={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},JP={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},eH={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},tH={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},nH={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},rH={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},cx={threezerotwofour:xP,apathy:wP,ashes:CP,atelierDune:SP,atelierForest:EP,atelierHeath:MP,atelierLakeside:OP,atelierSeaside:RP,bespin:TP,brewer:kP,bright:jP,chalk:DP,codeschool:NP,colors:AP,default:LP,eighties:_P,embers:zP,flat:PP,google:HP,grayscale:KP,greenscreen:UP,harmonic:BP,hopscotch:qP,isotope:FP,marrakesh:VP,mocha:GP,monokai:QP,nicinabox:IP,ocean:XP,paraiso:YP,pop:ZP,railscasts:$P,shapeshifter:WP,solarized:JP,summerfruit:eH,tomorrow:tH,tube:nH,twilight:rH},dx=cx.default,Zy=Object.keys(dx),aH=e=>e<.25?1:e<.5?.9-e:1.1-e,lH=e=>{const t=ky(e),[n,r,a]=yP(t.array()),l=[aH(n),r,a],i=bP(l);return ky.rgb(i).hex()},Ql=e=>t=>({className:[t.className,e.className].filter(Boolean).join(" "),style:{...t.style||{},...e.style||{}}}),iH=(e,t)=>{if(e===void 0)return t;if(t===void 0)return e;const n=typeof e,r=typeof t;switch(n){case"string":switch(r){case"string":return[t,e].filter(Boolean).join(" ");case"object":return Ql({className:e,style:t});case"function":return(a,...l)=>Ql({className:e})(t(a,...l))}break;case"object":switch(r){case"string":return Ql({className:t,style:e});case"object":return{...t,...e};case"function":return(a,...l)=>Ql({style:e})(t(a,...l))}break;case"function":switch(r){case"string":return(a,...l)=>e(Ql(a)({className:t}),...l);case"object":return(a,...l)=>e(Ql(a)({style:t}),...l);case"function":return(a,...l)=>e(t(a,...l),...l)}}},oH=(e,t)=>{const n=Object.keys(t);for(const r in e)n.indexOf(r)===-1&&n.push(r);return n.reduce((r,a)=>(r[a]=iH(e[a],t[a]),r),{})},sH=(e,t,...n)=>{if(t===null)return e;Array.isArray(t)||(t=[t]);const r=t.map(a=>e[a]).filter(Boolean).reduce((a,l)=>(typeof l=="string"?a.className=[a.className,l].filter(Boolean).join(" "):typeof l=="object"?a.style={...a.style,...l}:typeof l=="function"&&(a={...a,...l(a,...n)}),a),{className:"",style:{}});return r.className||delete r.className,Object.keys(r.style).length===0&&delete r.style,r},um=e=>Object.keys(e).reduce((t,n)=>(t[n]=/^base/.test(n)?lH(e[n]):n==="scheme"?e[n]+":inverted":e[n],t),{}),uH=Gd((e,t={},n={},...r)=>{const{defaultBase16:a=dx,base16Themes:l=null}=t,i=cH(n,l);i&&(n={...i,...n});const o=Zy.reduce((c,d)=>(c[d]=n[d]||a[d],c),{}),s=Object.keys(n).reduce((c,d)=>(Zy.indexOf(d)===-1&&(c[d]=n[d]),c),{}),u=e(o),f=oH(s,u);return Gd(sH,2)(f,...r)},3),fx=e=>!!e.extend,cH=(e,t)=>{if(e&&fx(e)&&e.extend&&(e=e.extend),typeof e=="string"){const[n,r]=e.split(":");t?e=t[n]:e=cx[n],r==="inverted"&&(e=um(e))}return e&&Object.prototype.hasOwnProperty.call(e,"base00")?e:void 0},dH=e=>typeof e=="string"?`${e}:inverted`:e&&fx(e)&&e.extend?typeof e.extend=="string"?{...e,extend:`${e.extend}:inverted`}:{...e,extend:um(e.extend)}:e&&um(e);function fH(e){const t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&typeof e[Symbol.iterator]=="function"?"Iterable":t==="Custom"&&e.constructor!==Object&&e instanceof Object?"Object":t}function hx({styling:e,arrowStyle:t="single",expanded:n,nodeType:r,onClick:a}){return O.createElement("div",{...e("arrowContainer",t),onClick:a},O.createElement("div",{...e(["arrow","arrowSign"],r,n,t)},"▶",t==="double"&&O.createElement("div",{...e(["arrowSign","arrowSignInner"])},"▶")))}function hH(e,t){return e==="Object"?Object.keys(t).length:e==="Array"?t.length:1/0}function pH(e){return typeof e.set=="function"}function mH(e,t,n,r=0,a=1/0){let l;if(e==="Object"){let i=Object.getOwnPropertyNames(t);n&&i.sort(n===!0?void 0:n),i=i.slice(r,a+1),l={entries:i.map(o=>({key:o,value:t[o]}))}}else if(e==="Array")l={entries:t.slice(r,a+1).map((i,o)=>({key:o+r,value:i}))};else{let i=0;const o=[];let s=!0;const u=pH(t);for(const f of t){if(i>a){s=!1;break}r<=i&&(u&&Array.isArray(f)?typeof f[0]=="string"||typeof f[0]=="number"?o.push({key:f[0],value:f[1]}):o.push({key:`[entry ${i}]`,value:{"[key]":f[0],"[value]":f[1]}}):o.push({key:i,value:f})),i++}l={hasMore:!s,entries:o}}return l}function ph(e,t,n){const r=[];for(;t-e>n*n;)n=n*n;for(let a=e;a<=t;a+=n)r.push({from:a,to:Math.min(t,a+n-1)});return r}function gH(e,t,n,r,a=0,l=1/0){const i=mH.bind(null,e,t,n);if(!r)return i().entries;const o=l<1/0,s=Math.min(l-a,hH(e,t));if(e!=="Iterable"){if(s<=r||r<7)return i(a,l).entries}else if(s<=r&&!o)return i(a,l).entries;let u;if(e==="Iterable"){const{hasMore:f,entries:c}=i(a,a+r-1);u=f?[...c,...ph(a+r,a+2*r-1,r)]:c}else u=o?ph(a,l,r):[...i(0,r-5).entries,...ph(r-4,s-5,r),...i(s-4,s-1).entries];return u}function vH(e){const{styling:t,from:n,to:r,renderChildNodes:a,nodeType:l}=e,[i,o]=p.useState(!1),s=p.useCallback(()=>{o(!i)},[i]);return i?O.createElement("div",{...t("itemRange",i)},a(e,n,r)):O.createElement("div",{...t("itemRange",i),onClick:s},O.createElement(hx,{nodeType:l,styling:t,expanded:!1,onClick:s,arrowStyle:"double"}),`${n} ... ${r}`)}function bH(e){return e.to!==void 0}function px(e,t,n){const{nodeType:r,data:a,collectionLimit:l,circularCache:i,keyPath:o,postprocessValue:s,sortObjectKeys:u}=e,f=[];return gH(r,a,u,l,t,n).forEach(c=>{if(bH(c))f.push(O.createElement(vH,{...e,key:`ItemRange--${c.from}-${c.to}`,from:c.from,to:c.to,renderChildNodes:px}));else{const{key:d,value:h}=c,m=i.includes(h);f.push(O.createElement(mx,{...e,postprocessValue:s,collectionLimit:l,key:`Node--${d}`,keyPath:[d,...o],value:s(h),circularCache:[...i,h],isCircular:m,hideRoot:!1}))}}),f}function l1(e){const{circularCache:t=[],collectionLimit:n,createItemString:r,data:a,expandable:l,getItemString:i,hideRoot:o,isCircular:s,keyPath:u,labelRenderer:f,level:c=0,nodeType:d,nodeTypeIndicator:h,shouldExpandNodeInitially:m,styling:b}=e,[y,v]=p.useState(s?!1:m(u,a,c)),g=p.useCallback(()=>{l&&v(!y)},[l,y]),x=y||o&&c===0?px({...e,circularCache:t,level:c+1}):null,C=O.createElement("span",{...b("nestedNodeItemType",y)},h),E=i(d,a,C,r(a,n),u),S=[u,d,y,l];return o?O.createElement("li",{...b("rootNode",...S)},O.createElement("ul",{...b("rootNodeChildren",...S)},x)):O.createElement("li",{...b("nestedNode",...S)},l&&O.createElement(hx,{styling:b,nodeType:d,expanded:y,onClick:g}),O.createElement("label",{...b(["label","nestedNodeLabel"],...S),onClick:g},f(...S)),O.createElement("span",{...b("nestedNodeItemString",...S),onClick:g},E),O.createElement("ul",{...b("nestedNodeChildren",...S)},x))}function yH(e){const t=Object.getOwnPropertyNames(e).length;return`${t} ${t!==1?"keys":"key"}`}function xH({data:e,...t}){return O.createElement(l1,{...t,data:e,nodeType:"Object",nodeTypeIndicator:t.nodeType==="Error"?"Error()":"{}",createItemString:yH,expandable:Object.getOwnPropertyNames(e).length>0})}function wH(e){return`${e.length} ${e.length!==1?"items":"item"}`}function CH({data:e,...t}){return O.createElement(l1,{...t,data:e,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:wH,expandable:e.length>0})}function SH(e,t){let n=0,r=!1;if(Number.isSafeInteger(e.size))n=e.size;else for(const a of e){if(t&&n+1>t){r=!0;break}n+=1}return`${r?">":""}${n} ${n!==1?"entries":"entry"}`}function EH(e){return O.createElement(l1,{...e,nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:SH,expandable:!0})}function pr({nodeType:e,styling:t,labelRenderer:n,keyPath:r,valueRenderer:a,value:l,valueGetter:i=o=>o}){return O.createElement("li",{...t("value",e,r)},O.createElement("label",{...t(["label","valueLabel"],e,r)},n(r,e,!1,!1)),O.createElement("span",{...t("valueText",e,r)},a(i(l),l,...r)))}function mx({getItemString:e,keyPath:t,labelRenderer:n,styling:r,value:a,valueRenderer:l,isCustomNode:i,...o}){const s=i(a)?"Custom":fH(a),u={getItemString:e,key:t[0],keyPath:t,labelRenderer:n,nodeType:s,styling:r,value:a,valueRenderer:l},f={...o,...u,data:a,isCustomNode:i};switch(s){case"Object":case"Error":case"WeakMap":case"WeakSet":return O.createElement(xH,{...f});case"Array":return O.createElement(CH,{...f});case"Iterable":case"Map":case"Set":return O.createElement(EH,{...f});case"String":return O.createElement(pr,{...u,valueGetter:c=>`"${c}"`});case"Number":return O.createElement(pr,{...u});case"Boolean":return O.createElement(pr,{...u,valueGetter:c=>c?"true":"false"});case"Date":return O.createElement(pr,{...u,valueGetter:c=>c.toISOString()});case"Null":return O.createElement(pr,{...u,valueGetter:()=>"null"});case"Undefined":return O.createElement(pr,{...u,valueGetter:()=>"undefined"});case"Function":case"Symbol":return O.createElement(pr,{...u,valueGetter:c=>c.toString()});case"Custom":return O.createElement(pr,{...u});default:return O.createElement(pr,{...u,valueGetter:()=>`<${s}>`})}}const MH={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},OH=e=>({BACKGROUND_COLOR:e.base00,TEXT_COLOR:e.base07,STRING_COLOR:e.base0B,DATE_COLOR:e.base0B,NUMBER_COLOR:e.base09,BOOLEAN_COLOR:e.base09,NULL_COLOR:e.base08,UNDEFINED_COLOR:e.base08,FUNCTION_COLOR:e.base08,SYMBOL_COLOR:e.base08,LABEL_COLOR:e.base0D,ARROW_COLOR:e.base0D,ITEM_STRING_COLOR:e.base0B,ITEM_STRING_EXPANDED_COLOR:e.base03}),RH=e=>({String:e.STRING_COLOR,Date:e.DATE_COLOR,Number:e.NUMBER_COLOR,Boolean:e.BOOLEAN_COLOR,Null:e.NULL_COLOR,Undefined:e.UNDEFINED_COLOR,Function:e.FUNCTION_COLOR,Symbol:e.SYMBOL_COLOR}),TH=e=>{const t=OH(e);return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:t.BACKGROUND_COLOR},value:({style:n},r,a)=>({style:{...n,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:a.length>1?"2.125em":"1.25em",textIndent:"-0.5em",wordBreak:"break-all"}}),label:{display:"inline-block",color:t.LABEL_COLOR},valueLabel:{margin:"0 0.5em 0 0"},valueText:({style:n},r)=>({style:{...n,color:RH(t)[r]}}),itemRange:(n,r)=>({style:{paddingTop:r?0:"0.25em",cursor:"pointer",color:t.LABEL_COLOR}}),arrow:({style:n},r,a)=>({style:{...n,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:a?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:a?"rotateZ(90deg)":"rotateZ(0deg)",transform:a?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"}}),arrowContainer:({style:n},r)=>({style:{...n,display:"inline-block",paddingRight:"0.5em",paddingLeft:r==="double"?"1em":0,cursor:"pointer"}}),arrowSign:{color:t.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:({style:n},r,a,l,i)=>({style:{...n,position:"relative",paddingTop:"0.25em",marginLeft:r.length>1?"0.875em":0,paddingLeft:i?0:"1.125em"}}),rootNode:{padding:0,margin:0},nestedNodeLabel:({style:n},r,a,l,i)=>({style:{...n,margin:0,padding:0,WebkitUserSelect:i?"inherit":"text",MozUserSelect:i?"inherit":"text",cursor:i?"pointer":"default"}}),nestedNodeItemString:({style:n},r,a,l)=>({style:{...n,paddingLeft:"0.5em",cursor:"default",color:l?t.ITEM_STRING_EXPANDED_COLOR:t.ITEM_STRING_COLOR}}),nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:({style:n},r,a)=>({style:{...n,padding:0,margin:0,listStyle:"none",display:a?"block":"none"}}),rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}},kH=uH(TH,{defaultBase16:MH}),$y=e=>e,jH=(e,t,n)=>n===0,DH=(e,t,n,r)=>O.createElement("span",null,n," ",r),NH=([e])=>O.createElement("span",null,e,":"),AH=()=>!1;function Ss({data:e,theme:t,invertTheme:n,keyPath:r=["root"],labelRenderer:a=NH,valueRenderer:l=$y,shouldExpandNodeInitially:i=jH,hideRoot:o=!1,getItemString:s=DH,postprocessValue:u=$y,isCustomNode:f=AH,collectionLimit:c=50,sortObjectKeys:d=!1}){const h=p.useMemo(()=>kH(n?dH(t):t),[t,n]);return O.createElement("ul",{...h("tree")},O.createElement(mx,{keyPath:o?[]:r,value:u(e),isCustomNode:f,styling:h,labelRenderer:a,valueRenderer:l,shouldExpandNodeInitially:i,hideRoot:o,getItemString:s,postprocessValue:u,collectionLimit:c,sortObjectKeys:d}))}var zf=function(e){var t=e.actions;return w.jsxs(ZD,{children:[w.jsx(qg,{className:"flex size-7 items-center justify-center rounded-md bg-slate-50 text-slate-900 outline-none transition duration-150 ease-in-out hover:bg-slate-100 focus:bg-slate-100 radix-state-open:bg-slate-100 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700 dark:focus:bg-slate-700 dark:radix-state-open:bg-slate-700","aria-label":"Action menu",children:w.jsx(NR,{width:18,height:18})}),w.jsx(ID,{placement:"bottom left",className:"space-y-0.5 rounded-md border border-slate-200 bg-white/95 p-1 shadow-lg backdrop-blur-md dark:border-slate-700 dark:bg-slate-800/95",offset:5,children:w.jsx(JD,{children:t.map(function(n){return w.jsxs(rN,{className:"flex cursor-default items-center space-x-1.5 rounded-md py-1.5 pl-1.5 pr-8 text-sm font-medium text-slate-900 outline-none transition duration-150 ease-in-out focus:bg-slate-100 dark:text-slate-100 dark:focus:bg-slate-700",onAction:n.onSelect,children:[n.icon,w.jsx("span",{children:n.label})]},n.label)})})})]})},LH=function(e){var t=e.job,n=e.queueName,r=e.queue,a=e.onRemove,l=ge.job.retry.useMutation(),i=l.mutate,o=l.isSuccess,s=ge.job.discard.useMutation(),u=s.mutate,f=s.isSuccess,c=ge.job.rerun.useMutation(),d=c.mutate,h=c.isSuccess,m=ge.job.remove.useMutation(),b=m.mutate,y=m.isSuccess;p.useEffect(function(){(o||f||h||y)&&(a==null||a())},[o,f,h,y,a]);var v={queueName:n,jobId:t.id},g=(r==null?void 0:r.supports.retry)!==!1,x=wt(wt(wt([],t.failedReason&&g?[{label:"Retry",onSelect:function(){i(v)},icon:w.jsx(Ki,{})}]:[],!0),t.finishedAt?[{label:"Rerun",onSelect:function(){d(v)},icon:w.jsx(Ki,{})}]:[{label:"Discard",onSelect:function(){u(v)},icon:w.jsx(HR,{})}],!0),[{label:"Remove",onSelect:function(){b(v)},icon:w.jsx(no,{})}],!1);return w.jsx(zf,{actions:x})},Ma=function(e){var t=e.colorScheme,n=t===void 0?"slate":t,r=e.variant,a=r===void 0?"outline":r,l=e.size,i=l===void 0?"md":l,o=e.icon,s=e.label,u=e.isLoading,f=e.onClick,c=e.disabled;return w.jsxs("button",{onClick:f,disabled:u||c,className:Ui("flex items-center space-x-1 rounded-md border text-sm font-medium transition-colors duration-150",{"py-0.5":i==="sm","py-1":i==="md","py-1.5":i==="lg"},[i==="sm"&&o?"pl-1.5 pr-2.5":"px-2.5",i==="md"&&o?"pl-2 pr-3":"px-3",i==="lg"&&o?"pl-2.5 pr-4":"px-4"],{"cursor-not-allowed opacity-50":u||c,"border-yellow-900 text-yellow-900 hover:bg-yellow-50 focus:bg-yellow-50 dark:border-yellow-400 dark:text-yellow-400 dark:hover:bg-yellow-950/30 dark:focus:bg-yellow-950/30":n==="yellow"&&a==="outline","border-slate-900 text-slate-900 hover:bg-slate-50 focus:bg-slate-50 dark:border-slate-400 dark:text-slate-300 dark:hover:bg-slate-800 dark:focus:bg-slate-800":n==="slate"&&a==="outline","border-red-900 text-red-900 hover:bg-red-50 focus:bg-red-50 dark:border-red-400 dark:text-red-400 dark:hover:bg-red-950/30 dark:focus:bg-red-950/30":n==="red"&&a==="outline","border-yellow-800 bg-yellow-800 text-yellow-50 hover:border-yellow-900 hover:bg-yellow-900 focus:border-yellow-900 focus:bg-yellow-900 dark:border-yellow-600 dark:bg-yellow-600 dark:hover:border-yellow-500 dark:hover:bg-yellow-500 dark:focus:border-yellow-500 dark:focus:bg-yellow-500":n==="yellow"&&a==="filled","border-slate-800 bg-slate-800 text-slate-50 hover:border-slate-900 hover:bg-slate-900 focus:border-slate-900 focus:bg-slate-900 dark:border-slate-600 dark:bg-slate-600 dark:hover:border-slate-500 dark:hover:bg-slate-500 dark:focus:border-slate-500 dark:focus:bg-slate-500":n==="slate"&&a==="filled","border-red-800 bg-red-800 text-red-50 hover:border-red-900 hover:bg-red-900 focus:border-red-900 focus:bg-red-900 dark:border-red-600 dark:bg-red-600 dark:hover:border-red-500 dark:hover:bg-red-500 dark:focus:border-red-500 dark:focus:bg-red-500":n==="red"&&a==="filled"}),children:[u?w.jsx("div",{className:"flex w-4 justify-center",children:w.jsx(Tg,{width:10,height:10,className:"animate-spin"})}):o?w.jsx("div",{className:"flex w-4 justify-center",children:o}):null,w.jsx("span",{children:s})]})},_H=function(e){var t=e.job,n=e.queueName,r=e.onDismiss,a=ge.queue.byName.useQuery({queueName:n}),l=ge.job.retry.useMutation().mutate,i=ge.job.logs.useQuery({jobId:t.id,queueName:n}).data;return w.jsx(Af,{isOpen:!0,isDismissable:!0,onOpenChange:function(o){o||r()},className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:w.jsx(Df,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(o){var s,u,f=o.close;return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"mb-4 flex items-start justify-between",children:[w.jsxs("div",{children:[w.jsx(Nf,{className:"text-xl font-semibold text-slate-900 dark:text-slate-100",children:t.name}),w.jsxs("span",{className:"text-sm text-slate-500 dark:text-slate-400",children:["#",t.id]})]}),w.jsxs("div",{className:"flex items-center space-x-1",children:[w.jsx(LH,{queueName:n,job:t,queue:(s=a.data)!==null&&s!==void 0?s:void 0,onRemove:r}),w.jsx("button",{className:"flex size-7 items-center justify-center rounded-md bg-slate-50 text-slate-900 outline-none transition duration-150 ease-in-out hover:bg-slate-100 focus:bg-slate-100 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700 dark:focus:bg-slate-700","aria-label":"Close",onClick:function(){r(),f()},children:w.jsx(Rg,{})})]})]}),w.jsxs("div",{children:[t.failedReason?w.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[w.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Error"}),w.jsx("p",{className:"text-sm text-red-600 dark:text-red-400",children:t.failedReason}),w.jsx(Ma,{label:"Retry",size:"sm",icon:w.jsx(Ki,{width:14}),onClick:function(){l({queueName:n,jobId:t.id}),r()}})]}):null,w.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[w.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),w.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:w.jsx(Ss,{data:t.opts,theme:"monokai"})})]}),w.jsxs("div",{className:"space-y-2 py-4",children:[w.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Data"}),w.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:w.jsx(Ss,{data:t.data,theme:"monokai"})})]}),t.returnValue!==void 0&&t.returnValue!==null&&w.jsxs("div",{className:"space-y-2 border-t border-t-slate-200 py-4 dark:border-b-slate-700",children:[w.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Return value"}),w.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:w.jsx(Ss,{data:t.returnValue,theme:"monokai"})})]}),!((u=a.data)===null||u===void 0)&&u.supports.logs&&i!=null&&i.length?w.jsxs("div",{className:"space-y-2 border-t border-t-slate-200 pt-4 dark:border-t-slate-700",children:[w.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Logs"}),w.jsx("div",{className:"space-y-1",children:i==null?void 0:i.map(function(c,d){return w.jsxs("div",{className:"flex items-center space-x-2",children:[w.jsx("div",{className:"h-4 w-1 rounded-sm bg-slate-300 dark:bg-slate-600"}),w.jsx("p",{className:"font-mono text-sm text-slate-900 dark:text-slate-100",children:c})]},d)})})]}):null]})]})}})})},hc=u6(),zH=[hc.display({id:"select",header:function(e){var t=e.table;return w.jsx(Hd,{checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),onCheckedChange:function(){t.toggleAllRowsSelected()}})},cell:function(e){var t=e.row,n=e.table;return w.jsx(Hd,{className:n.getIsSomeRowsSelected()||n.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:t.getIsSomeSelected()?"indeterminate":t.getIsSelected(),onCheckedChange:t.getToggleSelectedHandler()})}}),hc.accessor("name",{cell:function(e){return w.jsxs("div",{className:"flex w-full items-center space-x-2",children:[w.jsx("span",{className:"max-w-fit grow basis-full truncate text-slate-900 dark:text-slate-200",children:e.cell.row.original.name}),w.jsxs("span",{className:"max-w-[20%] shrink truncate text-sm text-slate-500 dark:text-slate-400",children:["#",e.cell.row.original.id]})]})},header:"Name"}),hc.display({id:"lifecycle",header:function(){return"Lifecycle"},cell:function(e){var t=e.row.original,n=t.createdAt,r=t.processedAt,a=t.finishedAt,l=t.status,i=t.retriedAt;return w.jsxs("div",{className:"flex items-center space-x-3",children:[w.jsx(mh,{date:new Date(n),variant:"added"}),l==="waiting"?w.jsx(Wy,{}):null,r?w.jsxs(w.Fragment,{children:[w.jsx(Jy,{date:new Date(r),baseDate:new Date(n)}),w.jsx(mh,{date:new Date(r),variant:i?"retried":"processing"})]}):null,l==="active"?w.jsx(Wy,{}):null,a&&r?w.jsxs(w.Fragment,{children:[w.jsx(Jy,{date:new Date(a),baseDate:new Date(r)}),w.jsx(mh,{date:new Date(a),variant:l==="failed"?"failed":"completed"})]}):null]})}}),hc.display({id:"options",header:"Options",cell:function(e){var t,n=e.row.original.opts;return w.jsxs("div",{className:"flex items-center space-x-2",children:[n.priority?w.jsx(Vo,{icon:w.jsx(LR,{width:12,height:12}),label:n.priority}):null,n.attempts&&n.attempts>1?w.jsx(Vo,{icon:w.jsx(Ki,{width:12,height:12}),label:n.attempts}):null,n.lifo?w.jsx(Vo,{icon:w.jsx(rT,{width:12,height:12}),label:"LIFO"}):null,n.delay?w.jsx(Vo,{icon:w.jsx(UR,{width:12,height:12}),label:n.delay}):null,!((t=n.repeat)===null||t===void 0)&&t.count?w.jsx(Vo,{icon:w.jsx(qR,{width:12,height:12}),label:n.repeat.count}):null]})}})],PH=function(e){var t=e.jobs,n=e.totalJobs,r=e.onBottomInView,a=e.isLoading,l=e.isFetchingNextPage,i=e.queueName,o=e.status,s=p.useState({}),u=s[0],f=s[1],c=RL({threshold:0,onChange:function(E){E&&r()}}).ref,d=x6({data:t,columns:zH,getCoreRowModel:y6(),state:{rowSelection:u},onRowSelectionChange:f}),h=t.length===0,m=t.length/(n||0)*100,b=p.useState(null),y=b[0],v=b[1],g=ge.job.retry.useMutation().mutate,x=ge.job.rerun.useMutation().mutate,C=ge.job.bulkRemove.useMutation().mutate;return p.useEffect(function(){d.resetRowSelection()},[o]),w.jsxs("div",{children:[y?w.jsx(_H,{queueName:i,job:y,onDismiss:function(){return v(null)}}):null,w.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:a?w.jsx(k6,{}):w.jsxs("div",{children:[d.getHeaderGroups().map(function(E,S){return w.jsx("div",{className:"sticky top-0 grid grid-cols-[auto,350px,576px,1fr] rounded-t-md border-b border-slate-200 bg-slate-100/50 p-2 backdrop-blur-md dark:border-slate-700 dark:bg-slate-900/50",children:E.headers.map(function(M){return w.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(S!==0?"pr-10":"pr-3"),children:M.isPlaceholder?null:Ld(M.column.columnDef.header,M.getContext())},M.id)})},E.id)}),d.getRowModel().rows.map(function(E,S){return w.jsx(T6,{isLastRow:d.getRowModel().rows.length!==S+1,isSelected:E.getIsSelected(),onClick:function(){return v(E.original)},layoutVariant:"job",children:E.getVisibleCells().map(function(M,A){return w.jsx("div",{className:"flex h-full items-center ".concat(A!==0?"pr-10":"pr-3"),children:Ld(M.column.columnDef.cell,M.getContext())},M.id)})},E.id)}),!a&&h?w.jsx("div",{className:"flex items-center justify-center py-10",children:w.jsx("p",{className:"text-slate-500 dark:text-slate-400",children:"No jobs found"})}):null]})}),!a&&h?null:w.jsx("div",{ref:c,className:"my-3 flex justify-center",children:w.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[w.jsxs("p",{className:"text-xs text-slate-500 dark:text-slate-400",children:["You've viewed ",t.length," of ",n," jobs"]}),w.jsx(lN,{value:m,children:function(E){var S=E.percentage;return w.jsx(w.Fragment,{children:w.jsx("div",{style:{transform:"translateZ(0)"},className:"relative h-0.5 w-[144px] overflow-hidden rounded-sm bg-slate-200 dark:bg-slate-700",children:w.jsx("div",{className:"size-full bg-cyan-500 transition duration-300 ease-in-out",style:{transform:"translateX(-".concat(100-S,"%)")}})})})}}),l?w.jsx(Tg,{className:"animate-spin text-slate-300 dark:text-slate-600"}):null]})}),d.getSelectedRowModel().rows.length>0?w.jsx("div",{className:"pointer-events-none sticky bottom-0 flex w-full items-center justify-center pb-5",children:w.jsxs("div",{className:"pointer-events-auto flex items-center space-x-3 rounded-lg border-slate-100 bg-white/90 px-3 py-2 text-sm shadow-lg backdrop-blur dark:border-slate-700 dark:bg-slate-900/90",children:[w.jsxs("p",{className:"text-slate-900 dark:text-slate-100",children:[d.getSelectedRowModel().rows.length," selected"]}),o==="completed"||o==="failed"?w.jsx(Ma,{label:o==="failed"?"Retry":"Rerun",icon:w.jsx(Ki,{}),size:"sm",onClick:function(){d.getSelectedRowModel().rows.forEach(function(E){o==="failed"?g({queueName:i,jobId:E.original.id}):x({queueName:i,jobId:E.original.id})}),d.resetRowSelection()}}):null,w.jsx(Ma,{label:"Delete",colorScheme:"red",icon:w.jsx(no,{}),size:"sm",onClick:function(){C({queueName:i,jobIds:d.getSelectedRowModel().rows.map(function(E){return E.original.id})}),d.resetRowSelection()}})]})}):null]})},mh=function(e){var t=e.variant,n=e.date,r={added:"Added to queue",completed:"Completed",failed:"Failed",processing:"Processed",retried:"Retried"};return w.jsx(t1,{message:"".concat(r[t]," ").concat(R6(n)," ago"),children:w.jsxs("div",{className:"flex items-center space-x-1.5",children:[t==="added"&&w.jsx(M3,{width:14,height:14,className:"rounded-full bg-cyan-50 text-cyan-900 dark:bg-cyan-950 dark:text-cyan-400"}),t==="processing"&&w.jsx(xR,{width:14,height:14,className:"rounded-full bg-slate-50 text-slate-900 dark:bg-slate-800 dark:text-slate-300"}),t==="retried"&&w.jsx(Ki,{width:14,height:14,className:"rounded-full bg-amber-50 text-amber-900 dark:bg-amber-950 dark:text-amber-400"}),t==="completed"&&w.jsx(w3,{width:14,height:14,className:"rounded-full bg-green-50 text-green-900 dark:bg-green-950 dark:text-green-400"}),t==="failed"&&w.jsx(C3,{width:14,height:14,className:"rounded-full bg-red-50 text-red-900 dark:bg-red-950 dark:text-red-400"}),w.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:O6(n,"".concat(t==="added"?"MM/dd ":"","HH:mm:ss"))})]})})},Wy=function(){return w.jsxs("div",{className:"flex items-center space-x-1.5",children:[w.jsx(Np,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"}),w.jsx(Tg,{width:14,height:14,className:"animate-spin text-slate-300 dark:text-slate-600"})]})},Jy=function(e){var t=e.date,n=e.baseDate;return w.jsxs("div",{className:"flex items-center space-x-1.5",children:[w.jsx(Np,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"}),w.jsx("p",{className:"w-7 rounded-sm text-center text-xs text-slate-500 dark:text-slate-400",children:wL(t,n,{locale:{formatDistance:function(r,a){return r==="xSeconds"?"".concat(a,"s"):r==="xMinutes"?"".concat(a,"m"):r==="xHours"?"".concat(a,"h"):r==="xDays"?"".concat(a,"d"):r==="xMonths"?"".concat(a,"mo"):r==="xYears"?"".concat(a,"y"):""}}})}),w.jsx(Np,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"})]})},HH=function(e){var t=e.title,n=e.description,r=e.action,a=e.children;return w.jsxs(l6,{children:[w.jsx(qg,{children:a}),w.jsx(Af,{isDismissable:!0,className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:w.jsx(Df,{role:"alertdialog",className:"fixed left-1/2 top-1/2 w-full max-w-md -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(l){var i=l.close;return w.jsxs(w.Fragment,{children:[w.jsx(Nf,{className:"mb-3 text-xl font-semibold text-slate-900 dark:text-slate-100",children:t}),w.jsx("p",{className:"mb-6 text-slate-600 dark:text-slate-400",children:n}),w.jsxs("div",{className:"flex justify-end space-x-3",children:[w.jsx(Ma,{onClick:i,label:"Cancel"}),r]})]})}})})]})};function KH(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const UH=e=>{switch(e){case"success":return FH;case"info":return GH;case"warning":return VH;case"error":return QH;default:return null}},BH=Array(12).fill(0),qH=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},BH.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),FH=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),VH=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),GH=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),QH=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),IH=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),XH=()=>{const[e,t]=O.useState(document.hidden);return O.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let cm=1;class YH{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,l=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:cm++,i=this.toasts.find(s=>s.id===l),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),i?this.toasts=this.toasts.map(s=>s.id===l?(this.publish({...s,...t,id:l,title:r}),{...s,...t,id:l,dismissible:o,title:r}):s):this.addToast({title:r,...a,dismissible:o,id:l}),l},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let l=r!==void 0,i;const o=a.then(async u=>{if(i=["resolve",u],O.isValidElement(u))l=!1,this.create({id:r,type:"default",message:u});else if($H(u)&&!u.ok){l=!1;const f=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,c=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,d=typeof f=="object"&&!O.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:c,...d})}else if(u instanceof Error){l=!1;const f=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,d=typeof f=="object"&&!O.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:c,...d})}else if(n.success!==void 0){l=!1;const f=typeof n.success=="function"?await n.success(u):n.success,c=typeof n.description=="function"?await n.description(u):n.description,d=typeof f=="object"&&!O.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:c,...d})}}).catch(async u=>{if(i=["reject",u],n.error!==void 0){l=!1;const f=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,d=typeof f=="object"&&!O.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:c,...d})}}).finally(()=>{l&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),s=()=>new Promise((u,f)=>o.then(()=>i[0]==="reject"?f(i[1]):u(i[1])).catch(f));return typeof r!="string"&&typeof r!="number"?{unwrap:s}:Object.assign(r,{unwrap:s})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||cm++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Nt=new YH,ZH=(e,t)=>{const n=(t==null?void 0:t.id)||cm++;return Nt.addToast({title:e,...t,id:n}),n},$H=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",WH=ZH,JH=()=>Nt.toasts,eK=()=>Nt.getActiveToasts(),ei=Object.assign(WH,{success:Nt.success,info:Nt.info,warning:Nt.warning,error:Nt.error,custom:Nt.custom,message:Nt.message,promise:Nt.promise,dismiss:Nt.dismiss,loading:Nt.loading},{getHistory:JH,getToasts:eK});KH("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function pc(e){return e.label!==void 0}const tK=3,nK="24px",rK="16px",e2=4e3,aK=356,lK=14,iK=45,oK=200;function Xn(...e){return e.filter(Boolean).join(" ")}function sK(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const uK=e=>{var t,n,r,a,l,i,o,s,u;const{invert:f,toast:c,unstyled:d,interacting:h,setHeights:m,visibleToasts:b,heights:y,index:v,toasts:g,expanded:x,removeToast:C,defaultRichColors:E,closeButton:S,style:M,cancelButtonStyle:A,actionButtonStyle:D,className:N="",descriptionClassName:j="",duration:z,position:B,gap:L,expandByDefault:P,classNames:T,icons:k,closeButtonAriaLabel:_="Close toast"}=e,[U,F]=O.useState(null),[G,K]=O.useState(null),[V,I]=O.useState(!1),[J,et]=O.useState(!1),[ve,tt]=O.useState(!1),[sn,Fn]=O.useState(!1),[Tn,Z]=O.useState(!1),[kn,Ht]=O.useState(0),[Na,Su]=O.useState(0),ce=O.useRef(c.duration||z||e2),Lr=O.useRef(null),Kt=O.useRef(null),uo=v===0,Mx=v+1<=b,Ut=c.type,jl=c.dismissible!==!1,Ox=c.className||"",Rx=c.descriptionClassName||"",Eu=O.useMemo(()=>y.findIndex(ae=>ae.toastId===c.id)||0,[y,c.id]),Tx=O.useMemo(()=>{var ae;return(ae=c.closeButton)!=null?ae:S},[c.closeButton,S]),i1=O.useMemo(()=>c.duration||z||e2,[c.duration,z]),Hf=O.useRef(0),Dl=O.useRef(0),o1=O.useRef(0),Nl=O.useRef(null),[kx,jx]=B.split("-"),s1=O.useMemo(()=>y.reduce((ae,Ye,vt)=>vt>=Eu?ae:ae+Ye.height,0),[y,Eu]),u1=XH(),Dx=c.invert||f,Kf=Ut==="loading";Dl.current=O.useMemo(()=>Eu*L+s1,[Eu,s1]),O.useEffect(()=>{ce.current=i1},[i1]),O.useEffect(()=>{I(!0)},[]),O.useEffect(()=>{const ae=Kt.current;if(ae){const Ye=ae.getBoundingClientRect().height;return Su(Ye),m(vt=>[{toastId:c.id,height:Ye,position:c.position},...vt]),()=>m(vt=>vt.filter(jn=>jn.toastId!==c.id))}},[m,c.id]),O.useLayoutEffect(()=>{if(!V)return;const ae=Kt.current,Ye=ae.style.height;ae.style.height="auto";const vt=ae.getBoundingClientRect().height;ae.style.height=Ye,Su(vt),m(jn=>jn.find(nt=>nt.toastId===c.id)?jn.map(nt=>nt.toastId===c.id?{...nt,height:vt}:nt):[{toastId:c.id,height:vt,position:c.position},...jn])},[V,c.title,c.description,m,c.id,c.jsx,c.action,c.cancel]);const _r=O.useCallback(()=>{et(!0),Ht(Dl.current),m(ae=>ae.filter(Ye=>Ye.toastId!==c.id)),setTimeout(()=>{C(c)},oK)},[c,C,m,Dl]);O.useEffect(()=>{if(c.promise&&Ut==="loading"||c.duration===1/0||c.type==="loading")return;let ae;return x||h||u1?(()=>{if(o1.current<Hf.current){const Ye=new Date().getTime()-Hf.current;ce.current=ce.current-Ye}o1.current=new Date().getTime()})():ce.current!==1/0&&(Hf.current=new Date().getTime(),ae=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),_r()},ce.current)),()=>clearTimeout(ae)},[x,h,c,Ut,u1,_r]),O.useEffect(()=>{c.delete&&(_r(),c.onDismiss==null||c.onDismiss.call(c,c))},[_r,c.delete]);function Nx(){var ae;if(k!=null&&k.loading){var Ye;return O.createElement("div",{className:Xn(T==null?void 0:T.loader,c==null||(Ye=c.classNames)==null?void 0:Ye.loader,"sonner-loader"),"data-visible":Ut==="loading"},k.loading)}return O.createElement(qH,{className:Xn(T==null?void 0:T.loader,c==null||(ae=c.classNames)==null?void 0:ae.loader),visible:Ut==="loading"})}const Ax=c.icon||(k==null?void 0:k[Ut])||UH(Ut);var c1,d1;return O.createElement("li",{tabIndex:0,ref:Kt,className:Xn(N,Ox,T==null?void 0:T.toast,c==null||(t=c.classNames)==null?void 0:t.toast,T==null?void 0:T.default,T==null?void 0:T[Ut],c==null||(n=c.classNames)==null?void 0:n[Ut]),"data-sonner-toast":"","data-rich-colors":(c1=c.richColors)!=null?c1:E,"data-styled":!(c.jsx||c.unstyled||d),"data-mounted":V,"data-promise":!!c.promise,"data-swiped":Tn,"data-removed":J,"data-visible":Mx,"data-y-position":kx,"data-x-position":jx,"data-index":v,"data-front":uo,"data-swiping":ve,"data-dismissible":jl,"data-type":Ut,"data-invert":Dx,"data-swipe-out":sn,"data-swipe-direction":G,"data-expanded":!!(x||P&&V),"data-testid":c.testId,style:{"--index":v,"--toasts-before":v,"--z-index":g.length-v,"--offset":`${J?kn:Dl.current}px`,"--initial-height":P?"auto":`${Na}px`,...M,...c.style},onDragEnd:()=>{tt(!1),F(null),Nl.current=null},onPointerDown:ae=>{ae.button!==2&&(Kf||!jl||(Lr.current=new Date,Ht(Dl.current),ae.target.setPointerCapture(ae.pointerId),ae.target.tagName!=="BUTTON"&&(tt(!0),Nl.current={x:ae.clientX,y:ae.clientY})))},onPointerUp:()=>{var ae,Ye,vt;if(sn||!jl)return;Nl.current=null;const jn=Number(((ae=Kt.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),nt=Number(((Ye=Kt.current)==null?void 0:Ye.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Dn=new Date().getTime()-((vt=Lr.current)==null?void 0:vt.getTime()),co=U==="x"?jn:nt,Vn=Math.abs(co)/Dn;if(Math.abs(co)>=iK||Vn>.11){Ht(Dl.current),c.onDismiss==null||c.onDismiss.call(c,c),K(U==="x"?jn>0?"right":"left":nt>0?"down":"up"),_r(),Fn(!0);return}else{var Nn,fo;(Nn=Kt.current)==null||Nn.style.setProperty("--swipe-amount-x","0px"),(fo=Kt.current)==null||fo.style.setProperty("--swipe-amount-y","0px")}Z(!1),tt(!1),F(null)},onPointerMove:ae=>{var Ye,vt,jn;if(!Nl.current||!jl||((Ye=window.getSelection())==null?void 0:Ye.toString().length)>0)return;const nt=ae.clientY-Nl.current.y,Dn=ae.clientX-Nl.current.x;var co;const Vn=(co=e.swipeDirections)!=null?co:sK(B);!U&&(Math.abs(Dn)>1||Math.abs(nt)>1)&&F(Math.abs(Dn)>Math.abs(nt)?"x":"y");let Nn={x:0,y:0};const fo=Aa=>1/(1.5+Math.abs(Aa)/20);if(U==="y"){if(Vn.includes("top")||Vn.includes("bottom"))if(Vn.includes("top")&&nt<0||Vn.includes("bottom")&&nt>0)Nn.y=nt;else{const Aa=nt*fo(nt);Nn.y=Math.abs(Aa)<Math.abs(nt)?Aa:nt}}else if(U==="x"&&(Vn.includes("left")||Vn.includes("right")))if(Vn.includes("left")&&Dn<0||Vn.includes("right")&&Dn>0)Nn.x=Dn;else{const Aa=Dn*fo(Dn);Nn.x=Math.abs(Aa)<Math.abs(Dn)?Aa:Dn}(Math.abs(Nn.x)>0||Math.abs(Nn.y)>0)&&Z(!0),(vt=Kt.current)==null||vt.style.setProperty("--swipe-amount-x",`${Nn.x}px`),(jn=Kt.current)==null||jn.style.setProperty("--swipe-amount-y",`${Nn.y}px`)}},Tx&&!c.jsx&&Ut!=="loading"?O.createElement("button",{"aria-label":_,"data-disabled":Kf,"data-close-button":!0,onClick:Kf||!jl?()=>{}:()=>{_r(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Xn(T==null?void 0:T.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(d1=k==null?void 0:k.close)!=null?d1:IH):null,(Ut||c.icon||c.promise)&&c.icon!==null&&((k==null?void 0:k[Ut])!==null||c.icon)?O.createElement("div",{"data-icon":"",className:Xn(T==null?void 0:T.icon,c==null||(a=c.classNames)==null?void 0:a.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Nx():null,c.type!=="loading"?Ax:null):null,O.createElement("div",{"data-content":"",className:Xn(T==null?void 0:T.content,c==null||(l=c.classNames)==null?void 0:l.content)},O.createElement("div",{"data-title":"",className:Xn(T==null?void 0:T.title,c==null||(i=c.classNames)==null?void 0:i.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?O.createElement("div",{"data-description":"",className:Xn(j,Rx,T==null?void 0:T.description,c==null||(o=c.classNames)==null?void 0:o.description)},typeof c.description=="function"?c.description():c.description):null),O.isValidElement(c.cancel)?c.cancel:c.cancel&&pc(c.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||A,onClick:ae=>{pc(c.cancel)&&jl&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,ae),_r())},className:Xn(T==null?void 0:T.cancelButton,c==null||(s=c.classNames)==null?void 0:s.cancelButton)},c.cancel.label):null,O.isValidElement(c.action)?c.action:c.action&&pc(c.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||D,onClick:ae=>{pc(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,ae),!ae.defaultPrevented&&_r())},className:Xn(T==null?void 0:T.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function t2(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function cK(e,t){const n={};return[e,t].forEach((r,a)=>{const l=a===1,i=l?"--mobile-offset":"--offset",o=l?rK:nK;function s(u){["top","right","bottom","left"].forEach(f=>{n[`${i}-${f}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?s(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=o:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):s(o)}),n}const dK=O.forwardRef(function(e,t){const{id:n,invert:r,position:a="bottom-right",hotkey:l=["altKey","KeyT"],expand:i,closeButton:o,className:s,offset:u,mobileOffset:f,theme:c="light",richColors:d,duration:h,style:m,visibleToasts:b=tK,toastOptions:y,dir:v=t2(),gap:g=lK,icons:x,containerAriaLabel:C="Notifications"}=e,[E,S]=O.useState([]),M=O.useMemo(()=>n?E.filter(K=>K.toasterId===n):E.filter(K=>!K.toasterId),[E,n]),A=O.useMemo(()=>Array.from(new Set([a].concat(M.filter(K=>K.position).map(K=>K.position)))),[M,a]),[D,N]=O.useState([]),[j,z]=O.useState(!1),[B,L]=O.useState(!1),[P,T]=O.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),k=O.useRef(null),_=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=O.useRef(null),F=O.useRef(!1),G=O.useCallback(K=>{S(V=>{var I;return(I=V.find(J=>J.id===K.id))!=null&&I.delete||Nt.dismiss(K.id),V.filter(({id:J})=>J!==K.id)})},[]);return O.useEffect(()=>Nt.subscribe(K=>{if(K.dismiss){requestAnimationFrame(()=>{S(V=>V.map(I=>I.id===K.id?{...I,delete:!0}:I))});return}setTimeout(()=>{gm.flushSync(()=>{S(V=>{const I=V.findIndex(J=>J.id===K.id);return I!==-1?[...V.slice(0,I),{...V[I],...K},...V.slice(I+1)]:[K,...V]})})})}),[E]),O.useEffect(()=>{if(c!=="system"){T(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?T("dark"):T("light")),typeof window>"u")return;const K=window.matchMedia("(prefers-color-scheme: dark)");try{K.addEventListener("change",({matches:V})=>{T(V?"dark":"light")})}catch{K.addListener(({matches:V})=>{try{T(V?"dark":"light")}catch(I){console.error(I)}})}},[c]),O.useEffect(()=>{E.length<=1&&z(!1)},[E]),O.useEffect(()=>{const K=V=>{var I;if(l.every(et=>V[et]||V.code===et)){var J;z(!0),(J=k.current)==null||J.focus()}V.code==="Escape"&&(document.activeElement===k.current||(I=k.current)!=null&&I.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[l]),O.useEffect(()=>{if(k.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,F.current=!1)}},[k.current]),O.createElement("section",{ref:t,"aria-label":`${C} ${_}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},A.map((K,V)=>{var I;const[J,et]=K.split("-");return M.length?O.createElement("ol",{key:K,dir:v==="auto"?t2():v,tabIndex:-1,ref:k,className:s,"data-sonner-toaster":!0,"data-sonner-theme":P,"data-y-position":J,"data-x-position":et,style:{"--front-toast-height":`${((I=D[0])==null?void 0:I.height)||0}px`,"--width":`${aK}px`,"--gap":`${g}px`,...m,...cK(u,f)},onBlur:ve=>{F.current&&!ve.currentTarget.contains(ve.relatedTarget)&&(F.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:ve=>{ve.target instanceof HTMLElement&&ve.target.dataset.dismissible==="false"||F.current||(F.current=!0,U.current=ve.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{B||z(!1)},onDragEnd:()=>z(!1),onPointerDown:ve=>{ve.target instanceof HTMLElement&&ve.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},M.filter(ve=>!ve.position&&V===0||ve.position===K).map((ve,tt)=>{var sn,Fn;return O.createElement(uK,{key:ve.id,icons:x,index:tt,toast:ve,defaultRichColors:d,duration:(sn=y==null?void 0:y.duration)!=null?sn:h,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:r,visibleToasts:b,closeButton:(Fn=y==null?void 0:y.closeButton)!=null?Fn:o,interacting:B,position:K,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,closeButtonAriaLabel:y==null?void 0:y.closeButtonAriaLabel,removeToast:G,toasts:M.filter(Tn=>Tn.position==ve.position),heights:D.filter(Tn=>Tn.position==ve.position),setHeights:N,expandByDefault:i,gap:g,expanded:j,swipeDirections:e.swipeDirections})})):null}))});var fK=function(e){var t=e.showCleanAllButton,n=e.queueName,r=e.status,a=e.queue,l=ge.queue.clean.useMutation({onSuccess:function(){ei.success("All ".concat(r," jobs have been removed"))}}),i=l.mutate,o=l.status,s=wt(wt(wt(wt(wt([{name:"Completed",status:"completed"},{name:"Failed",status:"failed"},{name:"Active",status:"active"}],a!=null&&a.supports.priorities?[{name:"Prioritized",status:"prioritized"}]:[],!0),[{name:"Waiting",status:"waiting"}],!1),a!=null&&a.supports.flows?[{name:"Waiting Children",status:"waiting-children"}]:[],!0),[{name:"Delayed",status:"delayed"}],!1),a!=null&&a.supports.pause?[{name:"Paused",status:"paused"}]:[],!0);return w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx("div",{className:"flex items-center space-x-3",children:s.map(function(u){var f=u.status===r;return w.jsxs(wf,{to:"?status=".concat(u.status),className:Ui("flex items-center space-x-2 rounded-md px-3 py-1 font-medium transition duration-150 ease-in-out",{"text-slate-500 hover:bg-slate-50 dark:text-slate-300 dark:hover:bg-slate-800":!f,"bg-green-50 text-green-900 dark:bg-green-900 dark:text-green-50":f&&u.status==="completed","bg-red-50 text-red-900 dark:bg-red-900 dark:text-red-100":f&&u.status==="failed","bg-cyan-50 text-cyan-900 dark:bg-cyan-900 dark:text-cyan-50":f&&u.status==="active","bg-purple-50 text-purple-900 dark:bg-purple-900 dark:text-purple-50":f&&u.status==="prioritized","bg-amber-50 text-amber-900 dark:bg-amber-900 dark:text-amber-50":f&&u.status==="waiting","bg-orange-50 text-orange-900 dark:bg-orange-900 dark:text-orange-50":f&&u.status==="waiting-children","bg-indigo-50 text-indigo-900 dark:bg-indigo-900 dark:text-indigo-50":f&&u.status==="delayed","bg-stone-50 text-stone-900 dark:bg-stone-900 dark:text-stone-50":f&&u.status==="paused"}),children:[w.jsx("span",{children:u.name}),a!=null&&a.counts[u.status]?w.jsx("span",{className:Ui("rounded-md px-1.5 py-0.5 text-xs font-semibold",{"bg-slate-400 text-slate-50 dark:bg-slate-600 dark:text-slate-100":!f,"bg-green-600 text-green-50 dark:bg-green-700 dark:text-green-100":f&&u.status==="completed","bg-red-600 text-red-50 dark:bg-red-700 dark:text-red-100":f&&u.status==="failed","bg-cyan-600 text-cyan-50 dark:bg-cyan-700 dark:text-cyan-100":f&&u.status==="active","bg-purple-600 text-purple-50 dark:bg-purple-700 dark:text-purple-100":f&&u.status==="prioritized","bg-amber-600 text-amber-50 dark:bg-amber-700 dark:text-amber-100":f&&u.status==="waiting","bg-orange-600 text-orange-50 dark:bg-orange-700 dark:text-orange-100":f&&u.status==="waiting-children","bg-indigo-600 text-indigo-50 dark:bg-indigo-700 dark:text-indigo-100":f&&u.status==="delayed","bg-stone-600 text-stone-50 dark:bg-stone-700 dark:text-stone-100":f&&u.status==="paused"}),children:a.counts[u.status]}):null]},u.name)})}),t&&r!=="waiting-children"&&a!=null&&a.supports.clean?w.jsx(HH,{title:"Are you absolutely sure?",description:"This action cannot be undone. This will permanently remove all ".concat(r," jobs from the queue."),action:w.jsx(Ma,{variant:"filled",colorScheme:"red",label:"Yes, remove jobs",onClick:function(){return i({queueName:n,status:r})}}),children:w.jsx(Ma,{colorScheme:"yellow",icon:w.jsx(no,{}),label:"Clean all",size:"sm",isLoading:o==="pending"})}):null]})};function n2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hK(e){if(Array.isArray(e))return e}function pK(e,t,n){return(t=wK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,l,i,o=[],s=!0,u=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(s=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return o}}function gK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
111
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
110
|
+
`)}function qz(e){return function(){return e}}var Uy=function(){try{var e=i6(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Vz=Uy?function(e,t){return Uy(e,"toString",{configurable:!0,enumerable:!1,value:qz(t),writable:!0})}:l6,Gz=h6(Vz);function Qz(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function Iz(e,t,n,r){for(var a=e.length,l=n+-1;++l<a;)if(t(e[l],l,e))return l;return-1}function Xz(e){return e!==e}function Yz(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function Zz(e,t,n){return t===t?Yz(e,t,n):Iz(e,Xz,n)}function Wz(e,t){var n=e==null?0:e.length;return!!n&&Zz(e,t,0)>-1}var $z=1,Jz=2,eP=8,tP=16,nP=32,rP=64,aP=128,lP=256,iP=512,oP=[["ary",aP],["bind",$z],["bindKey",Jz],["curry",eP],["curryRight",tP],["flip",iP],["partial",nP],["partialRight",rP],["rearg",lP]];function sP(e,t){return Qz(oP,function(n){var r="_."+n[0];t&n[1]&&!Wz(e,r)&&e.push(r)}),e.sort()}function m6(e,t,n){var r=t+"";return Gz(e,Fz(r,sP(Uz(r),n)))}var uP=4,cP=8,By=32,Fy=64;function g6(e,t,n,r,a,l,i,o,s,u){var f=t&cP,c=f?i:void 0,d=f?void 0:i,h=f?l:void 0,m=f?void 0:l;t|=f?By:Fy,t&=~(f?Fy:By),t&uP||(t&=-4);var v=[e,t,a,h,c,m,d,o,s,u],y=n.apply(void 0,v);return Lz(e)&&p6(y,v),y.placeholder=r,m6(y,e,t)}function v6(e){var t=e;return t.placeholder}var dP=9007199254740991,fP=/^(?:0|[1-9]\d*)$/;function hP(e,t){var n=typeof e;return t=t??dP,!!t&&(n=="number"||n!="symbol"&&fP.test(e))&&e>-1&&e%1==0&&e<t}var pP=Math.min;function mP(e,t){for(var n=e.length,r=pP(t.length,n),a=f6(e);r--;){var l=t[r];e[r]=hP(l,n)?a[l]:void 0}return e}var qy="__lodash_placeholder__";function Vd(e,t){for(var n=-1,r=e.length,a=0,l=[];++n<r;){var i=e[n];(i===t||i===qy)&&(e[n]=qy,l[a++]=n)}return l}var gP=1,vP=2,bP=8,yP=16,xP=128,wP=512;function i1(e,t,n,r,a,l,i,o,s,u){var f=t&xP,c=t&gP,d=t&vP,h=t&(bP|yP),m=t&wP,v=d?void 0:Ys(e);function y(){for(var b=arguments.length,g=Array(b),x=b;x--;)g[x]=arguments[x];if(h)var S=v6(y),C=Mz(g,S);if(r&&(g=u6(g,r,a,h)),l&&(g=c6(g,l,i,h)),b-=C,h&&b<u){var E=Vd(g,S);return g6(e,t,i1,y.placeholder,n,g,E,o,s,u-b)}var M=c?n:this,N=d?M[e]:e;return b=g.length,o?g=mP(g,o):m&&b>1&&g.reverse(),f&&s<b&&(g.length=s),this&&this!==Ml&&this instanceof y&&(N=v||Ys(N)),N.apply(M,g)}return y}function SP(e,t,n){var r=Ys(e);function a(){for(var l=arguments.length,i=Array(l),o=l,s=v6(a);o--;)i[o]=arguments[o];var u=l<3&&i[0]!==s&&i[l-1]!==s?[]:Vd(i,s);if(l-=u.length,l<n)return g6(e,t,i1,a.placeholder,void 0,i,u,void 0,void 0,n-l);var f=this&&this!==Ml&&this instanceof a?r:e;return s6(f,this,i)}return a}var CP=1;function EP(e,t,n,r){var a=t&CP,l=Ys(e);function i(){for(var o=-1,s=arguments.length,u=-1,f=r.length,c=Array(f+s),d=this&&this!==Ml&&this instanceof i?l:e;++u<f;)c[u]=r[u];for(;s--;)c[u++]=arguments[++o];return s6(d,a?n:this,c)}return i}var Vy="__lodash_placeholder__",mh=1,MP=2,OP=4,Gy=8,qo=128,Qy=256,RP=Math.min;function kP(e,t){var n=e[1],r=t[1],a=n|r,l=a<(mh|MP|qo),i=r==qo&&n==Gy||r==qo&&n==Qy&&e[7].length<=t[8]||r==(qo|Qy)&&t[7].length<=t[8]&&n==Gy;if(!(l||i))return e;r&mh&&(e[2]=t[2],a|=n&mh?0:OP);var o=t[3];if(o){var s=e[3];e[3]=s?u6(s,o,t[4]):o,e[4]=s?Vd(e[3],Vy):t[4]}return o=t[5],o&&(s=e[5],e[5]=s?c6(s,o,t[6]):o,e[6]=s?Vd(e[5],Vy):t[6]),o=t[7],o&&(e[7]=o),r&qo&&(e[8]=e[8]==null?t[8]:RP(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}var TP="Expected a function",Iy=1,DP=2,Xy=8,Yy=16,Zy=32,jP=64,Wy=Math.max;function NP(e,t,n,r,a,l,i,o){var s=t&DP;if(!s&&typeof e!="function")throw new TypeError(TP);var u=r?r.length:0;if(u||(t&=-97,r=a=void 0),i=i===void 0?i:Wy(_y(i),0),o=o===void 0?o:_y(o),u-=a?a.length:0,t&jP){var f=r,c=a;r=a=void 0}var d=s?void 0:d6(e),h=[e,t,n,r,a,f,c,l,i,o];if(d&&kP(h,d),e=h[0],t=h[1],n=h[2],r=h[3],a=h[4],o=h[9]=h[9]===void 0?s?0:e.length:Wy(h[9]-u,0),!o&&t&(Xy|Yy)&&(t&=-25),!t||t==Iy)var m=Sz(e,t,n);else t==Xy||t==Yy?m=SP(e,t,o):(t==Zy||t==(Iy|Zy))&&!a.length?m=EP(e,t,n,r):m=i1.apply(void 0,h);var v=d?o6:p6;return m6(v(m,h),e,t)}var AP=8;function Gd(e,t,n){t=n?void 0:t;var r=NP(e,AP,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=Gd.placeholder,r}Gd.placeholder={};function LP(e){const t=e[0],n=e[1],r=e[2];let a,l,i;return a=t*1+n*0+r*1.13983,l=t*1+n*-.39465+r*-.5806,i=t*1+n*2.02311+r*0,a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),i=Math.min(Math.max(0,i),1),[a*255,l*255,i*255]}function _P(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=t*.299+n*.587+r*.114,l=t*-.14713+n*-.28886+r*.436,i=t*.615+n*-.51499+r*-.10001;return[a,l,i]}const zP={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},PP={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},HP={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},KP={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},UP={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},BP={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},FP={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},qP={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},VP={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},GP={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},QP={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},IP={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},XP={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},YP={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},ZP={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},WP={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},$P={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},JP={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},eH={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},tH={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},nH={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},rH={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},aH={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},lH={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},iH={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},oH={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},sH={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},uH={scheme:"nicinabox",author:"nicinabox (http://github.com/nicinabox)",base00:"#2A2F3A",base01:"#3C444F",base02:"#4F5A65",base03:"#BEBEBE",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#FFFFFF",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#FC6D24",base0A:"#ddb26f",base0B:"#A1C659",base0C:"#12cfc0",base0D:"#6FB3D2",base0E:"#D381C3",base0F:"#deaf8f"},cH={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},dH={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},fH={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},hH={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},pH={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},mH={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},gH={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},vH={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},bH={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},yH={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},b6={threezerotwofour:zP,apathy:PP,ashes:HP,atelierDune:KP,atelierForest:UP,atelierHeath:BP,atelierLakeside:FP,atelierSeaside:qP,bespin:VP,brewer:GP,bright:QP,chalk:IP,codeschool:XP,colors:YP,default:ZP,eighties:WP,embers:$P,flat:JP,google:eH,grayscale:tH,greenscreen:nH,harmonic:rH,hopscotch:aH,isotope:lH,marrakesh:iH,mocha:oH,monokai:sH,nicinabox:uH,ocean:cH,paraiso:dH,pop:fH,railscasts:hH,shapeshifter:pH,solarized:mH,summerfruit:gH,tomorrow:vH,tube:bH,twilight:yH},y6=b6.default,$y=Object.keys(y6),xH=e=>e<.25?1:e<.5?.9-e:1.1-e,wH=e=>{const t=jy(e),[n,r,a]=_P(t.array()),l=[xH(n),r,a],i=LP(l);return jy.rgb(i).hex()},ql=e=>t=>({className:[t.className,e.className].filter(Boolean).join(" "),style:{...t.style||{},...e.style||{}}}),SH=(e,t)=>{if(e===void 0)return t;if(t===void 0)return e;const n=typeof e,r=typeof t;switch(n){case"string":switch(r){case"string":return[t,e].filter(Boolean).join(" ");case"object":return ql({className:e,style:t});case"function":return(a,...l)=>ql({className:e})(t(a,...l))}break;case"object":switch(r){case"string":return ql({className:t,style:e});case"object":return{...t,...e};case"function":return(a,...l)=>ql({style:e})(t(a,...l))}break;case"function":switch(r){case"string":return(a,...l)=>e(ql(a)({className:t}),...l);case"object":return(a,...l)=>e(ql(a)({style:t}),...l);case"function":return(a,...l)=>e(t(a,...l),...l)}}},CH=(e,t)=>{const n=Object.keys(t);for(const r in e)n.indexOf(r)===-1&&n.push(r);return n.reduce((r,a)=>(r[a]=SH(e[a],t[a]),r),{})},EH=(e,t,...n)=>{if(t===null)return e;Array.isArray(t)||(t=[t]);const r=t.map(a=>e[a]).filter(Boolean).reduce((a,l)=>(typeof l=="string"?a.className=[a.className,l].filter(Boolean).join(" "):typeof l=="object"?a.style={...a.style,...l}:typeof l=="function"&&(a={...a,...l(a,...n)}),a),{className:"",style:{}});return r.className||delete r.className,Object.keys(r.style).length===0&&delete r.style,r},dm=e=>Object.keys(e).reduce((t,n)=>(t[n]=/^base/.test(n)?wH(e[n]):n==="scheme"?e[n]+":inverted":e[n],t),{}),MH=Gd((e,t={},n={},...r)=>{const{defaultBase16:a=y6,base16Themes:l=null}=t,i=OH(n,l);i&&(n={...i,...n});const o=$y.reduce((c,d)=>(c[d]=n[d]||a[d],c),{}),s=Object.keys(n).reduce((c,d)=>($y.indexOf(d)===-1&&(c[d]=n[d]),c),{}),u=e(o),f=CH(s,u);return Gd(EH,2)(f,...r)},3),x6=e=>!!e.extend,OH=(e,t)=>{if(e&&x6(e)&&e.extend&&(e=e.extend),typeof e=="string"){const[n,r]=e.split(":");t?e=t[n]:e=b6[n],r==="inverted"&&(e=dm(e))}return e&&Object.prototype.hasOwnProperty.call(e,"base00")?e:void 0},RH=e=>typeof e=="string"?`${e}:inverted`:e&&x6(e)&&e.extend?typeof e.extend=="string"?{...e,extend:`${e.extend}:inverted`}:{...e,extend:dm(e.extend)}:e&&dm(e);function kH(e){const t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&typeof e[Symbol.iterator]=="function"?"Iterable":t==="Custom"&&e.constructor!==Object&&e instanceof Object?"Object":t}function w6({styling:e,arrowStyle:t="single",expanded:n,nodeType:r,onClick:a}){return O.createElement("div",{...e("arrowContainer",t),onClick:a},O.createElement("div",{...e(["arrow","arrowSign"],r,n,t)},"▶",t==="double"&&O.createElement("div",{...e(["arrowSign","arrowSignInner"])},"▶")))}function TH(e,t){return e==="Object"?Object.keys(t).length:e==="Array"?t.length:1/0}function DH(e){return typeof e.set=="function"}function jH(e,t,n,r=0,a=1/0){let l;if(e==="Object"){let i=Object.getOwnPropertyNames(t);n&&i.sort(n===!0?void 0:n),i=i.slice(r,a+1),l={entries:i.map(o=>({key:o,value:t[o]}))}}else if(e==="Array")l={entries:t.slice(r,a+1).map((i,o)=>({key:o+r,value:i}))};else{let i=0;const o=[];let s=!0;const u=DH(t);for(const f of t){if(i>a){s=!1;break}r<=i&&(u&&Array.isArray(f)?typeof f[0]=="string"||typeof f[0]=="number"?o.push({key:f[0],value:f[1]}):o.push({key:`[entry ${i}]`,value:{"[key]":f[0],"[value]":f[1]}}):o.push({key:i,value:f})),i++}l={hasMore:!s,entries:o}}return l}function gh(e,t,n){const r=[];for(;t-e>n*n;)n=n*n;for(let a=e;a<=t;a+=n)r.push({from:a,to:Math.min(t,a+n-1)});return r}function NH(e,t,n,r,a=0,l=1/0){const i=jH.bind(null,e,t,n);if(!r)return i().entries;const o=l<1/0,s=Math.min(l-a,TH(e,t));if(e!=="Iterable"){if(s<=r||r<7)return i(a,l).entries}else if(s<=r&&!o)return i(a,l).entries;let u;if(e==="Iterable"){const{hasMore:f,entries:c}=i(a,a+r-1);u=f?[...c,...gh(a+r,a+2*r-1,r)]:c}else u=o?gh(a,l,r):[...i(0,r-5).entries,...gh(r-4,s-5,r),...i(s-4,s-1).entries];return u}function AH(e){const{styling:t,from:n,to:r,renderChildNodes:a,nodeType:l}=e,[i,o]=p.useState(!1),s=p.useCallback(()=>{o(!i)},[i]);return i?O.createElement("div",{...t("itemRange",i)},a(e,n,r)):O.createElement("div",{...t("itemRange",i),onClick:s},O.createElement(w6,{nodeType:l,styling:t,expanded:!1,onClick:s,arrowStyle:"double"}),`${n} ... ${r}`)}function LH(e){return e.to!==void 0}function S6(e,t,n){const{nodeType:r,data:a,collectionLimit:l,circularCache:i,keyPath:o,postprocessValue:s,sortObjectKeys:u}=e,f=[];return NH(r,a,u,l,t,n).forEach(c=>{if(LH(c))f.push(O.createElement(AH,{...e,key:`ItemRange--${c.from}-${c.to}`,from:c.from,to:c.to,renderChildNodes:S6}));else{const{key:d,value:h}=c,m=i.includes(h);f.push(O.createElement(C6,{...e,postprocessValue:s,collectionLimit:l,key:`Node--${d}`,keyPath:[d,...o],value:s(h),circularCache:[...i,h],isCircular:m,hideRoot:!1}))}}),f}function o1(e){const{circularCache:t=[],collectionLimit:n,createItemString:r,data:a,expandable:l,getItemString:i,hideRoot:o,isCircular:s,keyPath:u,labelRenderer:f,level:c=0,nodeType:d,nodeTypeIndicator:h,shouldExpandNodeInitially:m,styling:v}=e,[y,b]=p.useState(s?!1:m(u,a,c)),g=p.useCallback(()=>{l&&b(!y)},[l,y]),x=y||o&&c===0?S6({...e,circularCache:t,level:c+1}):null,S=O.createElement("span",{...v("nestedNodeItemType",y)},h),C=i(d,a,S,r(a,n),u),E=[u,d,y,l];return o?O.createElement("li",{...v("rootNode",...E)},O.createElement("ul",{...v("rootNodeChildren",...E)},x)):O.createElement("li",{...v("nestedNode",...E)},l&&O.createElement(w6,{styling:v,nodeType:d,expanded:y,onClick:g}),O.createElement("label",{...v(["label","nestedNodeLabel"],...E),onClick:g},f(...E)),O.createElement("span",{...v("nestedNodeItemString",...E),onClick:g},C),O.createElement("ul",{...v("nestedNodeChildren",...E)},x))}function _H(e){const t=Object.getOwnPropertyNames(e).length;return`${t} ${t!==1?"keys":"key"}`}function zH({data:e,...t}){return O.createElement(o1,{...t,data:e,nodeType:"Object",nodeTypeIndicator:t.nodeType==="Error"?"Error()":"{}",createItemString:_H,expandable:Object.getOwnPropertyNames(e).length>0})}function PH(e){return`${e.length} ${e.length!==1?"items":"item"}`}function HH({data:e,...t}){return O.createElement(o1,{...t,data:e,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:PH,expandable:e.length>0})}function KH(e,t){let n=0,r=!1;if(Number.isSafeInteger(e.size))n=e.size;else for(const a of e){if(t&&n+1>t){r=!0;break}n+=1}return`${r?">":""}${n} ${n!==1?"entries":"entry"}`}function UH(e){return O.createElement(o1,{...e,nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:KH,expandable:!0})}function cr({nodeType:e,styling:t,labelRenderer:n,keyPath:r,valueRenderer:a,value:l,valueGetter:i=o=>o}){return O.createElement("li",{...t("value",e,r)},O.createElement("label",{...t(["label","valueLabel"],e,r)},n(r,e,!1,!1)),O.createElement("span",{...t("valueText",e,r)},a(i(l),l,...r)))}function C6({getItemString:e,keyPath:t,labelRenderer:n,styling:r,value:a,valueRenderer:l,isCustomNode:i,...o}){const s=i(a)?"Custom":kH(a),u={getItemString:e,key:t[0],keyPath:t,labelRenderer:n,nodeType:s,styling:r,value:a,valueRenderer:l},f={...o,...u,data:a,isCustomNode:i};switch(s){case"Object":case"Error":case"WeakMap":case"WeakSet":return O.createElement(zH,{...f});case"Array":return O.createElement(HH,{...f});case"Iterable":case"Map":case"Set":return O.createElement(UH,{...f});case"String":return O.createElement(cr,{...u,valueGetter:c=>`"${c}"`});case"Number":return O.createElement(cr,{...u});case"Boolean":return O.createElement(cr,{...u,valueGetter:c=>c?"true":"false"});case"Date":return O.createElement(cr,{...u,valueGetter:c=>c.toISOString()});case"Null":return O.createElement(cr,{...u,valueGetter:()=>"null"});case"Undefined":return O.createElement(cr,{...u,valueGetter:()=>"undefined"});case"Function":case"Symbol":return O.createElement(cr,{...u,valueGetter:c=>c.toString()});case"Custom":return O.createElement(cr,{...u});default:return O.createElement(cr,{...u,valueGetter:()=>`<${s}>`})}}const BH={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},FH=e=>({BACKGROUND_COLOR:e.base00,TEXT_COLOR:e.base07,STRING_COLOR:e.base0B,DATE_COLOR:e.base0B,NUMBER_COLOR:e.base09,BOOLEAN_COLOR:e.base09,NULL_COLOR:e.base08,UNDEFINED_COLOR:e.base08,FUNCTION_COLOR:e.base08,SYMBOL_COLOR:e.base08,LABEL_COLOR:e.base0D,ARROW_COLOR:e.base0D,ITEM_STRING_COLOR:e.base0B,ITEM_STRING_EXPANDED_COLOR:e.base03}),qH=e=>({String:e.STRING_COLOR,Date:e.DATE_COLOR,Number:e.NUMBER_COLOR,Boolean:e.BOOLEAN_COLOR,Null:e.NULL_COLOR,Undefined:e.UNDEFINED_COLOR,Function:e.FUNCTION_COLOR,Symbol:e.SYMBOL_COLOR}),VH=e=>{const t=FH(e);return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:t.BACKGROUND_COLOR},value:({style:n},r,a)=>({style:{...n,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:a.length>1?"2.125em":"1.25em",textIndent:"-0.5em",wordBreak:"break-all"}}),label:{display:"inline-block",color:t.LABEL_COLOR},valueLabel:{margin:"0 0.5em 0 0"},valueText:({style:n},r)=>({style:{...n,color:qH(t)[r]}}),itemRange:(n,r)=>({style:{paddingTop:r?0:"0.25em",cursor:"pointer",color:t.LABEL_COLOR}}),arrow:({style:n},r,a)=>({style:{...n,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:a?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:a?"rotateZ(90deg)":"rotateZ(0deg)",transform:a?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"}}),arrowContainer:({style:n},r)=>({style:{...n,display:"inline-block",paddingRight:"0.5em",paddingLeft:r==="double"?"1em":0,cursor:"pointer"}}),arrowSign:{color:t.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:({style:n},r,a,l,i)=>({style:{...n,position:"relative",paddingTop:"0.25em",marginLeft:r.length>1?"0.875em":0,paddingLeft:i?0:"1.125em"}}),rootNode:{padding:0,margin:0},nestedNodeLabel:({style:n},r,a,l,i)=>({style:{...n,margin:0,padding:0,WebkitUserSelect:i?"inherit":"text",MozUserSelect:i?"inherit":"text",cursor:i?"pointer":"default"}}),nestedNodeItemString:({style:n},r,a,l)=>({style:{...n,paddingLeft:"0.5em",cursor:"default",color:l?t.ITEM_STRING_EXPANDED_COLOR:t.ITEM_STRING_COLOR}}),nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:({style:n},r,a)=>({style:{...n,padding:0,margin:0,listStyle:"none",display:a?"block":"none"}}),rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}},GH=MH(VH,{defaultBase16:BH}),Jy=e=>e,QH=(e,t,n)=>n===0,IH=(e,t,n,r)=>O.createElement("span",null,n," ",r),XH=([e])=>O.createElement("span",null,e,":"),YH=()=>!1;function xs({data:e,theme:t,invertTheme:n,keyPath:r=["root"],labelRenderer:a=XH,valueRenderer:l=Jy,shouldExpandNodeInitially:i=QH,hideRoot:o=!1,getItemString:s=IH,postprocessValue:u=Jy,isCustomNode:f=YH,collectionLimit:c=50,sortObjectKeys:d=!1}){const h=p.useMemo(()=>GH(n?RH(t):t),[t,n]);return O.createElement("ul",{...h("tree")},O.createElement(C6,{keyPath:o?[]:r,value:u(e),isCustomNode:f,styling:h,labelRenderer:a,valueRenderer:l,shouldExpandNodeInitially:i,hideRoot:o,getItemString:s,postprocessValue:u,collectionLimit:c,sortObjectKeys:d}))}var zf=function(e){var t=e.actions;return w.jsxs(fN,{children:[w.jsx(Vg,{className:"flex size-7 items-center justify-center rounded-md bg-slate-50 text-slate-900 outline-none transition duration-150 ease-in-out hover:bg-slate-100 focus:bg-slate-100 radix-state-open:bg-slate-100 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700 dark:focus:bg-slate-700 dark:radix-state-open:bg-slate-700","aria-label":"Action menu",children:w.jsx(XR,{width:18,height:18})}),w.jsx(uN,{placement:"bottom left",className:"space-y-0.5 rounded-md border border-slate-200 bg-white/95 p-1 shadow-lg backdrop-blur-md dark:border-slate-700 dark:bg-slate-800/95",offset:5,children:w.jsx(mN,{children:t.map(function(n){return w.jsxs(yN,{className:"flex cursor-default items-center space-x-1.5 rounded-md py-1.5 pl-1.5 pr-8 text-sm font-medium text-slate-900 outline-none transition duration-150 ease-in-out focus:bg-slate-100 dark:text-slate-100 dark:focus:bg-slate-700",onAction:n.onSelect,children:[n.icon,w.jsx("span",{children:n.label})]},n.label)})})})]})},ZH=function(e){var t=e.job,n=e.queueName,r=e.queue,a=e.onRemove,l=be.job.retry.useMutation(),i=l.mutate,o=l.isSuccess,s=be.job.discard.useMutation(),u=s.mutate,f=s.isSuccess,c=be.job.rerun.useMutation(),d=c.mutate,h=c.isSuccess,m=be.job.remove.useMutation(),v=m.mutate,y=m.isSuccess;p.useEffect(function(){(o||f||h||y)&&(a==null||a())},[o,f,h,y,a]);var b={queueName:n,jobId:t.id},g=(r==null?void 0:r.supports.retry)!==!1,x=St(St(St([],t.failedReason&&g?[{label:"Retry",onSelect:function(){i(b)},icon:w.jsx(_i,{})}]:[],!0),t.finishedAt?[{label:"Rerun",onSelect:function(){d(b)},icon:w.jsx(_i,{})}]:[{label:"Discard",onSelect:function(){u(b)},icon:w.jsx(ek,{})}],!0),[{label:"Remove",onSelect:function(){v(b)},icon:w.jsx($i,{})}],!1);return w.jsx(zf,{actions:x})},Ca=function(e){var t=e.colorScheme,n=t===void 0?"slate":t,r=e.variant,a=r===void 0?"outline":r,l=e.size,i=l===void 0?"md":l,o=e.icon,s=e.label,u=e.isLoading,f=e.onClick,c=e.disabled;return w.jsxs("button",{onClick:f,disabled:u||c,className:zi("flex items-center space-x-1 rounded-md border text-sm font-medium transition-colors duration-150",{"py-0.5":i==="sm","py-1":i==="md","py-1.5":i==="lg"},[i==="sm"&&o?"pl-1.5 pr-2.5":"px-2.5",i==="md"&&o?"pl-2 pr-3":"px-3",i==="lg"&&o?"pl-2.5 pr-4":"px-4"],{"cursor-not-allowed opacity-50":u||c,"border-yellow-900 text-yellow-900 hover:bg-yellow-50 focus:bg-yellow-50 dark:border-yellow-400 dark:text-yellow-400 dark:hover:bg-yellow-950/30 dark:focus:bg-yellow-950/30":n==="yellow"&&a==="outline","border-slate-900 text-slate-900 hover:bg-slate-50 focus:bg-slate-50 dark:border-slate-400 dark:text-slate-300 dark:hover:bg-slate-800 dark:focus:bg-slate-800":n==="slate"&&a==="outline","border-red-900 text-red-900 hover:bg-red-50 focus:bg-red-50 dark:border-red-400 dark:text-red-400 dark:hover:bg-red-950/30 dark:focus:bg-red-950/30":n==="red"&&a==="outline","border-yellow-800 bg-yellow-800 text-yellow-50 hover:border-yellow-900 hover:bg-yellow-900 focus:border-yellow-900 focus:bg-yellow-900 dark:border-yellow-600 dark:bg-yellow-600 dark:hover:border-yellow-500 dark:hover:bg-yellow-500 dark:focus:border-yellow-500 dark:focus:bg-yellow-500":n==="yellow"&&a==="filled","border-slate-800 bg-slate-800 text-slate-50 hover:border-slate-900 hover:bg-slate-900 focus:border-slate-900 focus:bg-slate-900 dark:border-slate-600 dark:bg-slate-600 dark:hover:border-slate-500 dark:hover:bg-slate-500 dark:focus:border-slate-500 dark:focus:bg-slate-500":n==="slate"&&a==="filled","border-red-800 bg-red-800 text-red-50 hover:border-red-900 hover:bg-red-900 focus:border-red-900 focus:bg-red-900 dark:border-red-600 dark:bg-red-600 dark:hover:border-red-500 dark:hover:bg-red-500 dark:focus:border-red-500 dark:focus:bg-red-500":n==="red"&&a==="filled"}),children:[u?w.jsx("div",{className:"flex w-4 justify-center",children:w.jsx(jg,{width:10,height:10,className:"animate-spin"})}):o?w.jsx("div",{className:"flex w-4 justify-center",children:o}):null,w.jsx("span",{children:s})]})},WH=function(e){var t=e.job,n=e.queueName,r=e.onDismiss,a=be.queue.byName.useQuery({queueName:n}),l=be.job.retry.useMutation().mutate,i=be.job.logs.useQuery({jobId:t.id,queueName:n}).data;return w.jsx(Af,{isOpen:!0,isDismissable:!0,onOpenChange:function(o){o||r()},className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:w.jsx(jf,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(o){var s,u,f=o.close;return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"mb-4 flex items-start justify-between",children:[w.jsxs("div",{children:[w.jsx(Nf,{className:"text-xl font-semibold text-slate-900 dark:text-slate-100",children:t.name}),w.jsxs("span",{className:"text-sm text-slate-500 dark:text-slate-400",children:["#",t.id]})]}),w.jsxs("div",{className:"flex items-center space-x-1",children:[w.jsx(ZH,{queueName:n,job:t,queue:(s=a.data)!==null&&s!==void 0?s:void 0,onRemove:r}),w.jsx("button",{className:"flex size-7 items-center justify-center rounded-md bg-slate-50 text-slate-900 outline-none transition duration-150 ease-in-out hover:bg-slate-100 focus:bg-slate-100 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700 dark:focus:bg-slate-700","aria-label":"Close",onClick:function(){r(),f()},children:w.jsx(Dg,{})})]})]}),w.jsxs("div",{children:[t.failedReason?w.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[w.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Error"}),w.jsx("p",{className:"text-sm text-red-600 dark:text-red-400",children:t.failedReason}),w.jsx(Ca,{label:"Retry",size:"sm",icon:w.jsx(_i,{width:14}),onClick:function(){l({queueName:n,jobId:t.id}),r()}})]}):null,w.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[w.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),w.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:w.jsx(xs,{data:t.opts,theme:"monokai"})})]}),w.jsxs("div",{className:"space-y-2 py-4",children:[w.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Data"}),w.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:w.jsx(xs,{data:t.data,theme:"monokai"})})]}),t.returnValue!==void 0&&t.returnValue!==null&&w.jsxs("div",{className:"space-y-2 border-t border-t-slate-200 py-4 dark:border-b-slate-700",children:[w.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Return value"}),w.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:w.jsx(xs,{data:t.returnValue,theme:"monokai"})})]}),!((u=a.data)===null||u===void 0)&&u.supports.logs&&i!=null&&i.length?w.jsxs("div",{className:"space-y-2 border-t border-t-slate-200 pt-4 dark:border-t-slate-700",children:[w.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Logs"}),w.jsx("div",{className:"space-y-1",children:i==null?void 0:i.map(function(c,d){return w.jsxs("div",{className:"flex items-center space-x-2",children:[w.jsx("div",{className:"h-4 w-1 rounded-sm bg-slate-300 dark:bg-slate-600"}),w.jsx("p",{className:"font-mono text-sm text-slate-900 dark:text-slate-100",children:c})]},d)})})]}):null]})]})}})})},hc=vx(),$H=[hc.display({id:"select",header:function(e){var t=e.table;return w.jsx(Hd,{checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),onCheckedChange:function(){t.toggleAllRowsSelected()}})},cell:function(e){var t=e.row,n=e.table;return w.jsx(Hd,{className:n.getIsSomeRowsSelected()||n.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:t.getIsSomeSelected()?"indeterminate":t.getIsSelected(),onCheckedChange:t.getToggleSelectedHandler()})}}),hc.accessor("name",{cell:function(e){return w.jsxs("div",{className:"flex w-full items-center space-x-2",children:[w.jsx("span",{className:"max-w-fit grow basis-full truncate text-slate-900 dark:text-slate-200",children:e.cell.row.original.name}),w.jsxs("span",{className:"max-w-[20%] shrink truncate text-sm text-slate-500 dark:text-slate-400",children:["#",e.cell.row.original.id]})]})},header:"Name"}),hc.display({id:"lifecycle",header:function(){return"Lifecycle"},cell:function(e){var t=e.row.original,n=t.createdAt,r=t.processedAt,a=t.finishedAt,l=t.status,i=t.retriedAt;return w.jsxs("div",{className:"flex items-center space-x-3",children:[w.jsx(vh,{date:new Date(n),variant:"added"}),l==="waiting"?w.jsx(e2,{}):null,r?w.jsxs(w.Fragment,{children:[w.jsx(t2,{date:new Date(r),baseDate:new Date(n)}),w.jsx(vh,{date:new Date(r),variant:i?"retried":"processing"})]}):null,l==="active"?w.jsx(e2,{}):null,a&&r?w.jsxs(w.Fragment,{children:[w.jsx(t2,{date:new Date(a),baseDate:new Date(r)}),w.jsx(vh,{date:new Date(a),variant:l==="failed"?"failed":"completed"})]}):null]})}}),hc.display({id:"options",header:"Options",cell:function(e){var t,n=e.row.original.opts;return w.jsxs("div",{className:"flex items-center space-x-2",children:[n.priority?w.jsx(Bo,{icon:w.jsx(ZR,{width:12,height:12}),label:n.priority}):null,n.attempts&&n.attempts>1?w.jsx(Bo,{icon:w.jsx(_i,{width:12,height:12}),label:n.attempts}):null,n.lifo?w.jsx(Bo,{icon:w.jsx(yk,{width:12,height:12}),label:"LIFO"}):null,n.delay?w.jsx(Bo,{icon:w.jsx(nk,{width:12,height:12}),label:n.delay}):null,!((t=n.repeat)===null||t===void 0)&&t.count?w.jsx(Bo,{icon:w.jsx(ak,{width:12,height:12}),label:n.repeat.count}):null]})}})],JH=function(e){var t=e.jobs,n=e.totalJobs,r=e.onBottomInView,a=e.isLoading,l=e.isFetchingNextPage,i=e.queueName,o=e.status,s=p.useState({}),u=s[0],f=s[1],c=qL({threshold:0,onChange:function(C){C&&r()}}).ref,d=kx({data:t,columns:$H,getCoreRowModel:Rx(),state:{rowSelection:u},onRowSelectionChange:f}),h=t.length===0,m=t.length/(n||0)*100,v=p.useState(null),y=v[0],b=v[1],g=be.job.retry.useMutation().mutate,x=be.job.rerun.useMutation().mutate,S=be.job.bulkRemove.useMutation().mutate;return p.useEffect(function(){d.resetRowSelection()},[o]),w.jsxs("div",{children:[y?w.jsx(WH,{queueName:i,job:y,onDismiss:function(){return b(null)}}):null,w.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:a?w.jsx(Px,{}):w.jsxs("div",{children:[d.getHeaderGroups().map(function(C,E){return w.jsx("div",{className:"sticky top-0 grid grid-cols-[auto,350px,576px,1fr] rounded-t-md border-b border-slate-200 bg-slate-100/50 p-2 backdrop-blur-md dark:border-slate-700 dark:bg-slate-900/50",children:C.headers.map(function(M){return w.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(E!==0?"pr-10":"pr-3"),children:M.isPlaceholder?null:Ld(M.column.columnDef.header,M.getContext())},M.id)})},C.id)}),d.getRowModel().rows.map(function(C,E){return w.jsx(zx,{isLastRow:d.getRowModel().rows.length!==E+1,isSelected:C.getIsSelected(),onClick:function(){return b(C.original)},layoutVariant:"job",children:C.getVisibleCells().map(function(M,N){return w.jsx("div",{className:"flex h-full items-center ".concat(N!==0?"pr-10":"pr-3"),children:Ld(M.column.columnDef.cell,M.getContext())},M.id)})},C.id)}),!a&&h?w.jsx("div",{className:"flex items-center justify-center py-10",children:w.jsx("p",{className:"text-slate-500 dark:text-slate-400",children:"No jobs found"})}):null]})}),!a&&h?null:w.jsx("div",{ref:c,className:"my-3 flex justify-center",children:w.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[w.jsxs("p",{className:"text-xs text-slate-500 dark:text-slate-400",children:["You've viewed ",t.length," of ",n," jobs"]}),w.jsx(wN,{value:m,children:function(C){var E=C.percentage;return w.jsx(w.Fragment,{children:w.jsx("div",{style:{transform:"translateZ(0)"},className:"relative h-0.5 w-[144px] overflow-hidden rounded-sm bg-slate-200 dark:bg-slate-700",children:w.jsx("div",{className:"size-full bg-cyan-500 transition duration-300 ease-in-out",style:{transform:"translateX(-".concat(100-E,"%)")}})})})}}),l?w.jsx(jg,{className:"animate-spin text-slate-300 dark:text-slate-600"}):null]})}),d.getSelectedRowModel().rows.length>0?w.jsx("div",{className:"pointer-events-none sticky bottom-0 flex w-full items-center justify-center pb-5",children:w.jsxs("div",{className:"pointer-events-auto flex items-center space-x-3 rounded-lg border-slate-100 bg-white/90 px-3 py-2 text-sm shadow-lg backdrop-blur dark:border-slate-700 dark:bg-slate-900/90",children:[w.jsxs("p",{className:"text-slate-900 dark:text-slate-100",children:[d.getSelectedRowModel().rows.length," selected"]}),o==="completed"||o==="failed"?w.jsx(Ca,{label:o==="failed"?"Retry":"Rerun",icon:w.jsx(_i,{}),size:"sm",onClick:function(){d.getSelectedRowModel().rows.forEach(function(C){o==="failed"?g({queueName:i,jobId:C.original.id}):x({queueName:i,jobId:C.original.id})}),d.resetRowSelection()}}):null,w.jsx(Ca,{label:"Delete",colorScheme:"red",icon:w.jsx($i,{}),size:"sm",onClick:function(){S({queueName:i,jobIds:d.getSelectedRowModel().rows.map(function(C){return C.original.id})}),d.resetRowSelection()}})]})}):null]})},vh=function(e){var t=e.variant,n=e.date,r={added:"Added to queue",completed:"Completed",failed:"Failed",processing:"Processed",retried:"Retried"};return w.jsx(r1,{message:"".concat(r[t]," ").concat(_x(n)," ago"),children:w.jsxs("div",{className:"flex items-center space-x-1.5",children:[t==="added"&&w.jsx(D3,{width:14,height:14,className:"rounded-full bg-cyan-50 text-cyan-900 dark:bg-cyan-950 dark:text-cyan-400"}),t==="processing"&&w.jsx(zR,{width:14,height:14,className:"rounded-full bg-slate-50 text-slate-900 dark:bg-slate-800 dark:text-slate-300"}),t==="retried"&&w.jsx(_i,{width:14,height:14,className:"rounded-full bg-amber-50 text-amber-900 dark:bg-amber-950 dark:text-amber-400"}),t==="completed"&&w.jsx(O3,{width:14,height:14,className:"rounded-full bg-green-50 text-green-900 dark:bg-green-950 dark:text-green-400"}),t==="failed"&&w.jsx(R3,{width:14,height:14,className:"rounded-full bg-red-50 text-red-900 dark:bg-red-950 dark:text-red-400"}),w.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:Lx(n,"".concat(t==="added"?"MM/dd ":"","HH:mm:ss"))})]})})},e2=function(){return w.jsxs("div",{className:"flex items-center space-x-1.5",children:[w.jsx(Lp,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"}),w.jsx(jg,{width:14,height:14,className:"animate-spin text-slate-300 dark:text-slate-600"})]})},t2=function(e){var t=e.date,n=e.baseDate;return w.jsxs("div",{className:"flex items-center space-x-1.5",children:[w.jsx(Lp,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"}),w.jsx("p",{className:"w-7 rounded-sm text-center text-xs text-slate-500 dark:text-slate-400",children:PL(t,n,{locale:{formatDistance:function(r,a){return r==="xSeconds"?"".concat(a,"s"):r==="xMinutes"?"".concat(a,"m"):r==="xHours"?"".concat(a,"h"):r==="xDays"?"".concat(a,"d"):r==="xMonths"?"".concat(a,"mo"):r==="xYears"?"".concat(a,"y"):""}}})}),w.jsx(Lp,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"})]})},eK=function(e){var t=e.title,n=e.description,r=e.action,a=e.children;return w.jsxs(hx,{children:[w.jsx(Vg,{children:a}),w.jsx(Af,{isDismissable:!0,className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:w.jsx(jf,{role:"alertdialog",className:"fixed left-1/2 top-1/2 w-full max-w-md -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(l){var i=l.close;return w.jsxs(w.Fragment,{children:[w.jsx(Nf,{className:"mb-3 text-xl font-semibold text-slate-900 dark:text-slate-100",children:t}),w.jsx("p",{className:"mb-6 text-slate-600 dark:text-slate-400",children:n}),w.jsxs("div",{className:"flex justify-end space-x-3",children:[w.jsx(Ca,{onClick:i,label:"Cancel"}),r]})]})}})})]})};function tK(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const nK=e=>{switch(e){case"success":return lK;case"info":return oK;case"warning":return iK;case"error":return sK;default:return null}},rK=Array(12).fill(0),aK=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},rK.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),lK=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),iK=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),oK=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),sK=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),uK=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),cK=()=>{const[e,t]=O.useState(document.hidden);return O.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let fm=1;class dK{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,l=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:fm++,i=this.toasts.find(s=>s.id===l),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),i?this.toasts=this.toasts.map(s=>s.id===l?(this.publish({...s,...t,id:l,title:r}),{...s,...t,id:l,dismissible:o,title:r}):s):this.addToast({title:r,...a,dismissible:o,id:l}),l},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let l=r!==void 0,i;const o=a.then(async u=>{if(i=["resolve",u],O.isValidElement(u))l=!1,this.create({id:r,type:"default",message:u});else if(hK(u)&&!u.ok){l=!1;const f=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,c=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,d=typeof f=="object"&&!O.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:c,...d})}else if(u instanceof Error){l=!1;const f=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,d=typeof f=="object"&&!O.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:c,...d})}else if(n.success!==void 0){l=!1;const f=typeof n.success=="function"?await n.success(u):n.success,c=typeof n.description=="function"?await n.description(u):n.description,d=typeof f=="object"&&!O.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:c,...d})}}).catch(async u=>{if(i=["reject",u],n.error!==void 0){l=!1;const f=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,d=typeof f=="object"&&!O.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:c,...d})}}).finally(()=>{l&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),s=()=>new Promise((u,f)=>o.then(()=>i[0]==="reject"?f(i[1]):u(i[1])).catch(f));return typeof r!="string"&&typeof r!="number"?{unwrap:s}:Object.assign(r,{unwrap:s})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||fm++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const At=new dK,fK=(e,t)=>{const n=(t==null?void 0:t.id)||fm++;return At.addToast({title:e,...t,id:n}),n},hK=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",pK=fK,mK=()=>At.toasts,gK=()=>At.getActiveToasts(),Wl=Object.assign(pK,{success:At.success,info:At.info,warning:At.warning,error:At.error,custom:At.custom,message:At.message,promise:At.promise,dismiss:At.dismiss,loading:At.loading},{getHistory:mK,getToasts:gK});tK("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function pc(e){return e.label!==void 0}const vK=3,bK="24px",yK="16px",n2=4e3,xK=356,wK=14,SK=45,CK=200;function Gn(...e){return e.filter(Boolean).join(" ")}function EK(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const MK=e=>{var t,n,r,a,l,i,o,s,u;const{invert:f,toast:c,unstyled:d,interacting:h,setHeights:m,visibleToasts:v,heights:y,index:b,toasts:g,expanded:x,removeToast:S,defaultRichColors:C,closeButton:E,style:M,cancelButtonStyle:N,actionButtonStyle:j,className:A="",descriptionClassName:U="",duration:F,position:G,gap:Q,expandByDefault:_,classNames:T,icons:L,closeButtonAriaLabel:K="Close toast"}=e,[V,D]=O.useState(null),[z,k]=O.useState(null),[P,B]=O.useState(!1),[Y,Oe]=O.useState(!1),[he,_e]=O.useState(!1),[Ue,W]=O.useState(!1),[bt,on]=O.useState(!1),[Ol,lo]=O.useState(0),[wu,Su]=O.useState(0),de=O.useRef(c.duration||F||n2),jr=O.useRef(null),Kt=O.useRef(null),io=b===0,A6=b+1<=v,Ut=c.type,Rl=c.dismissible!==!1,L6=c.className||"",_6=c.descriptionClassName||"",Cu=O.useMemo(()=>y.findIndex(ae=>ae.toastId===c.id)||0,[y,c.id]),z6=O.useMemo(()=>{var ae;return(ae=c.closeButton)!=null?ae:E},[c.closeButton,E]),s1=O.useMemo(()=>c.duration||F||n2,[c.duration,F]),Hf=O.useRef(0),kl=O.useRef(0),u1=O.useRef(0),Tl=O.useRef(null),[P6,H6]=G.split("-"),c1=O.useMemo(()=>y.reduce((ae,$e,yt)=>yt>=Cu?ae:ae+$e.height,0),[y,Cu]),d1=cK(),K6=c.invert||f,Kf=Ut==="loading";kl.current=O.useMemo(()=>Cu*Q+c1,[Cu,c1]),O.useEffect(()=>{de.current=s1},[s1]),O.useEffect(()=>{B(!0)},[]),O.useEffect(()=>{const ae=Kt.current;if(ae){const $e=ae.getBoundingClientRect().height;return Su($e),m(yt=>[{toastId:c.id,height:$e,position:c.position},...yt]),()=>m(yt=>yt.filter(Tn=>Tn.toastId!==c.id))}},[m,c.id]),O.useLayoutEffect(()=>{if(!P)return;const ae=Kt.current,$e=ae.style.height;ae.style.height="auto";const yt=ae.getBoundingClientRect().height;ae.style.height=$e,Su(yt),m(Tn=>Tn.find(rt=>rt.toastId===c.id)?Tn.map(rt=>rt.toastId===c.id?{...rt,height:yt}:rt):[{toastId:c.id,height:yt,position:c.position},...Tn])},[P,c.title,c.description,m,c.id,c.jsx,c.action,c.cancel]);const Nr=O.useCallback(()=>{Oe(!0),lo(kl.current),m(ae=>ae.filter($e=>$e.toastId!==c.id)),setTimeout(()=>{S(c)},CK)},[c,S,m,kl]);O.useEffect(()=>{if(c.promise&&Ut==="loading"||c.duration===1/0||c.type==="loading")return;let ae;return x||h||d1?(()=>{if(u1.current<Hf.current){const $e=new Date().getTime()-Hf.current;de.current=de.current-$e}u1.current=new Date().getTime()})():de.current!==1/0&&(Hf.current=new Date().getTime(),ae=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Nr()},de.current)),()=>clearTimeout(ae)},[x,h,c,Ut,d1,Nr]),O.useEffect(()=>{c.delete&&(Nr(),c.onDismiss==null||c.onDismiss.call(c,c))},[Nr,c.delete]);function U6(){var ae;if(L!=null&&L.loading){var $e;return O.createElement("div",{className:Gn(T==null?void 0:T.loader,c==null||($e=c.classNames)==null?void 0:$e.loader,"sonner-loader"),"data-visible":Ut==="loading"},L.loading)}return O.createElement(aK,{className:Gn(T==null?void 0:T.loader,c==null||(ae=c.classNames)==null?void 0:ae.loader),visible:Ut==="loading"})}const B6=c.icon||(L==null?void 0:L[Ut])||nK(Ut);var f1,h1;return O.createElement("li",{tabIndex:0,ref:Kt,className:Gn(A,L6,T==null?void 0:T.toast,c==null||(t=c.classNames)==null?void 0:t.toast,T==null?void 0:T.default,T==null?void 0:T[Ut],c==null||(n=c.classNames)==null?void 0:n[Ut]),"data-sonner-toast":"","data-rich-colors":(f1=c.richColors)!=null?f1:C,"data-styled":!(c.jsx||c.unstyled||d),"data-mounted":P,"data-promise":!!c.promise,"data-swiped":bt,"data-removed":Y,"data-visible":A6,"data-y-position":P6,"data-x-position":H6,"data-index":b,"data-front":io,"data-swiping":he,"data-dismissible":Rl,"data-type":Ut,"data-invert":K6,"data-swipe-out":Ue,"data-swipe-direction":z,"data-expanded":!!(x||_&&P),"data-testid":c.testId,style:{"--index":b,"--toasts-before":b,"--z-index":g.length-b,"--offset":`${Y?Ol:kl.current}px`,"--initial-height":_?"auto":`${wu}px`,...M,...c.style},onDragEnd:()=>{_e(!1),D(null),Tl.current=null},onPointerDown:ae=>{ae.button!==2&&(Kf||!Rl||(jr.current=new Date,lo(kl.current),ae.target.setPointerCapture(ae.pointerId),ae.target.tagName!=="BUTTON"&&(_e(!0),Tl.current={x:ae.clientX,y:ae.clientY})))},onPointerUp:()=>{var ae,$e,yt;if(Ue||!Rl)return;Tl.current=null;const Tn=Number(((ae=Kt.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),rt=Number((($e=Kt.current)==null?void 0:$e.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Dn=new Date().getTime()-((yt=jr.current)==null?void 0:yt.getTime()),oo=V==="x"?Tn:rt,Bn=Math.abs(oo)/Dn;if(Math.abs(oo)>=SK||Bn>.11){lo(kl.current),c.onDismiss==null||c.onDismiss.call(c,c),k(V==="x"?Tn>0?"right":"left":rt>0?"down":"up"),Nr(),W(!0);return}else{var jn,so;(jn=Kt.current)==null||jn.style.setProperty("--swipe-amount-x","0px"),(so=Kt.current)==null||so.style.setProperty("--swipe-amount-y","0px")}on(!1),_e(!1),D(null)},onPointerMove:ae=>{var $e,yt,Tn;if(!Tl.current||!Rl||(($e=window.getSelection())==null?void 0:$e.toString().length)>0)return;const rt=ae.clientY-Tl.current.y,Dn=ae.clientX-Tl.current.x;var oo;const Bn=(oo=e.swipeDirections)!=null?oo:EK(G);!V&&(Math.abs(Dn)>1||Math.abs(rt)>1)&&D(Math.abs(Dn)>Math.abs(rt)?"x":"y");let jn={x:0,y:0};const so=Da=>1/(1.5+Math.abs(Da)/20);if(V==="y"){if(Bn.includes("top")||Bn.includes("bottom"))if(Bn.includes("top")&&rt<0||Bn.includes("bottom")&&rt>0)jn.y=rt;else{const Da=rt*so(rt);jn.y=Math.abs(Da)<Math.abs(rt)?Da:rt}}else if(V==="x"&&(Bn.includes("left")||Bn.includes("right")))if(Bn.includes("left")&&Dn<0||Bn.includes("right")&&Dn>0)jn.x=Dn;else{const Da=Dn*so(Dn);jn.x=Math.abs(Da)<Math.abs(Dn)?Da:Dn}(Math.abs(jn.x)>0||Math.abs(jn.y)>0)&&on(!0),(yt=Kt.current)==null||yt.style.setProperty("--swipe-amount-x",`${jn.x}px`),(Tn=Kt.current)==null||Tn.style.setProperty("--swipe-amount-y",`${jn.y}px`)}},z6&&!c.jsx&&Ut!=="loading"?O.createElement("button",{"aria-label":K,"data-disabled":Kf,"data-close-button":!0,onClick:Kf||!Rl?()=>{}:()=>{Nr(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Gn(T==null?void 0:T.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(h1=L==null?void 0:L.close)!=null?h1:uK):null,(Ut||c.icon||c.promise)&&c.icon!==null&&((L==null?void 0:L[Ut])!==null||c.icon)?O.createElement("div",{"data-icon":"",className:Gn(T==null?void 0:T.icon,c==null||(a=c.classNames)==null?void 0:a.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||U6():null,c.type!=="loading"?B6:null):null,O.createElement("div",{"data-content":"",className:Gn(T==null?void 0:T.content,c==null||(l=c.classNames)==null?void 0:l.content)},O.createElement("div",{"data-title":"",className:Gn(T==null?void 0:T.title,c==null||(i=c.classNames)==null?void 0:i.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?O.createElement("div",{"data-description":"",className:Gn(U,_6,T==null?void 0:T.description,c==null||(o=c.classNames)==null?void 0:o.description)},typeof c.description=="function"?c.description():c.description):null),O.isValidElement(c.cancel)?c.cancel:c.cancel&&pc(c.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||N,onClick:ae=>{pc(c.cancel)&&Rl&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,ae),Nr())},className:Gn(T==null?void 0:T.cancelButton,c==null||(s=c.classNames)==null?void 0:s.cancelButton)},c.cancel.label):null,O.isValidElement(c.action)?c.action:c.action&&pc(c.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||j,onClick:ae=>{pc(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,ae),!ae.defaultPrevented&&Nr())},className:Gn(T==null?void 0:T.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function r2(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function OK(e,t){const n={};return[e,t].forEach((r,a)=>{const l=a===1,i=l?"--mobile-offset":"--offset",o=l?yK:bK;function s(u){["top","right","bottom","left"].forEach(f=>{n[`${i}-${f}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?s(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=o:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):s(o)}),n}const RK=O.forwardRef(function(e,t){const{id:n,invert:r,position:a="bottom-right",hotkey:l=["altKey","KeyT"],expand:i,closeButton:o,className:s,offset:u,mobileOffset:f,theme:c="light",richColors:d,duration:h,style:m,visibleToasts:v=vK,toastOptions:y,dir:b=r2(),gap:g=wK,icons:x,containerAriaLabel:S="Notifications"}=e,[C,E]=O.useState([]),M=O.useMemo(()=>n?C.filter(k=>k.toasterId===n):C.filter(k=>!k.toasterId),[C,n]),N=O.useMemo(()=>Array.from(new Set([a].concat(M.filter(k=>k.position).map(k=>k.position)))),[M,a]),[j,A]=O.useState([]),[U,F]=O.useState(!1),[G,Q]=O.useState(!1),[_,T]=O.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),L=O.useRef(null),K=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),V=O.useRef(null),D=O.useRef(!1),z=O.useCallback(k=>{E(P=>{var B;return(B=P.find(Y=>Y.id===k.id))!=null&&B.delete||At.dismiss(k.id),P.filter(({id:Y})=>Y!==k.id)})},[]);return O.useEffect(()=>At.subscribe(k=>{if(k.dismiss){requestAnimationFrame(()=>{E(P=>P.map(B=>B.id===k.id?{...B,delete:!0}:B))});return}setTimeout(()=>{bm.flushSync(()=>{E(P=>{const B=P.findIndex(Y=>Y.id===k.id);return B!==-1?[...P.slice(0,B),{...P[B],...k},...P.slice(B+1)]:[k,...P]})})})}),[C]),O.useEffect(()=>{if(c!=="system"){T(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?T("dark"):T("light")),typeof window>"u")return;const k=window.matchMedia("(prefers-color-scheme: dark)");try{k.addEventListener("change",({matches:P})=>{T(P?"dark":"light")})}catch{k.addListener(({matches:P})=>{try{T(P?"dark":"light")}catch(B){console.error(B)}})}},[c]),O.useEffect(()=>{C.length<=1&&F(!1)},[C]),O.useEffect(()=>{const k=P=>{var B;if(l.every(Oe=>P[Oe]||P.code===Oe)){var Y;F(!0),(Y=L.current)==null||Y.focus()}P.code==="Escape"&&(document.activeElement===L.current||(B=L.current)!=null&&B.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[l]),O.useEffect(()=>{if(L.current)return()=>{V.current&&(V.current.focus({preventScroll:!0}),V.current=null,D.current=!1)}},[L.current]),O.createElement("section",{ref:t,"aria-label":`${S} ${K}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((k,P)=>{var B;const[Y,Oe]=k.split("-");return M.length?O.createElement("ol",{key:k,dir:b==="auto"?r2():b,tabIndex:-1,ref:L,className:s,"data-sonner-toaster":!0,"data-sonner-theme":_,"data-y-position":Y,"data-x-position":Oe,style:{"--front-toast-height":`${((B=j[0])==null?void 0:B.height)||0}px`,"--width":`${xK}px`,"--gap":`${g}px`,...m,...OK(u,f)},onBlur:he=>{D.current&&!he.currentTarget.contains(he.relatedTarget)&&(D.current=!1,V.current&&(V.current.focus({preventScroll:!0}),V.current=null))},onFocus:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||D.current||(D.current=!0,V.current=he.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{G||F(!1)},onDragEnd:()=>F(!1),onPointerDown:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||Q(!0)},onPointerUp:()=>Q(!1)},M.filter(he=>!he.position&&P===0||he.position===k).map((he,_e)=>{var Ue,W;return O.createElement(MK,{key:he.id,icons:x,index:_e,toast:he,defaultRichColors:d,duration:(Ue=y==null?void 0:y.duration)!=null?Ue:h,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:r,visibleToasts:v,closeButton:(W=y==null?void 0:y.closeButton)!=null?W:o,interacting:G,position:k,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,closeButtonAriaLabel:y==null?void 0:y.closeButtonAriaLabel,removeToast:z,toasts:M.filter(bt=>bt.position==he.position),heights:j.filter(bt=>bt.position==he.position),setHeights:A,expandByDefault:i,gap:g,expanded:U,swipeDirections:e.swipeDirections})})):null}))});var kK=function(e){var t=e.showCleanAllButton,n=e.queueName,r=e.status,a=e.queue,l=be.queue.clean.useMutation({onSuccess:function(){Wl.success("All ".concat(r," jobs have been removed"))}}),i=l.mutate,o=l.status,s=St(St(St(St(St([{name:"Completed",status:"completed"},{name:"Failed",status:"failed"},{name:"Active",status:"active"}],a!=null&&a.supports.priorities?[{name:"Prioritized",status:"prioritized"}]:[],!0),[{name:"Waiting",status:"waiting"}],!1),a!=null&&a.supports.flows?[{name:"Waiting Children",status:"waiting-children"}]:[],!0),[{name:"Delayed",status:"delayed"}],!1),a!=null&&a.supports.pause?[{name:"Paused",status:"paused"}]:[],!0);return w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx("div",{className:"flex items-center space-x-3",children:s.map(function(u){var f=u.status===r;return w.jsxs(wf,{to:"?status=".concat(u.status),className:zi("flex items-center space-x-2 rounded-md px-3 py-1 font-medium transition duration-150 ease-in-out",{"text-slate-500 hover:bg-slate-50 dark:text-slate-300 dark:hover:bg-slate-800":!f,"bg-green-50 text-green-900 dark:bg-green-900 dark:text-green-50":f&&u.status==="completed","bg-red-50 text-red-900 dark:bg-red-900 dark:text-red-100":f&&u.status==="failed","bg-cyan-50 text-cyan-900 dark:bg-cyan-900 dark:text-cyan-50":f&&u.status==="active","bg-purple-50 text-purple-900 dark:bg-purple-900 dark:text-purple-50":f&&u.status==="prioritized","bg-amber-50 text-amber-900 dark:bg-amber-900 dark:text-amber-50":f&&u.status==="waiting","bg-orange-50 text-orange-900 dark:bg-orange-900 dark:text-orange-50":f&&u.status==="waiting-children","bg-indigo-50 text-indigo-900 dark:bg-indigo-900 dark:text-indigo-50":f&&u.status==="delayed","bg-stone-50 text-stone-900 dark:bg-stone-900 dark:text-stone-50":f&&u.status==="paused"}),children:[w.jsx("span",{children:u.name}),a!=null&&a.counts[u.status]?w.jsx("span",{className:zi("rounded-md px-1.5 py-0.5 text-xs font-semibold",{"bg-slate-400 text-slate-50 dark:bg-slate-600 dark:text-slate-100":!f,"bg-green-600 text-green-50 dark:bg-green-700 dark:text-green-100":f&&u.status==="completed","bg-red-600 text-red-50 dark:bg-red-700 dark:text-red-100":f&&u.status==="failed","bg-cyan-600 text-cyan-50 dark:bg-cyan-700 dark:text-cyan-100":f&&u.status==="active","bg-purple-600 text-purple-50 dark:bg-purple-700 dark:text-purple-100":f&&u.status==="prioritized","bg-amber-600 text-amber-50 dark:bg-amber-700 dark:text-amber-100":f&&u.status==="waiting","bg-orange-600 text-orange-50 dark:bg-orange-700 dark:text-orange-100":f&&u.status==="waiting-children","bg-indigo-600 text-indigo-50 dark:bg-indigo-700 dark:text-indigo-100":f&&u.status==="delayed","bg-stone-600 text-stone-50 dark:bg-stone-700 dark:text-stone-100":f&&u.status==="paused"}),children:a.counts[u.status]}):null]},u.name)})}),t&&r!=="waiting-children"&&a!=null&&a.supports.clean?w.jsx(eK,{title:"Are you absolutely sure?",description:"This action cannot be undone. This will permanently remove all ".concat(r," jobs from the queue."),action:w.jsx(Ca,{variant:"filled",colorScheme:"red",label:"Yes, remove jobs",onClick:function(){return i({queueName:n,status:r})}}),children:w.jsx(Ca,{colorScheme:"yellow",icon:w.jsx($i,{}),label:"Clean all",size:"sm",isLoading:o==="pending"})}):null]})};function a2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function TK(e){if(Array.isArray(e))return e}function DK(e,t,n){return(t=PK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,l,i,o=[],s=!0,u=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(s=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return o}}function NK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
111
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function i2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l2(Object(n),!0).forEach(function(r){DK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AK(e,t){if(e==null)return{};var n,r,a=LK(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function LK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function _K(e,t){return TK(e)||jK(e,t)||HK(e,t)||NK()}function zK(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PK(e){var t=zK(e,"string");return typeof t=="symbol"?t:t+""}function HK(e,t){if(e){if(typeof e=="string")return a2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a2(e,t):void 0}}function KK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function s2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o2(Object(n),!0).forEach(function(r){KK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UK(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(a,l){return l(a)},r)}}function $o(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return a.length>=e.length?e.apply(this,a):function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return t.apply(n,[].concat(a,o))}}}function Qd(e){return{}.toString.call(e).includes("Object")}function BK(e){return!Object.keys(e).length}function Zs(e){return typeof e=="function"}function FK(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function qK(e,t){return Qd(t)||ma("changeType"),Object.keys(t).some(function(n){return!FK(e,n)})&&ma("changeField"),t}function VK(e){Zs(e)||ma("selectorType")}function GK(e){Zs(e)||Qd(e)||ma("handlerType"),Qd(e)&&Object.values(e).some(function(t){return!Zs(t)})&&ma("handlersType")}function QK(e){e||ma("initialIsRequired"),Qd(e)||ma("initialType"),BK(e)&&ma("initialContent")}function IK(e,t){throw new Error(e[t]||e.default)}var XK={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},ma=$o(IK)(XK),mc={changes:qK,selector:VK,handler:GK,initial:QK};function YK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};mc.initial(e),mc.handler(t);var n={current:e},r=$o($K)(n,t),a=$o(WK)(n),l=$o(mc.changes)(e),i=$o(ZK)(n);function o(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return mc.selector(u),u(n.current)}function s(u){UK(r,a,l,i)(u)}return[o,s]}function ZK(e,t){return Zs(t)?t(e.current):t}function WK(e,t){return e.current=s2(s2({},e.current),t),t}function $K(e,t,n){return Zs(t)?t(e.current):Object.keys(n).forEach(function(r){var a;return(a=t[r])===null||a===void 0?void 0:a.call(t,e.current[r])}),n}var JK={create:YK},eU={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function tU(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return a.length>=e.length?e.apply(this,a):function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return t.apply(n,[].concat(a,o))}}}function nU(e){return{}.toString.call(e).includes("Object")}function rU(e){return e||u2("configIsRequired"),nU(e)||u2("configType"),e.urls?(aU(),{paths:{vs:e.urls.monacoBase}}):e}function aU(){console.warn(E6.deprecation)}function lU(e,t){throw new Error(e[t]||e.default)}var E6={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
112
112
|
You are using deprecated way of configuration.
|
|
113
113
|
|
|
114
114
|
Instead of using
|
|
@@ -117,4 +117,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
117
117
|
monaco.config({ paths: { vs: '...' } })
|
|
118
118
|
|
|
119
119
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
120
|
-
`},o2=KK(FK)(gx),VK={config:BK},GK=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(a,l){return l(a)},r)}};function vx(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],vx(e[n],t[n]))}),a2(a2({},e),t)}var QK={type:"cancelation",msg:"operation is manually canceled"};function gh(e){var t=!1,n=new Promise(function(r,a){e.then(function(l){return t?a(QK):r(l)}),e.catch(a)});return n.cancel=function(){return t=!0},n}var IK=["monaco"],XK=PK.create({config:HK,isInitialized:!1,resolve:null,reject:null,monaco:null}),bx=yK(XK,2),Cu=bx[0],Pf=bx[1];function YK(e){var t=VK.config(e),n=t.monaco,r=vK(t,IK);Pf(function(a){return{config:vx(a.config,r),monaco:n}})}function ZK(){var e=Cu(function(t){var n=t.monaco,r=t.isInitialized,a=t.resolve;return{monaco:n,isInitialized:r,resolve:a}});if(!e.isInitialized){if(Pf({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),gh(vh);if(window.monaco&&window.monaco.editor)return yx(window.monaco),e.resolve(window.monaco),gh(vh);GK($K,JK)(eU)}return gh(vh)}function $K(e){return document.body.appendChild(e)}function WK(e){var t=document.createElement("script");return e&&(t.src=e),t}function JK(e){var t=Cu(function(r){var a=r.config,l=r.reject;return{config:a,reject:l}}),n=WK("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function eU(){var e=Cu(function(n){var r=n.config,a=n.resolve,l=n.reject;return{config:r,resolve:a,reject:l}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;yx(r),e.resolve(r)},function(n){e.reject(n)})}function yx(e){Cu().monaco||Pf({monaco:e})}function tU(){return Cu(function(e){var t=e.monaco;return t})}var vh=new Promise(function(e,t){return Pf({resolve:e,reject:t})}),xx={config:YK,init:ZK,__getMonacoInstance:tU},nU={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},bh=nU,rU={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},aU=rU;function lU({children:e}){return O.createElement("div",{style:aU.container},e)}var iU=lU,oU=iU;function sU({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:l,wrapperProps:i}){return O.createElement("section",{style:{...bh.wrapper,width:e,height:t},...i},!n&&O.createElement(oU,null,r),O.createElement("div",{ref:a,style:{...bh.fullWidth,...!n&&bh.hide},className:l}))}var uU=sU,wx=p.memo(uU);function cU(e){p.useEffect(e,[])}var Cx=cU;function dU(e,t,n=!0){let r=p.useRef(!0);p.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Gt=dU;function Es(){}function mi(e,t,n,r){return fU(e,r)||hU(e,t,n,r)}function fU(e,t){return e.editor.getModel(Sx(e,t))}function hU(e,t,n,r){return e.editor.createModel(t,n,r?Sx(e,r):void 0)}function Sx(e,t){return e.Uri.parse(t)}function pU({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:a,originalModelPath:l,modifiedModelPath:i,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:s=!1,theme:u="light",loading:f="Loading...",options:c={},height:d="100%",width:h="100%",className:m,wrapperProps:b={},beforeMount:y=Es,onMount:v=Es}){let[g,x]=p.useState(!1),[C,E]=p.useState(!0),S=p.useRef(null),M=p.useRef(null),A=p.useRef(null),D=p.useRef(v),N=p.useRef(y),j=p.useRef(!1);Cx(()=>{let P=xx.init();return P.then(T=>(M.current=T)&&E(!1)).catch(T=>(T==null?void 0:T.type)!=="cancelation"&&console.error("Monaco initialization: error:",T)),()=>S.current?L():P.cancel()}),Gt(()=>{if(S.current&&M.current){let P=S.current.getOriginalEditor(),T=mi(M.current,e||"",r||n||"text",l||"");T!==P.getModel()&&P.setModel(T)}},[l],g),Gt(()=>{if(S.current&&M.current){let P=S.current.getModifiedEditor(),T=mi(M.current,t||"",a||n||"text",i||"");T!==P.getModel()&&P.setModel(T)}},[i],g),Gt(()=>{let P=S.current.getModifiedEditor();P.getOption(M.current.editor.EditorOption.readOnly)?P.setValue(t||""):t!==P.getValue()&&(P.executeEdits("",[{range:P.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),P.pushUndoStop())},[t],g),Gt(()=>{var P,T;(T=(P=S.current)==null?void 0:P.getModel())==null||T.original.setValue(e||"")},[e],g),Gt(()=>{let{original:P,modified:T}=S.current.getModel();M.current.editor.setModelLanguage(P,r||n||"text"),M.current.editor.setModelLanguage(T,a||n||"text")},[n,r,a],g),Gt(()=>{var P;(P=M.current)==null||P.editor.setTheme(u)},[u],g),Gt(()=>{var P;(P=S.current)==null||P.updateOptions(c)},[c],g);let z=p.useCallback(()=>{var P;if(!M.current)return;N.current(M.current);let T=mi(M.current,e||"",r||n||"text",l||""),k=mi(M.current,t||"",a||n||"text",i||"");(P=S.current)==null||P.setModel({original:T,modified:k})},[n,t,a,e,r,l,i]),B=p.useCallback(()=>{var P;!j.current&&A.current&&(S.current=M.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...c}),z(),(P=M.current)==null||P.editor.setTheme(u),x(!0),j.current=!0)},[c,u,z]);p.useEffect(()=>{g&&D.current(S.current,M.current)},[g]),p.useEffect(()=>{!C&&!g&&B()},[C,g,B]);function L(){var P,T,k,_;let U=(P=S.current)==null?void 0:P.getModel();o||(T=U==null?void 0:U.original)==null||T.dispose(),s||(k=U==null?void 0:U.modified)==null||k.dispose(),(_=S.current)==null||_.dispose()}return O.createElement(wx,{width:h,height:d,isEditorReady:g,loading:f,_ref:A,className:m,wrapperProps:b})}var mU=pU;p.memo(mU);function gU(e){let t=p.useRef();return p.useEffect(()=>{t.current=e},[e]),t.current}var vU=gU,gc=new Map;function bU({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:a,path:l,theme:i="light",line:o,loading:s="Loading...",options:u={},overrideServices:f={},saveViewState:c=!0,keepCurrentModel:d=!1,width:h="100%",height:m="100%",className:b,wrapperProps:y={},beforeMount:v=Es,onMount:g=Es,onChange:x,onValidate:C=Es}){let[E,S]=p.useState(!1),[M,A]=p.useState(!0),D=p.useRef(null),N=p.useRef(null),j=p.useRef(null),z=p.useRef(g),B=p.useRef(v),L=p.useRef(),P=p.useRef(r),T=vU(l),k=p.useRef(!1),_=p.useRef(!1);Cx(()=>{let G=xx.init();return G.then(K=>(D.current=K)&&A(!1)).catch(K=>(K==null?void 0:K.type)!=="cancelation"&&console.error("Monaco initialization: error:",K)),()=>N.current?F():G.cancel()}),Gt(()=>{var G,K,V,I;let J=mi(D.current,e||r||"",t||a||"",l||n||"");J!==((G=N.current)==null?void 0:G.getModel())&&(c&&gc.set(T,(K=N.current)==null?void 0:K.saveViewState()),(V=N.current)==null||V.setModel(J),c&&((I=N.current)==null||I.restoreViewState(gc.get(l))))},[l],E),Gt(()=>{var G;(G=N.current)==null||G.updateOptions(u)},[u],E),Gt(()=>{!N.current||r===void 0||(N.current.getOption(D.current.editor.EditorOption.readOnly)?N.current.setValue(r):r!==N.current.getValue()&&(_.current=!0,N.current.executeEdits("",[{range:N.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),N.current.pushUndoStop(),_.current=!1))},[r],E),Gt(()=>{var G,K;let V=(G=N.current)==null?void 0:G.getModel();V&&a&&((K=D.current)==null||K.editor.setModelLanguage(V,a))},[a],E),Gt(()=>{var G;o!==void 0&&((G=N.current)==null||G.revealLine(o))},[o],E),Gt(()=>{var G;(G=D.current)==null||G.editor.setTheme(i)},[i],E);let U=p.useCallback(()=>{var G;if(!(!j.current||!D.current)&&!k.current){B.current(D.current);let K=l||n,V=mi(D.current,r||e||"",t||a||"",K||"");N.current=(G=D.current)==null?void 0:G.editor.create(j.current,{model:V,automaticLayout:!0,...u},f),c&&N.current.restoreViewState(gc.get(K)),D.current.editor.setTheme(i),o!==void 0&&N.current.revealLine(o),S(!0),k.current=!0}},[e,t,n,r,a,l,u,f,c,i,o]);p.useEffect(()=>{E&&z.current(N.current,D.current)},[E]),p.useEffect(()=>{!M&&!E&&U()},[M,E,U]),P.current=r,p.useEffect(()=>{var G,K;E&&x&&((G=L.current)==null||G.dispose(),L.current=(K=N.current)==null?void 0:K.onDidChangeModelContent(V=>{_.current||x(N.current.getValue(),V)}))},[E,x]),p.useEffect(()=>{if(E){let G=D.current.editor.onDidChangeMarkers(K=>{var V;let I=(V=N.current.getModel())==null?void 0:V.uri;if(I&&K.find(J=>J.path===I.path)){let J=D.current.editor.getModelMarkers({resource:I});C==null||C(J)}});return()=>{G==null||G.dispose()}}return()=>{}},[E,C]);function F(){var G,K;(G=L.current)==null||G.dispose(),d?c&&gc.set(l,N.current.saveViewState()):(K=N.current.getModel())==null||K.dispose(),N.current.dispose()}return O.createElement(wx,{width:h,height:m,isEditorReady:E,loading:s,_ref:j,className:b,wrapperProps:y})}var yU=bU,xU=p.memo(yU),wU=xU,yh=function(e){var t=e.value,n=e.onChange,r=p.useRef(null),a=function(){var i,o;(o=(i=r.current)===null||i===void 0?void 0:i.getAction("editor.action.formatDocument"))===null||o===void 0||o.run()},l=function(i){var o=String.fromCharCode(i.which).toLowerCase();(i.ctrlKey||i.metaKey)&&o==="s"&&(i.preventDefault(),a())};return w.jsx("div",{onKeyDown:l,onBlur:a,className:"mb-6 border border-slate-200",children:w.jsx(wU,{height:"300px",language:"json",className:"rounded-md",options:{minimap:{enabled:!1},formatOnPaste:!0,formatOnType:!0,padding:{top:8,bottom:8},tabSize:2},defaultValue:t,onChange:function(i){i&&n(i)},onMount:function(i,o){r.current=i,o.editor.defineTheme("solarized-light",{base:"vs",inherit:!0,rules:[{background:"ffffff",token:""},{foreground:"6a737d",token:"comment"},{foreground:"6a737d",token:"punctuation.definition.comment"},{foreground:"6a737d",token:"string.comment"},{foreground:"005cc5",token:"constant"},{foreground:"005cc5",token:"entity.name.constant"},{foreground:"005cc5",token:"variable.other.constant"},{foreground:"005cc5",token:"variable.language"},{foreground:"6f42c1",token:"entity"},{foreground:"6f42c1",token:"entity.name"},{foreground:"24292e",token:"variable.parameter.function"},{foreground:"22863a",token:"entity.name.tag"},{foreground:"d73a49",token:"keyword"},{foreground:"d73a49",token:"storage"},{foreground:"d73a49",token:"storage.type"},{foreground:"24292e",token:"storage.modifier.package"},{foreground:"24292e",token:"storage.modifier.import"},{foreground:"24292e",token:"storage.type.java"},{foreground:"032f62",token:"string"},{foreground:"032f62",token:"punctuation.definition.string"},{foreground:"032f62",token:"string punctuation.section.embedded source"},{foreground:"005cc5",token:"support"},{foreground:"005cc5",token:"meta.property-name"},{foreground:"e36209",token:"variable"},{foreground:"24292e",token:"variable.other"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.broken"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.deprecated"},{foreground:"fafbfc",background:"b31d28",fontStyle:"italic underline",token:"invalid.illegal"},{foreground:"fafbfc",background:"d73a49",fontStyle:"italic underline",token:"carriage-return"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.unimplemented"},{foreground:"b31d28",token:"message.error"},{foreground:"24292e",token:"string source"},{foreground:"005cc5",token:"string variable"},{foreground:"032f62",token:"source.regexp"},{foreground:"032f62",token:"string.regexp"},{foreground:"032f62",token:"string.regexp.character-class"},{foreground:"032f62",token:"string.regexp constant.character.escape"},{foreground:"032f62",token:"string.regexp source.ruby.embedded"},{foreground:"032f62",token:"string.regexp string.regexp.arbitrary-repitition"},{foreground:"22863a",fontStyle:"bold",token:"string.regexp constant.character.escape"},{foreground:"005cc5",token:"support.constant"},{foreground:"005cc5",token:"support.variable"},{foreground:"005cc5",token:"meta.module-reference"},{foreground:"735c0f",token:"markup.list"},{foreground:"005cc5",fontStyle:"bold",token:"markup.heading"},{foreground:"005cc5",fontStyle:"bold",token:"markup.heading entity.name"},{foreground:"22863a",token:"markup.quote"},{foreground:"24292e",fontStyle:"italic",token:"markup.italic"},{foreground:"24292e",fontStyle:"bold",token:"markup.bold"},{foreground:"005cc5",token:"markup.raw"},{foreground:"b31d28",background:"ffeef0",token:"markup.deleted"},{foreground:"b31d28",background:"ffeef0",token:"meta.diff.header.from-file"},{foreground:"b31d28",background:"ffeef0",token:"punctuation.definition.deleted"},{foreground:"22863a",background:"f0fff4",token:"markup.inserted"},{foreground:"22863a",background:"f0fff4",token:"meta.diff.header.to-file"},{foreground:"22863a",background:"f0fff4",token:"punctuation.definition.inserted"},{foreground:"e36209",background:"ffebda",token:"markup.changed"},{foreground:"e36209",background:"ffebda",token:"punctuation.definition.changed"},{foreground:"f6f8fa",background:"005cc5",token:"markup.ignored"},{foreground:"f6f8fa",background:"005cc5",token:"markup.untracked"},{foreground:"6f42c1",fontStyle:"bold",token:"meta.diff.range"},{foreground:"005cc5",token:"meta.diff.header"},{foreground:"005cc5",fontStyle:"bold",token:"meta.separator"},{foreground:"005cc5",token:"meta.output"},{foreground:"586069",token:"brackethighlighter.tag"},{foreground:"586069",token:"brackethighlighter.curly"},{foreground:"586069",token:"brackethighlighter.round"},{foreground:"586069",token:"brackethighlighter.square"},{foreground:"586069",token:"brackethighlighter.angle"},{foreground:"586069",token:"brackethighlighter.quote"},{foreground:"b31d28",token:"brackethighlighter.unmatched"},{foreground:"b31d28",token:"sublimelinter.mark.error"},{foreground:"e36209",token:"sublimelinter.mark.warning"},{foreground:"959da5",token:"sublimelinter.gutter-mark"},{foreground:"032f62",fontStyle:"underline",token:"constant.other.reference.link"},{foreground:"032f62",fontStyle:"underline",token:"string.other.link"}],colors:{"editor.foreground":"#24292e","editor.background":"#ffffff","editor.selectionBackground":"#c8c8fa","editor.inactiveSelectionBackground":"#fafbfc","editor.lineHighlightBackground":"#fafbfc","editorCursor.foreground":"#24292e","editorWhitespace.foreground":"#959da5","editorIndentGuide.background":"#959da5","editorIndentGuide.activeBackground":"#24292e","editor.selectionHighlightBorder":"#fafbfc"}}),o.editor.setTheme("solarized-light")}})})},s2=function(e){var t=e.queue,n=e.onDismiss,r=e.variant,a=r===void 0?"job":r,l=ge.queue.addJob.useMutation({onSuccess:function(){ei.success("New job has been added"),n()},onError:function(S){ei.error(S.message)}}),i=l.mutate,o=l.status,s=ge.queue.addJobScheduler.useMutation({onSuccess:function(){ei.success("New job scheduler has been added"),n()},onError:function(S){ei.error(S.message)}}),u=s.mutate,f=s.status,c=p.useState("{}"),d=c[0],h=c[1],m=p.useState(JSON.stringify({name:"",data:{},opts:{}},null,2)),b=m[0],y=m[1],v=p.useState(JSON.stringify({pattern:"0 0 * * *",tz:Intl.DateTimeFormat().resolvedOptions().timeZone},null,2)),g=v[0],x=v[1],C=a==="job",E=C?o:f;return w.jsx(l6,{isOpen:!0,onOpenChange:function(S){S||n()},children:w.jsx(Af,{isDismissable:!0,className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:w.jsx(Df,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(S){var M=S.close;return w.jsxs(w.Fragment,{children:[w.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800","aria-label":"Close",onClick:function(){M(),n()},children:w.jsx(Rg,{})}),w.jsx("div",{className:"flex items-center space-x-4",children:w.jsxs(Nf,{className:"mb-1 text-xl font-semibold text-slate-900 dark:text-slate-100",children:["Add ",C?"job":"scheduler"," to"," ",t.displayName.toLocaleLowerCase()]})}),C?w.jsx(yh,{value:d,onChange:h}):w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{className:"space-y-2",children:[w.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Template"}),w.jsx(yh,{value:b,onChange:y})]}),w.jsxs("div",{children:[w.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),w.jsx(yh,{value:g,onChange:x})]})]}),w.jsx("div",{children:w.jsx(Ma,{label:C?"Add job":"Add scheduler",variant:"filled",disabled:E==="pending",onClick:function(){try{if(C){var A=JSON.parse(d);i({queueName:t.name,data:A})}else{var D=JSON.parse(b),N=JSON.parse(g);u({queueName:t.name,template:D,opts:N})}}catch{ei.error("Invalid JSON")}}})})]})}})})})},CU=function(e){var t=e.queue,n=ge.queue.pause.useMutation().mutate,r=ge.queue.resume.useMutation().mutate,a=ge.queue.empty.useMutation().mutate,l=p.useState(!1),i=l[0],o=l[1],s=p.useState(!1),u=s[0],f=s[1],c={queueName:t.name},d=wt(wt(wt(wt([],t.supports.pause&&t.supports.resume?[{label:t.paused?"Resume":"Pause",onSelect:function(){t.paused?r(c):n(c)},icon:t.paused?w.jsx(E3,{}):w.jsx(S3,{})}]:[],!0),[{label:"Add job",onSelect:function(){o(!0)},icon:w.jsx(Eb,{})}],!1),t.supports.schedulers?[{label:"Add scheduler",onSelect:function(){f(!0)},icon:w.jsx(Eb,{})}]:[],!0),t.supports.empty?[{label:"Empty",onSelect:function(){a(c)},icon:w.jsx(no,{})}]:[],!0);return w.jsxs(w.Fragment,{children:[w.jsx(zf,{actions:d}),i?w.jsx(s2,{queue:t,variant:"job",onDismiss:function(){return o(!1)}}):null,u?w.jsx(s2,{queue:t,variant:"scheduler",onDismiss:function(){return f(!1)}}):null]})},Ex={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(globalThis,()=>(()=>{var n={949:(i,o,s)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.CronParser=void 0;var u=s(515),f=function(){function c(d,h,m){h===void 0&&(h=!0),m===void 0&&(m=!1),this.expression=d,this.dayOfWeekStartIndexZero=h,this.monthStartIndexZero=m}return c.prototype.parse=function(){var d,h,m=(d=this.expression)!==null&&d!==void 0?d:"";if(m==="@reboot")return h=["@reboot","","","","","",""],h;if(m.startsWith("@")){var b=this.parseSpecial(this.expression);h=this.extractParts(b)}else h=this.extractParts(this.expression);return this.normalize(h),this.validate(h),h},c.prototype.parseSpecial=function(d){var h={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},m=h[d];if(!m)throw new Error("Unknown special expression.");return m},c.prototype.extractParts=function(d){if(!this.expression)throw new Error("cron expression is empty");for(var h=d.trim().split(/[ ]+/),m=0;m<h.length;m++)if(h[m].includes(",")){var b=h[m].split(",").map(function(v){return v.trim()}).filter(function(v){return v!==""}).map(function(v){return isNaN(Number(v))?v:Number(v)}).filter(function(v){return v!==null&&v!==""});b.length===0&&b.push("*"),b.sort(function(v,g){return v!==null&&g!==null?v-g:0}),h[m]=b.map(function(v){return v!==null?v.toString():""}).join(",")}if(h.length<5)throw new Error("Expression has only ".concat(h.length," part").concat(h.length==1?"":"s",". At least 5 parts are required."));if(h.length==5)h.unshift(""),h.push("");else if(h.length==6){var y=/\d{4}$/.test(h[5])||h[4]=="?"||h[2]=="?";y?h.unshift(""):h.push("")}else if(h.length>7)throw new Error("Expression has ".concat(h.length," parts; too many!"));return h},c.prototype.normalize=function(d){var h=this;if(d[3]=d[3].replace("?","*"),d[5]=d[5].replace("?","*"),d[2]=d[2].replace("?","*"),d[0].indexOf("0/")==0&&(d[0]=d[0].replace("0/","*/")),d[1].indexOf("0/")==0&&(d[1]=d[1].replace("0/","*/")),d[2].indexOf("0/")==0&&(d[2]=d[2].replace("0/","*/")),d[3].indexOf("1/")==0&&(d[3]=d[3].replace("1/","*/")),d[4].indexOf("1/")==0&&(d[4]=d[4].replace("1/","*/")),d[6].indexOf("1/")==0&&(d[6]=d[6].replace("1/","*/")),d[5]=d[5].replace(/(^\d)|([^#/\s]\d)/g,function(E){var S=E.replace(/\D/,""),M=S;return h.dayOfWeekStartIndexZero?S=="7"&&(M="0"):M=(parseInt(S)-1).toString(),E.replace(S,M)}),d[5]=="L"&&(d[5]="6"),d[3]=="?"&&(d[3]="*"),d[3].indexOf("W")>-1&&(d[3].indexOf(",")>-1||d[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var m={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var b in m)d[5]=d[5].replace(new RegExp(b,"gi"),m[b].toString());d[4]=d[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(E){var S=E.replace(/\D/,""),M=S;return h.monthStartIndexZero&&(M=(parseInt(S)+1).toString()),E.replace(S,M)});var y={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var v in y)d[4]=d[4].replace(new RegExp(v,"gi"),y[v].toString());d[0]=="0"&&(d[0]=""),!/\*|\-|\,|\//.test(d[2])&&(/\*|\//.test(d[1])||/\*|\//.test(d[0]))&&(d[2]+="-".concat(d[2]));for(var g=0;g<d.length;g++)if(d[g].indexOf(",")!=-1&&(d[g]=d[g].split(",").filter(function(E){return E!==""}).join(",")||"*"),d[g]=="*/1"&&(d[g]="*"),d[g].indexOf("/")>-1&&!/^\*|\-|\,/.test(d[g])){var x=null;switch(g){case 4:x="12";break;case 5:x="6";break;case 6:x="9999";break;default:x=null;break}if(x!==null){var C=d[g].split("/");d[g]="".concat(C[0],"-").concat(x,"/").concat(C[1])}}},c.prototype.validate=function(d){var h="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(d[0],h),this.validateOnlyExpectedCharactersFound(d[1],h),this.validateOnlyExpectedCharactersFound(d[2],h),this.validateOnlyExpectedCharactersFound(d[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(d[4],h),this.validateOnlyExpectedCharactersFound(d[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(d[6],h),this.validateAnyRanges(d)},c.prototype.validateAnyRanges=function(d){u.default.secondRange(d[0]),u.default.minuteRange(d[1]),u.default.hourRange(d[2]),u.default.dayOfMonthRange(d[3]),u.default.monthRange(d[4],this.monthStartIndexZero),u.default.dayOfWeekRange(d[5],this.dayOfWeekStartIndexZero)},c.prototype.validateOnlyExpectedCharactersFound=function(d,h){var m=d.match(new RegExp("[^".concat(h,"]+"),"gi"));if(m&&m.length)throw new Error("Expression contains invalid values: '".concat(m.toString(),"'"))},c}();o.CronParser=f},333:(i,o,s)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.ExpressionDescriptor=void 0;var u=s(823),f=s(949),c=function(){function d(h,m){if(this.expression=h,this.options=m,this.expressionParts=new Array(5),!this.options.locale&&d.defaultLocale&&(this.options.locale=d.defaultLocale),!d.locales[this.options.locale]){var b=Object.keys(d.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(b,"'.")),this.options.locale=b}this.i18n=d.locales[this.options.locale],m.use24HourTimeFormat===void 0&&(m.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return d.toString=function(h,m){var b=m===void 0?{}:m,y=b.throwExceptionOnParseError,v=y===void 0?!0:y,g=b.verbose,x=g===void 0?!1:g,C=b.dayOfWeekStartIndexZero,E=C===void 0?!0:C,S=b.monthStartIndexZero,M=S===void 0?!1:S,A=b.use24HourTimeFormat,D=b.locale,N=D===void 0?null:D,j={throwExceptionOnParseError:v,verbose:x,dayOfWeekStartIndexZero:E,monthStartIndexZero:M,use24HourTimeFormat:A,locale:N};j.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var z=new d(h,j);return z.getFullDescription()},d.initialize=function(h,m){m===void 0&&(m="en"),d.specialCharacters=["/","-",",","*"],d.defaultLocale=m,h.load(d.locales)},d.prototype.getFullDescription=function(){var h,m,b="";try{var y=new f.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=y.parse(),this.expressionParts[0]==="@reboot")return((m=(h=this.i18n).atReboot)===null||m===void 0?void 0:m.call(h))||"Run once, at startup";var v=this.getTimeOfDayDescription(),g=this.getDayOfMonthDescription(),x=this.getMonthDescription(),C=this.getDayOfWeekDescription(),E=this.getYearDescription();b+=v+g+C+x+E,b=this.transformVerbosity(b,!!this.options.verbose),b=b.charAt(0).toLocaleUpperCase()+b.substr(1)}catch(S){if(!this.options.throwExceptionOnParseError)b=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(S)}return b},d.prototype.getTimeOfDayDescription=function(){var h=this.expressionParts[0],m=this.expressionParts[1],b=this.expressionParts[2],y="";if(!u.StringUtilities.containsAny(m,d.specialCharacters)&&!u.StringUtilities.containsAny(b,d.specialCharacters)&&!u.StringUtilities.containsAny(h,d.specialCharacters))y+=this.i18n.atSpace()+this.formatTime(b,m,h);else if(!h&&m.indexOf("-")>-1&&!(m.indexOf(",")>-1)&&!(m.indexOf("/")>-1)&&!u.StringUtilities.containsAny(b,d.specialCharacters)){var v=m.split("-");y+=u.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(b,v[0],""),this.formatTime(b,v[1],""))}else if(!h&&b.indexOf(",")>-1&&b.indexOf("-")==-1&&b.indexOf("/")==-1&&!u.StringUtilities.containsAny(m,d.specialCharacters)){var g=b.split(",");y+=this.i18n.at();for(var x=0;x<g.length;x++)y+=" ",y+=this.formatTime(g[x],m,""),x<g.length-2&&(y+=","),x==g.length-2&&(y+=this.i18n.spaceAnd())}else{var C=this.getSecondsDescription(),E=this.getMinutesDescription(),S=this.getHoursDescription();if(y+=C,y&&E&&(y+=", "),y+=E,E===S)return y;y&&S&&(y+=", "),y+=S}return y},d.prototype.getSecondsDescription=function(){var h=this,m=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(b){return b},function(b){return u.StringUtilities.format(h.i18n.everyX0Seconds(b),b)},function(b){return h.i18n.secondsX0ThroughX1PastTheMinute()},function(b){return b=="0"?"":parseInt(b)<20?h.i18n.atX0SecondsPastTheMinute(b):h.i18n.atX0SecondsPastTheMinuteGt20()||h.i18n.atX0SecondsPastTheMinute(b)});return m},d.prototype.getMinutesDescription=function(){var h=this,m=this.expressionParts[0],b=this.expressionParts[2],y=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(v){return v},function(v){return u.StringUtilities.format(h.i18n.everyX0Minutes(v),v)},function(v){return h.i18n.minutesX0ThroughX1PastTheHour()},function(v){try{return v=="0"&&b.indexOf("/")==-1&&m==""?h.i18n.everyHour():parseInt(v)<20?h.i18n.atX0MinutesPastTheHour(v):h.i18n.atX0MinutesPastTheHourGt20()||h.i18n.atX0MinutesPastTheHour(v)}catch{return h.i18n.atX0MinutesPastTheHour(v)}});return y},d.prototype.getHoursDescription=function(){var h=this,m=this.expressionParts[2],b=0,y=[];m.split("/")[0].split(",").forEach(function(x){var C=x.split("-");C.length===2&&y.push({value:C[1],index:b+1}),b+=C.length});var v=0,g=this.getSegmentDescription(m,this.i18n.everyHour(),function(x){var C=y.find(function(S){return S.value===x&&S.index===v}),E=C&&h.expressionParts[1]!=="0";return v++,E?h.formatTime(x,"59",""):h.formatTime(x,"0","")},function(x){return u.StringUtilities.format(h.i18n.everyX0Hours(x),x)},function(x){return h.i18n.betweenX0AndX1()},function(x){return h.i18n.atX0()});return g},d.prototype.getDayOfWeekDescription=function(){var h=this,m=this.i18n.daysOfTheWeek(),b=null;return this.expressionParts[5]=="*"?b="":b=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(y,v){var g=y;y.indexOf("#")>-1?g=y.substring(0,y.indexOf("#")):y.indexOf("L")>-1&&(g=g.replace("L",""));var x=parseInt(g),C=h.i18n.daysOfTheWeekInCase?h.i18n.daysOfTheWeekInCase(v)[x]:m[x];if(y.indexOf("#")>-1){var E=null,S=y.substring(y.indexOf("#")+1),M=y.substring(0,y.indexOf("#"));switch(S){case"1":E=h.i18n.first(M);break;case"2":E=h.i18n.second(M);break;case"3":E=h.i18n.third(M);break;case"4":E=h.i18n.fourth(M);break;case"5":E=h.i18n.fifth(M);break}C=E+" "+C}return C},function(y){return parseInt(y)==1?"":u.StringUtilities.format(h.i18n.commaEveryX0DaysOfTheWeek(y),y)},function(y){var v=y.substring(0,y.indexOf("-")),g=h.expressionParts[3]!="*";return g?h.i18n.commaAndX0ThroughX1(v):h.i18n.commaX0ThroughX1(v)},function(y){var v=null;if(y.indexOf("#")>-1){var g=y.substring(y.indexOf("#")+1),x=y.substring(0,y.indexOf("#"));v=h.i18n.commaOnThe(g,x).trim()+h.i18n.spaceX0OfTheMonth()}else if(y.indexOf("L")>-1)v=h.i18n.commaOnTheLastX0OfTheMonth(y.replace("L",""));else{var C=h.expressionParts[3]!="*";v=C?h.i18n.commaAndOnX0():h.i18n.commaOnlyOnX0(y)}return v}),b},d.prototype.getMonthDescription=function(){var h=this,m=this.i18n.monthsOfTheYear(),b=this.getSegmentDescription(this.expressionParts[4],"",function(y,v){return v&&h.i18n.monthsOfTheYearInCase?h.i18n.monthsOfTheYearInCase(v)[parseInt(y)-1]:m[parseInt(y)-1]},function(y){return parseInt(y)==1?"":u.StringUtilities.format(h.i18n.commaEveryX0Months(y),y)},function(y){return h.i18n.commaMonthX0ThroughMonthX1()||h.i18n.commaX0ThroughX1()},function(y){return h.i18n.commaOnlyInMonthX0?h.i18n.commaOnlyInMonthX0():h.i18n.commaOnlyInX0()});return b},d.prototype.getDayOfMonthDescription=function(){var h=this,m=null,b=this.expressionParts[3];switch(b){case"L":m=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":m=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var y=b.match(/(\d{1,2}W)|(W\d{1,2})/);if(y){var v=parseInt(y[0].replace("W","")),g=v==1?this.i18n.firstWeekday():u.StringUtilities.format(this.i18n.weekdayNearestDayX0(),v.toString());m=u.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),g);break}else{var x=b.match(/L-(\d{1,2})/);if(x){var C=x[1];m=u.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(C),C);break}else{if(b=="*"&&this.expressionParts[5]!="*")return"";m=this.getSegmentDescription(b,this.i18n.commaEveryDay(),function(E){return E=="L"?h.i18n.lastDay():h.i18n.dayX0?u.StringUtilities.format(h.i18n.dayX0(),E):E},function(E){return E=="1"?h.i18n.commaEveryDay():h.i18n.commaEveryX0Days(E)},function(E){return h.i18n.commaBetweenDayX0AndX1OfTheMonth(E)},function(E){return h.i18n.commaOnDayX0OfTheMonth(E)})}break}}return m},d.prototype.getYearDescription=function(){var h=this,m=this.getSegmentDescription(this.expressionParts[6],"",function(b){return/^\d+$/.test(b)?new Date(parseInt(b),1).getFullYear().toString():b},function(b){return u.StringUtilities.format(h.i18n.commaEveryX0Years(b),b)},function(b){return h.i18n.commaYearX0ThroughYearX1()||h.i18n.commaX0ThroughX1()},function(b){return h.i18n.commaOnlyInYearX0?h.i18n.commaOnlyInYearX0():h.i18n.commaOnlyInX0()});return m},d.prototype.getSegmentDescription=function(h,m,b,y,v,g){var x=null,C=h.indexOf("/")>-1,E=h.indexOf("-")>-1,S=h.indexOf(",")>-1;if(!h)x="";else if(h==="*")x=m;else if(!C&&!E&&!S)x=u.StringUtilities.format(g(h),b(h));else if(S){for(var M=h.split(","),A="",D=0;D<M.length;D++)if(D>0&&M.length>2&&(A+=",",D<M.length-1&&(A+=" ")),D>0&&M.length>1&&(D==M.length-1||M.length==2)&&(A+="".concat(this.i18n.spaceAnd()," ")),M[D].indexOf("/")>-1||M[D].indexOf("-")>-1){var N=M[D].indexOf("-")>-1&&M[D].indexOf("/")==-1,j=this.getSegmentDescription(M[D],m,b,y,N?this.i18n.commaX0ThroughX1:v,g);N&&(j=j.replace(", ","")),A+=j}else C?A+=this.getSegmentDescription(M[D],m,b,y,v,g):A+=b(M[D]);C?x=A:x=u.StringUtilities.format(g(h),A)}else if(C){var M=h.split("/");if(x=u.StringUtilities.format(y(M[1]),M[1]),M[0].indexOf("-")>-1){var z=this.generateRangeSegmentDescription(M[0],v,b);z.indexOf(", ")!=0&&(x+=", "),x+=z}else if(M[0].indexOf("*")==-1){var B=u.StringUtilities.format(g(M[0]),b(M[0]));B=B.replace(", ",""),x+=u.StringUtilities.format(this.i18n.commaStartingX0(),B)}}else E&&(x=this.generateRangeSegmentDescription(h,v,b));return x},d.prototype.generateRangeSegmentDescription=function(h,m,b){var y="",v=h.split("-"),g=b(v[0],1),x=b(v[1],2),C=m(h);return y+=u.StringUtilities.format(C,g,x),y},d.prototype.formatTime=function(h,m,b){var y=0,v=0,g=parseInt(h)+y,x=parseInt(m)+v;x>=60?(x-=60,g+=1):x<0&&(x+=60,g-=1),g>=24?g=g-24:g<0&&(g=24+g);var C="",E=!1;this.options.use24HourTimeFormat||(E=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),C=E?"".concat(this.getPeriod(g)," "):" ".concat(this.getPeriod(g)),g>12&&(g-=12),g===0&&(g=12));var S="";return b&&(S=":".concat(("00"+b).substring(b.length))),"".concat(E?C:"").concat(("00"+g.toString()).substring(g.toString().length),":").concat(("00"+x.toString()).substring(x.toString().length)).concat(S).concat(E?"":C)},d.prototype.transformVerbosity=function(h,m){if(!m&&(h=h.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),h=h.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),h=h.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),h=h.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var b=0,y=Object.entries(this.i18n.conciseVerbosityReplacements());b<y.length;b++){var v=y[b],g=v[0],x=v[1];h=h.replace(new RegExp(g,"g"),x)}return h},d.prototype.getPeriod=function(h){return h>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},d.locales={},d}();o.ExpressionDescriptor=c},747:(i,o,s)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.enLocaleLoader=void 0;var u=s(486),f=function(){function c(){}return c.prototype.load=function(d){d.en=new u.en},c}();o.enLocaleLoader=f},486:(i,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.en=void 0;var s=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!1},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},u.prototype.everyMinute=function(){return"every minute"},u.prototype.everyHour=function(){return"every hour"},u.prototype.atSpace=function(){return"At "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},u.prototype.at=function(){return"At"},u.prototype.spaceAnd=function(){return" and"},u.prototype.everySecond=function(){return"every second"},u.prototype.everyX0Seconds=function(){return"every %s seconds"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},u.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},u.prototype.everyX0Minutes=function(){return"every %s minutes"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},u.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},u.prototype.everyX0Hours=function(){return"every %s hours"},u.prototype.betweenX0AndX1=function(){return"between %s and %s"},u.prototype.atX0=function(){return"at %s"},u.prototype.commaEveryDay=function(){return", every day"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},u.prototype.commaX0ThroughX1=function(){return", %s through %s"},u.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},u.prototype.first=function(){return"first"},u.prototype.second=function(){return"second"},u.prototype.third=function(){return"third"},u.prototype.fourth=function(){return"fourth"},u.prototype.fifth=function(){return"fifth"},u.prototype.commaOnThe=function(){return", on the "},u.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},u.prototype.lastDay=function(){return"the last day"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},u.prototype.commaOnlyOnX0=function(){return", only on %s"},u.prototype.commaAndOnX0=function(){return", and on %s"},u.prototype.commaEveryX0Months=function(){return", every %s months"},u.prototype.commaOnlyInX0=function(){return", only in %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},u.prototype.firstWeekday=function(){return"first weekday"},u.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},u.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},u.prototype.commaEveryX0Days=function(){return", every %s days"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},u.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},u.prototype.commaEveryHour=function(){return", every hour"},u.prototype.commaEveryX0Years=function(){return", every %s years"},u.prototype.commaStartingX0=function(){return", starting %s"},u.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},u.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},u.prototype.atReboot=function(){return"Run once, at startup"},u}();o.en=s},515:(i,o)=>{Object.defineProperty(o,"__esModule",{value:!0});function s(f,c){if(!f)throw new Error(c)}var u=function(){function f(){}return f.secondRange=function(c){for(var d=c.split(","),h=0;h<d.length;h++)if(!isNaN(parseInt(d[h],10))){var m=parseInt(d[h],10);s(m>=0&&m<=59,"seconds part must be >= 0 and <= 59")}},f.minuteRange=function(c){for(var d=c.split(","),h=0;h<d.length;h++)if(!isNaN(parseInt(d[h],10))){var m=parseInt(d[h],10);s(m>=0&&m<=59,"minutes part must be >= 0 and <= 59")}},f.hourRange=function(c){for(var d=c.split(","),h=0;h<d.length;h++)if(!isNaN(parseInt(d[h],10))){var m=parseInt(d[h],10);s(m>=0&&m<=23,"hours part must be >= 0 and <= 23")}},f.dayOfMonthRange=function(c){for(var d=c.split(","),h=0;h<d.length;h++)if(!isNaN(parseInt(d[h],10))){var m=parseInt(d[h],10);s(m>=1&&m<=31,"DOM part must be >= 1 and <= 31")}},f.monthRange=function(c,d){for(var h=c.split(","),m=0;m<h.length;m++)if(!isNaN(parseInt(h[m],10))){var b=parseInt(h[m],10);s(b>=1&&b<=12,d?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},f.dayOfWeekRange=function(c,d){for(var h=c.split(","),m=0;m<h.length;m++)if(!isNaN(parseInt(h[m],10))){var b=parseInt(h[m],10);s(b>=0&&b<=6,d?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},f}();o.default=u},823:(i,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.StringUtilities=void 0;var s=function(){function u(){}return u.format=function(f){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];return f.replace(/%s/g,function(h){return c.shift()})},u.containsAny=function(f,c){return c.some(function(d){return f.indexOf(d)>-1})},u}();o.StringUtilities=s}},r={};function a(i){var o=r[i];if(o!==void 0)return o.exports;var s=r[i]={exports:{}};return n[i](s,s.exports,a),s.exports}var l={};return(()=>{var i=l;Object.defineProperty(i,"__esModule",{value:!0}),i.toString=void 0;var o=a(333),s=a(747);o.ExpressionDescriptor.initialize(new s.enLocaleLoader),i.default=o.ExpressionDescriptor;var u=o.ExpressionDescriptor.toString;i.toString=u})(),l})())})(Ex);var SU=Ex.exports;const EU=p8(SU);var MU=function(e){var t=e.scheduler,n=e.queueName,r=e.onRemove,a=ge.scheduler.remove.useMutation(),l=a.mutate,i=a.isSuccess;return p.useEffect(function(){i&&(r==null||r())},[i,r]),w.jsx(zf,{actions:[{label:"Remove",onSelect:function(){l({queueName:n,jobSchedulerId:t.key})},icon:w.jsx(no,{})}]})},OU=function(e){var t=e.scheduler,n=e.queueName,r=e.onDismiss,a=t.template,l=Hi({},t);return delete l.template,w.jsx(Af,{isOpen:!0,isDismissable:!0,onOpenChange:function(i){i||r()},className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:w.jsx(Df,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(i){var o=i.close;return w.jsxs(w.Fragment,{children:[w.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800","aria-label":"Close",onClick:function(){r(),o()},children:w.jsx(Rg,{})}),w.jsxs("div",{className:"flex items-center space-x-4",children:[w.jsxs(Nf,{className:"mb-1 flex items-center space-x-2",children:[w.jsx("span",{className:"text-xl font-semibold text-slate-900 dark:text-slate-100",children:t.name}),w.jsxs("span",{className:"rounded-md text-slate-500 dark:text-slate-400",children:["#",t.id]})]}),w.jsx(MU,{queueName:n,scheduler:t,onRemove:r})]}),w.jsxs("div",{children:[w.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[w.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),w.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:w.jsx(Ss,{data:l,theme:"monokai"})})]}),w.jsxs("div",{className:"space-y-2 pt-4",children:[w.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Template"}),w.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:w.jsx(Ss,{data:a,theme:"monokai"})})]})]})]})}})})},vc=u6();function RU(e,t){t===void 0&&(t=new Date);var n=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"short"}),r=n.formatToParts(t),a=r.find(function(l){return l.type==="timeZoneName"});return(a==null?void 0:a.value)||""}var TU=function(e){return[vc.display({id:"select",header:function(t){var n=t.table;return w.jsx(Hd,{checked:n.getIsSomeRowsSelected()?"indeterminate":n.getIsAllRowsSelected(),onCheckedChange:function(){n.toggleAllRowsSelected()}})},cell:function(t){var n=t.row,r=t.table;return w.jsx(Hd,{className:r.getIsSomeRowsSelected()||r.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:n.getIsSomeSelected()?"indeterminate":n.getIsSelected(),onCheckedChange:function(a){n.getToggleSelectedHandler()(a),e(n.index)}})}}),vc.accessor("name",{cell:function(t){return w.jsx("div",{className:"flex w-full items-center space-x-2",children:w.jsx("span",{className:"max-w-fit grow basis-full truncate text-slate-900 dark:text-slate-200",children:t.cell.row.original.name})})},header:"Scheduler"}),vc.accessor("pattern",{cell:function(t){return w.jsxs("span",{className:"grow basis-full truncate text-slate-900 dark:text-slate-200",children:[t.cell.row.original.pattern?EU.toString(t.cell.row.original.pattern,{verbose:!0}):t.cell.row.original.every?"Every ".concat(t.cell.row.original.every):""," ",t.cell.row.original.tz?"(".concat(RU(t.cell.row.original.tz),")"):""]})},header:"Pattern"}),vc.accessor("next",{cell:function(t){return t.cell.row.original.next?w.jsx(t1,{message:O6(new Date(t.cell.row.original.next),"dd MMM yyyy HH:mm:ss zzz"),children:w.jsx("div",{className:"flex items-center space-x-1.5",children:w.jsxs("p",{className:"text-slate-900 dark:text-slate-200",children:["In ",R6(new Date(t.cell.row.original.next))," ",w.jsxs("span",{className:"text-sm text-slate-700 dark:text-slate-400",children:["(",t.cell.row.original.iterationCount," run",t.cell.row.original.iterationCount===1?"":"s"," total)"]})]})})}):w.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:"No next run"})},header:"Next Run"})]},kU=function(e){var t=e.queueName,n=p.useState({}),r=n[0],a=n[1],l=p.useRef(null),i=ge.scheduler.list.useQuery({queueName:t}),o=i.data,s=i.isLoading,u=(o==null?void 0:o.length)===0,f=function(g){l.current=g},c=TU(f),d=x6({data:o||[],columns:c,getCoreRowModel:y6(),state:{rowSelection:r},onRowSelectionChange:a}),h=p.useState(null),m=h[0],b=h[1],y=ge.scheduler.bulkRemove.useMutation().mutate,v=function(g,x){if(g.shiftKey&&l.current!==null){g.preventDefault();for(var C=Math.min(l.current,x),E=Math.max(l.current,x),S=Hi({},r),M=C;M<=E;M++)S[M]=!0;a(S)}else b(d.getRowModel().rows[x].original),l.current=x};return!s&&u?null:w.jsxs("div",{children:[m?w.jsx(OU,{scheduler:m,queueName:t,onDismiss:function(){return b(null)}}):null,w.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:s?w.jsx(k6,{}):w.jsxs("div",{children:[d.getHeaderGroups().map(function(g,x){return w.jsx("div",{className:"sticky top-0 grid grid-cols-[auto,350px,1fr,1fr] rounded-t-md border-b border-slate-200 bg-slate-100/50 p-2 backdrop-blur-md dark:border-slate-700 dark:bg-slate-900/50",children:g.headers.map(function(C){return w.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(x!==0?"pr-10":"pr-3"),children:C.isPlaceholder?null:Ld(C.column.columnDef.header,C.getContext())},C.id)})},g.id)}),d.getRowModel().rows.map(function(g,x){return w.jsx(T6,{isLastRow:d.getRowModel().rows.length!==x+1,isSelected:g.getIsSelected(),onClick:function(C){return v(C,x)},layoutVariant:"scheduler",children:g.getVisibleCells().map(function(C,E){return w.jsx("div",{className:"flex h-full items-center ".concat(E!==0?"pr-10":"pr-3"),children:Ld(C.column.columnDef.cell,C.getContext())},C.id)})},g.id)})]})}),d.getSelectedRowModel().rows.length>0?w.jsx("div",{className:"pointer-events-none sticky bottom-0 flex w-full items-center justify-center pb-5",children:w.jsxs("div",{className:"pointer-events-auto flex items-center space-x-3 rounded-lg border-slate-100 bg-white/90 px-3 py-2 text-sm shadow-lg backdrop-blur dark:border-slate-700 dark:bg-slate-900/90",children:[w.jsxs("p",{className:"text-slate-900 dark:text-slate-100",children:[d.getSelectedRowModel().rows.length," selected"]}),w.jsx(Ma,{label:"Delete",colorScheme:"red",icon:w.jsx(no,{}),size:"sm",onClick:function(){y({queueName:t,jobSchedulerIds:d.getSelectedRowModel().rows.map(function(g){return g.original.key})}),d.resetRowSelection()}})]})}):null]})},bc=function(e){var t=e.label,n=e.value,r=e.trend,a=e.variant,l=a===void 0?"completed":a,i=l==="completed"?r!=null&&r.isPositive?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400":r!=null&&r.isPositive?"text-red-600 dark:text-red-400":"text-green-600 dark:text-green-400";return w.jsxs("div",{className:"group flex flex-col space-y-2 rounded-xl border border-slate-200/80 bg-white/80 px-4 py-3 backdrop-blur-sm transition-all duration-200 hover:border-slate-300 hover:shadow-sm dark:border-slate-700/50 dark:bg-slate-900/50 dark:hover:border-slate-600",children:[w.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-slate-500 dark:text-slate-400",children:t}),w.jsxs("div",{className:"flex items-baseline space-x-2",children:[w.jsx("p",{className:"font-mono text-2xl font-semibold tabular-nums leading-none text-slate-900 dark:text-slate-50",children:typeof n=="number"?n.toLocaleString():n}),r&&w.jsxs("div",{className:"flex items-center space-x-0.5 font-mono text-xs font-medium ".concat(i),children:[r.isPositive?w.jsx(mR,{width:11,height:11}):w.jsx(hR,{width:11,height:11}),w.jsxs("span",{children:[Math.abs(r.value),"%"]})]})]})]})},Il={"1m":{label:"Last minute",minutes:1},"1h":{label:"Last hour",minutes:60},"24h":{label:"Last 24 hours",minutes:1440},"7d":{label:"Last 7 days",minutes:10080}},jU=function(e){var t=e.queueName,n=p.useState("1h"),r=n[0],a=n[1],l=ge.queue.metrics.useQuery({queueName:t,type:"completed",start:0,end:Il[r].minutes},{enabled:!!t,refetchInterval:Ys}),i=l.data,o=l.isLoading,s=ge.queue.metrics.useQuery({queueName:t,type:"failed",start:0,end:Il[r].minutes},{enabled:!!t,refetchInterval:Ys}),u=s.data,f=s.isLoading,c=o||f,d=function(v,g){if(g===0)return null;var x=(v-g)/g*100;return{value:Math.round(Math.abs(x)),isPositive:x>0}},h=i&&d(i.count,i.meta.prevCount),m=u&&d(u.count,u.meta.prevCount),b=i?(i.count/Il[r].minutes).toFixed(1):"0";u&&(u.count/Il[r].minutes).toFixed(1);var y=i&&u?i.count+u.count>0?(i.count/(i.count+u.count)*100).toFixed(1):"100":"0";return w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx("h2",{className:"text-lg font-semibold tracking-tight text-slate-900 dark:text-slate-50",children:"Metrics"}),w.jsx("div",{className:"flex items-center space-x-0.5 rounded-lg border border-slate-200/80 bg-white/80 p-0.5 backdrop-blur-sm dark:border-slate-700/50 dark:bg-slate-900/50",children:Object.keys(Il).map(function(v){return w.jsx("button",{onClick:function(){return a(v)},className:"rounded-md px-2.5 py-1 text-xs font-medium transition-all duration-150 ".concat(r===v?"bg-slate-100 text-slate-900 shadow-sm dark:bg-slate-800 dark:text-slate-100":"text-slate-600 hover:bg-slate-50 hover:text-slate-900 dark:text-slate-400 dark:hover:bg-slate-800/50 dark:hover:text-slate-100"),children:Il[v].label},v)})})]}),c?w.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:wt([],Array(4),!0).map(function(v,g){return w.jsx(qs,{className:"h-[88px] rounded-xl"},g)})}):w.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[w.jsx(bc,{label:"Completed",value:(i==null?void 0:i.count)||0,trend:h||void 0,variant:"completed"}),w.jsx(bc,{label:"Failed",value:(u==null?void 0:u.count)||0,trend:m||void 0,variant:"failed"}),w.jsx(bc,{label:"Success Rate",value:"".concat(y,"%")}),w.jsx(bc,{label:"Throughput",value:"".concat(b,"/min")})]})]})},xh=new Intl.NumberFormat("en-US").format,DU=function(){var e,t,n,r,a,l=vO().id,i=l,o=iR()[0],s=p.useState("completed"),u=s[0],f=s[1],c=ge.job.list.useInfiniteQuery({queueName:i,limit:am,status:u},{getNextPageParam:function(C){return C.nextCursor},enabled:!!i,refetchInterval:Ys,retry:lm}),d=c.data,h=c.fetchNextPage,m=c.isLoading,b=c.isError,y=c.isFetchingNextPage,v=c.hasNextPage;p.useEffect(function(){var C=o.get("status");C&&f(C),!C&&u&&f("completed")},[o,u]);var g=ge.queue.byName.useQuery({queueName:i},{enabled:!!i,refetchInterval:Ys,retry:lm}),x=(e=d==null?void 0:d.pages.map(function(C){return C.jobs}).flat())!==null&&e!==void 0?e:[];return w.jsx(s6,{children:g.data===null?w.jsx($p,{message:"No queue found"}):b?w.jsx($p,{message:"Could not fetch jobs"}):w.jsxs("div",{children:[w.jsx("div",{className:"mb-2 flex justify-between",children:w.jsxs("div",{className:"flex items-center space-x-4",children:[w.jsx("h1",{className:"text-2xl font-bold text-slate-900 dark:text-slate-50",children:g.data?g.data.displayName:w.jsx(qs,{className:"h-8 w-52 rounded-md"})}),w.jsxs("div",{className:"flex items-center space-x-2",children:[g.data?w.jsx(CU,{queue:g.data}):null,!((t=g.data)===null||t===void 0)&&t.paused?w.jsx("div",{className:"flex h-7 cursor-default items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 text-sm font-medium text-yellow-900 transition duration-150 ease-in-out dark:bg-yellow-950/30 dark:text-yellow-400",children:w.jsx("span",{children:"Paused"})}):null]})]})}),w.jsx("div",{className:"mb-5",children:w.jsx("div",{className:"flex items-center space-x-2",children:g.data?w.jsxs(w.Fragment,{children:[w.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:[w.jsxs("span",{className:"text-green-800 dark:text-green-400",children:[xh(g.data.client.connectedClients)," ","connected"]})," ","and"," ",w.jsxs("span",{className:"text-red-800 dark:text-red-400",children:[xh(g.data.client.blockedClients)," ","blocked"]})," ","out of"," ",w.jsxs("span",{className:"text-slate-900 dark:text-slate-100",children:[xh(g.data.client.maxClients)," max clients"]})]}),w.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"·"}),w.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:[g.data.client.usedMemoryHuman," /"," ",g.data.client.totalMemoryHuman," (",(g.data.client.usedMemoryPercentage*100).toFixed(2),"%)"]}),w.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"·"}),w.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:["Redis v",g.data.client.version]})]}):w.jsx(qs,{className:"h-6 w-80"})})}),w.jsxs("div",{className:"space-y-8",children:[!((n=g.data)===null||n===void 0)&&n.supports.metrics?w.jsx(jU,{queueName:i}):null,!((r=g.data)===null||r===void 0)&&r.supports.schedulers?w.jsx(kU,{queueName:i}):null,w.jsxs("div",{className:"space-y-4",children:[w.jsx(fK,{showCleanAllButton:x.length>0,queueName:i,status:u,queue:g.data}),w.jsx(PH,{onBottomInView:function(){y||!v||h()},status:u,totalJobs:((a=d==null?void 0:d.pages.at(-1))===null||a===void 0?void 0:a.totalCount)||0,jobs:x.map(function(C){return Hi(Hi({},C),{status:u})}),isLoading:m,isFetchingNextPage:y,queueName:i})]})]})]})})},yc=function(e){var t=e.count,n=e.variant,r={active:"text-cyan-600 dark:text-cyan-400",completed:"text-green-600 dark:text-green-400",failed:"text-red-600 dark:text-red-400",waiting:"text-amber-600 dark:text-amber-400"},a={active:w.jsx(M3,{width:16,height:16}),completed:w.jsx(w3,{width:16,height:16}),failed:w.jsx(C3,{width:16,height:16}),waiting:w.jsx(VR,{width:16,height:16})};return w.jsx("div",{children:w.jsx(t1,{message:n.charAt(0).toUpperCase()+n.slice(1),children:w.jsxs("div",{className:"flex items-center space-x-1 text-sm ".concat(r[n]),children:[w.jsx("p",{className:"text-lg",children:t}),a[n]]})})})},NU=function(e){var t=e.queueName,n=ge.queue.byName.useQuery({queueName:t},{refetchInterval:Ys,retry:lm});return n.data?w.jsxs(wf,{to:"../".concat(n.data.name),className:"group flex items-center justify-between transition",children:[w.jsxs("div",{className:"flex items-center space-x-2",children:[w.jsx("p",{className:"py-3 text-lg font-medium text-slate-900 transition group-hover:text-brand-900 dark:text-slate-200 dark:group-hover:text-brand-100",children:n.data.displayName}),w.jsx("div",{children:n.data.paused?w.jsx("div",{className:"flex h-7 items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 text-sm font-medium text-yellow-900 transition duration-150 ease-in-out dark:bg-yellow-950/30 dark:text-yellow-400",children:w.jsx("span",{children:"Paused"})}):null})]}),w.jsxs("div",{className:"flex space-x-5",children:[w.jsx(yc,{count:n.data.counts.completed,variant:"completed"}),w.jsx(yc,{count:n.data.counts.failed,variant:"failed"}),w.jsx(yc,{count:n.data.counts.active,variant:"active"}),w.jsx(yc,{count:n.data.counts.waiting,variant:"waiting"})]})]}):null},AU=function(){var e=ge.queue.list.useQuery().data,t=ge.queue.pauseAll.useMutation().mutate,n=ge.queue.resumeAll.useMutation().mutate;return w.jsx(s6,{children:w.jsxs("div",{className:"xl:max-w-2xl",children:[w.jsxs("div",{className:"flex justify-between",children:[w.jsx("h1",{className:"mb-6 text-2xl font-bold text-slate-900 dark:text-slate-50",children:"Queues"}),w.jsx("div",{children:w.jsx(zf,{actions:[{label:"Resume all",icon:w.jsx(E3,{}),onSelect:function(){return n()}},{label:"Pause all",icon:w.jsx(S3,{}),onSelect:function(){return t()}}]})})]}),w.jsx("div",{children:e==null?void 0:e.map(function(r,a){return w.jsx("div",{className:(e==null?void 0:e.length)-1!==a?"border-b border-slate-100 dark:border-slate-700":"",children:w.jsx(NU,{queueName:r.name},r.name)},r.name)})})]})})},LU=function(e){var t=e.apiUrl,n=e.basename,r=p.useState(!1),a=r[0],l=r[1],i=p.useState(function(){return new rE})[0],o=p.useState(function(){return ge.createClient({links:[WE({url:t})]})})[0];return p.useEffect(function(){var s=JSON.parse(localStorage.getItem("user-preferences")||"null");s?s.theme==="dark"||s.theme==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"):window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),l(!0)},[]),a?w.jsx(ge.Provider,{client:o,queryClient:i,children:w.jsxs(aE,{client:i,children:[w.jsx(dK,{}),w.jsx(nR,{basename:n,children:w.jsxs(NO,{children:[w.jsx(kp,{path:"/",element:w.jsx(AU,{})}),w.jsx(kp,{path:"/:id",element:w.jsx(DU,{})})]})})]})}):null};jS.createRoot(document.getElementById("root")).render(f1.jsx(p.StrictMode,{children:f1.jsx(LU,{apiUrl:window.__INITIAL_STATE__.apiUrl,basename:window.__INITIAL_STATE__.basename})}));
|
|
120
|
+
`},u2=tU(lU)(E6),iU={config:rU},oU=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(a,l){return l(a)},r)}};function M6(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],M6(e[n],t[n]))}),i2(i2({},e),t)}var sU={type:"cancelation",msg:"operation is manually canceled"};function bh(e){var t=!1,n=new Promise(function(r,a){e.then(function(l){return t?a(sU):r(l)}),e.catch(a)});return n.cancel=function(){return t=!0},n}var uU=["monaco"],cU=JK.create({config:eU,isInitialized:!1,resolve:null,reject:null,monaco:null}),O6=_K(cU,2),xu=O6[0],Pf=O6[1];function dU(e){var t=iU.config(e),n=t.monaco,r=AK(t,uU);Pf(function(a){return{config:M6(a.config,r),monaco:n}})}function fU(){var e=xu(function(t){var n=t.monaco,r=t.isInitialized,a=t.resolve;return{monaco:n,isInitialized:r,resolve:a}});if(!e.isInitialized){if(Pf({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),bh(yh);if(window.monaco&&window.monaco.editor)return R6(window.monaco),e.resolve(window.monaco),bh(yh);oU(hU,mU)(gU)}return bh(yh)}function hU(e){return document.body.appendChild(e)}function pU(e){var t=document.createElement("script");return e&&(t.src=e),t}function mU(e){var t=xu(function(r){var a=r.config,l=r.reject;return{config:a,reject:l}}),n=pU("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function gU(){var e=xu(function(n){var r=n.config,a=n.resolve,l=n.reject;return{config:r,resolve:a,reject:l}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;R6(r),e.resolve(r)},function(n){e.reject(n)})}function R6(e){xu().monaco||Pf({monaco:e})}function vU(){return xu(function(e){var t=e.monaco;return t})}var yh=new Promise(function(e,t){return Pf({resolve:e,reject:t})}),k6={config:dU,init:fU,__getMonacoInstance:vU},bU={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},xh=bU,yU={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},xU=yU;function wU({children:e}){return O.createElement("div",{style:xU.container},e)}var SU=wU,CU=SU;function EU({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:l,wrapperProps:i}){return O.createElement("section",{style:{...xh.wrapper,width:e,height:t},...i},!n&&O.createElement(CU,null,r),O.createElement("div",{ref:a,style:{...xh.fullWidth,...!n&&xh.hide},className:l}))}var MU=EU,T6=p.memo(MU);function OU(e){p.useEffect(e,[])}var D6=OU;function RU(e,t,n=!0){let r=p.useRef(!0);p.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Vt=RU;function ws(){}function fi(e,t,n,r){return kU(e,r)||TU(e,t,n,r)}function kU(e,t){return e.editor.getModel(j6(e,t))}function TU(e,t,n,r){return e.editor.createModel(t,n,r?j6(e,r):void 0)}function j6(e,t){return e.Uri.parse(t)}function DU({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:a,originalModelPath:l,modifiedModelPath:i,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:s=!1,theme:u="light",loading:f="Loading...",options:c={},height:d="100%",width:h="100%",className:m,wrapperProps:v={},beforeMount:y=ws,onMount:b=ws}){let[g,x]=p.useState(!1),[S,C]=p.useState(!0),E=p.useRef(null),M=p.useRef(null),N=p.useRef(null),j=p.useRef(b),A=p.useRef(y),U=p.useRef(!1);D6(()=>{let _=k6.init();return _.then(T=>(M.current=T)&&C(!1)).catch(T=>(T==null?void 0:T.type)!=="cancelation"&&console.error("Monaco initialization: error:",T)),()=>E.current?Q():_.cancel()}),Vt(()=>{if(E.current&&M.current){let _=E.current.getOriginalEditor(),T=fi(M.current,e||"",r||n||"text",l||"");T!==_.getModel()&&_.setModel(T)}},[l],g),Vt(()=>{if(E.current&&M.current){let _=E.current.getModifiedEditor(),T=fi(M.current,t||"",a||n||"text",i||"");T!==_.getModel()&&_.setModel(T)}},[i],g),Vt(()=>{let _=E.current.getModifiedEditor();_.getOption(M.current.editor.EditorOption.readOnly)?_.setValue(t||""):t!==_.getValue()&&(_.executeEdits("",[{range:_.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),_.pushUndoStop())},[t],g),Vt(()=>{var _,T;(T=(_=E.current)==null?void 0:_.getModel())==null||T.original.setValue(e||"")},[e],g),Vt(()=>{let{original:_,modified:T}=E.current.getModel();M.current.editor.setModelLanguage(_,r||n||"text"),M.current.editor.setModelLanguage(T,a||n||"text")},[n,r,a],g),Vt(()=>{var _;(_=M.current)==null||_.editor.setTheme(u)},[u],g),Vt(()=>{var _;(_=E.current)==null||_.updateOptions(c)},[c],g);let F=p.useCallback(()=>{var _;if(!M.current)return;A.current(M.current);let T=fi(M.current,e||"",r||n||"text",l||""),L=fi(M.current,t||"",a||n||"text",i||"");(_=E.current)==null||_.setModel({original:T,modified:L})},[n,t,a,e,r,l,i]),G=p.useCallback(()=>{var _;!U.current&&N.current&&(E.current=M.current.editor.createDiffEditor(N.current,{automaticLayout:!0,...c}),F(),(_=M.current)==null||_.editor.setTheme(u),x(!0),U.current=!0)},[c,u,F]);p.useEffect(()=>{g&&j.current(E.current,M.current)},[g]),p.useEffect(()=>{!S&&!g&&G()},[S,g,G]);function Q(){var _,T,L,K;let V=(_=E.current)==null?void 0:_.getModel();o||(T=V==null?void 0:V.original)==null||T.dispose(),s||(L=V==null?void 0:V.modified)==null||L.dispose(),(K=E.current)==null||K.dispose()}return O.createElement(T6,{width:h,height:d,isEditorReady:g,loading:f,_ref:N,className:m,wrapperProps:v})}var jU=DU;p.memo(jU);function NU(e){let t=p.useRef();return p.useEffect(()=>{t.current=e},[e]),t.current}var AU=NU,gc=new Map;function LU({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:a,path:l,theme:i="light",line:o,loading:s="Loading...",options:u={},overrideServices:f={},saveViewState:c=!0,keepCurrentModel:d=!1,width:h="100%",height:m="100%",className:v,wrapperProps:y={},beforeMount:b=ws,onMount:g=ws,onChange:x,onValidate:S=ws}){let[C,E]=p.useState(!1),[M,N]=p.useState(!0),j=p.useRef(null),A=p.useRef(null),U=p.useRef(null),F=p.useRef(g),G=p.useRef(b),Q=p.useRef(),_=p.useRef(r),T=AU(l),L=p.useRef(!1),K=p.useRef(!1);D6(()=>{let z=k6.init();return z.then(k=>(j.current=k)&&N(!1)).catch(k=>(k==null?void 0:k.type)!=="cancelation"&&console.error("Monaco initialization: error:",k)),()=>A.current?D():z.cancel()}),Vt(()=>{var z,k,P,B;let Y=fi(j.current,e||r||"",t||a||"",l||n||"");Y!==((z=A.current)==null?void 0:z.getModel())&&(c&&gc.set(T,(k=A.current)==null?void 0:k.saveViewState()),(P=A.current)==null||P.setModel(Y),c&&((B=A.current)==null||B.restoreViewState(gc.get(l))))},[l],C),Vt(()=>{var z;(z=A.current)==null||z.updateOptions(u)},[u],C),Vt(()=>{!A.current||r===void 0||(A.current.getOption(j.current.editor.EditorOption.readOnly)?A.current.setValue(r):r!==A.current.getValue()&&(K.current=!0,A.current.executeEdits("",[{range:A.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),A.current.pushUndoStop(),K.current=!1))},[r],C),Vt(()=>{var z,k;let P=(z=A.current)==null?void 0:z.getModel();P&&a&&((k=j.current)==null||k.editor.setModelLanguage(P,a))},[a],C),Vt(()=>{var z;o!==void 0&&((z=A.current)==null||z.revealLine(o))},[o],C),Vt(()=>{var z;(z=j.current)==null||z.editor.setTheme(i)},[i],C);let V=p.useCallback(()=>{var z;if(!(!U.current||!j.current)&&!L.current){G.current(j.current);let k=l||n,P=fi(j.current,r||e||"",t||a||"",k||"");A.current=(z=j.current)==null?void 0:z.editor.create(U.current,{model:P,automaticLayout:!0,...u},f),c&&A.current.restoreViewState(gc.get(k)),j.current.editor.setTheme(i),o!==void 0&&A.current.revealLine(o),E(!0),L.current=!0}},[e,t,n,r,a,l,u,f,c,i,o]);p.useEffect(()=>{C&&F.current(A.current,j.current)},[C]),p.useEffect(()=>{!M&&!C&&V()},[M,C,V]),_.current=r,p.useEffect(()=>{var z,k;C&&x&&((z=Q.current)==null||z.dispose(),Q.current=(k=A.current)==null?void 0:k.onDidChangeModelContent(P=>{K.current||x(A.current.getValue(),P)}))},[C,x]),p.useEffect(()=>{if(C){let z=j.current.editor.onDidChangeMarkers(k=>{var P;let B=(P=A.current.getModel())==null?void 0:P.uri;if(B&&k.find(Y=>Y.path===B.path)){let Y=j.current.editor.getModelMarkers({resource:B});S==null||S(Y)}});return()=>{z==null||z.dispose()}}return()=>{}},[C,S]);function D(){var z,k;(z=Q.current)==null||z.dispose(),d?c&&gc.set(l,A.current.saveViewState()):(k=A.current.getModel())==null||k.dispose(),A.current.dispose()}return O.createElement(T6,{width:h,height:m,isEditorReady:C,loading:s,_ref:U,className:v,wrapperProps:y})}var _U=LU,zU=p.memo(_U),PU=zU,wh=function(e){var t=e.value,n=e.onChange,r=p.useRef(null),a=function(){var i,o;(o=(i=r.current)===null||i===void 0?void 0:i.getAction("editor.action.formatDocument"))===null||o===void 0||o.run()},l=function(i){var o=String.fromCharCode(i.which).toLowerCase();(i.ctrlKey||i.metaKey)&&o==="s"&&(i.preventDefault(),a())};return w.jsx("div",{onKeyDown:l,onBlur:a,className:"mb-6 border border-slate-200",children:w.jsx(PU,{height:"300px",language:"json",className:"rounded-md",options:{minimap:{enabled:!1},formatOnPaste:!0,formatOnType:!0,padding:{top:8,bottom:8},tabSize:2},defaultValue:t,onChange:function(i){i&&n(i)},onMount:function(i,o){r.current=i,o.editor.defineTheme("solarized-light",{base:"vs",inherit:!0,rules:[{background:"ffffff",token:""},{foreground:"6a737d",token:"comment"},{foreground:"6a737d",token:"punctuation.definition.comment"},{foreground:"6a737d",token:"string.comment"},{foreground:"005cc5",token:"constant"},{foreground:"005cc5",token:"entity.name.constant"},{foreground:"005cc5",token:"variable.other.constant"},{foreground:"005cc5",token:"variable.language"},{foreground:"6f42c1",token:"entity"},{foreground:"6f42c1",token:"entity.name"},{foreground:"24292e",token:"variable.parameter.function"},{foreground:"22863a",token:"entity.name.tag"},{foreground:"d73a49",token:"keyword"},{foreground:"d73a49",token:"storage"},{foreground:"d73a49",token:"storage.type"},{foreground:"24292e",token:"storage.modifier.package"},{foreground:"24292e",token:"storage.modifier.import"},{foreground:"24292e",token:"storage.type.java"},{foreground:"032f62",token:"string"},{foreground:"032f62",token:"punctuation.definition.string"},{foreground:"032f62",token:"string punctuation.section.embedded source"},{foreground:"005cc5",token:"support"},{foreground:"005cc5",token:"meta.property-name"},{foreground:"e36209",token:"variable"},{foreground:"24292e",token:"variable.other"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.broken"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.deprecated"},{foreground:"fafbfc",background:"b31d28",fontStyle:"italic underline",token:"invalid.illegal"},{foreground:"fafbfc",background:"d73a49",fontStyle:"italic underline",token:"carriage-return"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.unimplemented"},{foreground:"b31d28",token:"message.error"},{foreground:"24292e",token:"string source"},{foreground:"005cc5",token:"string variable"},{foreground:"032f62",token:"source.regexp"},{foreground:"032f62",token:"string.regexp"},{foreground:"032f62",token:"string.regexp.character-class"},{foreground:"032f62",token:"string.regexp constant.character.escape"},{foreground:"032f62",token:"string.regexp source.ruby.embedded"},{foreground:"032f62",token:"string.regexp string.regexp.arbitrary-repitition"},{foreground:"22863a",fontStyle:"bold",token:"string.regexp constant.character.escape"},{foreground:"005cc5",token:"support.constant"},{foreground:"005cc5",token:"support.variable"},{foreground:"005cc5",token:"meta.module-reference"},{foreground:"735c0f",token:"markup.list"},{foreground:"005cc5",fontStyle:"bold",token:"markup.heading"},{foreground:"005cc5",fontStyle:"bold",token:"markup.heading entity.name"},{foreground:"22863a",token:"markup.quote"},{foreground:"24292e",fontStyle:"italic",token:"markup.italic"},{foreground:"24292e",fontStyle:"bold",token:"markup.bold"},{foreground:"005cc5",token:"markup.raw"},{foreground:"b31d28",background:"ffeef0",token:"markup.deleted"},{foreground:"b31d28",background:"ffeef0",token:"meta.diff.header.from-file"},{foreground:"b31d28",background:"ffeef0",token:"punctuation.definition.deleted"},{foreground:"22863a",background:"f0fff4",token:"markup.inserted"},{foreground:"22863a",background:"f0fff4",token:"meta.diff.header.to-file"},{foreground:"22863a",background:"f0fff4",token:"punctuation.definition.inserted"},{foreground:"e36209",background:"ffebda",token:"markup.changed"},{foreground:"e36209",background:"ffebda",token:"punctuation.definition.changed"},{foreground:"f6f8fa",background:"005cc5",token:"markup.ignored"},{foreground:"f6f8fa",background:"005cc5",token:"markup.untracked"},{foreground:"6f42c1",fontStyle:"bold",token:"meta.diff.range"},{foreground:"005cc5",token:"meta.diff.header"},{foreground:"005cc5",fontStyle:"bold",token:"meta.separator"},{foreground:"005cc5",token:"meta.output"},{foreground:"586069",token:"brackethighlighter.tag"},{foreground:"586069",token:"brackethighlighter.curly"},{foreground:"586069",token:"brackethighlighter.round"},{foreground:"586069",token:"brackethighlighter.square"},{foreground:"586069",token:"brackethighlighter.angle"},{foreground:"586069",token:"brackethighlighter.quote"},{foreground:"b31d28",token:"brackethighlighter.unmatched"},{foreground:"b31d28",token:"sublimelinter.mark.error"},{foreground:"e36209",token:"sublimelinter.mark.warning"},{foreground:"959da5",token:"sublimelinter.gutter-mark"},{foreground:"032f62",fontStyle:"underline",token:"constant.other.reference.link"},{foreground:"032f62",fontStyle:"underline",token:"string.other.link"}],colors:{"editor.foreground":"#24292e","editor.background":"#ffffff","editor.selectionBackground":"#c8c8fa","editor.inactiveSelectionBackground":"#fafbfc","editor.lineHighlightBackground":"#fafbfc","editorCursor.foreground":"#24292e","editorWhitespace.foreground":"#959da5","editorIndentGuide.background":"#959da5","editorIndentGuide.activeBackground":"#24292e","editor.selectionHighlightBorder":"#fafbfc"}}),o.editor.setTheme("solarized-light")}})})},c2=function(e){var t=e.queue,n=e.onDismiss,r=e.variant,a=r===void 0?"job":r,l=be.queue.addJob.useMutation({onSuccess:function(){Wl.success("New job has been added"),n()},onError:function(E){Wl.error(E.message)}}),i=l.mutate,o=l.status,s=be.queue.addJobScheduler.useMutation({onSuccess:function(){Wl.success("New job scheduler has been added"),n()},onError:function(E){Wl.error(E.message)}}),u=s.mutate,f=s.status,c=p.useState("{}"),d=c[0],h=c[1],m=p.useState(JSON.stringify({name:"",data:{},opts:{}},null,2)),v=m[0],y=m[1],b=p.useState(JSON.stringify({pattern:"0 0 * * *",tz:Intl.DateTimeFormat().resolvedOptions().timeZone},null,2)),g=b[0],x=b[1],S=a==="job",C=S?o:f;return w.jsx(hx,{isOpen:!0,onOpenChange:function(E){E||n()},children:w.jsx(Af,{isDismissable:!0,className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:w.jsx(jf,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(E){var M=E.close;return w.jsxs(w.Fragment,{children:[w.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800","aria-label":"Close",onClick:function(){M(),n()},children:w.jsx(Dg,{})}),w.jsx("div",{className:"flex items-center space-x-4",children:w.jsxs(Nf,{className:"mb-1 text-xl font-semibold text-slate-900 dark:text-slate-100",children:["Add ",S?"job":"scheduler"," to"," ",t.displayName.toLocaleLowerCase()]})}),S?w.jsx(wh,{value:d,onChange:h}):w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{className:"space-y-2",children:[w.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Template"}),w.jsx(wh,{value:v,onChange:y})]}),w.jsxs("div",{children:[w.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),w.jsx(wh,{value:g,onChange:x})]})]}),w.jsx("div",{children:w.jsx(Ca,{label:S?"Add job":"Add scheduler",variant:"filled",disabled:C==="pending",onClick:function(){try{if(S){var N=JSON.parse(d);i({queueName:t.name,data:N})}else{var j=JSON.parse(v),A=JSON.parse(g);u({queueName:t.name,template:j,opts:A})}}catch{Wl.error("Invalid JSON")}}})})]})}})})})},HU=function(e){var t=e.queue,n=be.queue.pause.useMutation().mutate,r=be.queue.resume.useMutation().mutate,a=be.queue.empty.useMutation().mutate,l=p.useState(!1),i=l[0],o=l[1],s=p.useState(!1),u=s[0],f=s[1],c={queueName:t.name},d=St(St(St(St([],t.supports.pause&&t.supports.resume?[{label:t.paused?"Resume":"Pause",onSelect:function(){t.paused?r(c):n(c)},icon:t.paused?w.jsx(T3,{}):w.jsx(k3,{})}]:[],!0),[{label:"Add job",onSelect:function(){o(!0)},icon:w.jsx(Ob,{})}],!1),t.supports.schedulers?[{label:"Add scheduler",onSelect:function(){f(!0)},icon:w.jsx(Ob,{})}]:[],!0),t.supports.empty?[{label:"Empty",onSelect:function(){a(c)},icon:w.jsx($i,{})}]:[],!0);return w.jsxs(w.Fragment,{children:[w.jsx(zf,{actions:d}),i?w.jsx(c2,{queue:t,variant:"job",onDismiss:function(){return o(!1)}}):null,u?w.jsx(c2,{queue:t,variant:"scheduler",onDismiss:function(){return f(!1)}}):null]})},N6={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(globalThis,()=>(()=>{var n={949:(i,o,s)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.CronParser=void 0;var u=s(515),f=function(){function c(d,h,m){h===void 0&&(h=!0),m===void 0&&(m=!1),this.expression=d,this.dayOfWeekStartIndexZero=h,this.monthStartIndexZero=m}return c.prototype.parse=function(){var d,h,m=(d=this.expression)!==null&&d!==void 0?d:"";if(m==="@reboot")return h=["@reboot","","","","","",""],h;if(m.startsWith("@")){var v=this.parseSpecial(this.expression);h=this.extractParts(v)}else h=this.extractParts(this.expression);return this.normalize(h),this.validate(h),h},c.prototype.parseSpecial=function(d){var h={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},m=h[d];if(!m)throw new Error("Unknown special expression.");return m},c.prototype.extractParts=function(d){if(!this.expression)throw new Error("cron expression is empty");for(var h=d.trim().split(/[ ]+/),m=0;m<h.length;m++)if(h[m].includes(",")){var v=h[m].split(",").map(function(b){return b.trim()}).filter(function(b){return b!==""}).map(function(b){return isNaN(Number(b))?b:Number(b)}).filter(function(b){return b!==null&&b!==""});v.length===0&&v.push("*"),v.sort(function(b,g){return b!==null&&g!==null?b-g:0}),h[m]=v.map(function(b){return b!==null?b.toString():""}).join(",")}if(h.length<5)throw new Error("Expression has only ".concat(h.length," part").concat(h.length==1?"":"s",". At least 5 parts are required."));if(h.length==5)h.unshift(""),h.push("");else if(h.length==6){var y=/\d{4}$/.test(h[5])||h[4]=="?"||h[2]=="?";y?h.unshift(""):h.push("")}else if(h.length>7)throw new Error("Expression has ".concat(h.length," parts; too many!"));return h},c.prototype.normalize=function(d){var h=this;if(d[3]=d[3].replace("?","*"),d[5]=d[5].replace("?","*"),d[2]=d[2].replace("?","*"),d[0].indexOf("0/")==0&&(d[0]=d[0].replace("0/","*/")),d[1].indexOf("0/")==0&&(d[1]=d[1].replace("0/","*/")),d[2].indexOf("0/")==0&&(d[2]=d[2].replace("0/","*/")),d[3].indexOf("1/")==0&&(d[3]=d[3].replace("1/","*/")),d[4].indexOf("1/")==0&&(d[4]=d[4].replace("1/","*/")),d[6].indexOf("1/")==0&&(d[6]=d[6].replace("1/","*/")),d[5]=d[5].replace(/(^\d)|([^#/\s]\d)/g,function(C){var E=C.replace(/\D/,""),M=E;return h.dayOfWeekStartIndexZero?E=="7"&&(M="0"):M=(parseInt(E)-1).toString(),C.replace(E,M)}),d[5]=="L"&&(d[5]="6"),d[3]=="?"&&(d[3]="*"),d[3].indexOf("W")>-1&&(d[3].indexOf(",")>-1||d[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var m={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var v in m)d[5]=d[5].replace(new RegExp(v,"gi"),m[v].toString());d[4]=d[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(C){var E=C.replace(/\D/,""),M=E;return h.monthStartIndexZero&&(M=(parseInt(E)+1).toString()),C.replace(E,M)});var y={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var b in y)d[4]=d[4].replace(new RegExp(b,"gi"),y[b].toString());d[0]=="0"&&(d[0]=""),!/\*|\-|\,|\//.test(d[2])&&(/\*|\//.test(d[1])||/\*|\//.test(d[0]))&&(d[2]+="-".concat(d[2]));for(var g=0;g<d.length;g++)if(d[g].indexOf(",")!=-1&&(d[g]=d[g].split(",").filter(function(C){return C!==""}).join(",")||"*"),d[g]=="*/1"&&(d[g]="*"),d[g].indexOf("/")>-1&&!/^\*|\-|\,/.test(d[g])){var x=null;switch(g){case 4:x="12";break;case 5:x="6";break;case 6:x="9999";break;default:x=null;break}if(x!==null){var S=d[g].split("/");d[g]="".concat(S[0],"-").concat(x,"/").concat(S[1])}}},c.prototype.validate=function(d){var h="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(d[0],h),this.validateOnlyExpectedCharactersFound(d[1],h),this.validateOnlyExpectedCharactersFound(d[2],h),this.validateOnlyExpectedCharactersFound(d[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(d[4],h),this.validateOnlyExpectedCharactersFound(d[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(d[6],h),this.validateAnyRanges(d)},c.prototype.validateAnyRanges=function(d){u.default.secondRange(d[0]),u.default.minuteRange(d[1]),u.default.hourRange(d[2]),u.default.dayOfMonthRange(d[3]),u.default.monthRange(d[4],this.monthStartIndexZero),u.default.dayOfWeekRange(d[5],this.dayOfWeekStartIndexZero)},c.prototype.validateOnlyExpectedCharactersFound=function(d,h){var m=d.match(new RegExp("[^".concat(h,"]+"),"gi"));if(m&&m.length)throw new Error("Expression contains invalid values: '".concat(m.toString(),"'"))},c}();o.CronParser=f},333:(i,o,s)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.ExpressionDescriptor=void 0;var u=s(823),f=s(949),c=function(){function d(h,m){if(this.expression=h,this.options=m,this.expressionParts=new Array(5),!this.options.locale&&d.defaultLocale&&(this.options.locale=d.defaultLocale),!d.locales[this.options.locale]){var v=Object.keys(d.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(v,"'.")),this.options.locale=v}this.i18n=d.locales[this.options.locale],m.use24HourTimeFormat===void 0&&(m.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return d.toString=function(h,m){var v=m===void 0?{}:m,y=v.throwExceptionOnParseError,b=y===void 0?!0:y,g=v.verbose,x=g===void 0?!1:g,S=v.dayOfWeekStartIndexZero,C=S===void 0?!0:S,E=v.monthStartIndexZero,M=E===void 0?!1:E,N=v.use24HourTimeFormat,j=v.locale,A=j===void 0?null:j,U={throwExceptionOnParseError:b,verbose:x,dayOfWeekStartIndexZero:C,monthStartIndexZero:M,use24HourTimeFormat:N,locale:A};U.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var F=new d(h,U);return F.getFullDescription()},d.initialize=function(h,m){m===void 0&&(m="en"),d.specialCharacters=["/","-",",","*"],d.defaultLocale=m,h.load(d.locales)},d.prototype.getFullDescription=function(){var h,m,v="";try{var y=new f.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=y.parse(),this.expressionParts[0]==="@reboot")return((m=(h=this.i18n).atReboot)===null||m===void 0?void 0:m.call(h))||"Run once, at startup";var b=this.getTimeOfDayDescription(),g=this.getDayOfMonthDescription(),x=this.getMonthDescription(),S=this.getDayOfWeekDescription(),C=this.getYearDescription();v+=b+g+S+x+C,v=this.transformVerbosity(v,!!this.options.verbose),v=v.charAt(0).toLocaleUpperCase()+v.substr(1)}catch(E){if(!this.options.throwExceptionOnParseError)v=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(E)}return v},d.prototype.getTimeOfDayDescription=function(){var h=this.expressionParts[0],m=this.expressionParts[1],v=this.expressionParts[2],y="";if(!u.StringUtilities.containsAny(m,d.specialCharacters)&&!u.StringUtilities.containsAny(v,d.specialCharacters)&&!u.StringUtilities.containsAny(h,d.specialCharacters))y+=this.i18n.atSpace()+this.formatTime(v,m,h);else if(!h&&m.indexOf("-")>-1&&!(m.indexOf(",")>-1)&&!(m.indexOf("/")>-1)&&!u.StringUtilities.containsAny(v,d.specialCharacters)){var b=m.split("-");y+=u.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(v,b[0],""),this.formatTime(v,b[1],""))}else if(!h&&v.indexOf(",")>-1&&v.indexOf("-")==-1&&v.indexOf("/")==-1&&!u.StringUtilities.containsAny(m,d.specialCharacters)){var g=v.split(",");y+=this.i18n.at();for(var x=0;x<g.length;x++)y+=" ",y+=this.formatTime(g[x],m,""),x<g.length-2&&(y+=","),x==g.length-2&&(y+=this.i18n.spaceAnd())}else{var S=this.getSecondsDescription(),C=this.getMinutesDescription(),E=this.getHoursDescription();if(y+=S,y&&C&&(y+=", "),y+=C,C===E)return y;y&&E&&(y+=", "),y+=E}return y},d.prototype.getSecondsDescription=function(){var h=this,m=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(v){return v},function(v){return u.StringUtilities.format(h.i18n.everyX0Seconds(v),v)},function(v){return h.i18n.secondsX0ThroughX1PastTheMinute()},function(v){return v=="0"?"":parseInt(v)<20?h.i18n.atX0SecondsPastTheMinute(v):h.i18n.atX0SecondsPastTheMinuteGt20()||h.i18n.atX0SecondsPastTheMinute(v)});return m},d.prototype.getMinutesDescription=function(){var h=this,m=this.expressionParts[0],v=this.expressionParts[2],y=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(b){return b},function(b){return u.StringUtilities.format(h.i18n.everyX0Minutes(b),b)},function(b){return h.i18n.minutesX0ThroughX1PastTheHour()},function(b){try{return b=="0"&&v.indexOf("/")==-1&&m==""?h.i18n.everyHour():parseInt(b)<20?h.i18n.atX0MinutesPastTheHour(b):h.i18n.atX0MinutesPastTheHourGt20()||h.i18n.atX0MinutesPastTheHour(b)}catch{return h.i18n.atX0MinutesPastTheHour(b)}});return y},d.prototype.getHoursDescription=function(){var h=this,m=this.expressionParts[2],v=0,y=[];m.split("/")[0].split(",").forEach(function(x){var S=x.split("-");S.length===2&&y.push({value:S[1],index:v+1}),v+=S.length});var b=0,g=this.getSegmentDescription(m,this.i18n.everyHour(),function(x){var S=y.find(function(E){return E.value===x&&E.index===b}),C=S&&h.expressionParts[1]!=="0";return b++,C?h.formatTime(x,"59",""):h.formatTime(x,"0","")},function(x){return u.StringUtilities.format(h.i18n.everyX0Hours(x),x)},function(x){return h.i18n.betweenX0AndX1()},function(x){return h.i18n.atX0()});return g},d.prototype.getDayOfWeekDescription=function(){var h=this,m=this.i18n.daysOfTheWeek(),v=null;return this.expressionParts[5]=="*"?v="":v=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(y,b){var g=y;y.indexOf("#")>-1?g=y.substring(0,y.indexOf("#")):y.indexOf("L")>-1&&(g=g.replace("L",""));var x=parseInt(g),S=h.i18n.daysOfTheWeekInCase?h.i18n.daysOfTheWeekInCase(b)[x]:m[x];if(y.indexOf("#")>-1){var C=null,E=y.substring(y.indexOf("#")+1),M=y.substring(0,y.indexOf("#"));switch(E){case"1":C=h.i18n.first(M);break;case"2":C=h.i18n.second(M);break;case"3":C=h.i18n.third(M);break;case"4":C=h.i18n.fourth(M);break;case"5":C=h.i18n.fifth(M);break}S=C+" "+S}return S},function(y){return parseInt(y)==1?"":u.StringUtilities.format(h.i18n.commaEveryX0DaysOfTheWeek(y),y)},function(y){var b=y.substring(0,y.indexOf("-")),g=h.expressionParts[3]!="*";return g?h.i18n.commaAndX0ThroughX1(b):h.i18n.commaX0ThroughX1(b)},function(y){var b=null;if(y.indexOf("#")>-1){var g=y.substring(y.indexOf("#")+1),x=y.substring(0,y.indexOf("#"));b=h.i18n.commaOnThe(g,x).trim()+h.i18n.spaceX0OfTheMonth()}else if(y.indexOf("L")>-1)b=h.i18n.commaOnTheLastX0OfTheMonth(y.replace("L",""));else{var S=h.expressionParts[3]!="*";b=S?h.i18n.commaAndOnX0():h.i18n.commaOnlyOnX0(y)}return b}),v},d.prototype.getMonthDescription=function(){var h=this,m=this.i18n.monthsOfTheYear(),v=this.getSegmentDescription(this.expressionParts[4],"",function(y,b){return b&&h.i18n.monthsOfTheYearInCase?h.i18n.monthsOfTheYearInCase(b)[parseInt(y)-1]:m[parseInt(y)-1]},function(y){return parseInt(y)==1?"":u.StringUtilities.format(h.i18n.commaEveryX0Months(y),y)},function(y){return h.i18n.commaMonthX0ThroughMonthX1()||h.i18n.commaX0ThroughX1()},function(y){return h.i18n.commaOnlyInMonthX0?h.i18n.commaOnlyInMonthX0():h.i18n.commaOnlyInX0()});return v},d.prototype.getDayOfMonthDescription=function(){var h=this,m=null,v=this.expressionParts[3];switch(v){case"L":m=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":m=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var y=v.match(/(\d{1,2}W)|(W\d{1,2})/);if(y){var b=parseInt(y[0].replace("W","")),g=b==1?this.i18n.firstWeekday():u.StringUtilities.format(this.i18n.weekdayNearestDayX0(),b.toString());m=u.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),g);break}else{var x=v.match(/L-(\d{1,2})/);if(x){var S=x[1];m=u.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(S),S);break}else{if(v=="*"&&this.expressionParts[5]!="*")return"";m=this.getSegmentDescription(v,this.i18n.commaEveryDay(),function(C){return C=="L"?h.i18n.lastDay():h.i18n.dayX0?u.StringUtilities.format(h.i18n.dayX0(),C):C},function(C){return C=="1"?h.i18n.commaEveryDay():h.i18n.commaEveryX0Days(C)},function(C){return h.i18n.commaBetweenDayX0AndX1OfTheMonth(C)},function(C){return h.i18n.commaOnDayX0OfTheMonth(C)})}break}}return m},d.prototype.getYearDescription=function(){var h=this,m=this.getSegmentDescription(this.expressionParts[6],"",function(v){return/^\d+$/.test(v)?new Date(parseInt(v),1).getFullYear().toString():v},function(v){return u.StringUtilities.format(h.i18n.commaEveryX0Years(v),v)},function(v){return h.i18n.commaYearX0ThroughYearX1()||h.i18n.commaX0ThroughX1()},function(v){return h.i18n.commaOnlyInYearX0?h.i18n.commaOnlyInYearX0():h.i18n.commaOnlyInX0()});return m},d.prototype.getSegmentDescription=function(h,m,v,y,b,g){var x=null,S=h.indexOf("/")>-1,C=h.indexOf("-")>-1,E=h.indexOf(",")>-1;if(!h)x="";else if(h==="*")x=m;else if(!S&&!C&&!E)x=u.StringUtilities.format(g(h),v(h));else if(E){for(var M=h.split(","),N="",j=0;j<M.length;j++)if(j>0&&M.length>2&&(N+=",",j<M.length-1&&(N+=" ")),j>0&&M.length>1&&(j==M.length-1||M.length==2)&&(N+="".concat(this.i18n.spaceAnd()," ")),M[j].indexOf("/")>-1||M[j].indexOf("-")>-1){var A=M[j].indexOf("-")>-1&&M[j].indexOf("/")==-1,U=this.getSegmentDescription(M[j],m,v,y,A?this.i18n.commaX0ThroughX1:b,g);A&&(U=U.replace(", ","")),N+=U}else S?N+=this.getSegmentDescription(M[j],m,v,y,b,g):N+=v(M[j]);S?x=N:x=u.StringUtilities.format(g(h),N)}else if(S){var M=h.split("/");if(x=u.StringUtilities.format(y(M[1]),M[1]),M[0].indexOf("-")>-1){var F=this.generateRangeSegmentDescription(M[0],b,v);F.indexOf(", ")!=0&&(x+=", "),x+=F}else if(M[0].indexOf("*")==-1){var G=u.StringUtilities.format(g(M[0]),v(M[0]));G=G.replace(", ",""),x+=u.StringUtilities.format(this.i18n.commaStartingX0(),G)}}else C&&(x=this.generateRangeSegmentDescription(h,b,v));return x},d.prototype.generateRangeSegmentDescription=function(h,m,v){var y="",b=h.split("-"),g=v(b[0],1),x=v(b[1],2),S=m(h);return y+=u.StringUtilities.format(S,g,x),y},d.prototype.formatTime=function(h,m,v){var y=0,b=0,g=parseInt(h)+y,x=parseInt(m)+b;x>=60?(x-=60,g+=1):x<0&&(x+=60,g-=1),g>=24?g=g-24:g<0&&(g=24+g);var S="",C=!1;this.options.use24HourTimeFormat||(C=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),S=C?"".concat(this.getPeriod(g)," "):" ".concat(this.getPeriod(g)),g>12&&(g-=12),g===0&&(g=12));var E="";return v&&(E=":".concat(("00"+v).substring(v.length))),"".concat(C?S:"").concat(("00"+g.toString()).substring(g.toString().length),":").concat(("00"+x.toString()).substring(x.toString().length)).concat(E).concat(C?"":S)},d.prototype.transformVerbosity=function(h,m){if(!m&&(h=h.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),h=h.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),h=h.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),h=h.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var v=0,y=Object.entries(this.i18n.conciseVerbosityReplacements());v<y.length;v++){var b=y[v],g=b[0],x=b[1];h=h.replace(new RegExp(g,"g"),x)}return h},d.prototype.getPeriod=function(h){return h>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},d.locales={},d}();o.ExpressionDescriptor=c},747:(i,o,s)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.enLocaleLoader=void 0;var u=s(486),f=function(){function c(){}return c.prototype.load=function(d){d.en=new u.en},c}();o.enLocaleLoader=f},486:(i,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.en=void 0;var s=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!1},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},u.prototype.everyMinute=function(){return"every minute"},u.prototype.everyHour=function(){return"every hour"},u.prototype.atSpace=function(){return"At "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},u.prototype.at=function(){return"At"},u.prototype.spaceAnd=function(){return" and"},u.prototype.everySecond=function(){return"every second"},u.prototype.everyX0Seconds=function(){return"every %s seconds"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},u.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},u.prototype.everyX0Minutes=function(){return"every %s minutes"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},u.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},u.prototype.everyX0Hours=function(){return"every %s hours"},u.prototype.betweenX0AndX1=function(){return"between %s and %s"},u.prototype.atX0=function(){return"at %s"},u.prototype.commaEveryDay=function(){return", every day"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},u.prototype.commaX0ThroughX1=function(){return", %s through %s"},u.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},u.prototype.first=function(){return"first"},u.prototype.second=function(){return"second"},u.prototype.third=function(){return"third"},u.prototype.fourth=function(){return"fourth"},u.prototype.fifth=function(){return"fifth"},u.prototype.commaOnThe=function(){return", on the "},u.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},u.prototype.lastDay=function(){return"the last day"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},u.prototype.commaOnlyOnX0=function(){return", only on %s"},u.prototype.commaAndOnX0=function(){return", and on %s"},u.prototype.commaEveryX0Months=function(){return", every %s months"},u.prototype.commaOnlyInX0=function(){return", only in %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},u.prototype.firstWeekday=function(){return"first weekday"},u.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},u.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},u.prototype.commaEveryX0Days=function(){return", every %s days"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},u.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},u.prototype.commaEveryHour=function(){return", every hour"},u.prototype.commaEveryX0Years=function(){return", every %s years"},u.prototype.commaStartingX0=function(){return", starting %s"},u.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},u.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},u.prototype.atReboot=function(){return"Run once, at startup"},u}();o.en=s},515:(i,o)=>{Object.defineProperty(o,"__esModule",{value:!0});function s(f,c){if(!f)throw new Error(c)}var u=function(){function f(){}return f.secondRange=function(c){for(var d=c.split(","),h=0;h<d.length;h++)if(!isNaN(parseInt(d[h],10))){var m=parseInt(d[h],10);s(m>=0&&m<=59,"seconds part must be >= 0 and <= 59")}},f.minuteRange=function(c){for(var d=c.split(","),h=0;h<d.length;h++)if(!isNaN(parseInt(d[h],10))){var m=parseInt(d[h],10);s(m>=0&&m<=59,"minutes part must be >= 0 and <= 59")}},f.hourRange=function(c){for(var d=c.split(","),h=0;h<d.length;h++)if(!isNaN(parseInt(d[h],10))){var m=parseInt(d[h],10);s(m>=0&&m<=23,"hours part must be >= 0 and <= 23")}},f.dayOfMonthRange=function(c){for(var d=c.split(","),h=0;h<d.length;h++)if(!isNaN(parseInt(d[h],10))){var m=parseInt(d[h],10);s(m>=1&&m<=31,"DOM part must be >= 1 and <= 31")}},f.monthRange=function(c,d){for(var h=c.split(","),m=0;m<h.length;m++)if(!isNaN(parseInt(h[m],10))){var v=parseInt(h[m],10);s(v>=1&&v<=12,d?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},f.dayOfWeekRange=function(c,d){for(var h=c.split(","),m=0;m<h.length;m++)if(!isNaN(parseInt(h[m],10))){var v=parseInt(h[m],10);s(v>=0&&v<=6,d?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},f}();o.default=u},823:(i,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.StringUtilities=void 0;var s=function(){function u(){}return u.format=function(f){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];return f.replace(/%s/g,function(h){return c.shift()})},u.containsAny=function(f,c){return c.some(function(d){return f.indexOf(d)>-1})},u}();o.StringUtilities=s}},r={};function a(i){var o=r[i];if(o!==void 0)return o.exports;var s=r[i]={exports:{}};return n[i](s,s.exports,a),s.exports}var l={};return(()=>{var i=l;Object.defineProperty(i,"__esModule",{value:!0}),i.toString=void 0;var o=a(333),s=a(747);o.ExpressionDescriptor.initialize(new s.enLocaleLoader),i.default=o.ExpressionDescriptor;var u=o.ExpressionDescriptor.toString;i.toString=u})(),l})())})(N6);var KU=N6.exports;const UU=g8(KU);var BU=function(e){var t=e.scheduler,n=e.queueName,r=e.onRemove,a=be.scheduler.remove.useMutation(),l=a.mutate,i=a.isSuccess;return p.useEffect(function(){i&&(r==null||r())},[i,r]),w.jsx(zf,{actions:[{label:"Remove",onSelect:function(){l({queueName:n,jobSchedulerId:t.key})},icon:w.jsx($i,{})}]})},FU=function(e){var t=e.scheduler,n=e.queueName,r=e.onDismiss,a=t.template,l=Li({},t);return delete l.template,w.jsx(Af,{isOpen:!0,isDismissable:!0,onOpenChange:function(i){i||r()},className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:w.jsx(jf,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(i){var o=i.close;return w.jsxs(w.Fragment,{children:[w.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800","aria-label":"Close",onClick:function(){r(),o()},children:w.jsx(Dg,{})}),w.jsxs("div",{className:"flex items-center space-x-4",children:[w.jsxs(Nf,{className:"mb-1 flex items-center space-x-2",children:[w.jsx("span",{className:"text-xl font-semibold text-slate-900 dark:text-slate-100",children:t.name}),w.jsxs("span",{className:"rounded-md text-slate-500 dark:text-slate-400",children:["#",t.id]})]}),w.jsx(BU,{queueName:n,scheduler:t,onRemove:r})]}),w.jsxs("div",{children:[w.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[w.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),w.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:w.jsx(xs,{data:l,theme:"monokai"})})]}),w.jsxs("div",{className:"space-y-2 pt-4",children:[w.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Template"}),w.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:w.jsx(xs,{data:a,theme:"monokai"})})]})]})]})}})})},vc=vx();function qU(e,t){t===void 0&&(t=new Date);var n=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"short"}),r=n.formatToParts(t),a=r.find(function(l){return l.type==="timeZoneName"});return(a==null?void 0:a.value)||""}var VU=function(e){return[vc.display({id:"select",header:function(t){var n=t.table;return w.jsx(Hd,{checked:n.getIsSomeRowsSelected()?"indeterminate":n.getIsAllRowsSelected(),onCheckedChange:function(){n.toggleAllRowsSelected()}})},cell:function(t){var n=t.row,r=t.table;return w.jsx(Hd,{className:r.getIsSomeRowsSelected()||r.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:n.getIsSomeSelected()?"indeterminate":n.getIsSelected(),onCheckedChange:function(a){n.getToggleSelectedHandler()(a),e(n.index)}})}}),vc.accessor("name",{cell:function(t){return w.jsx("div",{className:"flex w-full items-center space-x-2",children:w.jsx("span",{className:"max-w-fit grow basis-full truncate text-slate-900 dark:text-slate-200",children:t.cell.row.original.name})})},header:"Scheduler"}),vc.accessor("pattern",{cell:function(t){return w.jsxs("span",{className:"grow basis-full truncate text-slate-900 dark:text-slate-200",children:[t.cell.row.original.pattern?UU.toString(t.cell.row.original.pattern,{verbose:!0}):t.cell.row.original.every?"Every ".concat(t.cell.row.original.every):""," ",t.cell.row.original.tz?"(".concat(qU(t.cell.row.original.tz),")"):""]})},header:"Pattern"}),vc.accessor("next",{cell:function(t){return t.cell.row.original.next?w.jsx(r1,{message:Lx(new Date(t.cell.row.original.next),"dd MMM yyyy HH:mm:ss zzz"),children:w.jsx("div",{className:"flex items-center space-x-1.5",children:w.jsxs("p",{className:"text-slate-900 dark:text-slate-200",children:["In ",_x(new Date(t.cell.row.original.next))," ",w.jsxs("span",{className:"text-sm text-slate-700 dark:text-slate-400",children:["(",t.cell.row.original.iterationCount," run",t.cell.row.original.iterationCount===1?"":"s"," total)"]})]})})}):w.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:"No next run"})},header:"Next Run"})]},GU=function(e){var t=e.queueName,n=p.useState({}),r=n[0],a=n[1],l=p.useRef(null),i=be.scheduler.list.useQuery({queueName:t}),o=i.data,s=i.isLoading,u=(o==null?void 0:o.length)===0,f=function(g){l.current=g},c=VU(f),d=kx({data:o||[],columns:c,getCoreRowModel:Rx(),state:{rowSelection:r},onRowSelectionChange:a}),h=p.useState(null),m=h[0],v=h[1],y=be.scheduler.bulkRemove.useMutation().mutate,b=function(g,x){if(g.shiftKey&&l.current!==null){g.preventDefault();for(var S=Math.min(l.current,x),C=Math.max(l.current,x),E=Li({},r),M=S;M<=C;M++)E[M]=!0;a(E)}else v(d.getRowModel().rows[x].original),l.current=x};return!s&&u?null:w.jsxs("div",{children:[m?w.jsx(FU,{scheduler:m,queueName:t,onDismiss:function(){return v(null)}}):null,w.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:s?w.jsx(Px,{}):w.jsxs("div",{children:[d.getHeaderGroups().map(function(g,x){return w.jsx("div",{className:"sticky top-0 grid grid-cols-[auto,350px,1fr,1fr] rounded-t-md border-b border-slate-200 bg-slate-100/50 p-2 backdrop-blur-md dark:border-slate-700 dark:bg-slate-900/50",children:g.headers.map(function(S){return w.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(x!==0?"pr-10":"pr-3"),children:S.isPlaceholder?null:Ld(S.column.columnDef.header,S.getContext())},S.id)})},g.id)}),d.getRowModel().rows.map(function(g,x){return w.jsx(zx,{isLastRow:d.getRowModel().rows.length!==x+1,isSelected:g.getIsSelected(),onClick:function(S){return b(S,x)},layoutVariant:"scheduler",children:g.getVisibleCells().map(function(S,C){return w.jsx("div",{className:"flex h-full items-center ".concat(C!==0?"pr-10":"pr-3"),children:Ld(S.column.columnDef.cell,S.getContext())},S.id)})},g.id)})]})}),d.getSelectedRowModel().rows.length>0?w.jsx("div",{className:"pointer-events-none sticky bottom-0 flex w-full items-center justify-center pb-5",children:w.jsxs("div",{className:"pointer-events-auto flex items-center space-x-3 rounded-lg border-slate-100 bg-white/90 px-3 py-2 text-sm shadow-lg backdrop-blur dark:border-slate-700 dark:bg-slate-900/90",children:[w.jsxs("p",{className:"text-slate-900 dark:text-slate-100",children:[d.getSelectedRowModel().rows.length," selected"]}),w.jsx(Ca,{label:"Delete",colorScheme:"red",icon:w.jsx($i,{}),size:"sm",onClick:function(){y({queueName:t,jobSchedulerIds:d.getSelectedRowModel().rows.map(function(g){return g.original.key})}),d.resetRowSelection()}})]})}):null]})},bc=function(e){var t=e.label,n=e.value,r=e.trend,a=e.variant,l=a===void 0?"completed":a,i=l==="completed"?r!=null&&r.isPositive?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400":r!=null&&r.isPositive?"text-red-600 dark:text-red-400":"text-green-600 dark:text-green-400";return w.jsxs("div",{className:"group flex flex-col space-y-2 rounded-xl border border-slate-200/80 bg-white/80 px-4 py-3 backdrop-blur-sm transition-all duration-200 hover:border-slate-300 hover:shadow-sm dark:border-slate-700/50 dark:bg-slate-900/50 dark:hover:border-slate-600",children:[w.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-slate-500 dark:text-slate-400",children:t}),w.jsxs("div",{className:"flex items-baseline space-x-2",children:[w.jsx("p",{className:"font-mono text-2xl font-semibold tabular-nums leading-none text-slate-900 dark:text-slate-50",children:typeof n=="number"?n.toLocaleString():n}),r&&w.jsxs("div",{className:"flex items-center space-x-0.5 font-mono text-xs font-medium ".concat(i),children:[r.isPositive?w.jsx(jR,{width:11,height:11}):w.jsx(TR,{width:11,height:11}),w.jsxs("span",{children:[Math.abs(r.value),"%"]})]})]})]})},Vl={"1m":{label:"Last minute",minutes:1},"1h":{label:"Last hour",minutes:60},"24h":{label:"Last 24 hours",minutes:1440},"7d":{label:"Last 7 days",minutes:10080}},QU=function(e){var t=e.queueName,n=p.useState("1h"),r=n[0],a=n[1],l=be.queue.metrics.useQuery({queueName:t,type:"completed",start:0,end:Vl[r].minutes},{enabled:!!t,refetchInterval:Is}),i=l.data,o=l.isLoading,s=be.queue.metrics.useQuery({queueName:t,type:"failed",start:0,end:Vl[r].minutes},{enabled:!!t,refetchInterval:Is}),u=s.data,f=s.isLoading,c=o||f,d=function(b,g){if(g===0)return null;var x=(b-g)/g*100;return{value:Math.round(Math.abs(x)),isPositive:x>0}},h=i&&d(i.count,i.meta.prevCount),m=u&&d(u.count,u.meta.prevCount),v=i?(i.count/Vl[r].minutes).toFixed(1):"0";u&&(u.count/Vl[r].minutes).toFixed(1);var y=i&&u?i.count+u.count>0?(i.count/(i.count+u.count)*100).toFixed(1):"100":"0";return w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx("h2",{className:"text-lg font-semibold tracking-tight text-slate-900 dark:text-slate-50",children:"Metrics"}),w.jsx("div",{className:"flex items-center space-x-0.5 rounded-lg border border-slate-200/80 bg-white/80 p-0.5 backdrop-blur-sm dark:border-slate-700/50 dark:bg-slate-900/50",children:Object.keys(Vl).map(function(b){return w.jsx("button",{onClick:function(){return a(b)},className:"rounded-md px-2.5 py-1 text-xs font-medium transition-all duration-150 ".concat(r===b?"bg-slate-100 text-slate-900 shadow-sm dark:bg-slate-800 dark:text-slate-100":"text-slate-600 hover:bg-slate-50 hover:text-slate-900 dark:text-slate-400 dark:hover:bg-slate-800/50 dark:hover:text-slate-100"),children:Vl[b].label},b)})})]}),c?w.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:St([],Array(4),!0).map(function(b,g){return w.jsx(Ks,{className:"h-[88px] rounded-xl"},g)})}):w.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[w.jsx(bc,{label:"Completed",value:(i==null?void 0:i.count)||0,trend:h||void 0,variant:"completed"}),w.jsx(bc,{label:"Failed",value:(u==null?void 0:u.count)||0,trend:m||void 0,variant:"failed"}),w.jsx(bc,{label:"Success Rate",value:"".concat(y,"%")}),w.jsx(bc,{label:"Throughput",value:"".concat(v,"/min")})]})]})},Sh=new Intl.NumberFormat("en-US").format,IU=function(){var e,t,n,r,a,l=NO().id,i=l,o=SR()[0],s=p.useState("completed"),u=s[0],f=s[1],c=be.job.list.useInfiniteQuery({queueName:i,limit:im,status:u},{getNextPageParam:function(S){return S.nextCursor},enabled:!!i,refetchInterval:Is,retry:om}),d=c.data,h=c.fetchNextPage,m=c.isLoading,v=c.isError,y=c.isFetchingNextPage,b=c.hasNextPage;p.useEffect(function(){var S=o.get("status");S&&f(S),!S&&u&&f("completed")},[o,u]);var g=be.queue.byName.useQuery({queueName:i},{enabled:!!i,refetchInterval:Is,retry:om}),x=(e=d==null?void 0:d.pages.map(function(S){return S.jobs}).flat())!==null&&e!==void 0?e:[];return w.jsx(gx,{children:g.data===null?w.jsx(Jp,{message:"No queue found"}):v?w.jsx(Jp,{message:"Could not fetch jobs"}):w.jsxs("div",{children:[w.jsx("div",{className:"mb-2 flex justify-between",children:w.jsxs("div",{className:"flex items-center space-x-4",children:[w.jsx("h1",{className:"text-2xl font-bold text-slate-900 dark:text-slate-50",children:g.data?g.data.displayName:w.jsx(Ks,{className:"h-8 w-52 rounded-md"})}),w.jsxs("div",{className:"flex items-center space-x-2",children:[g.data?w.jsx(HU,{queue:g.data}):null,!((t=g.data)===null||t===void 0)&&t.paused?w.jsx("div",{className:"flex h-7 cursor-default items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 text-sm font-medium text-yellow-900 transition duration-150 ease-in-out dark:bg-yellow-950/30 dark:text-yellow-400",children:w.jsx("span",{children:"Paused"})}):null]})]})}),w.jsx("div",{className:"mb-5",children:w.jsx("div",{className:"flex items-center space-x-2",children:g.data?w.jsxs(w.Fragment,{children:[w.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:[w.jsxs("span",{className:"text-green-800 dark:text-green-400",children:[Sh(g.data.client.connectedClients)," ","connected"]})," ","and"," ",w.jsxs("span",{className:"text-red-800 dark:text-red-400",children:[Sh(g.data.client.blockedClients)," ","blocked"]})," ","out of"," ",w.jsxs("span",{className:"text-slate-900 dark:text-slate-100",children:[Sh(g.data.client.maxClients)," max clients"]})]}),w.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"·"}),w.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:[g.data.client.usedMemoryHuman," /"," ",g.data.client.totalMemoryHuman," (",(g.data.client.usedMemoryPercentage*100).toFixed(2),"%)"]}),w.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"·"}),w.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:["Redis v",g.data.client.version]})]}):w.jsx(Ks,{className:"h-6 w-80"})})}),w.jsxs("div",{className:"space-y-8",children:[!((n=g.data)===null||n===void 0)&&n.supports.metrics?w.jsx(QU,{queueName:i}):null,!((r=g.data)===null||r===void 0)&&r.supports.schedulers?w.jsx(GU,{queueName:i}):null,w.jsxs("div",{className:"space-y-4",children:[w.jsx(kK,{showCleanAllButton:x.length>0,queueName:i,status:u,queue:g.data}),w.jsx(JH,{onBottomInView:function(){y||!b||h()},status:u,totalJobs:((a=d==null?void 0:d.pages.at(-1))===null||a===void 0?void 0:a.totalCount)||0,jobs:x.map(function(S){return Li(Li({},S),{status:u})}),isLoading:m,isFetchingNextPage:y,queueName:i})]})]})]})})},yc=function(e){var t=e.count,n=e.variant,r={active:"text-cyan-600 dark:text-cyan-400",completed:"text-green-600 dark:text-green-400",failed:"text-red-600 dark:text-red-400",waiting:"text-amber-600 dark:text-amber-400"},a={active:w.jsx(D3,{width:16,height:16}),completed:w.jsx(O3,{width:16,height:16}),failed:w.jsx(R3,{width:16,height:16}),waiting:w.jsx(ik,{width:16,height:16})};return w.jsx("div",{children:w.jsx(r1,{message:n.charAt(0).toUpperCase()+n.slice(1),children:w.jsxs("div",{className:"flex items-center space-x-1 text-sm ".concat(r[n]),children:[w.jsx("p",{className:"text-lg",children:t}),a[n]]})})})},XU=function(e){var t=e.queueName,n=be.queue.byName.useQuery({queueName:t},{refetchInterval:Is,retry:om});return n.data?w.jsxs(wf,{to:"../".concat(n.data.name),className:"group flex items-center justify-between transition",children:[w.jsxs("div",{className:"flex items-center space-x-2",children:[w.jsx("p",{className:"py-3 text-lg font-medium text-slate-900 transition group-hover:text-brand-900 dark:text-slate-200 dark:group-hover:text-brand-100",children:n.data.displayName}),w.jsx("div",{children:n.data.paused?w.jsx("div",{className:"flex h-7 items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 text-sm font-medium text-yellow-900 transition duration-150 ease-in-out dark:bg-yellow-950/30 dark:text-yellow-400",children:w.jsx("span",{children:"Paused"})}):null})]}),w.jsxs("div",{className:"flex space-x-5",children:[w.jsx(yc,{count:n.data.counts.completed,variant:"completed"}),w.jsx(yc,{count:n.data.counts.failed,variant:"failed"}),w.jsx(yc,{count:n.data.counts.active,variant:"active"}),w.jsx(yc,{count:n.data.counts.waiting,variant:"waiting"})]})]}):null},YU=function(){var e=be.queue.list.useQuery().data,t=be.queue.pauseAll.useMutation().mutate,n=be.queue.resumeAll.useMutation().mutate;return w.jsx(gx,{children:w.jsxs("div",{className:"xl:max-w-2xl",children:[w.jsxs("div",{className:"flex justify-between",children:[w.jsx("h1",{className:"mb-6 text-2xl font-bold text-slate-900 dark:text-slate-50",children:"Queues"}),w.jsx("div",{children:w.jsx(zf,{actions:[{label:"Resume all",icon:w.jsx(T3,{}),onSelect:function(){return n()}},{label:"Pause all",icon:w.jsx(k3,{}),onSelect:function(){return t()}}]})})]}),w.jsx("div",{children:e==null?void 0:e.map(function(r,a){return w.jsx("div",{className:(e==null?void 0:e.length)-1!==a?"border-b border-slate-100 dark:border-slate-700":"",children:w.jsx(XU,{queueName:r.name},r.name)},r.name)})})]})})},ZU=function(e){var t=e.apiUrl,n=e.basename,r=e.headers,a=p.useState(!1),l=a[0],i=a[1],o=p.useState(function(){return new fE})[0],s=p.useState(function(){return be.createClient({links:[sM({url:t,headers:r})]})})[0];return p.useEffect(function(){var u=JSON.parse(localStorage.getItem("user-preferences")||"null");u?u.theme==="dark"||u.theme==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"):window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),i(!0)},[]),l?w.jsx(be.Provider,{client:s,queryClient:o,children:w.jsxs(hE,{client:o,children:[w.jsx(RK,{}),w.jsx(bR,{basename:n,children:w.jsxs(IO,{children:[w.jsx(jp,{path:"/",element:w.jsx(YU,{})}),w.jsx(jp,{path:"/:id",element:w.jsx(IU,{})})]})})]})}):null};HC.createRoot(document.getElementById("root")).render(p1.jsx(p.StrictMode,{children:p1.jsx(ZU,{apiUrl:window.__INITIAL_STATE__.apiUrl,basename:window.__INITIAL_STATE__.basename})}));
|