meshy-node 0.4.1 → 0.4.3

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.
@@ -1,276 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-BUtwv0kD.js","assets/DashboardShared-BSDgKTOF.js","assets/input-DMp80MWI.js","assets/folder-B6d9_x4J.js","assets/SharedConversationPage-e35GHbGI.js"])))=>i.map(i=>d[i]);
2
- function vS(n,r){for(var o=0;o<r.length;o++){const i=r[o];if(typeof i!="string"&&!Array.isArray(i)){for(const u in i)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(i,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>i[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))i(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function o(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function i(u){if(u.ep)return;u.ep=!0;const f=o(u);fetch(u.href,f)}})();function dv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Fu={exports:{}},No={};/**
3
- * @license React
4
- * react-jsx-runtime.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var ig;function yS(){if(ig)return No;ig=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(i,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var m in u)m!=="key"&&(f[m]=u[m])}else f=u;return u=f.ref,{$$typeof:n,type:i,key:d,ref:u!==void 0?u:null,props:f}}return No.Fragment=r,No.jsx=o,No.jsxs=o,No}var sg;function bS(){return sg||(sg=1,Fu.exports=yS()),Fu.exports}var y=bS(),Wu={exports:{}},Ne={};/**
11
- * @license React
12
- * react.production.js
13
- *
14
- * Copyright (c) Meta Platforms, Inc. and affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */var cg;function xS(){if(cg)return Ne;cg=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),w=Symbol.iterator;function E(_){return _===null||typeof _!="object"?null:(_=w&&_[w]||_["@@iterator"],typeof _=="function"?_:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,T={};function A(_,G,X){this.props=_,this.context=G,this.refs=T,this.updater=X||C}A.prototype.isReactComponent={},A.prototype.setState=function(_,G){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,G,"setState")},A.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function j(){}j.prototype=A.prototype;function D(_,G,X){this.props=_,this.context=G,this.refs=T,this.updater=X||C}var B=D.prototype=new j;B.constructor=D,N(B,A.prototype),B.isPureReactComponent=!0;var K=Array.isArray;function J(){}var q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function re(_,G,X){var F=X.ref;return{$$typeof:n,type:_,key:G,ref:F!==void 0?F:null,props:X}}function ve(_,G){return re(_.type,G,_.props)}function ye(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function de(_){var G={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(X){return G[X]})}var ge=/\/+/g;function be(_,G){return typeof _=="object"&&_!==null&&_.key!=null?de(""+_.key):G.toString(36)}function fe(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(J,J):(_.status="pending",_.then(function(G){_.status==="pending"&&(_.status="fulfilled",_.value=G)},function(G){_.status==="pending"&&(_.status="rejected",_.reason=G)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function O(_,G,X,F,W){var ae=typeof _;(ae==="undefined"||ae==="boolean")&&(_=null);var ee=!1;if(_===null)ee=!0;else switch(ae){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(_.$$typeof){case n:case r:ee=!0;break;case x:return ee=_._init,O(ee(_._payload),G,X,F,W)}}if(ee)return W=W(_),ee=F===""?"."+be(_,0):F,K(W)?(X="",ee!=null&&(X=ee.replace(ge,"$&/")+"/"),O(W,G,X,"",function(ne){return ne})):W!=null&&(ye(W)&&(W=ve(W,X+(W.key==null||_&&_.key===W.key?"":(""+W.key).replace(ge,"$&/")+"/")+ee)),G.push(W)),1;ee=0;var le=F===""?".":F+":";if(K(_))for(var ie=0;ie<_.length;ie++)F=_[ie],ae=le+be(F,ie),ee+=O(F,G,X,ae,W);else if(ie=E(_),typeof ie=="function")for(_=ie.call(_),ie=0;!(F=_.next()).done;)F=F.value,ae=le+be(F,ie++),ee+=O(F,G,X,ae,W);else if(ae==="object"){if(typeof _.then=="function")return O(fe(_),G,X,F,W);throw G=String(_),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ee}function Y(_,G,X){if(_==null)return _;var F=[],W=0;return O(_,F,"","",function(ae){return G.call(X,ae,W++)}),F}function P(_){if(_._status===-1){var G=_._result;G=G(),G.then(function(X){(_._status===0||_._status===-1)&&(_._status=1,_._result=X)},function(X){(_._status===0||_._status===-1)&&(_._status=2,_._result=X)}),_._status===-1&&(_._status=0,_._result=G)}if(_._status===1)return _._result.default;throw _._result}var oe=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},I={map:Y,forEach:function(_,G,X){Y(_,function(){G.apply(this,arguments)},X)},count:function(_){var G=0;return Y(_,function(){G++}),G},toArray:function(_){return Y(_,function(G){return G})||[]},only:function(_){if(!ye(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Ne.Activity=h,Ne.Children=I,Ne.Component=A,Ne.Fragment=o,Ne.Profiler=u,Ne.PureComponent=D,Ne.StrictMode=i,Ne.Suspense=v,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(_){return q.H.useMemoCache(_)}},Ne.cache=function(_){return function(){return _.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(_,G,X){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var F=N({},_.props),W=_.key;if(G!=null)for(ae in G.key!==void 0&&(W=""+G.key),G)!V.call(G,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&G.ref===void 0||(F[ae]=G[ae]);var ae=arguments.length-2;if(ae===1)F.children=X;else if(1<ae){for(var ee=Array(ae),le=0;le<ae;le++)ee[le]=arguments[le+2];F.children=ee}return re(_.type,W,F)},Ne.createContext=function(_){return _={$$typeof:d,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:f,_context:_},_},Ne.createElement=function(_,G,X){var F,W={},ae=null;if(G!=null)for(F in G.key!==void 0&&(ae=""+G.key),G)V.call(G,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(W[F]=G[F]);var ee=arguments.length-2;if(ee===1)W.children=X;else if(1<ee){for(var le=Array(ee),ie=0;ie<ee;ie++)le[ie]=arguments[ie+2];W.children=le}if(_&&_.defaultProps)for(F in ee=_.defaultProps,ee)W[F]===void 0&&(W[F]=ee[F]);return re(_,ae,W)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(_){return{$$typeof:m,render:_}},Ne.isValidElement=ye,Ne.lazy=function(_){return{$$typeof:x,_payload:{_status:-1,_result:_},_init:P}},Ne.memo=function(_,G){return{$$typeof:p,type:_,compare:G===void 0?null:G}},Ne.startTransition=function(_){var G=q.T,X={};q.T=X;try{var F=_(),W=q.S;W!==null&&W(X,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(J,oe)}catch(ae){oe(ae)}finally{G!==null&&X.types!==null&&(G.types=X.types),q.T=G}},Ne.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Ne.use=function(_){return q.H.use(_)},Ne.useActionState=function(_,G,X){return q.H.useActionState(_,G,X)},Ne.useCallback=function(_,G){return q.H.useCallback(_,G)},Ne.useContext=function(_){return q.H.useContext(_)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(_,G){return q.H.useDeferredValue(_,G)},Ne.useEffect=function(_,G){return q.H.useEffect(_,G)},Ne.useEffectEvent=function(_){return q.H.useEffectEvent(_)},Ne.useId=function(){return q.H.useId()},Ne.useImperativeHandle=function(_,G,X){return q.H.useImperativeHandle(_,G,X)},Ne.useInsertionEffect=function(_,G){return q.H.useInsertionEffect(_,G)},Ne.useLayoutEffect=function(_,G){return q.H.useLayoutEffect(_,G)},Ne.useMemo=function(_,G){return q.H.useMemo(_,G)},Ne.useOptimistic=function(_,G){return q.H.useOptimistic(_,G)},Ne.useReducer=function(_,G,X){return q.H.useReducer(_,G,X)},Ne.useRef=function(_){return q.H.useRef(_)},Ne.useState=function(_){return q.H.useState(_)},Ne.useSyncExternalStore=function(_,G,X){return q.H.useSyncExternalStore(_,G,X)},Ne.useTransition=function(){return q.H.useTransition()},Ne.version="19.2.4",Ne}var ug;function Lf(){return ug||(ug=1,Wu.exports=xS()),Wu.exports}var b=Lf();const te=dv(b),Uf=vS({__proto__:null,default:te},[b]);var ef={exports:{}},To={},tf={exports:{}},nf={};/**
19
- * @license React
20
- * scheduler.production.js
21
- *
22
- * Copyright (c) Meta Platforms, Inc. and affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */var fg;function SS(){return fg||(fg=1,(function(n){function r(O,Y){var P=O.length;O.push(Y);e:for(;0<P;){var oe=P-1>>>1,I=O[oe];if(0<u(I,Y))O[oe]=Y,O[P]=I,P=oe;else break e}}function o(O){return O.length===0?null:O[0]}function i(O){if(O.length===0)return null;var Y=O[0],P=O.pop();if(P!==Y){O[0]=P;e:for(var oe=0,I=O.length,_=I>>>1;oe<_;){var G=2*(oe+1)-1,X=O[G],F=G+1,W=O[F];if(0>u(X,P))F<I&&0>u(W,X)?(O[oe]=W,O[F]=P,oe=F):(O[oe]=X,O[G]=P,oe=G);else if(F<I&&0>u(W,P))O[oe]=W,O[F]=P,oe=F;else break e}}return Y}function u(O,Y){var P=O.sortIndex-Y.sortIndex;return P!==0?P:O.id-Y.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var v=[],p=[],x=1,h=null,w=3,E=!1,C=!1,N=!1,T=!1,A=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function B(O){for(var Y=o(p);Y!==null;){if(Y.callback===null)i(p);else if(Y.startTime<=O)i(p),Y.sortIndex=Y.expirationTime,r(v,Y);else break;Y=o(p)}}function K(O){if(N=!1,B(O),!C)if(o(v)!==null)C=!0,J||(J=!0,de());else{var Y=o(p);Y!==null&&fe(K,Y.startTime-O)}}var J=!1,q=-1,V=5,re=-1;function ve(){return T?!0:!(n.unstable_now()-re<V)}function ye(){if(T=!1,J){var O=n.unstable_now();re=O;var Y=!0;try{e:{C=!1,N&&(N=!1,j(q),q=-1),E=!0;var P=w;try{t:{for(B(O),h=o(v);h!==null&&!(h.expirationTime>O&&ve());){var oe=h.callback;if(typeof oe=="function"){h.callback=null,w=h.priorityLevel;var I=oe(h.expirationTime<=O);if(O=n.unstable_now(),typeof I=="function"){h.callback=I,B(O),Y=!0;break t}h===o(v)&&i(v),B(O)}else i(v);h=o(v)}if(h!==null)Y=!0;else{var _=o(p);_!==null&&fe(K,_.startTime-O),Y=!1}}break e}finally{h=null,w=P,E=!1}Y=void 0}}finally{Y?de():J=!1}}}var de;if(typeof D=="function")de=function(){D(ye)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,be=ge.port2;ge.port1.onmessage=ye,de=function(){be.postMessage(null)}}else de=function(){A(ye,0)};function fe(O,Y){q=A(function(){O(n.unstable_now())},Y)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(O){switch(w){case 1:case 2:case 3:var Y=3;break;default:Y=w}var P=w;w=Y;try{return O()}finally{w=P}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(O,Y){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var P=w;w=O;try{return Y()}finally{w=P}},n.unstable_scheduleCallback=function(O,Y,P){var oe=n.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?oe+P:oe):P=oe,O){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=P+I,O={id:x++,callback:Y,priorityLevel:O,startTime:P,expirationTime:I,sortIndex:-1},P>oe?(O.sortIndex=P,r(p,O),o(v)===null&&O===o(p)&&(N?(j(q),q=-1):N=!0,fe(K,P-oe))):(O.sortIndex=I,r(v,O),C||E||(C=!0,J||(J=!0,de()))),O},n.unstable_shouldYield=ve,n.unstable_wrapCallback=function(O){var Y=w;return function(){var P=w;w=Y;try{return O.apply(this,arguments)}finally{w=P}}}})(nf)),nf}var dg;function wS(){return dg||(dg=1,tf.exports=SS()),tf.exports}var af={exports:{}},At={};/**
27
- * @license React
28
- * react-dom.production.js
29
- *
30
- * Copyright (c) Meta Platforms, Inc. and affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */var mg;function ES(){if(mg)return At;mg=1;var n=Lf();function r(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(v,p,x){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:h==null?null:""+h,children:v,containerInfo:p,implementation:x}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return At.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,At.createPortal=function(v,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return f(v,p,null,x)},At.flushSync=function(v){var p=d.T,x=i.p;try{if(d.T=null,i.p=2,v)return v()}finally{d.T=p,i.p=x,i.d.f()}},At.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(v,p))},At.prefetchDNS=function(v){typeof v=="string"&&i.d.D(v)},At.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var x=p.as,h=m(x,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,E=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?i.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:h,integrity:w,fetchPriority:E}):x==="script"&&i.d.X(v,{crossOrigin:h,integrity:w,fetchPriority:E,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},At.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=m(p.as,p.crossOrigin);i.d.M(v,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(v)},At.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,h=m(x,p.crossOrigin);i.d.L(v,x,{crossOrigin:h,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},At.preloadModule=function(v,p){if(typeof v=="string")if(p){var x=m(p.as,p.crossOrigin);i.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(v)},At.requestFormReset=function(v){i.d.r(v)},At.unstable_batchedUpdates=function(v,p){return v(p)},At.useFormState=function(v,p,x){return d.H.useFormState(v,p,x)},At.useFormStatus=function(){return d.H.useHostTransitionStatus()},At.version="19.2.4",At}var pg;function mv(){if(pg)return af.exports;pg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),af.exports=ES(),af.exports}/**
35
- * @license React
36
- * react-dom-client.production.js
37
- *
38
- * Copyright (c) Meta Platforms, Inc. and affiliates.
39
- *
40
- * This source code is licensed under the MIT license found in the
41
- * LICENSE file in the root directory of this source tree.
42
- */var hg;function NS(){if(hg)return To;hg=1;var n=wS(),r=Lf(),o=mv();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(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 m(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 v(e){if(f(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(i(188));return t!==e?null:e}for(var a=e,l=t;;){var s=a.return;if(s===null)break;var c=s.alternate;if(c===null){if(l=s.return,l!==null){a=l;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===a)return v(s),e;if(c===l)return v(s),t;c=c.sibling}throw Error(i(188))}if(a.return!==l.return)a=s,l=c;else{for(var g=!1,S=s.child;S;){if(S===a){g=!0,a=s,l=c;break}if(S===l){g=!0,l=s,a=c;break}S=S.sibling}if(!g){for(S=c.child;S;){if(S===a){g=!0,a=c,l=s;break}if(S===l){g=!0,l=c,a=s;break}S=S.sibling}if(!g)throw Error(i(189))}}if(a.alternate!==l)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,w=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),D=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),ve=Symbol.for("react.memo_cache_sentinel"),ye=Symbol.iterator;function de(e){return e===null||typeof e!="object"?null:(e=ye&&e[ye]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Symbol.for("react.client.reference");function be(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case N:return"Fragment";case A:return"Profiler";case T:return"StrictMode";case K:return"Suspense";case J:return"SuspenseList";case re:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case D:return e.displayName||"Context";case j:return(e._context.displayName||"Context")+".Consumer";case B:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return t=e.displayName||null,t!==null?t:be(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}var fe=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},oe=[],I=-1;function _(e){return{current:e}}function G(e){0>I||(e.current=oe[I],oe[I]=null,I--)}function X(e,t){I++,oe[I]=e.current,e.current=t}var F=_(null),W=_(null),ae=_(null),ee=_(null);function le(e,t){switch(X(ae,t),X(W,e),X(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Oh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Oh(t),e=Mh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(F),X(F,e)}function ie(){G(F),G(W),G(ae)}function ne(e){e.memoizedState!==null&&X(ee,e);var t=F.current,a=Mh(t,e.type);t!==a&&(X(W,e),X(F,a))}function pe(e){W.current===e&&(G(F),G(W)),ee.current===e&&(G(ee),xo._currentValue=P)}var he,qe;function Le(e){if(he===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);he=t&&t[1]||"",qe=-1<a.stack.indexOf(`
43
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
44
- `+he+e+qe}var pt=!1;function bt(e,t){if(!e||pt)return"";pt=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(H){var U=H}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(H){U=H}e.call(Z.prototype)}}else{try{throw Error()}catch(H){U=H}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(H){if(H&&U&&typeof H.stack=="string")return[H.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),g=c[0],S=c[1];if(g&&S){var R=g.split(`
45
- `),L=S.split(`
46
- `);for(s=l=0;l<R.length&&!R[l].includes("DetermineComponentFrameRoot");)l++;for(;s<L.length&&!L[s].includes("DetermineComponentFrameRoot");)s++;if(l===R.length||s===L.length)for(l=R.length-1,s=L.length-1;1<=l&&0<=s&&R[l]!==L[s];)s--;for(;1<=l&&0<=s;l--,s--)if(R[l]!==L[s]){if(l!==1||s!==1)do if(l--,s--,0>s||R[l]!==L[s]){var $=`
47
- `+R[l].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),$}while(1<=l&&0<=s);break}}}finally{pt=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Le(a):""}function Ve(e,t){switch(e.tag){case 26:case 27:case 5:return Le(e.type);case 16:return Le("Lazy");case 13:return e.child!==t&&t!==null?Le("Suspense Fallback"):Le("Suspense");case 19:return Le("SuspenseList");case 0:case 15:return bt(e.type,!1);case 11:return bt(e.type.render,!1);case 1:return bt(e.type,!0);case 31:return Le("Activity");default:return""}}function $t(e){try{var t="",a=null;do t+=Ve(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
48
- Error generating stack: `+l.message+`
49
- `+l.stack}}var Pe=Object.prototype.hasOwnProperty,mn=n.unstable_scheduleCallback,Mr=n.unstable_cancelCallback,_t=n.unstable_shouldYield,pa=n.unstable_requestPaint,Ot=n.unstable_now,Vs=n.unstable_getCurrentPriorityLevel,Wa=n.unstable_ImmediatePriority,Ho=n.unstable_UserBlockingPriority,el=n.unstable_NormalPriority,Dr=n.unstable_LowPriority,qn=n.unstable_IdlePriority,Vo=n.log,ha=n.unstable_setDisableYieldValue,tl=null,Mt=null;function pn(e){if(typeof Vo=="function"&&ha(e),Mt&&typeof Mt.setStrictMode=="function")try{Mt.setStrictMode(tl,e)}catch{}}var Tt=Math.clz32?Math.clz32:Nn,Ys=Math.log,jr=Math.LN2;function Nn(e){return e>>>=0,e===0?32:31-(Ys(e)/jr|0)|0}var Ol=256,Ml=262144,nl=4194304;function Tn(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 Ee(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var s=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var S=l&134217727;return S!==0?(l=S&~c,l!==0?s=Tn(l):(g&=S,g!==0?s=Tn(g):a||(a=S&~e,a!==0&&(s=Tn(a))))):(S=l&~c,S!==0?s=Tn(S):g!==0?s=Tn(g):a||(a=l&~e,a!==0&&(s=Tn(a)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:s}function We(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ht(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 Ct(){var e=nl;return nl<<=1,(nl&62914560)===0&&(nl=4194304),e}function ga(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function at(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function jt(e,t,a,l,s,c){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,R=e.expirationTimes,L=e.hiddenUpdates;for(a=g&~a;0<a;){var $=31-Tt(a),Z=1<<$;S[$]=0,R[$]=-1;var U=L[$];if(U!==null)for(L[$]=null,$=0;$<U.length;$++){var H=U[$];H!==null&&(H.lane&=-536870913)}a&=~Z}l!==0&&al(e,l,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function al(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Tt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function zt(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Tt(a),s=1<<l;s&t|e[l]&t&&(e[l]|=t),a&=~s}}function kt(e,t){var a=t&-t;return a=(a&42)!==0?1:Dl(a),(a&(e.suspendedLanes|t))!==0?0:a}function Dl(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 hn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qs(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:eg(e.type))}function gd(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var va=Math.random().toString(36).slice(2),xt="__reactFiber$"+va,Lt="__reactProps$"+va,jl="__reactContainer$"+va,Gs="__reactEvents$"+va,ox="__reactListeners$"+va,ix="__reactHandles$"+va,vd="__reactResources$"+va,zr="__reactMarker$"+va;function $s(e){delete e[xt],delete e[Lt],delete e[Gs],delete e[ox],delete e[ix]}function zl(e){var t=e[xt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[jl]||a[xt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Bh(e);e!==null;){if(a=e[xt])return a;e=Bh(e)}return t}e=a,a=e.parentNode}return null}function kl(e){if(e=e[xt]||e[jl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function kr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ll(e){var t=e[vd];return t||(t=e[vd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function gt(e){e[zr]=!0}var yd=new Set,bd={};function ll(e,t){Ul(e,t),Ul(e+"Capture",t)}function Ul(e,t){for(bd[e]=t,e=0;e<t.length;e++)yd.add(t[e])}var sx=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]*$"),xd={},Sd={};function cx(e){return Pe.call(Sd,e)?!0:Pe.call(xd,e)?!1:sx.test(e)?Sd[e]=!0:(xd[e]=!0,!1)}function Yo(e,t,a){if(cx(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function qo(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Gn(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ux(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(g){a=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xs(e){if(!e._valueTracker){var t=wd(e)?"checked":"value";e._valueTracker=ux(e,t,""+e[t])}}function Ed(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=wd(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Go(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 fx=/[\n"\\]/g;function nn(e){return e.replace(fx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Qs(e,t,a,l,s,c,g,S){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tn(t)):e.value!==""+tn(t)&&(e.value=""+tn(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Zs(e,g,tn(t)):a!=null?Zs(e,g,tn(a)):l!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+tn(S):e.removeAttribute("name")}function Nd(e,t,a,l,s,c,g,S){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Xs(e);return}a=a!=null?""+tn(a):"",t=t!=null?""+tn(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=S?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),Xs(e)}function Zs(e,t,a){t==="number"&&Go(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Bl(e,t,a,l){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&l&&(e[a].defaultSelected=!0)}else{for(a=""+tn(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Td(e,t,a){if(t!=null&&(t=""+tn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+tn(a):""}function Cd(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(i(92));if(fe(l)){if(1<l.length)throw Error(i(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=tn(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Xs(e)}function Hl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var dx=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 Ad(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||dx.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Rd(e,t,a){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var s in t)l=t[s],t.hasOwnProperty(s)&&a[s]!==l&&Ad(e,s,l)}else for(var c in t)t.hasOwnProperty(c)&&Ad(e,c,t[c])}function Ks(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 mx=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"]]),px=/^[\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 $o(e){return px.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function $n(){}var Ps=null;function Js(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vl=null,Yl=null;function _d(e){var t=kl(e);if(t&&(e=t.stateNode)){var a=e[Lt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Qs(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+nn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var s=l[Lt]||null;if(!s)throw Error(i(90));Qs(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Ed(l)}break e;case"textarea":Td(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Bl(e,!!a.multiple,t,!1)}}}var Is=!1;function Od(e,t,a){if(Is)return e(t,a);Is=!0;try{var l=e(t);return l}finally{if(Is=!1,(Vl!==null||Yl!==null)&&(Mi(),Vl&&(t=Vl,e=Yl,Yl=Vl=null,_d(t),e)))for(t=0;t<e.length;t++)_d(e[t])}}function Lr(e,t){var a=e.stateNode;if(a===null)return null;var l=a[Lt]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,t,typeof a));return a}var Xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fs=!1;if(Xn)try{var Ur={};Object.defineProperty(Ur,"passive",{get:function(){Fs=!0}}),window.addEventListener("test",Ur,Ur),window.removeEventListener("test",Ur,Ur)}catch{Fs=!1}var ya=null,Ws=null,Xo=null;function Md(){if(Xo)return Xo;var e,t=Ws,a=t.length,l,s="value"in ya?ya.value:ya.textContent,c=s.length;for(e=0;e<a&&t[e]===s[e];e++);var g=a-e;for(l=1;l<=g&&t[a-l]===s[c-l];l++);return Xo=s.slice(e,1<l?1-l:void 0)}function Qo(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 Zo(){return!0}function Dd(){return!1}function Ut(e){function t(a,l,s,c,g){this._reactName=a,this._targetInst=s,this.type=l,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(a=e[S],this[S]=a?a(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Zo:Dd,this.isPropagationStopped=Dd,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Zo)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Zo)},persist:function(){},isPersistent:Zo}),t}var rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ko=Ut(rl),Br=h({},rl,{view:0,detail:0}),hx=Ut(Br),ec,tc,Hr,Po=h({},Br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ac,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!==Hr&&(Hr&&e.type==="mousemove"?(ec=e.screenX-Hr.screenX,tc=e.screenY-Hr.screenY):tc=ec=0,Hr=e),ec)},movementY:function(e){return"movementY"in e?e.movementY:tc}}),jd=Ut(Po),gx=h({},Po,{dataTransfer:0}),vx=Ut(gx),yx=h({},Br,{relatedTarget:0}),nc=Ut(yx),bx=h({},rl,{animationName:0,elapsedTime:0,pseudoElement:0}),xx=Ut(bx),Sx=h({},rl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wx=Ut(Sx),Ex=h({},rl,{data:0}),zd=Ut(Ex),Nx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tx={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"},Cx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ax(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Cx[e])?!!t[e]:!1}function ac(){return Ax}var Rx=h({},Br,{key:function(e){if(e.key){var t=Nx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Tx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ac,charCode:function(e){return e.type==="keypress"?Qo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_x=Ut(Rx),Ox=h({},Po,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kd=Ut(Ox),Mx=h({},Br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ac}),Dx=Ut(Mx),jx=h({},rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),zx=Ut(jx),kx=h({},Po,{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}),Lx=Ut(kx),Ux=h({},rl,{newState:0,oldState:0}),Bx=Ut(Ux),Hx=[9,13,27,32],lc=Xn&&"CompositionEvent"in window,Vr=null;Xn&&"documentMode"in document&&(Vr=document.documentMode);var Vx=Xn&&"TextEvent"in window&&!Vr,Ld=Xn&&(!lc||Vr&&8<Vr&&11>=Vr),Ud=" ",Bd=!1;function Hd(e,t){switch(e){case"keyup":return Hx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ql=!1;function Yx(e,t){switch(e){case"compositionend":return Vd(t);case"keypress":return t.which!==32?null:(Bd=!0,Ud);case"textInput":return e=t.data,e===Ud&&Bd?null:e;default:return null}}function qx(e,t){if(ql)return e==="compositionend"||!lc&&Hd(e,t)?(e=Md(),Xo=Ws=ya=null,ql=!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 Ld&&t.locale!=="ko"?null:t.data;default:return null}}var Gx={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 Yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Gx[e.type]:t==="textarea"}function qd(e,t,a,l){Vl?Yl?Yl.push(l):Yl=[l]:Vl=l,t=Bi(t,"onChange"),0<t.length&&(a=new Ko("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Yr=null,qr=null;function $x(e){Nh(e,0)}function Jo(e){var t=kr(e);if(Ed(t))return e}function Gd(e,t){if(e==="change")return t}var $d=!1;if(Xn){var rc;if(Xn){var oc="oninput"in document;if(!oc){var Xd=document.createElement("div");Xd.setAttribute("oninput","return;"),oc=typeof Xd.oninput=="function"}rc=oc}else rc=!1;$d=rc&&(!document.documentMode||9<document.documentMode)}function Qd(){Yr&&(Yr.detachEvent("onpropertychange",Zd),qr=Yr=null)}function Zd(e){if(e.propertyName==="value"&&Jo(qr)){var t=[];qd(t,qr,e,Js(e)),Od($x,t)}}function Xx(e,t,a){e==="focusin"?(Qd(),Yr=t,qr=a,Yr.attachEvent("onpropertychange",Zd)):e==="focusout"&&Qd()}function Qx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jo(qr)}function Zx(e,t){if(e==="click")return Jo(t)}function Kx(e,t){if(e==="input"||e==="change")return Jo(t)}function Px(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xt=typeof Object.is=="function"?Object.is:Px;function Gr(e,t){if(Xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var s=a[l];if(!Pe.call(t,s)||!Xt(e[s],t[s]))return!1}return!0}function Kd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pd(e,t){var a=Kd(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Kd(a)}}function Jd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Id(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Go(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Go(e.document)}return t}function ic(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 Jx=Xn&&"documentMode"in document&&11>=document.documentMode,Gl=null,sc=null,$r=null,cc=!1;function Fd(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cc||Gl==null||Gl!==Go(l)||(l=Gl,"selectionStart"in l&&ic(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),$r&&Gr($r,l)||($r=l,l=Bi(sc,"onSelect"),0<l.length&&(t=new Ko("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Gl)))}function ol(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var $l={animationend:ol("Animation","AnimationEnd"),animationiteration:ol("Animation","AnimationIteration"),animationstart:ol("Animation","AnimationStart"),transitionrun:ol("Transition","TransitionRun"),transitionstart:ol("Transition","TransitionStart"),transitioncancel:ol("Transition","TransitionCancel"),transitionend:ol("Transition","TransitionEnd")},uc={},Wd={};Xn&&(Wd=document.createElement("div").style,"AnimationEvent"in window||(delete $l.animationend.animation,delete $l.animationiteration.animation,delete $l.animationstart.animation),"TransitionEvent"in window||delete $l.transitionend.transition);function il(e){if(uc[e])return uc[e];if(!$l[e])return e;var t=$l[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Wd)return uc[e]=t[a];return e}var em=il("animationend"),tm=il("animationiteration"),nm=il("animationstart"),Ix=il("transitionrun"),Fx=il("transitionstart"),Wx=il("transitioncancel"),am=il("transitionend"),lm=new Map,fc="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(" ");fc.push("scrollEnd");function gn(e,t){lm.set(e,t),ll(t,[e])}var Io=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)},an=[],Xl=0,dc=0;function Fo(){for(var e=Xl,t=dc=Xl=0;t<e;){var a=an[t];an[t++]=null;var l=an[t];an[t++]=null;var s=an[t];an[t++]=null;var c=an[t];if(an[t++]=null,l!==null&&s!==null){var g=l.pending;g===null?s.next=s:(s.next=g.next,g.next=s),l.pending=s}c!==0&&rm(a,s,c)}}function Wo(e,t,a,l){an[Xl++]=e,an[Xl++]=t,an[Xl++]=a,an[Xl++]=l,dc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function mc(e,t,a,l){return Wo(e,t,a,l),ei(e)}function sl(e,t){return Wo(e,null,null,t),ei(e)}function rm(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var s=!1,c=e.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-Tt(a),e=c.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=a|536870912),c):null}function ei(e){if(50<mo)throw mo=0,wu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ql={};function e1(e,t,a,l){this.tag=e,this.key=a,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(e,t,a,l){return new e1(e,t,a,l)}function pc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qn(e,t){var a=e.alternate;return a===null?(a=Qt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function om(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ti(e,t,a,l,s,c){var g=0;if(l=e,typeof e=="function")pc(e)&&(g=1);else if(typeof e=="string")g=rS(e,a,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case re:return e=Qt(31,a,t,s),e.elementType=re,e.lanes=c,e;case N:return cl(a.children,s,c,t);case T:g=8,s|=24;break;case A:return e=Qt(12,a,t,s|2),e.elementType=A,e.lanes=c,e;case K:return e=Qt(13,a,t,s),e.elementType=K,e.lanes=c,e;case J:return e=Qt(19,a,t,s),e.elementType=J,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:g=10;break e;case j:g=9;break e;case B:g=11;break e;case q:g=14;break e;case V:g=16,l=null;break e}g=29,a=Error(i(130,e===null?"null":typeof e,"")),l=null}return t=Qt(g,a,t,s),t.elementType=e,t.type=l,t.lanes=c,t}function cl(e,t,a,l){return e=Qt(7,e,l,t),e.lanes=a,e}function hc(e,t,a){return e=Qt(6,e,null,t),e.lanes=a,e}function im(e){var t=Qt(18,null,null,0);return t.stateNode=e,t}function gc(e,t,a){return t=Qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var sm=new WeakMap;function ln(e,t){if(typeof e=="object"&&e!==null){var a=sm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:$t(t)},sm.set(e,t),t)}return{value:e,source:t,stack:$t(t)}}var Zl=[],Kl=0,ni=null,Xr=0,rn=[],on=0,ba=null,Cn=1,An="";function Zn(e,t){Zl[Kl++]=Xr,Zl[Kl++]=ni,ni=e,Xr=t}function cm(e,t,a){rn[on++]=Cn,rn[on++]=An,rn[on++]=ba,ba=e;var l=Cn;e=An;var s=32-Tt(l)-1;l&=~(1<<s),a+=1;var c=32-Tt(t)+s;if(30<c){var g=s-s%5;c=(l&(1<<g)-1).toString(32),l>>=g,s-=g,Cn=1<<32-Tt(t)+s|a<<s|l,An=c+e}else Cn=1<<c|a<<s|l,An=e}function vc(e){e.return!==null&&(Zn(e,1),cm(e,1,0))}function yc(e){for(;e===ni;)ni=Zl[--Kl],Zl[Kl]=null,Xr=Zl[--Kl],Zl[Kl]=null;for(;e===ba;)ba=rn[--on],rn[on]=null,An=rn[--on],rn[on]=null,Cn=rn[--on],rn[on]=null}function um(e,t){rn[on++]=Cn,rn[on++]=An,rn[on++]=ba,Cn=t.id,An=t.overflow,ba=e}var St=null,Ie=null,je=!1,xa=null,sn=!1,bc=Error(i(519));function Sa(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qr(ln(t,e)),bc}function fm(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[xt]=e,t[Lt]=l,a){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(a=0;a<ho.length;a++)Oe(ho[a],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),Nd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),Cd(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Rh(t.textContent,a)?(l.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),l.onScroll!=null&&Oe("scroll",t),l.onScrollEnd!=null&&Oe("scrollend",t),l.onClick!=null&&(t.onclick=$n),t=!0):t=!1,t||Sa(e,!0)}function dm(e){for(St=e.return;St;)switch(St.tag){case 5:case 31:case 13:sn=!1;return;case 27:case 3:sn=!0;return;default:St=St.return}}function Pl(e){if(e!==St)return!1;if(!je)return dm(e),je=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Uu(e.type,e.memoizedProps)),a=!a),a&&Ie&&Sa(e),dm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ie=Uh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ie=Uh(e)}else t===27?(t=Ie,ka(e.type)?(e=qu,qu=null,Ie=e):Ie=t):Ie=St?un(e.stateNode.nextSibling):null;return!0}function ul(){Ie=St=null,je=!1}function xc(){var e=xa;return e!==null&&(Yt===null?Yt=e:Yt.push.apply(Yt,e),xa=null),e}function Qr(e){xa===null?xa=[e]:xa.push(e)}var Sc=_(null),fl=null,Kn=null;function wa(e,t,a){X(Sc,t._currentValue),t._currentValue=a}function Pn(e){e._currentValue=Sc.current,G(Sc)}function wc(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Ec(e,t,a,l){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var g=s.child;c=c.firstContext;e:for(;c!==null;){var S=c;c=s;for(var R=0;R<t.length;R++)if(S.context===t[R]){c.lanes|=a,S=c.alternate,S!==null&&(S.lanes|=a),wc(c.return,a,e),l||(g=null);break e}c=S.next}}else if(s.tag===18){if(g=s.return,g===null)throw Error(i(341));g.lanes|=a,c=g.alternate,c!==null&&(c.lanes|=a),wc(g,a,e),g=null}else g=s.child;if(g!==null)g.return=s;else for(g=s;g!==null;){if(g===e){g=null;break}if(s=g.sibling,s!==null){s.return=g.return,g=s;break}g=g.return}s=g}}function Jl(e,t,a,l){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var g=s.alternate;if(g===null)throw Error(i(387));if(g=g.memoizedProps,g!==null){var S=s.type;Xt(s.pendingProps.value,g.value)||(e!==null?e.push(S):e=[S])}}else if(s===ee.current){if(g=s.alternate,g===null)throw Error(i(387));g.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(xo):e=[xo])}s=s.return}e!==null&&Ec(t,e,a,l),t.flags|=262144}function ai(e){for(e=e.firstContext;e!==null;){if(!Xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function dl(e){fl=e,Kn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wt(e){return mm(fl,e)}function li(e,t){return fl===null&&dl(e),mm(e,t)}function mm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Kn===null){if(e===null)throw Error(i(308));Kn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Kn=Kn.next=t;return a}var t1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},n1=n.unstable_scheduleCallback,a1=n.unstable_NormalPriority,st={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nc(){return{controller:new t1,data:new Map,refCount:0}}function Zr(e){e.refCount--,e.refCount===0&&n1(a1,function(){e.controller.abort()})}var Kr=null,Tc=0,Il=0,Fl=null;function l1(e,t){if(Kr===null){var a=Kr=[];Tc=0,Il=Ru(),Fl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Tc++,t.then(pm,pm),t}function pm(){if(--Tc===0&&Kr!==null){Fl!==null&&(Fl.status="fulfilled");var e=Kr;Kr=null,Il=0,Fl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function r1(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),l}var hm=O.S;O.S=function(e,t){Fp=Ot(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&l1(e,t),hm!==null&&hm(e,t)};var ml=_(null);function Cc(){var e=ml.current;return e!==null?e:Ke.pooledCache}function ri(e,t){t===null?X(ml,ml.current):X(ml,t.pool)}function gm(){var e=Cc();return e===null?null:{parent:st._currentValue,pool:e}}var Wl=Error(i(460)),Ac=Error(i(474)),oi=Error(i(542)),ii={then:function(){}};function vm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ym(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then($n,$n),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,xm(e),e;default:if(typeof t.status=="string")t.then($n,$n);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,xm(e),e}throw hl=t,Wl}}function pl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(hl=a,Wl):a}}var hl=null;function bm(){if(hl===null)throw Error(i(459));var e=hl;return hl=null,e}function xm(e){if(e===Wl||e===oi)throw Error(i(483))}var er=null,Pr=0;function si(e){var t=Pr;return Pr+=1,er===null&&(er=[]),ym(er,e,t)}function Jr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ci(e,t){throw t.$$typeof===w?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Sm(e){function t(z,M){if(e){var k=z.deletions;k===null?(z.deletions=[M],z.flags|=16):k.push(M)}}function a(z,M){if(!e)return null;for(;M!==null;)t(z,M),M=M.sibling;return null}function l(z){for(var M=new Map;z!==null;)z.key!==null?M.set(z.key,z):M.set(z.index,z),z=z.sibling;return M}function s(z,M){return z=Qn(z,M),z.index=0,z.sibling=null,z}function c(z,M,k){return z.index=k,e?(k=z.alternate,k!==null?(k=k.index,k<M?(z.flags|=67108866,M):k):(z.flags|=67108866,M)):(z.flags|=1048576,M)}function g(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function S(z,M,k,Q){return M===null||M.tag!==6?(M=hc(k,z.mode,Q),M.return=z,M):(M=s(M,k),M.return=z,M)}function R(z,M,k,Q){var xe=k.type;return xe===N?$(z,M,k.props.children,Q,k.key):M!==null&&(M.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===V&&pl(xe)===M.type)?(M=s(M,k.props),Jr(M,k),M.return=z,M):(M=ti(k.type,k.key,k.props,null,z.mode,Q),Jr(M,k),M.return=z,M)}function L(z,M,k,Q){return M===null||M.tag!==4||M.stateNode.containerInfo!==k.containerInfo||M.stateNode.implementation!==k.implementation?(M=gc(k,z.mode,Q),M.return=z,M):(M=s(M,k.children||[]),M.return=z,M)}function $(z,M,k,Q,xe){return M===null||M.tag!==7?(M=cl(k,z.mode,Q,xe),M.return=z,M):(M=s(M,k),M.return=z,M)}function Z(z,M,k){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=hc(""+M,z.mode,k),M.return=z,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case E:return k=ti(M.type,M.key,M.props,null,z.mode,k),Jr(k,M),k.return=z,k;case C:return M=gc(M,z.mode,k),M.return=z,M;case V:return M=pl(M),Z(z,M,k)}if(fe(M)||de(M))return M=cl(M,z.mode,k,null),M.return=z,M;if(typeof M.then=="function")return Z(z,si(M),k);if(M.$$typeof===D)return Z(z,li(z,M),k);ci(z,M)}return null}function U(z,M,k,Q){var xe=M!==null?M.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return xe!==null?null:S(z,M,""+k,Q);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case E:return k.key===xe?R(z,M,k,Q):null;case C:return k.key===xe?L(z,M,k,Q):null;case V:return k=pl(k),U(z,M,k,Q)}if(fe(k)||de(k))return xe!==null?null:$(z,M,k,Q,null);if(typeof k.then=="function")return U(z,M,si(k),Q);if(k.$$typeof===D)return U(z,M,li(z,k),Q);ci(z,k)}return null}function H(z,M,k,Q,xe){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return z=z.get(k)||null,S(M,z,""+Q,xe);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case E:return z=z.get(Q.key===null?k:Q.key)||null,R(M,z,Q,xe);case C:return z=z.get(Q.key===null?k:Q.key)||null,L(M,z,Q,xe);case V:return Q=pl(Q),H(z,M,k,Q,xe)}if(fe(Q)||de(Q))return z=z.get(k)||null,$(M,z,Q,xe,null);if(typeof Q.then=="function")return H(z,M,k,si(Q),xe);if(Q.$$typeof===D)return H(z,M,k,li(M,Q),xe);ci(M,Q)}return null}function se(z,M,k,Q){for(var xe=null,Ue=null,me=M,Ce=M=0,De=null;me!==null&&Ce<k.length;Ce++){me.index>Ce?(De=me,me=null):De=me.sibling;var Be=U(z,me,k[Ce],Q);if(Be===null){me===null&&(me=De);break}e&&me&&Be.alternate===null&&t(z,me),M=c(Be,M,Ce),Ue===null?xe=Be:Ue.sibling=Be,Ue=Be,me=De}if(Ce===k.length)return a(z,me),je&&Zn(z,Ce),xe;if(me===null){for(;Ce<k.length;Ce++)me=Z(z,k[Ce],Q),me!==null&&(M=c(me,M,Ce),Ue===null?xe=me:Ue.sibling=me,Ue=me);return je&&Zn(z,Ce),xe}for(me=l(me);Ce<k.length;Ce++)De=H(me,z,Ce,k[Ce],Q),De!==null&&(e&&De.alternate!==null&&me.delete(De.key===null?Ce:De.key),M=c(De,M,Ce),Ue===null?xe=De:Ue.sibling=De,Ue=De);return e&&me.forEach(function(Va){return t(z,Va)}),je&&Zn(z,Ce),xe}function Se(z,M,k,Q){if(k==null)throw Error(i(151));for(var xe=null,Ue=null,me=M,Ce=M=0,De=null,Be=k.next();me!==null&&!Be.done;Ce++,Be=k.next()){me.index>Ce?(De=me,me=null):De=me.sibling;var Va=U(z,me,Be.value,Q);if(Va===null){me===null&&(me=De);break}e&&me&&Va.alternate===null&&t(z,me),M=c(Va,M,Ce),Ue===null?xe=Va:Ue.sibling=Va,Ue=Va,me=De}if(Be.done)return a(z,me),je&&Zn(z,Ce),xe;if(me===null){for(;!Be.done;Ce++,Be=k.next())Be=Z(z,Be.value,Q),Be!==null&&(M=c(Be,M,Ce),Ue===null?xe=Be:Ue.sibling=Be,Ue=Be);return je&&Zn(z,Ce),xe}for(me=l(me);!Be.done;Ce++,Be=k.next())Be=H(me,z,Ce,Be.value,Q),Be!==null&&(e&&Be.alternate!==null&&me.delete(Be.key===null?Ce:Be.key),M=c(Be,M,Ce),Ue===null?xe=Be:Ue.sibling=Be,Ue=Be);return e&&me.forEach(function(gS){return t(z,gS)}),je&&Zn(z,Ce),xe}function Ze(z,M,k,Q){if(typeof k=="object"&&k!==null&&k.type===N&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case E:e:{for(var xe=k.key;M!==null;){if(M.key===xe){if(xe=k.type,xe===N){if(M.tag===7){a(z,M.sibling),Q=s(M,k.props.children),Q.return=z,z=Q;break e}}else if(M.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===V&&pl(xe)===M.type){a(z,M.sibling),Q=s(M,k.props),Jr(Q,k),Q.return=z,z=Q;break e}a(z,M);break}else t(z,M);M=M.sibling}k.type===N?(Q=cl(k.props.children,z.mode,Q,k.key),Q.return=z,z=Q):(Q=ti(k.type,k.key,k.props,null,z.mode,Q),Jr(Q,k),Q.return=z,z=Q)}return g(z);case C:e:{for(xe=k.key;M!==null;){if(M.key===xe)if(M.tag===4&&M.stateNode.containerInfo===k.containerInfo&&M.stateNode.implementation===k.implementation){a(z,M.sibling),Q=s(M,k.children||[]),Q.return=z,z=Q;break e}else{a(z,M);break}else t(z,M);M=M.sibling}Q=gc(k,z.mode,Q),Q.return=z,z=Q}return g(z);case V:return k=pl(k),Ze(z,M,k,Q)}if(fe(k))return se(z,M,k,Q);if(de(k)){if(xe=de(k),typeof xe!="function")throw Error(i(150));return k=xe.call(k),Se(z,M,k,Q)}if(typeof k.then=="function")return Ze(z,M,si(k),Q);if(k.$$typeof===D)return Ze(z,M,li(z,k),Q);ci(z,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,M!==null&&M.tag===6?(a(z,M.sibling),Q=s(M,k),Q.return=z,z=Q):(a(z,M),Q=hc(k,z.mode,Q),Q.return=z,z=Q),g(z)):a(z,M)}return function(z,M,k,Q){try{Pr=0;var xe=Ze(z,M,k,Q);return er=null,xe}catch(me){if(me===Wl||me===oi)throw me;var Ue=Qt(29,me,null,z.mode);return Ue.lanes=Q,Ue.return=z,Ue}finally{}}}var gl=Sm(!0),wm=Sm(!1),Ea=!1;function Rc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _c(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 Na(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ta(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ye&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=ei(e),rm(e,null,a),t}return Wo(e,l,t,a),ei(e)}function Ir(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,zt(e,a)}}function Oc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var s=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?s=c=g:c=c.next=g,a=a.next}while(a!==null);c===null?s=c=t:c=c.next=t}else s=c=t;a={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Mc=!1;function Fr(){if(Mc){var e=Fl;if(e!==null)throw e}}function Wr(e,t,a,l){Mc=!1;var s=e.updateQueue;Ea=!1;var c=s.firstBaseUpdate,g=s.lastBaseUpdate,S=s.shared.pending;if(S!==null){s.shared.pending=null;var R=S,L=R.next;R.next=null,g===null?c=L:g.next=L,g=R;var $=e.alternate;$!==null&&($=$.updateQueue,S=$.lastBaseUpdate,S!==g&&(S===null?$.firstBaseUpdate=L:S.next=L,$.lastBaseUpdate=R))}if(c!==null){var Z=s.baseState;g=0,$=L=R=null,S=c;do{var U=S.lane&-536870913,H=U!==S.lane;if(H?(Me&U)===U:(l&U)===U){U!==0&&U===Il&&(Mc=!0),$!==null&&($=$.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var se=e,Se=S;U=t;var Ze=a;switch(Se.tag){case 1:if(se=Se.payload,typeof se=="function"){Z=se.call(Ze,Z,U);break e}Z=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=Se.payload,U=typeof se=="function"?se.call(Ze,Z,U):se,U==null)break e;Z=h({},Z,U);break e;case 2:Ea=!0}}U=S.callback,U!==null&&(e.flags|=64,H&&(e.flags|=8192),H=s.callbacks,H===null?s.callbacks=[U]:H.push(U))}else H={lane:U,tag:S.tag,payload:S.payload,callback:S.callback,next:null},$===null?(L=$=H,R=Z):$=$.next=H,g|=U;if(S=S.next,S===null){if(S=s.shared.pending,S===null)break;H=S,S=H.next,H.next=null,s.lastBaseUpdate=H,s.shared.pending=null}}while(!0);$===null&&(R=Z),s.baseState=R,s.firstBaseUpdate=L,s.lastBaseUpdate=$,c===null&&(s.shared.lanes=0),Oa|=g,e.lanes=g,e.memoizedState=Z}}function Em(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Nm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Em(a[e],t)}var tr=_(null),ui=_(0);function Tm(e,t){e=la,X(ui,e),X(tr,t),la=e|t.baseLanes}function Dc(){X(ui,la),X(tr,tr.current)}function jc(){la=ui.current,G(tr),G(ui)}var Zt=_(null),cn=null;function Ca(e){var t=e.alternate;X(ot,ot.current&1),X(Zt,e),cn===null&&(t===null||tr.current!==null||t.memoizedState!==null)&&(cn=e)}function zc(e){X(ot,ot.current),X(Zt,e),cn===null&&(cn=e)}function Cm(e){e.tag===22?(X(ot,ot.current),X(Zt,e),cn===null&&(cn=e)):Aa()}function Aa(){X(ot,ot.current),X(Zt,Zt.current)}function Kt(e){G(Zt),cn===e&&(cn=null),G(ot)}var ot=_(0);function fi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Vu(a)||Yu(a)))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)!==0)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 Jn=0,Te=null,Xe=null,ct=null,di=!1,nr=!1,vl=!1,mi=0,eo=0,ar=null,o1=0;function lt(){throw Error(i(321))}function kc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Xt(e[a],t[a]))return!1;return!0}function Lc(e,t,a,l,s,c){return Jn=c,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?cp:Ic,vl=!1,c=a(l,s),vl=!1,nr&&(c=Rm(t,a,l,s)),Am(e),c}function Am(e){O.H=ao;var t=Xe!==null&&Xe.next!==null;if(Jn=0,ct=Xe=Te=null,di=!1,eo=0,ar=null,t)throw Error(i(300));e===null||ut||(e=e.dependencies,e!==null&&ai(e)&&(ut=!0))}function Rm(e,t,a,l){Te=e;var s=0;do{if(nr&&(ar=null),eo=0,nr=!1,25<=s)throw Error(i(301));if(s+=1,ct=Xe=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}O.H=up,c=t(a,l)}while(nr);return c}function i1(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?to(t):t,e=e.useState()[0],(Xe!==null?Xe.memoizedState:null)!==e&&(Te.flags|=1024),t}function Uc(){var e=mi!==0;return mi=0,e}function Bc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Hc(e){if(di){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}di=!1}Jn=0,ct=Xe=Te=null,nr=!1,eo=mi=0,ar=null}function Dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?Te.memoizedState=ct=e:ct=ct.next=e,ct}function it(){if(Xe===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=ct===null?Te.memoizedState:ct.next;if(t!==null)ct=t,Xe=e;else{if(e===null)throw Te.alternate===null?Error(i(467)):Error(i(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},ct===null?Te.memoizedState=ct=e:ct=ct.next=e}return ct}function pi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function to(e){var t=eo;return eo+=1,ar===null&&(ar=[]),e=ym(ar,e,t),t=Te,(ct===null?t.memoizedState:ct.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?cp:Ic),e}function hi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return to(e);if(e.$$typeof===D)return wt(e)}throw Error(i(438,String(e)))}function Vc(e){var t=null,a=Te.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=Te.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=pi(),Te.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=ve;return t.index++,a}function In(e,t){return typeof t=="function"?t(e):t}function gi(e){var t=it();return Yc(t,Xe,e)}function Yc(e,t,a){var l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=a;var s=e.baseQueue,c=l.pending;if(c!==null){if(s!==null){var g=s.next;s.next=c.next,c.next=g}t.baseQueue=s=c,l.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var S=g=null,R=null,L=t,$=!1;do{var Z=L.lane&-536870913;if(Z!==L.lane?(Me&Z)===Z:(Jn&Z)===Z){var U=L.revertLane;if(U===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),Z===Il&&($=!0);else if((Jn&U)===U){L=L.next,U===Il&&($=!0);continue}else Z={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},R===null?(S=R=Z,g=c):R=R.next=Z,Te.lanes|=U,Oa|=U;Z=L.action,vl&&a(c,Z),c=L.hasEagerState?L.eagerState:a(c,Z)}else U={lane:Z,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},R===null?(S=R=U,g=c):R=R.next=U,Te.lanes|=Z,Oa|=Z;L=L.next}while(L!==null&&L!==t);if(R===null?g=c:R.next=S,!Xt(c,e.memoizedState)&&(ut=!0,$&&(a=Fl,a!==null)))throw a;e.memoizedState=c,e.baseState=g,e.baseQueue=R,l.lastRenderedState=c}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function qc(e){var t=it(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var l=a.dispatch,s=a.pending,c=t.memoizedState;if(s!==null){a.pending=null;var g=s=s.next;do c=e(c,g.action),g=g.next;while(g!==s);Xt(c,t.memoizedState)||(ut=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,l]}function _m(e,t,a){var l=Te,s=it(),c=je;if(c){if(a===void 0)throw Error(i(407));a=a()}else a=t();var g=!Xt((Xe||s).memoizedState,a);if(g&&(s.memoizedState=a,ut=!0),s=s.queue,Xc(Dm.bind(null,l,s,e),[e]),s.getSnapshot!==t||g||ct!==null&&ct.memoizedState.tag&1){if(l.flags|=2048,lr(9,{destroy:void 0},Mm.bind(null,l,s,a,t),null),Ke===null)throw Error(i(349));c||(Jn&127)!==0||Om(l,t,a)}return a}function Om(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Te.updateQueue,t===null?(t=pi(),Te.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Mm(e,t,a,l){t.value=a,t.getSnapshot=l,jm(t)&&zm(e)}function Dm(e,t,a){return a(function(){jm(t)&&zm(e)})}function jm(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Xt(e,a)}catch{return!0}}function zm(e){var t=sl(e,2);t!==null&&qt(t,e,2)}function Gc(e){var t=Dt();if(typeof e=="function"){var a=e;if(e=a(),vl){pn(!0);try{a()}finally{pn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:e},t}function km(e,t,a,l){return e.baseState=a,Yc(e,Xe,typeof l=="function"?l:In)}function s1(e,t,a,l,s){if(bi(e))throw Error(i(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};O.T!==null?a(!0):c.isTransition=!1,l(c),a=t.pending,a===null?(c.next=t.pending=c,Lm(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Lm(e,t){var a=t.action,l=t.payload,s=e.state;if(t.isTransition){var c=O.T,g={};O.T=g;try{var S=a(s,l),R=O.S;R!==null&&R(g,S),Um(e,t,S)}catch(L){$c(e,t,L)}finally{c!==null&&g.types!==null&&(c.types=g.types),O.T=c}}else try{c=a(s,l),Um(e,t,c)}catch(L){$c(e,t,L)}}function Um(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Bm(e,t,l)},function(l){return $c(e,t,l)}):Bm(e,t,a)}function Bm(e,t,a){t.status="fulfilled",t.value=a,Hm(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Lm(e,a)))}function $c(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Hm(t),t=t.next;while(t!==l)}e.action=null}function Hm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Vm(e,t){return t}function Ym(e,t){if(je){var a=Ke.formState;if(a!==null){e:{var l=Te;if(je){if(Ie){t:{for(var s=Ie,c=sn;s.nodeType!==8;){if(!c){s=null;break t}if(s=un(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){Ie=un(s.nextSibling),l=s.data==="F!";break e}}Sa(l)}l=!1}l&&(t=a[0])}}return a=Dt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vm,lastRenderedState:t},a.queue=l,a=op.bind(null,Te,l),l.dispatch=a,l=Gc(!1),c=Jc.bind(null,Te,!1,l.queue),l=Dt(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,a=s1.bind(null,Te,s,c,a),s.dispatch=a,l.memoizedState=e,[t,a,!1]}function qm(e){var t=it();return Gm(t,Xe,e)}function Gm(e,t,a){if(t=Yc(e,t,Vm)[0],e=gi(In)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=to(t)}catch(g){throw g===Wl?oi:g}else l=t;t=it();var s=t.queue,c=s.dispatch;return a!==t.memoizedState&&(Te.flags|=2048,lr(9,{destroy:void 0},c1.bind(null,s,a),null)),[l,c,e]}function c1(e,t){e.action=t}function $m(e){var t=it(),a=Xe;if(a!==null)return Gm(t,a,e);it(),t=t.memoizedState,a=it();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function lr(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=Te.updateQueue,t===null&&(t=pi(),Te.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Xm(){return it().memoizedState}function vi(e,t,a,l){var s=Dt();Te.flags|=e,s.memoizedState=lr(1|t,{destroy:void 0},a,l===void 0?null:l)}function yi(e,t,a,l){var s=it();l=l===void 0?null:l;var c=s.memoizedState.inst;Xe!==null&&l!==null&&kc(l,Xe.memoizedState.deps)?s.memoizedState=lr(t,c,a,l):(Te.flags|=e,s.memoizedState=lr(1|t,c,a,l))}function Qm(e,t){vi(8390656,8,e,t)}function Xc(e,t){yi(2048,8,e,t)}function u1(e){Te.flags|=4;var t=Te.updateQueue;if(t===null)t=pi(),Te.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Zm(e){var t=it().memoizedState;return u1({ref:t,nextImpl:e}),function(){if((Ye&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Km(e,t){return yi(4,2,e,t)}function Pm(e,t){return yi(4,4,e,t)}function Jm(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Im(e,t,a){a=a!=null?a.concat([e]):null,yi(4,4,Jm.bind(null,t,e),a)}function Qc(){}function Fm(e,t){var a=it();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&kc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Wm(e,t){var a=it();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&kc(t,l[1]))return l[0];if(l=e(),vl){pn(!0);try{e()}finally{pn(!1)}}return a.memoizedState=[l,t],l}function Zc(e,t,a){return a===void 0||(Jn&1073741824)!==0&&(Me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=eh(),Te.lanes|=e,Oa|=e,a)}function ep(e,t,a,l){return Xt(a,t)?a:tr.current!==null?(e=Zc(e,a,l),Xt(e,t)||(ut=!0),e):(Jn&42)===0||(Jn&1073741824)!==0&&(Me&261930)===0?(ut=!0,e.memoizedState=a):(e=eh(),Te.lanes|=e,Oa|=e,t)}function tp(e,t,a,l,s){var c=Y.p;Y.p=c!==0&&8>c?c:8;var g=O.T,S={};O.T=S,Jc(e,!1,t,a);try{var R=s(),L=O.S;if(L!==null&&L(S,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var $=r1(R,l);no(e,t,$,It(e))}else no(e,t,l,It(e))}catch(Z){no(e,t,{then:function(){},status:"rejected",reason:Z},It())}finally{Y.p=c,g!==null&&S.types!==null&&(g.types=S.types),O.T=g}}function f1(){}function Kc(e,t,a,l){if(e.tag!==5)throw Error(i(476));var s=np(e).queue;tp(e,s,t,P,a===null?f1:function(){return ap(e),a(l)})}function np(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:P},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ap(e){var t=np(e);t.next===null&&(t=e.alternate.memoizedState),no(e,t.next.queue,{},It())}function Pc(){return wt(xo)}function lp(){return it().memoizedState}function rp(){return it().memoizedState}function d1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=It();e=Na(a);var l=Ta(t,e,a);l!==null&&(qt(l,t,a),Ir(l,t,a)),t={cache:Nc()},e.payload=t;return}t=t.return}}function m1(e,t,a){var l=It();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},bi(e)?ip(t,a):(a=mc(e,t,a,l),a!==null&&(qt(a,e,l),sp(a,t,l)))}function op(e,t,a){var l=It();no(e,t,a,l)}function no(e,t,a,l){var s={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(bi(e))ip(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,S=c(g,a);if(s.hasEagerState=!0,s.eagerState=S,Xt(S,g))return Wo(e,t,s,0),Ke===null&&Fo(),!1}catch{}finally{}if(a=mc(e,t,s,l),a!==null)return qt(a,e,l),sp(a,t,l),!0}return!1}function Jc(e,t,a,l){if(l={lane:2,revertLane:Ru(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},bi(e)){if(t)throw Error(i(479))}else t=mc(e,a,l,2),t!==null&&qt(t,e,2)}function bi(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function ip(e,t){nr=di=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function sp(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,zt(e,a)}}var ao={readContext:wt,use:hi,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useLayoutEffect:lt,useInsertionEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useSyncExternalStore:lt,useId:lt,useHostTransitionStatus:lt,useFormState:lt,useActionState:lt,useOptimistic:lt,useMemoCache:lt,useCacheRefresh:lt};ao.useEffectEvent=lt;var cp={readContext:wt,use:hi,useCallback:function(e,t){return Dt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:Qm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,vi(4194308,4,Jm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return vi(4194308,4,e,t)},useInsertionEffect:function(e,t){vi(4,2,e,t)},useMemo:function(e,t){var a=Dt();t=t===void 0?null:t;var l=e();if(vl){pn(!0);try{e()}finally{pn(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Dt();if(a!==void 0){var s=a(t);if(vl){pn(!0);try{a(t)}finally{pn(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=m1.bind(null,Te,e),[l.memoizedState,e]},useRef:function(e){var t=Dt();return e={current:e},t.memoizedState=e},useState:function(e){e=Gc(e);var t=e.queue,a=op.bind(null,Te,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Qc,useDeferredValue:function(e,t){var a=Dt();return Zc(a,e,t)},useTransition:function(){var e=Gc(!1);return e=tp.bind(null,Te,e.queue,!0,!1),Dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=Te,s=Dt();if(je){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Ke===null)throw Error(i(349));(Me&127)!==0||Om(l,t,a)}s.memoizedState=a;var c={value:a,getSnapshot:t};return s.queue=c,Qm(Dm.bind(null,l,c,e),[e]),l.flags|=2048,lr(9,{destroy:void 0},Mm.bind(null,l,c,a,t),null),a},useId:function(){var e=Dt(),t=Ke.identifierPrefix;if(je){var a=An,l=Cn;a=(l&~(1<<32-Tt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=mi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=o1++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Pc,useFormState:Ym,useActionState:Ym,useOptimistic:function(e){var t=Dt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Jc.bind(null,Te,!0,a),a.dispatch=t,[e,t]},useMemoCache:Vc,useCacheRefresh:function(){return Dt().memoizedState=d1.bind(null,Te)},useEffectEvent:function(e){var t=Dt(),a={impl:e};return t.memoizedState=a,function(){if((Ye&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},Ic={readContext:wt,use:hi,useCallback:Fm,useContext:wt,useEffect:Xc,useImperativeHandle:Im,useInsertionEffect:Km,useLayoutEffect:Pm,useMemo:Wm,useReducer:gi,useRef:Xm,useState:function(){return gi(In)},useDebugValue:Qc,useDeferredValue:function(e,t){var a=it();return ep(a,Xe.memoizedState,e,t)},useTransition:function(){var e=gi(In)[0],t=it().memoizedState;return[typeof e=="boolean"?e:to(e),t]},useSyncExternalStore:_m,useId:lp,useHostTransitionStatus:Pc,useFormState:qm,useActionState:qm,useOptimistic:function(e,t){var a=it();return km(a,Xe,e,t)},useMemoCache:Vc,useCacheRefresh:rp};Ic.useEffectEvent=Zm;var up={readContext:wt,use:hi,useCallback:Fm,useContext:wt,useEffect:Xc,useImperativeHandle:Im,useInsertionEffect:Km,useLayoutEffect:Pm,useMemo:Wm,useReducer:qc,useRef:Xm,useState:function(){return qc(In)},useDebugValue:Qc,useDeferredValue:function(e,t){var a=it();return Xe===null?Zc(a,e,t):ep(a,Xe.memoizedState,e,t)},useTransition:function(){var e=qc(In)[0],t=it().memoizedState;return[typeof e=="boolean"?e:to(e),t]},useSyncExternalStore:_m,useId:lp,useHostTransitionStatus:Pc,useFormState:$m,useActionState:$m,useOptimistic:function(e,t){var a=it();return Xe!==null?km(a,Xe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Vc,useCacheRefresh:rp};up.useEffectEvent=Zm;function Fc(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:h({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Wc={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=It(),s=Na(l);s.payload=t,a!=null&&(s.callback=a),t=Ta(e,s,l),t!==null&&(qt(t,e,l),Ir(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=It(),s=Na(l);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=Ta(e,s,l),t!==null&&(qt(t,e,l),Ir(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=It(),l=Na(a);l.tag=2,t!=null&&(l.callback=t),t=Ta(e,l,a),t!==null&&(qt(t,e,a),Ir(t,e,a))}};function fp(e,t,a,l,s,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,g):t.prototype&&t.prototype.isPureReactComponent?!Gr(a,l)||!Gr(s,c):!0}function dp(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Wc.enqueueReplaceState(t,t.state,null)}function yl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=h({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function mp(e){Io(e)}function pp(e){console.error(e)}function hp(e){Io(e)}function xi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function gp(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function eu(e,t,a){return a=Na(a),a.tag=3,a.payload={element:null},a.callback=function(){xi(e,t)},a}function vp(e){return e=Na(e),e.tag=3,e}function yp(e,t,a,l){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var c=l.value;e.payload=function(){return s(c)},e.callback=function(){gp(t,a,l)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){gp(t,a,l),typeof s!="function"&&(Ma===null?Ma=new Set([this]):Ma.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function p1(e,t,a,l,s){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Jl(t,a,s,!0),a=Zt.current,a!==null){switch(a.tag){case 31:case 13:return cn===null?Di():a.alternate===null&&rt===0&&(rt=3),a.flags&=-257,a.flags|=65536,a.lanes=s,l===ii?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Tu(e,l,s)),!1;case 22:return a.flags|=65536,l===ii?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Tu(e,l,s)),!1}throw Error(i(435,a.tag))}return Tu(e,l,s),Di(),!1}if(je)return t=Zt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==bc&&(e=Error(i(422),{cause:l}),Qr(ln(e,a)))):(l!==bc&&(t=Error(i(423),{cause:l}),Qr(ln(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=ln(l,a),s=eu(e.stateNode,l,s),Oc(e,s),rt!==4&&(rt=2)),!1;var c=Error(i(520),{cause:l});if(c=ln(c,a),fo===null?fo=[c]:fo.push(c),rt!==4&&(rt=2),t===null)return!0;l=ln(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=eu(a.stateNode,l,e),Oc(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ma===null||!Ma.has(c))))return a.flags|=65536,s&=-s,a.lanes|=s,s=vp(s),yp(s,e,a,l),Oc(a,s),!1}a=a.return}while(a!==null);return!1}var tu=Error(i(461)),ut=!1;function Et(e,t,a,l){t.child=e===null?wm(t,null,a,l):gl(t,e.child,a,l)}function bp(e,t,a,l,s){a=a.render;var c=t.ref;if("ref"in l){var g={};for(var S in l)S!=="ref"&&(g[S]=l[S])}else g=l;return dl(t),l=Lc(e,t,a,g,c,s),S=Uc(),e!==null&&!ut?(Bc(e,t,s),Fn(e,t,s)):(je&&S&&vc(t),t.flags|=1,Et(e,t,l,s),t.child)}function xp(e,t,a,l,s){if(e===null){var c=a.type;return typeof c=="function"&&!pc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Sp(e,t,c,l,s)):(e=ti(a.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!cu(e,s)){var g=c.memoizedProps;if(a=a.compare,a=a!==null?a:Gr,a(g,l)&&e.ref===t.ref)return Fn(e,t,s)}return t.flags|=1,e=Qn(c,l),e.ref=t.ref,e.return=t,t.child=e}function Sp(e,t,a,l,s){if(e!==null){var c=e.memoizedProps;if(Gr(c,l)&&e.ref===t.ref)if(ut=!1,t.pendingProps=l=c,cu(e,s))(e.flags&131072)!==0&&(ut=!0);else return t.lanes=e.lanes,Fn(e,t,s)}return nu(e,t,a,l,s)}function wp(e,t,a,l){var s=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~c}else l=0,t.child=null;return Ep(e,t,c,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ri(t,c!==null?c.cachePool:null),c!==null?Tm(t,c):Dc(),Cm(t);else return l=t.lanes=536870912,Ep(e,t,c!==null?c.baseLanes|a:a,a,l)}else c!==null?(ri(t,c.cachePool),Tm(t,c),Aa(),t.memoizedState=null):(e!==null&&ri(t,null),Dc(),Aa());return Et(e,t,s,a),t.child}function lo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ep(e,t,a,l,s){var c=Cc();return c=c===null?null:{parent:st._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&ri(t,null),Dc(),Cm(t),e!==null&&Jl(e,t,l,!0),t.childLanes=s,null}function Si(e,t){return t=Ei({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Np(e,t,a){return gl(t,e.child,null,a),e=Si(t,t.pendingProps),e.flags|=2,Kt(t),t.memoizedState=null,e}function h1(e,t,a){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(l.mode==="hidden")return e=Si(t,l),t.lanes=536870912,lo(null,e);if(zc(t),(e=Ie)?(e=Lh(e,sn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ba!==null?{id:Cn,overflow:An}:null,retryLane:536870912,hydrationErrors:null},a=im(e),a.return=t,t.child=a,St=t,Ie=null)):e=null,e===null)throw Sa(t);return t.lanes=536870912,null}return Si(t,l)}var c=e.memoizedState;if(c!==null){var g=c.dehydrated;if(zc(t),s)if(t.flags&256)t.flags&=-257,t=Np(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ut||Jl(e,t,a,!1),s=(a&e.childLanes)!==0,ut||s){if(l=Ke,l!==null&&(g=kt(l,a),g!==0&&g!==c.retryLane))throw c.retryLane=g,sl(e,g),qt(l,e,g),tu;Di(),t=Np(e,t,a)}else e=c.treeContext,Ie=un(g.nextSibling),St=t,je=!0,xa=null,sn=!1,e!==null&&um(t,e),t=Si(t,l),t.flags|=4096;return t}return e=Qn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function wi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function nu(e,t,a,l,s){return dl(t),a=Lc(e,t,a,l,void 0,s),l=Uc(),e!==null&&!ut?(Bc(e,t,s),Fn(e,t,s)):(je&&l&&vc(t),t.flags|=1,Et(e,t,a,s),t.child)}function Tp(e,t,a,l,s,c){return dl(t),t.updateQueue=null,a=Rm(t,l,a,s),Am(e),l=Uc(),e!==null&&!ut?(Bc(e,t,c),Fn(e,t,c)):(je&&l&&vc(t),t.flags|=1,Et(e,t,a,c),t.child)}function Cp(e,t,a,l,s){if(dl(t),t.stateNode===null){var c=Ql,g=a.contextType;typeof g=="object"&&g!==null&&(c=wt(g)),c=new a(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Wc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},Rc(t),g=a.contextType,c.context=typeof g=="object"&&g!==null?wt(g):Ql,c.state=t.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Fc(t,a,g,l),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&Wc.enqueueReplaceState(c,c.state,null),Wr(t,l,c,s),Fr(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var S=t.memoizedProps,R=yl(a,S);c.props=R;var L=c.context,$=a.contextType;g=Ql,typeof $=="object"&&$!==null&&(g=wt($));var Z=a.getDerivedStateFromProps;$=typeof Z=="function"||typeof c.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,$||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(S||L!==g)&&dp(t,c,l,g),Ea=!1;var U=t.memoizedState;c.state=U,Wr(t,l,c,s),Fr(),L=t.memoizedState,S||U!==L||Ea?(typeof Z=="function"&&(Fc(t,a,Z,l),L=t.memoizedState),(R=Ea||fp(t,a,R,l,U,L,g))?($||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=L),c.props=l,c.state=L,c.context=g,l=R):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,_c(e,t),g=t.memoizedProps,$=yl(a,g),c.props=$,Z=t.pendingProps,U=c.context,L=a.contextType,R=Ql,typeof L=="object"&&L!==null&&(R=wt(L)),S=a.getDerivedStateFromProps,(L=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==Z||U!==R)&&dp(t,c,l,R),Ea=!1,U=t.memoizedState,c.state=U,Wr(t,l,c,s),Fr();var H=t.memoizedState;g!==Z||U!==H||Ea||e!==null&&e.dependencies!==null&&ai(e.dependencies)?(typeof S=="function"&&(Fc(t,a,S,l),H=t.memoizedState),($=Ea||fp(t,a,$,l,U,H,R)||e!==null&&e.dependencies!==null&&ai(e.dependencies))?(L||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,H,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,H,R)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=H),c.props=l,c.state=H,c.context=R,l=$):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,wi(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=gl(t,e.child,null,s),t.child=gl(t,null,a,s)):Et(e,t,a,s),t.memoizedState=c.state,e=t.child):e=Fn(e,t,s),e}function Ap(e,t,a,l){return ul(),t.flags|=256,Et(e,t,a,l),t.child}var au={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lu(e){return{baseLanes:e,cachePool:gm()}}function ru(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Jt),e}function Rp(e,t,a){var l=t.pendingProps,s=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),g&&(s=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(s?Ca(t):Aa(),(e=Ie)?(e=Lh(e,sn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ba!==null?{id:Cn,overflow:An}:null,retryLane:536870912,hydrationErrors:null},a=im(e),a.return=t,t.child=a,St=t,Ie=null)):e=null,e===null)throw Sa(t);return Yu(e)?t.lanes=32:t.lanes=536870912,null}var S=l.children;return l=l.fallback,s?(Aa(),s=t.mode,S=Ei({mode:"hidden",children:S},s),l=cl(l,s,a,null),S.return=t,l.return=t,S.sibling=l,t.child=S,l=t.child,l.memoizedState=lu(a),l.childLanes=ru(e,g,a),t.memoizedState=au,lo(null,l)):(Ca(t),ou(t,S))}var R=e.memoizedState;if(R!==null&&(S=R.dehydrated,S!==null)){if(c)t.flags&256?(Ca(t),t.flags&=-257,t=iu(e,t,a)):t.memoizedState!==null?(Aa(),t.child=e.child,t.flags|=128,t=null):(Aa(),S=l.fallback,s=t.mode,l=Ei({mode:"visible",children:l.children},s),S=cl(S,s,a,null),S.flags|=2,l.return=t,S.return=t,l.sibling=S,t.child=l,gl(t,e.child,null,a),l=t.child,l.memoizedState=lu(a),l.childLanes=ru(e,g,a),t.memoizedState=au,t=lo(null,l));else if(Ca(t),Yu(S)){if(g=S.nextSibling&&S.nextSibling.dataset,g)var L=g.dgst;g=L,l=Error(i(419)),l.stack="",l.digest=g,Qr({value:l,source:null,stack:null}),t=iu(e,t,a)}else if(ut||Jl(e,t,a,!1),g=(a&e.childLanes)!==0,ut||g){if(g=Ke,g!==null&&(l=kt(g,a),l!==0&&l!==R.retryLane))throw R.retryLane=l,sl(e,l),qt(g,e,l),tu;Vu(S)||Di(),t=iu(e,t,a)}else Vu(S)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,Ie=un(S.nextSibling),St=t,je=!0,xa=null,sn=!1,e!==null&&um(t,e),t=ou(t,l.children),t.flags|=4096);return t}return s?(Aa(),S=l.fallback,s=t.mode,R=e.child,L=R.sibling,l=Qn(R,{mode:"hidden",children:l.children}),l.subtreeFlags=R.subtreeFlags&65011712,L!==null?S=Qn(L,S):(S=cl(S,s,a,null),S.flags|=2),S.return=t,l.return=t,l.sibling=S,t.child=l,lo(null,l),l=t.child,S=e.child.memoizedState,S===null?S=lu(a):(s=S.cachePool,s!==null?(R=st._currentValue,s=s.parent!==R?{parent:R,pool:R}:s):s=gm(),S={baseLanes:S.baseLanes|a,cachePool:s}),l.memoizedState=S,l.childLanes=ru(e,g,a),t.memoizedState=au,lo(e.child,l)):(Ca(t),a=e.child,e=a.sibling,a=Qn(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=a,t.memoizedState=null,a)}function ou(e,t){return t=Ei({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ei(e,t){return e=Qt(22,e,null,t),e.lanes=0,e}function iu(e,t,a){return gl(t,e.child,null,a),e=ou(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _p(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),wc(e.return,t,a)}function su(e,t,a,l,s,c){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:s,treeForkCount:c}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=a,g.tailMode=s,g.treeForkCount=c)}function Op(e,t,a){var l=t.pendingProps,s=l.revealOrder,c=l.tail;l=l.children;var g=ot.current,S=(g&2)!==0;if(S?(g=g&1|2,t.flags|=128):g&=1,X(ot,g),Et(e,t,l,a),l=je?Xr:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_p(e,a,t);else if(e.tag===19)_p(e,a,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(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&fi(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),su(t,!1,s,a,c,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&fi(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}su(t,!0,a,null,c,l);break;case"together":su(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Fn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Oa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Jl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,a=Qn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Qn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function cu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ai(e)))}function g1(e,t,a){switch(t.tag){case 3:le(t,t.stateNode.containerInfo),wa(t,st,e.memoizedState.cache),ul();break;case 27:case 5:ne(t);break;case 4:le(t,t.stateNode.containerInfo);break;case 10:wa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,zc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ca(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Rp(e,t,a):(Ca(t),e=Fn(e,t,a),e!==null?e.sibling:null);Ca(t);break;case 19:var s=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Jl(e,t,a,!1),l=(a&t.childLanes)!==0),s){if(l)return Op(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),X(ot,ot.current),l)break;return null;case 22:return t.lanes=0,wp(e,t,a,t.pendingProps);case 24:wa(t,st,e.memoizedState.cache)}return Fn(e,t,a)}function Mp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ut=!0;else{if(!cu(e,a)&&(t.flags&128)===0)return ut=!1,g1(e,t,a);ut=(e.flags&131072)!==0}else ut=!1,je&&(t.flags&1048576)!==0&&cm(t,Xr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=pl(t.elementType),t.type=e,typeof e=="function")pc(e)?(l=yl(e,l),t.tag=1,t=Cp(null,t,e,l,a)):(t.tag=0,t=nu(null,t,e,l,a));else{if(e!=null){var s=e.$$typeof;if(s===B){t.tag=11,t=bp(null,t,e,l,a);break e}else if(s===q){t.tag=14,t=xp(null,t,e,l,a);break e}}throw t=be(e)||e,Error(i(306,t,""))}}return t;case 0:return nu(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,s=yl(l,t.pendingProps),Cp(e,t,l,s,a);case 3:e:{if(le(t,t.stateNode.containerInfo),e===null)throw Error(i(387));l=t.pendingProps;var c=t.memoizedState;s=c.element,_c(e,t),Wr(t,l,null,a);var g=t.memoizedState;if(l=g.cache,wa(t,st,l),l!==c.cache&&Ec(t,[st],a,!0),Fr(),l=g.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Ap(e,t,l,a);break e}else if(l!==s){s=ln(Error(i(424)),t),Qr(s),t=Ap(e,t,l,a);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(Ie=un(e.firstChild),St=t,je=!0,xa=null,sn=!0,a=wm(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ul(),l===s){t=Fn(e,t,a);break e}Et(e,t,l,a)}t=t.child}return t;case 26:return wi(e,t),e===null?(a=qh(t.type,null,t.pendingProps,null))?t.memoizedState=a:je||(a=t.type,e=t.pendingProps,l=Hi(ae.current).createElement(a),l[xt]=t,l[Lt]=e,Nt(l,a,e),gt(l),t.stateNode=l):t.memoizedState=qh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ne(t),e===null&&je&&(l=t.stateNode=Hh(t.type,t.pendingProps,ae.current),St=t,sn=!0,s=Ie,ka(t.type)?(qu=s,Ie=un(l.firstChild)):Ie=s),Et(e,t,t.pendingProps.children,a),wi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((s=l=Ie)&&(l=Q1(l,t.type,t.pendingProps,sn),l!==null?(t.stateNode=l,St=t,Ie=un(l.firstChild),sn=!1,s=!0):s=!1),s||Sa(t)),ne(t),s=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,l=c.children,Uu(s,c)?l=null:g!==null&&Uu(s,g)&&(t.flags|=32),t.memoizedState!==null&&(s=Lc(e,t,i1,null,null,a),xo._currentValue=s),wi(e,t),Et(e,t,l,a),t.child;case 6:return e===null&&je&&((e=a=Ie)&&(a=Z1(a,t.pendingProps,sn),a!==null?(t.stateNode=a,St=t,Ie=null,e=!0):e=!1),e||Sa(t)),null;case 13:return Rp(e,t,a);case 4:return le(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=gl(t,null,l,a):Et(e,t,l,a),t.child;case 11:return bp(e,t,t.type,t.pendingProps,a);case 7:return Et(e,t,t.pendingProps,a),t.child;case 8:return Et(e,t,t.pendingProps.children,a),t.child;case 12:return Et(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,wa(t,t.type,l.value),Et(e,t,l.children,a),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,dl(t),s=wt(s),l=l(s),t.flags|=1,Et(e,t,l,a),t.child;case 14:return xp(e,t,t.type,t.pendingProps,a);case 15:return Sp(e,t,t.type,t.pendingProps,a);case 19:return Op(e,t,a);case 31:return h1(e,t,a);case 22:return wp(e,t,a,t.pendingProps);case 24:return dl(t),l=wt(st),e===null?(s=Cc(),s===null&&(s=Ke,c=Nc(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=a),s=c),t.memoizedState={parent:l,cache:s},Rc(t),wa(t,st,s)):((e.lanes&a)!==0&&(_c(e,t),Wr(t,null,null,a),Fr()),s=e.memoizedState,c=t.memoizedState,s.parent!==l?(s={parent:l,cache:l},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),wa(t,st,l)):(l=c.cache,wa(t,st,l),l!==s.cache&&Ec(t,[st],a,!0))),Et(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Wn(e){e.flags|=4}function uu(e,t,a,l,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(lh())e.flags|=8192;else throw hl=ii,Ac}else e.flags&=-16777217}function Dp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Zh(t))if(lh())e.flags|=8192;else throw hl=ii,Ac}function Ni(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ct():536870912,e.lanes|=t,sr|=t)}function ro(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function v1(e,t,a){var l=t.pendingProps;switch(yc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Fe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Pn(st),ie(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Pl(t)?Wn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xc())),Fe(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(Wn(t),c!==null?(Fe(t),Dp(t,c)):(Fe(t),uu(t,s,null,l,a))):c?c!==e.memoizedState?(Wn(t),Fe(t),Dp(t,c)):(Fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Wn(t),Fe(t),uu(t,s,e,l,a)),null;case 27:if(pe(t),a=ae.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Wn(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Fe(t),null}e=F.current,Pl(t)?fm(t):(e=Hh(s,l,a),t.stateNode=e,Wn(t))}return Fe(t),null;case 5:if(pe(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Wn(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Fe(t),null}if(c=F.current,Pl(t))fm(t);else{var g=Hi(ae.current);switch(c){case 1:c=g.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=g.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=g.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?g.createElement(s,{is:l.is}):g.createElement(s)}}c[xt]=t,c[Lt]=l;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=c;e:switch(Nt(c,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Wn(t)}}return Fe(t),uu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Wn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(i(166));if(e=ae.current,Pl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,s=St,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[xt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Rh(e.nodeValue,a)),e||Sa(t,!0)}else e=Hi(e).createTextNode(l),e[xt]=t,t.stateNode=e}return Fe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Pl(t),a!==null){if(e===null){if(!l)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[xt]=t}else ul(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),e=!1}else a=xc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Kt(t),t):(Kt(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Fe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Pl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(i(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(317));s[xt]=t}else ul(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),s=!1}else s=xc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Kt(t),t):(Kt(t),null)}return Kt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==s&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ni(t,t.updateQueue),Fe(t),null);case 4:return ie(),e===null&&Du(t.stateNode.containerInfo),Fe(t),null;case 10:return Pn(t.type),Fe(t),null;case 19:if(G(ot),l=t.memoizedState,l===null)return Fe(t),null;if(s=(t.flags&128)!==0,c=l.rendering,c===null)if(s)ro(l,!1);else{if(rt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=fi(e),c!==null){for(t.flags|=128,ro(l,!1),e=c.updateQueue,t.updateQueue=e,Ni(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)om(a,e),a=a.sibling;return X(ot,ot.current&1|2),je&&Zn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ot()>_i&&(t.flags|=128,s=!0,ro(l,!1),t.lanes=4194304)}else{if(!s)if(e=fi(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Ni(t,e),ro(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!je)return Fe(t),null}else 2*Ot()-l.renderingStartTime>_i&&a!==536870912&&(t.flags|=128,s=!0,ro(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ot(),e.sibling=null,a=ot.current,X(ot,s?a&1|2:a&1),je&&Zn(t,l.treeForkCount),e):(Fe(t),null);case 22:case 23:return Kt(t),jc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),a=t.updateQueue,a!==null&&Ni(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&G(ml),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pn(st),Fe(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function y1(e,t){switch(yc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pn(st),ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pe(t),null;case 31:if(t.memoizedState!==null){if(Kt(t),t.alternate===null)throw Error(i(340));ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(ot),null;case 4:return ie(),null;case 10:return Pn(t.type),null;case 22:case 23:return Kt(t),jc(),e!==null&&G(ml),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pn(st),null;case 25:return null;default:return null}}function jp(e,t){switch(yc(t),t.tag){case 3:Pn(st),ie();break;case 26:case 27:case 5:pe(t);break;case 4:ie();break;case 31:t.memoizedState!==null&&Kt(t);break;case 13:Kt(t);break;case 19:G(ot);break;case 10:Pn(t.type);break;case 22:case 23:Kt(t),jc(),e!==null&&G(ml);break;case 24:Pn(st)}}function oo(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var s=l.next;a=s;do{if((a.tag&e)===e){l=void 0;var c=a.create,g=a.inst;l=c(),g.destroy=l}a=a.next}while(a!==s)}}catch(S){$e(t,t.return,S)}}function Ra(e,t,a){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var c=s.next;l=c;do{if((l.tag&e)===e){var g=l.inst,S=g.destroy;if(S!==void 0){g.destroy=void 0,s=t;var R=a,L=S;try{L()}catch($){$e(s,R,$)}}}l=l.next}while(l!==c)}}catch($){$e(t,t.return,$)}}function zp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Nm(t,a)}catch(l){$e(e,e.return,l)}}}function kp(e,t,a){a.props=yl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){$e(e,t,l)}}function io(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(s){$e(e,t,s)}}function Rn(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(s){$e(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){$e(e,t,s)}else a.current=null}function Lp(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(s){$e(e,e.return,s)}}function fu(e,t,a){try{var l=e.stateNode;V1(l,e.type,a,t),l[Lt]=t}catch(s){$e(e,e.return,s)}}function Up(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ka(e.type)||e.tag===4}function du(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Up(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&&ka(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 mu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=$n));else if(l!==4&&(l===27&&ka(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(mu(e,t,a),e=e.sibling;e!==null;)mu(e,t,a),e=e.sibling}function Ti(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&ka(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ti(e,t,a),e=e.sibling;e!==null;)Ti(e,t,a),e=e.sibling}function Bp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Nt(t,l,a),t[xt]=e,t[Lt]=a}catch(c){$e(e,e.return,c)}}var ea=!1,ft=!1,pu=!1,Hp=typeof WeakSet=="function"?WeakSet:Set,vt=null;function b1(e,t){if(e=e.containerInfo,ku=Qi,e=Id(e),ic(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var s=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var g=0,S=-1,R=-1,L=0,$=0,Z=e,U=null;t:for(;;){for(var H;Z!==a||s!==0&&Z.nodeType!==3||(S=g+s),Z!==c||l!==0&&Z.nodeType!==3||(R=g+l),Z.nodeType===3&&(g+=Z.nodeValue.length),(H=Z.firstChild)!==null;)U=Z,Z=H;for(;;){if(Z===e)break t;if(U===a&&++L===s&&(S=g),U===c&&++$===l&&(R=g),(H=Z.nextSibling)!==null)break;Z=U,U=Z.parentNode}Z=H}a=S===-1||R===-1?null:{start:S,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(Lu={focusedElem:e,selectionRange:a},Qi=!1,vt=t;vt!==null;)if(t=vt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,vt=e;else for(;vt!==null;){switch(t=vt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,s=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var se=yl(a.type,s);e=l.getSnapshotBeforeUpdate(se,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(Se){$e(a,a.return,Se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Hu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Hu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,vt=e;break}vt=t.return}}function Vp(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:na(e,a),l&4&&oo(5,a);break;case 1:if(na(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(g){$e(a,a.return,g)}else{var s=yl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){$e(a,a.return,g)}}l&64&&zp(a),l&512&&io(a,a.return);break;case 3:if(na(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Nm(e,t)}catch(g){$e(a,a.return,g)}}break;case 27:t===null&&l&4&&Bp(a);case 26:case 5:na(e,a),t===null&&l&4&&Lp(a),l&512&&io(a,a.return);break;case 12:na(e,a);break;case 31:na(e,a),l&4&&Gp(e,a);break;case 13:na(e,a),l&4&&$p(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=R1.bind(null,a),K1(e,a))));break;case 22:if(l=a.memoizedState!==null||ea,!l){t=t!==null&&t.memoizedState!==null||ft,s=ea;var c=ft;ea=l,(ft=t)&&!c?aa(e,a,(a.subtreeFlags&8772)!==0):na(e,a),ea=s,ft=c}break;case 30:break;default:na(e,a)}}function Yp(e){var t=e.alternate;t!==null&&(e.alternate=null,Yp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$s(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 et=null,Bt=!1;function ta(e,t,a){for(a=a.child;a!==null;)qp(e,t,a),a=a.sibling}function qp(e,t,a){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(tl,a)}catch{}switch(a.tag){case 26:ft||Rn(a,t),ta(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ft||Rn(a,t);var l=et,s=Bt;ka(a.type)&&(et=a.stateNode,Bt=!1),ta(e,t,a),vo(a.stateNode),et=l,Bt=s;break;case 5:ft||Rn(a,t);case 6:if(l=et,s=Bt,et=null,ta(e,t,a),et=l,Bt=s,et!==null)if(Bt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(a.stateNode)}catch(c){$e(a,t,c)}else try{et.removeChild(a.stateNode)}catch(c){$e(a,t,c)}break;case 18:et!==null&&(Bt?(e=et,zh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),gr(e)):zh(et,a.stateNode));break;case 4:l=et,s=Bt,et=a.stateNode.containerInfo,Bt=!0,ta(e,t,a),et=l,Bt=s;break;case 0:case 11:case 14:case 15:Ra(2,a,t),ft||Ra(4,a,t),ta(e,t,a);break;case 1:ft||(Rn(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&kp(a,t,l)),ta(e,t,a);break;case 21:ta(e,t,a);break;case 22:ft=(l=ft)||a.memoizedState!==null,ta(e,t,a),ft=l;break;default:ta(e,t,a)}}function Gp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{gr(e)}catch(a){$e(t,t.return,a)}}}function $p(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{gr(e)}catch(a){$e(t,t.return,a)}}function x1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Hp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Hp),t;default:throw Error(i(435,e.tag))}}function Ci(e,t){var a=x1(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var s=_1.bind(null,e,l);l.then(s,s)}})}function Ht(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var s=a[l],c=e,g=t,S=g;e:for(;S!==null;){switch(S.tag){case 27:if(ka(S.type)){et=S.stateNode,Bt=!1;break e}break;case 5:et=S.stateNode,Bt=!1;break e;case 3:case 4:et=S.stateNode.containerInfo,Bt=!0;break e}S=S.return}if(et===null)throw Error(i(160));qp(c,g,s),et=null,Bt=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Xp(t,e),t=t.sibling}var vn=null;function Xp(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ht(t,e),Vt(e),l&4&&(Ra(3,e,e.return),oo(3,e),Ra(5,e,e.return));break;case 1:Ht(t,e),Vt(e),l&512&&(ft||a===null||Rn(a,a.return)),l&64&&ea&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var s=vn;if(Ht(t,e),Vt(e),l&512&&(ft||a===null||Rn(a,a.return)),l&4){var c=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){case"title":c=s.getElementsByTagName("title")[0],(!c||c[zr]||c[xt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(l),s.head.insertBefore(c,s.querySelector("head > title"))),Nt(c,l,a),c[xt]=e,gt(c),l=c;break e;case"link":var g=Xh("link","href",s).get(l+(a.href||""));if(g){for(var S=0;S<g.length;S++)if(c=g[S],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(S,1);break t}}c=s.createElement(l),Nt(c,l,a),s.head.appendChild(c);break;case"meta":if(g=Xh("meta","content",s).get(l+(a.content||""))){for(S=0;S<g.length;S++)if(c=g[S],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(S,1);break t}}c=s.createElement(l),Nt(c,l,a),s.head.appendChild(c);break;default:throw Error(i(468,l))}c[xt]=e,gt(c),l=c}e.stateNode=l}else Qh(s,e.type,e.stateNode);else e.stateNode=$h(s,l,e.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?Qh(s,e.type,e.stateNode):$h(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&fu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Ht(t,e),Vt(e),l&512&&(ft||a===null||Rn(a,a.return)),a!==null&&l&4&&fu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Ht(t,e),Vt(e),l&512&&(ft||a===null||Rn(a,a.return)),e.flags&32){s=e.stateNode;try{Hl(s,"")}catch(se){$e(e,e.return,se)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,fu(e,s,a!==null?a.memoizedProps:s)),l&1024&&(pu=!0);break;case 6:if(Ht(t,e),Vt(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(se){$e(e,e.return,se)}}break;case 3:if(qi=null,s=vn,vn=Vi(t.containerInfo),Ht(t,e),vn=s,Vt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{gr(t.containerInfo)}catch(se){$e(e,e.return,se)}pu&&(pu=!1,Qp(e));break;case 4:l=vn,vn=Vi(e.stateNode.containerInfo),Ht(t,e),Vt(e),vn=l;break;case 12:Ht(t,e),Vt(e);break;case 31:Ht(t,e),Vt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ci(e,l)));break;case 13:Ht(t,e),Vt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ri=Ot()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ci(e,l)));break;case 22:s=e.memoizedState!==null;var R=a!==null&&a.memoizedState!==null,L=ea,$=ft;if(ea=L||s,ft=$||R,Ht(t,e),ft=$,ea=L,Vt(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||R||ea||ft||bl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){R=a=t;try{if(c=R.stateNode,s)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{S=R.stateNode;var Z=R.memoizedProps.style,U=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;S.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(se){$e(R,R.return,se)}}}else if(t.tag===6){if(a===null){R=t;try{R.stateNode.nodeValue=s?"":R.memoizedProps}catch(se){$e(R,R.return,se)}}}else if(t.tag===18){if(a===null){R=t;try{var H=R.stateNode;s?kh(H,!0):kh(R.stateNode,!1)}catch(se){$e(R,R.return,se)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Ci(e,a))));break;case 19:Ht(t,e),Vt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ci(e,l)));break;case 30:break;case 21:break;default:Ht(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Up(l)){a=l;break}l=l.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var s=a.stateNode,c=du(e);Ti(e,c,s);break;case 5:var g=a.stateNode;a.flags&32&&(Hl(g,""),a.flags&=-33);var S=du(e);Ti(e,S,g);break;case 3:case 4:var R=a.stateNode.containerInfo,L=du(e);mu(e,L,R);break;default:throw Error(i(161))}}catch($){$e(e,e.return,$)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Qp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Qp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function na(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Vp(e,t.alternate,t),t=t.sibling}function bl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ra(4,t,t.return),bl(t);break;case 1:Rn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&kp(t,t.return,a),bl(t);break;case 27:vo(t.stateNode);case 26:case 5:Rn(t,t.return),bl(t);break;case 22:t.memoizedState===null&&bl(t);break;case 30:bl(t);break;default:bl(t)}e=e.sibling}}function aa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,s=e,c=t,g=c.flags;switch(c.tag){case 0:case 11:case 15:aa(s,c,a),oo(4,c);break;case 1:if(aa(s,c,a),l=c,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(L){$e(l,l.return,L)}if(l=c,s=l.updateQueue,s!==null){var S=l.stateNode;try{var R=s.shared.hiddenCallbacks;if(R!==null)for(s.shared.hiddenCallbacks=null,s=0;s<R.length;s++)Em(R[s],S)}catch(L){$e(l,l.return,L)}}a&&g&64&&zp(c),io(c,c.return);break;case 27:Bp(c);case 26:case 5:aa(s,c,a),a&&l===null&&g&4&&Lp(c),io(c,c.return);break;case 12:aa(s,c,a);break;case 31:aa(s,c,a),a&&g&4&&Gp(s,c);break;case 13:aa(s,c,a),a&&g&4&&$p(s,c);break;case 22:c.memoizedState===null&&aa(s,c,a),io(c,c.return);break;case 30:break;default:aa(s,c,a)}t=t.sibling}}function hu(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Zr(a))}function gu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zr(e))}function yn(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Zp(e,t,a,l),t=t.sibling}function Zp(e,t,a,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:yn(e,t,a,l),s&2048&&oo(9,t);break;case 1:yn(e,t,a,l);break;case 3:yn(e,t,a,l),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zr(e)));break;case 12:if(s&2048){yn(e,t,a,l),e=t.stateNode;try{var c=t.memoizedProps,g=c.id,S=c.onPostCommit;typeof S=="function"&&S(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){$e(t,t.return,R)}}else yn(e,t,a,l);break;case 31:yn(e,t,a,l);break;case 13:yn(e,t,a,l);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?yn(e,t,a,l):so(e,t):c._visibility&2?yn(e,t,a,l):(c._visibility|=2,rr(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&hu(g,t);break;case 24:yn(e,t,a,l),s&2048&&gu(t.alternate,t);break;default:yn(e,t,a,l)}}function rr(e,t,a,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,g=t,S=a,R=l,L=g.flags;switch(g.tag){case 0:case 11:case 15:rr(c,g,S,R,s),oo(8,g);break;case 23:break;case 22:var $=g.stateNode;g.memoizedState!==null?$._visibility&2?rr(c,g,S,R,s):so(c,g):($._visibility|=2,rr(c,g,S,R,s)),s&&L&2048&&hu(g.alternate,g);break;case 24:rr(c,g,S,R,s),s&&L&2048&&gu(g.alternate,g);break;default:rr(c,g,S,R,s)}t=t.sibling}}function so(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,s=l.flags;switch(l.tag){case 22:so(a,l),s&2048&&hu(l.alternate,l);break;case 24:so(a,l),s&2048&&gu(l.alternate,l);break;default:so(a,l)}t=t.sibling}}var co=8192;function or(e,t,a){if(e.subtreeFlags&co)for(e=e.child;e!==null;)Kp(e,t,a),e=e.sibling}function Kp(e,t,a){switch(e.tag){case 26:or(e,t,a),e.flags&co&&e.memoizedState!==null&&oS(a,vn,e.memoizedState,e.memoizedProps);break;case 5:or(e,t,a);break;case 3:case 4:var l=vn;vn=Vi(e.stateNode.containerInfo),or(e,t,a),vn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=co,co=16777216,or(e,t,a),co=l):or(e,t,a));break;default:or(e,t,a)}}function Pp(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 uo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];vt=l,Ip(l,e)}Pp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jp(e),e=e.sibling}function Jp(e){switch(e.tag){case 0:case 11:case 15:uo(e),e.flags&2048&&Ra(9,e,e.return);break;case 3:uo(e);break;case 12:uo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ai(e)):uo(e);break;default:uo(e)}}function Ai(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];vt=l,Ip(l,e)}Pp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ra(8,t,t.return),Ai(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ai(t));break;default:Ai(t)}e=e.sibling}}function Ip(e,t){for(;vt!==null;){var a=vt;switch(a.tag){case 0:case 11:case 15:Ra(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Zr(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,vt=l;else e:for(a=e;vt!==null;){l=vt;var s=l.sibling,c=l.return;if(Yp(l),l===a){vt=null;break e}if(s!==null){s.return=c,vt=s;break e}vt=c}}}var S1={getCacheForType:function(e){var t=wt(st),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return wt(st).controller.signal}},w1=typeof WeakMap=="function"?WeakMap:Map,Ye=0,Ke=null,_e=null,Me=0,Ge=0,Pt=null,_a=!1,ir=!1,vu=!1,la=0,rt=0,Oa=0,xl=0,yu=0,Jt=0,sr=0,fo=null,Yt=null,bu=!1,Ri=0,Fp=0,_i=1/0,Oi=null,Ma=null,dt=0,Da=null,cr=null,ra=0,xu=0,Su=null,Wp=null,mo=0,wu=null;function It(){return(Ye&2)!==0&&Me!==0?Me&-Me:O.T!==null?Ru():qs()}function eh(){if(Jt===0)if((Me&536870912)===0||je){var e=Ml;Ml<<=1,(Ml&3932160)===0&&(Ml=262144),Jt=e}else Jt=536870912;return e=Zt.current,e!==null&&(e.flags|=32),Jt}function qt(e,t,a){(e===Ke&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(ur(e,0),ja(e,Me,Jt,!1)),at(e,a),((Ye&2)===0||e!==Ke)&&(e===Ke&&((Ye&2)===0&&(xl|=a),rt===4&&ja(e,Me,Jt,!1)),_n(e))}function th(e,t,a){if((Ye&6)!==0)throw Error(i(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||We(e,t),s=l?T1(e,t):Nu(e,t,!0),c=l;do{if(s===0){ir&&!l&&ja(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!E1(a)){s=Nu(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var S=e;s=fo;var R=S.current.memoizedState.isDehydrated;if(R&&(ur(S,g).flags|=256),g=Nu(S,g,!1),g!==2){if(vu&&!R){S.errorRecoveryDisabledLanes|=c,xl|=c,s=4;break e}c=Yt,Yt=s,c!==null&&(Yt===null?Yt=c:Yt.push.apply(Yt,c))}s=g}if(c=!1,s!==2)continue}}if(s===1){ur(e,0),ja(e,t,0,!0);break}e:{switch(l=e,c=s,c){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:ja(l,t,Jt,!_a);break e;case 2:Yt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(s=Ri+300-Ot(),10<s)){if(ja(l,t,Jt,!_a),Ee(l,0,!0)!==0)break e;ra=t,l.timeoutHandle=Dh(nh.bind(null,l,a,Yt,Oi,bu,t,Jt,xl,sr,_a,c,"Throttled",-0,0),s);break e}nh(l,a,Yt,Oi,bu,t,Jt,xl,sr,_a,c,null,-0,0)}}break}while(!0);_n(e)}function nh(e,t,a,l,s,c,g,S,R,L,$,Z,U,H){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$n},Kp(t,c,Z);var se=(c&62914560)===c?Ri-Ot():(c&4194048)===c?Fp-Ot():0;if(se=iS(Z,se),se!==null){ra=c,e.cancelPendingCommit=se(uh.bind(null,e,t,c,a,l,s,g,S,R,$,Z,null,U,H)),ja(e,c,g,!L);return}}uh(e,t,c,a,l,s,g,S,R)}function E1(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var s=a[l],c=s.getSnapshot;s=s.value;try{if(!Xt(c(),s))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 ja(e,t,a,l){t&=~yu,t&=~xl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var c=31-Tt(s),g=1<<c;l[c]=-1,s&=~g}a!==0&&al(e,a,t)}function Mi(){return(Ye&6)===0?(po(0),!1):!0}function Eu(){if(_e!==null){if(Ge===0)var e=_e.return;else e=_e,Kn=fl=null,Hc(e),er=null,Pr=0,e=_e;for(;e!==null;)jp(e.alternate,e),e=e.return;_e=null}}function ur(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,G1(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ra=0,Eu(),Ke=e,_e=a=Qn(e.current,null),Me=t,Ge=0,Pt=null,_a=!1,ir=We(e,t),vu=!1,sr=Jt=yu=xl=Oa=rt=0,Yt=fo=null,bu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var s=31-Tt(l),c=1<<s;t|=e[s],l&=~c}return la=t,Fo(),a}function ah(e,t){Te=null,O.H=ao,t===Wl||t===oi?(t=bm(),Ge=3):t===Ac?(t=bm(),Ge=4):Ge=t===tu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Pt=t,_e===null&&(rt=1,xi(e,ln(t,e.current)))}function lh(){var e=Zt.current;return e===null?!0:(Me&4194048)===Me?cn===null:(Me&62914560)===Me||(Me&536870912)!==0?e===cn:!1}function rh(){var e=O.H;return O.H=ao,e===null?ao:e}function oh(){var e=O.A;return O.A=S1,e}function Di(){rt=4,_a||(Me&4194048)!==Me&&Zt.current!==null||(ir=!0),(Oa&134217727)===0&&(xl&134217727)===0||Ke===null||ja(Ke,Me,Jt,!1)}function Nu(e,t,a){var l=Ye;Ye|=2;var s=rh(),c=oh();(Ke!==e||Me!==t)&&(Oi=null,ur(e,t)),t=!1;var g=rt;e:do try{if(Ge!==0&&_e!==null){var S=_e,R=Pt;switch(Ge){case 8:Eu(),g=6;break e;case 3:case 2:case 9:case 6:Zt.current===null&&(t=!0);var L=Ge;if(Ge=0,Pt=null,fr(e,S,R,L),a&&ir){g=0;break e}break;default:L=Ge,Ge=0,Pt=null,fr(e,S,R,L)}}N1(),g=rt;break}catch($){ah(e,$)}while(!0);return t&&e.shellSuspendCounter++,Kn=fl=null,Ye=l,O.H=s,O.A=c,_e===null&&(Ke=null,Me=0,Fo()),g}function N1(){for(;_e!==null;)ih(_e)}function T1(e,t){var a=Ye;Ye|=2;var l=rh(),s=oh();Ke!==e||Me!==t?(Oi=null,_i=Ot()+500,ur(e,t)):ir=We(e,t);e:do try{if(Ge!==0&&_e!==null){t=_e;var c=Pt;t:switch(Ge){case 1:Ge=0,Pt=null,fr(e,t,c,1);break;case 2:case 9:if(vm(c)){Ge=0,Pt=null,sh(t);break}t=function(){Ge!==2&&Ge!==9||Ke!==e||(Ge=7),_n(e)},c.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:vm(c)?(Ge=0,Pt=null,sh(t)):(Ge=0,Pt=null,fr(e,t,c,7));break;case 5:var g=null;switch(_e.tag){case 26:g=_e.memoizedState;case 5:case 27:var S=_e;if(g?Zh(g):S.stateNode.complete){Ge=0,Pt=null;var R=S.sibling;if(R!==null)_e=R;else{var L=S.return;L!==null?(_e=L,ji(L)):_e=null}break t}}Ge=0,Pt=null,fr(e,t,c,5);break;case 6:Ge=0,Pt=null,fr(e,t,c,6);break;case 8:Eu(),rt=6;break e;default:throw Error(i(462))}}C1();break}catch($){ah(e,$)}while(!0);return Kn=fl=null,O.H=l,O.A=s,Ye=a,_e!==null?0:(Ke=null,Me=0,Fo(),rt)}function C1(){for(;_e!==null&&!_t();)ih(_e)}function ih(e){var t=Mp(e.alternate,e,la);e.memoizedProps=e.pendingProps,t===null?ji(e):_e=t}function sh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Tp(a,t,t.pendingProps,t.type,void 0,Me);break;case 11:t=Tp(a,t,t.pendingProps,t.type.render,t.ref,Me);break;case 5:Hc(t);default:jp(a,t),t=_e=om(t,la),t=Mp(a,t,la)}e.memoizedProps=e.pendingProps,t===null?ji(e):_e=t}function fr(e,t,a,l){Kn=fl=null,Hc(t),er=null,Pr=0;var s=t.return;try{if(p1(e,s,t,a,Me)){rt=1,xi(e,ln(a,e.current)),_e=null;return}}catch(c){if(s!==null)throw _e=s,c;rt=1,xi(e,ln(a,e.current)),_e=null;return}t.flags&32768?(je||l===1?e=!0:ir||(Me&536870912)!==0?e=!1:(_a=e=!0,(l===2||l===9||l===3||l===6)&&(l=Zt.current,l!==null&&l.tag===13&&(l.flags|=16384))),ch(t,e)):ji(t)}function ji(e){var t=e;do{if((t.flags&32768)!==0){ch(t,_a);return}e=t.return;var a=v1(t.alternate,t,la);if(a!==null){_e=a;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);rt===0&&(rt=5)}function ch(e,t){do{var a=y1(e.alternate,e);if(a!==null){a.flags&=32767,_e=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){_e=e;return}_e=e=a}while(e!==null);rt=6,_e=null}function uh(e,t,a,l,s,c,g,S,R){e.cancelPendingCommit=null;do zi();while(dt!==0);if((Ye&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(c=t.lanes|t.childLanes,c|=dc,jt(e,a,c,g,S,R),e===Ke&&(_e=Ke=null,Me=0),cr=t,Da=e,ra=a,xu=c,Su=s,Wp=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,O1(el,function(){return hh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null,s=Y.p,Y.p=2,g=Ye,Ye|=4;try{b1(e,t,a)}finally{Ye=g,Y.p=s,O.T=l}}dt=1,fh(),dh(),mh()}}function fh(){if(dt===1){dt=0;var e=Da,t=cr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var l=Y.p;Y.p=2;var s=Ye;Ye|=4;try{Xp(t,e);var c=Lu,g=Id(e.containerInfo),S=c.focusedElem,R=c.selectionRange;if(g!==S&&S&&S.ownerDocument&&Jd(S.ownerDocument.documentElement,S)){if(R!==null&&ic(S)){var L=R.start,$=R.end;if($===void 0&&($=L),"selectionStart"in S)S.selectionStart=L,S.selectionEnd=Math.min($,S.value.length);else{var Z=S.ownerDocument||document,U=Z&&Z.defaultView||window;if(U.getSelection){var H=U.getSelection(),se=S.textContent.length,Se=Math.min(R.start,se),Ze=R.end===void 0?Se:Math.min(R.end,se);!H.extend&&Se>Ze&&(g=Ze,Ze=Se,Se=g);var z=Pd(S,Se),M=Pd(S,Ze);if(z&&M&&(H.rangeCount!==1||H.anchorNode!==z.node||H.anchorOffset!==z.offset||H.focusNode!==M.node||H.focusOffset!==M.offset)){var k=Z.createRange();k.setStart(z.node,z.offset),H.removeAllRanges(),Se>Ze?(H.addRange(k),H.extend(M.node,M.offset)):(k.setEnd(M.node,M.offset),H.addRange(k))}}}}for(Z=[],H=S;H=H.parentNode;)H.nodeType===1&&Z.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Z.length;S++){var Q=Z[S];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}Qi=!!ku,Lu=ku=null}finally{Ye=s,Y.p=l,O.T=a}}e.current=t,dt=2}}function dh(){if(dt===2){dt=0;var e=Da,t=cr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var l=Y.p;Y.p=2;var s=Ye;Ye|=4;try{Vp(e,t.alternate,t)}finally{Ye=s,Y.p=l,O.T=a}}dt=3}}function mh(){if(dt===4||dt===3){dt=0,pa();var e=Da,t=cr,a=ra,l=Wp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?dt=5:(dt=0,cr=Da=null,ph(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Ma=null),hn(a),t=t.stateNode,Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(tl,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=O.T,s=Y.p,Y.p=2,O.T=null;try{for(var c=e.onRecoverableError,g=0;g<l.length;g++){var S=l[g];c(S.value,{componentStack:S.stack})}}finally{O.T=t,Y.p=s}}(ra&3)!==0&&zi(),_n(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===wu?mo++:(mo=0,wu=e):mo=0,po(0)}}function ph(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Zr(t)))}function zi(){return fh(),dh(),mh(),hh()}function hh(){if(dt!==5)return!1;var e=Da,t=xu;xu=0;var a=hn(ra),l=O.T,s=Y.p;try{Y.p=32>a?32:a,O.T=null,a=Su,Su=null;var c=Da,g=ra;if(dt=0,cr=Da=null,ra=0,(Ye&6)!==0)throw Error(i(331));var S=Ye;if(Ye|=4,Jp(c.current),Zp(c,c.current,g,a),Ye=S,po(0,!1),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(tl,c)}catch{}return!0}finally{Y.p=s,O.T=l,ph(e,t)}}function gh(e,t,a){t=ln(a,t),t=eu(e.stateNode,t,2),e=Ta(e,t,2),e!==null&&(at(e,2),_n(e))}function $e(e,t,a){if(e.tag===3)gh(e,e,a);else for(;t!==null;){if(t.tag===3){gh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ma===null||!Ma.has(l))){e=ln(a,e),a=vp(2),l=Ta(t,a,2),l!==null&&(yp(a,l,t,e),at(l,2),_n(l));break}}t=t.return}}function Tu(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new w1;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(a)||(vu=!0,s.add(a),e=A1.bind(null,e,t,a),t.then(e,e))}function A1(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ke===e&&(Me&a)===a&&(rt===4||rt===3&&(Me&62914560)===Me&&300>Ot()-Ri?(Ye&2)===0&&ur(e,0):yu|=a,sr===Me&&(sr=0)),_n(e)}function vh(e,t){t===0&&(t=Ct()),e=sl(e,t),e!==null&&(at(e,t),_n(e))}function R1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),vh(e,a)}function _1(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(t),vh(e,a)}function O1(e,t){return mn(e,t)}var ki=null,dr=null,Cu=!1,Li=!1,Au=!1,za=0;function _n(e){e!==dr&&e.next===null&&(dr===null?ki=dr=e:dr=dr.next=e),Li=!0,Cu||(Cu=!0,D1())}function po(e,t){if(!Au&&Li){Au=!0;do for(var a=!1,l=ki;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var c=0;else{var g=l.suspendedLanes,S=l.pingedLanes;c=(1<<31-Tt(42|e)+1)-1,c&=s&~(g&~S),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Sh(l,c))}else c=Me,c=Ee(l,l===Ke?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||We(l,c)||(a=!0,Sh(l,c));l=l.next}while(a);Au=!1}}function M1(){yh()}function yh(){Li=Cu=!1;var e=0;za!==0&&q1()&&(e=za);for(var t=Ot(),a=null,l=ki;l!==null;){var s=l.next,c=bh(l,t);c===0?(l.next=null,a===null?ki=s:a.next=s,s===null&&(dr=a)):(a=l,(e!==0||(c&3)!==0)&&(Li=!0)),l=s}dt!==0&&dt!==5||po(e),za!==0&&(za=0)}function bh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-Tt(c),S=1<<g,R=s[g];R===-1?((S&a)===0||(S&l)!==0)&&(s[g]=ht(S,t)):R<=t&&(e.expiredLanes|=S),c&=~S}if(t=Ke,a=Me,a=Ee(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Mr(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||We(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Mr(l),hn(a)){case 2:case 8:a=Ho;break;case 32:a=el;break;case 268435456:a=qn;break;default:a=el}return l=xh.bind(null,e),a=mn(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Mr(l),e.callbackPriority=2,e.callbackNode=null,2}function xh(e,t){if(dt!==0&&dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(zi()&&e.callbackNode!==a)return null;var l=Me;return l=Ee(e,e===Ke?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(th(e,l,t),bh(e,Ot()),e.callbackNode!=null&&e.callbackNode===a?xh.bind(null,e):null)}function Sh(e,t){if(zi())return null;th(e,t,!0)}function D1(){$1(function(){(Ye&6)!==0?mn(Wa,M1):yh()})}function Ru(){if(za===0){var e=Il;e===0&&(e=Ol,Ol<<=1,(Ol&261888)===0&&(Ol=256)),za=e}return za}function wh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$o(""+e)}function Eh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function j1(e,t,a,l,s){if(t==="submit"&&a&&a.stateNode===s){var c=wh((s[Lt]||null).action),g=l.submitter;g&&(t=(t=g[Lt]||null)?wh(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var S=new Ko("action","action",null,l,s);e.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(za!==0){var R=g?Eh(s,g):new FormData(s);Kc(a,{pending:!0,data:R,method:s.method,action:c},null,R)}}else typeof c=="function"&&(S.preventDefault(),R=g?Eh(s,g):new FormData(s),Kc(a,{pending:!0,data:R,method:s.method,action:c},c,R))},currentTarget:s}]})}}for(var _u=0;_u<fc.length;_u++){var Ou=fc[_u],z1=Ou.toLowerCase(),k1=Ou[0].toUpperCase()+Ou.slice(1);gn(z1,"on"+k1)}gn(em,"onAnimationEnd"),gn(tm,"onAnimationIteration"),gn(nm,"onAnimationStart"),gn("dblclick","onDoubleClick"),gn("focusin","onFocus"),gn("focusout","onBlur"),gn(Ix,"onTransitionRun"),gn(Fx,"onTransitionStart"),gn(Wx,"onTransitionCancel"),gn(am,"onTransitionEnd"),Ul("onMouseEnter",["mouseout","mouseover"]),Ul("onMouseLeave",["mouseout","mouseover"]),Ul("onPointerEnter",["pointerout","pointerover"]),Ul("onPointerLeave",["pointerout","pointerover"]),ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ho="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(" "),L1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ho));function Nh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],s=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var g=l.length-1;0<=g;g--){var S=l[g],R=S.instance,L=S.currentTarget;if(S=S.listener,R!==c&&s.isPropagationStopped())break e;c=S,s.currentTarget=L;try{c(s)}catch($){Io($)}s.currentTarget=null,c=R}else for(g=0;g<l.length;g++){if(S=l[g],R=S.instance,L=S.currentTarget,S=S.listener,R!==c&&s.isPropagationStopped())break e;c=S,s.currentTarget=L;try{c(s)}catch($){Io($)}s.currentTarget=null,c=R}}}}function Oe(e,t){var a=t[Gs];a===void 0&&(a=t[Gs]=new Set);var l=e+"__bubble";a.has(l)||(Th(t,e,2,!1),a.add(l))}function Mu(e,t,a){var l=0;t&&(l|=4),Th(a,e,l,t)}var Ui="_reactListening"+Math.random().toString(36).slice(2);function Du(e){if(!e[Ui]){e[Ui]=!0,yd.forEach(function(a){a!=="selectionchange"&&(L1.has(a)||Mu(a,!1,e),Mu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ui]||(t[Ui]=!0,Mu("selectionchange",!1,t))}}function Th(e,t,a,l){switch(eg(t)){case 2:var s=uS;break;case 8:s=fS;break;default:s=Zu}a=s.bind(null,t,a,e),s=void 0,!Fs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function ju(e,t,a,l,s){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var S=l.stateNode.containerInfo;if(S===s)break;if(g===4)for(g=l.return;g!==null;){var R=g.tag;if((R===3||R===4)&&g.stateNode.containerInfo===s)return;g=g.return}for(;S!==null;){if(g=zl(S),g===null)return;if(R=g.tag,R===5||R===6||R===26||R===27){l=c=g;continue e}S=S.parentNode}}l=l.return}Od(function(){var L=c,$=Js(a),Z=[];e:{var U=lm.get(e);if(U!==void 0){var H=Ko,se=e;switch(e){case"keypress":if(Qo(a)===0)break e;case"keydown":case"keyup":H=_x;break;case"focusin":se="focus",H=nc;break;case"focusout":se="blur",H=nc;break;case"beforeblur":case"afterblur":H=nc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=jd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=vx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Dx;break;case em:case tm:case nm:H=xx;break;case am:H=zx;break;case"scroll":case"scrollend":H=hx;break;case"wheel":H=Lx;break;case"copy":case"cut":case"paste":H=wx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=kd;break;case"toggle":case"beforetoggle":H=Bx}var Se=(t&4)!==0,Ze=!Se&&(e==="scroll"||e==="scrollend"),z=Se?U!==null?U+"Capture":null:U;Se=[];for(var M=L,k;M!==null;){var Q=M;if(k=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||k===null||z===null||(Q=Lr(M,z),Q!=null&&Se.push(go(M,Q,k))),Ze)break;M=M.return}0<Se.length&&(U=new H(U,se,null,a,$),Z.push({event:U,listeners:Se}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",U&&a!==Ps&&(se=a.relatedTarget||a.fromElement)&&(zl(se)||se[jl]))break e;if((H||U)&&(U=$.window===$?$:(U=$.ownerDocument)?U.defaultView||U.parentWindow:window,H?(se=a.relatedTarget||a.toElement,H=L,se=se?zl(se):null,se!==null&&(Ze=f(se),Se=se.tag,se!==Ze||Se!==5&&Se!==27&&Se!==6)&&(se=null)):(H=null,se=L),H!==se)){if(Se=jd,Q="onMouseLeave",z="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(Se=kd,Q="onPointerLeave",z="onPointerEnter",M="pointer"),Ze=H==null?U:kr(H),k=se==null?U:kr(se),U=new Se(Q,M+"leave",H,a,$),U.target=Ze,U.relatedTarget=k,Q=null,zl($)===L&&(Se=new Se(z,M+"enter",se,a,$),Se.target=k,Se.relatedTarget=Ze,Q=Se),Ze=Q,H&&se)t:{for(Se=U1,z=H,M=se,k=0,Q=z;Q;Q=Se(Q))k++;Q=0;for(var xe=M;xe;xe=Se(xe))Q++;for(;0<k-Q;)z=Se(z),k--;for(;0<Q-k;)M=Se(M),Q--;for(;k--;){if(z===M||M!==null&&z===M.alternate){Se=z;break t}z=Se(z),M=Se(M)}Se=null}else Se=null;H!==null&&Ch(Z,U,H,Se,!1),se!==null&&Ze!==null&&Ch(Z,Ze,se,Se,!0)}}e:{if(U=L?kr(L):window,H=U.nodeName&&U.nodeName.toLowerCase(),H==="select"||H==="input"&&U.type==="file")var Ue=Gd;else if(Yd(U))if($d)Ue=Kx;else{Ue=Qx;var me=Xx}else H=U.nodeName,!H||H.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?L&&Ks(L.elementType)&&(Ue=Gd):Ue=Zx;if(Ue&&(Ue=Ue(e,L))){qd(Z,Ue,a,$);break e}me&&me(e,U,L),e==="focusout"&&L&&U.type==="number"&&L.memoizedProps.value!=null&&Zs(U,"number",U.value)}switch(me=L?kr(L):window,e){case"focusin":(Yd(me)||me.contentEditable==="true")&&(Gl=me,sc=L,$r=null);break;case"focusout":$r=sc=Gl=null;break;case"mousedown":cc=!0;break;case"contextmenu":case"mouseup":case"dragend":cc=!1,Fd(Z,a,$);break;case"selectionchange":if(Jx)break;case"keydown":case"keyup":Fd(Z,a,$)}var Ce;if(lc)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else ql?Hd(e,a)&&(De="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(De="onCompositionStart");De&&(Ld&&a.locale!=="ko"&&(ql||De!=="onCompositionStart"?De==="onCompositionEnd"&&ql&&(Ce=Md()):(ya=$,Ws="value"in ya?ya.value:ya.textContent,ql=!0)),me=Bi(L,De),0<me.length&&(De=new zd(De,e,null,a,$),Z.push({event:De,listeners:me}),Ce?De.data=Ce:(Ce=Vd(a),Ce!==null&&(De.data=Ce)))),(Ce=Vx?Yx(e,a):qx(e,a))&&(De=Bi(L,"onBeforeInput"),0<De.length&&(me=new zd("onBeforeInput","beforeinput",null,a,$),Z.push({event:me,listeners:De}),me.data=Ce)),j1(Z,e,L,a,$)}Nh(Z,t)})}function go(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Bi(e,t){for(var a=t+"Capture",l=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=Lr(e,a),s!=null&&l.unshift(go(e,s,c)),s=Lr(e,t),s!=null&&l.push(go(e,s,c))),e.tag===3)return l;e=e.return}return[]}function U1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ch(e,t,a,l,s){for(var c=t._reactName,g=[];a!==null&&a!==l;){var S=a,R=S.alternate,L=S.stateNode;if(S=S.tag,R!==null&&R===l)break;S!==5&&S!==26&&S!==27||L===null||(R=L,s?(L=Lr(a,c),L!=null&&g.unshift(go(a,L,R))):s||(L=Lr(a,c),L!=null&&g.push(go(a,L,R)))),a=a.return}g.length!==0&&e.push({event:t,listeners:g})}var B1=/\r\n?/g,H1=/\u0000|\uFFFD/g;function Ah(e){return(typeof e=="string"?e:""+e).replace(B1,`
50
- `).replace(H1,"")}function Rh(e,t){return t=Ah(t),Ah(e)===t}function Qe(e,t,a,l,s,c){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Hl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Hl(e,""+l);break;case"className":qo(e,"class",l);break;case"tabIndex":qo(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":qo(e,a,l);break;case"style":Rd(e,l,c);break;case"data":if(t!=="object"){qo(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=$o(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"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 c=="function"&&(a==="formAction"?(t!=="input"&&Qe(e,t,"name",s.name,s,null),Qe(e,t,"formEncType",s.formEncType,s,null),Qe(e,t,"formMethod",s.formMethod,s,null),Qe(e,t,"formTarget",s.formTarget,s,null)):(Qe(e,t,"encType",s.encType,s,null),Qe(e,t,"method",s.method,s,null),Qe(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=$o(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=$n);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=$o(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),Yo(e,"popover",l);break;case"xlinkActuate":Gn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Gn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Gn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Gn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Gn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Gn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Gn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Gn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Gn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Yo(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=mx.get(a)||a,Yo(e,a,l))}}function zu(e,t,a,l,s,c){switch(a){case"style":Rd(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Hl(e,l):(typeof l=="number"||typeof l=="bigint")&&Hl(e,""+l);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=$n);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),c=e[Lt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof l=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,s);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Yo(e,a,l)}}}function Nt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var l=!1,s=!1,c;for(c in a)if(a.hasOwnProperty(c)){var g=a[c];if(g!=null)switch(c){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Qe(e,t,c,g,a,null)}}s&&Qe(e,t,"srcSet",a.srcSet,a,null),l&&Qe(e,t,"src",a.src,a,null);return;case"input":Oe("invalid",e);var S=c=g=s=null,R=null,L=null;for(l in a)if(a.hasOwnProperty(l)){var $=a[l];if($!=null)switch(l){case"name":s=$;break;case"type":g=$;break;case"checked":R=$;break;case"defaultChecked":L=$;break;case"value":c=$;break;case"defaultValue":S=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(i(137,t));break;default:Qe(e,t,l,$,a,null)}}Nd(e,c,S,R,L,g,s,!1);return;case"select":Oe("invalid",e),l=g=c=null;for(s in a)if(a.hasOwnProperty(s)&&(S=a[s],S!=null))switch(s){case"value":c=S;break;case"defaultValue":g=S;break;case"multiple":l=S;default:Qe(e,t,s,S,a,null)}t=c,a=g,e.multiple=!!l,t!=null?Bl(e,!!l,t,!1):a!=null&&Bl(e,!!l,a,!0);return;case"textarea":Oe("invalid",e),c=s=l=null;for(g in a)if(a.hasOwnProperty(g)&&(S=a[g],S!=null))switch(g){case"value":l=S;break;case"defaultValue":s=S;break;case"children":c=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(i(91));break;default:Qe(e,t,g,S,a,null)}Cd(e,l,s,c);return;case"option":for(R in a)if(a.hasOwnProperty(R)&&(l=a[R],l!=null))switch(R){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Qe(e,t,R,l,a,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(l=0;l<ho.length;l++)Oe(ho[l],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("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(L in a)if(a.hasOwnProperty(L)&&(l=a[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Qe(e,t,L,l,a,null)}return;default:if(Ks(t)){for($ in a)a.hasOwnProperty($)&&(l=a[$],l!==void 0&&zu(e,t,$,l,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(l=a[S],l!=null&&Qe(e,t,S,l,a,null))}function V1(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,g=null,S=null,R=null,L=null,$=null;for(H in a){var Z=a[H];if(a.hasOwnProperty(H)&&Z!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":R=Z;default:l.hasOwnProperty(H)||Qe(e,t,H,null,l,Z)}}for(var U in l){var H=l[U];if(Z=a[U],l.hasOwnProperty(U)&&(H!=null||Z!=null))switch(U){case"type":c=H;break;case"name":s=H;break;case"checked":L=H;break;case"defaultChecked":$=H;break;case"value":g=H;break;case"defaultValue":S=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(i(137,t));break;default:H!==Z&&Qe(e,t,U,H,l,Z)}}Qs(e,g,S,R,L,$,c,s);return;case"select":H=g=S=U=null;for(c in a)if(R=a[c],a.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":H=R;default:l.hasOwnProperty(c)||Qe(e,t,c,null,l,R)}for(s in l)if(c=l[s],R=a[s],l.hasOwnProperty(s)&&(c!=null||R!=null))switch(s){case"value":U=c;break;case"defaultValue":S=c;break;case"multiple":g=c;default:c!==R&&Qe(e,t,s,c,l,R)}t=S,a=g,l=H,U!=null?Bl(e,!!a,U,!1):!!l!=!!a&&(t!=null?Bl(e,!!a,t,!0):Bl(e,!!a,a?[]:"",!1));return;case"textarea":H=U=null;for(S in a)if(s=a[S],a.hasOwnProperty(S)&&s!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Qe(e,t,S,null,l,s)}for(g in l)if(s=l[g],c=a[g],l.hasOwnProperty(g)&&(s!=null||c!=null))switch(g){case"value":U=s;break;case"defaultValue":H=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(i(91));break;default:s!==c&&Qe(e,t,g,s,l,c)}Td(e,U,H);return;case"option":for(var se in a)if(U=a[se],a.hasOwnProperty(se)&&U!=null&&!l.hasOwnProperty(se))switch(se){case"selected":e.selected=!1;break;default:Qe(e,t,se,null,l,U)}for(R in l)if(U=l[R],H=a[R],l.hasOwnProperty(R)&&U!==H&&(U!=null||H!=null))switch(R){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Qe(e,t,R,U,l,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 Se in a)U=a[Se],a.hasOwnProperty(Se)&&U!=null&&!l.hasOwnProperty(Se)&&Qe(e,t,Se,null,l,U);for(L in l)if(U=l[L],H=a[L],l.hasOwnProperty(L)&&U!==H&&(U!=null||H!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(i(137,t));break;default:Qe(e,t,L,U,l,H)}return;default:if(Ks(t)){for(var Ze in a)U=a[Ze],a.hasOwnProperty(Ze)&&U!==void 0&&!l.hasOwnProperty(Ze)&&zu(e,t,Ze,void 0,l,U);for($ in l)U=l[$],H=a[$],!l.hasOwnProperty($)||U===H||U===void 0&&H===void 0||zu(e,t,$,U,l,H);return}}for(var z in a)U=a[z],a.hasOwnProperty(z)&&U!=null&&!l.hasOwnProperty(z)&&Qe(e,t,z,null,l,U);for(Z in l)U=l[Z],H=a[Z],!l.hasOwnProperty(Z)||U===H||U==null&&H==null||Qe(e,t,Z,U,l,H)}function _h(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Y1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var s=a[l],c=s.transferSize,g=s.initiatorType,S=s.duration;if(c&&S&&_h(g)){for(g=0,S=s.responseEnd,l+=1;l<a.length;l++){var R=a[l],L=R.startTime;if(L>S)break;var $=R.transferSize,Z=R.initiatorType;$&&_h(Z)&&(R=R.responseEnd,g+=$*(R<S?1:(S-L)/(R-L)))}if(--l,t+=8*(c+g)/(s.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 ku=null,Lu=null;function Hi(e){return e.nodeType===9?e:e.ownerDocument}function Oh(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 Mh(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 Uu(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 Bu=null;function q1(){var e=window.event;return e&&e.type==="popstate"?e===Bu?!1:(Bu=e,!0):(Bu=null,!1)}var Dh=typeof setTimeout=="function"?setTimeout:void 0,G1=typeof clearTimeout=="function"?clearTimeout:void 0,jh=typeof Promise=="function"?Promise:void 0,$1=typeof queueMicrotask=="function"?queueMicrotask:typeof jh<"u"?function(e){return jh.resolve(null).then(e).catch(X1)}:Dh;function X1(e){setTimeout(function(){throw e})}function ka(e){return e==="head"}function zh(e,t){var a=t,l=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(s),gr(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")vo(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,vo(a);for(var c=a.firstChild;c;){var g=c.nextSibling,S=c.nodeName;c[zr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=g}}else a==="body"&&vo(e.ownerDocument.body);a=s}while(a);gr(t)}function kh(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Hu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Hu(a),$s(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Q1(e,t,a,l){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[zr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=un(e.nextSibling),e===null)break}return null}function Z1(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=un(e.nextSibling),e===null))return null;return e}function Lh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=un(e.nextSibling),e===null))return null;return e}function Vu(e){return e.data==="$?"||e.data==="$~"}function Yu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function K1(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function un(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 qu=null;function Uh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return un(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Bh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Hh(e,t,a){switch(t=Hi(a),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function vo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$s(e)}var fn=new Map,Vh=new Set;function Vi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var oa=Y.d;Y.d={f:P1,r:J1,D:I1,C:F1,L:W1,m:eS,X:nS,S:tS,M:aS};function P1(){var e=oa.f(),t=Mi();return e||t}function J1(e){var t=kl(e);t!==null&&t.tag===5&&t.type==="form"?ap(t):oa.r(e)}var mr=typeof document>"u"?null:document;function Yh(e,t,a){var l=mr;if(l&&typeof t=="string"&&t){var s=nn(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),Vh.has(s)||(Vh.add(s),e={rel:e,crossOrigin:a,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),Nt(t,"link",e),gt(t),l.head.appendChild(t)))}}function I1(e){oa.D(e),Yh("dns-prefetch",e,null)}function F1(e,t){oa.C(e,t),Yh("preconnect",e,t)}function W1(e,t,a){oa.L(e,t,a);var l=mr;if(l&&e&&t){var s='link[rel="preload"][as="'+nn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+nn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+nn(a.imageSizes)+'"]')):s+='[href="'+nn(e)+'"]';var c=s;switch(t){case"style":c=pr(e);break;case"script":c=hr(e)}fn.has(c)||(e=h({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),fn.set(c,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(yo(c))||t==="script"&&l.querySelector(bo(c))||(t=l.createElement("link"),Nt(t,"link",e),gt(t),l.head.appendChild(t)))}}function eS(e,t){oa.m(e,t);var a=mr;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+nn(l)+'"][href="'+nn(e)+'"]',c=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=hr(e)}if(!fn.has(c)&&(e=h({rel:"modulepreload",href:e},t),fn.set(c,e),a.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(bo(c)))return}l=a.createElement("link"),Nt(l,"link",e),gt(l),a.head.appendChild(l)}}}function tS(e,t,a){oa.S(e,t,a);var l=mr;if(l&&e){var s=Ll(l).hoistableStyles,c=pr(e);t=t||"default";var g=s.get(c);if(!g){var S={loading:0,preload:null};if(g=l.querySelector(yo(c)))S.loading=5;else{e=h({rel:"stylesheet",href:e,"data-precedence":t},a),(a=fn.get(c))&&Gu(e,a);var R=g=l.createElement("link");gt(R),Nt(R,"link",e),R._p=new Promise(function(L,$){R.onload=L,R.onerror=$}),R.addEventListener("load",function(){S.loading|=1}),R.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Yi(g,t,l)}g={type:"stylesheet",instance:g,count:1,state:S},s.set(c,g)}}}function nS(e,t){oa.X(e,t);var a=mr;if(a&&e){var l=Ll(a).hoistableScripts,s=hr(e),c=l.get(s);c||(c=a.querySelector(bo(s)),c||(e=h({src:e,async:!0},t),(t=fn.get(s))&&$u(e,t),c=a.createElement("script"),gt(c),Nt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function aS(e,t){oa.M(e,t);var a=mr;if(a&&e){var l=Ll(a).hoistableScripts,s=hr(e),c=l.get(s);c||(c=a.querySelector(bo(s)),c||(e=h({src:e,async:!0,type:"module"},t),(t=fn.get(s))&&$u(e,t),c=a.createElement("script"),gt(c),Nt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function qh(e,t,a,l){var s=(s=ae.current)?Vi(s):null;if(!s)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=pr(a.href),a=Ll(s).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=pr(a.href);var c=Ll(s).hoistableStyles,g=c.get(e);if(g||(s=s.ownerDocument||s,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=s.querySelector(yo(e)))&&!c._p&&(g.instance=c,g.state.loading=5),fn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},fn.set(e,a),c||lS(s,e,a,g.state))),t&&l===null)throw Error(i(528,""));return g}if(t&&l!==null)throw Error(i(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=hr(a),a=Ll(s).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function pr(e){return'href="'+nn(e)+'"'}function yo(e){return'link[rel="stylesheet"]['+e+"]"}function Gh(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function lS(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Nt(t,"link",a),gt(t),e.head.appendChild(t))}function hr(e){return'[src="'+nn(e)+'"]'}function bo(e){return"script[async]"+e}function $h(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+nn(a.href)+'"]');if(l)return t.instance=l,gt(l),l;var s=h({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),gt(l),Nt(l,"style",s),Yi(l,a.precedence,e),t.instance=l;case"stylesheet":s=pr(a.href);var c=e.querySelector(yo(s));if(c)return t.state.loading|=4,t.instance=c,gt(c),c;l=Gh(a),(s=fn.get(s))&&Gu(l,s),c=(e.ownerDocument||e).createElement("link"),gt(c);var g=c;return g._p=new Promise(function(S,R){g.onload=S,g.onerror=R}),Nt(c,"link",l),t.state.loading|=4,Yi(c,a.precedence,e),t.instance=c;case"script":return c=hr(a.src),(s=e.querySelector(bo(c)))?(t.instance=s,gt(s),s):(l=a,(s=fn.get(c))&&(l=h({},a),$u(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),gt(s),Nt(s,"link",l),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Yi(l,a.precedence,e));return t.instance}function Yi(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,c=s,g=0;g<l.length;g++){var S=l[g];if(S.dataset.precedence===t)c=S;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Gu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $u(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var qi=null;function Xh(e,t,a){if(qi===null){var l=new Map,s=qi=new Map;s.set(a,l)}else s=qi,l=s.get(a),l||(l=new Map,s.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var c=a[s];if(!(c[zr]||c[xt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(t)||"";g=e+g;var S=l.get(g);S?S.push(c):l.set(g,[c])}}return l}function Qh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function rS(e,t,a){if(a===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 Zh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function oS(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=pr(l.href),c=t.querySelector(yo(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Gi.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,gt(c);return}c=t.ownerDocument||t,l=Gh(l),(s=fn.get(s))&&Gu(l,s),c=c.createElement("link"),gt(c);var g=c;g._p=new Promise(function(S,R){g.onload=S,g.onerror=R}),Nt(c,"link",l),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Gi.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Xu=0;function iS(e,t){return e.stylesheets&&e.count===0&&Xi(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Xi(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Xu===0&&(Xu=62500*Y1());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xi(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Xu?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function Gi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $i=null;function Xi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$i=new Map,t.forEach(sS,e),$i=null,Gi.call(e))}function sS(e,t){if(!(t.state.loading&4)){var a=$i.get(e);if(a)var l=a.get(null);else{a=new Map,$i.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var g=s[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),l=g)}l&&a.set(null,l)}s=t.instance,g=s.getAttribute("data-precedence"),c=a.get(g)||l,c===l&&a.set(null,s),a.set(g,s),this.count++,l=Gi.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var xo={$$typeof:D,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function cS(e,t,a,l,s,c,g,S,R){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=ga(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ga(0),this.hiddenUpdates=ga(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Kh(e,t,a,l,s,c,g,S,R,L,$,Z){return e=new cS(e,t,a,g,R,L,$,Z,S),t=1,c===!0&&(t|=24),c=Qt(3,null,null,t),e.current=c,c.stateNode=e,t=Nc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:t},Rc(c),e}function Ph(e){return e?(e=Ql,e):Ql}function Jh(e,t,a,l,s,c){s=Ph(s),l.context===null?l.context=s:l.pendingContext=s,l=Na(t),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=Ta(e,l,t),a!==null&&(qt(a,e,t),Ir(a,e,t))}function Ih(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Qu(e,t){Ih(e,t),(e=e.alternate)&&Ih(e,t)}function Fh(e){if(e.tag===13||e.tag===31){var t=sl(e,67108864);t!==null&&qt(t,e,67108864),Qu(e,67108864)}}function Wh(e){if(e.tag===13||e.tag===31){var t=It();t=Dl(t);var a=sl(e,t);a!==null&&qt(a,e,t),Qu(e,t)}}var Qi=!0;function uS(e,t,a,l){var s=O.T;O.T=null;var c=Y.p;try{Y.p=2,Zu(e,t,a,l)}finally{Y.p=c,O.T=s}}function fS(e,t,a,l){var s=O.T;O.T=null;var c=Y.p;try{Y.p=8,Zu(e,t,a,l)}finally{Y.p=c,O.T=s}}function Zu(e,t,a,l){if(Qi){var s=Ku(l);if(s===null)ju(e,t,l,Zi,a),tg(e,l);else if(mS(s,e,t,a,l))l.stopPropagation();else if(tg(e,l),t&4&&-1<dS.indexOf(e)){for(;s!==null;){var c=kl(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=Tn(c.pendingLanes);if(g!==0){var S=c;for(S.pendingLanes|=2,S.entangledLanes|=2;g;){var R=1<<31-Tt(g);S.entanglements[1]|=R,g&=~R}_n(c),(Ye&6)===0&&(_i=Ot()+500,po(0))}}break;case 31:case 13:S=sl(c,2),S!==null&&qt(S,c,2),Mi(),Qu(c,2)}if(c=Ku(l),c===null&&ju(e,t,l,Zi,a),c===s)break;s=c}s!==null&&l.stopPropagation()}else ju(e,t,l,null,a)}}function Ku(e){return e=Js(e),Pu(e)}var Zi=null;function Pu(e){if(Zi=null,e=zl(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Zi=e,null}function eg(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(Vs()){case Wa:return 2;case Ho:return 8;case el:case Dr:return 32;case qn:return 268435456;default:return 32}default:return 32}}var Ju=!1,La=null,Ua=null,Ba=null,So=new Map,wo=new Map,Ha=[],dS="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 tg(e,t){switch(e){case"focusin":case"focusout":La=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":Ba=null;break;case"pointerover":case"pointerout":So.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wo.delete(t.pointerId)}}function Eo(e,t,a,l,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[s]},t!==null&&(t=kl(t),t!==null&&Fh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function mS(e,t,a,l,s){switch(t){case"focusin":return La=Eo(La,e,t,a,l,s),!0;case"dragenter":return Ua=Eo(Ua,e,t,a,l,s),!0;case"mouseover":return Ba=Eo(Ba,e,t,a,l,s),!0;case"pointerover":var c=s.pointerId;return So.set(c,Eo(So.get(c)||null,e,t,a,l,s)),!0;case"gotpointercapture":return c=s.pointerId,wo.set(c,Eo(wo.get(c)||null,e,t,a,l,s)),!0}return!1}function ng(e){var t=zl(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,gd(e.priority,function(){Wh(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,gd(e.priority,function(){Wh(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ki(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ku(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Ps=l,a.target.dispatchEvent(l),Ps=null}else return t=kl(a),t!==null&&Fh(t),e.blockedOn=a,!1;t.shift()}return!0}function ag(e,t,a){Ki(e)&&a.delete(t)}function pS(){Ju=!1,La!==null&&Ki(La)&&(La=null),Ua!==null&&Ki(Ua)&&(Ua=null),Ba!==null&&Ki(Ba)&&(Ba=null),So.forEach(ag),wo.forEach(ag)}function Pi(e,t){e.blockedOn===t&&(e.blockedOn=null,Ju||(Ju=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,pS)))}var Ji=null;function lg(e){Ji!==e&&(Ji=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ji===e&&(Ji=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(Pu(l||a)===null)continue;break}var c=kl(a);c!==null&&(e.splice(t,3),t-=3,Kc(c,{pending:!0,data:s,method:a.method,action:l},l,s))}}))}function gr(e){function t(R){return Pi(R,e)}La!==null&&Pi(La,e),Ua!==null&&Pi(Ua,e),Ba!==null&&Pi(Ba,e),So.forEach(t),wo.forEach(t);for(var a=0;a<Ha.length;a++){var l=Ha[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ha.length&&(a=Ha[0],a.blockedOn===null);)ng(a),a.blockedOn===null&&Ha.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var s=a[l],c=a[l+1],g=s[Lt]||null;if(typeof c=="function")g||lg(a);else if(g){var S=null;if(c&&c.hasAttribute("formAction")){if(s=c,g=c[Lt]||null)S=g.formAction;else if(Pu(s)!==null)continue}else S=g.action;typeof S=="function"?a[l+1]=S:(a.splice(l,3),l-=3),lg(a)}}}function rg(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return s=g})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Iu(e){this._internalRoot=e}Ii.prototype.render=Iu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,l=It();Jh(a,l,e,t,null,null)},Ii.prototype.unmount=Iu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Jh(e.current,2,null,e,null,null),Mi(),t[jl]=null}};function Ii(e){this._internalRoot=e}Ii.prototype.unstable_scheduleHydration=function(e){if(e){var t=qs();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ha.length&&t!==0&&t<Ha[a].priority;a++);Ha.splice(a,0,e),a===0&&ng(e)}};var og=r.version;if(og!=="19.2.4")throw Error(i(527,og,"19.2.4"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var hS={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fi.isDisabled&&Fi.supportsFiber)try{tl=Fi.inject(hS),Mt=Fi}catch{}}return To.createRoot=function(e,t){if(!u(e))throw Error(i(299));var a=!1,l="",s=mp,c=pp,g=hp;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=Kh(e,1,!1,null,null,a,l,null,s,c,g,rg),e[jl]=t.current,Du(e),new Iu(t)},To.hydrateRoot=function(e,t,a){if(!u(e))throw Error(i(299));var l=!1,s="",c=mp,g=pp,S=hp,R=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(R=a.formState)),t=Kh(e,1,!0,t,a??null,l,s,R,c,g,S,rg),t.context=Ph(null),a=t.current,l=It(),l=Dl(l),s=Na(l),s.callback=null,Ta(a,s,l),a=l,t.current.lanes=a,at(t,a),_n(t),e[jl]=t.current,Du(e),new Ii(t)},To.version="19.2.4",To}var gg;function TS(){if(gg)return ef.exports;gg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),ef.exports=NS(),ef.exports}var CS=TS();const AS="modulepreload",RS=function(n){return"/"+n},vg={},pv=function(r,o,i){let u=Promise.resolve();if(o&&o.length>0){let d=function(p){return Promise.all(p.map(x=>Promise.resolve(x).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),v=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));u=d(o.map(p=>{if(p=RS(p),p in vg)return;vg[p]=!0;const x=p.endsWith(".css"),h=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${h}`))return;const w=document.createElement("link");if(w.rel=x?"stylesheet":AS,x||(w.as="script"),w.crossOrigin="",w.href=p,v&&w.setAttribute("nonce",v),document.head.appendChild(w),x)return new Promise((E,C)=>{w.addEventListener("load",E),w.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(d){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=d,window.dispatchEvent(m),!m.defaultPrevented)throw d}return u.then(d=>{for(const m of d||[])m.status==="rejected"&&f(m.reason);return r().catch(f)})};/**
51
- * react-router v7.13.2
52
- *
53
- * Copyright (c) Remix Software Inc.
54
- *
55
- * This source code is licensed under the MIT license found in the
56
- * LICENSE.md file in the root directory of this source tree.
57
- *
58
- * @license MIT
59
- */var yg="popstate";function bg(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function _S(n={}){function r(i,u){var p;let f=(p=u.state)==null?void 0:p.masked,{pathname:d,search:m,hash:v}=f||i.location;return Sf("",{pathname:d,search:m,hash:v},u.state&&u.state.usr||null,u.state&&u.state.key||"default",f?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function o(i,u){return typeof u=="string"?u:_o(u)}return MS(r,o,null,n)}function tt(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function xn(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function OS(){return Math.random().toString(36).substring(2,10)}function xg(n,r){return{usr:n.state,key:n.key,idx:r,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Sf(n,r,o=null,i,u){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?Tr(r):r,state:o,key:r&&r.key||i||OS(),unstable_mask:u}}function _o({pathname:n="/",search:r="",hash:o=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function Tr(n){let r={};if(n){let o=n.indexOf("#");o>=0&&(r.hash=n.substring(o),n=n.substring(0,o));let i=n.indexOf("?");i>=0&&(r.search=n.substring(i),n=n.substring(0,i)),n&&(r.pathname=n)}return r}function MS(n,r,o,i={}){let{window:u=document.defaultView,v5Compat:f=!1}=i,d=u.history,m="POP",v=null,p=x();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function x(){return(d.state||{idx:null}).idx}function h(){m="POP";let T=x(),A=T==null?null:T-p;p=T,v&&v({action:m,location:N.location,delta:A})}function w(T,A){m="PUSH";let j=bg(T)?T:Sf(N.location,T,A);p=x()+1;let D=xg(j,p),B=N.createHref(j.unstable_mask||j);try{d.pushState(D,"",B)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;u.location.assign(B)}f&&v&&v({action:m,location:N.location,delta:1})}function E(T,A){m="REPLACE";let j=bg(T)?T:Sf(N.location,T,A);p=x();let D=xg(j,p),B=N.createHref(j.unstable_mask||j);d.replaceState(D,"",B),f&&v&&v({action:m,location:N.location,delta:0})}function C(T){return DS(T)}let N={get action(){return m},get location(){return n(u,d)},listen(T){if(v)throw new Error("A history only accepts one active listener");return u.addEventListener(yg,h),v=T,()=>{u.removeEventListener(yg,h),v=null}},createHref(T){return r(u,T)},createURL:C,encodeLocation(T){let A=C(T);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:w,replace:E,go(T){return d.go(T)}};return N}function DS(n,r=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),tt(o,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:_o(n);return i=i.replace(/ $/,"%20"),!r&&i.startsWith("//")&&(i=o+i),new URL(i,o)}function hv(n,r,o="/"){return jS(n,r,o,!1)}function jS(n,r,o,i){let u=typeof r=="string"?Tr(r):r,f=ca(u.pathname||"/",o);if(f==null)return null;let d=gv(n);zS(d);let m=null;for(let v=0;m==null&&v<d.length;++v){let p=XS(f);m=GS(d[v],p,i)}return m}function gv(n,r=[],o=[],i="",u=!1){let f=(d,m,v=u,p)=>{let x={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(i)&&v)return;tt(x.relativePath.startsWith(i),`Absolute route path "${x.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(i.length)}let h=Bn([i,x.relativePath]),w=o.concat(x);d.children&&d.children.length>0&&(tt(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),gv(d.children,r,w,h,v)),!(d.path==null&&!d.index)&&r.push({path:h,score:YS(h,d.index),routesMeta:w})};return n.forEach((d,m)=>{var v;if(d.path===""||!((v=d.path)!=null&&v.includes("?")))f(d,m);else for(let p of vv(d.path))f(d,m,!0,p)}),r}function vv(n){let r=n.split("/");if(r.length===0)return[];let[o,...i]=r,u=o.endsWith("?"),f=o.replace(/\?$/,"");if(i.length===0)return u?[f,""]:[f];let d=vv(i.join("/")),m=[];return m.push(...d.map(v=>v===""?f:[f,v].join("/"))),u&&m.push(...d),m.map(v=>n.startsWith("/")&&v===""?"/":v)}function zS(n){n.sort((r,o)=>r.score!==o.score?o.score-r.score:qS(r.routesMeta.map(i=>i.childrenIndex),o.routesMeta.map(i=>i.childrenIndex)))}var kS=/^:[\w-]+$/,LS=3,US=2,BS=1,HS=10,VS=-2,Sg=n=>n==="*";function YS(n,r){let o=n.split("/"),i=o.length;return o.some(Sg)&&(i+=VS),r&&(i+=US),o.filter(u=>!Sg(u)).reduce((u,f)=>u+(kS.test(f)?LS:f===""?BS:HS),i)}function qS(n,r){return n.length===r.length&&n.slice(0,-1).every((i,u)=>i===r[u])?n[n.length-1]-r[r.length-1]:0}function GS(n,r,o=!1){let{routesMeta:i}=n,u={},f="/",d=[];for(let m=0;m<i.length;++m){let v=i[m],p=m===i.length-1,x=f==="/"?r:r.slice(f.length)||"/",h=vs({path:v.relativePath,caseSensitive:v.caseSensitive,end:p},x),w=v.route;if(!h&&p&&o&&!i[i.length-1].route.index&&(h=vs({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},x)),!h)return null;Object.assign(u,h.params),d.push({params:u,pathname:Bn([f,h.pathname]),pathnameBase:PS(Bn([f,h.pathnameBase])),route:w}),h.pathnameBase!=="/"&&(f=Bn([f,h.pathnameBase]))}return d}function vs(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[o,i]=$S(n.path,n.caseSensitive,n.end),u=r.match(o);if(!u)return null;let f=u[0],d=f.replace(/(.)\/+$/,"$1"),m=u.slice(1);return{params:i.reduce((p,{paramName:x,isOptional:h},w)=>{if(x==="*"){let C=m[w]||"";d=f.slice(0,f.length-C.length).replace(/(.)\/+$/,"$1")}const E=m[w];return h&&!E?p[x]=void 0:p[x]=(E||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:d,pattern:n}}function $S(n,r=!1,o=!0){xn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,v,p,x)=>{if(i.push({paramName:m,isOptional:v!=null}),v){let h=x.charAt(p+d.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(i.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,r?void 0:"i"),i]}function XS(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return xn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),n}}function ca(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,i=n.charAt(o);return i&&i!=="/"?null:n.slice(o)||"/"}var QS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ZS(n,r="/"){let{pathname:o,search:i="",hash:u=""}=typeof n=="string"?Tr(n):n,f;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?f=wg(o.substring(1),"/"):f=wg(o,r)):f=r,{pathname:f,search:JS(i),hash:IS(u)}}function wg(n,r){let o=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?o.length>1&&o.pop():u!=="."&&o.push(u)}),o.length>1?o.join("/"):"/"}function lf(n,r,o,i){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function KS(n){return n.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function Bf(n){let r=KS(n);return r.map((o,i)=>i===r.length-1?o.pathname:o.pathnameBase)}function Cs(n,r,o,i=!1){let u;typeof n=="string"?u=Tr(n):(u={...n},tt(!u.pathname||!u.pathname.includes("?"),lf("?","pathname","search",u)),tt(!u.pathname||!u.pathname.includes("#"),lf("#","pathname","hash",u)),tt(!u.search||!u.search.includes("#"),lf("#","search","hash",u)));let f=n===""||u.pathname==="",d=f?"/":u.pathname,m;if(d==null)m=o;else{let h=r.length-1;if(!i&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),h-=1;u.pathname=w.join("/")}m=h>=0?r[h]:"/"}let v=ZS(u,m),p=d&&d!=="/"&&d.endsWith("/"),x=(f||d===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(p||x)&&(v.pathname+="/"),v}var Bn=n=>n.join("/").replace(/\/\/+/g,"/"),PS=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),JS=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,IS=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,FS=class{constructor(n,r,o,i=!1){this.status=n,this.statusText=r||"",this.internal=i,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function WS(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function e2(n){return n.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var yv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function bv(n,r){let o=n;if(typeof o!="string"||!QS.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let i=o,u=!1;if(yv)try{let f=new URL(window.location.href),d=o.startsWith("//")?new URL(f.protocol+o):new URL(o),m=ca(d.pathname,r);d.origin===f.origin&&m!=null?o=m+d.search+d.hash:u=!0}catch{xn(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:u,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var xv=["POST","PUT","PATCH","DELETE"];new Set(xv);var t2=["GET",...xv];new Set(t2);var Cr=b.createContext(null);Cr.displayName="DataRouter";var As=b.createContext(null);As.displayName="DataRouterState";var n2=b.createContext(!1),Sv=b.createContext({isTransitioning:!1});Sv.displayName="ViewTransition";var a2=b.createContext(new Map);a2.displayName="Fetchers";var l2=b.createContext(null);l2.displayName="Await";var en=b.createContext(null);en.displayName="Navigation";var jo=b.createContext(null);jo.displayName="Location";var dn=b.createContext({outlet:null,matches:[],isDataRoute:!1});dn.displayName="Route";var Hf=b.createContext(null);Hf.displayName="RouteError";var wv="REACT_ROUTER_ERROR",r2="REDIRECT",o2="ROUTE_ERROR_RESPONSE";function i2(n){if(n.startsWith(`${wv}:${r2}:{`))try{let r=JSON.parse(n.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function s2(n){if(n.startsWith(`${wv}:${o2}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new FS(r.status,r.statusText,r.data)}catch{}}function c2(n,{relative:r}={}){tt(Ar(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:i}=b.useContext(en),{hash:u,pathname:f,search:d}=zo(n,{relative:r}),m=f;return o!=="/"&&(m=f==="/"?o:Bn([o,f])),i.createHref({pathname:m,search:d,hash:u})}function Ar(){return b.useContext(jo)!=null}function Vn(){return tt(Ar(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(jo).location}var Ev="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nv(n){b.useContext(en).static||b.useLayoutEffect(n)}function Tv(){let{isDataRoute:n}=b.useContext(dn);return n?E2():u2()}function u2(){tt(Ar(),"useNavigate() may be used only in the context of a <Router> component.");let n=b.useContext(Cr),{basename:r,navigator:o}=b.useContext(en),{matches:i}=b.useContext(dn),{pathname:u}=Vn(),f=JSON.stringify(Bf(i)),d=b.useRef(!1);return Nv(()=>{d.current=!0}),b.useCallback((v,p={})=>{if(xn(d.current,Ev),!d.current)return;if(typeof v=="number"){o.go(v);return}let x=Cs(v,JSON.parse(f),u,p.relative==="path");n==null&&r!=="/"&&(x.pathname=x.pathname==="/"?r:Bn([r,x.pathname])),(p.replace?o.replace:o.push)(x,p.state,p)},[r,o,f,u,n])}var Cv=b.createContext(null);function QR(){return b.useContext(Cv)}function f2(n){let r=b.useContext(dn).outlet;return b.useMemo(()=>r&&b.createElement(Cv.Provider,{value:n},r),[r,n])}function ZR(){let{matches:n}=b.useContext(dn),r=n[n.length-1];return r?r.params:{}}function zo(n,{relative:r}={}){let{matches:o}=b.useContext(dn),{pathname:i}=Vn(),u=JSON.stringify(Bf(o));return b.useMemo(()=>Cs(n,JSON.parse(u),i,r==="path"),[n,u,i,r])}function d2(n,r){return Av(n,r)}function Av(n,r,o){var T;tt(Ar(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=b.useContext(en),{matches:u}=b.useContext(dn),f=u[u.length-1],d=f?f.params:{},m=f?f.pathname:"/",v=f?f.pathnameBase:"/",p=f&&f.route;{let A=p&&p.path||"";_v(m,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${A}">) 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.
60
-
61
- Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let x=Vn(),h;if(r){let A=typeof r=="string"?Tr(r):r;tt(v==="/"||((T=A.pathname)==null?void 0:T.startsWith(v)),`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 "${v}" but pathname "${A.pathname}" was given in the \`location\` prop.`),h=A}else h=x;let w=h.pathname||"/",E=w;if(v!=="/"){let A=v.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(A.length).join("/")}let C=hv(n,{pathname:E});xn(p||C!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),xn(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.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 N=v2(C&&C.map(A=>Object.assign({},A,{params:Object.assign({},d,A.params),pathname:Bn([v,i.encodeLocation?i.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?v:Bn([v,i.encodeLocation?i.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),u,o);return r&&N?b.createElement(jo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...h},navigationType:"POP"}},N):N}function m2(){let n=w2(),r=WS(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),o=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:i},f={padding:"2px 4px",backgroundColor:i},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:f},"ErrorBoundary")," or"," ",b.createElement("code",{style:f},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},r),o?b.createElement("pre",{style:u},o):null,d)}var p2=b.createElement(m2,null),Rv=class extends b.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){this.props.onError?this.props.onError(n,r):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const o=s2(n.digest);o&&(n=o)}let r=n!==void 0?b.createElement(dn.Provider,{value:this.props.routeContext},b.createElement(Hf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?b.createElement(h2,{error:n},r):r}};Rv.contextType=n2;var rf=new WeakMap;function h2({children:n,error:r}){let{basename:o}=b.useContext(en);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let i=i2(r.digest);if(i){let u=rf.get(r);if(u)throw u;let f=bv(i.location,o);if(yv&&!rf.get(r))if(f.isExternal||i.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:i.replace}));throw rf.set(r,d),d}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function g2({routeContext:n,match:r,children:o}){let i=b.useContext(Cr);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(dn.Provider,{value:n},o)}function v2(n,r=[],o){let i=o==null?void 0:o.state;if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(r.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let u=n,f=i==null?void 0:i.errors;if(f!=null){let x=u.findIndex(h=>h.route.id&&(f==null?void 0:f[h.route.id])!==void 0);tt(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,x+1))}let d=!1,m=-1;if(o&&i){d=i.renderFallback;for(let x=0;x<u.length;x++){let h=u[x];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(m=x),h.route.id){let{loaderData:w,errors:E}=i,C=h.route.loader&&!w.hasOwnProperty(h.route.id)&&(!E||E[h.route.id]===void 0);if(h.route.lazy||C){o.isStatic&&(d=!0),m>=0?u=u.slice(0,m+1):u=[u[0]];break}}}}let v=o==null?void 0:o.onError,p=i&&v?(x,h)=>{var w,E;v(x,{location:i.location,params:((E=(w=i.matches)==null?void 0:w[0])==null?void 0:E.params)??{},unstable_pattern:e2(i.matches),errorInfo:h})}:void 0;return u.reduceRight((x,h,w)=>{let E,C=!1,N=null,T=null;i&&(E=f&&h.route.id?f[h.route.id]:void 0,N=h.route.errorElement||p2,d&&(m<0&&w===0?(_v("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,T=null):m===w&&(C=!0,T=h.route.hydrateFallbackElement||null)));let A=r.concat(u.slice(0,w+1)),j=()=>{let D;return E?D=N:C?D=T:h.route.Component?D=b.createElement(h.route.Component,null):h.route.element?D=h.route.element:D=x,b.createElement(g2,{match:h,routeContext:{outlet:x,matches:A,isDataRoute:i!=null},children:D})};return i&&(h.route.ErrorBoundary||h.route.errorElement||w===0)?b.createElement(Rv,{location:i.location,revalidation:i.revalidation,component:N,error:E,children:j(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):j()},null)}function Vf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function y2(n){let r=b.useContext(Cr);return tt(r,Vf(n)),r}function b2(n){let r=b.useContext(As);return tt(r,Vf(n)),r}function x2(n){let r=b.useContext(dn);return tt(r,Vf(n)),r}function Yf(n){let r=x2(n),o=r.matches[r.matches.length-1];return tt(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function S2(){return Yf("useRouteId")}function w2(){var i;let n=b.useContext(Hf),r=b2("useRouteError"),o=Yf("useRouteError");return n!==void 0?n:(i=r.errors)==null?void 0:i[o]}function E2(){let{router:n}=y2("useNavigate"),r=Yf("useNavigate"),o=b.useRef(!1);return Nv(()=>{o.current=!0}),b.useCallback(async(u,f={})=>{xn(o.current,Ev),o.current&&(typeof u=="number"?await n.navigate(u):await n.navigate(u,{fromRouteId:r,...f}))},[n,r])}var Eg={};function _v(n,r,o){!r&&!Eg[n]&&(Eg[n]=!0,xn(!1,o))}b.memo(N2);function N2({routes:n,future:r,state:o,isStatic:i,onError:u}){return Av(n,void 0,{state:o,isStatic:i,onError:u})}function Ng({to:n,replace:r,state:o,relative:i}){tt(Ar(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=b.useContext(en);xn(!u,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=b.useContext(dn),{pathname:d}=Vn(),m=Tv(),v=Cs(n,Bf(f),d,i==="path"),p=JSON.stringify(v);return b.useEffect(()=>{m(JSON.parse(p),{replace:r,state:o,relative:i})},[m,p,i,r,o]),null}function T2(n){return f2(n.context)}function El(n){tt(!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 C2({basename:n="/",children:r=null,location:o,navigationType:i="POP",navigator:u,static:f=!1,unstable_useTransitions:d}){tt(!Ar(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=n.replace(/^\/*/,"/"),v=b.useMemo(()=>({basename:m,navigator:u,static:f,unstable_useTransitions:d,future:{}}),[m,u,f,d]);typeof o=="string"&&(o=Tr(o));let{pathname:p="/",search:x="",hash:h="",state:w=null,key:E="default",unstable_mask:C}=o,N=b.useMemo(()=>{let T=ca(p,m);return T==null?null:{location:{pathname:T,search:x,hash:h,state:w,key:E,unstable_mask:C},navigationType:i}},[m,p,x,h,w,E,i,C]);return xn(N!=null,`<Router basename="${m}"> is not able to match the URL "${p}${x}${h}" because it does not start with the basename, so the <Router> won't render anything.`),N==null?null:b.createElement(en.Provider,{value:v},b.createElement(jo.Provider,{children:r,value:N}))}function A2({children:n,location:r}){return d2(wf(n),r)}function wf(n,r=[]){let o=[];return b.Children.forEach(n,(i,u)=>{if(!b.isValidElement(i))return;let f=[...r,u];if(i.type===b.Fragment){o.push.apply(o,wf(i.props.children,f));return}tt(i.type===El,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),tt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let d={id:i.props.id||f.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(d.children=wf(i.props.children,f)),o.push(d)}),o}var us="get",fs="application/x-www-form-urlencoded";function Rs(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function R2(n){return Rs(n)&&n.tagName.toLowerCase()==="button"}function _2(n){return Rs(n)&&n.tagName.toLowerCase()==="form"}function O2(n){return Rs(n)&&n.tagName.toLowerCase()==="input"}function M2(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function D2(n,r){return n.button===0&&(!r||r==="_self")&&!M2(n)}var Wi=null;function j2(){if(Wi===null)try{new FormData(document.createElement("form"),0),Wi=!1}catch{Wi=!0}return Wi}var z2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function of(n){return n!=null&&!z2.has(n)?(xn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fs}"`),null):n}function k2(n,r){let o,i,u,f,d;if(_2(n)){let m=n.getAttribute("action");i=m?ca(m,r):null,o=n.getAttribute("method")||us,u=of(n.getAttribute("enctype"))||fs,f=new FormData(n)}else if(R2(n)||O2(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=n.getAttribute("formaction")||m.getAttribute("action");if(i=v?ca(v,r):null,o=n.getAttribute("formmethod")||m.getAttribute("method")||us,u=of(n.getAttribute("formenctype"))||of(m.getAttribute("enctype"))||fs,f=new FormData(m,n),!j2()){let{name:p,type:x,value:h}=n;if(x==="image"){let w=p?`${p}.`:"";f.append(`${w}x`,"0"),f.append(`${w}y`,"0")}else p&&f.append(p,h)}}else{if(Rs(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=us,i=null,u=fs,d=n}return f&&u==="text/plain"&&(d=f,f=void 0),{action:i,method:o.toLowerCase(),encType:u,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function qf(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function L2(n,r,o,i){let u=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return o?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${i}`:u.pathname=`${u.pathname}.${i}`:u.pathname==="/"?u.pathname=`_root.${i}`:r&&ca(u.pathname,r)==="/"?u.pathname=`${r.replace(/\/$/,"")}/_root.${i}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${i}`,u}async function U2(n,r){if(n.id in r)return r[n.id];try{let o=await import(n.module);return r[n.id]=o,o}catch(o){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function B2(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function H2(n,r,o){let i=await Promise.all(n.map(async u=>{let f=r.routes[u.route.id];if(f){let d=await U2(f,o);return d.links?d.links():[]}return[]}));return G2(i.flat(1).filter(B2).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function Tg(n,r,o,i,u,f){let d=(v,p)=>o[p]?v.route.id!==o[p].route.id:!0,m=(v,p)=>{var x;return o[p].pathname!==v.pathname||((x=o[p].route.path)==null?void 0:x.endsWith("*"))&&o[p].params["*"]!==v.params["*"]};return f==="assets"?r.filter((v,p)=>d(v,p)||m(v,p)):f==="data"?r.filter((v,p)=>{var h;let x=i.routes[v.route.id];if(!x||!x.hasLoader)return!1;if(d(v,p)||m(v,p))return!0;if(v.route.shouldRevalidate){let w=v.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((h=o[0])==null?void 0:h.params)||{},nextUrl:new URL(n,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function V2(n,r,{includeHydrateFallback:o}={}){return Y2(n.map(i=>{let u=r.routes[i.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),o&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function Y2(n){return[...new Set(n)]}function q2(n){let r={},o=Object.keys(n).sort();for(let i of o)r[i]=n[i];return r}function G2(n,r){let o=new Set;return new Set(r),n.reduce((i,u)=>{let f=JSON.stringify(q2(u));return o.has(f)||(o.add(f),i.push({key:f,link:u})),i},[])}function Ov(){let n=b.useContext(Cr);return qf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function $2(){let n=b.useContext(As);return qf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Gf=b.createContext(void 0);Gf.displayName="FrameworkContext";function Mv(){let n=b.useContext(Gf);return qf(n,"You must render this element inside a <HydratedRouter> element"),n}function X2(n,r){let o=b.useContext(Gf),[i,u]=b.useState(!1),[f,d]=b.useState(!1),{onFocus:m,onBlur:v,onMouseEnter:p,onMouseLeave:x,onTouchStart:h}=r,w=b.useRef(null);b.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let N=A=>{A.forEach(j=>{d(j.isIntersecting)})},T=new IntersectionObserver(N,{threshold:.5});return w.current&&T.observe(w.current),()=>{T.disconnect()}}},[n]),b.useEffect(()=>{if(i){let N=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(N)}}},[i]);let E=()=>{u(!0)},C=()=>{u(!1),d(!1)};return o?n!=="intent"?[f,w,{}]:[f,w,{onFocus:Co(m,E),onBlur:Co(v,C),onMouseEnter:Co(p,E),onMouseLeave:Co(x,C),onTouchStart:Co(h,E)}]:[!1,w,{}]}function Co(n,r){return o=>{n&&n(o),o.defaultPrevented||r(o)}}function Q2({page:n,...r}){let{router:o}=Ov(),i=b.useMemo(()=>hv(o.routes,n,o.basename),[o.routes,n,o.basename]);return i?b.createElement(K2,{page:n,matches:i,...r}):null}function Z2(n){let{manifest:r,routeModules:o}=Mv(),[i,u]=b.useState([]);return b.useEffect(()=>{let f=!1;return H2(n,r,o).then(d=>{f||u(d)}),()=>{f=!0}},[n,r,o]),i}function K2({page:n,matches:r,...o}){let i=Vn(),{future:u,manifest:f,routeModules:d}=Mv(),{basename:m}=Ov(),{loaderData:v,matches:p}=$2(),x=b.useMemo(()=>Tg(n,r,p,f,i,"data"),[n,r,p,f,i]),h=b.useMemo(()=>Tg(n,r,p,f,i,"assets"),[n,r,p,f,i]),w=b.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let N=new Set,T=!1;if(r.forEach(j=>{var B;let D=f.routes[j.route.id];!D||!D.hasLoader||(!x.some(K=>K.route.id===j.route.id)&&j.route.id in v&&((B=d[j.route.id])!=null&&B.shouldRevalidate)||D.hasClientLoader?T=!0:N.add(j.route.id))}),N.size===0)return[];let A=L2(n,m,u.unstable_trailingSlashAwareDataRequests,"data");return T&&N.size>0&&A.searchParams.set("_routes",r.filter(j=>N.has(j.route.id)).map(j=>j.route.id).join(",")),[A.pathname+A.search]},[m,u.unstable_trailingSlashAwareDataRequests,v,i,f,x,r,n,d]),E=b.useMemo(()=>V2(h,f),[h,f]),C=Z2(h);return b.createElement(b.Fragment,null,w.map(N=>b.createElement("link",{key:N,rel:"prefetch",as:"fetch",href:N,...o})),E.map(N=>b.createElement("link",{key:N,rel:"modulepreload",href:N,...o})),C.map(({key:N,link:T})=>b.createElement("link",{key:N,nonce:o.nonce,...T,crossOrigin:T.crossOrigin??o.crossOrigin})))}function P2(...n){return r=>{n.forEach(o=>{typeof o=="function"?o(r):o!=null&&(o.current=r)})}}var J2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{J2&&(window.__reactRouterVersion="7.13.2")}catch{}function I2({basename:n,children:r,unstable_useTransitions:o,window:i}){let u=b.useRef();u.current==null&&(u.current=_S({window:i,v5Compat:!0}));let f=u.current,[d,m]=b.useState({action:f.action,location:f.location}),v=b.useCallback(p=>{o===!1?m(p):b.startTransition(()=>m(p))},[o]);return b.useLayoutEffect(()=>f.listen(v),[f,v]),b.createElement(C2,{basename:n,children:r,location:d.location,navigationType:d.action,navigator:f,unstable_useTransitions:o})}var Dv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jv=b.forwardRef(function({onClick:r,discover:o="render",prefetch:i="none",relative:u,reloadDocument:f,replace:d,unstable_mask:m,state:v,target:p,to:x,preventScrollReset:h,viewTransition:w,unstable_defaultShouldRevalidate:E,...C},N){let{basename:T,navigator:A,unstable_useTransitions:j}=b.useContext(en),D=typeof x=="string"&&Dv.test(x),B=bv(x,T);x=B.to;let K=c2(x,{relative:u}),J=Vn(),q=null;if(m){let fe=Cs(m,[],J.unstable_mask?J.unstable_mask.pathname:"/",!0);T!=="/"&&(fe.pathname=fe.pathname==="/"?T:Bn([T,fe.pathname])),q=A.createHref(fe)}let[V,re,ve]=X2(i,C),ye=ew(x,{replace:d,unstable_mask:m,state:v,target:p,preventScrollReset:h,relative:u,viewTransition:w,unstable_defaultShouldRevalidate:E,unstable_useTransitions:j});function de(fe){r&&r(fe),fe.defaultPrevented||ye(fe)}let ge=!(B.isExternal||f),be=b.createElement("a",{...C,...ve,href:(ge?q:void 0)||B.absoluteURL||K,onClick:ge?de:r,ref:P2(N,re),target:p,"data-discover":!D&&o==="render"?"true":void 0});return V&&!D?b.createElement(b.Fragment,null,be,b.createElement(Q2,{page:K})):be});jv.displayName="Link";var zv=b.forwardRef(function({"aria-current":r="page",caseSensitive:o=!1,className:i="",end:u=!1,style:f,to:d,viewTransition:m,children:v,...p},x){let h=zo(d,{relative:p.relative}),w=Vn(),E=b.useContext(As),{navigator:C,basename:N}=b.useContext(en),T=E!=null&&rw(h)&&m===!0,A=C.encodeLocation?C.encodeLocation(h).pathname:h.pathname,j=w.pathname,D=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;o||(j=j.toLowerCase(),D=D?D.toLowerCase():null,A=A.toLowerCase()),D&&N&&(D=ca(D,N)||D);const B=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let K=j===A||!u&&j.startsWith(A)&&j.charAt(B)==="/",J=D!=null&&(D===A||!u&&D.startsWith(A)&&D.charAt(A.length)==="/"),q={isActive:K,isPending:J,isTransitioning:T},V=K?r:void 0,re;typeof i=="function"?re=i(q):re=[i,K?"active":null,J?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let ve=typeof f=="function"?f(q):f;return b.createElement(jv,{...p,"aria-current":V,className:re,ref:x,style:ve,to:d,viewTransition:m},typeof v=="function"?v(q):v)});zv.displayName="NavLink";var F2=b.forwardRef(({discover:n="render",fetcherKey:r,navigate:o,reloadDocument:i,replace:u,state:f,method:d=us,action:m,onSubmit:v,relative:p,preventScrollReset:x,viewTransition:h,unstable_defaultShouldRevalidate:w,...E},C)=>{let{unstable_useTransitions:N}=b.useContext(en),T=aw(),A=lw(m,{relative:p}),j=d.toLowerCase()==="get"?"get":"post",D=typeof m=="string"&&Dv.test(m),B=K=>{if(v&&v(K),K.defaultPrevented)return;K.preventDefault();let J=K.nativeEvent.submitter,q=(J==null?void 0:J.getAttribute("formmethod"))||d,V=()=>T(J||K.currentTarget,{fetcherKey:r,method:q,navigate:o,replace:u,state:f,relative:p,preventScrollReset:x,viewTransition:h,unstable_defaultShouldRevalidate:w});N&&o!==!1?b.startTransition(()=>V()):V()};return b.createElement("form",{ref:C,method:j,action:A,onSubmit:i?v:B,...E,"data-discover":!D&&n==="render"?"true":void 0})});F2.displayName="Form";function W2(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kv(n){let r=b.useContext(Cr);return tt(r,W2(n)),r}function ew(n,{target:r,replace:o,unstable_mask:i,state:u,preventScrollReset:f,relative:d,viewTransition:m,unstable_defaultShouldRevalidate:v,unstable_useTransitions:p}={}){let x=Tv(),h=Vn(),w=zo(n,{relative:d});return b.useCallback(E=>{if(D2(E,r)){E.preventDefault();let C=o!==void 0?o:_o(h)===_o(w),N=()=>x(n,{replace:C,unstable_mask:i,state:u,preventScrollReset:f,relative:d,viewTransition:m,unstable_defaultShouldRevalidate:v});p?b.startTransition(()=>N()):N()}},[h,x,w,o,i,u,r,n,f,d,m,v,p])}var tw=0,nw=()=>`__${String(++tw)}__`;function aw(){let{router:n}=kv("useSubmit"),{basename:r}=b.useContext(en),o=S2(),i=n.fetch,u=n.navigate;return b.useCallback(async(f,d={})=>{let{action:m,method:v,encType:p,formData:x,body:h}=k2(f,r);if(d.navigate===!1){let w=d.fetcherKey||nw();await i(w,o,d.action||m,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:h,formMethod:d.method||v,formEncType:d.encType||p,flushSync:d.flushSync})}else await u(d.action||m,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:h,formMethod:d.method||v,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:o,flushSync:d.flushSync,viewTransition:d.viewTransition})},[i,u,r,o])}function lw(n,{relative:r}={}){let{basename:o}=b.useContext(en),i=b.useContext(dn);tt(i,"useFormAction must be used inside a RouteContext");let[u]=i.matches.slice(-1),f={...zo(n||".",{relative:r})},d=Vn();if(n==null){f.search=d.search;let m=new URLSearchParams(f.search),v=m.getAll("index");if(v.some(x=>x==="")){m.delete("index"),v.filter(h=>h).forEach(h=>m.append("index",h));let x=m.toString();f.search=x?`?${x}`:""}}return(!n||n===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(f.pathname=f.pathname==="/"?o:Bn([o,f.pathname])),_o(f)}function rw(n,{relative:r}={}){let o=b.useContext(Sv);tt(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=kv("useViewTransitionState"),u=zo(n,{relative:r});if(!o.isTransitioning)return!1;let f=ca(o.currentLocation.pathname,i)||o.currentLocation.pathname,d=ca(o.nextLocation.pathname,i)||o.nextLocation.pathname;return vs(u.pathname,d)!=null||vs(u.pathname,f)!=null}var ko=mv();const Lv=dv(ko),ow="/api";function iw(n,r){if(typeof n=="string"&&n)return n;if(n&&typeof n=="object"){const o=n,i=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return o.error;if(typeof(i==null?void 0:i.message)=="string"&&i.message)return i.message;if(typeof o.message=="string"&&o.message)return o.message}return r}async function Ae(n,r){const o=await fetch(`${ow}${n}`,{...r,headers:{"Content-Type":"application/json",...r==null?void 0:r.headers}});if(!o.ok){const i=await o.json().catch(()=>o.statusText);throw new Error(iw(i,`HTTP ${o.status}`))}return o.json()}function sw(){return Ae("/system/info")}function KR(n){return Ae("/system/transport",{method:"POST",body:JSON.stringify({type:n})})}function cw(){return Ae("/cluster/state")}function PR(){return Ae("/cluster/promote",{method:"POST"})}function JR(n){return Ae("/cluster/connect",{method:"POST",body:JSON.stringify(n)})}function IR(){return Ae("/cluster/disconnect",{method:"POST"})}function uw(n){return Ae(`/node-operations/${n}`)}async function fw(n={}){const r=new URLSearchParams;n.nodeId&&r.set("nodeId",n.nodeId),n.status&&r.set("status",n.status),n.kind&&r.set("kind",n.kind);const o=r.toString();return(await Ae(`/node-operations${o?`?${o}`:""}`)).operations}function dw(n,r){return Ae(`/nodes/${n}/agents/${r}/upgrade`,{method:"POST"})}function FR(n,r){return Ae(`/nodes/${n}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:r})})}function WR(n,r={}){const o=new URLSearchParams;r.path&&o.set("path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),100))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),r.directoriesOnly!==void 0&&o.set("directoriesOnly",String(r.directoriesOnly)),r.allowAbsolute!==void 0&&o.set("allowAbsolute",String(r.allowAbsolute));const i=o.toString();return Ae(`/nodes/${n}/workdir/tree${i?`?${i}`:""}`)}function e_(n,r={}){const o=new URLSearchParams;r.path&&o.set("path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),20))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),r.allowAbsolute!==void 0&&o.set("allowAbsolute",String(r.allowAbsolute));const i=o.toString();return Ae(`/nodes/${n}/workdir/branch${i?`?${i}`:""}`)}function t_(n,r){const o=new URLSearchParams;return o.set("agent",r.agent),o.set("limit",String(Math.min(Math.max(1,r.limit),100))),Ae(`/nodes/${n}/native-sessions?${o.toString()}`)}function n_(n,r){return Ae(`/nodes/${n}/workdir/branch`,{method:"POST",body:JSON.stringify({path:r.path,branchName:r.branchName,startPoint:r.startPoint,limit:r.limit,offset:r.offset,allowAbsolute:r.allowAbsolute})})}function a_(n,r){return Ae(`/nodes/${n}/terminal/sessions`,{method:"POST",body:JSON.stringify(r)})}function l_(n){return Ae(`/nodes/${n}/terminal/sessions`)}function r_(n,r){return Ae(`/nodes/${n}/terminal/sessions/${r}`)}function o_(n,r){return Ae(`/nodes/${n}/terminal/sessions/${r}/stop`,{method:"POST"})}async function i_(n){const r=new URLSearchParams;n!=null&&n.status&&r.set("status",n.status),n!=null&&n.assignedTo&&r.set("assignedTo",n.assignedTo),n!=null&&n.priority&&r.set("priority",n.priority);{const u=Math.min(Math.max(1,n.limit),100);r.set("limit",String(u))}n!=null&&n.offset&&r.set("offset",String(n.offset));const o=r.toString();return(await Ae(`/tasks${o?`?${o}`:""}`)).tasks}function s_(n){return Ae(`/tasks/${n}`)}function c_(n){return Ae("/tasks",{method:"POST",body:JSON.stringify(n)})}function u_(n){return Ae("/tasks/import-session",{method:"POST",body:JSON.stringify(n)})}function f_(n){return Ae("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:n})})}function d_(n){return Ae("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:n})})}function m_(n){return Ae(`/tasks/${n}/cancel`,{method:"POST"})}function p_(n){return Ae(`/tasks/${n}/retry`,{method:"POST"})}function h_(n,r){return Ae(`/tasks/${n}/logs`)}function g_(n,r){return Ae(`/tasks/${n}/message`,{method:"POST",body:JSON.stringify({content:r})})}function v_(n,r){return Ae(`/tasks/${n}/share`,{method:"POST",body:JSON.stringify(r)})}function y_(n){return Ae(`/tasks/${n}/share`,{method:"DELETE"})}function b_(n){return Ae(`/shared/conversations/${encodeURIComponent(n)}`)}function x_(n,r){return Ae(`/shared/conversations/${encodeURIComponent(n)}/logs`)}function S_(n){return Ae(`/shared/conversations/${encodeURIComponent(n)}/output`)}function w_(n,r="."){return Ae(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}function E_(n,r){return Ae(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}function N_(n,r){return Ae(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(r?{path:r}:{})})}function mw(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}function T_(n){return Ae(`/tasks/${n}/output`)}function C_(n,r="."){return Ae(`/tasks/${n}/output/tree?path=${encodeURIComponent(r)}`)}function A_(n,r){return Ae(`/tasks/${n}/output/content?path=${encodeURIComponent(r)}`)}function R_(n,r){return Ae(`/tasks/${n}/output/preview-sessions`,{method:"POST",body:JSON.stringify(mw(r))})}function __(n){return Ae(`/tasks/${n}/output/diff`)}function pw(n,r,o=!0){const i=b.useRef(n);b.useEffect(()=>{i.current=n},[n]),b.useEffect(()=>{if(!o)return;const u=()=>i.current();u();const f=setInterval(u,r);return()=>clearInterval(f)},[r,o])}let hw=0;function gw(n=50){const[r,o]=b.useState([]),[i,u]=b.useState(!1),f=b.useRef(null),d=b.useRef(0),m=b.useRef(new Map);b.useEffect(()=>{const x=new EventSource("/api/events");f.current=x,x.onopen=()=>u(!0),x.onerror=()=>u(!1);const h=["node.joined","node.left","node.status","node.operation.created","node.operation.updated","task.created","task.assigned","task.status","task.updated","task.deleted","task.output","election.started","election.complete","cluster.state","transport.changed"];for(const w of h)x.addEventListener(w,E=>{const C={id:String(++hw),type:w,data:JSON.parse(E.data),timestamp:Date.now()};o(N=>[C,...N].slice(0,n));for(const[,{pattern:N,callback:T}]of m.current)w.startsWith(N)&&T(C)});return()=>{x.close(),f.current=null,u(!1)}},[n]);const v=b.useCallback((x,h)=>{const w=++d.current;return m.current.set(w,{pattern:x,callback:h}),()=>{m.current.delete(w)}},[]),p=b.useCallback(()=>o([]),[]);return{events:r,connected:i,subscribe:v,clearEvents:p}}const Uv=b.createContext(null);function vw({children:n}){const[r,o]=b.useState(null),[i,u]=b.useState(null),[f,d]=b.useState(!0),[m,v]=b.useState(null),{events:p,connected:x,subscribe:h}=gw(),w=b.useCallback(async()=>{try{const[E,C]=await Promise.all([cw(),sw()]),N=E,T=C.nodeId??C.id,A=N.nodes??[],j=A.find(B=>B.id===T)??{id:T,name:C.name,endpoint:C.endpoint,role:C.role,status:C.status,capabilities:C.capabilities,joinedAt:C.joinedAt,lastHeartbeat:C.lastHeartbeat},D=N.leaderId?A.find(B=>B.id===N.leaderId)??null:null;o({leader:D?{id:D.id,name:D.name,endpoint:D.endpoint,...D.dashboardOrigin?{dashboardOrigin:D.dashboardOrigin}:{}}:null,term:N.term??0,nodes:A,self:j,taskSummary:N.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}}),u(C),v(null)}catch(E){v(E instanceof Error?E.message:"Failed to fetch cluster state")}finally{d(!1)}},[]);return pw(w,1e4),b.useEffect(()=>{const E=[h("cluster",w),h("election",w),h("node",w),h("transport",w),h("task",w)];return()=>E.forEach(C=>C())},[h,w]),y.jsx(Uv.Provider,{value:{cluster:r,systemInfo:i,events:p,sseConnected:x,subscribe:h,refresh:w,loading:f,error:m},children:n})}function Bv(){const n=b.useContext(Uv);if(!n)throw new Error("useCluster must be used within ClusterProvider");return n}/**
62
- * @license lucide-react v1.7.0 - ISC
63
- *
64
- * This source code is licensed under the ISC license.
65
- * See the LICENSE file in the root directory of this source tree.
66
- */const Hv=(...n)=>n.filter((r,o,i)=>!!r&&r.trim()!==""&&i.indexOf(r)===o).join(" ").trim();/**
67
- * @license lucide-react v1.7.0 - ISC
68
- *
69
- * This source code is licensed under the ISC license.
70
- * See the LICENSE file in the root directory of this source tree.
71
- */const yw=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
72
- * @license lucide-react v1.7.0 - ISC
73
- *
74
- * This source code is licensed under the ISC license.
75
- * See the LICENSE file in the root directory of this source tree.
76
- */const bw=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,i)=>i?i.toUpperCase():o.toLowerCase());/**
77
- * @license lucide-react v1.7.0 - ISC
78
- *
79
- * This source code is licensed under the ISC license.
80
- * See the LICENSE file in the root directory of this source tree.
81
- */const Cg=n=>{const r=bw(n);return r.charAt(0).toUpperCase()+r.slice(1)};/**
82
- * @license lucide-react v1.7.0 - ISC
83
- *
84
- * This source code is licensed under the ISC license.
85
- * See the LICENSE file in the root directory of this source tree.
86
- */var sf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
87
- * @license lucide-react v1.7.0 - ISC
88
- *
89
- * This source code is licensed under the ISC license.
90
- * See the LICENSE file in the root directory of this source tree.
91
- */const xw=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},Sw=b.createContext({}),ww=()=>b.useContext(Sw),Ew=b.forwardRef(({color:n,size:r,strokeWidth:o,absoluteStrokeWidth:i,className:u="",children:f,iconNode:d,...m},v)=>{const{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:h=!1,color:w="currentColor",className:E=""}=ww()??{},C=i??h?Number(o??x)*24/Number(r??p):o??x;return b.createElement("svg",{ref:v,...sf,width:r??p??sf.width,height:r??p??sf.height,stroke:n??w,strokeWidth:C,className:Hv("lucide",E,u),...!f&&!xw(m)&&{"aria-hidden":"true"},...m},[...d.map(([N,T])=>b.createElement(N,T)),...Array.isArray(f)?f:[f]])});/**
92
- * @license lucide-react v1.7.0 - ISC
93
- *
94
- * This source code is licensed under the ISC license.
95
- * See the LICENSE file in the root directory of this source tree.
96
- */const Je=(n,r)=>{const o=b.forwardRef(({className:i,...u},f)=>b.createElement(Ew,{ref:f,iconNode:r,className:Hv(`lucide-${yw(Cg(n))}`,`lucide-${n}`,i),...u}));return o.displayName=Cg(n),o};/**
97
- * @license lucide-react v1.7.0 - ISC
98
- *
99
- * This source code is licensed under the ISC license.
100
- * See the LICENSE file in the root directory of this source tree.
101
- */const Nw=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Vv=Je("activity",Nw);/**
102
- * @license lucide-react v1.7.0 - ISC
103
- *
104
- * This source code is licensed under the ISC license.
105
- * See the LICENSE file in the root directory of this source tree.
106
- */const Tw=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Cw=Je("book-open",Tw);/**
107
- * @license lucide-react v1.7.0 - ISC
108
- *
109
- * This source code is licensed under the ISC license.
110
- * See the LICENSE file in the root directory of this source tree.
111
- */const Aw=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Yv=Je("bot",Aw);/**
112
- * @license lucide-react v1.7.0 - ISC
113
- *
114
- * This source code is licensed under the ISC license.
115
- * See the LICENSE file in the root directory of this source tree.
116
- */const Rw=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],_w=Je("cable",Rw);/**
117
- * @license lucide-react v1.7.0 - ISC
118
- *
119
- * This source code is licensed under the ISC license.
120
- * See the LICENSE file in the root directory of this source tree.
121
- */const Ow=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],qv=Je("check",Ow);/**
122
- * @license lucide-react v1.7.0 - ISC
123
- *
124
- * This source code is licensed under the ISC license.
125
- * See the LICENSE file in the root directory of this source tree.
126
- */const Mw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Gv=Je("chevron-down",Mw);/**
127
- * @license lucide-react v1.7.0 - ISC
128
- *
129
- * This source code is licensed under the ISC license.
130
- * See the LICENSE file in the root directory of this source tree.
131
- */const Dw=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],jw=Je("chevron-up",Dw);/**
132
- * @license lucide-react v1.7.0 - ISC
133
- *
134
- * This source code is licensed under the ISC license.
135
- * See the LICENSE file in the root directory of this source tree.
136
- */const zw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],kw=Je("circle-check",zw);/**
137
- * @license lucide-react v1.7.0 - ISC
138
- *
139
- * This source code is licensed under the ISC license.
140
- * See the LICENSE file in the root directory of this source tree.
141
- */const Lw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Uw=Je("circle-x",Lw);/**
142
- * @license lucide-react v1.7.0 - ISC
143
- *
144
- * This source code is licensed under the ISC license.
145
- * See the LICENSE file in the root directory of this source tree.
146
- */const Bw=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Hw=Je("copy",Bw);/**
147
- * @license lucide-react v1.7.0 - ISC
148
- *
149
- * This source code is licensed under the ISC license.
150
- * See the LICENSE file in the root directory of this source tree.
151
- */const Vw=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Yw=Je("cpu",Vw);/**
152
- * @license lucide-react v1.7.0 - ISC
153
- *
154
- * This source code is licensed under the ISC license.
155
- * See the LICENSE file in the root directory of this source tree.
156
- */const qw=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Gw=Je("external-link",qw);/**
157
- * @license lucide-react v1.7.0 - ISC
158
- *
159
- * This source code is licensed under the ISC license.
160
- * See the LICENSE file in the root directory of this source tree.
161
- */const $w=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],Xw=Je("folder-tree",$w);/**
162
- * @license lucide-react v1.7.0 - ISC
163
- *
164
- * This source code is licensed under the ISC license.
165
- * See the LICENSE file in the root directory of this source tree.
166
- */const Qw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Zw=Je("info",Qw);/**
167
- * @license lucide-react v1.7.0 - ISC
168
- *
169
- * This source code is licensed under the ISC license.
170
- * See the LICENSE file in the root directory of this source tree.
171
- */const Kw=[["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m14.305 7.53.923-.382",key:"1mlnsw"}],["path",{d:"m15.228 4.852-.923-.383",key:"82mpwg"}],["path",{d:"m16.852 3.228-.383-.924",key:"ln4sir"}],["path",{d:"m16.852 8.772-.383.923",key:"1dejw0"}],["path",{d:"m19.148 3.228.383-.924",key:"192kgf"}],["path",{d:"m19.53 9.696-.382-.924",key:"fiavlr"}],["path",{d:"m20.772 4.852.924-.383",key:"1j8mgp"}],["path",{d:"m20.772 7.148.924.383",key:"zix9be"}],["path",{d:"M22 13v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7",key:"1tnzv8"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}]],Pw=Je("monitor-cog",Kw);/**
172
- * @license lucide-react v1.7.0 - ISC
173
- *
174
- * This source code is licensed under the ISC license.
175
- * See the LICENSE file in the root directory of this source tree.
176
- */const Jw=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],$v=Je("monitor",Jw);/**
177
- * @license lucide-react v1.7.0 - ISC
178
- *
179
- * This source code is licensed under the ISC license.
180
- * See the LICENSE file in the root directory of this source tree.
181
- */const Iw=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Xv=Je("moon",Iw);/**
182
- * @license lucide-react v1.7.0 - ISC
183
- *
184
- * This source code is licensed under the ISC license.
185
- * See the LICENSE file in the root directory of this source tree.
186
- */const Fw=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Qv=Je("radio",Fw);/**
187
- * @license lucide-react v1.7.0 - ISC
188
- *
189
- * This source code is licensed under the ISC license.
190
- * See the LICENSE file in the root directory of this source tree.
191
- */const Ww=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],eE=Je("server",Ww);/**
192
- * @license lucide-react v1.7.0 - ISC
193
- *
194
- * This source code is licensed under the ISC license.
195
- * See the LICENSE file in the root directory of this source tree.
196
- */const tE=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],nE=Je("settings",tE);/**
197
- * @license lucide-react v1.7.0 - ISC
198
- *
199
- * This source code is licensed under the ISC license.
200
- * See the LICENSE file in the root directory of this source tree.
201
- */const aE=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],lE=Je("shield",aE);/**
202
- * @license lucide-react v1.7.0 - ISC
203
- *
204
- * This source code is licensed under the ISC license.
205
- * See the LICENSE file in the root directory of this source tree.
206
- */const rE=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],oE=Je("sparkles",rE);/**
207
- * @license lucide-react v1.7.0 - ISC
208
- *
209
- * This source code is licensed under the ISC license.
210
- * See the LICENSE file in the root directory of this source tree.
211
- */const iE=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Zv=Je("sun",iE);/**
212
- * @license lucide-react v1.7.0 - ISC
213
- *
214
- * This source code is licensed under the ISC license.
215
- * See the LICENSE file in the root directory of this source tree.
216
- */const sE=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],cE=Je("terminal",sE);/**
217
- * @license lucide-react v1.7.0 - ISC
218
- *
219
- * This source code is licensed under the ISC license.
220
- * See the LICENSE file in the root directory of this source tree.
221
- */const uE=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],fE=Je("wifi-off",uE);/**
222
- * @license lucide-react v1.7.0 - ISC
223
- *
224
- * This source code is licensed under the ISC license.
225
- * See the LICENSE file in the root directory of this source tree.
226
- */const dE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Kv=Je("x",dE);function Pv(n){var r,o,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(r=0;r<u;r++)n[r]&&(o=Pv(n[r]))&&(i&&(i+=" "),i+=o)}else for(o in n)n[o]&&(i&&(i+=" "),i+=o);return i}function Jv(){for(var n,r,o=0,i="",u=arguments.length;o<u;o++)(n=arguments[o])&&(r=Pv(n))&&(i&&(i+=" "),i+=r);return i}const mE=(n,r)=>{const o=new Array(n.length+r.length);for(let i=0;i<n.length;i++)o[i]=n[i];for(let i=0;i<r.length;i++)o[n.length+i]=r[i];return o},pE=(n,r)=>({classGroupId:n,validator:r}),Iv=(n=new Map,r=null,o)=>({nextPart:n,validators:r,classGroupId:o}),ys="-",Ag=[],hE="arbitrary..",gE=n=>{const r=yE(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return vE(d);const m=d.split(ys),v=m[0]===""&&m.length>1?1:0;return Fv(m,v,r)},getConflictingClassGroupIds:(d,m)=>{if(m){const v=i[d],p=o[d];return v?p?mE(p,v):v:p||Ag}return o[d]||Ag}}},Fv=(n,r,o)=>{if(n.length-r===0)return o.classGroupId;const u=n[r],f=o.nextPart.get(u);if(f){const p=Fv(n,r+1,f);if(p)return p}const d=o.validators;if(d===null)return;const m=r===0?n.join(ys):n.slice(r).join(ys),v=d.length;for(let p=0;p<v;p++){const x=d[p];if(x.validator(m))return x.classGroupId}},vE=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=n.slice(1,-1),o=r.indexOf(":"),i=r.slice(0,o);return i?hE+i:void 0})(),yE=n=>{const{theme:r,classGroups:o}=n;return bE(o,r)},bE=(n,r)=>{const o=Iv();for(const i in n){const u=n[i];$f(u,o,i,r)}return o},$f=(n,r,o,i)=>{const u=n.length;for(let f=0;f<u;f++){const d=n[f];xE(d,r,o,i)}},xE=(n,r,o,i)=>{if(typeof n=="string"){SE(n,r,o);return}if(typeof n=="function"){wE(n,r,o,i);return}EE(n,r,o,i)},SE=(n,r,o)=>{const i=n===""?r:Wv(r,n);i.classGroupId=o},wE=(n,r,o,i)=>{if(NE(n)){$f(n(i),r,o,i);return}r.validators===null&&(r.validators=[]),r.validators.push(pE(o,n))},EE=(n,r,o,i)=>{const u=Object.entries(n),f=u.length;for(let d=0;d<f;d++){const[m,v]=u[d];$f(v,Wv(r,m),o,i)}},Wv=(n,r)=>{let o=n;const i=r.split(ys),u=i.length;for(let f=0;f<u;f++){const d=i[f];let m=o.nextPart.get(d);m||(m=Iv(),o.nextPart.set(d,m)),o=m}return o},NE=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,TE=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),i=Object.create(null);const u=(f,d)=>{o[f]=d,r++,r>n&&(r=0,i=o,o=Object.create(null))};return{get(f){let d=o[f];if(d!==void 0)return d;if((d=i[f])!==void 0)return u(f,d),d},set(f,d){f in o?o[f]=d:u(f,d)}}},Ef="!",Rg=":",CE=[],_g=(n,r,o,i,u)=>({modifiers:n,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:i,isExternal:u}),AE=n=>{const{prefix:r,experimentalParseClassName:o}=n;let i=u=>{const f=[];let d=0,m=0,v=0,p;const x=u.length;for(let N=0;N<x;N++){const T=u[N];if(d===0&&m===0){if(T===Rg){f.push(u.slice(v,N)),v=N+1;continue}if(T==="/"){p=N;continue}}T==="["?d++:T==="]"?d--:T==="("?m++:T===")"&&m--}const h=f.length===0?u:u.slice(v);let w=h,E=!1;h.endsWith(Ef)?(w=h.slice(0,-1),E=!0):h.startsWith(Ef)&&(w=h.slice(1),E=!0);const C=p&&p>v?p-v:void 0;return _g(f,E,w,C)};if(r){const u=r+Rg,f=i;i=d=>d.startsWith(u)?f(d.slice(u.length)):_g(CE,!1,d,void 0,!0)}if(o){const u=i;i=f=>o({className:f,parseClassName:u})}return i},RE=n=>{const r=new Map;return n.orderSensitiveModifiers.forEach((o,i)=>{r.set(o,1e6+i)}),o=>{const i=[];let u=[];for(let f=0;f<o.length;f++){const d=o[f],m=d[0]==="[",v=r.has(d);m||v?(u.length>0&&(u.sort(),i.push(...u),u=[]),i.push(d)):u.push(d)}return u.length>0&&(u.sort(),i.push(...u)),i}},_E=n=>({cache:TE(n.cacheSize),parseClassName:AE(n),sortModifiers:RE(n),...gE(n)}),OE=/\s+/,ME=(n,r)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:u,sortModifiers:f}=r,d=[],m=n.trim().split(OE);let v="";for(let p=m.length-1;p>=0;p-=1){const x=m[p],{isExternal:h,modifiers:w,hasImportantModifier:E,baseClassName:C,maybePostfixModifierPosition:N}=o(x);if(h){v=x+(v.length>0?" "+v:v);continue}let T=!!N,A=i(T?C.substring(0,N):C);if(!A){if(!T){v=x+(v.length>0?" "+v:v);continue}if(A=i(C),!A){v=x+(v.length>0?" "+v:v);continue}T=!1}const j=w.length===0?"":w.length===1?w[0]:f(w).join(":"),D=E?j+Ef:j,B=D+A;if(d.indexOf(B)>-1)continue;d.push(B);const K=u(A,T);for(let J=0;J<K.length;++J){const q=K[J];d.push(D+q)}v=x+(v.length>0?" "+v:v)}return v},DE=(...n)=>{let r=0,o,i,u="";for(;r<n.length;)(o=n[r++])&&(i=ey(o))&&(u&&(u+=" "),u+=i);return u},ey=n=>{if(typeof n=="string")return n;let r,o="";for(let i=0;i<n.length;i++)n[i]&&(r=ey(n[i]))&&(o&&(o+=" "),o+=r);return o},jE=(n,...r)=>{let o,i,u,f;const d=v=>{const p=r.reduce((x,h)=>h(x),n());return o=_E(p),i=o.cache.get,u=o.cache.set,f=m,m(v)},m=v=>{const p=i(v);if(p)return p;const x=ME(v,o);return u(v,x),x};return f=d,(...v)=>f(DE(...v))},zE=[],mt=n=>{const r=o=>o[n]||zE;return r.isThemeGetter=!0,r},ty=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ny=/^\((?:(\w[\w-]*):)?(.+)\)$/i,kE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,LE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,UE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,BE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,HE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,VE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ya=n=>kE.test(n),Re=n=>!!n&&!Number.isNaN(Number(n)),qa=n=>!!n&&Number.isInteger(Number(n)),cf=n=>n.endsWith("%")&&Re(n.slice(0,-1)),ia=n=>LE.test(n),ay=()=>!0,YE=n=>UE.test(n)&&!BE.test(n),Xf=()=>!1,qE=n=>HE.test(n),GE=n=>VE.test(n),$E=n=>!ce(n)&&!ue(n),XE=n=>Ja(n,oy,Xf),ce=n=>ty.test(n),Sl=n=>Ja(n,iy,YE),Og=n=>Ja(n,WE,Re),QE=n=>Ja(n,cy,ay),ZE=n=>Ja(n,sy,Xf),Mg=n=>Ja(n,ly,Xf),KE=n=>Ja(n,ry,GE),es=n=>Ja(n,uy,qE),ue=n=>ny.test(n),Ao=n=>Rl(n,iy),PE=n=>Rl(n,sy),Dg=n=>Rl(n,ly),JE=n=>Rl(n,oy),IE=n=>Rl(n,ry),ts=n=>Rl(n,uy,!0),FE=n=>Rl(n,cy,!0),Ja=(n,r,o)=>{const i=ty.exec(n);return i?i[1]?r(i[1]):o(i[2]):!1},Rl=(n,r,o=!1)=>{const i=ny.exec(n);return i?i[1]?r(i[1]):o:!1},ly=n=>n==="position"||n==="percentage",ry=n=>n==="image"||n==="url",oy=n=>n==="length"||n==="size"||n==="bg-size",iy=n=>n==="length",WE=n=>n==="number",sy=n=>n==="family-name",cy=n=>n==="number"||n==="weight",uy=n=>n==="shadow",eN=()=>{const n=mt("color"),r=mt("font"),o=mt("text"),i=mt("font-weight"),u=mt("tracking"),f=mt("leading"),d=mt("breakpoint"),m=mt("container"),v=mt("spacing"),p=mt("radius"),x=mt("shadow"),h=mt("inset-shadow"),w=mt("text-shadow"),E=mt("drop-shadow"),C=mt("blur"),N=mt("perspective"),T=mt("aspect"),A=mt("ease"),j=mt("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],K=()=>[...B(),ue,ce],J=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],V=()=>[ue,ce,v],re=()=>[Ya,"full","auto",...V()],ve=()=>[qa,"none","subgrid",ue,ce],ye=()=>["auto",{span:["full",qa,ue,ce]},qa,ue,ce],de=()=>[qa,"auto",ue,ce],ge=()=>["auto","min","max","fr",ue,ce],be=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],fe=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...V()],Y=()=>[Ya,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],P=()=>[Ya,"screen","full","dvw","lvw","svw","min","max","fit",...V()],oe=()=>[Ya,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],I=()=>[n,ue,ce],_=()=>[...B(),Dg,Mg,{position:[ue,ce]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",JE,XE,{size:[ue,ce]}],F=()=>[cf,Ao,Sl],W=()=>["","none","full",p,ue,ce],ae=()=>["",Re,Ao,Sl],ee=()=>["solid","dashed","dotted","double"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[Re,cf,Dg,Mg],ne=()=>["","none",C,ue,ce],pe=()=>["none",Re,ue,ce],he=()=>["none",Re,ue,ce],qe=()=>[Re,ue,ce],Le=()=>[Ya,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ia],breakpoint:[ia],color:[ay],container:[ia],"drop-shadow":[ia],ease:["in","out","in-out"],font:[$E],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ia],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ia],shadow:[ia],spacing:["px",Re],text:[ia],"text-shadow":[ia],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ya,ce,ue,T]}],container:["container"],columns:[{columns:[Re,ce,ue,m]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:K()}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:re()}],"inset-x":[{"inset-x":re()}],"inset-y":[{"inset-y":re()}],start:[{"inset-s":re(),start:re()}],end:[{"inset-e":re(),end:re()}],"inset-bs":[{"inset-bs":re()}],"inset-be":[{"inset-be":re()}],top:[{top:re()}],right:[{right:re()}],bottom:[{bottom:re()}],left:[{left:re()}],visibility:["visible","invisible","collapse"],z:[{z:[qa,"auto",ue,ce]}],basis:[{basis:[Ya,"full","auto",m,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Re,Ya,"auto","initial","none",ce]}],grow:[{grow:["",Re,ue,ce]}],shrink:[{shrink:["",Re,ue,ce]}],order:[{order:[qa,"first","last","none",ue,ce]}],"grid-cols":[{"grid-cols":ve()}],"col-start-end":[{col:ye()}],"col-start":[{"col-start":de()}],"col-end":[{"col-end":de()}],"grid-rows":[{"grid-rows":ve()}],"row-start-end":[{row:ye()}],"row-start":[{"row-start":de()}],"row-end":[{"row-end":de()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ge()}],"auto-rows":[{"auto-rows":ge()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...be(),"normal"]}],"justify-items":[{"justify-items":[...fe(),"normal"]}],"justify-self":[{"justify-self":["auto",...fe()]}],"align-content":[{content:["normal",...be()]}],"align-items":[{items:[...fe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...fe(),{baseline:["","last"]}]}],"place-content":[{"place-content":be()}],"place-items":[{"place-items":[...fe(),"baseline"]}],"place-self":[{"place-self":["auto",...fe()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pbs:[{pbs:V()}],pbe:[{pbe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...P()]}],"min-inline-size":[{"min-inline":["auto",...P()]}],"max-inline-size":[{"max-inline":["none",...P()]}],"block-size":[{block:["auto",...oe()]}],"min-block-size":[{"min-block":["auto",...oe()]}],"max-block-size":[{"max-block":["none",...oe()]}],w:[{w:[m,"screen",...Y()]}],"min-w":[{"min-w":[m,"screen","none",...Y()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[d]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",o,Ao,Sl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,FE,QE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",cf,ce]}],"font-family":[{font:[PE,ZE,r]}],"font-features":[{"font-features":[ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[u,ue,ce]}],"line-clamp":[{"line-clamp":[Re,"none",ue,Og]}],leading:[{leading:[f,...V()]}],"list-image":[{"list-image":["none",ue,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ue,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",ue,Sl]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Re,"auto",ue,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue,ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qa,ue,ce],radial:["",ue,ce],conic:[qa,ue,ce]},IE,KE]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,ue,ce]}],"outline-w":[{outline:["",Re,Ao,Sl]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",x,ts,es]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",h,ts,es]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Re,Sl]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",w,ts,es]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Re,ue,ce]}],"mix-blend":[{"mix-blend":[...le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Re]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[ue,ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[Re]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ue,ce]}],filter:[{filter:["","none",ue,ce]}],blur:[{blur:ne()}],brightness:[{brightness:[Re,ue,ce]}],contrast:[{contrast:[Re,ue,ce]}],"drop-shadow":[{"drop-shadow":["","none",E,ts,es]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",Re,ue,ce]}],"hue-rotate":[{"hue-rotate":[Re,ue,ce]}],invert:[{invert:["",Re,ue,ce]}],saturate:[{saturate:[Re,ue,ce]}],sepia:[{sepia:["",Re,ue,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",ue,ce]}],"backdrop-blur":[{"backdrop-blur":ne()}],"backdrop-brightness":[{"backdrop-brightness":[Re,ue,ce]}],"backdrop-contrast":[{"backdrop-contrast":[Re,ue,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,ue,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,ue,ce]}],"backdrop-invert":[{"backdrop-invert":["",Re,ue,ce]}],"backdrop-opacity":[{"backdrop-opacity":[Re,ue,ce]}],"backdrop-saturate":[{"backdrop-saturate":[Re,ue,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,ue,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ue,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Re,"initial",ue,ce]}],ease:[{ease:["linear","initial",A,ue,ce]}],delay:[{delay:[Re,ue,ce]}],animate:[{animate:["none",j,ue,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,ue,ce]}],"perspective-origin":[{"perspective-origin":K()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":["scale-3d"],skew:[{skew:qe()}],"skew-x":[{"skew-x":qe()}],"skew-y":[{"skew-y":qe()}],transform:[{transform:[ue,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:K()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Le()}],"translate-x":[{"translate-x":Le()}],"translate-y":[{"translate-y":Le()}],"translate-z":[{"translate-z":Le()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue,ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mbs":[{"scroll-mbs":V()}],"scroll-mbe":[{"scroll-mbe":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pbs":[{"scroll-pbs":V()}],"scroll-pbe":[{"scroll-pbe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ue,ce]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[Re,Ao,Sl,Og]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},tN=jE(eN);function we(...n){return tN(Jv(n))}const jg=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,zg=Jv,fy=(n,r)=>o=>{var i;if((r==null?void 0:r.variants)==null)return zg(n,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:u,defaultVariants:f}=r,d=Object.keys(u).map(p=>{const x=o==null?void 0:o[p],h=f==null?void 0:f[p];if(x===null)return null;const w=jg(x)||jg(h);return u[p][w]}),m=o&&Object.entries(o).reduce((p,x)=>{let[h,w]=x;return w===void 0||(p[h]=w),p},{}),v=r==null||(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((p,x)=>{let{class:h,className:w,...E}=x;return Object.entries(E).every(C=>{let[N,T]=C;return Array.isArray(T)?T.includes({...f,...m}[N]):{...f,...m}[N]===T})?[...p,h,w]:p},[]);return zg(n,d,v,o==null?void 0:o.class,o==null?void 0:o.className)},nN=fy("inline-flex items-center rounded-[12px] border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function yt({className:n,variant:r,...o}){return y.jsx("div",{className:we(nN({variant:r}),n),...o})}const aN={online:"bg-green-500",busy:"bg-yellow-500",offline:"bg-red-500"};function dy({status:n}){return y.jsxs("span",{className:"relative inline-flex h-2.5 w-2.5",children:[n==="online"&&y.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-green-500 opacity-30"}),y.jsx("span",{className:we("relative inline-flex h-2.5 w-2.5 rounded-full",aN[n])})]})}function lN({role:n}){return y.jsx(yt,{variant:n==="leader"?"default":"secondary",className:"text-[11px]",children:n})}const rN={pending:{variant:"secondary",dotClass:"bg-muted-foreground",className:"border-transparent bg-muted/55 text-muted-foreground"},assigned:{variant:"outline",dotClass:"bg-teal-500",className:"border-teal-500/20 bg-teal-500/8 text-teal-700 dark:text-teal-300"},running:{variant:"outline",dotClass:"bg-amber-500",className:"border-amber-500/22 bg-amber-500/9 text-amber-700 dark:text-amber-300"},completed:{variant:"outline",dotClass:"bg-emerald-500",className:"border-emerald-500/18 bg-emerald-500/8 text-emerald-700 dark:text-emerald-300"},failed:{variant:"destructive",dotClass:"bg-red-200",className:"border-destructive/20 bg-destructive/90 text-destructive-foreground"},cancelled:{variant:"secondary",dotClass:"bg-muted-foreground",className:"border-transparent bg-muted/55 text-muted-foreground"},archived:{variant:"secondary",dotClass:"bg-slate-400",className:"border-transparent bg-muted/50 text-muted-foreground"}};function O_({status:n}){const r=rN[n];return y.jsxs(yt,{variant:r.variant,className:we("gap-1 rounded-[9px] px-1.5 py-0 text-[10px] font-medium leading-4 shadow-none",r.className),children:[y.jsx("span",{className:we("h-[5px] w-[5px] rounded-full",r.dotClass)}),n]})}const oN={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function M_({priority:n}){const r=oN[n];return y.jsx(yt,{variant:r.variant,className:"rounded-[9px] px-1.5 py-0 text-[10px] leading-4 shadow-none",children:r.label})}function iN(n){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}const sN=n=>{switch(n){case"success":return fN;case"info":return mN;case"warning":return dN;case"error":return pN;default:return null}},cN=Array(12).fill(0),uN=({visible:n,className:r})=>te.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},te.createElement("div",{className:"sonner-spinner"},cN.map((o,i)=>te.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),fN=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},te.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"})),dN=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},te.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"})),mN=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},te.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"})),pN=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},te.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"})),hN=te.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"},te.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),te.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),gN=()=>{const[n,r]=te.useState(document.hidden);return te.useEffect(()=>{const o=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),n};let Nf=1;class vN{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{const o=this.subscribers.indexOf(r);this.subscribers.splice(o,1)}),this.publish=r=>{this.subscribers.forEach(o=>o(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var o;const{message:i,...u}=r,f=typeof(r==null?void 0:r.id)=="number"||((o=r.id)==null?void 0:o.length)>0?r.id:Nf++,d=this.toasts.find(v=>v.id===f),m=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),d?this.toasts=this.toasts.map(v=>v.id===f?(this.publish({...v,...r,id:f,title:i}),{...v,...r,id:f,dismissible:m,title:i}):v):this.addToast({title:i,...u,dismissible:m,id:f}),f},this.dismiss=r=>(r?(this.dismissedToasts.add(r),requestAnimationFrame(()=>this.subscribers.forEach(o=>o({id:r,dismiss:!0})))):this.toasts.forEach(o=>{this.subscribers.forEach(i=>i({id:o.id,dismiss:!0}))}),r),this.message=(r,o)=>this.create({...o,message:r}),this.error=(r,o)=>this.create({...o,message:r,type:"error"}),this.success=(r,o)=>this.create({...o,type:"success",message:r}),this.info=(r,o)=>this.create({...o,type:"info",message:r}),this.warning=(r,o)=>this.create({...o,type:"warning",message:r}),this.loading=(r,o)=>this.create({...o,type:"loading",message:r}),this.promise=(r,o)=>{if(!o)return;let i;o.loading!==void 0&&(i=this.create({...o,promise:r,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));const u=Promise.resolve(r instanceof Function?r():r);let f=i!==void 0,d;const m=u.then(async p=>{if(d=["resolve",p],te.isValidElement(p))f=!1,this.create({id:i,type:"default",message:p});else if(bN(p)&&!p.ok){f=!1;const h=typeof o.error=="function"?await o.error(`HTTP error! status: ${p.status}`):o.error,w=typeof o.description=="function"?await o.description(`HTTP error! status: ${p.status}`):o.description,C=typeof h=="object"&&!te.isValidElement(h)?h:{message:h};this.create({id:i,type:"error",description:w,...C})}else if(p instanceof Error){f=!1;const h=typeof o.error=="function"?await o.error(p):o.error,w=typeof o.description=="function"?await o.description(p):o.description,C=typeof h=="object"&&!te.isValidElement(h)?h:{message:h};this.create({id:i,type:"error",description:w,...C})}else if(o.success!==void 0){f=!1;const h=typeof o.success=="function"?await o.success(p):o.success,w=typeof o.description=="function"?await o.description(p):o.description,C=typeof h=="object"&&!te.isValidElement(h)?h:{message:h};this.create({id:i,type:"success",description:w,...C})}}).catch(async p=>{if(d=["reject",p],o.error!==void 0){f=!1;const x=typeof o.error=="function"?await o.error(p):o.error,h=typeof o.description=="function"?await o.description(p):o.description,E=typeof x=="object"&&!te.isValidElement(x)?x:{message:x};this.create({id:i,type:"error",description:h,...E})}}).finally(()=>{f&&(this.dismiss(i),i=void 0),o.finally==null||o.finally.call(o)}),v=()=>new Promise((p,x)=>m.then(()=>d[0]==="reject"?x(d[1]):p(d[1])).catch(x));return typeof i!="string"&&typeof i!="number"?{unwrap:v}:Object.assign(i,{unwrap:v})},this.custom=(r,o)=>{const i=(o==null?void 0:o.id)||Nf++;return this.create({jsx:r(i),id:i,...o}),i},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Gt=new vN,yN=(n,r)=>{const o=(r==null?void 0:r.id)||Nf++;return Gt.addToast({title:n,...r,id:o}),o},bN=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",xN=yN,SN=()=>Gt.toasts,wN=()=>Gt.getActiveToasts(),sa=Object.assign(xN,{success:Gt.success,info:Gt.info,warning:Gt.warning,error:Gt.error,custom:Gt.custom,message:Gt.message,promise:Gt.promise,dismiss:Gt.dismiss,loading:Gt.loading},{getHistory:SN,getToasts:wN});iN("[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 ns(n){return n.label!==void 0}const EN=3,NN="24px",TN="16px",kg=4e3,CN=356,AN=14,RN=45,_N=200;function On(...n){return n.filter(Boolean).join(" ")}function ON(n){const[r,o]=n.split("-"),i=[];return r&&i.push(r),o&&i.push(o),i}const MN=n=>{var r,o,i,u,f,d,m,v,p;const{invert:x,toast:h,unstyled:w,interacting:E,setHeights:C,visibleToasts:N,heights:T,index:A,toasts:j,expanded:D,removeToast:B,defaultRichColors:K,closeButton:J,style:q,cancelButtonStyle:V,actionButtonStyle:re,className:ve="",descriptionClassName:ye="",duration:de,position:ge,gap:be,expandByDefault:fe,classNames:O,icons:Y,closeButtonAriaLabel:P="Close toast"}=n,[oe,I]=te.useState(null),[_,G]=te.useState(null),[X,F]=te.useState(!1),[W,ae]=te.useState(!1),[ee,le]=te.useState(!1),[ie,ne]=te.useState(!1),[pe,he]=te.useState(!1),[qe,Le]=te.useState(0),[pt,bt]=te.useState(0),Ve=te.useRef(h.duration||de||kg),$t=te.useRef(null),Pe=te.useRef(null),mn=A===0,Mr=A+1<=N,_t=h.type,pa=h.dismissible!==!1,Ot=h.className||"",Vs=h.descriptionClassName||"",Wa=te.useMemo(()=>T.findIndex(Ee=>Ee.toastId===h.id)||0,[T,h.id]),Ho=te.useMemo(()=>{var Ee;return(Ee=h.closeButton)!=null?Ee:J},[h.closeButton,J]),el=te.useMemo(()=>h.duration||de||kg,[h.duration,de]),Dr=te.useRef(0),qn=te.useRef(0),Vo=te.useRef(0),ha=te.useRef(null),[tl,Mt]=ge.split("-"),pn=te.useMemo(()=>T.reduce((Ee,We,ht)=>ht>=Wa?Ee:Ee+We.height,0),[T,Wa]),Tt=gN(),Ys=h.invert||x,jr=_t==="loading";qn.current=te.useMemo(()=>Wa*be+pn,[Wa,pn]),te.useEffect(()=>{Ve.current=el},[el]),te.useEffect(()=>{F(!0)},[]),te.useEffect(()=>{const Ee=Pe.current;if(Ee){const We=Ee.getBoundingClientRect().height;return bt(We),C(ht=>[{toastId:h.id,height:We,position:h.position},...ht]),()=>C(ht=>ht.filter(Ct=>Ct.toastId!==h.id))}},[C,h.id]),te.useLayoutEffect(()=>{if(!X)return;const Ee=Pe.current,We=Ee.style.height;Ee.style.height="auto";const ht=Ee.getBoundingClientRect().height;Ee.style.height=We,bt(ht),C(Ct=>Ct.find(at=>at.toastId===h.id)?Ct.map(at=>at.toastId===h.id?{...at,height:ht}:at):[{toastId:h.id,height:ht,position:h.position},...Ct])},[X,h.title,h.description,C,h.id,h.jsx,h.action,h.cancel]);const Nn=te.useCallback(()=>{ae(!0),Le(qn.current),C(Ee=>Ee.filter(We=>We.toastId!==h.id)),setTimeout(()=>{B(h)},_N)},[h,B,C,qn]);te.useEffect(()=>{if(h.promise&&_t==="loading"||h.duration===1/0||h.type==="loading")return;let Ee;return D||E||Tt?(()=>{if(Vo.current<Dr.current){const Ct=new Date().getTime()-Dr.current;Ve.current=Ve.current-Ct}Vo.current=new Date().getTime()})():(()=>{Ve.current!==1/0&&(Dr.current=new Date().getTime(),Ee=setTimeout(()=>{h.onAutoClose==null||h.onAutoClose.call(h,h),Nn()},Ve.current))})(),()=>clearTimeout(Ee)},[D,E,h,_t,Tt,Nn]),te.useEffect(()=>{h.delete&&(Nn(),h.onDismiss==null||h.onDismiss.call(h,h))},[Nn,h.delete]);function Ol(){var Ee;if(Y!=null&&Y.loading){var We;return te.createElement("div",{className:On(O==null?void 0:O.loader,h==null||(We=h.classNames)==null?void 0:We.loader,"sonner-loader"),"data-visible":_t==="loading"},Y.loading)}return te.createElement(uN,{className:On(O==null?void 0:O.loader,h==null||(Ee=h.classNames)==null?void 0:Ee.loader),visible:_t==="loading"})}const Ml=h.icon||(Y==null?void 0:Y[_t])||sN(_t);var nl,Tn;return te.createElement("li",{tabIndex:0,ref:Pe,className:On(ve,Ot,O==null?void 0:O.toast,h==null||(r=h.classNames)==null?void 0:r.toast,O==null?void 0:O.default,O==null?void 0:O[_t],h==null||(o=h.classNames)==null?void 0:o[_t]),"data-sonner-toast":"","data-rich-colors":(nl=h.richColors)!=null?nl:K,"data-styled":!(h.jsx||h.unstyled||w),"data-mounted":X,"data-promise":!!h.promise,"data-swiped":pe,"data-removed":W,"data-visible":Mr,"data-y-position":tl,"data-x-position":Mt,"data-index":A,"data-front":mn,"data-swiping":ee,"data-dismissible":pa,"data-type":_t,"data-invert":Ys,"data-swipe-out":ie,"data-swipe-direction":_,"data-expanded":!!(D||fe&&X),"data-testid":h.testId,style:{"--index":A,"--toasts-before":A,"--z-index":j.length-A,"--offset":`${W?qe:qn.current}px`,"--initial-height":fe?"auto":`${pt}px`,...q,...h.style},onDragEnd:()=>{le(!1),I(null),ha.current=null},onPointerDown:Ee=>{Ee.button!==2&&(jr||!pa||($t.current=new Date,Le(qn.current),Ee.target.setPointerCapture(Ee.pointerId),Ee.target.tagName!=="BUTTON"&&(le(!0),ha.current={x:Ee.clientX,y:Ee.clientY})))},onPointerUp:()=>{var Ee,We,ht;if(ie||!pa)return;ha.current=null;const Ct=Number(((Ee=Pe.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ga=Number(((We=Pe.current)==null?void 0:We.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),at=new Date().getTime()-((ht=$t.current)==null?void 0:ht.getTime()),jt=oe==="x"?Ct:ga,al=Math.abs(jt)/at;if(Math.abs(jt)>=RN||al>.11){Le(qn.current),h.onDismiss==null||h.onDismiss.call(h,h),G(oe==="x"?Ct>0?"right":"left":ga>0?"down":"up"),Nn(),ne(!0);return}else{var zt,kt;(zt=Pe.current)==null||zt.style.setProperty("--swipe-amount-x","0px"),(kt=Pe.current)==null||kt.style.setProperty("--swipe-amount-y","0px")}he(!1),le(!1),I(null)},onPointerMove:Ee=>{var We,ht,Ct;if(!ha.current||!pa||((We=window.getSelection())==null?void 0:We.toString().length)>0)return;const at=Ee.clientY-ha.current.y,jt=Ee.clientX-ha.current.x;var al;const zt=(al=n.swipeDirections)!=null?al:ON(ge);!oe&&(Math.abs(jt)>1||Math.abs(at)>1)&&I(Math.abs(jt)>Math.abs(at)?"x":"y");let kt={x:0,y:0};const Dl=hn=>1/(1.5+Math.abs(hn)/20);if(oe==="y"){if(zt.includes("top")||zt.includes("bottom"))if(zt.includes("top")&&at<0||zt.includes("bottom")&&at>0)kt.y=at;else{const hn=at*Dl(at);kt.y=Math.abs(hn)<Math.abs(at)?hn:at}}else if(oe==="x"&&(zt.includes("left")||zt.includes("right")))if(zt.includes("left")&&jt<0||zt.includes("right")&&jt>0)kt.x=jt;else{const hn=jt*Dl(jt);kt.x=Math.abs(hn)<Math.abs(jt)?hn:jt}(Math.abs(kt.x)>0||Math.abs(kt.y)>0)&&he(!0),(ht=Pe.current)==null||ht.style.setProperty("--swipe-amount-x",`${kt.x}px`),(Ct=Pe.current)==null||Ct.style.setProperty("--swipe-amount-y",`${kt.y}px`)}},Ho&&!h.jsx&&_t!=="loading"?te.createElement("button",{"aria-label":P,"data-disabled":jr,"data-close-button":!0,onClick:jr||!pa?()=>{}:()=>{Nn(),h.onDismiss==null||h.onDismiss.call(h,h)},className:On(O==null?void 0:O.closeButton,h==null||(i=h.classNames)==null?void 0:i.closeButton)},(Tn=Y==null?void 0:Y.close)!=null?Tn:hN):null,(_t||h.icon||h.promise)&&h.icon!==null&&((Y==null?void 0:Y[_t])!==null||h.icon)?te.createElement("div",{"data-icon":"",className:On(O==null?void 0:O.icon,h==null||(u=h.classNames)==null?void 0:u.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||Ol():null,h.type!=="loading"?Ml:null):null,te.createElement("div",{"data-content":"",className:On(O==null?void 0:O.content,h==null||(f=h.classNames)==null?void 0:f.content)},te.createElement("div",{"data-title":"",className:On(O==null?void 0:O.title,h==null||(d=h.classNames)==null?void 0:d.title)},h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title),h.description?te.createElement("div",{"data-description":"",className:On(ye,Vs,O==null?void 0:O.description,h==null||(m=h.classNames)==null?void 0:m.description)},typeof h.description=="function"?h.description():h.description):null),te.isValidElement(h.cancel)?h.cancel:h.cancel&&ns(h.cancel)?te.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||V,onClick:Ee=>{ns(h.cancel)&&pa&&(h.cancel.onClick==null||h.cancel.onClick.call(h.cancel,Ee),Nn())},className:On(O==null?void 0:O.cancelButton,h==null||(v=h.classNames)==null?void 0:v.cancelButton)},h.cancel.label):null,te.isValidElement(h.action)?h.action:h.action&&ns(h.action)?te.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||re,onClick:Ee=>{ns(h.action)&&(h.action.onClick==null||h.action.onClick.call(h.action,Ee),!Ee.defaultPrevented&&Nn())},className:On(O==null?void 0:O.actionButton,h==null||(p=h.classNames)==null?void 0:p.actionButton)},h.action.label):null)};function Lg(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function DN(n,r){const o={};return[n,r].forEach((i,u)=>{const f=u===1,d=f?"--mobile-offset":"--offset",m=f?TN:NN;function v(p){["top","right","bottom","left"].forEach(x=>{o[`${d}-${x}`]=typeof p=="number"?`${p}px`:p})}typeof i=="number"||typeof i=="string"?v(i):typeof i=="object"?["top","right","bottom","left"].forEach(p=>{i[p]===void 0?o[`${d}-${p}`]=m:o[`${d}-${p}`]=typeof i[p]=="number"?`${i[p]}px`:i[p]}):v(m)}),o}const jN=te.forwardRef(function(r,o){const{id:i,invert:u,position:f="bottom-right",hotkey:d=["altKey","KeyT"],expand:m,closeButton:v,className:p,offset:x,mobileOffset:h,theme:w="light",richColors:E,duration:C,style:N,visibleToasts:T=EN,toastOptions:A,dir:j=Lg(),gap:D=AN,icons:B,containerAriaLabel:K="Notifications"}=r,[J,q]=te.useState([]),V=te.useMemo(()=>i?J.filter(X=>X.toasterId===i):J.filter(X=>!X.toasterId),[J,i]),re=te.useMemo(()=>Array.from(new Set([f].concat(V.filter(X=>X.position).map(X=>X.position)))),[V,f]),[ve,ye]=te.useState([]),[de,ge]=te.useState(!1),[be,fe]=te.useState(!1),[O,Y]=te.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),P=te.useRef(null),oe=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=te.useRef(null),_=te.useRef(!1),G=te.useCallback(X=>{q(F=>{var W;return(W=F.find(ae=>ae.id===X.id))!=null&&W.delete||Gt.dismiss(X.id),F.filter(({id:ae})=>ae!==X.id)})},[]);return te.useEffect(()=>Gt.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{q(F=>F.map(W=>W.id===X.id?{...W,delete:!0}:W))});return}setTimeout(()=>{Lv.flushSync(()=>{q(F=>{const W=F.findIndex(ae=>ae.id===X.id);return W!==-1?[...F.slice(0,W),{...F[W],...X},...F.slice(W+1)]:[X,...F]})})})}),[J]),te.useEffect(()=>{if(w!=="system"){Y(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Y("dark"):Y("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:F})=>{Y(F?"dark":"light")})}catch{X.addListener(({matches:W})=>{try{Y(W?"dark":"light")}catch(ae){console.error(ae)}})}},[w]),te.useEffect(()=>{J.length<=1&&ge(!1)},[J]),te.useEffect(()=>{const X=F=>{var W;if(d.every(le=>F[le]||F.code===le)){var ee;ge(!0),(ee=P.current)==null||ee.focus()}F.code==="Escape"&&(document.activeElement===P.current||(W=P.current)!=null&&W.contains(document.activeElement))&&ge(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[d]),te.useEffect(()=>{if(P.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,_.current=!1)}},[P.current]),te.createElement("section",{ref:o,"aria-label":`${K} ${oe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},re.map((X,F)=>{var W;const[ae,ee]=X.split("-");return V.length?te.createElement("ol",{key:X,dir:j==="auto"?Lg():j,tabIndex:-1,ref:P,className:p,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":ae,"data-x-position":ee,style:{"--front-toast-height":`${((W=ve[0])==null?void 0:W.height)||0}px`,"--width":`${CN}px`,"--gap":`${D}px`,...N,...DN(x,h)},onBlur:le=>{_.current&&!le.currentTarget.contains(le.relatedTarget)&&(_.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||_.current||(_.current=!0,I.current=le.relatedTarget)},onMouseEnter:()=>ge(!0),onMouseMove:()=>ge(!0),onMouseLeave:()=>{be||ge(!1)},onDragEnd:()=>ge(!1),onPointerDown:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||fe(!0)},onPointerUp:()=>fe(!1)},V.filter(le=>!le.position&&F===0||le.position===X).map((le,ie)=>{var ne,pe;return te.createElement(MN,{key:le.id,icons:B,index:ie,toast:le,defaultRichColors:E,duration:(ne=A==null?void 0:A.duration)!=null?ne:C,className:A==null?void 0:A.className,descriptionClassName:A==null?void 0:A.descriptionClassName,invert:u,visibleToasts:T,closeButton:(pe=A==null?void 0:A.closeButton)!=null?pe:v,interacting:be,position:X,style:A==null?void 0:A.style,unstyled:A==null?void 0:A.unstyled,classNames:A==null?void 0:A.classNames,cancelButtonStyle:A==null?void 0:A.cancelButtonStyle,actionButtonStyle:A==null?void 0:A.actionButtonStyle,closeButtonAriaLabel:A==null?void 0:A.closeButtonAriaLabel,removeToast:G,toasts:V.filter(he=>he.position==le.position),heights:ve.filter(he=>he.position==le.position),setHeights:ye,expandByDefault:m,gap:D,expanded:de,swipeDirections:r.swipeDirections})})):null}))});function Ug(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function Qf(...n){return r=>{let o=!1;const i=n.map(u=>{const f=Ug(u,r);return!o&&typeof f=="function"&&(o=!0),f});if(o)return()=>{for(let u=0;u<i.length;u++){const f=i[u];typeof f=="function"?f():Ug(n[u],null)}}}}function nt(...n){return b.useCallback(Qf(...n),n)}var zN=Symbol.for("react.lazy"),bs=Uf[" use ".trim().toString()];function kN(n){return typeof n=="object"&&n!==null&&"then"in n}function my(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===zN&&"_payload"in n&&kN(n._payload)}function LN(n){const r=BN(n),o=b.forwardRef((i,u)=>{let{children:f,...d}=i;my(f)&&typeof bs=="function"&&(f=bs(f._payload));const m=b.Children.toArray(f),v=m.find(VN);if(v){const p=v.props.children,x=m.map(h=>h===v?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:h);return y.jsx(r,{...d,ref:u,children:b.isValidElement(p)?b.cloneElement(p,void 0,x):null})}return y.jsx(r,{...d,ref:u,children:f})});return o.displayName=`${n}.Slot`,o}var UN=LN("Slot");function BN(n){const r=b.forwardRef((o,i)=>{let{children:u,...f}=o;if(my(u)&&typeof bs=="function"&&(u=bs(u._payload)),b.isValidElement(u)){const d=qN(u),m=YN(f,u.props);return u.type!==b.Fragment&&(m.ref=i?Qf(i,d):d),b.cloneElement(u,m)}return b.Children.count(u)>1?b.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var HN=Symbol("radix.slottable");function VN(n){return b.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===HN}function YN(n,r){const o={...r};for(const i in r){const u=n[i],f=r[i];/^on[A-Z]/.test(i)?u&&f?o[i]=(...m)=>{const v=f(...m);return u(...m),v}:u&&(o[i]=u):i==="style"?o[i]={...u,...f}:i==="className"&&(o[i]=[u,f].filter(Boolean).join(" "))}return{...n,...o}}function qN(n){var i,u;let r=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}const Zf=fy("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[16px] text-sm font-semibold transition-all duration-200 ease-out hover:-translate-y-px focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 active:translate-y-0 active:scale-[0.985] disabled:pointer-events-none disabled:translate-y-0 disabled:scale-100 disabled:opacity-50 disabled:shadow-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"border border-primary/15 bg-primary text-primary-foreground shadow-[0_14px_34px_-20px_hsl(var(--primary)/0.9)] hover:bg-primary/90 hover:shadow-[0_18px_42px_-22px_hsl(var(--primary)/0.95)]",destructive:"border border-destructive/15 bg-destructive text-destructive-foreground shadow-[0_14px_34px_-20px_hsl(var(--destructive)/0.8)] hover:bg-destructive/90",outline:"border border-input/80 bg-background/72 shadow-sm backdrop-blur hover:border-primary/35 hover:bg-accent/70 hover:text-accent-foreground",secondary:"border border-transparent bg-secondary/88 text-secondary-foreground shadow-sm hover:bg-secondary",ghost:"hover:bg-accent/72 hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-[14px] px-3",lg:"h-11 rounded-[18px] px-8",icon:"h-10 w-10 rounded-[16px]"}},defaultVariants:{variant:"default",size:"default"}}),Qa=b.forwardRef(({className:n,variant:r,size:o,asChild:i=!1,...u},f)=>{const d=i?UN:"button";return y.jsx(d,{className:we(Zf({variant:r,size:o,className:n})),ref:f,...u})});Qa.displayName="Button";const Mn=b.forwardRef(({className:n,...r},o)=>y.jsx("div",{ref:o,className:we("rounded-[18px] border bg-card text-card-foreground shadow-sm",n),...r}));Mn.displayName="Card";const Dn=b.forwardRef(({className:n,...r},o)=>y.jsx("div",{ref:o,className:we("flex flex-col space-y-1.5 p-6",n),...r}));Dn.displayName="CardHeader";const jn=b.forwardRef(({className:n,...r},o)=>y.jsx("div",{ref:o,className:we("text-2xl font-semibold leading-none tracking-tight",n),...r}));jn.displayName="CardTitle";const zn=b.forwardRef(({className:n,...r},o)=>y.jsx("div",{ref:o,className:we("text-sm text-muted-foreground",n),...r}));zn.displayName="CardDescription";const kn=b.forwardRef(({className:n,...r},o)=>y.jsx("div",{ref:o,className:we("p-6 pt-0",n),...r}));kn.displayName="CardContent";const GN=b.forwardRef(({className:n,...r},o)=>y.jsx("div",{ref:o,className:we("flex items-center p-6 pt-0",n),...r}));GN.displayName="CardFooter";function ke(n,r,{checkForDefaultPrevented:o=!0}={}){return function(u){if(n==null||n(u),o===!1||!u.defaultPrevented)return r==null?void 0:r(u)}}function $N(n,r){const o=b.createContext(r),i=f=>{const{children:d,...m}=f,v=b.useMemo(()=>m,Object.values(m));return y.jsx(o.Provider,{value:v,children:d})};i.displayName=n+"Provider";function u(f){const d=b.useContext(o);if(d)return d;if(r!==void 0)return r;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[i,u]}function _l(n,r=[]){let o=[];function i(f,d){const m=b.createContext(d),v=o.length;o=[...o,d];const p=h=>{var A;const{scope:w,children:E,...C}=h,N=((A=w==null?void 0:w[n])==null?void 0:A[v])||m,T=b.useMemo(()=>C,Object.values(C));return y.jsx(N.Provider,{value:T,children:E})};p.displayName=f+"Provider";function x(h,w){var N;const E=((N=w==null?void 0:w[n])==null?void 0:N[v])||m,C=b.useContext(E);if(C)return C;if(d!==void 0)return d;throw new Error(`\`${h}\` must be used within \`${f}\``)}return[p,x]}const u=()=>{const f=o.map(d=>b.createContext(d));return function(m){const v=(m==null?void 0:m[n])||f;return b.useMemo(()=>({[`__scope${n}`]:{...m,[n]:v}}),[m,v])}};return u.scopeName=n,[i,XN(u,...r)]}function XN(...n){const r=n[0];if(n.length===1)return r;const o=()=>{const i=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const d=i.reduce((m,{useScope:v,scopeName:p})=>{const h=v(f)[`__scope${p}`];return{...m,...h}},{});return b.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])}};return o.scopeName=r.scopeName,o}var Rt=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},QN=Uf[" useId ".trim().toString()]||(()=>{}),ZN=0;function Xa(n){const[r,o]=b.useState(QN());return Rt(()=>{o(i=>i??String(ZN++))},[n]),r?`radix-${r}`:""}var KN=Uf[" useInsertionEffect ".trim().toString()]||Rt;function Oo({prop:n,defaultProp:r,onChange:o=()=>{},caller:i}){const[u,f,d]=PN({defaultProp:r,onChange:o}),m=n!==void 0,v=m?n:u;{const x=b.useRef(n!==void 0);b.useEffect(()=>{const h=x.current;h!==m&&console.warn(`${i} is changing from ${h?"controlled":"uncontrolled"} to ${m?"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.`),x.current=m},[m,i])}const p=b.useCallback(x=>{var h;if(m){const w=JN(x)?x(n):x;w!==n&&((h=d.current)==null||h.call(d,w))}else f(x)},[m,n,f,d]);return[v,p]}function PN({defaultProp:n,onChange:r}){const[o,i]=b.useState(n),u=b.useRef(o),f=b.useRef(r);return KN(()=>{f.current=r},[r]),b.useEffect(()=>{var d;u.current!==o&&((d=f.current)==null||d.call(f,o),u.current=o)},[o,u]),[o,i,f]}function JN(n){return typeof n=="function"}function Mo(n){const r=IN(n),o=b.forwardRef((i,u)=>{const{children:f,...d}=i,m=b.Children.toArray(f),v=m.find(WN);if(v){const p=v.props.children,x=m.map(h=>h===v?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:h);return y.jsx(r,{...d,ref:u,children:b.isValidElement(p)?b.cloneElement(p,void 0,x):null})}return y.jsx(r,{...d,ref:u,children:f})});return o.displayName=`${n}.Slot`,o}function IN(n){const r=b.forwardRef((o,i)=>{const{children:u,...f}=o;if(b.isValidElement(u)){const d=tT(u),m=eT(f,u.props);return u.type!==b.Fragment&&(m.ref=i?Qf(i,d):d),b.cloneElement(u,m)}return b.Children.count(u)>1?b.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var py=Symbol("radix.slottable");function FN(n){const r=({children:o})=>y.jsx(y.Fragment,{children:o});return r.displayName=`${n}.Slottable`,r.__radixId=py,r}function WN(n){return b.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===py}function eT(n,r){const o={...r};for(const i in r){const u=n[i],f=r[i];/^on[A-Z]/.test(i)?u&&f?o[i]=(...m)=>{const v=f(...m);return u(...m),v}:u&&(o[i]=u):i==="style"?o[i]={...u,...f}:i==="className"&&(o[i]=[u,f].filter(Boolean).join(" "))}return{...n,...o}}function tT(n){var i,u;let r=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var nT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],He=nT.reduce((n,r)=>{const o=Mo(`Primitive.${r}`),i=b.forwardRef((u,f)=>{const{asChild:d,...m}=u,v=d?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(v,{...m,ref:f})});return i.displayName=`Primitive.${r}`,{...n,[r]:i}},{});function aT(n,r){n&&ko.flushSync(()=>n.dispatchEvent(r))}function Za(n){const r=b.useRef(n);return b.useEffect(()=>{r.current=n}),b.useMemo(()=>(...o)=>{var i;return(i=r.current)==null?void 0:i.call(r,...o)},[])}function lT(n,r=globalThis==null?void 0:globalThis.document){const o=Za(n);b.useEffect(()=>{const i=u=>{u.key==="Escape"&&o(u)};return r.addEventListener("keydown",i,{capture:!0}),()=>r.removeEventListener("keydown",i,{capture:!0})},[o,r])}var rT="DismissableLayer",Tf="dismissableLayer.update",oT="dismissableLayer.pointerDownOutside",iT="dismissableLayer.focusOutside",Bg,hy=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kf=b.forwardRef((n,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:m,...v}=n,p=b.useContext(hy),[x,h]=b.useState(null),w=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=b.useState({}),C=nt(r,q=>h(q)),N=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),A=N.indexOf(T),j=x?N.indexOf(x):-1,D=p.layersWithOutsidePointerEventsDisabled.size>0,B=j>=A,K=uT(q=>{const V=q.target,re=[...p.branches].some(ve=>ve.contains(V));!B||re||(u==null||u(q),d==null||d(q),q.defaultPrevented||m==null||m())},w),J=fT(q=>{const V=q.target;[...p.branches].some(ve=>ve.contains(V))||(f==null||f(q),d==null||d(q),q.defaultPrevented||m==null||m())},w);return lT(q=>{j===p.layers.size-1&&(i==null||i(q),!q.defaultPrevented&&m&&(q.preventDefault(),m()))},w),b.useEffect(()=>{if(x)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Bg=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),Hg(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Bg)}},[x,w,o,p]),b.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),Hg())},[x,p]),b.useEffect(()=>{const q=()=>E({});return document.addEventListener(Tf,q),()=>document.removeEventListener(Tf,q)},[]),y.jsx(He.div,{...v,ref:C,style:{pointerEvents:D?B?"auto":"none":void 0,...n.style},onFocusCapture:ke(n.onFocusCapture,J.onFocusCapture),onBlurCapture:ke(n.onBlurCapture,J.onBlurCapture),onPointerDownCapture:ke(n.onPointerDownCapture,K.onPointerDownCapture)})});Kf.displayName=rT;var sT="DismissableLayerBranch",cT=b.forwardRef((n,r)=>{const o=b.useContext(hy),i=b.useRef(null),u=nt(r,i);return b.useEffect(()=>{const f=i.current;if(f)return o.branches.add(f),()=>{o.branches.delete(f)}},[o.branches]),y.jsx(He.div,{...n,ref:u})});cT.displayName=sT;function uT(n,r=globalThis==null?void 0:globalThis.document){const o=Za(n),i=b.useRef(!1),u=b.useRef(()=>{});return b.useEffect(()=>{const f=m=>{if(m.target&&!i.current){let v=function(){gy(oT,o,p,{discrete:!0})};const p={originalEvent:m};m.pointerType==="touch"?(r.removeEventListener("click",u.current),u.current=v,r.addEventListener("click",u.current,{once:!0})):v()}else r.removeEventListener("click",u.current);i.current=!1},d=window.setTimeout(()=>{r.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),r.removeEventListener("pointerdown",f),r.removeEventListener("click",u.current)}},[r,o]),{onPointerDownCapture:()=>i.current=!0}}function fT(n,r=globalThis==null?void 0:globalThis.document){const o=Za(n),i=b.useRef(!1);return b.useEffect(()=>{const u=f=>{f.target&&!i.current&&gy(iT,o,{originalEvent:f},{discrete:!1})};return r.addEventListener("focusin",u),()=>r.removeEventListener("focusin",u)},[r,o]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Hg(){const n=new CustomEvent(Tf);document.dispatchEvent(n)}function gy(n,r,o,{discrete:i}){const u=o.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});r&&u.addEventListener(n,r,{once:!0}),i?aT(u,f):u.dispatchEvent(f)}var uf="focusScope.autoFocusOnMount",ff="focusScope.autoFocusOnUnmount",Vg={bubbles:!1,cancelable:!0},dT="FocusScope",Pf=b.forwardRef((n,r)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:u,onUnmountAutoFocus:f,...d}=n,[m,v]=b.useState(null),p=Za(u),x=Za(f),h=b.useRef(null),w=nt(r,N=>v(N)),E=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(i){let N=function(D){if(E.paused||!m)return;const B=D.target;m.contains(B)?h.current=B:Ga(h.current,{select:!0})},T=function(D){if(E.paused||!m)return;const B=D.relatedTarget;B!==null&&(m.contains(B)||Ga(h.current,{select:!0}))},A=function(D){if(document.activeElement===document.body)for(const K of D)K.removedNodes.length>0&&Ga(m)};document.addEventListener("focusin",N),document.addEventListener("focusout",T);const j=new MutationObserver(A);return m&&j.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",N),document.removeEventListener("focusout",T),j.disconnect()}}},[i,m,E.paused]),b.useEffect(()=>{if(m){qg.add(E);const N=document.activeElement;if(!m.contains(N)){const A=new CustomEvent(uf,Vg);m.addEventListener(uf,p),m.dispatchEvent(A),A.defaultPrevented||(mT(yT(vy(m)),{select:!0}),document.activeElement===N&&Ga(m))}return()=>{m.removeEventListener(uf,p),setTimeout(()=>{const A=new CustomEvent(ff,Vg);m.addEventListener(ff,x),m.dispatchEvent(A),A.defaultPrevented||Ga(N??document.body,{select:!0}),m.removeEventListener(ff,x),qg.remove(E)},0)}}},[m,p,x,E]);const C=b.useCallback(N=>{if(!o&&!i||E.paused)return;const T=N.key==="Tab"&&!N.altKey&&!N.ctrlKey&&!N.metaKey,A=document.activeElement;if(T&&A){const j=N.currentTarget,[D,B]=pT(j);D&&B?!N.shiftKey&&A===B?(N.preventDefault(),o&&Ga(D,{select:!0})):N.shiftKey&&A===D&&(N.preventDefault(),o&&Ga(B,{select:!0})):A===j&&N.preventDefault()}},[o,i,E.paused]);return y.jsx(He.div,{tabIndex:-1,...d,ref:w,onKeyDown:C})});Pf.displayName=dT;function mT(n,{select:r=!1}={}){const o=document.activeElement;for(const i of n)if(Ga(i,{select:r}),document.activeElement!==o)return}function pT(n){const r=vy(n),o=Yg(r,n),i=Yg(r.reverse(),n);return[o,i]}function vy(n){const r=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const u=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||u?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)r.push(o.currentNode);return r}function Yg(n,r){for(const o of n)if(!hT(o,{upTo:r}))return o}function hT(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function gT(n){return n instanceof HTMLInputElement&&"select"in n}function Ga(n,{select:r=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&gT(n)&&r&&n.select()}}var qg=vT();function vT(){let n=[];return{add(r){const o=n[0];r!==o&&(o==null||o.pause()),n=Gg(n,r),n.unshift(r)},remove(r){var o;n=Gg(n,r),(o=n[0])==null||o.resume()}}}function Gg(n,r){const o=[...n],i=o.indexOf(r);return i!==-1&&o.splice(i,1),o}function yT(n){return n.filter(r=>r.tagName!=="A")}var bT="Portal",Jf=b.forwardRef((n,r)=>{var m;const{container:o,...i}=n,[u,f]=b.useState(!1);Rt(()=>f(!0),[]);const d=o||u&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return d?Lv.createPortal(y.jsx(He.div,{...i,ref:r}),d):null});Jf.displayName=bT;function xT(n,r){return b.useReducer((o,i)=>r[o][i]??o,n)}var Lo=n=>{const{present:r,children:o}=n,i=ST(r),u=typeof o=="function"?o({present:i.isPresent}):b.Children.only(o),f=nt(i.ref,wT(u));return typeof o=="function"||i.isPresent?b.cloneElement(u,{ref:f}):null};Lo.displayName="Presence";function ST(n){const[r,o]=b.useState(),i=b.useRef(null),u=b.useRef(n),f=b.useRef("none"),d=n?"mounted":"unmounted",[m,v]=xT(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const p=as(i.current);f.current=m==="mounted"?p:"none"},[m]),Rt(()=>{const p=i.current,x=u.current;if(x!==n){const w=f.current,E=as(p);n?v("MOUNT"):E==="none"||(p==null?void 0:p.display)==="none"?v("UNMOUNT"):v(x&&w!==E?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,v]),Rt(()=>{if(r){let p;const x=r.ownerDocument.defaultView??window,h=E=>{const N=as(i.current).includes(CSS.escape(E.animationName));if(E.target===r&&N&&(v("ANIMATION_END"),!u.current)){const T=r.style.animationFillMode;r.style.animationFillMode="forwards",p=x.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=T)})}},w=E=>{E.target===r&&(f.current=as(i.current))};return r.addEventListener("animationstart",w),r.addEventListener("animationcancel",h),r.addEventListener("animationend",h),()=>{x.clearTimeout(p),r.removeEventListener("animationstart",w),r.removeEventListener("animationcancel",h),r.removeEventListener("animationend",h)}}else v("ANIMATION_END")},[r,v]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:b.useCallback(p=>{i.current=p?getComputedStyle(p):null,o(p)},[])}}function as(n){return(n==null?void 0:n.animationName)||"none"}function wT(n){var i,u;let r=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var df=0;function yy(){b.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??$g()),document.body.insertAdjacentElement("beforeend",n[1]??$g()),df++,()=>{df===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),df--}},[])}function $g(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Ln=function(){return Ln=Object.assign||function(r){for(var o,i=1,u=arguments.length;i<u;i++){o=arguments[i];for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(r[f]=o[f])}return r},Ln.apply(this,arguments)};function by(n,r){var o={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&r.indexOf(i)<0&&(o[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,i=Object.getOwnPropertySymbols(n);u<i.length;u++)r.indexOf(i[u])<0&&Object.prototype.propertyIsEnumerable.call(n,i[u])&&(o[i[u]]=n[i[u]]);return o}function ET(n,r,o){if(o||arguments.length===2)for(var i=0,u=r.length,f;i<u;i++)(f||!(i in r))&&(f||(f=Array.prototype.slice.call(r,0,i)),f[i]=r[i]);return n.concat(f||Array.prototype.slice.call(r))}var ds="right-scroll-bar-position",ms="width-before-scroll-bar",NT="with-scroll-bars-hidden",TT="--removed-body-scroll-bar-size";function mf(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function CT(n,r){var o=b.useState(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(i){var u=o.value;u!==i&&(o.value=i,o.callback(i,u))}}}})[0];return o.callback=r,o.facade}var AT=typeof window<"u"?b.useLayoutEffect:b.useEffect,Xg=new WeakMap;function RT(n,r){var o=CT(null,function(i){return n.forEach(function(u){return mf(u,i)})});return AT(function(){var i=Xg.get(o);if(i){var u=new Set(i),f=new Set(n),d=o.current;u.forEach(function(m){f.has(m)||mf(m,null)}),f.forEach(function(m){u.has(m)||mf(m,d)})}Xg.set(o,n)},[n]),o}function _T(n){return n}function OT(n,r){r===void 0&&(r=_T);var o=[],i=!1,u={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:n},useMedium:function(f){var d=r(f,i);return o.push(d),function(){o=o.filter(function(m){return m!==d})}},assignSyncMedium:function(f){for(i=!0;o.length;){var d=o;o=[],d.forEach(f)}o={push:function(m){return f(m)},filter:function(){return o}}},assignMedium:function(f){i=!0;var d=[];if(o.length){var m=o;o=[],m.forEach(f),d=o}var v=function(){var x=d;d=[],x.forEach(f)},p=function(){return Promise.resolve().then(v)};p(),o={push:function(x){d.push(x),p()},filter:function(x){return d=d.filter(x),o}}}};return u}function MT(n){n===void 0&&(n={});var r=OT(null);return r.options=Ln({async:!0,ssr:!1},n),r}var xy=function(n){var r=n.sideCar,o=by(n,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=r.read();if(!i)throw new Error("Sidecar medium not found");return b.createElement(i,Ln({},o))};xy.isSideCarExport=!0;function DT(n,r){return n.useMedium(r),xy}var Sy=MT(),pf=function(){},_s=b.forwardRef(function(n,r){var o=b.useRef(null),i=b.useState({onScrollCapture:pf,onWheelCapture:pf,onTouchMoveCapture:pf}),u=i[0],f=i[1],d=n.forwardProps,m=n.children,v=n.className,p=n.removeScrollBar,x=n.enabled,h=n.shards,w=n.sideCar,E=n.noRelative,C=n.noIsolation,N=n.inert,T=n.allowPinchZoom,A=n.as,j=A===void 0?"div":A,D=n.gapMode,B=by(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),K=w,J=RT([o,r]),q=Ln(Ln({},B),u);return b.createElement(b.Fragment,null,x&&b.createElement(K,{sideCar:Sy,removeScrollBar:p,shards:h,noRelative:E,noIsolation:C,inert:N,setCallbacks:f,allowPinchZoom:!!T,lockRef:o,gapMode:D}),d?b.cloneElement(b.Children.only(m),Ln(Ln({},q),{ref:J})):b.createElement(j,Ln({},q,{className:v,ref:J}),m))});_s.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_s.classNames={fullWidth:ms,zeroRight:ds};var jT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zT(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=jT();return r&&n.setAttribute("nonce",r),n}function kT(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function LT(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var UT=function(){var n=0,r=null;return{add:function(o){n==0&&(r=zT())&&(kT(r,o),LT(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},BT=function(){var n=UT();return function(r,o){b.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&o])}},wy=function(){var n=BT(),r=function(o){var i=o.styles,u=o.dynamic;return n(i,u),null};return r},HT={left:0,top:0,right:0,gap:0},hf=function(n){return parseInt(n||"",10)||0},VT=function(n){var r=window.getComputedStyle(document.body),o=r[n==="padding"?"paddingLeft":"marginLeft"],i=r[n==="padding"?"paddingTop":"marginTop"],u=r[n==="padding"?"paddingRight":"marginRight"];return[hf(o),hf(i),hf(u)]},YT=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return HT;var r=VT(n),o=document.documentElement.clientWidth,i=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,i-o+r[2]-r[0])}},qT=wy(),Sr="data-scroll-locked",GT=function(n,r,o,i){var u=n.left,f=n.top,d=n.right,m=n.gap;return o===void 0&&(o="margin"),`
227
- .`.concat(NT,` {
228
- overflow: hidden `).concat(i,`;
229
- padding-right: `).concat(m,"px ").concat(i,`;
230
- }
231
- body[`).concat(Sr,`] {
232
- overflow: hidden `).concat(i,`;
233
- overscroll-behavior: contain;
234
- `).concat([r&&"position: relative ".concat(i,";"),o==="margin"&&`
235
- padding-left: `.concat(u,`px;
236
- padding-top: `).concat(f,`px;
237
- padding-right: `).concat(d,`px;
238
- margin-left:0;
239
- margin-top:0;
240
- margin-right: `).concat(m,"px ").concat(i,`;
241
- `),o==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
242
- }
243
-
244
- .`).concat(ds,` {
245
- right: `).concat(m,"px ").concat(i,`;
246
- }
247
-
248
- .`).concat(ms,` {
249
- margin-right: `).concat(m,"px ").concat(i,`;
250
- }
251
-
252
- .`).concat(ds," .").concat(ds,` {
253
- right: 0 `).concat(i,`;
254
- }
255
-
256
- .`).concat(ms," .").concat(ms,` {
257
- margin-right: 0 `).concat(i,`;
258
- }
259
-
260
- body[`).concat(Sr,`] {
261
- `).concat(TT,": ").concat(m,`px;
262
- }
263
- `)},Qg=function(){var n=parseInt(document.body.getAttribute(Sr)||"0",10);return isFinite(n)?n:0},$T=function(){b.useEffect(function(){return document.body.setAttribute(Sr,(Qg()+1).toString()),function(){var n=Qg()-1;n<=0?document.body.removeAttribute(Sr):document.body.setAttribute(Sr,n.toString())}},[])},XT=function(n){var r=n.noRelative,o=n.noImportant,i=n.gapMode,u=i===void 0?"margin":i;$T();var f=b.useMemo(function(){return YT(u)},[u]);return b.createElement(qT,{styles:GT(f,!r,u,o?"":"!important")})},Cf=!1;if(typeof window<"u")try{var ls=Object.defineProperty({},"passive",{get:function(){return Cf=!0,!0}});window.addEventListener("test",ls,ls),window.removeEventListener("test",ls,ls)}catch{Cf=!1}var vr=Cf?{passive:!1}:!1,QT=function(n){return n.tagName==="TEXTAREA"},Ey=function(n,r){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!QT(n)&&o[r]==="visible")},ZT=function(n){return Ey(n,"overflowY")},KT=function(n){return Ey(n,"overflowX")},Zg=function(n,r){var o=r.ownerDocument,i=r;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var u=Ny(n,i);if(u){var f=Ty(n,i),d=f[1],m=f[2];if(d>m)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},PT=function(n){var r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight;return[r,o,i]},JT=function(n){var r=n.scrollLeft,o=n.scrollWidth,i=n.clientWidth;return[r,o,i]},Ny=function(n,r){return n==="v"?ZT(r):KT(r)},Ty=function(n,r){return n==="v"?PT(r):JT(r)},IT=function(n,r){return n==="h"&&r==="rtl"?-1:1},FT=function(n,r,o,i,u){var f=IT(n,window.getComputedStyle(r).direction),d=f*i,m=o.target,v=r.contains(m),p=!1,x=d>0,h=0,w=0;do{if(!m)break;var E=Ty(n,m),C=E[0],N=E[1],T=E[2],A=N-T-f*C;(C||A)&&Ny(n,m)&&(h+=A,w+=C);var j=m.parentNode;m=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!v&&m!==document.body||v&&(r.contains(m)||r===m));return(x&&Math.abs(h)<1||!x&&Math.abs(w)<1)&&(p=!0),p},rs=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Kg=function(n){return[n.deltaX,n.deltaY]},Pg=function(n){return n&&"current"in n?n.current:n},WT=function(n,r){return n[0]===r[0]&&n[1]===r[1]},eC=function(n){return`
264
- .block-interactivity-`.concat(n,` {pointer-events: none;}
265
- .allow-interactivity-`).concat(n,` {pointer-events: all;}
266
- `)},tC=0,yr=[];function nC(n){var r=b.useRef([]),o=b.useRef([0,0]),i=b.useRef(),u=b.useState(tC++)[0],f=b.useState(wy)[0],d=b.useRef(n);b.useEffect(function(){d.current=n},[n]),b.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(u));var N=ET([n.lockRef.current],(n.shards||[]).map(Pg),!0).filter(Boolean);return N.forEach(function(T){return T.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),N.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(u))})}}},[n.inert,n.lockRef.current,n.shards]);var m=b.useCallback(function(N,T){if("touches"in N&&N.touches.length===2||N.type==="wheel"&&N.ctrlKey)return!d.current.allowPinchZoom;var A=rs(N),j=o.current,D="deltaX"in N?N.deltaX:j[0]-A[0],B="deltaY"in N?N.deltaY:j[1]-A[1],K,J=N.target,q=Math.abs(D)>Math.abs(B)?"h":"v";if("touches"in N&&q==="h"&&J.type==="range")return!1;var V=window.getSelection(),re=V&&V.anchorNode,ve=re?re===J||re.contains(J):!1;if(ve)return!1;var ye=Zg(q,J);if(!ye)return!0;if(ye?K=q:(K=q==="v"?"h":"v",ye=Zg(q,J)),!ye)return!1;if(!i.current&&"changedTouches"in N&&(D||B)&&(i.current=K),!K)return!0;var de=i.current||K;return FT(de,T,N,de==="h"?D:B)},[]),v=b.useCallback(function(N){var T=N;if(!(!yr.length||yr[yr.length-1]!==f)){var A="deltaY"in T?Kg(T):rs(T),j=r.current.filter(function(K){return K.name===T.type&&(K.target===T.target||T.target===K.shadowParent)&&WT(K.delta,A)})[0];if(j&&j.should){T.cancelable&&T.preventDefault();return}if(!j){var D=(d.current.shards||[]).map(Pg).filter(Boolean).filter(function(K){return K.contains(T.target)}),B=D.length>0?m(T,D[0]):!d.current.noIsolation;B&&T.cancelable&&T.preventDefault()}}},[]),p=b.useCallback(function(N,T,A,j){var D={name:N,delta:T,target:A,should:j,shadowParent:aC(A)};r.current.push(D),setTimeout(function(){r.current=r.current.filter(function(B){return B!==D})},1)},[]),x=b.useCallback(function(N){o.current=rs(N),i.current=void 0},[]),h=b.useCallback(function(N){p(N.type,Kg(N),N.target,m(N,n.lockRef.current))},[]),w=b.useCallback(function(N){p(N.type,rs(N),N.target,m(N,n.lockRef.current))},[]);b.useEffect(function(){return yr.push(f),n.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:w}),document.addEventListener("wheel",v,vr),document.addEventListener("touchmove",v,vr),document.addEventListener("touchstart",x,vr),function(){yr=yr.filter(function(N){return N!==f}),document.removeEventListener("wheel",v,vr),document.removeEventListener("touchmove",v,vr),document.removeEventListener("touchstart",x,vr)}},[]);var E=n.removeScrollBar,C=n.inert;return b.createElement(b.Fragment,null,C?b.createElement(f,{styles:eC(u)}):null,E?b.createElement(XT,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function aC(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const lC=DT(Sy,nC);var If=b.forwardRef(function(n,r){return b.createElement(_s,Ln({},n,{ref:r,sideCar:lC}))});If.classNames=_s.classNames;var rC=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},br=new WeakMap,os=new WeakMap,is={},gf=0,Cy=function(n){return n&&(n.host||Cy(n.parentNode))},oC=function(n,r){return r.map(function(o){if(n.contains(o))return o;var i=Cy(o);return i&&n.contains(i)?i:(console.error("aria-hidden",o,"in not contained inside",n,". Doing nothing"),null)}).filter(function(o){return!!o})},iC=function(n,r,o,i){var u=oC(r,Array.isArray(n)?n:[n]);is[o]||(is[o]=new WeakMap);var f=is[o],d=[],m=new Set,v=new Set(u),p=function(h){!h||m.has(h)||(m.add(h),p(h.parentNode))};u.forEach(p);var x=function(h){!h||v.has(h)||Array.prototype.forEach.call(h.children,function(w){if(m.has(w))x(w);else try{var E=w.getAttribute(i),C=E!==null&&E!=="false",N=(br.get(w)||0)+1,T=(f.get(w)||0)+1;br.set(w,N),f.set(w,T),d.push(w),N===1&&C&&os.set(w,!0),T===1&&w.setAttribute(o,"true"),C||w.setAttribute(i,"true")}catch(A){console.error("aria-hidden: cannot operate on ",w,A)}})};return x(r),m.clear(),gf++,function(){d.forEach(function(h){var w=br.get(h)-1,E=f.get(h)-1;br.set(h,w),f.set(h,E),w||(os.has(h)||h.removeAttribute(i),os.delete(h)),E||h.removeAttribute(o)}),gf--,gf||(br=new WeakMap,br=new WeakMap,os=new WeakMap,is={})}},Ay=function(n,r,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),u=rC(n);return u?(i.push.apply(i,Array.from(u.querySelectorAll("[aria-live], script"))),iC(i,u,o,"aria-hidden")):function(){return null}},Os="Dialog",[Ry,_y]=_l(Os),[sC,En]=Ry(Os),Oy=n=>{const{__scopeDialog:r,children:o,open:i,defaultOpen:u,onOpenChange:f,modal:d=!0}=n,m=b.useRef(null),v=b.useRef(null),[p,x]=Oo({prop:i,defaultProp:u??!1,onChange:f,caller:Os});return y.jsx(sC,{scope:r,triggerRef:m,contentRef:v,contentId:Xa(),titleId:Xa(),descriptionId:Xa(),open:p,onOpenChange:x,onOpenToggle:b.useCallback(()=>x(h=>!h),[x]),modal:d,children:o})};Oy.displayName=Os;var My="DialogTrigger",Dy=b.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,u=En(My,o),f=nt(r,u.triggerRef);return y.jsx(He.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":ed(u.open),...i,ref:f,onClick:ke(n.onClick,u.onOpenToggle)})});Dy.displayName=My;var Ff="DialogPortal",[cC,jy]=Ry(Ff,{forceMount:void 0}),zy=n=>{const{__scopeDialog:r,forceMount:o,children:i,container:u}=n,f=En(Ff,r);return y.jsx(cC,{scope:r,forceMount:o,children:b.Children.map(i,d=>y.jsx(Lo,{present:o||f.open,children:y.jsx(Jf,{asChild:!0,container:u,children:d})}))})};zy.displayName=Ff;var xs="DialogOverlay",ky=b.forwardRef((n,r)=>{const o=jy(xs,n.__scopeDialog),{forceMount:i=o.forceMount,...u}=n,f=En(xs,n.__scopeDialog);return f.modal?y.jsx(Lo,{present:i||f.open,children:y.jsx(fC,{...u,ref:r})}):null});ky.displayName=xs;var uC=Mo("DialogOverlay.RemoveScroll"),fC=b.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,u=En(xs,o);return y.jsx(If,{as:uC,allowPinchZoom:!0,shards:[u.contentRef],children:y.jsx(He.div,{"data-state":ed(u.open),...i,ref:r,style:{pointerEvents:"auto",...i.style}})})}),Nl="DialogContent",Ly=b.forwardRef((n,r)=>{const o=jy(Nl,n.__scopeDialog),{forceMount:i=o.forceMount,...u}=n,f=En(Nl,n.__scopeDialog);return y.jsx(Lo,{present:i||f.open,children:f.modal?y.jsx(dC,{...u,ref:r}):y.jsx(mC,{...u,ref:r})})});Ly.displayName=Nl;var dC=b.forwardRef((n,r)=>{const o=En(Nl,n.__scopeDialog),i=b.useRef(null),u=nt(r,o.contentRef,i);return b.useEffect(()=>{const f=i.current;if(f)return Ay(f)},[]),y.jsx(Uy,{...n,ref:u,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ke(n.onCloseAutoFocus,f=>{var d;f.preventDefault(),(d=o.triggerRef.current)==null||d.focus()}),onPointerDownOutside:ke(n.onPointerDownOutside,f=>{const d=f.detail.originalEvent,m=d.button===0&&d.ctrlKey===!0;(d.button===2||m)&&f.preventDefault()}),onFocusOutside:ke(n.onFocusOutside,f=>f.preventDefault())})}),mC=b.forwardRef((n,r)=>{const o=En(Nl,n.__scopeDialog),i=b.useRef(!1),u=b.useRef(!1);return y.jsx(Uy,{...n,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,m;(d=n.onCloseAutoFocus)==null||d.call(n,f),f.defaultPrevented||(i.current||(m=o.triggerRef.current)==null||m.focus(),f.preventDefault()),i.current=!1,u.current=!1},onInteractOutside:f=>{var v,p;(v=n.onInteractOutside)==null||v.call(n,f),f.defaultPrevented||(i.current=!0,f.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const d=f.target;((p=o.triggerRef.current)==null?void 0:p.contains(d))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&u.current&&f.preventDefault()}})}),Uy=b.forwardRef((n,r)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:f,...d}=n,m=En(Nl,o),v=b.useRef(null),p=nt(r,v);return yy(),y.jsxs(y.Fragment,{children:[y.jsx(Pf,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:u,onUnmountAutoFocus:f,children:y.jsx(Kf,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":ed(m.open),...d,ref:p,onDismiss:()=>m.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(hC,{titleId:m.titleId}),y.jsx(vC,{contentRef:v,descriptionId:m.descriptionId})]})]})}),Wf="DialogTitle",By=b.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,u=En(Wf,o);return y.jsx(He.h2,{id:u.titleId,...i,ref:r})});By.displayName=Wf;var Hy="DialogDescription",Vy=b.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,u=En(Hy,o);return y.jsx(He.p,{id:u.descriptionId,...i,ref:r})});Vy.displayName=Hy;var Yy="DialogClose",qy=b.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,u=En(Yy,o);return y.jsx(He.button,{type:"button",...i,ref:r,onClick:ke(n.onClick,()=>u.onOpenChange(!1))})});qy.displayName=Yy;function ed(n){return n?"open":"closed"}var Gy="DialogTitleWarning",[pC,$y]=$N(Gy,{contentName:Nl,titleName:Wf,docsSlug:"dialog"}),hC=({titleId:n})=>{const r=$y(Gy),o=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
267
-
268
- If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
269
-
270
- For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return b.useEffect(()=>{n&&(document.getElementById(n)||console.error(o))},[o,n]),null},gC="DialogDescriptionWarning",vC=({contentRef:n,descriptionId:r})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$y(gC).contentName}}.`;return b.useEffect(()=>{var f;const u=(f=n.current)==null?void 0:f.getAttribute("aria-describedby");r&&u&&(document.getElementById(r)||console.warn(i))},[i,n,r]),null},Xy=Oy,Qy=Dy,Zy=zy,td=ky,nd=Ly,ad=By,ld=Vy,Ms=qy;const yC=Xy,bC=Qy,xC=Zy,D_=Ms,Ky=b.forwardRef(({className:n,...r},o)=>y.jsx(td,{ref:o,className:we("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...r}));Ky.displayName=td.displayName;const Py=b.forwardRef(({className:n,children:r,...o},i)=>y.jsxs(xC,{children:[y.jsx(Ky,{}),y.jsxs(nd,{ref:i,className:we("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-[22px] border bg-background p-6 shadow-[0_34px_110px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...o,children:[r,y.jsxs(Ms,{className:"absolute right-4 top-4 rounded-[10px] opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[y.jsx(Kv,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Py.displayName=nd.displayName;const Jy=({className:n,...r})=>y.jsx("div",{className:we("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});Jy.displayName="DialogHeader";const SC=({className:n,...r})=>y.jsx("div",{className:we("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});SC.displayName="DialogFooter";const Iy=b.forwardRef(({className:n,...r},o)=>y.jsx(ad,{ref:o,className:we("text-lg font-semibold leading-none tracking-tight",n),...r}));Iy.displayName=ad.displayName;const Fy=b.forwardRef(({className:n,...r},o)=>y.jsx(ld,{ref:o,className:we("text-sm text-muted-foreground",n),...r}));Fy.displayName=ld.displayName;function Jg(n,[r,o]){return Math.min(o,Math.max(r,n))}function Wy(n){const r=n+"CollectionProvider",[o,i]=_l(r),[u,f]=o(r,{collectionRef:{current:null},itemMap:new Map}),d=N=>{const{scope:T,children:A}=N,j=te.useRef(null),D=te.useRef(new Map).current;return y.jsx(u,{scope:T,itemMap:D,collectionRef:j,children:A})};d.displayName=r;const m=n+"CollectionSlot",v=Mo(m),p=te.forwardRef((N,T)=>{const{scope:A,children:j}=N,D=f(m,A),B=nt(T,D.collectionRef);return y.jsx(v,{ref:B,children:j})});p.displayName=m;const x=n+"CollectionItemSlot",h="data-radix-collection-item",w=Mo(x),E=te.forwardRef((N,T)=>{const{scope:A,children:j,...D}=N,B=te.useRef(null),K=nt(T,B),J=f(x,A);return te.useEffect(()=>(J.itemMap.set(B,{ref:B,...D}),()=>void J.itemMap.delete(B))),y.jsx(w,{[h]:"",ref:K,children:j})});E.displayName=x;function C(N){const T=f(n+"CollectionConsumer",N);return te.useCallback(()=>{const j=T.collectionRef.current;if(!j)return[];const D=Array.from(j.querySelectorAll(`[${h}]`));return Array.from(T.itemMap.values()).sort((J,q)=>D.indexOf(J.ref.current)-D.indexOf(q.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:d,Slot:p,ItemSlot:E},C,i]}var wC=b.createContext(void 0);function rd(n){const r=b.useContext(wC);return n||r||"ltr"}const EC=["top","right","bottom","left"],Ka=Math.min,Ft=Math.max,Ss=Math.round,ss=Math.floor,Hn=n=>({x:n,y:n}),NC={left:"right",right:"left",bottom:"top",top:"bottom"};function Af(n,r,o){return Ft(n,Ka(r,o))}function ua(n,r){return typeof n=="function"?n(r):n}function fa(n){return n.split("-")[0]}function Rr(n){return n.split("-")[1]}function od(n){return n==="x"?"y":"x"}function id(n){return n==="y"?"height":"width"}function Un(n){const r=n[0];return r==="t"||r==="b"?"y":"x"}function sd(n){return od(Un(n))}function TC(n,r,o){o===void 0&&(o=!1);const i=Rr(n),u=sd(n),f=id(u);let d=u==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[f]>r.floating[f]&&(d=ws(d)),[d,ws(d)]}function CC(n){const r=ws(n);return[Rf(n),r,Rf(r)]}function Rf(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Ig=["left","right"],Fg=["right","left"],AC=["top","bottom"],RC=["bottom","top"];function _C(n,r,o){switch(n){case"top":case"bottom":return o?r?Fg:Ig:r?Ig:Fg;case"left":case"right":return r?AC:RC;default:return[]}}function OC(n,r,o,i){const u=Rr(n);let f=_C(fa(n),o==="start",i);return u&&(f=f.map(d=>d+"-"+u),r&&(f=f.concat(f.map(Rf)))),f}function ws(n){const r=fa(n);return NC[r]+n.slice(r.length)}function MC(n){return{top:0,right:0,bottom:0,left:0,...n}}function e0(n){return typeof n!="number"?MC(n):{top:n,right:n,bottom:n,left:n}}function Es(n){const{x:r,y:o,width:i,height:u}=n;return{width:i,height:u,top:o,left:r,right:r+i,bottom:o+u,x:r,y:o}}function Wg(n,r,o){let{reference:i,floating:u}=n;const f=Un(r),d=sd(r),m=id(d),v=fa(r),p=f==="y",x=i.x+i.width/2-u.width/2,h=i.y+i.height/2-u.height/2,w=i[m]/2-u[m]/2;let E;switch(v){case"top":E={x,y:i.y-u.height};break;case"bottom":E={x,y:i.y+i.height};break;case"right":E={x:i.x+i.width,y:h};break;case"left":E={x:i.x-u.width,y:h};break;default:E={x:i.x,y:i.y}}switch(Rr(r)){case"start":E[d]-=w*(o&&p?-1:1);break;case"end":E[d]+=w*(o&&p?-1:1);break}return E}async function DC(n,r){var o;r===void 0&&(r={});const{x:i,y:u,platform:f,rects:d,elements:m,strategy:v}=n,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:h="floating",altBoundary:w=!1,padding:E=0}=ua(r,n),C=e0(E),T=m[w?h==="floating"?"reference":"floating":h],A=Es(await f.getClippingRect({element:(o=await(f.isElement==null?void 0:f.isElement(T)))==null||o?T:T.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(m.floating)),boundary:p,rootBoundary:x,strategy:v})),j=h==="floating"?{x:i,y:u,width:d.floating.width,height:d.floating.height}:d.reference,D=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m.floating)),B=await(f.isElement==null?void 0:f.isElement(D))?await(f.getScale==null?void 0:f.getScale(D))||{x:1,y:1}:{x:1,y:1},K=Es(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:j,offsetParent:D,strategy:v}):j);return{top:(A.top-K.top+C.top)/B.y,bottom:(K.bottom-A.bottom+C.bottom)/B.y,left:(A.left-K.left+C.left)/B.x,right:(K.right-A.right+C.right)/B.x}}const jC=50,zC=async(n,r,o)=>{const{placement:i="bottom",strategy:u="absolute",middleware:f=[],platform:d}=o,m=d.detectOverflow?d:{...d,detectOverflow:DC},v=await(d.isRTL==null?void 0:d.isRTL(r));let p=await d.getElementRects({reference:n,floating:r,strategy:u}),{x,y:h}=Wg(p,i,v),w=i,E=0;const C={};for(let N=0;N<f.length;N++){const T=f[N];if(!T)continue;const{name:A,fn:j}=T,{x:D,y:B,data:K,reset:J}=await j({x,y:h,initialPlacement:i,placement:w,strategy:u,middlewareData:C,rects:p,platform:m,elements:{reference:n,floating:r}});x=D??x,h=B??h,C[A]={...C[A],...K},J&&E<jC&&(E++,typeof J=="object"&&(J.placement&&(w=J.placement),J.rects&&(p=J.rects===!0?await d.getElementRects({reference:n,floating:r,strategy:u}):J.rects),{x,y:h}=Wg(p,w,v)),N=-1)}return{x,y:h,placement:w,strategy:u,middlewareData:C}},kC=n=>({name:"arrow",options:n,async fn(r){const{x:o,y:i,placement:u,rects:f,platform:d,elements:m,middlewareData:v}=r,{element:p,padding:x=0}=ua(n,r)||{};if(p==null)return{};const h=e0(x),w={x:o,y:i},E=sd(u),C=id(E),N=await d.getDimensions(p),T=E==="y",A=T?"top":"left",j=T?"bottom":"right",D=T?"clientHeight":"clientWidth",B=f.reference[C]+f.reference[E]-w[E]-f.floating[C],K=w[E]-f.reference[E],J=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p));let q=J?J[D]:0;(!q||!await(d.isElement==null?void 0:d.isElement(J)))&&(q=m.floating[D]||f.floating[C]);const V=B/2-K/2,re=q/2-N[C]/2-1,ve=Ka(h[A],re),ye=Ka(h[j],re),de=ve,ge=q-N[C]-ye,be=q/2-N[C]/2+V,fe=Af(de,be,ge),O=!v.arrow&&Rr(u)!=null&&be!==fe&&f.reference[C]/2-(be<de?ve:ye)-N[C]/2<0,Y=O?be<de?be-de:be-ge:0;return{[E]:w[E]+Y,data:{[E]:fe,centerOffset:be-fe-Y,...O&&{alignmentOffset:Y}},reset:O}}}),LC=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var o,i;const{placement:u,middlewareData:f,rects:d,initialPlacement:m,platform:v,elements:p}=r,{mainAxis:x=!0,crossAxis:h=!0,fallbackPlacements:w,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:N=!0,...T}=ua(n,r);if((o=f.arrow)!=null&&o.alignmentOffset)return{};const A=fa(u),j=Un(m),D=fa(m)===m,B=await(v.isRTL==null?void 0:v.isRTL(p.floating)),K=w||(D||!N?[ws(m)]:CC(m)),J=C!=="none";!w&&J&&K.push(...OC(m,N,C,B));const q=[m,...K],V=await v.detectOverflow(r,T),re=[];let ve=((i=f.flip)==null?void 0:i.overflows)||[];if(x&&re.push(V[A]),h){const be=TC(u,d,B);re.push(V[be[0]],V[be[1]])}if(ve=[...ve,{placement:u,overflows:re}],!re.every(be=>be<=0)){var ye,de;const be=(((ye=f.flip)==null?void 0:ye.index)||0)+1,fe=q[be];if(fe&&(!(h==="alignment"?j!==Un(fe):!1)||ve.every(P=>Un(P.placement)===j?P.overflows[0]>0:!0)))return{data:{index:be,overflows:ve},reset:{placement:fe}};let O=(de=ve.filter(Y=>Y.overflows[0]<=0).sort((Y,P)=>Y.overflows[1]-P.overflows[1])[0])==null?void 0:de.placement;if(!O)switch(E){case"bestFit":{var ge;const Y=(ge=ve.filter(P=>{if(J){const oe=Un(P.placement);return oe===j||oe==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(oe=>oe>0).reduce((oe,I)=>oe+I,0)]).sort((P,oe)=>P[1]-oe[1])[0])==null?void 0:ge[0];Y&&(O=Y);break}case"initialPlacement":O=m;break}if(u!==O)return{reset:{placement:O}}}return{}}}};function ev(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function tv(n){return EC.some(r=>n[r]>=0)}const UC=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:o,platform:i}=r,{strategy:u="referenceHidden",...f}=ua(n,r);switch(u){case"referenceHidden":{const d=await i.detectOverflow(r,{...f,elementContext:"reference"}),m=ev(d,o.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:tv(m)}}}case"escaped":{const d=await i.detectOverflow(r,{...f,altBoundary:!0}),m=ev(d,o.floating);return{data:{escapedOffsets:m,escaped:tv(m)}}}default:return{}}}}},t0=new Set(["left","top"]);async function BC(n,r){const{placement:o,platform:i,elements:u}=n,f=await(i.isRTL==null?void 0:i.isRTL(u.floating)),d=fa(o),m=Rr(o),v=Un(o)==="y",p=t0.has(d)?-1:1,x=f&&v?-1:1,h=ua(r,n);let{mainAxis:w,crossAxis:E,alignmentAxis:C}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return m&&typeof C=="number"&&(E=m==="end"?C*-1:C),v?{x:E*x,y:w*p}:{x:w*p,y:E*x}}const HC=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var o,i;const{x:u,y:f,placement:d,middlewareData:m}=r,v=await BC(r,n);return d===((o=m.offset)==null?void 0:o.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:u+v.x,y:f+v.y,data:{...v,placement:d}}}}},VC=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:o,y:i,placement:u,platform:f}=r,{mainAxis:d=!0,crossAxis:m=!1,limiter:v={fn:A=>{let{x:j,y:D}=A;return{x:j,y:D}}},...p}=ua(n,r),x={x:o,y:i},h=await f.detectOverflow(r,p),w=Un(fa(u)),E=od(w);let C=x[E],N=x[w];if(d){const A=E==="y"?"top":"left",j=E==="y"?"bottom":"right",D=C+h[A],B=C-h[j];C=Af(D,C,B)}if(m){const A=w==="y"?"top":"left",j=w==="y"?"bottom":"right",D=N+h[A],B=N-h[j];N=Af(D,N,B)}const T=v.fn({...r,[E]:C,[w]:N});return{...T,data:{x:T.x-o,y:T.y-i,enabled:{[E]:d,[w]:m}}}}}},YC=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:o,y:i,placement:u,rects:f,middlewareData:d}=r,{offset:m=0,mainAxis:v=!0,crossAxis:p=!0}=ua(n,r),x={x:o,y:i},h=Un(u),w=od(h);let E=x[w],C=x[h];const N=ua(m,r),T=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:0,crossAxis:0,...N};if(v){const D=w==="y"?"height":"width",B=f.reference[w]-f.floating[D]+T.mainAxis,K=f.reference[w]+f.reference[D]-T.mainAxis;E<B?E=B:E>K&&(E=K)}if(p){var A,j;const D=w==="y"?"width":"height",B=t0.has(fa(u)),K=f.reference[h]-f.floating[D]+(B&&((A=d.offset)==null?void 0:A[h])||0)+(B?0:T.crossAxis),J=f.reference[h]+f.reference[D]+(B?0:((j=d.offset)==null?void 0:j[h])||0)-(B?T.crossAxis:0);C<K?C=K:C>J&&(C=J)}return{[w]:E,[h]:C}}}},qC=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var o,i;const{placement:u,rects:f,platform:d,elements:m}=r,{apply:v=()=>{},...p}=ua(n,r),x=await d.detectOverflow(r,p),h=fa(u),w=Rr(u),E=Un(u)==="y",{width:C,height:N}=f.floating;let T,A;h==="top"||h==="bottom"?(T=h,A=w===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(A=h,T=w==="end"?"top":"bottom");const j=N-x.top-x.bottom,D=C-x.left-x.right,B=Ka(N-x[T],j),K=Ka(C-x[A],D),J=!r.middlewareData.shift;let q=B,V=K;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&(V=D),(i=r.middlewareData.shift)!=null&&i.enabled.y&&(q=j),J&&!w){const ve=Ft(x.left,0),ye=Ft(x.right,0),de=Ft(x.top,0),ge=Ft(x.bottom,0);E?V=C-2*(ve!==0||ye!==0?ve+ye:Ft(x.left,x.right)):q=N-2*(de!==0||ge!==0?de+ge:Ft(x.top,x.bottom))}await v({...r,availableWidth:V,availableHeight:q});const re=await d.getDimensions(m.floating);return C!==re.width||N!==re.height?{reset:{rects:!0}}:{}}}};function Ds(){return typeof window<"u"}function _r(n){return n0(n)?(n.nodeName||"").toLowerCase():"#document"}function Wt(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Yn(n){var r;return(r=(n0(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function n0(n){return Ds()?n instanceof Node||n instanceof Wt(n).Node:!1}function Sn(n){return Ds()?n instanceof Element||n instanceof Wt(n).Element:!1}function da(n){return Ds()?n instanceof HTMLElement||n instanceof Wt(n).HTMLElement:!1}function nv(n){return!Ds()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Wt(n).ShadowRoot}function Uo(n){const{overflow:r,overflowX:o,overflowY:i,display:u}=wn(n);return/auto|scroll|overlay|hidden|clip/.test(r+i+o)&&u!=="inline"&&u!=="contents"}function GC(n){return/^(table|td|th)$/.test(_r(n))}function js(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const $C=/transform|translate|scale|rotate|perspective|filter/,XC=/paint|layout|strict|content/,wl=n=>!!n&&n!=="none";let vf;function cd(n){const r=Sn(n)?wn(n):n;return wl(r.transform)||wl(r.translate)||wl(r.scale)||wl(r.rotate)||wl(r.perspective)||!ud()&&(wl(r.backdropFilter)||wl(r.filter))||$C.test(r.willChange||"")||XC.test(r.contain||"")}function QC(n){let r=Pa(n);for(;da(r)&&!Nr(r);){if(cd(r))return r;if(js(r))return null;r=Pa(r)}return null}function ud(){return vf==null&&(vf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),vf}function Nr(n){return/^(html|body|#document)$/.test(_r(n))}function wn(n){return Wt(n).getComputedStyle(n)}function zs(n){return Sn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Pa(n){if(_r(n)==="html")return n;const r=n.assignedSlot||n.parentNode||nv(n)&&n.host||Yn(n);return nv(r)?r.host:r}function a0(n){const r=Pa(n);return Nr(r)?n.ownerDocument?n.ownerDocument.body:n.body:da(r)&&Uo(r)?r:a0(r)}function Do(n,r,o){var i;r===void 0&&(r=[]),o===void 0&&(o=!0);const u=a0(n),f=u===((i=n.ownerDocument)==null?void 0:i.body),d=Wt(u);if(f){const m=_f(d);return r.concat(d,d.visualViewport||[],Uo(u)?u:[],m&&o?Do(m):[])}else return r.concat(u,Do(u,[],o))}function _f(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function l0(n){const r=wn(n);let o=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const u=da(n),f=u?n.offsetWidth:o,d=u?n.offsetHeight:i,m=Ss(o)!==f||Ss(i)!==d;return m&&(o=f,i=d),{width:o,height:i,$:m}}function fd(n){return Sn(n)?n:n.contextElement}function wr(n){const r=fd(n);if(!da(r))return Hn(1);const o=r.getBoundingClientRect(),{width:i,height:u,$:f}=l0(r);let d=(f?Ss(o.width):o.width)/i,m=(f?Ss(o.height):o.height)/u;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const ZC=Hn(0);function r0(n){const r=Wt(n);return!ud()||!r.visualViewport?ZC:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function KC(n,r,o){return r===void 0&&(r=!1),!o||r&&o!==Wt(n)?!1:r}function Tl(n,r,o,i){r===void 0&&(r=!1),o===void 0&&(o=!1);const u=n.getBoundingClientRect(),f=fd(n);let d=Hn(1);r&&(i?Sn(i)&&(d=wr(i)):d=wr(n));const m=KC(f,o,i)?r0(f):Hn(0);let v=(u.left+m.x)/d.x,p=(u.top+m.y)/d.y,x=u.width/d.x,h=u.height/d.y;if(f){const w=Wt(f),E=i&&Sn(i)?Wt(i):i;let C=w,N=_f(C);for(;N&&i&&E!==C;){const T=wr(N),A=N.getBoundingClientRect(),j=wn(N),D=A.left+(N.clientLeft+parseFloat(j.paddingLeft))*T.x,B=A.top+(N.clientTop+parseFloat(j.paddingTop))*T.y;v*=T.x,p*=T.y,x*=T.x,h*=T.y,v+=D,p+=B,C=Wt(N),N=_f(C)}}return Es({width:x,height:h,x:v,y:p})}function ks(n,r){const o=zs(n).scrollLeft;return r?r.left+o:Tl(Yn(n)).left+o}function o0(n,r){const o=n.getBoundingClientRect(),i=o.left+r.scrollLeft-ks(n,o),u=o.top+r.scrollTop;return{x:i,y:u}}function PC(n){let{elements:r,rect:o,offsetParent:i,strategy:u}=n;const f=u==="fixed",d=Yn(i),m=r?js(r.floating):!1;if(i===d||m&&f)return o;let v={scrollLeft:0,scrollTop:0},p=Hn(1);const x=Hn(0),h=da(i);if((h||!h&&!f)&&((_r(i)!=="body"||Uo(d))&&(v=zs(i)),h)){const E=Tl(i);p=wr(i),x.x=E.x+i.clientLeft,x.y=E.y+i.clientTop}const w=d&&!h&&!f?o0(d,v):Hn(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-v.scrollLeft*p.x+x.x+w.x,y:o.y*p.y-v.scrollTop*p.y+x.y+w.y}}function JC(n){return Array.from(n.getClientRects())}function IC(n){const r=Yn(n),o=zs(n),i=n.ownerDocument.body,u=Ft(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),f=Ft(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let d=-o.scrollLeft+ks(n);const m=-o.scrollTop;return wn(i).direction==="rtl"&&(d+=Ft(r.clientWidth,i.clientWidth)-u),{width:u,height:f,x:d,y:m}}const av=25;function FC(n,r){const o=Wt(n),i=Yn(n),u=o.visualViewport;let f=i.clientWidth,d=i.clientHeight,m=0,v=0;if(u){f=u.width,d=u.height;const x=ud();(!x||x&&r==="fixed")&&(m=u.offsetLeft,v=u.offsetTop)}const p=ks(i);if(p<=0){const x=i.ownerDocument,h=x.body,w=getComputedStyle(h),E=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,C=Math.abs(i.clientWidth-h.clientWidth-E);C<=av&&(f-=C)}else p<=av&&(f+=p);return{width:f,height:d,x:m,y:v}}function WC(n,r){const o=Tl(n,!0,r==="fixed"),i=o.top+n.clientTop,u=o.left+n.clientLeft,f=da(n)?wr(n):Hn(1),d=n.clientWidth*f.x,m=n.clientHeight*f.y,v=u*f.x,p=i*f.y;return{width:d,height:m,x:v,y:p}}function lv(n,r,o){let i;if(r==="viewport")i=FC(n,o);else if(r==="document")i=IC(Yn(n));else if(Sn(r))i=WC(r,o);else{const u=r0(n);i={x:r.x-u.x,y:r.y-u.y,width:r.width,height:r.height}}return Es(i)}function i0(n,r){const o=Pa(n);return o===r||!Sn(o)||Nr(o)?!1:wn(o).position==="fixed"||i0(o,r)}function eA(n,r){const o=r.get(n);if(o)return o;let i=Do(n,[],!1).filter(m=>Sn(m)&&_r(m)!=="body"),u=null;const f=wn(n).position==="fixed";let d=f?Pa(n):n;for(;Sn(d)&&!Nr(d);){const m=wn(d),v=cd(d);!v&&m.position==="fixed"&&(u=null),(f?!v&&!u:!v&&m.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||Uo(d)&&!v&&i0(n,d))?i=i.filter(x=>x!==d):u=m,d=Pa(d)}return r.set(n,i),i}function tA(n){let{element:r,boundary:o,rootBoundary:i,strategy:u}=n;const d=[...o==="clippingAncestors"?js(r)?[]:eA(r,this._c):[].concat(o),i],m=lv(r,d[0],u);let v=m.top,p=m.right,x=m.bottom,h=m.left;for(let w=1;w<d.length;w++){const E=lv(r,d[w],u);v=Ft(E.top,v),p=Ka(E.right,p),x=Ka(E.bottom,x),h=Ft(E.left,h)}return{width:p-h,height:x-v,x:h,y:v}}function nA(n){const{width:r,height:o}=l0(n);return{width:r,height:o}}function aA(n,r,o){const i=da(r),u=Yn(r),f=o==="fixed",d=Tl(n,!0,f,r);let m={scrollLeft:0,scrollTop:0};const v=Hn(0);function p(){v.x=ks(u)}if(i||!i&&!f)if((_r(r)!=="body"||Uo(u))&&(m=zs(r)),i){const E=Tl(r,!0,f,r);v.x=E.x+r.clientLeft,v.y=E.y+r.clientTop}else u&&p();f&&!i&&u&&p();const x=u&&!i&&!f?o0(u,m):Hn(0),h=d.left+m.scrollLeft-v.x-x.x,w=d.top+m.scrollTop-v.y-x.y;return{x:h,y:w,width:d.width,height:d.height}}function yf(n){return wn(n).position==="static"}function rv(n,r){if(!da(n)||wn(n).position==="fixed")return null;if(r)return r(n);let o=n.offsetParent;return Yn(n)===o&&(o=o.ownerDocument.body),o}function s0(n,r){const o=Wt(n);if(js(n))return o;if(!da(n)){let u=Pa(n);for(;u&&!Nr(u);){if(Sn(u)&&!yf(u))return u;u=Pa(u)}return o}let i=rv(n,r);for(;i&&GC(i)&&yf(i);)i=rv(i,r);return i&&Nr(i)&&yf(i)&&!cd(i)?o:i||QC(n)||o}const lA=async function(n){const r=this.getOffsetParent||s0,o=this.getDimensions,i=await o(n.floating);return{reference:aA(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function rA(n){return wn(n).direction==="rtl"}const oA={convertOffsetParentRelativeRectToViewportRelativeRect:PC,getDocumentElement:Yn,getClippingRect:tA,getOffsetParent:s0,getElementRects:lA,getClientRects:JC,getDimensions:nA,getScale:wr,isElement:Sn,isRTL:rA};function c0(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function iA(n,r){let o=null,i;const u=Yn(n);function f(){var m;clearTimeout(i),(m=o)==null||m.disconnect(),o=null}function d(m,v){m===void 0&&(m=!1),v===void 0&&(v=1),f();const p=n.getBoundingClientRect(),{left:x,top:h,width:w,height:E}=p;if(m||r(),!w||!E)return;const C=ss(h),N=ss(u.clientWidth-(x+w)),T=ss(u.clientHeight-(h+E)),A=ss(x),D={rootMargin:-C+"px "+-N+"px "+-T+"px "+-A+"px",threshold:Ft(0,Ka(1,v))||1};let B=!0;function K(J){const q=J[0].intersectionRatio;if(q!==v){if(!B)return d();q?d(!1,q):i=setTimeout(()=>{d(!1,1e-7)},1e3)}q===1&&!c0(p,n.getBoundingClientRect())&&d(),B=!1}try{o=new IntersectionObserver(K,{...D,root:u.ownerDocument})}catch{o=new IntersectionObserver(K,D)}o.observe(n)}return d(!0),f}function sA(n,r,o,i){i===void 0&&(i={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:v=!1}=i,p=fd(n),x=u||f?[...p?Do(p):[],...r?Do(r):[]]:[];x.forEach(A=>{u&&A.addEventListener("scroll",o,{passive:!0}),f&&A.addEventListener("resize",o)});const h=p&&m?iA(p,o):null;let w=-1,E=null;d&&(E=new ResizeObserver(A=>{let[j]=A;j&&j.target===p&&E&&r&&(E.unobserve(r),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var D;(D=E)==null||D.observe(r)})),o()}),p&&!v&&E.observe(p),r&&E.observe(r));let C,N=v?Tl(n):null;v&&T();function T(){const A=Tl(n);N&&!c0(N,A)&&o(),N=A,C=requestAnimationFrame(T)}return o(),()=>{var A;x.forEach(j=>{u&&j.removeEventListener("scroll",o),f&&j.removeEventListener("resize",o)}),h==null||h(),(A=E)==null||A.disconnect(),E=null,v&&cancelAnimationFrame(C)}}const cA=HC,uA=VC,fA=LC,dA=qC,mA=UC,ov=kC,pA=YC,hA=(n,r,o)=>{const i=new Map,u={platform:oA,...o},f={...u.platform,_c:i};return zC(n,r,{...u,platform:f})};var gA=typeof document<"u",vA=function(){},ps=gA?b.useLayoutEffect:vA;function Ns(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let o,i,u;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==r.length)return!1;for(i=o;i--!==0;)if(!Ns(n[i],r[i]))return!1;return!0}if(u=Object.keys(n),o=u.length,o!==Object.keys(r).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(r,u[i]))return!1;for(i=o;i--!==0;){const f=u[i];if(!(f==="_owner"&&n.$$typeof)&&!Ns(n[f],r[f]))return!1}return!0}return n!==n&&r!==r}function u0(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function iv(n,r){const o=u0(n);return Math.round(r*o)/o}function bf(n){const r=b.useRef(n);return ps(()=>{r.current=n}),r}function yA(n){n===void 0&&(n={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:u,elements:{reference:f,floating:d}={},transform:m=!0,whileElementsMounted:v,open:p}=n,[x,h]=b.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[w,E]=b.useState(i);Ns(w,i)||E(i);const[C,N]=b.useState(null),[T,A]=b.useState(null),j=b.useCallback(P=>{P!==J.current&&(J.current=P,N(P))},[]),D=b.useCallback(P=>{P!==q.current&&(q.current=P,A(P))},[]),B=f||C,K=d||T,J=b.useRef(null),q=b.useRef(null),V=b.useRef(x),re=v!=null,ve=bf(v),ye=bf(u),de=bf(p),ge=b.useCallback(()=>{if(!J.current||!q.current)return;const P={placement:r,strategy:o,middleware:w};ye.current&&(P.platform=ye.current),hA(J.current,q.current,P).then(oe=>{const I={...oe,isPositioned:de.current!==!1};be.current&&!Ns(V.current,I)&&(V.current=I,ko.flushSync(()=>{h(I)}))})},[w,r,o,ye,de]);ps(()=>{p===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,h(P=>({...P,isPositioned:!1})))},[p]);const be=b.useRef(!1);ps(()=>(be.current=!0,()=>{be.current=!1}),[]),ps(()=>{if(B&&(J.current=B),K&&(q.current=K),B&&K){if(ve.current)return ve.current(B,K,ge);ge()}},[B,K,ge,ve,re]);const fe=b.useMemo(()=>({reference:J,floating:q,setReference:j,setFloating:D}),[j,D]),O=b.useMemo(()=>({reference:B,floating:K}),[B,K]),Y=b.useMemo(()=>{const P={position:o,left:0,top:0};if(!O.floating)return P;const oe=iv(O.floating,x.x),I=iv(O.floating,x.y);return m?{...P,transform:"translate("+oe+"px, "+I+"px)",...u0(O.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:oe,top:I}},[o,m,O.floating,x.x,x.y]);return b.useMemo(()=>({...x,update:ge,refs:fe,elements:O,floatingStyles:Y}),[x,ge,fe,O,Y])}const bA=n=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:i,padding:u}=typeof n=="function"?n(o):n;return i&&r(i)?i.current!=null?ov({element:i.current,padding:u}).fn(o):{}:i?ov({element:i,padding:u}).fn(o):{}}}},xA=(n,r)=>{const o=cA(n);return{name:o.name,fn:o.fn,options:[n,r]}},SA=(n,r)=>{const o=uA(n);return{name:o.name,fn:o.fn,options:[n,r]}},wA=(n,r)=>({fn:pA(n).fn,options:[n,r]}),EA=(n,r)=>{const o=fA(n);return{name:o.name,fn:o.fn,options:[n,r]}},NA=(n,r)=>{const o=dA(n);return{name:o.name,fn:o.fn,options:[n,r]}},TA=(n,r)=>{const o=mA(n);return{name:o.name,fn:o.fn,options:[n,r]}},CA=(n,r)=>{const o=bA(n);return{name:o.name,fn:o.fn,options:[n,r]}};var AA="Arrow",f0=b.forwardRef((n,r)=>{const{children:o,width:i=10,height:u=5,...f}=n;return y.jsx(He.svg,{...f,ref:r,width:i,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?o:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});f0.displayName=AA;var RA=f0;function _A(n){const[r,o]=b.useState(void 0);return Rt(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let d,m;if("borderBoxSize"in f){const v=f.borderBoxSize,p=Array.isArray(v)?v[0]:v;d=p.inlineSize,m=p.blockSize}else d=n.offsetWidth,m=n.offsetHeight;o({width:d,height:m})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else o(void 0)},[n]),r}var dd="Popper",[d0,m0]=_l(dd),[OA,p0]=d0(dd),h0=n=>{const{__scopePopper:r,children:o}=n,[i,u]=b.useState(null);return y.jsx(OA,{scope:r,anchor:i,onAnchorChange:u,children:o})};h0.displayName=dd;var g0="PopperAnchor",v0=b.forwardRef((n,r)=>{const{__scopePopper:o,virtualRef:i,...u}=n,f=p0(g0,o),d=b.useRef(null),m=nt(r,d),v=b.useRef(null);return b.useEffect(()=>{const p=v.current;v.current=(i==null?void 0:i.current)||d.current,p!==v.current&&f.onAnchorChange(v.current)}),i?null:y.jsx(He.div,{...u,ref:m})});v0.displayName=g0;var md="PopperContent",[MA,DA]=d0(md),y0=b.forwardRef((n,r)=>{var ee,le,ie,ne,pe,he;const{__scopePopper:o,side:i="bottom",sideOffset:u=0,align:f="center",alignOffset:d=0,arrowPadding:m=0,avoidCollisions:v=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:h="partial",hideWhenDetached:w=!1,updatePositionStrategy:E="optimized",onPlaced:C,...N}=n,T=p0(md,o),[A,j]=b.useState(null),D=nt(r,qe=>j(qe)),[B,K]=b.useState(null),J=_A(B),q=(J==null?void 0:J.width)??0,V=(J==null?void 0:J.height)??0,re=i+(f!=="center"?"-"+f:""),ve=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},ye=Array.isArray(p)?p:[p],de=ye.length>0,ge={padding:ve,boundary:ye.filter(zA),altBoundary:de},{refs:be,floatingStyles:fe,placement:O,isPositioned:Y,middlewareData:P}=yA({strategy:"fixed",placement:re,whileElementsMounted:(...qe)=>sA(...qe,{animationFrame:E==="always"}),elements:{reference:T.anchor},middleware:[xA({mainAxis:u+V,alignmentAxis:d}),v&&SA({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?wA():void 0,...ge}),v&&EA({...ge}),NA({...ge,apply:({elements:qe,rects:Le,availableWidth:pt,availableHeight:bt})=>{const{width:Ve,height:$t}=Le.reference,Pe=qe.floating.style;Pe.setProperty("--radix-popper-available-width",`${pt}px`),Pe.setProperty("--radix-popper-available-height",`${bt}px`),Pe.setProperty("--radix-popper-anchor-width",`${Ve}px`),Pe.setProperty("--radix-popper-anchor-height",`${$t}px`)}}),B&&CA({element:B,padding:m}),kA({arrowWidth:q,arrowHeight:V}),w&&TA({strategy:"referenceHidden",...ge})]}),[oe,I]=S0(O),_=Za(C);Rt(()=>{Y&&(_==null||_())},[Y,_]);const G=(ee=P.arrow)==null?void 0:ee.x,X=(le=P.arrow)==null?void 0:le.y,F=((ie=P.arrow)==null?void 0:ie.centerOffset)!==0,[W,ae]=b.useState();return Rt(()=>{A&&ae(window.getComputedStyle(A).zIndex)},[A]),y.jsx("div",{ref:be.setFloating,"data-radix-popper-content-wrapper":"",style:{...fe,transform:Y?fe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[(ne=P.transformOrigin)==null?void 0:ne.x,(pe=P.transformOrigin)==null?void 0:pe.y].join(" "),...((he=P.hide)==null?void 0:he.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:y.jsx(MA,{scope:o,placedSide:oe,onArrowChange:K,arrowX:G,arrowY:X,shouldHideArrow:F,children:y.jsx(He.div,{"data-side":oe,"data-align":I,...N,ref:D,style:{...N.style,animation:Y?void 0:"none"}})})})});y0.displayName=md;var b0="PopperArrow",jA={top:"bottom",right:"left",bottom:"top",left:"right"},x0=b.forwardRef(function(r,o){const{__scopePopper:i,...u}=r,f=DA(b0,i),d=jA[f.placedSide];return y.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:y.jsx(RA,{...u,ref:o,style:{...u.style,display:"block"}})})});x0.displayName=b0;function zA(n){return n!==null}var kA=n=>({name:"transformOrigin",options:n,fn(r){var T,A,j;const{placement:o,rects:i,middlewareData:u}=r,d=((T=u.arrow)==null?void 0:T.centerOffset)!==0,m=d?0:n.arrowWidth,v=d?0:n.arrowHeight,[p,x]=S0(o),h={start:"0%",center:"50%",end:"100%"}[x],w=(((A=u.arrow)==null?void 0:A.x)??0)+m/2,E=(((j=u.arrow)==null?void 0:j.y)??0)+v/2;let C="",N="";return p==="bottom"?(C=d?h:`${w}px`,N=`${-v}px`):p==="top"?(C=d?h:`${w}px`,N=`${i.floating.height+v}px`):p==="right"?(C=`${-v}px`,N=d?h:`${E}px`):p==="left"&&(C=`${i.floating.width+v}px`,N=d?h:`${E}px`),{data:{x:C,y:N}}}});function S0(n){const[r,o="center"]=n.split("-");return[r,o]}var LA=h0,UA=v0,BA=y0,HA=x0;function VA(n){const r=b.useRef({value:n,previous:n});return b.useMemo(()=>(r.current.value!==n&&(r.current.previous=r.current.value,r.current.value=n),r.current.previous),[n])}var w0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),YA="VisuallyHidden",qA=b.forwardRef((n,r)=>y.jsx(He.span,{...n,ref:r,style:{...w0,...n.style}}));qA.displayName=YA;var GA=[" ","Enter","ArrowUp","ArrowDown"],$A=[" ","Enter"],Cl="Select",[Ls,Us,XA]=Wy(Cl),[Or]=_l(Cl,[XA,m0]),Bs=m0(),[QA,Ia]=Or(Cl),[ZA,KA]=Or(Cl),E0=n=>{const{__scopeSelect:r,children:o,open:i,defaultOpen:u,onOpenChange:f,value:d,defaultValue:m,onValueChange:v,dir:p,name:x,autoComplete:h,disabled:w,required:E,form:C}=n,N=Bs(r),[T,A]=b.useState(null),[j,D]=b.useState(null),[B,K]=b.useState(!1),J=rd(p),[q,V]=Oo({prop:i,defaultProp:u??!1,onChange:f,caller:Cl}),[re,ve]=Oo({prop:d,defaultProp:m,onChange:v,caller:Cl}),ye=b.useRef(null),de=T?C||!!T.closest("form"):!0,[ge,be]=b.useState(new Set),fe=Array.from(ge).map(O=>O.props.value).join(";");return y.jsx(LA,{...N,children:y.jsxs(QA,{required:E,scope:r,trigger:T,onTriggerChange:A,valueNode:j,onValueNodeChange:D,valueNodeHasChildren:B,onValueNodeHasChildrenChange:K,contentId:Xa(),value:re,onValueChange:ve,open:q,onOpenChange:V,dir:J,triggerPointerDownPosRef:ye,disabled:w,children:[y.jsx(Ls.Provider,{scope:r,children:y.jsx(ZA,{scope:n.__scopeSelect,onNativeOptionAdd:b.useCallback(O=>{be(Y=>new Set(Y).add(O))},[]),onNativeOptionRemove:b.useCallback(O=>{be(Y=>{const P=new Set(Y);return P.delete(O),P})},[]),children:o})}),de?y.jsxs(Z0,{"aria-hidden":!0,required:E,tabIndex:-1,name:x,autoComplete:h,value:re,onChange:O=>ve(O.target.value),disabled:w,form:C,children:[re===void 0?y.jsx("option",{value:""}):null,Array.from(ge)]},fe):null]})})};E0.displayName=Cl;var N0="SelectTrigger",T0=b.forwardRef((n,r)=>{const{__scopeSelect:o,disabled:i=!1,...u}=n,f=Bs(o),d=Ia(N0,o),m=d.disabled||i,v=nt(r,d.onTriggerChange),p=Us(o),x=b.useRef("touch"),[h,w,E]=P0(N=>{const T=p().filter(D=>!D.disabled),A=T.find(D=>D.value===d.value),j=J0(T,N,A);j!==void 0&&d.onValueChange(j.value)}),C=N=>{m||(d.onOpenChange(!0),E()),N&&(d.triggerPointerDownPosRef.current={x:Math.round(N.pageX),y:Math.round(N.pageY)})};return y.jsx(UA,{asChild:!0,...f,children:y.jsx(He.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":K0(d.value)?"":void 0,...u,ref:v,onClick:ke(u.onClick,N=>{N.currentTarget.focus(),x.current!=="mouse"&&C(N)}),onPointerDown:ke(u.onPointerDown,N=>{x.current=N.pointerType;const T=N.target;T.hasPointerCapture(N.pointerId)&&T.releasePointerCapture(N.pointerId),N.button===0&&N.ctrlKey===!1&&N.pointerType==="mouse"&&(C(N),N.preventDefault())}),onKeyDown:ke(u.onKeyDown,N=>{const T=h.current!=="";!(N.ctrlKey||N.altKey||N.metaKey)&&N.key.length===1&&w(N.key),!(T&&N.key===" ")&&GA.includes(N.key)&&(C(),N.preventDefault())})})})});T0.displayName=N0;var C0="SelectValue",A0=b.forwardRef((n,r)=>{const{__scopeSelect:o,className:i,style:u,children:f,placeholder:d="",...m}=n,v=Ia(C0,o),{onValueNodeHasChildrenChange:p}=v,x=f!==void 0,h=nt(r,v.onValueNodeChange);return Rt(()=>{p(x)},[p,x]),y.jsx(He.span,{...m,ref:h,style:{pointerEvents:"none"},children:K0(v.value)?y.jsx(y.Fragment,{children:d}):f})});A0.displayName=C0;var PA="SelectIcon",R0=b.forwardRef((n,r)=>{const{__scopeSelect:o,children:i,...u}=n;return y.jsx(He.span,{"aria-hidden":!0,...u,ref:r,children:i||"▼"})});R0.displayName=PA;var JA="SelectPortal",_0=n=>y.jsx(Jf,{asChild:!0,...n});_0.displayName=JA;var Al="SelectContent",O0=b.forwardRef((n,r)=>{const o=Ia(Al,n.__scopeSelect),[i,u]=b.useState();if(Rt(()=>{u(new DocumentFragment)},[]),!o.open){const f=i;return f?ko.createPortal(y.jsx(M0,{scope:n.__scopeSelect,children:y.jsx(Ls.Slot,{scope:n.__scopeSelect,children:y.jsx("div",{children:n.children})})}),f):null}return y.jsx(D0,{...n,ref:r})});O0.displayName=Al;var bn=10,[M0,Fa]=Or(Al),IA="SelectContentImpl",FA=Mo("SelectContent.RemoveScroll"),D0=b.forwardRef((n,r)=>{const{__scopeSelect:o,position:i="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:f,onPointerDownOutside:d,side:m,sideOffset:v,align:p,alignOffset:x,arrowPadding:h,collisionBoundary:w,collisionPadding:E,sticky:C,hideWhenDetached:N,avoidCollisions:T,...A}=n,j=Ia(Al,o),[D,B]=b.useState(null),[K,J]=b.useState(null),q=nt(r,ee=>B(ee)),[V,re]=b.useState(null),[ve,ye]=b.useState(null),de=Us(o),[ge,be]=b.useState(!1),fe=b.useRef(!1);b.useEffect(()=>{if(D)return Ay(D)},[D]),yy();const O=b.useCallback(ee=>{const[le,...ie]=de().map(he=>he.ref.current),[ne]=ie.slice(-1),pe=document.activeElement;for(const he of ee)if(he===pe||(he==null||he.scrollIntoView({block:"nearest"}),he===le&&K&&(K.scrollTop=0),he===ne&&K&&(K.scrollTop=K.scrollHeight),he==null||he.focus(),document.activeElement!==pe))return},[de,K]),Y=b.useCallback(()=>O([V,D]),[O,V,D]);b.useEffect(()=>{ge&&Y()},[ge,Y]);const{onOpenChange:P,triggerPointerDownPosRef:oe}=j;b.useEffect(()=>{if(D){let ee={x:0,y:0};const le=ne=>{var pe,he;ee={x:Math.abs(Math.round(ne.pageX)-(((pe=oe.current)==null?void 0:pe.x)??0)),y:Math.abs(Math.round(ne.pageY)-(((he=oe.current)==null?void 0:he.y)??0))}},ie=ne=>{ee.x<=10&&ee.y<=10?ne.preventDefault():D.contains(ne.target)||P(!1),document.removeEventListener("pointermove",le),oe.current=null};return oe.current!==null&&(document.addEventListener("pointermove",le),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",le),document.removeEventListener("pointerup",ie,{capture:!0})}}},[D,P,oe]),b.useEffect(()=>{const ee=()=>P(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[P]);const[I,_]=P0(ee=>{const le=de().filter(pe=>!pe.disabled),ie=le.find(pe=>pe.ref.current===document.activeElement),ne=J0(le,ee,ie);ne&&setTimeout(()=>ne.ref.current.focus())}),G=b.useCallback((ee,le,ie)=>{const ne=!fe.current&&!ie;(j.value!==void 0&&j.value===le||ne)&&(re(ee),ne&&(fe.current=!0))},[j.value]),X=b.useCallback(()=>D==null?void 0:D.focus(),[D]),F=b.useCallback((ee,le,ie)=>{const ne=!fe.current&&!ie;(j.value!==void 0&&j.value===le||ne)&&ye(ee)},[j.value]),W=i==="popper"?Of:j0,ae=W===Of?{side:m,sideOffset:v,align:p,alignOffset:x,arrowPadding:h,collisionBoundary:w,collisionPadding:E,sticky:C,hideWhenDetached:N,avoidCollisions:T}:{};return y.jsx(M0,{scope:o,content:D,viewport:K,onViewportChange:J,itemRefCallback:G,selectedItem:V,onItemLeave:X,itemTextRefCallback:F,focusSelectedItem:Y,selectedItemText:ve,position:i,isPositioned:ge,searchRef:I,children:y.jsx(If,{as:FA,allowPinchZoom:!0,children:y.jsx(Pf,{asChild:!0,trapped:j.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:ke(u,ee=>{var le;(le=j.trigger)==null||le.focus({preventScroll:!0}),ee.preventDefault()}),children:y.jsx(Kf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:y.jsx(W,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:ee=>ee.preventDefault(),...A,...ae,onPlaced:()=>be(!0),ref:q,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:ke(A.onKeyDown,ee=>{const le=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!le&&ee.key.length===1&&_(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let ne=de().filter(pe=>!pe.disabled).map(pe=>pe.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const pe=ee.target,he=ne.indexOf(pe);ne=ne.slice(he+1)}setTimeout(()=>O(ne)),ee.preventDefault()}})})})})})})});D0.displayName=IA;var WA="SelectItemAlignedPosition",j0=b.forwardRef((n,r)=>{const{__scopeSelect:o,onPlaced:i,...u}=n,f=Ia(Al,o),d=Fa(Al,o),[m,v]=b.useState(null),[p,x]=b.useState(null),h=nt(r,q=>x(q)),w=Us(o),E=b.useRef(!1),C=b.useRef(!0),{viewport:N,selectedItem:T,selectedItemText:A,focusSelectedItem:j}=d,D=b.useCallback(()=>{if(f.trigger&&f.valueNode&&m&&p&&N&&T&&A){const q=f.trigger.getBoundingClientRect(),V=p.getBoundingClientRect(),re=f.valueNode.getBoundingClientRect(),ve=A.getBoundingClientRect();if(f.dir!=="rtl"){const pe=ve.left-V.left,he=re.left-pe,qe=q.left-he,Le=q.width+qe,pt=Math.max(Le,V.width),bt=window.innerWidth-bn,Ve=Jg(he,[bn,Math.max(bn,bt-pt)]);m.style.minWidth=Le+"px",m.style.left=Ve+"px"}else{const pe=V.right-ve.right,he=window.innerWidth-re.right-pe,qe=window.innerWidth-q.right-he,Le=q.width+qe,pt=Math.max(Le,V.width),bt=window.innerWidth-bn,Ve=Jg(he,[bn,Math.max(bn,bt-pt)]);m.style.minWidth=Le+"px",m.style.right=Ve+"px"}const ye=w(),de=window.innerHeight-bn*2,ge=N.scrollHeight,be=window.getComputedStyle(p),fe=parseInt(be.borderTopWidth,10),O=parseInt(be.paddingTop,10),Y=parseInt(be.borderBottomWidth,10),P=parseInt(be.paddingBottom,10),oe=fe+O+ge+P+Y,I=Math.min(T.offsetHeight*5,oe),_=window.getComputedStyle(N),G=parseInt(_.paddingTop,10),X=parseInt(_.paddingBottom,10),F=q.top+q.height/2-bn,W=de-F,ae=T.offsetHeight/2,ee=T.offsetTop+ae,le=fe+O+ee,ie=oe-le;if(le<=F){const pe=ye.length>0&&T===ye[ye.length-1].ref.current;m.style.bottom="0px";const he=p.clientHeight-N.offsetTop-N.offsetHeight,qe=Math.max(W,ae+(pe?X:0)+he+Y),Le=le+qe;m.style.height=Le+"px"}else{const pe=ye.length>0&&T===ye[0].ref.current;m.style.top="0px";const qe=Math.max(F,fe+N.offsetTop+(pe?G:0)+ae)+ie;m.style.height=qe+"px",N.scrollTop=le-F+N.offsetTop}m.style.margin=`${bn}px 0`,m.style.minHeight=I+"px",m.style.maxHeight=de+"px",i==null||i(),requestAnimationFrame(()=>E.current=!0)}},[w,f.trigger,f.valueNode,m,p,N,T,A,f.dir,i]);Rt(()=>D(),[D]);const[B,K]=b.useState();Rt(()=>{p&&K(window.getComputedStyle(p).zIndex)},[p]);const J=b.useCallback(q=>{q&&C.current===!0&&(D(),j==null||j(),C.current=!1)},[D,j]);return y.jsx(t5,{scope:o,contentWrapper:m,shouldExpandOnScrollRef:E,onScrollButtonChange:J,children:y.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:B},children:y.jsx(He.div,{...u,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});j0.displayName=WA;var e5="SelectPopperPosition",Of=b.forwardRef((n,r)=>{const{__scopeSelect:o,align:i="start",collisionPadding:u=bn,...f}=n,d=Bs(o);return y.jsx(BA,{...d,...f,ref:r,align:i,collisionPadding:u,style:{boxSizing:"border-box",...f.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Of.displayName=e5;var[t5,pd]=Or(Al,{}),Mf="SelectViewport",z0=b.forwardRef((n,r)=>{const{__scopeSelect:o,nonce:i,...u}=n,f=Fa(Mf,o),d=pd(Mf,o),m=nt(r,f.onViewportChange),v=b.useRef(0);return y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),y.jsx(Ls.Slot,{scope:o,children:y.jsx(He.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:ke(u.onScroll,p=>{const x=p.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:w}=d;if(w!=null&&w.current&&h){const E=Math.abs(v.current-x.scrollTop);if(E>0){const C=window.innerHeight-bn*2,N=parseFloat(h.style.minHeight),T=parseFloat(h.style.height),A=Math.max(N,T);if(A<C){const j=A+E,D=Math.min(C,j),B=j-D;h.style.height=D+"px",h.style.bottom==="0px"&&(x.scrollTop=B>0?B:0,h.style.justifyContent="flex-end")}}}v.current=x.scrollTop})})})]})});z0.displayName=Mf;var k0="SelectGroup",[n5,a5]=Or(k0),l5=b.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n,u=Xa();return y.jsx(n5,{scope:o,id:u,children:y.jsx(He.div,{role:"group","aria-labelledby":u,...i,ref:r})})});l5.displayName=k0;var L0="SelectLabel",U0=b.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n,u=a5(L0,o);return y.jsx(He.div,{id:u.id,...i,ref:r})});U0.displayName=L0;var Ts="SelectItem",[r5,B0]=Or(Ts),H0=b.forwardRef((n,r)=>{const{__scopeSelect:o,value:i,disabled:u=!1,textValue:f,...d}=n,m=Ia(Ts,o),v=Fa(Ts,o),p=m.value===i,[x,h]=b.useState(f??""),[w,E]=b.useState(!1),C=nt(r,j=>{var D;return(D=v.itemRefCallback)==null?void 0:D.call(v,j,i,u)}),N=Xa(),T=b.useRef("touch"),A=()=>{u||(m.onValueChange(i),m.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return y.jsx(r5,{scope:o,value:i,disabled:u,textId:N,isSelected:p,onItemTextChange:b.useCallback(j=>{h(D=>D||((j==null?void 0:j.textContent)??"").trim())},[]),children:y.jsx(Ls.ItemSlot,{scope:o,value:i,disabled:u,textValue:x,children:y.jsx(He.div,{role:"option","aria-labelledby":N,"data-highlighted":w?"":void 0,"aria-selected":p&&w,"data-state":p?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...d,ref:C,onFocus:ke(d.onFocus,()=>E(!0)),onBlur:ke(d.onBlur,()=>E(!1)),onClick:ke(d.onClick,()=>{T.current!=="mouse"&&A()}),onPointerUp:ke(d.onPointerUp,()=>{T.current==="mouse"&&A()}),onPointerDown:ke(d.onPointerDown,j=>{T.current=j.pointerType}),onPointerMove:ke(d.onPointerMove,j=>{var D;T.current=j.pointerType,u?(D=v.onItemLeave)==null||D.call(v):T.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ke(d.onPointerLeave,j=>{var D;j.currentTarget===document.activeElement&&((D=v.onItemLeave)==null||D.call(v))}),onKeyDown:ke(d.onKeyDown,j=>{var B;((B=v.searchRef)==null?void 0:B.current)!==""&&j.key===" "||($A.includes(j.key)&&A(),j.key===" "&&j.preventDefault())})})})})});H0.displayName=Ts;var Ro="SelectItemText",V0=b.forwardRef((n,r)=>{const{__scopeSelect:o,className:i,style:u,...f}=n,d=Ia(Ro,o),m=Fa(Ro,o),v=B0(Ro,o),p=KA(Ro,o),[x,h]=b.useState(null),w=nt(r,A=>h(A),v.onItemTextChange,A=>{var j;return(j=m.itemTextRefCallback)==null?void 0:j.call(m,A,v.value,v.disabled)}),E=x==null?void 0:x.textContent,C=b.useMemo(()=>y.jsx("option",{value:v.value,disabled:v.disabled,children:E},v.value),[v.disabled,v.value,E]),{onNativeOptionAdd:N,onNativeOptionRemove:T}=p;return Rt(()=>(N(C),()=>T(C)),[N,T,C]),y.jsxs(y.Fragment,{children:[y.jsx(He.span,{id:v.textId,...f,ref:w}),v.isSelected&&d.valueNode&&!d.valueNodeHasChildren?ko.createPortal(f.children,d.valueNode):null]})});V0.displayName=Ro;var Y0="SelectItemIndicator",q0=b.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n;return B0(Y0,o).isSelected?y.jsx(He.span,{"aria-hidden":!0,...i,ref:r}):null});q0.displayName=Y0;var Df="SelectScrollUpButton",G0=b.forwardRef((n,r)=>{const o=Fa(Df,n.__scopeSelect),i=pd(Df,n.__scopeSelect),[u,f]=b.useState(!1),d=nt(r,i.onScrollButtonChange);return Rt(()=>{if(o.viewport&&o.isPositioned){let m=function(){const p=v.scrollTop>0;f(p)};const v=o.viewport;return m(),v.addEventListener("scroll",m),()=>v.removeEventListener("scroll",m)}},[o.viewport,o.isPositioned]),u?y.jsx(X0,{...n,ref:d,onAutoScroll:()=>{const{viewport:m,selectedItem:v}=o;m&&v&&(m.scrollTop=m.scrollTop-v.offsetHeight)}}):null});G0.displayName=Df;var jf="SelectScrollDownButton",$0=b.forwardRef((n,r)=>{const o=Fa(jf,n.__scopeSelect),i=pd(jf,n.__scopeSelect),[u,f]=b.useState(!1),d=nt(r,i.onScrollButtonChange);return Rt(()=>{if(o.viewport&&o.isPositioned){let m=function(){const p=v.scrollHeight-v.clientHeight,x=Math.ceil(v.scrollTop)<p;f(x)};const v=o.viewport;return m(),v.addEventListener("scroll",m),()=>v.removeEventListener("scroll",m)}},[o.viewport,o.isPositioned]),u?y.jsx(X0,{...n,ref:d,onAutoScroll:()=>{const{viewport:m,selectedItem:v}=o;m&&v&&(m.scrollTop=m.scrollTop+v.offsetHeight)}}):null});$0.displayName=jf;var X0=b.forwardRef((n,r)=>{const{__scopeSelect:o,onAutoScroll:i,...u}=n,f=Fa("SelectScrollButton",o),d=b.useRef(null),m=Us(o),v=b.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return b.useEffect(()=>()=>v(),[v]),Rt(()=>{var x;const p=m().find(h=>h.ref.current===document.activeElement);(x=p==null?void 0:p.ref.current)==null||x.scrollIntoView({block:"nearest"})},[m]),y.jsx(He.div,{"aria-hidden":!0,...u,ref:r,style:{flexShrink:0,...u.style},onPointerDown:ke(u.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(i,50))}),onPointerMove:ke(u.onPointerMove,()=>{var p;(p=f.onItemLeave)==null||p.call(f),d.current===null&&(d.current=window.setInterval(i,50))}),onPointerLeave:ke(u.onPointerLeave,()=>{v()})})}),o5="SelectSeparator",Q0=b.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n;return y.jsx(He.div,{"aria-hidden":!0,...i,ref:r})});Q0.displayName=o5;var zf="SelectArrow",i5=b.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n,u=Bs(o),f=Ia(zf,o),d=Fa(zf,o);return f.open&&d.position==="popper"?y.jsx(HA,{...u,...i,ref:r}):null});i5.displayName=zf;var s5="SelectBubbleInput",Z0=b.forwardRef(({__scopeSelect:n,value:r,...o},i)=>{const u=b.useRef(null),f=nt(i,u),d=VA(r);return b.useEffect(()=>{const m=u.current;if(!m)return;const v=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(v,"value").set;if(d!==r&&x){const h=new Event("change",{bubbles:!0});x.call(m,r),m.dispatchEvent(h)}},[d,r]),y.jsx(He.select,{...o,style:{...w0,...o.style},ref:f,defaultValue:r})});Z0.displayName=s5;function K0(n){return n===""||n===void 0}function P0(n){const r=Za(n),o=b.useRef(""),i=b.useRef(0),u=b.useCallback(d=>{const m=o.current+d;r(m),(function v(p){o.current=p,window.clearTimeout(i.current),p!==""&&(i.current=window.setTimeout(()=>v(""),1e3))})(m)},[r]),f=b.useCallback(()=>{o.current="",window.clearTimeout(i.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(i.current),[]),[o,u,f]}function J0(n,r,o){const u=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,f=o?n.indexOf(o):-1;let d=c5(n,Math.max(f,0));u.length===1&&(d=d.filter(p=>p!==o));const v=d.find(p=>p.textValue.toLowerCase().startsWith(u.toLowerCase()));return v!==o?v:void 0}function c5(n,r){return n.map((o,i)=>n[(r+i)%n.length])}var u5=E0,I0=T0,f5=A0,d5=R0,m5=_0,F0=O0,p5=z0,W0=U0,eb=H0,h5=V0,g5=q0,tb=G0,nb=$0,ab=Q0;const v5=u5,y5=f5,lb=b.forwardRef(({className:n,children:r,...o},i)=>y.jsxs(I0,{ref:i,className:we("flex h-10 w-full items-center justify-between rounded-[16px] border border-input/85 bg-background/72 px-3 py-2 text-sm shadow-sm ring-offset-background transition-all duration-200 placeholder:text-muted-foreground focus:border-primary/45 focus:bg-background/90 focus:outline-none focus:ring-2 focus:ring-ring/45 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...o,children:[r,y.jsx(d5,{asChild:!0,children:y.jsx(Gv,{className:"h-4 w-4 opacity-50"})})]}));lb.displayName=I0.displayName;const rb=b.forwardRef(({className:n,...r},o)=>y.jsx(tb,{ref:o,className:we("flex cursor-default items-center justify-center py-1",n),...r,children:y.jsx(jw,{className:"h-4 w-4"})}));rb.displayName=tb.displayName;const ob=b.forwardRef(({className:n,...r},o)=>y.jsx(nb,{ref:o,className:we("flex cursor-default items-center justify-center py-1",n),...r,children:y.jsx(Gv,{className:"h-4 w-4"})}));ob.displayName=nb.displayName;const ib=b.forwardRef(({className:n,children:r,position:o="popper",...i},u)=>y.jsx(m5,{children:y.jsxs(F0,{ref:u,className:we("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-[18px] border border-border/70 bg-popover/96 text-popover-foreground shadow-[0_20px_70px_-36px_rgba(0,0,0,0.45)] backdrop-blur-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:o,...i,children:[y.jsx(rb,{}),y.jsx(p5,{className:we("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),y.jsx(ob,{})]})}));ib.displayName=F0.displayName;const b5=b.forwardRef(({className:n,...r},o)=>y.jsx(W0,{ref:o,className:we("py-1.5 pl-8 pr-2 text-sm font-semibold",n),...r}));b5.displayName=W0.displayName;const sb=b.forwardRef(({className:n,children:r,...o},i)=>y.jsxs(eb,{ref:i,className:we("relative flex w-full cursor-default select-none items-center rounded-[12px] py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent/80 focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...o,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(g5,{children:y.jsx(qv,{className:"h-4 w-4"})})}),y.jsx(h5,{children:r})]}));sb.displayName=eb.displayName;const x5=b.forwardRef(({className:n,...r},o)=>y.jsx(ab,{ref:o,className:we("-mx-1 my-1 h-px bg-muted",n),...r}));x5.displayName=ab.displayName;var xf="rovingFocusGroup.onEntryFocus",S5={bubbles:!1,cancelable:!0},Bo="RovingFocusGroup",[kf,cb,w5]=Wy(Bo),[E5,ub]=_l(Bo,[w5]),[N5,T5]=E5(Bo),fb=b.forwardRef((n,r)=>y.jsx(kf.Provider,{scope:n.__scopeRovingFocusGroup,children:y.jsx(kf.Slot,{scope:n.__scopeRovingFocusGroup,children:y.jsx(C5,{...n,ref:r})})}));fb.displayName=Bo;var C5=b.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:u=!1,dir:f,currentTabStopId:d,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:v,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...h}=n,w=b.useRef(null),E=nt(r,w),C=rd(f),[N,T]=Oo({prop:d,defaultProp:m??null,onChange:v,caller:Bo}),[A,j]=b.useState(!1),D=Za(p),B=cb(o),K=b.useRef(!1),[J,q]=b.useState(0);return b.useEffect(()=>{const V=w.current;if(V)return V.addEventListener(xf,D),()=>V.removeEventListener(xf,D)},[D]),y.jsx(N5,{scope:o,orientation:i,dir:C,loop:u,currentTabStopId:N,onItemFocus:b.useCallback(V=>T(V),[T]),onItemShiftTab:b.useCallback(()=>j(!0),[]),onFocusableItemAdd:b.useCallback(()=>q(V=>V+1),[]),onFocusableItemRemove:b.useCallback(()=>q(V=>V-1),[]),children:y.jsx(He.div,{tabIndex:A||J===0?-1:0,"data-orientation":i,...h,ref:E,style:{outline:"none",...n.style},onMouseDown:ke(n.onMouseDown,()=>{K.current=!0}),onFocus:ke(n.onFocus,V=>{const re=!K.current;if(V.target===V.currentTarget&&re&&!A){const ve=new CustomEvent(xf,S5);if(V.currentTarget.dispatchEvent(ve),!ve.defaultPrevented){const ye=B().filter(O=>O.focusable),de=ye.find(O=>O.active),ge=ye.find(O=>O.id===N),fe=[de,ge,...ye].filter(Boolean).map(O=>O.ref.current);pb(fe,x)}}K.current=!1}),onBlur:ke(n.onBlur,()=>j(!1))})})}),db="RovingFocusGroupItem",mb=b.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:u=!1,tabStopId:f,children:d,...m}=n,v=Xa(),p=f||v,x=T5(db,o),h=x.currentTabStopId===p,w=cb(o),{onFocusableItemAdd:E,onFocusableItemRemove:C,currentTabStopId:N}=x;return b.useEffect(()=>{if(i)return E(),()=>C()},[i,E,C]),y.jsx(kf.ItemSlot,{scope:o,id:p,focusable:i,active:u,children:y.jsx(He.span,{tabIndex:h?0:-1,"data-orientation":x.orientation,...m,ref:r,onMouseDown:ke(n.onMouseDown,T=>{i?x.onItemFocus(p):T.preventDefault()}),onFocus:ke(n.onFocus,()=>x.onItemFocus(p)),onKeyDown:ke(n.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){x.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const A=_5(T,x.orientation,x.dir);if(A!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let D=w().filter(B=>B.focusable).map(B=>B.ref.current);if(A==="last")D.reverse();else if(A==="prev"||A==="next"){A==="prev"&&D.reverse();const B=D.indexOf(T.currentTarget);D=x.loop?O5(D,B+1):D.slice(B+1)}setTimeout(()=>pb(D))}}),children:typeof d=="function"?d({isCurrentTabStop:h,hasTabStop:N!=null}):d})})});mb.displayName=db;var A5={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function R5(n,r){return r!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function _5(n,r,o){const i=R5(n.key,o);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return A5[i]}function pb(n,r=!1){const o=document.activeElement;for(const i of n)if(i===o||(i.focus({preventScroll:r}),document.activeElement!==o))return}function O5(n,r){return n.map((o,i)=>n[(r+i)%n.length])}var M5=fb,D5=mb,Hs="Tabs",[j5]=_l(Hs,[ub]),hb=ub(),[z5,hd]=j5(Hs),gb=b.forwardRef((n,r)=>{const{__scopeTabs:o,value:i,onValueChange:u,defaultValue:f,orientation:d="horizontal",dir:m,activationMode:v="automatic",...p}=n,x=rd(m),[h,w]=Oo({prop:i,onChange:u,defaultProp:f??"",caller:Hs});return y.jsx(z5,{scope:o,baseId:Xa(),value:h,onValueChange:w,orientation:d,dir:x,activationMode:v,children:y.jsx(He.div,{dir:x,"data-orientation":d,...p,ref:r})})});gb.displayName=Hs;var vb="TabsList",yb=b.forwardRef((n,r)=>{const{__scopeTabs:o,loop:i=!0,...u}=n,f=hd(vb,o),d=hb(o);return y.jsx(M5,{asChild:!0,...d,orientation:f.orientation,dir:f.dir,loop:i,children:y.jsx(He.div,{role:"tablist","aria-orientation":f.orientation,...u,ref:r})})});yb.displayName=vb;var bb="TabsTrigger",xb=b.forwardRef((n,r)=>{const{__scopeTabs:o,value:i,disabled:u=!1,...f}=n,d=hd(bb,o),m=hb(o),v=Eb(d.baseId,i),p=Nb(d.baseId,i),x=i===d.value;return y.jsx(D5,{asChild:!0,...m,focusable:!u,active:x,children:y.jsx(He.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":p,"data-state":x?"active":"inactive","data-disabled":u?"":void 0,disabled:u,id:v,...f,ref:r,onMouseDown:ke(n.onMouseDown,h=>{!u&&h.button===0&&h.ctrlKey===!1?d.onValueChange(i):h.preventDefault()}),onKeyDown:ke(n.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&d.onValueChange(i)}),onFocus:ke(n.onFocus,()=>{const h=d.activationMode!=="manual";!x&&!u&&h&&d.onValueChange(i)})})})});xb.displayName=bb;var Sb="TabsContent",wb=b.forwardRef((n,r)=>{const{__scopeTabs:o,value:i,forceMount:u,children:f,...d}=n,m=hd(Sb,o),v=Eb(m.baseId,i),p=Nb(m.baseId,i),x=i===m.value,h=b.useRef(x);return b.useEffect(()=>{const w=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(w)},[]),y.jsx(Lo,{present:u||x,children:({present:w})=>y.jsx(He.div,{"data-state":x?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":v,hidden:!w,id:p,tabIndex:0,...d,ref:r,style:{...n.style,animationDuration:h.current?"0s":void 0},children:w&&f})})});wb.displayName=Sb;function Eb(n,r){return`${n}-trigger-${r}`}function Nb(n,r){return`${n}-content-${r}`}var k5=gb,Tb=yb,Cb=xb,Ab=wb;const L5=k5,Rb=b.forwardRef(({className:n,...r},o)=>y.jsx(Tb,{ref:o,className:we("inline-flex h-10 items-center justify-center rounded-[18px] bg-muted/72 p-1 text-muted-foreground shadow-inner shadow-background/40",n),...r}));Rb.displayName=Tb.displayName;const hs=b.forwardRef(({className:n,...r},o)=>y.jsx(Cb,{ref:o,className:we("inline-flex items-center justify-center whitespace-nowrap rounded-[14px] px-3 py-1.5 text-sm font-semibold ring-offset-background transition-all duration-200 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary/12 data-[state=active]:text-primary data-[state=active]:shadow-[0_10px_28px_-18px_hsl(var(--primary)/0.85)] data-[state=active]:ring-1 data-[state=active]:ring-primary/22",n),...r}));hs.displayName=Cb.displayName;const gs=b.forwardRef(({className:n,...r},o)=>y.jsx(Ab,{ref:o,className:we("mt-2 ring-offset-background data-[state=inactive]:hidden focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n),...r}));gs.displayName=Ab.displayName;var _b="AlertDialog",[U5]=_l(_b,[_y]),ma=_y(),Ob=n=>{const{__scopeAlertDialog:r,...o}=n,i=ma(r);return y.jsx(Xy,{...i,...o,modal:!0})};Ob.displayName=_b;var B5="AlertDialogTrigger",Mb=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,u=ma(o);return y.jsx(Qy,{...u,...i,ref:r})});Mb.displayName=B5;var H5="AlertDialogPortal",Db=n=>{const{__scopeAlertDialog:r,...o}=n,i=ma(r);return y.jsx(Zy,{...i,...o})};Db.displayName=H5;var V5="AlertDialogOverlay",jb=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,u=ma(o);return y.jsx(td,{...u,...i,ref:r})});jb.displayName=V5;var Er="AlertDialogContent",[Y5,q5]=U5(Er),G5=FN("AlertDialogContent"),zb=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,children:i,...u}=n,f=ma(o),d=b.useRef(null),m=nt(r,d),v=b.useRef(null);return y.jsx(pC,{contentName:Er,titleName:kb,docsSlug:"alert-dialog",children:y.jsx(Y5,{scope:o,cancelRef:v,children:y.jsxs(nd,{role:"alertdialog",...f,...u,ref:m,onOpenAutoFocus:ke(u.onOpenAutoFocus,p=>{var x;p.preventDefault(),(x=v.current)==null||x.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[y.jsx(G5,{children:i}),y.jsx(X5,{contentRef:d})]})})})});zb.displayName=Er;var kb="AlertDialogTitle",Lb=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,u=ma(o);return y.jsx(ad,{...u,...i,ref:r})});Lb.displayName=kb;var Ub="AlertDialogDescription",Bb=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,u=ma(o);return y.jsx(ld,{...u,...i,ref:r})});Bb.displayName=Ub;var $5="AlertDialogAction",Hb=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,u=ma(o);return y.jsx(Ms,{...u,...i,ref:r})});Hb.displayName=$5;var Vb="AlertDialogCancel",Yb=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,{cancelRef:u}=q5(Vb,o),f=ma(o),d=nt(r,u);return y.jsx(Ms,{...f,...i,ref:d})});Yb.displayName=Vb;var X5=({contentRef:n})=>{const r=`\`${Er}\` requires a description for the component to be accessible for screen reader users.
271
-
272
- You can add a description to the \`${Er}\` by passing a \`${Ub}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
273
-
274
- Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Er}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
275
-
276
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return b.useEffect(()=>{var i;document.getElementById((i=n.current)==null?void 0:i.getAttribute("aria-describedby"))||console.warn(r)},[r,n]),null},Q5=Ob,Z5=Mb,K5=Db,qb=jb,Gb=zb,$b=Hb,Xb=Yb,Qb=Lb,Zb=Bb;const P5=Q5,J5=Z5,I5=K5,Kb=b.forwardRef(({className:n,...r},o)=>y.jsx(qb,{className:we("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...r,ref:o}));Kb.displayName=qb.displayName;const Pb=b.forwardRef(({className:n,...r},o)=>y.jsxs(I5,{children:[y.jsx(Kb,{}),y.jsx(Gb,{ref:o,className:we("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-[22px] border bg-background p-6 shadow-[0_34px_110px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...r})]}));Pb.displayName=Gb.displayName;const Jb=({className:n,...r})=>y.jsx("div",{className:we("flex flex-col space-y-2 text-center sm:text-left",n),...r});Jb.displayName="AlertDialogHeader";const Ib=({className:n,...r})=>y.jsx("div",{className:we("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});Ib.displayName="AlertDialogFooter";const Fb=b.forwardRef(({className:n,...r},o)=>y.jsx(Qb,{ref:o,className:we("text-lg font-semibold",n),...r}));Fb.displayName=Qb.displayName;const Wb=b.forwardRef(({className:n,...r},o)=>y.jsx(Zb,{ref:o,className:we("text-sm text-muted-foreground",n),...r}));Wb.displayName=Zb.displayName;const ex=b.forwardRef(({className:n,...r},o)=>y.jsx($b,{ref:o,className:we(Zf(),n),...r}));ex.displayName=$b.displayName;const tx=b.forwardRef(({className:n,...r},o)=>y.jsx(Xb,{ref:o,className:we(Zf({variant:"outline"}),"mt-2 sm:mt-0",n),...r}));tx.displayName=Xb.displayName;const sv=["queued","running"];function F5(n){return n==="claude"||n==="codex"}function nx(n){var o;if(n.kind!=="agent.upgrade")return null;const r=(o=n.payload)==null?void 0:o.agent;return F5(r)?`${n.nodeId}:${r}`:null}function W5(n){return n.status==="succeeded"||n.status==="failed"}async function eR(n,r={}){const o=r.getOperation??uw,i=r.pollIntervalMs??2e3,u=r.timeoutMs??24e4,f=Date.now()+u;let d=n;for(;!W5(d)&&Date.now()<f;)await nR(i),d=await o(n.id);return d}async function tR(n,r=fw){const o=new Set(n),i=await Promise.all(sv.map(f=>r({kind:"agent.upgrade",status:f}))),u=new Map;for(const f of i.flat()){if(!sv.includes(f.status)||o.size>0&&!o.has(f.nodeId))continue;const d=nx(f);if(!d)continue;const m=u.get(d);(!m||f.updatedAt>m.updatedAt)&&u.set(d,f)}return u}function nR(n){return new Promise(r=>setTimeout(r,n))}function $a(n){if(n==null||n==="")return"Unavailable";const r=new Date(n);return Number.isNaN(r.getTime())?"Unavailable":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(r)}function aR(n){const r=Math.max(0,Math.floor(n)),o=Math.floor(r/86400),i=Math.floor(r%86400/3600),u=Math.floor(r%3600/60);return o>0?`${o}d ${i}h`:i>0?`${i}h ${u}m`:`${u}m`}function cv(n){if(n==null||Number.isNaN(n))return"Unavailable";const r=["B","KB","MB","GB","TB"];let o=n,i=0;for(;o>=1024&&i<r.length-1;)o/=1024,i+=1;return`${o.toFixed(o>=10||i===0?0:1)} ${r[i]}`}function ax(n){return n==="ok"?"default":n==="missing"||n==="install-failed"||n==="login-failed"?"destructive":n==="not-authenticated"||n==="unsupported-platform"?"outline":"secondary"}function lR(n){return n.available?y.jsxs(yt,{className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[y.jsx(kw,{className:"h-3 w-3"}),"Available"]}):y.jsxs(yt,{variant:"destructive",className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[y.jsx(Uw,{className:"h-3 w-3"}),"Unavailable"]})}function rR(n){return n.update?n.update.updateAvailable?y.jsxs(yt,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Update ",n.update.latestVersion]}):y.jsx(yt,{variant:"secondary",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:"Up to date"}):null}function oR(n){var o;const r=`npm install -g ${(o=n.update)==null?void 0:o.packageName}@latest`;return n.id==="claude"?`${r} --include=optional --ignore-scripts=false`:r}function iR(n){if(n.error)return n.error;const r=n.result;return(r==null?void 0:r.detail)??null}function ze({label:n,value:r,mono:o=!1}){return y.jsxs("div",{className:"flex items-start justify-between gap-3 border-b border-border/50 py-1 last:border-b-0 last:pb-0 first:pt-0",children:[y.jsx("span",{className:"shrink-0 text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:n}),y.jsx("span",{className:we("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:r})]})}function sR({agent:n,nodeName:r,activeOperation:o,onUpgrade:i}){var m,v;const u=((m=n.update)==null?void 0:m.updateAvailable)===!0,f=rR(n),d=!!o;return y.jsxs("div",{className:"rounded-lg border border-border/60 bg-background/70 p-2.5 shadow-sm",children:[y.jsxs("div",{className:"flex items-start justify-between gap-2",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-semibold text-foreground",children:[y.jsx(Yv,{className:"h-3.5 w-3.5 text-primary"}),n.label]}),y.jsxs("div",{className:"mt-0.5 text-[10px] text-muted-foreground",children:["Command: ",y.jsx("span",{className:"font-mono text-[10px]",children:n.command})]})]}),y.jsxs("div",{className:"flex flex-col items-end gap-1",children:[lR(n),o?y.jsxs(yt,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Upgrade ",o.status]}):u?y.jsxs(P5,{children:[y.jsx(J5,{asChild:!0,children:y.jsx("button",{type:"button",disabled:d,className:"rounded-full transition duration-150 hover:-translate-y-0.5 hover:scale-[1.03] hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/45 focus-visible:ring-offset-2 active:translate-y-0 active:scale-95 disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:translate-y-0 disabled:hover:scale-100 disabled:hover:shadow-none",children:f})}),y.jsxs(Pb,{children:[y.jsxs(Jb,{children:[y.jsxs(Fb,{children:["Upgrade ",n.label,"?"]}),y.jsxs(Wb,{children:["This runs ",oR(n)," on ",r,". Remote nodes execute the command on the remote machine."]})]}),y.jsxs(Ib,{children:[y.jsx(tx,{children:"Cancel"}),y.jsx(ex,{onClick:()=>i(n),children:"Upgrade"})]})]})]}):f]})]}),y.jsxs("div",{className:"mt-2 space-y-1 text-[11px]",children:[y.jsx(ze,{label:"Version",value:n.version??"Unavailable",mono:!!n.version}),n.update&&y.jsx(ze,{label:"Latest",value:n.update.latestVersion??"Unavailable",mono:!!n.update.latestVersion}),y.jsx(ze,{label:"Path",value:n.path??"Not on PATH",mono:!!n.path}),y.jsx(ze,{label:"Checked",value:$a(n.checkedAt)}),n.update&&y.jsx(ze,{label:"Update check",value:$a(n.update.checkedAt)})]}),((v=n.update)==null?void 0:v.detail)&&y.jsx("div",{className:"mt-1.5 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:n.update.detail}),n.metadataStatus&&y.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[y.jsx(yt,{variant:ax(n.metadataStatus),className:"rounded-full px-2 py-0 text-[10px] uppercase tracking-[0.14em]",children:n.metadataStatus}),y.jsx("span",{children:"Startup preflight"})]}),n.detail&&y.jsx("div",{className:"mt-1.5 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:n.detail})]})}function cs({name:n,status:r}){return y.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-lg border border-border/60 bg-background/70 px-2.5 py-1.5",children:[y.jsxs("div",{children:[y.jsx("div",{className:"text-[11px] font-medium text-foreground",children:n}),y.jsx("div",{className:"text-[10px] text-muted-foreground",children:$a(r==null?void 0:r.checkedAt)})]}),y.jsxs("div",{className:"flex items-center gap-1.5",children:[typeof(r==null?void 0:r.authenticated)=="boolean"&&y.jsx(yt,{variant:r.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:r.authenticated?"auth ok":"auth required"}),y.jsx(yt,{variant:ax(r==null?void 0:r.status),className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:(r==null?void 0:r.status)??"unknown"})]})]})}function cR(n){return[{key:"workspace",label:"Workspace",value:n==null?void 0:n.workspace},{key:"node",label:"Node app",value:n==null?void 0:n.node},{key:"core",label:"Core",value:n==null?void 0:n.core},{key:"dashboard",label:"Dashboard",value:n==null?void 0:n.dashboard},{key:"api",label:"API",value:n==null?void 0:n.api}].filter(o=>o.value)}function uR(n,r){var o;return(o=n==null?void 0:n.nodes)!=null&&o.length?n.nodes:r?[r]:[]}function fR(n,r){var i;if(r&&n.id===r.nodeId)return r;const o=n.settingsSnapshot;return{...n,nodeId:n.id,version:(o==null?void 0:o.version)??"Unavailable",packageName:o==null?void 0:o.packageName,uptime:(o==null?void 0:o.uptime)??0,localDashboardOrigin:((i=o==null?void 0:o.runtime)==null?void 0:i.localDashboardOrigin)??void 0,auth:o==null?void 0:o.auth,os:o==null?void 0:o.os,runtime:o==null?void 0:o.runtime,agents:o==null?void 0:o.agents,startupRequirements:o==null?void 0:o.startupRequirements,components:o==null?void 0:o.components,repository:o==null?void 0:o.repository,packages:o==null?void 0:o.packages}}function dR(n,r){return n.id===r?`${n.name} (this node)`:`${n.name} (${n.role})`}function mR(n){return n==="claude"?"Claude Code":"Codex"}function pR(n){var o;const r=(o=n.payload)==null?void 0:o.agent;return r==="claude"||r==="codex"?r:null}function hR({cluster:n,systemInfo:r,sseConnected:o,onRefresh:i}){var J,q,V,re,ve,ye,de,ge,be,fe,O,Y,P,oe,I,_,G,X,F,W,ae,ee,le,ie;const u=b.useMemo(()=>uR(n,r),[n,r]),[f,d]=b.useState(()=>{var ne;return(r==null?void 0:r.nodeId)??((ne=n==null?void 0:n.self)==null?void 0:ne.id)??""}),[m,v]=b.useState(()=>new Map),p=b.useRef(new Set),x=b.useRef(new Set),h=(n==null?void 0:n.self)??r??u[0]??null,w=u.find(ne=>ne.id===f)??h,E=w?fR(w,r):null,C=!!(r&&w&&w.id===r.nodeId),N=C||!!(w!=null&&w.settingsSnapshot),T=b.useMemo(()=>cR(E==null?void 0:E.packages),[E==null?void 0:E.packages]),A=((J=E==null?void 0:E.startupRequirements)==null?void 0:J.components)??(E==null?void 0:E.components)??{},j=b.useMemo(()=>u.map(ne=>ne.id),[u]),D=j.join("\0"),B=b.useCallback(async(ne,pe)=>{const he=nx(ne);if(!he||p.current.has(ne.id))return;const qe=pR(ne),Le=u.find(Ve=>Ve.id===ne.nodeId),pt=(pe==null?void 0:pe.agentLabel)??(qe?mR(qe):"Agent"),bt=(pe==null?void 0:pe.nodeName)??(Le==null?void 0:Le.name)??ne.nodeId;p.current.add(ne.id),v(Ve=>new Map(Ve).set(he,ne));try{const Ve=await eR(ne);if(Ve.status==="succeeded")await(i==null?void 0:i()),x.current.has(Ve.id)||(sa.success(`${pt} upgrade finished on ${bt}`),x.current.add(Ve.id));else if(Ve.status==="failed")x.current.has(Ve.id)||(sa.error(iR(Ve)??`${pt} upgrade failed`),x.current.add(Ve.id));else{v($t=>new Map($t).set(he,Ve)),sa.info(`${pt} upgrade is still ${Ve.status} on ${bt}`);return}v($t=>{const Pe=new Map($t),mn=Pe.get(he);return(!mn||mn.id===Ve.id)&&Pe.delete(he),Pe})}catch(Ve){v($t=>{const Pe=new Map($t),mn=Pe.get(he);return(!mn||mn.id===ne.id)&&Pe.delete(he),Pe}),sa.error(Ve instanceof Error?Ve.message:`${pt} upgrade failed`)}finally{p.current.delete(ne.id)}},[i,u]);b.useEffect(()=>{if(j.length===0)return;let ne=!1;async function pe(){let he;try{he=await tR(j)}catch{return}if(!ne){v(qe=>{const Le=new Map(qe);for(const[pt,bt]of he)Le.set(pt,bt);return Le});for(const qe of he.values())B(qe)}}return pe(),()=>{ne=!0}},[B,D]);async function K(ne){if(w)try{const pe=await dw(w.id,ne.id);sa.info(`${ne.label} upgrade started on ${w.name}`),await B(pe,{agentLabel:ne.label,nodeName:w.name})}catch(pe){sa.error(pe instanceof Error?pe.message:`${ne.label} upgrade failed`)}}return!w||!E?y.jsx("div",{className:"rounded-2xl border border-dashed border-border/70 bg-muted/20 px-4 py-8 text-center text-[12px] text-muted-foreground",children:"Loading session metadata..."}):y.jsxs("div",{className:"space-y-4",children:[y.jsx("section",{className:"rounded-2xl border border-border/70 bg-[radial-gradient(circle_at_top_left,rgba(59,130,246,0.18),transparent_42%),radial-gradient(circle_at_bottom_right,rgba(16,185,129,0.12),transparent_32%),rgba(255,255,255,0.72)] p-3 shadow-[0_24px_90px_-54px_rgba(15,23,42,0.55)] dark:bg-[radial-gradient(circle_at_top_left,rgba(59,130,246,0.18),transparent_42%),radial-gradient(circle_at_bottom_right,rgba(16,185,129,0.12),transparent_32%),rgba(10,15,23,0.78)]",children:y.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-end md:justify-between",children:[y.jsxs("div",{className:"space-y-2",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[y.jsxs("span",{className:"flex items-center gap-1.5 rounded-full border border-border/70 bg-background/75 px-2 py-0.5 text-[10px] text-muted-foreground backdrop-blur",children:[y.jsx(dy,{status:w.status}),y.jsx("span",{className:"font-medium text-foreground",children:w.name})]}),y.jsx(lN,{role:w.role}),y.jsx(yt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:w.transportType??E.transportType??"direct"}),y.jsx(yt,{variant:C?"default":"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:C?"Live local session":"Leader-synced snapshot"})]}),y.jsxs("div",{children:[y.jsx("div",{className:"text-[10px] uppercase tracking-[0.34em] text-muted-foreground",children:"Session"}),y.jsx("h3",{className:"mt-0.5 text-sm font-semibold tracking-tight text-foreground",children:"Node runtime"}),y.jsx("p",{className:"mt-1 max-w-2xl text-[11px] text-muted-foreground",children:"Inspect the selected node's runtime environment, connectivity surface, and packaged build metadata from one place."})]}),u.length>1&&y.jsxs("div",{className:"max-w-md space-y-1.5",children:[y.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Inspect node"}),y.jsxs(v5,{value:w.id,onValueChange:d,children:[y.jsx(lb,{className:"h-7 rounded-lg border-border/70 bg-background/70 text-[11px]",children:y.jsx(y5,{placeholder:"Choose a node"})}),y.jsx(ib,{children:u.map(ne=>y.jsx(sb,{value:ne.id,children:dR(ne,r==null?void 0:r.nodeId)},ne.id))})]})]})]}),y.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[y.jsxs(yt,{variant:o?"default":"outline",className:"gap-1 rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:[y.jsx(Qv,{className:"h-3 w-3"}),o?"Live link connected":"Live link reconnecting"]}),y.jsxs(yt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:["Uptime ",aR(E.uptime)]}),!C&&y.jsxs(yt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:["Updated ",$a((q=w.settingsSnapshot)==null?void 0:q.collectedAt)]})]})]})}),!N&&y.jsx("div",{className:"rounded-xl border border-dashed border-border/70 bg-muted/20 px-3 py-2 text-[11px] text-muted-foreground",children:"This node has not synced its settings snapshot to the leader yet. Wait for the next keepalive and reopen the dialog if needed."}),y.jsxs(L5,{defaultValue:"session",className:"space-y-2",children:[y.jsxs(Rb,{className:"h-auto flex-wrap rounded-xl border border-border/60 bg-muted/40 p-0.5",children:[y.jsx(hs,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),y.jsx(hs,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),y.jsx(hs,{value:"about",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"About"})]}),y.jsxs(gs,{value:"session",className:"mt-0 grid gap-2 xl:grid-cols-[1.15fr_0.85fr]",children:[y.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(jn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(eE,{className:"h-3.5 w-3.5 text-primary"}),"Selected node"]}),y.jsx(zn,{className:"text-[10px]",children:"Cluster role, identity, and node-scoped runtime state."})]}),y.jsxs(kn,{className:"space-y-0 px-3 pb-2.5",children:[y.jsx(ze,{label:"Node ID",value:E.nodeId,mono:!0}),y.jsx(ze,{label:"Status",value:w.status}),y.jsx(ze,{label:"Role",value:w.role}),y.jsx(ze,{label:"Endpoint",value:w.endpoint,mono:!0}),y.jsx(ze,{label:"Joined",value:$a(w.joinedAt)}),y.jsx(ze,{label:"Heartbeat",value:$a(w.lastHeartbeat)}),y.jsx(ze,{label:"Capabilities",value:w.capabilities.length>0?w.capabilities.join(", "):"None"})]})]}),y.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(jn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(Yw,{className:"h-3.5 w-3.5 text-primary"}),"OS info"]}),y.jsx(zn,{className:"text-[10px]",children:"Host and resource details reported by the current process."})]}),y.jsxs(kn,{className:"space-y-0 px-3 pb-2.5",children:[y.jsx(ze,{label:"Host",value:((V=E.os)==null?void 0:V.hostname)??"Unavailable"}),y.jsx(ze,{label:"Platform",value:E.os?`${E.os.platform} ${E.os.release}`:"Unavailable"}),y.jsx(ze,{label:"Arch",value:((re=E.os)==null?void 0:re.arch)??"Unavailable"}),y.jsx(ze,{label:"CPU",value:((ve=E.os)==null?void 0:ve.cpuModel)??"Unavailable"}),y.jsx(ze,{label:"Cores",value:String(((ye=E.os)==null?void 0:ye.cpuCount)??"Unavailable")}),y.jsx(ze,{label:"Memory",value:E.os?`${cv(E.os.freeMemoryBytes)} free / ${cv(E.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),y.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)] xl:col-span-2",children:[y.jsxs(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(jn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(Yv,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),y.jsx(zn,{className:"text-[10px]",children:C?"Live command availability for Codex and Claude Code on this node.":"Most recent agent availability snapshot synced from this node."})]}),y.jsx(kn,{className:"grid gap-2 px-3 pb-2.5 md:grid-cols-2",children:(E.agents??[]).map(ne=>y.jsx(sR,{agent:ne,nodeName:w.name,activeOperation:m.get(`${w.id}:${ne.id}`),onUpgrade:K},ne.id))})]})]}),y.jsxs(gs,{value:"access",className:"mt-0 grid gap-2 xl:grid-cols-2",children:[y.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(jn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(_w,{className:"h-3.5 w-3.5 text-primary"}),"Access surface"]}),y.jsx(zn,{className:"text-[10px]",children:"How this node is exposed to the dashboard and other peers."})]}),y.jsxs(kn,{className:"space-y-0 px-3 pb-2.5",children:[y.jsx(ze,{label:"Transport",value:w.transportType??E.transportType??"direct"}),y.jsx(ze,{label:"Node URL",value:w.endpoint,mono:!0}),y.jsx(ze,{label:"Node tunnel",value:w.devtunnelEndpoint??"Disabled",mono:!!w.devtunnelEndpoint}),y.jsx(ze,{label:"Dashboard URL",value:w.dashboardOrigin??E.localDashboardOrigin??"Unavailable",mono:!!(w.dashboardOrigin||E.localDashboardOrigin)}),y.jsx(ze,{label:"Local dashboard",value:E.localDashboardOrigin??"Unavailable",mono:!!E.localDashboardOrigin})]})]}),y.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(jn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(lE,{className:"h-3.5 w-3.5 text-primary"}),"Auth"]}),y.jsx(zn,{className:"text-[10px]",children:"Current bearer-auth and trusted access posture."})]}),y.jsxs(kn,{className:"space-y-0 px-3 pb-2.5",children:[y.jsx(ze,{label:"Enabled",value:(de=E.auth)!=null&&de.enabled?"Yes":"No"}),y.jsx(ze,{label:"Same tenant",value:(ge=E.auth)!=null&&ge.allowSameTenant?"Allowed":"Off"}),y.jsx(ze,{label:"Allowed users",value:(be=E.auth)!=null&&be.allowedUsers.length?E.auth.allowedUsers.join(", "):"None"})]})]}),y.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(jn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(Xw,{className:"h-3.5 w-3.5 text-primary"}),"Paths"]}),y.jsx(zn,{className:"text-[10px]",children:"Workspace and runtime paths currently used by this node."})]}),y.jsxs(kn,{className:"space-y-0 px-3 pb-2.5",children:[y.jsx(ze,{label:"Work dir",value:((fe=E.runtime)==null?void 0:fe.workDir)??E.workDir??"Unavailable",mono:!!(((O=E.runtime)==null?void 0:O.workDir)??E.workDir)}),y.jsx(ze,{label:"Storage",value:((Y=E.runtime)==null?void 0:Y.storagePath)??"Unavailable",mono:!!((P=E.runtime)!=null&&P.storagePath)}),y.jsx(ze,{label:"Process cwd",value:((oe=E.runtime)==null?void 0:oe.cwd)??"Unavailable",mono:!!((I=E.runtime)!=null&&I.cwd)}),y.jsx(ze,{label:"Started",value:$a((_=E.runtime)==null?void 0:_.startedAt)}),y.jsx(ze,{label:"PID",value:E.runtime?String(E.runtime.pid):"Unavailable",mono:!!E.runtime})]})]}),y.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(jn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(Vv,{className:"h-3.5 w-3.5 text-primary"}),"Startup checks"]}),y.jsx(zn,{className:"text-[10px]",children:"Dependency preflight snapshot persisted during node startup."})]}),y.jsxs(kn,{className:"space-y-3 px-3 pb-2.5",children:[y.jsxs("div",{className:"rounded-xl border border-border/60 bg-background/70 px-3 py-2",children:[y.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Last checked"}),y.jsx("div",{className:"mt-0.5 text-[11px] text-foreground",children:$a((G=E.startupRequirements)==null?void 0:G.lastCheckedAt)})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsx(cs,{name:"Azure CLI",status:A.az}),y.jsx(cs,{name:"DevTunnel",status:A.devtunnel}),y.jsx(cs,{name:"Claude Code",status:A.claude}),y.jsx(cs,{name:"Codex",status:A.codex})]})]})]})]}),y.jsxs(gs,{value:"about",className:"mt-0 grid gap-2 xl:grid-cols-[0.92fr_1.08fr]",children:[y.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(jn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(Cw,{className:"h-3.5 w-3.5 text-primary"}),"Repository"]}),y.jsx(zn,{className:"text-[10px]",children:"Source-of-truth repository metadata for this running node."})]}),y.jsxs(kn,{className:"space-y-3 px-3 pb-2.5",children:[(X=E.repository)!=null&&X.url?y.jsxs("a",{href:E.repository.url,target:"_blank",rel:"noreferrer",className:"group flex items-center justify-between rounded-lg border border-border/70 bg-background/70 px-2.5 py-1.5 text-[11px] text-foreground transition-colors hover:border-primary/40 hover:bg-primary/5",children:[y.jsx("span",{className:"font-mono text-[10px]",children:E.repository.url}),y.jsx(Gw,{className:"h-3.5 w-3.5 text-muted-foreground transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]}):y.jsx("div",{className:"rounded-lg border border-dashed border-border/70 bg-muted/20 px-2.5 py-1.5 text-[11px] text-muted-foreground",children:"Repository URL is unavailable in this runtime."}),y.jsxs("div",{className:"space-y-0",children:[y.jsx(ze,{label:"Branch",value:((F=E.repository)==null?void 0:F.branch)??"Unavailable",mono:!!((W=E.repository)!=null&&W.branch)}),y.jsx(ze,{label:"Commit",value:((ae=E.repository)==null?void 0:ae.commit)??"Unavailable",mono:!!((ee=E.repository)!=null&&ee.commit)}),y.jsx(ze,{label:"Runtime",value:`${E.packageName??"meshy"} ${E.version}`,mono:!0}),y.jsx(ze,{label:"Node.js",value:((le=E.runtime)==null?void 0:le.nodeVersion)??"Unavailable",mono:!!((ie=E.runtime)!=null&&ie.nodeVersion)})]})]})]}),y.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(jn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(Zw,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),y.jsx(zn,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),y.jsx(kn,{className:"space-y-1.5 px-3 pb-2.5",children:T.map(ne=>{var pe,he;return y.jsxs("div",{className:"flex items-center justify-between gap-2 rounded-lg border border-border/60 bg-background/70 px-2.5 py-1.5",children:[y.jsxs("div",{children:[y.jsx("div",{className:"text-[11px] font-medium text-foreground",children:ne.label}),y.jsx("div",{className:"text-[10px] text-muted-foreground",children:(pe=ne.value)==null?void 0:pe.name})]}),y.jsx(yt,{variant:"outline",className:"rounded-[11px] border-border/70 bg-background/60 font-mono text-[10px]",children:(he=ne.value)==null?void 0:he.version})]},ne.key)})})]})]})]})]})}function gR(){const{cluster:n,systemInfo:r,sseConnected:o,refresh:i}=Bv(),[u,f]=b.useState(!1);return y.jsxs(yC,{open:u,onOpenChange:f,children:[y.jsx(bC,{asChild:!0,children:y.jsx(Qa,{variant:"ghost",size:"icon","aria-label":"Settings",title:"Settings",className:"rounded-[16px] border border-border/70 bg-background/70 shadow-sm",children:y.jsx(nE,{className:"h-4 w-4"})})}),y.jsxs(Py,{className:"grid h-[min(82vh,42rem)] max-h-[82vh] max-w-[min(90vw,56rem)] grid-rows-[auto_minmax(0,1fr)] overflow-hidden rounded-[22px] border-border/70 bg-background/96 p-0 shadow-[0_40px_120px_-56px_rgba(15,23,42,0.75)] backdrop-blur-xl",children:[y.jsxs(Jy,{className:"shrink-0 border-b border-border/60 px-3 py-2 sm:px-4",children:[y.jsxs(Iy,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(Pw,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),y.jsx(Fy,{className:"text-[11px]",children:"Session diagnostics, access configuration, and build metadata for the current Meshy node."})]}),y.jsx("div",{className:"min-h-0 overflow-y-auto px-3 py-2.5 sm:px-4 sm:py-3",children:y.jsx(hR,{cluster:n,systemInfo:r,sseConnected:o,onRefresh:i})})]})]})}const j_="bypass",vR=[{value:"claudecode",label:"claudecode",supportsFollowUp:!0},{value:"codex",label:"codex",supportsFollowUp:!0},{value:"mars",label:"mars",disabled:!0,description:"coming soon"},{value:"eureka",label:"eureka",disabled:!0,description:"coming soon"}],z_=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],k_=new Set(vR.filter(n=>n.supportsFollowUp).map(n=>n.value)),L_=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],U_=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],yR=new Set(["pending","assigned"]),bR=new Set(["running"]),xR=new Set(["completed","failed","cancelled"]);function B_(n,r){switch(r){case"running":return bR.has(n.status);case"waiting":return yR.has(n.status);case"closed":return xR.has(n.status);case"shared":return!!n.activeShare;case"archived":return n.status==="archived";case"active":default:return n.status!=="archived"}}function H_(n,r){if(r==="all")return!0;const o=n.conversationKind==="nativeSession";return r==="native"?o:!o}function V_(n,r){const o=r.trim().toLowerCase();return o?[n.title,n.description,n.id,n.agent,n.assignedTo??"",n.assignedNodeName??"",n.project??"",n.effectiveProjectPath??"",n.conversationKind==="nativeSession"?"native session":"meshy chat",n.activeShare?"shared conversation":""].some(i=>i.toLowerCase().includes(o)):!0}function SR(n,r,o){if(!n)return"unassigned";const i=r==null?void 0:r.find(u=>u.id===n);return(i==null?void 0:i.name)??o??n.slice(0,8)}function Y_(n,r,o){return SR(n,r,o).toLowerCase()}function q_(n,r){return[...n].sort((o,i)=>o.id===r?-1:i.id===r?1:o.name.localeCompare(i.name))}function G_(n){if(!n||typeof n!="object")return null;const r=n,o=r.createMode,i=o==="chat"||o==="native"?o:void 0;return{draftNewTask:r.draftNewTask===!0,returnRoute:typeof r.returnRoute=="string"?r.returnRoute:void 0,returnTaskId:typeof r.returnTaskId=="string"||r.returnTaskId===null?r.returnTaskId:void 0,createMode:i}}function $_(n){switch(n){case"running":return"bg-amber-500";case"completed":return"bg-emerald-500";case"failed":return"bg-destructive";case"cancelled":case"archived":return"bg-slate-400";case"assigned":return"bg-teal-500";case"pending":default:return"bg-muted-foreground"}}function X_(n){return n==="default workspace"?n:n.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??n}function Q_(n){const r=Date.now()-n;return r<6e4?"just now":r<36e5?`${Math.floor(r/6e4)}m`:r<864e5?`${Math.floor(r/36e5)}h`:`${Math.floor(r/864e5)}d`}function Z_(n){return new Date(n).toLocaleString()}function K_(n){const r=Math.floor(n/1e3),o=Math.floor(r/3600),i=Math.floor(r%3600/60),u=r%60;return`${String(o).padStart(2,"0")}:${String(i).padStart(2,"0")}:${String(u).padStart(2,"0")}`}async function wR(n,r="Copied to clipboard"){var o,i,u;try{if((i=(o=globalThis.navigator)==null?void 0:o.clipboard)!=null&&i.writeText)return await globalThis.navigator.clipboard.writeText(n),sa.success(r),!0;const f=globalThis.document,d=(u=f==null?void 0:f.execCommand)==null?void 0:u.bind(f);if(!(f!=null&&f.body)||typeof f.createElement!="function"||typeof d!="function")throw new Error("Clipboard access is unavailable");const m=f.createElement("textarea"),v=f.activeElement,p=v&&typeof v.focus=="function"?v:null;m.value=n,m.setAttribute("readonly","true"),m.style.position="fixed",m.style.opacity="0",m.style.pointerEvents="none",f.body.appendChild(m),m.select(),m.setSelectionRange(0,m.value.length);const x=d("copy");if(f.body.removeChild(m),p==null||p.focus(),!x)throw new Error("Clipboard access is unavailable");return sa.success(r),!0}catch(f){return sa.error(f instanceof Error?f.message:"Failed to copy"),!1}}function P_(n,r,o){const i=new Map;for(const f of n){const d=f.assignedTo??null,m=d??"__unassigned__",v=d?r.get(d)??f.assignedNodeName??d.slice(0,8):"Unassigned",p=f.effectiveProjectPath??f.project??"default workspace";i.has(m)||i.set(m,{nodeId:d,nodeName:v,dirMap:new Map});const x=i.get(m);x.dirMap.has(p)||x.dirMap.set(p,[]),x.dirMap.get(p).push(f)}const u=Array.from(i.values()).map(({nodeId:f,nodeName:d,dirMap:m})=>{const v=Array.from(m.entries()).map(([p,x])=>({path:p,tasks:x})).sort((p,x)=>x.tasks.length-p.tasks.length||p.path.localeCompare(x.path));return{nodeId:f,nodeName:d,dirs:v}});return u.sort((f,d)=>{if(o){if(f.nodeId===o)return-1;if(d.nodeId===o)return 1}return f.nodeId===null?1:d.nodeId===null?-1:f.nodeName.localeCompare(d.nodeName)}),u}const ER={node:"border-teal-500/30 bg-teal-500/10 text-teal-700 dark:text-teal-300",task:"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300",election:"border-indigo-500/30 bg-indigo-500/10 text-indigo-700 dark:text-indigo-300",cluster:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",transport:"border-sky-500/30 bg-sky-500/10 text-sky-700 dark:text-sky-300"};function NR(n){return n.split(".")[0]??"unknown"}function TR(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function xr(n,r){return(r==null?void 0:r.get(n))??n}function CR(n,r){const o=n.data,i=o.operation;switch(n.type){case"node.joined":return`${o.name} joined the cluster`;case"node.left":return`${xr(o.nodeId,r)} left (${o.reason})`;case"node.status":return`${xr(o.nodeId,r)} is now ${o.status}`;case"node.operation.created":return`${i==null?void 0:i.kind} ${i==null?void 0:i.status} on ${xr(i==null?void 0:i.nodeId,r)}`;case"node.operation.updated":return`${i==null?void 0:i.kind} ${i==null?void 0:i.status} on ${xr(i==null?void 0:i.nodeId,r)}`;case"transport.changed":return`${xr(o.nodeId,r)} transport switched to ${o.transportType}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${xr(o.nodeId,r)}`;case"task.status":return`task ${o.taskId.slice(0,8)} -> ${o.status}`;case"election.started":return`candidate ${o.candidateId.slice(0,8)} term ${o.term}`;case"election.complete":return`leader elected, term ${o.term}`;case"cluster.state":return`${o.nodeCount} nodes, term ${o.term}`;default:return JSON.stringify(o)}}function AR(n){return JSON.stringify(n,null,2)}function RR({events:n,maxHeight:r="400px",emptyTitle:o="No live events yet",emptyDescription:i="Cluster activity appears here as it happens.",nodeNameById:u,onDismiss:f}){return n.length===0?y.jsx("div",{className:"flex h-28 items-center justify-center rounded-[20px] border border-dashed border-border/70 bg-background/40 text-center",children:y.jsxs("div",{children:[y.jsx("div",{className:"text-[11px] text-muted-foreground",children:o}),y.jsx("div",{className:"mt-1 text-[11px] text-muted-foreground/70",children:i})]})}):y.jsx("div",{className:"overflow-y-auto pr-1",style:{maxHeight:r},children:y.jsx("div",{className:"space-y-1.5",children:n.map(d=>{const m=NR(d.type);return y.jsx("div",{className:"rounded-xl border border-border/60 bg-background/45 px-2 py-1.5 transition-colors hover:border-border hover:bg-background/65",children:y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex items-start justify-between gap-1.5",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[y.jsx("div",{className:"font-mono text-[10px] text-muted-foreground",children:TR(d.timestamp)}),y.jsx(yt,{variant:"outline",className:we("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",ER[m]),children:d.type})]}),y.jsxs("div",{className:"flex shrink-0 items-center gap-0.5",children:[y.jsx(Qa,{type:"button",variant:"ghost",size:"icon",className:"h-5 w-5 rounded-[8px] text-muted-foreground",onClick:()=>void wR(AR(d),"Event copied"),"aria-label":`Copy ${d.type} event`,title:"Copy event",children:y.jsx(Hw,{className:"h-3 w-3"})}),f&&y.jsx(Qa,{type:"button",variant:"ghost",size:"icon",className:"h-5 w-5 rounded-[8px] text-muted-foreground hover:text-foreground",onClick:()=>f(d.id),"aria-label":`Dismiss ${d.type} event`,title:"Dismiss event",children:y.jsx(Kv,{className:"h-3 w-3"})})]})]}),y.jsx("div",{className:"text-[11px] leading-snug text-foreground/85",children:CR(d,u)})]})},d.id)})})})}const _R=["node.","election.","transport."],lx="cluster.state";function OR(n){return _R.some(r=>n.type.startsWith(r))}function MR(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function uv(n,r){return typeof n=="string"?(r==null?void 0:r.get(n))??n:null}function DR(n,r){if(n.type===lx)return uv(n.data.leaderId,r);const o=n.data.operation;return uv(n.data.nodeId??(o==null?void 0:o.nodeId)??n.data.leaderId??n.data.candidateId,r)}function jR(n,r){return n?`${DR(n,r)??n.type}: ${MR(n.timestamp)}`:"Waiting for cluster activity"}function zR({connected:n,events:r,nodeNameById:o,defaultOpen:i=!1}){const[u,f]=b.useState(i),[d,m]=b.useState(new Set),v=b.useRef(null),p=b.useMemo(()=>{const h=r.filter(E=>OR(E)&&!d.has(E.id)),w=new Set;return h.filter(E=>{if(E.type!=="node.status")return!0;const C=typeof E.data.nodeId=="string"?E.data.nodeId:E.type;return w.has(C)?!1:(w.add(C),!0)})},[r,d]),x=b.useMemo(()=>r.find(h=>h.type===lx)??p[0],[r,p]);return b.useEffect(()=>{m(h=>{if(h.size===0)return h;const w=new Set(r.map(C=>C.id)),E=new Set(Array.from(h).filter(C=>w.has(C)));return E.size===h.size?h:E})},[r]),b.useEffect(()=>{if(!u)return;const h=E=>{var C;(C=v.current)!=null&&C.contains(E.target)||f(!1)},w=E=>{E.key==="Escape"&&f(!1)};return document.addEventListener("pointerdown",h),document.addEventListener("keydown",w),()=>{document.removeEventListener("pointerdown",h),document.removeEventListener("keydown",w)}},[u]),y.jsxs("div",{ref:v,className:"relative",children:[y.jsxs("button",{type:"button","aria-expanded":u,"aria-haspopup":"dialog",onClick:()=>f(h=>!h),className:we("flex items-center gap-1.5 rounded-[16px] border px-2 py-1.5 text-[11px] shadow-sm transition-all sm:gap-2 sm:px-3 sm:py-2 sm:text-xs",n?"border-emerald-500/25 bg-emerald-500/8 text-muted-foreground hover:border-emerald-500/40 hover:bg-emerald-500/12":"border-destructive/25 bg-destructive/8 text-muted-foreground hover:border-destructive/40 hover:bg-destructive/12",u&&"shadow-[0_14px_40px_-26px_rgba(16,185,129,0.95)]"),title:n?"Live link connected":"Live link reconnecting",children:[y.jsx(Qv,{className:we("h-3.5 w-3.5",n?"text-emerald-500":"text-destructive")}),n?"Live link":"Reconnecting"]}),u&&y.jsxs("div",{role:"dialog","aria-label":"Live link connection events",className:"absolute right-0 top-[calc(100%+0.4rem)] z-50 w-[20rem] max-w-[calc(100vw-1.5rem)] overflow-hidden rounded-[20px] border border-border/70 bg-background/96 shadow-[0_28px_90px_-42px_rgba(0,0,0,var(--panel-shadow-alpha))] backdrop-blur-xl",children:[y.jsx("div",{className:"border-b border-border/60 bg-muted/25 px-3 py-2",children:y.jsxs("div",{className:"flex items-start justify-between gap-3",children:[y.jsxs("div",{className:"min-w-0",children:[y.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-semibold text-foreground",children:[n?y.jsx(Vv,{className:"h-3.5 w-3.5 text-emerald-500"}):y.jsx(fE,{className:"h-3.5 w-3.5 text-destructive"}),"Live link"]}),y.jsx("div",{className:"mt-0.5 truncate text-[10px] text-muted-foreground",children:n?"SSE stream is connected":"SSE stream is reconnecting"})]}),y.jsx("div",{className:we("rounded-[11px] border px-2 py-0.5 text-[9px] font-medium uppercase tracking-[0.14em]",n?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:n?"Connected":"Retrying"})]})}),y.jsxs("div",{className:"grid grid-cols-2 border-b border-border/60",children:[y.jsxs("div",{className:"border-r border-border/60 px-3 py-2",children:[y.jsx("div",{className:"text-[9px] font-medium uppercase tracking-[0.16em] text-muted-foreground",children:"Connection events"}),y.jsx("div",{className:"mt-0.5 text-lg font-semibold tracking-tight text-foreground",children:p.length})]}),y.jsxs("div",{className:"min-w-0 px-3 py-2",children:[y.jsx("div",{className:"text-[9px] font-medium uppercase tracking-[0.16em] text-muted-foreground",children:"Latest"}),y.jsx("div",{className:"mt-1 truncate font-mono text-[9px] text-foreground/80",children:jR(x,o)})]})]}),y.jsx("div",{className:"px-2 py-2",children:y.jsx(RR,{events:p,maxHeight:"16rem",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:o,onDismiss:h=>m(w=>new Set(w).add(h))})}),y.jsxs("div",{className:"flex items-center justify-between gap-2 border-t border-border/60 px-3 py-2 text-[10px] text-muted-foreground",children:[y.jsx("span",{className:"truncate",children:"Node, election, and system activity."}),y.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[y.jsx(Qa,{type:"button",variant:"ghost",size:"sm",className:"h-6 rounded-[11px] px-2 text-[10px]",onClick:()=>m(new Set(r.map(h=>h.id))),disabled:p.length===0,title:"Dismiss all notifications",children:"Dismiss all"}),y.jsx(Qa,{type:"button",variant:"ghost",size:"sm",className:"h-6 rounded-[11px] px-2 text-[10px]",onClick:()=>f(!1),children:"Close"})]})]})]})]})}const rx=b.createContext(null);function kR({children:n}){const[r,o]=b.useState(()=>typeof window<"u"?localStorage.getItem("meshy-theme")??"system":"system"),[i,u]=b.useState(()=>typeof window<"u"?localStorage.getItem("meshy-palette")??"default":"default");return b.useEffect(()=>{const f=document.documentElement,d=m=>{if(m==="system"){const v=window.matchMedia("(prefers-color-scheme: dark)").matches;f.classList.toggle("dark",v)}else f.classList.toggle("dark",m==="dark")};if(d(r),localStorage.setItem("meshy-theme",r),r==="system"){const m=window.matchMedia("(prefers-color-scheme: dark)"),v=()=>d("system");return m.addEventListener("change",v),()=>m.removeEventListener("change",v)}},[r]),b.useEffect(()=>{const f=document.documentElement;i==="default"?f.removeAttribute("data-palette"):f.setAttribute("data-palette",i),localStorage.setItem("meshy-palette",i)},[i]),y.jsx(rx.Provider,{value:{theme:r,setTheme:o,palette:i,setPalette:u},children:n})}function LR(){const n=b.useContext(rx);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}const UR=[{value:"light",label:"Light",icon:Zv},{value:"dark",label:"Dark",icon:Xv},{value:"system",label:"System",icon:$v}],BR=[{value:"default",label:"Default",hint:"Porcelain + blue"},{value:"warm",label:"Warm",hint:"Cream + amber"},{value:"finsight",label:"FinSight",hint:"Cool sage green"},{value:"inshield",label:"inShield",hint:"Pure white + navy"},{value:"edge",label:"Edge",hint:"Rounded violet panels"}];function HR(){const{theme:n,setTheme:r,palette:o,setPalette:i}=LR(),[u,f]=b.useState(!1),d=b.useRef(null),m=b.useRef(null),v=n==="dark"?Xv:n==="light"?Zv:$v,p=()=>{d.current&&(clearTimeout(d.current),d.current=null)},x=()=>{p(),d.current=setTimeout(()=>f(!1),180)};return b.useEffect(()=>{if(!u)return;const h=w=>{m.current&&!m.current.contains(w.target)&&f(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[u]),b.useEffect(()=>()=>p(),[]),y.jsxs("div",{ref:m,className:"relative",onMouseEnter:()=>{p(),f(!0)},onMouseLeave:x,children:[y.jsx(Qa,{variant:"ghost",size:"icon",onClick:()=>f(h=>!h),className:we("rounded-[16px] border bg-background/70",o==="default"?"border-border/60":"border-primary/60 text-primary"),title:"Appearance","aria-haspopup":"menu","aria-expanded":u,children:y.jsx(v,{className:"h-4 w-4"})}),u&&y.jsxs("div",{role:"menu",className:"absolute right-0 top-[calc(100%+8px)] z-50 w-64 rounded-[20px] border border-border/70 bg-popover/95 p-3 text-popover-foreground shadow-[0_24px_80px_-32px_rgba(0,0,0,0.35)] backdrop-blur-xl",children:[y.jsx("div",{className:"px-1 pb-1 text-[10px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Theme"}),y.jsx("div",{className:"mb-2 grid grid-cols-3 gap-1",children:UR.map(({value:h,label:w,icon:E})=>{const C=n===h;return y.jsxs("button",{type:"button",onClick:()=>r(h),className:we("flex flex-col items-center gap-1 rounded-[14px] border px-2 py-2 text-[11px] font-medium transition-colors",C?"border-primary/50 bg-primary/10 text-primary":"border-border/60 text-muted-foreground hover:border-border hover:bg-muted/60 hover:text-foreground"),children:[y.jsx(E,{className:"h-4 w-4"}),w]},h)})}),y.jsxs("div",{className:"mt-2 flex items-center gap-1.5 px-1 pb-1 text-[10px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:[y.jsx(oE,{className:"h-3 w-3"}),"Palette"]}),y.jsx("div",{className:"space-y-1",children:BR.map(({value:h,label:w,hint:E})=>{const C=o===h;return y.jsxs("button",{type:"button",onClick:()=>i(h),className:we("flex w-full items-center gap-2 rounded-[14px] border px-2.5 py-1.5 text-left transition-colors",C?"border-primary/50 bg-primary/10":"border-transparent hover:bg-muted/60"),children:[y.jsx(VR,{value:h}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("div",{className:we("text-[12px] font-medium",C?"text-primary":"text-foreground"),children:w}),y.jsx("div",{className:"text-[10px] text-muted-foreground",children:E})]}),C&&y.jsx(qv,{className:"h-3.5 w-3.5 text-primary"})]},h)})})]})]})}function VR({value:n}){const r={default:["hsl(212 76% 44%)","hsl(210 22% 98%)","hsl(174 42% 61%)"],warm:["hsl(35 88% 56%)","hsl(42 22% 97%)","hsl(160 60% 45%)"],finsight:["hsl(152 38% 32%)","hsl(150 14% 97%)","hsl(142 55% 58%)"],inshield:["hsl(220 25% 12%)","hsl(0 0% 100%)","hsl(195 80% 55%)"],edge:["hsl(265 75% 55%)","hsl(260 12% 98%)","hsl(285 70% 65%)"]},[o,i,u]=r[n];return y.jsxs("div",{className:we("flex h-6 w-6 shrink-0 overflow-hidden border border-border/60",n==="edge"?"rounded-[10px]":"rounded-[12px]"),children:[y.jsx("div",{className:"h-full w-1/3",style:{background:o}}),y.jsx("div",{className:"h-full w-1/3",style:{background:i}}),y.jsx("div",{className:"h-full w-1/3",style:{background:u}})]})}function YR(){var v,p;const{cluster:n,events:r,sseConnected:o}=Bv(),i=Vn(),[u,f]=b.useState(!1),d=i.pathname==="/"||/^\/tasks\/[^/]+$/.test(i.pathname),m=b.useMemo(()=>{const x=new Map;for(const h of(n==null?void 0:n.nodes)??[])x.set(h.id,h.name);return x},[n==null?void 0:n.nodes]);return y.jsxs("div",{className:"relative h-full overflow-hidden bg-background text-foreground",children:[y.jsx("div",{className:"mesh-grid pointer-events-none absolute inset-0"}),y.jsxs("div",{className:"relative z-10 flex h-full min-h-0 flex-col",children:[y.jsx("header",{className:"relative z-50 shrink-0 px-2 pb-2 pt-3 sm:px-5 sm:pb-3 sm:pt-4 lg:px-6",children:y.jsxs("div",{className:"dashboard-panel dashboard-panel-muted animate-panel-settle mx-auto flex max-w-[1760px] flex-wrap items-center justify-between gap-2 rounded-[22px] px-3 py-2 sm:gap-3 sm:rounded-[24px] sm:px-4 sm:py-3",children:[y.jsx("div",{className:"flex min-w-0 items-center gap-4",children:y.jsxs(zv,{to:"/",className:"flex items-center gap-3",children:[y.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-[15px] border border-border/70 bg-foreground text-xs font-semibold tracking-[0.24em] text-background shadow-sm sm:h-11 sm:w-11 sm:rounded-[17px] sm:text-sm",children:"M"}),y.jsxs("div",{className:"hidden min-w-0 sm:block",children:[y.jsx("div",{className:"text-[11px] font-medium uppercase tracking-[0.34em] text-muted-foreground",children:"MESHY"}),y.jsx("div",{className:"truncate text-base font-semibold tracking-tight text-foreground",children:"Workspace"})]})]})}),y.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[y.jsxs("div",{className:"hidden items-center gap-2 rounded-[16px] border border-border/70 bg-background/70 px-3 py-2 text-xs text-muted-foreground shadow-sm sm:flex",children:[y.jsxs("span",{className:"flex items-center gap-2",children:[(n==null?void 0:n.self)&&y.jsx(dy,{status:n.self.status}),y.jsx("span",{className:"font-medium text-foreground",children:((v=n==null?void 0:n.self)==null?void 0:v.name)??"offline"})]}),y.jsx("span",{className:"text-border",children:"/"}),y.jsx("span",{className:"capitalize",children:((p=n==null?void 0:n.self)==null?void 0:p.role)??"node"})]}),y.jsx(zR,{connected:o,events:r,nodeNameById:m}),d&&y.jsx(Qa,{variant:"ghost",size:"icon",onClick:()=>f(x=>!x),"aria-label":u?"Close terminal":"Open terminal",title:u?"Close terminal":"Open terminal",className:we("rounded-[16px] border bg-background/70 shadow-sm",u?"border-primary/50 bg-primary/10 text-primary":"border-border/70"),children:y.jsx(cE,{className:"h-4 w-4"})}),y.jsx(gR,{}),y.jsx(HR,{})]})]})}),y.jsx("main",{className:we("min-h-0 flex-1 px-3 pb-3 sm:px-5 lg:px-6",d?"overflow-hidden":"overflow-y-auto"),children:y.jsx("div",{className:"mx-auto h-full min-h-0 max-w-[1760px]",children:y.jsx(T2,{context:{terminalOpen:u,setTerminalOpen:f}})})})]})]})}const fv=b.lazy(async()=>({default:(await pv(()=>import("./DashboardPage-BUtwv0kD.js").then(r=>r.D),__vite__mapDeps([0,1,2,3]))).DashboardPage})),qR=b.lazy(async()=>({default:(await pv(()=>import("./SharedConversationPage-e35GHbGI.js"),__vite__mapDeps([4,1]))).SharedConversationPage}));function GR(){return y.jsx(I2,{children:y.jsx(b.Suspense,{fallback:y.jsx($R,{}),children:y.jsxs(A2,{children:[y.jsx(El,{path:"/shared/tasks/:shareId",element:y.jsx(qR,{})}),y.jsxs(El,{element:y.jsx(vw,{children:y.jsx(YR,{})}),children:[y.jsx(El,{path:"/",element:y.jsx(fv,{})}),y.jsx(El,{path:"/nodes",element:y.jsx(Ng,{to:"/",replace:!0})}),y.jsx(El,{path:"/tasks",element:y.jsx(Ng,{to:"/",replace:!0})}),y.jsx(El,{path:"/tasks/:id",element:y.jsx(fv,{})})]})]})})})}function $R(){return y.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function XR(n){return y.jsx(jN,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...n})}CS.createRoot(document.getElementById("root")).render(y.jsx(b.StrictMode,{children:y.jsxs(kR,{children:[y.jsx(GR,{}),y.jsx(XR,{})]})}));export{ex as $,oE as A,yt as B,qv as C,Py as D,c_ as E,Xw as F,yC as G,Hw as H,wR as I,SR as J,L5 as K,O_ as L,Rb as M,hs as N,Z_ as O,M_ as P,gs as Q,P5 as R,sb as S,z_ as T,Pb as U,Jb as V,Fb as W,Kv as X,Wb as Y,Ib as Z,tx as _,LN as a,N_ as a$,pv as a0,r_ as a1,cE as a2,kw as a3,Uw as a4,l_ as a5,o_ as a6,a_ as a7,q_ as a8,Qv as a9,ZR as aA,Vn as aB,Tv as aC,QR as aD,Bv as aE,G_ as aF,B_ as aG,H_ as aH,Y_ as aI,V_ as aJ,s_ as aK,k_ as aL,bR as aM,g_ as aN,m_ as aO,p_ as aP,d_ as aQ,f_ as aR,PR as aS,IR as aT,KR as aU,FR as aV,E_ as aW,w_ as aX,S_ as aY,b_ as aZ,x_ as a_,RR as aa,dy as ab,Gw as ac,lN as ad,K_ as ae,yR as af,Lo as ag,He as ah,Oo as ai,nt as aj,ke as ak,VA as al,_A as am,_l as an,P_ as ao,L_ as ap,U_ as aq,X_ as ar,$_ as as,Q_ as at,J5 as au,v_ as av,y_ as aw,i_ as ax,pw as ay,h_ as az,we as b,jw as b0,dv as b1,A_ as b2,C_ as b3,T_ as b4,R_ as b5,D_ as b6,__ as b7,Je as c,fy as d,JR as e,Jy as f,Iy as g,SC as h,Qa as i,y as j,e_ as k,n_ as l,uw as m,WR as n,j_ as o,t_ as p,u_ as q,b as r,v5 as s,sa as t,lb as u,y5 as v,ib as w,Yv as x,Gv as y,vR as z};