meshy-node 0.3.5 → 0.3.7

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,266 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-DQjLt2wn.js","assets/DashboardShared-B4I_eZZK.js","assets/input-BRIa-GWn.js","assets/folder-BNfC8Y62.js","assets/SharedConversationPage-CDFyo1wW.js"])))=>i.map(i=>d[i]);
2
- function fS(a,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 a)){const f=Object.getOwnPropertyDescriptor(i,u);f&&Object.defineProperty(a,u,f.get?f:{enumerable:!0,get:()=>i[u]})}}}return Object.freeze(Object.defineProperty(a,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(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Iu={exports:{}},To={};/**
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 dS(){if(ig)return To;ig=1;var a=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 h in u)h!=="key"&&(f[h]=u[h])}else f=u;return u=f.ref,{$$typeof:a,type:i,key:d,ref:u!==void 0?u:null,props:f}}return To.Fragment=r,To.jsx=o,To.jsxs=o,To}var sg;function mS(){return sg||(sg=1,Iu.exports=dS()),Iu.exports}var y=mS(),Wu={exports:{}},Se={};/**
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 hS(){if(cg)return Se;cg=1;var a=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"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),w=Symbol.iterator;function T(_){return _===null||typeof _!="object"?null:(_=w&&_[w]||_["@@iterator"],typeof _=="function"?_:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,N={};function C(_,G,X){this.props=_,this.context=G,this.refs=N,this.updater=X||A}C.prototype.isReactComponent={},C.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")},C.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function j(){}j.prototype=C.prototype;function D(_,G,X){this.props=_,this.context=G,this.refs=N,this.updater=X||A}var B=D.prototype=new j;B.constructor=D,E(B,C.prototype),B.isPureReactComponent=!0;var Z=Array.isArray;function F(){}var q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function le(_,G,X){var W=X.ref;return{$$typeof:a,type:_,key:G,ref:W!==void 0?W:null,props:X}}function he(_,G){return le(_.type,G,_.props)}function pe(_){return typeof _=="object"&&_!==null&&_.$$typeof===a}function fe(_){var G={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(X){return G[X]})}var me=/\/+/g;function ge(_,G){return typeof _=="object"&&_!==null&&_.key!=null?fe(""+_.key):G.toString(36)}function ue(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(F,F):(_.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,W,P){var ne=typeof _;(ne==="undefined"||ne==="boolean")&&(_=null);var ee=!1;if(_===null)ee=!0;else switch(ne){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(_.$$typeof){case a:case r:ee=!0;break;case x:return ee=_._init,O(ee(_._payload),G,X,W,P)}}if(ee)return P=P(_),ee=W===""?"."+ge(_,0):W,Z(P)?(X="",ee!=null&&(X=ee.replace(me,"$&/")+"/"),O(P,G,X,"",function(Ce){return Ce})):P!=null&&(pe(P)&&(P=he(P,X+(P.key==null||_&&_.key===P.key?"":(""+P.key).replace(me,"$&/")+"/")+ee)),G.push(P)),1;ee=0;var ae=W===""?".":W+":";if(Z(_))for(var ie=0;ie<_.length;ie++)W=_[ie],ne=ae+ge(W,ie),ee+=O(W,G,X,ne,P);else if(ie=T(_),typeof ie=="function")for(_=ie.call(_),ie=0;!(W=_.next()).done;)W=W.value,ne=ae+ge(W,ie++),ee+=O(W,G,X,ne,P);else if(ne==="object"){if(typeof _.then=="function")return O(ue(_),G,X,W,P);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 W=[],P=0;return O(_,W,"","",function(ne){return G.call(X,ne,P++)}),W}function J(_){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 re=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(!pe(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Se.Activity=m,Se.Children=I,Se.Component=C,Se.Fragment=o,Se.Profiler=u,Se.PureComponent=D,Se.StrictMode=i,Se.Suspense=v,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Se.__COMPILER_RUNTIME={__proto__:null,c:function(_){return q.H.useMemoCache(_)}},Se.cache=function(_){return function(){return _.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.cloneElement=function(_,G,X){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var W=E({},_.props),P=_.key;if(G!=null)for(ne in G.key!==void 0&&(P=""+G.key),G)!V.call(G,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&G.ref===void 0||(W[ne]=G[ne]);var ne=arguments.length-2;if(ne===1)W.children=X;else if(1<ne){for(var ee=Array(ne),ae=0;ae<ne;ae++)ee[ae]=arguments[ae+2];W.children=ee}return le(_.type,P,W)},Se.createContext=function(_){return _={$$typeof:d,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:f,_context:_},_},Se.createElement=function(_,G,X){var W,P={},ne=null;if(G!=null)for(W in G.key!==void 0&&(ne=""+G.key),G)V.call(G,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(P[W]=G[W]);var ee=arguments.length-2;if(ee===1)P.children=X;else if(1<ee){for(var ae=Array(ee),ie=0;ie<ee;ie++)ae[ie]=arguments[ie+2];P.children=ae}if(_&&_.defaultProps)for(W in ee=_.defaultProps,ee)P[W]===void 0&&(P[W]=ee[W]);return le(_,ne,P)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(_){return{$$typeof:h,render:_}},Se.isValidElement=pe,Se.lazy=function(_){return{$$typeof:x,_payload:{_status:-1,_result:_},_init:J}},Se.memo=function(_,G){return{$$typeof:p,type:_,compare:G===void 0?null:G}},Se.startTransition=function(_){var G=q.T,X={};q.T=X;try{var W=_(),P=q.S;P!==null&&P(X,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(F,re)}catch(ne){re(ne)}finally{G!==null&&X.types!==null&&(G.types=X.types),q.T=G}},Se.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Se.use=function(_){return q.H.use(_)},Se.useActionState=function(_,G,X){return q.H.useActionState(_,G,X)},Se.useCallback=function(_,G){return q.H.useCallback(_,G)},Se.useContext=function(_){return q.H.useContext(_)},Se.useDebugValue=function(){},Se.useDeferredValue=function(_,G){return q.H.useDeferredValue(_,G)},Se.useEffect=function(_,G){return q.H.useEffect(_,G)},Se.useEffectEvent=function(_){return q.H.useEffectEvent(_)},Se.useId=function(){return q.H.useId()},Se.useImperativeHandle=function(_,G,X){return q.H.useImperativeHandle(_,G,X)},Se.useInsertionEffect=function(_,G){return q.H.useInsertionEffect(_,G)},Se.useLayoutEffect=function(_,G){return q.H.useLayoutEffect(_,G)},Se.useMemo=function(_,G){return q.H.useMemo(_,G)},Se.useOptimistic=function(_,G){return q.H.useOptimistic(_,G)},Se.useReducer=function(_,G,X){return q.H.useReducer(_,G,X)},Se.useRef=function(_){return q.H.useRef(_)},Se.useState=function(_){return q.H.useState(_)},Se.useSyncExternalStore=function(_,G,X){return q.H.useSyncExternalStore(_,G,X)},Se.useTransition=function(){return q.H.useTransition()},Se.version="19.2.4",Se}var ug;function Lf(){return ug||(ug=1,Wu.exports=hS()),Wu.exports}var b=Lf();const te=dv(b),Uf=fS({__proto__:null,default:te},[b]);var ef={exports:{}},No={},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 pS(){return fg||(fg=1,(function(a){function r(O,Y){var J=O.length;O.push(Y);e:for(;0<J;){var re=J-1>>>1,I=O[re];if(0<u(I,Y))O[re]=Y,O[J]=I,J=re;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],J=O.pop();if(J!==Y){O[0]=J;e:for(var re=0,I=O.length,_=I>>>1;re<_;){var G=2*(re+1)-1,X=O[G],W=G+1,P=O[W];if(0>u(X,J))W<I&&0>u(P,X)?(O[re]=P,O[W]=J,re=W):(O[re]=X,O[G]=J,re=G);else if(W<I&&0>u(P,J))O[re]=P,O[W]=J,re=W;else break e}}return Y}function u(O,Y){var J=O.sortIndex-Y.sortIndex;return J!==0?J:O.id-Y.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();a.unstable_now=function(){return d.now()-h}}var v=[],p=[],x=1,m=null,w=3,T=!1,A=!1,E=!1,N=!1,C=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 Z(O){if(E=!1,B(O),!A)if(o(v)!==null)A=!0,F||(F=!0,fe());else{var Y=o(p);Y!==null&&ue(Z,Y.startTime-O)}}var F=!1,q=-1,V=5,le=-1;function he(){return N?!0:!(a.unstable_now()-le<V)}function pe(){if(N=!1,F){var O=a.unstable_now();le=O;var Y=!0;try{e:{A=!1,E&&(E=!1,j(q),q=-1),T=!0;var J=w;try{t:{for(B(O),m=o(v);m!==null&&!(m.expirationTime>O&&he());){var re=m.callback;if(typeof re=="function"){m.callback=null,w=m.priorityLevel;var I=re(m.expirationTime<=O);if(O=a.unstable_now(),typeof I=="function"){m.callback=I,B(O),Y=!0;break t}m===o(v)&&i(v),B(O)}else i(v);m=o(v)}if(m!==null)Y=!0;else{var _=o(p);_!==null&&ue(Z,_.startTime-O),Y=!1}}break e}finally{m=null,w=J,T=!1}Y=void 0}}finally{Y?fe():F=!1}}}var fe;if(typeof D=="function")fe=function(){D(pe)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,ge=me.port2;me.port1.onmessage=pe,fe=function(){ge.postMessage(null)}}else fe=function(){C(pe,0)};function ue(O,Y){q=C(function(){O(a.unstable_now())},Y)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(O){O.callback=null},a.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},a.unstable_getCurrentPriorityLevel=function(){return w},a.unstable_next=function(O){switch(w){case 1:case 2:case 3:var Y=3;break;default:Y=w}var J=w;w=Y;try{return O()}finally{w=J}},a.unstable_requestPaint=function(){N=!0},a.unstable_runWithPriority=function(O,Y){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var J=w;w=O;try{return Y()}finally{w=J}},a.unstable_scheduleCallback=function(O,Y,J){var re=a.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?re+J:re):J=re,O){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=J+I,O={id:x++,callback:Y,priorityLevel:O,startTime:J,expirationTime:I,sortIndex:-1},J>re?(O.sortIndex=J,r(p,O),o(v)===null&&O===o(p)&&(E?(j(q),q=-1):E=!0,ue(Z,J-re))):(O.sortIndex=I,r(v,O),A||T||(A=!0,F||(F=!0,fe()))),O},a.unstable_shouldYield=he,a.unstable_wrapCallback=function(O){var Y=w;return function(){var J=w;w=Y;try{return O.apply(this,arguments)}finally{w=J}}}})(nf)),nf}var dg;function gS(){return dg||(dg=1,tf.exports=pS()),tf.exports}var af={exports:{}},Tt={};/**
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 vS(){if(mg)return Tt;mg=1;var a=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 m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:m==null?null:""+m,children:v,containerInfo:p,implementation:x}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Tt.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)},Tt.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()}},Tt.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))},Tt.prefetchDNS=function(v){typeof v=="string"&&i.d.D(v)},Tt.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var x=p.as,m=h(x,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?i.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:m,integrity:w,fetchPriority:T}):x==="script"&&i.d.X(v,{crossOrigin:m,integrity:w,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Tt.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=h(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)},Tt.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,m=h(x,p.crossOrigin);i.d.L(v,x,{crossOrigin:m,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})}},Tt.preloadModule=function(v,p){if(typeof v=="string")if(p){var x=h(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)},Tt.requestFormReset=function(v){i.d.r(v)},Tt.unstable_batchedUpdates=function(v,p){return v(p)},Tt.useFormState=function(v,p,x){return d.H.useFormState(v,p,x)},Tt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Tt.version="19.2.4",Tt}var hg;function mv(){if(hg)return af.exports;hg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),af.exports=vS(),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 pg;function yS(){if(pg)return No;pg=1;var a=gS(),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 n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n: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 h(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 n=e,l=t;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return v(s),e;if(c===l)return v(s),t;c=c.sibling}throw Error(i(188))}if(n.return!==l.return)n=s,l=c;else{for(var g=!1,S=s.child;S;){if(S===n){g=!0,n=s,l=c;break}if(S===l){g=!0,l=s,n=c;break}S=S.sibling}if(!g){for(S=c.child;S;){if(S===n){g=!0,n=c,l=s;break}if(S===l){g=!0,l=c,n=s;break}S=S.sibling}if(!g)throw Error(i(189))}}if(n.alternate!==l)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?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 m=Object.assign,w=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),D=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),he=Symbol.for("react.memo_cache_sentinel"),pe=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=pe&&e[pe]||e["@@iterator"],typeof e=="function"?e:null)}var me=Symbol.for("react.client.reference");function ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case C:return"Profiler";case N:return"StrictMode";case Z:return"Suspense";case F:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A: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:ge(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return ge(e(t))}catch{}}return null}var ue=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,J={pending:!1,data:null,method:null,action:null},re=[],I=-1;function _(e){return{current:e}}function G(e){0>I||(e.current=re[I],re[I]=null,I--)}function X(e,t){I++,re[I]=e.current,e.current=t}var W=_(null),P=_(null),ne=_(null),ee=_(null);function ae(e,t){switch(X(ne,t),X(P,e),X(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Op(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Op(t),e=Mp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(W),X(W,e)}function ie(){G(W),G(P),G(ne)}function Ce(e){e.memoizedState!==null&&X(ee,e);var t=W.current,n=Mp(t,e.type);t!==n&&(X(P,e),X(W,n))}function we(e){P.current===e&&(G(W),G(P)),ee.current===e&&(G(ee),xo._currentValue=J)}var xe,tt;function Xe(e){if(xe===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);xe=t&&t[1]||"",tt=-1<n.stack.indexOf(`
43
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
44
- `+xe+e+tt}var fn=!1;function It(e,t){if(!e||fn)return"";fn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(H){var U=H}Reflect.construct(e,[],K)}else{try{K.call()}catch(H){U=H}e.call(K.prototype)}}else{try{throw Error()}catch(H){U=H}(K=e())&&typeof K.catch=="function"&&K.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{fn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Xe(n):""}function Yt(e,t){switch(e.tag){case 26:case 27:case 5:return Xe(e.type);case 16:return Xe("Lazy");case 13:return e.child!==t&&t!==null?Xe("Suspense Fallback"):Xe("Suspense");case 19:return Xe("SuspenseList");case 0:case 15:return It(e.type,!1);case 11:return It(e.type.render,!1);case 1:return It(e.type,!0);case 31:return Xe("Activity");default:return""}}function Ja(e){try{var t="",n=null;do t+=Yt(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
48
- Error generating stack: `+l.message+`
49
- `+l.stack}}var dt=Object.prototype.hasOwnProperty,Or=a.unstable_scheduleCallback,Mr=a.unstable_cancelCallback,Ct=a.unstable_shouldYield,fa=a.unstable_requestPaint,At=a.unstable_now,Vs=a.unstable_getCurrentPriorityLevel,Fa=a.unstable_ImmediatePriority,Ho=a.unstable_UserBlockingPriority,Ia=a.unstable_NormalPriority,Dr=a.unstable_LowPriority,Vn=a.unstable_IdlePriority,Vo=a.log,da=a.unstable_setDisableYieldValue,Wa=null,Rt=null;function dn(e){if(typeof Vo=="function"&&da(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(Wa,e)}catch{}}var wt=Math.clz32?Math.clz32:wn,Ys=Math.log,jr=Math.LN2;function wn(e){return e>>>=0,e===0?32:31-(Ys(e)/jr|0)|0}var _l=256,Ol=262144,el=4194304;function En(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 be(e,t,n){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=En(l):(g&=S,g!==0?s=En(g):n||(n=S&~e,n!==0&&(s=En(n))))):(S=l&~c,S!==0?s=En(S):g!==0?s=En(g):n||(n=l&~e,n!==0&&(s=En(n)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:s}function Pe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function mt(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 Et(){var e=el;return el<<=1,(el&62914560)===0&&(el=4194304),e}function ma(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ot(e,t,n,l,s,c){var g=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var S=e.entanglements,R=e.expirationTimes,L=e.hiddenUpdates;for(n=g&~n;0<n;){var $=31-wt(n),K=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)}n&=~K}l!==0&&tl(e,l,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function tl(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-wt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-wt(n),s=1<<l;s&t|e[l]&t&&(e[l]|=t),n&=~s}}function Dt(e,t){var n=t&-t;return n=(n&42)!==0?1:Ml(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ml(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 mn(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 n=Y.p;try{return Y.p=e,t()}finally{Y.p=n}}var ha=Math.random().toString(36).slice(2),gt="__reactFiber$"+ha,jt="__reactProps$"+ha,Dl="__reactContainer$"+ha,Gs="__reactEvents$"+ha,ex="__reactListeners$"+ha,tx="__reactHandles$"+ha,vd="__reactResources$"+ha,zr="__reactMarker$"+ha;function $s(e){delete e[gt],delete e[jt],delete e[Gs],delete e[ex],delete e[tx]}function jl(e){var t=e[gt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Dl]||n[gt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Bp(e);e!==null;){if(n=e[gt])return n;e=Bp(e)}return t}e=n,n=e.parentNode}return null}function zl(e){if(e=e[gt]||e[Dl]){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 kl(e){var t=e[vd];return t||(t=e[vd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[zr]=!0}var yd=new Set,bd={};function nl(e,t){Ll(e,t),Ll(e+"Capture",t)}function Ll(e,t){for(bd[e]=t,e=0;e<t.length;e++)yd.add(t[e])}var nx=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 ax(e){return dt.call(Sd,e)?!0:dt.call(xd,e)?!1:nx.test(e)?Sd[e]=!0:(xd[e]=!0,!1)}function Yo(e,t,n){if(ax(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){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,""+n)}}function qo(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Yn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Wt(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 lx(e,t,n){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){n=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(g){n=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xs(e){if(!e._valueTracker){var t=wd(e)?"checked":"value";e._valueTracker=lx(e,t,""+e[t])}}function Ed(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=wd(e)?e.checked?"true":"false":e.value),e=l,e!==n?(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 rx=/[\n"\\]/g;function en(e){return e.replace(rx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Qs(e,t,n,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=""+Wt(t)):e.value!==""+Wt(t)&&(e.value=""+Wt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Zs(e,g,Wt(t)):n!=null?Zs(e,g,Wt(n)):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=""+Wt(S):e.removeAttribute("name")}function Td(e,t,n,l,s,c,g,S){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Xs(e);return}n=n!=null?""+Wt(n):"",t=t!=null?""+Wt(t):n,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,n){t==="number"&&Go(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ul(e,t,n,l){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Wt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Nd(e,t,n){if(t!=null&&(t=""+Wt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Wt(n):""}function Cd(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(i(92));if(ue(l)){if(1<l.length)throw Error(i(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Wt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Xs(e)}function Bl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ox=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,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||ox.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Rd(e,t,n){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,n!=null){for(var l in n)!n.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)&&n[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 ix=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"]]),sx=/^[\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 sx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function qn(){}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 Hl=null,Vl=null;function _d(e){var t=zl(e);if(t&&(e=t.stateNode)){var n=e[jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Qs(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+en(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var s=l[jt]||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<n.length;t++)l=n[t],l.form===e.form&&Ed(l)}break e;case"textarea":Nd(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ul(e,!!n.multiple,t,!1)}}}var Fs=!1;function Od(e,t,n){if(Fs)return e(t,n);Fs=!0;try{var l=e(t);return l}finally{if(Fs=!1,(Hl!==null||Vl!==null)&&(Mi(),Hl&&(t=Hl,e=Vl,Vl=Hl=null,_d(t),e)))for(t=0;t<e.length;t++)_d(e[t])}}function Lr(e,t){var n=e.stateNode;if(n===null)return null;var l=n[jt]||null;if(l===null)return null;n=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(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var Gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Is=!1;if(Gn)try{var Ur={};Object.defineProperty(Ur,"passive",{get:function(){Is=!0}}),window.addEventListener("test",Ur,Ur),window.removeEventListener("test",Ur,Ur)}catch{Is=!1}var pa=null,Ws=null,Xo=null;function Md(){if(Xo)return Xo;var e,t=Ws,n=t.length,l,s="value"in pa?pa.value:pa.textContent,c=s.length;for(e=0;e<n&&t[e]===s[e];e++);var g=n-e;for(l=1;l<=g&&t[n-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 zt(e){function t(n,l,s,c,g){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(n=e[S],this[S]=n?n(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Zo:Dd,this.isPropagationStopped=Dd,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Zo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Zo)},persist:function(){},isPersistent:Zo}),t}var al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ko=zt(al),Br=m({},al,{view:0,detail:0}),cx=zt(Br),ec,tc,Hr,Po=m({},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=zt(Po),ux=m({},Po,{dataTransfer:0}),fx=zt(ux),dx=m({},Br,{relatedTarget:0}),nc=zt(dx),mx=m({},al,{animationName:0,elapsedTime:0,pseudoElement:0}),hx=zt(mx),px=m({},al,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gx=zt(px),vx=m({},al,{data:0}),zd=zt(vx),yx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bx={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"},xx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xx[e])?!!t[e]:!1}function ac(){return Sx}var wx=m({},Br,{key:function(e){if(e.key){var t=yx[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"?bx[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}}),Ex=zt(wx),Tx=m({},Po,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kd=zt(Tx),Nx=m({},Br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ac}),Cx=zt(Nx),Ax=m({},al,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rx=zt(Ax),_x=m({},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}),Ox=zt(_x),Mx=m({},al,{newState:0,oldState:0}),Dx=zt(Mx),jx=[9,13,27,32],lc=Gn&&"CompositionEvent"in window,Vr=null;Gn&&"documentMode"in document&&(Vr=document.documentMode);var zx=Gn&&"TextEvent"in window&&!Vr,Ld=Gn&&(!lc||Vr&&8<Vr&&11>=Vr),Ud=" ",Bd=!1;function Hd(e,t){switch(e){case"keyup":return jx.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 Yl=!1;function kx(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 Lx(e,t){if(Yl)return e==="compositionend"||!lc&&Hd(e,t)?(e=Md(),Xo=Ws=pa=null,Yl=!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 Ux={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"?!!Ux[e.type]:t==="textarea"}function qd(e,t,n,l){Hl?Vl?Vl.push(l):Vl=[l]:Hl=l,t=Bi(t,"onChange"),0<t.length&&(n=new Ko("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Yr=null,qr=null;function Bx(e){Tp(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(Gn){var rc;if(Gn){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(Bx,t)}}function Hx(e,t,n){e==="focusin"?(Qd(),Yr=t,qr=n,Yr.attachEvent("onpropertychange",Zd)):e==="focusout"&&Qd()}function Vx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jo(qr)}function Yx(e,t){if(e==="click")return Jo(t)}function qx(e,t){if(e==="input"||e==="change")return Jo(t)}function Gx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:Gx;function Gr(e,t){if(qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var s=n[l];if(!dt.call(t,s)||!qt(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 n=Kd(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Kd(n)}}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 Fd(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 n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)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 $x=Gn&&"documentMode"in document&&11>=document.documentMode,ql=null,sc=null,$r=null,cc=!1;function Id(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cc||ql==null||ql!==Go(l)||(l=ql,"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,n),e.push({event:t,listeners:l}),t.target=ql)))}function ll(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Gl={animationend:ll("Animation","AnimationEnd"),animationiteration:ll("Animation","AnimationIteration"),animationstart:ll("Animation","AnimationStart"),transitionrun:ll("Transition","TransitionRun"),transitionstart:ll("Transition","TransitionStart"),transitioncancel:ll("Transition","TransitionCancel"),transitionend:ll("Transition","TransitionEnd")},uc={},Wd={};Gn&&(Wd=document.createElement("div").style,"AnimationEvent"in window||(delete Gl.animationend.animation,delete Gl.animationiteration.animation,delete Gl.animationstart.animation),"TransitionEvent"in window||delete Gl.transitionend.transition);function rl(e){if(uc[e])return uc[e];if(!Gl[e])return e;var t=Gl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wd)return uc[e]=t[n];return e}var em=rl("animationend"),tm=rl("animationiteration"),nm=rl("animationstart"),Xx=rl("transitionrun"),Qx=rl("transitionstart"),Zx=rl("transitioncancel"),am=rl("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 hn(e,t){lm.set(e,t),nl(t,[e])}var Fo=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)},tn=[],$l=0,dc=0;function Io(){for(var e=$l,t=dc=$l=0;t<e;){var n=tn[t];tn[t++]=null;var l=tn[t];tn[t++]=null;var s=tn[t];tn[t++]=null;var c=tn[t];if(tn[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(n,s,c)}}function Wo(e,t,n,l){tn[$l++]=e,tn[$l++]=t,tn[$l++]=n,tn[$l++]=l,dc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function mc(e,t,n,l){return Wo(e,t,n,l),ei(e)}function ol(e,t){return Wo(e,null,null,t),ei(e)}function rm(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var s=!1,c=e.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.childLanes|=n),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-wt(n),e=c.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=n|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 Xl={};function Kx(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gt(e,t,n,l){return new Kx(e,t,n,l)}function hc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $n(e,t){var n=e.alternate;return n===null?(n=Gt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function om(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ti(e,t,n,l,s,c){var g=0;if(l=e,typeof e=="function")hc(e)&&(g=1);else if(typeof e=="string")g=W1(e,n,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=Gt(31,n,t,s),e.elementType=le,e.lanes=c,e;case E:return il(n.children,s,c,t);case N:g=8,s|=24;break;case C:return e=Gt(12,n,t,s|2),e.elementType=C,e.lanes=c,e;case Z:return e=Gt(13,n,t,s),e.elementType=Z,e.lanes=c,e;case F:return e=Gt(19,n,t,s),e.elementType=F,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,n=Error(i(130,e===null?"null":typeof e,"")),l=null}return t=Gt(g,n,t,s),t.elementType=e,t.type=l,t.lanes=c,t}function il(e,t,n,l){return e=Gt(7,e,l,t),e.lanes=n,e}function pc(e,t,n){return e=Gt(6,e,null,t),e.lanes=n,e}function im(e){var t=Gt(18,null,null,0);return t.stateNode=e,t}function gc(e,t,n){return t=Gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var sm=new WeakMap;function nn(e,t){if(typeof e=="object"&&e!==null){var n=sm.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ja(t)},sm.set(e,t),t)}return{value:e,source:t,stack:Ja(t)}}var Ql=[],Zl=0,ni=null,Xr=0,an=[],ln=0,ga=null,Tn=1,Nn="";function Xn(e,t){Ql[Zl++]=Xr,Ql[Zl++]=ni,ni=e,Xr=t}function cm(e,t,n){an[ln++]=Tn,an[ln++]=Nn,an[ln++]=ga,ga=e;var l=Tn;e=Nn;var s=32-wt(l)-1;l&=~(1<<s),n+=1;var c=32-wt(t)+s;if(30<c){var g=s-s%5;c=(l&(1<<g)-1).toString(32),l>>=g,s-=g,Tn=1<<32-wt(t)+s|n<<s|l,Nn=c+e}else Tn=1<<c|n<<s|l,Nn=e}function vc(e){e.return!==null&&(Xn(e,1),cm(e,1,0))}function yc(e){for(;e===ni;)ni=Ql[--Zl],Ql[Zl]=null,Xr=Ql[--Zl],Ql[Zl]=null;for(;e===ga;)ga=an[--ln],an[ln]=null,Nn=an[--ln],an[ln]=null,Tn=an[--ln],an[ln]=null}function um(e,t){an[ln++]=Tn,an[ln++]=Nn,an[ln++]=ga,Tn=t.id,Nn=t.overflow,ga=e}var vt=null,Ze=null,je=!1,va=null,rn=!1,bc=Error(i(519));function ya(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qr(nn(t,e)),bc}function fm(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[gt]=e,t[jt]=l,n){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(n=0;n<po.length;n++)_e(po[n],t);break;case"source":_e("error",t);break;case"img":case"image":case"link":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"input":_e("invalid",t),Td(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":_e("invalid",t);break;case"textarea":_e("invalid",t),Cd(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Rp(t.textContent,n)?(l.popover!=null&&(_e("beforetoggle",t),_e("toggle",t)),l.onScroll!=null&&_e("scroll",t),l.onScrollEnd!=null&&_e("scrollend",t),l.onClick!=null&&(t.onclick=qn),t=!0):t=!1,t||ya(e,!0)}function dm(e){for(vt=e.return;vt;)switch(vt.tag){case 5:case 31:case 13:rn=!1;return;case 27:case 3:rn=!0;return;default:vt=vt.return}}function Kl(e){if(e!==vt)return!1;if(!je)return dm(e),je=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Uu(e.type,e.memoizedProps)),n=!n),n&&Ze&&ya(e),dm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ze=Up(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ze=Up(e)}else t===27?(t=Ze,Da(e.type)?(e=qu,qu=null,Ze=e):Ze=t):Ze=vt?sn(e.stateNode.nextSibling):null;return!0}function sl(){Ze=vt=null,je=!1}function xc(){var e=va;return e!==null&&(Bt===null?Bt=e:Bt.push.apply(Bt,e),va=null),e}function Qr(e){va===null?va=[e]:va.push(e)}var Sc=_(null),cl=null,Qn=null;function ba(e,t,n){X(Sc,t._currentValue),t._currentValue=n}function Zn(e){e._currentValue=Sc.current,G(Sc)}function wc(e,t,n){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===n)break;e=e.return}}function Ec(e,t,n,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|=n,S=c.alternate,S!==null&&(S.lanes|=n),wc(c.return,n,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|=n,c=g.alternate,c!==null&&(c.lanes|=n),wc(g,n,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 Pl(e,t,n,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;qt(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,n,l),t.flags|=262144}function ai(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ul(e){cl=e,Qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return mm(cl,e)}function li(e,t){return cl===null&&ul(e),mm(e,t)}function mm(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Qn===null){if(e===null)throw Error(i(308));Qn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Qn=Qn.next=t;return n}var Px=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Jx=a.unstable_scheduleCallback,Fx=a.unstable_NormalPriority,ot={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Tc(){return{controller:new Px,data:new Map,refCount:0}}function Zr(e){e.refCount--,e.refCount===0&&Jx(Fx,function(){e.controller.abort()})}var Kr=null,Nc=0,Jl=0,Fl=null;function Ix(e,t){if(Kr===null){var n=Kr=[];Nc=0,Jl=Ru(),Fl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Nc++,t.then(hm,hm),t}function hm(){if(--Nc===0&&Kr!==null){Fl!==null&&(Fl.status="fulfilled");var e=Kr;Kr=null,Jl=0,Fl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Wx(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),l}var pm=O.S;O.S=function(e,t){Ih=At(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ix(e,t),pm!==null&&pm(e,t)};var fl=_(null);function Cc(){var e=fl.current;return e!==null?e:Qe.pooledCache}function ri(e,t){t===null?X(fl,fl.current):X(fl,t.pool)}function gm(){var e=Cc();return e===null?null:{parent:ot._currentValue,pool:e}}var Il=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,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(qn,qn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,xm(e),e;default:if(typeof t.status=="string")t.then(qn,qn);else{if(e=Qe,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 ml=t,Il}}function dl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ml=n,Il):n}}var ml=null;function bm(){if(ml===null)throw Error(i(459));var e=ml;return ml=null,e}function xm(e){if(e===Il||e===oi)throw Error(i(483))}var Wl=null,Pr=0;function si(e){var t=Pr;return Pr+=1,Wl===null&&(Wl=[]),ym(Wl,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 n(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=$n(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=pc(k,z.mode,Q),M.return=z,M):(M=s(M,k),M.return=z,M)}function R(z,M,k,Q){var ve=k.type;return ve===E?$(z,M,k.props.children,Q,k.key):M!==null&&(M.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===V&&dl(ve)===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,ve){return M===null||M.tag!==7?(M=il(k,z.mode,Q,ve),M.return=z,M):(M=s(M,k),M.return=z,M)}function K(z,M,k){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=pc(""+M,z.mode,k),M.return=z,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case T:return k=ti(M.type,M.key,M.props,null,z.mode,k),Jr(k,M),k.return=z,k;case A:return M=gc(M,z.mode,k),M.return=z,M;case V:return M=dl(M),K(z,M,k)}if(ue(M)||fe(M))return M=il(M,z.mode,k,null),M.return=z,M;if(typeof M.then=="function")return K(z,si(M),k);if(M.$$typeof===D)return K(z,li(z,M),k);ci(z,M)}return null}function U(z,M,k,Q){var ve=M!==null?M.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return ve!==null?null:S(z,M,""+k,Q);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case T:return k.key===ve?R(z,M,k,Q):null;case A:return k.key===ve?L(z,M,k,Q):null;case V:return k=dl(k),U(z,M,k,Q)}if(ue(k)||fe(k))return ve!==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,ve){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return z=z.get(k)||null,S(M,z,""+Q,ve);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case T:return z=z.get(Q.key===null?k:Q.key)||null,R(M,z,Q,ve);case A:return z=z.get(Q.key===null?k:Q.key)||null,L(M,z,Q,ve);case V:return Q=dl(Q),H(z,M,k,Q,ve)}if(ue(Q)||fe(Q))return z=z.get(k)||null,$(M,z,Q,ve,null);if(typeof Q.then=="function")return H(z,M,k,si(Q),ve);if(Q.$$typeof===D)return H(z,M,k,li(M,Q),ve);ci(M,Q)}return null}function oe(z,M,k,Q){for(var ve=null,Le=null,de=M,Te=M=0,Me=null;de!==null&&Te<k.length;Te++){de.index>Te?(Me=de,de=null):Me=de.sibling;var Ue=U(z,de,k[Te],Q);if(Ue===null){de===null&&(de=Me);break}e&&de&&Ue.alternate===null&&t(z,de),M=c(Ue,M,Te),Le===null?ve=Ue:Le.sibling=Ue,Le=Ue,de=Me}if(Te===k.length)return n(z,de),je&&Xn(z,Te),ve;if(de===null){for(;Te<k.length;Te++)de=K(z,k[Te],Q),de!==null&&(M=c(de,M,Te),Le===null?ve=de:Le.sibling=de,Le=de);return je&&Xn(z,Te),ve}for(de=l(de);Te<k.length;Te++)Me=H(de,z,Te,k[Te],Q),Me!==null&&(e&&Me.alternate!==null&&de.delete(Me.key===null?Te:Me.key),M=c(Me,M,Te),Le===null?ve=Me:Le.sibling=Me,Le=Me);return e&&de.forEach(function(Ua){return t(z,Ua)}),je&&Xn(z,Te),ve}function ye(z,M,k,Q){if(k==null)throw Error(i(151));for(var ve=null,Le=null,de=M,Te=M=0,Me=null,Ue=k.next();de!==null&&!Ue.done;Te++,Ue=k.next()){de.index>Te?(Me=de,de=null):Me=de.sibling;var Ua=U(z,de,Ue.value,Q);if(Ua===null){de===null&&(de=Me);break}e&&de&&Ua.alternate===null&&t(z,de),M=c(Ua,M,Te),Le===null?ve=Ua:Le.sibling=Ua,Le=Ua,de=Me}if(Ue.done)return n(z,de),je&&Xn(z,Te),ve;if(de===null){for(;!Ue.done;Te++,Ue=k.next())Ue=K(z,Ue.value,Q),Ue!==null&&(M=c(Ue,M,Te),Le===null?ve=Ue:Le.sibling=Ue,Le=Ue);return je&&Xn(z,Te),ve}for(de=l(de);!Ue.done;Te++,Ue=k.next())Ue=H(de,z,Te,Ue.value,Q),Ue!==null&&(e&&Ue.alternate!==null&&de.delete(Ue.key===null?Te:Ue.key),M=c(Ue,M,Te),Le===null?ve=Ue:Le.sibling=Ue,Le=Ue);return e&&de.forEach(function(uS){return t(z,uS)}),je&&Xn(z,Te),ve}function $e(z,M,k,Q){if(typeof k=="object"&&k!==null&&k.type===E&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case T:e:{for(var ve=k.key;M!==null;){if(M.key===ve){if(ve=k.type,ve===E){if(M.tag===7){n(z,M.sibling),Q=s(M,k.props.children),Q.return=z,z=Q;break e}}else if(M.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===V&&dl(ve)===M.type){n(z,M.sibling),Q=s(M,k.props),Jr(Q,k),Q.return=z,z=Q;break e}n(z,M);break}else t(z,M);M=M.sibling}k.type===E?(Q=il(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 A:e:{for(ve=k.key;M!==null;){if(M.key===ve)if(M.tag===4&&M.stateNode.containerInfo===k.containerInfo&&M.stateNode.implementation===k.implementation){n(z,M.sibling),Q=s(M,k.children||[]),Q.return=z,z=Q;break e}else{n(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=dl(k),$e(z,M,k,Q)}if(ue(k))return oe(z,M,k,Q);if(fe(k)){if(ve=fe(k),typeof ve!="function")throw Error(i(150));return k=ve.call(k),ye(z,M,k,Q)}if(typeof k.then=="function")return $e(z,M,si(k),Q);if(k.$$typeof===D)return $e(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?(n(z,M.sibling),Q=s(M,k),Q.return=z,z=Q):(n(z,M),Q=pc(k,z.mode,Q),Q.return=z,z=Q),g(z)):n(z,M)}return function(z,M,k,Q){try{Pr=0;var ve=$e(z,M,k,Q);return Wl=null,ve}catch(de){if(de===Il||de===oi)throw de;var Le=Gt(29,de,null,z.mode);return Le.lanes=Q,Le.return=z,Le}finally{}}}var hl=Sm(!0),wm=Sm(!1),xa=!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 Sa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wa(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(He&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,n),t}return Wo(e,l,t,n),ei(e)}function Fr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Mt(e,n)}}function Oc(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?s=c=g:c=c.next=g,n=n.next}while(n!==null);c===null?s=c=t:c=c.next=t}else s=c=t;n={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Mc=!1;function Ir(){if(Mc){var e=Fl;if(e!==null)throw e}}function Wr(e,t,n,l){Mc=!1;var s=e.updateQueue;xa=!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 K=s.baseState;g=0,$=L=R=null,S=c;do{var U=S.lane&-536870913,H=U!==S.lane;if(H?(Oe&U)===U:(l&U)===U){U!==0&&U===Jl&&(Mc=!0),$!==null&&($=$.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var oe=e,ye=S;U=t;var $e=n;switch(ye.tag){case 1:if(oe=ye.payload,typeof oe=="function"){K=oe.call($e,K,U);break e}K=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=ye.payload,U=typeof oe=="function"?oe.call($e,K,U):oe,U==null)break e;K=m({},K,U);break e;case 2:xa=!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=K):$=$.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=K),s.baseState=R,s.firstBaseUpdate=L,s.lastBaseUpdate=$,c===null&&(s.shared.lanes=0),Aa|=g,e.lanes=g,e.memoizedState=K}}function Em(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Tm(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Em(n[e],t)}var er=_(null),ui=_(0);function Nm(e,t){e=na,X(ui,e),X(er,t),na=e|t.baseLanes}function Dc(){X(ui,na),X(er,er.current)}function jc(){na=ui.current,G(er),G(ui)}var $t=_(null),on=null;function Ea(e){var t=e.alternate;X(lt,lt.current&1),X($t,e),on===null&&(t===null||er.current!==null||t.memoizedState!==null)&&(on=e)}function zc(e){X(lt,lt.current),X($t,e),on===null&&(on=e)}function Cm(e){e.tag===22?(X(lt,lt.current),X($t,e),on===null&&(on=e)):Ta()}function Ta(){X(lt,lt.current),X($t,$t.current)}function Xt(e){G($t),on===e&&(on=null),G(lt)}var lt=_(0);function fi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Vu(n)||Yu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==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 Kn=0,Ee=null,qe=null,it=null,di=!1,tr=!1,pl=!1,mi=0,eo=0,nr=null,e1=0;function nt(){throw Error(i(321))}function kc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qt(e[n],t[n]))return!1;return!0}function Lc(e,t,n,l,s,c){return Kn=c,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?ch:Fc,pl=!1,c=n(l,s),pl=!1,tr&&(c=Rm(t,n,l,s)),Am(e),c}function Am(e){O.H=ao;var t=qe!==null&&qe.next!==null;if(Kn=0,it=qe=Ee=null,di=!1,eo=0,nr=null,t)throw Error(i(300));e===null||st||(e=e.dependencies,e!==null&&ai(e)&&(st=!0))}function Rm(e,t,n,l){Ee=e;var s=0;do{if(tr&&(nr=null),eo=0,tr=!1,25<=s)throw Error(i(301));if(s+=1,it=qe=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=uh,c=t(n,l)}while(tr);return c}function t1(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?to(t):t,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(Ee.flags|=1024),t}function Uc(){var e=mi!==0;return mi=0,e}function Bc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}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}Kn=0,it=qe=Ee=null,tr=!1,eo=mi=0,nr=null}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?Ee.memoizedState=it=e:it=it.next=e,it}function rt(){if(qe===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=it===null?Ee.memoizedState:it.next;if(t!==null)it=t,qe=e;else{if(e===null)throw Ee.alternate===null?Error(i(467)):Error(i(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},it===null?Ee.memoizedState=it=e:it=it.next=e}return it}function hi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function to(e){var t=eo;return eo+=1,nr===null&&(nr=[]),e=ym(nr,e,t),t=Ee,(it===null?t.memoizedState:it.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?ch:Fc),e}function pi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return to(e);if(e.$$typeof===D)return yt(e)}throw Error(i(438,String(e)))}function Vc(e){var t=null,n=Ee.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Ee.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}),n===null&&(n=hi(),Ee.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=he;return t.index++,n}function Pn(e,t){return typeof t=="function"?t(e):t}function gi(e){var t=rt();return Yc(t,qe,e)}function Yc(e,t,n){var l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=n;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 K=L.lane&-536870913;if(K!==L.lane?(Oe&K)===K:(Kn&K)===K){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}),K===Jl&&($=!0);else if((Kn&U)===U){L=L.next,U===Jl&&($=!0);continue}else K={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},R===null?(S=R=K,g=c):R=R.next=K,Ee.lanes|=U,Aa|=U;K=L.action,pl&&n(c,K),c=L.hasEagerState?L.eagerState:n(c,K)}else U={lane:K,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,Ee.lanes|=K,Aa|=K;L=L.next}while(L!==null&&L!==t);if(R===null?g=c:R.next=S,!qt(c,e.memoizedState)&&(st=!0,$&&(n=Fl,n!==null)))throw n;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=rt(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var l=n.dispatch,s=n.pending,c=t.memoizedState;if(s!==null){n.pending=null;var g=s=s.next;do c=e(c,g.action),g=g.next;while(g!==s);qt(c,t.memoizedState)||(st=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,l]}function _m(e,t,n){var l=Ee,s=rt(),c=je;if(c){if(n===void 0)throw Error(i(407));n=n()}else n=t();var g=!qt((qe||s).memoizedState,n);if(g&&(s.memoizedState=n,st=!0),s=s.queue,Xc(Dm.bind(null,l,s,e),[e]),s.getSnapshot!==t||g||it!==null&&it.memoizedState.tag&1){if(l.flags|=2048,ar(9,{destroy:void 0},Mm.bind(null,l,s,n,t),null),Qe===null)throw Error(i(349));c||(Kn&127)!==0||Om(l,t,n)}return n}function Om(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ee.updateQueue,t===null?(t=hi(),Ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Mm(e,t,n,l){t.value=n,t.getSnapshot=l,jm(t)&&zm(e)}function Dm(e,t,n){return n(function(){jm(t)&&zm(e)})}function jm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qt(e,n)}catch{return!0}}function zm(e){var t=ol(e,2);t!==null&&Ht(t,e,2)}function Gc(e){var t=_t();if(typeof e=="function"){var n=e;if(e=n(),pl){dn(!0);try{n()}finally{dn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:e},t}function km(e,t,n,l){return e.baseState=n,Yc(e,qe,typeof l=="function"?l:Pn)}function n1(e,t,n,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?n(!0):c.isTransition=!1,l(c),n=t.pending,n===null?(c.next=t.pending=c,Lm(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Lm(e,t){var n=t.action,l=t.payload,s=e.state;if(t.isTransition){var c=O.T,g={};O.T=g;try{var S=n(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=n(s,l),Um(e,t,c)}catch(L){$c(e,t,L)}}function Um(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Bm(e,t,l)},function(l){return $c(e,t,l)}):Bm(e,t,n)}function Bm(e,t,n){t.status="fulfilled",t.value=n,Hm(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Lm(e,n)))}function $c(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,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 n=Qe.formState;if(n!==null){e:{var l=Ee;if(je){if(Ze){t:{for(var s=Ze,c=rn;s.nodeType!==8;){if(!c){s=null;break t}if(s=sn(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){Ze=sn(s.nextSibling),l=s.data==="F!";break e}}ya(l)}l=!1}l&&(t=n[0])}}return n=_t(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vm,lastRenderedState:t},n.queue=l,n=oh.bind(null,Ee,l),l.dispatch=n,l=Gc(!1),c=Jc.bind(null,Ee,!1,l.queue),l=_t(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,n=n1.bind(null,Ee,s,c,n),s.dispatch=n,l.memoizedState=e,[t,n,!1]}function qm(e){var t=rt();return Gm(t,qe,e)}function Gm(e,t,n){if(t=Yc(e,t,Vm)[0],e=gi(Pn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=to(t)}catch(g){throw g===Il?oi:g}else l=t;t=rt();var s=t.queue,c=s.dispatch;return n!==t.memoizedState&&(Ee.flags|=2048,ar(9,{destroy:void 0},a1.bind(null,s,n),null)),[l,c,e]}function a1(e,t){e.action=t}function $m(e){var t=rt(),n=qe;if(n!==null)return Gm(t,n,e);rt(),t=t.memoizedState,n=rt();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function ar(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Ee.updateQueue,t===null&&(t=hi(),Ee.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Xm(){return rt().memoizedState}function vi(e,t,n,l){var s=_t();Ee.flags|=e,s.memoizedState=ar(1|t,{destroy:void 0},n,l===void 0?null:l)}function yi(e,t,n,l){var s=rt();l=l===void 0?null:l;var c=s.memoizedState.inst;qe!==null&&l!==null&&kc(l,qe.memoizedState.deps)?s.memoizedState=ar(t,c,n,l):(Ee.flags|=e,s.memoizedState=ar(1|t,c,n,l))}function Qm(e,t){vi(8390656,8,e,t)}function Xc(e,t){yi(2048,8,e,t)}function l1(e){Ee.flags|=4;var t=Ee.updateQueue;if(t===null)t=hi(),Ee.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Zm(e){var t=rt().memoizedState;return l1({ref:t,nextImpl:e}),function(){if((He&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 n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Fm(e,t,n){n=n!=null?n.concat([e]):null,yi(4,4,Jm.bind(null,t,e),n)}function Qc(){}function Im(e,t){var n=rt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&kc(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Wm(e,t){var n=rt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&kc(t,l[1]))return l[0];if(l=e(),pl){dn(!0);try{e()}finally{dn(!1)}}return n.memoizedState=[l,t],l}function Zc(e,t,n){return n===void 0||(Kn&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ep(),Ee.lanes|=e,Aa|=e,n)}function eh(e,t,n,l){return qt(n,t)?n:er.current!==null?(e=Zc(e,n,l),qt(e,t)||(st=!0),e):(Kn&42)===0||(Kn&1073741824)!==0&&(Oe&261930)===0?(st=!0,e.memoizedState=n):(e=ep(),Ee.lanes|=e,Aa|=e,t)}function th(e,t,n,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,n);try{var R=s(),L=O.S;if(L!==null&&L(S,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var $=Wx(R,l);no(e,t,$,Kt(e))}else no(e,t,l,Kt(e))}catch(K){no(e,t,{then:function(){},status:"rejected",reason:K},Kt())}finally{Y.p=c,g!==null&&S.types!==null&&(g.types=S.types),O.T=g}}function r1(){}function Kc(e,t,n,l){if(e.tag!==5)throw Error(i(476));var s=nh(e).queue;th(e,s,t,J,n===null?r1:function(){return ah(e),n(l)})}function nh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:J},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ah(e){var t=nh(e);t.next===null&&(t=e.alternate.memoizedState),no(e,t.next.queue,{},Kt())}function Pc(){return yt(xo)}function lh(){return rt().memoizedState}function rh(){return rt().memoizedState}function o1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Kt();e=Sa(n);var l=wa(t,e,n);l!==null&&(Ht(l,t,n),Fr(l,t,n)),t={cache:Tc()},e.payload=t;return}t=t.return}}function i1(e,t,n){var l=Kt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},bi(e)?ih(t,n):(n=mc(e,t,n,l),n!==null&&(Ht(n,e,l),sh(n,t,l)))}function oh(e,t,n){var l=Kt();no(e,t,n,l)}function no(e,t,n,l){var s={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(bi(e))ih(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,n);if(s.hasEagerState=!0,s.eagerState=S,qt(S,g))return Wo(e,t,s,0),Qe===null&&Io(),!1}catch{}finally{}if(n=mc(e,t,s,l),n!==null)return Ht(n,e,l),sh(n,t,l),!0}return!1}function Jc(e,t,n,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,n,l,2),t!==null&&Ht(t,e,2)}function bi(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function ih(e,t){tr=di=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Mt(e,n)}}var ao={readContext:yt,use:pi,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};ao.useEffectEvent=nt;var ch={readContext:yt,use:pi,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:Qm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,vi(4194308,4,Jm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vi(4194308,4,e,t)},useInsertionEffect:function(e,t){vi(4,2,e,t)},useMemo:function(e,t){var n=_t();t=t===void 0?null:t;var l=e();if(pl){dn(!0);try{e()}finally{dn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=_t();if(n!==void 0){var s=n(t);if(pl){dn(!0);try{n(t)}finally{dn(!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=i1.bind(null,Ee,e),[l.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:function(e){e=Gc(e);var t=e.queue,n=oh.bind(null,Ee,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Qc,useDeferredValue:function(e,t){var n=_t();return Zc(n,e,t)},useTransition:function(){var e=Gc(!1);return e=th.bind(null,Ee,e.queue,!0,!1),_t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Ee,s=_t();if(je){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Qe===null)throw Error(i(349));(Oe&127)!==0||Om(l,t,n)}s.memoizedState=n;var c={value:n,getSnapshot:t};return s.queue=c,Qm(Dm.bind(null,l,c,e),[e]),l.flags|=2048,ar(9,{destroy:void 0},Mm.bind(null,l,c,n,t),null),n},useId:function(){var e=_t(),t=Qe.identifierPrefix;if(je){var n=Nn,l=Tn;n=(l&~(1<<32-wt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=mi++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=e1++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Pc,useFormState:Ym,useActionState:Ym,useOptimistic:function(e){var t=_t();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Jc.bind(null,Ee,!0,n),n.dispatch=t,[e,t]},useMemoCache:Vc,useCacheRefresh:function(){return _t().memoizedState=o1.bind(null,Ee)},useEffectEvent:function(e){var t=_t(),n={impl:e};return t.memoizedState=n,function(){if((He&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Fc={readContext:yt,use:pi,useCallback:Im,useContext:yt,useEffect:Xc,useImperativeHandle:Fm,useInsertionEffect:Km,useLayoutEffect:Pm,useMemo:Wm,useReducer:gi,useRef:Xm,useState:function(){return gi(Pn)},useDebugValue:Qc,useDeferredValue:function(e,t){var n=rt();return eh(n,qe.memoizedState,e,t)},useTransition:function(){var e=gi(Pn)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:to(e),t]},useSyncExternalStore:_m,useId:lh,useHostTransitionStatus:Pc,useFormState:qm,useActionState:qm,useOptimistic:function(e,t){var n=rt();return km(n,qe,e,t)},useMemoCache:Vc,useCacheRefresh:rh};Fc.useEffectEvent=Zm;var uh={readContext:yt,use:pi,useCallback:Im,useContext:yt,useEffect:Xc,useImperativeHandle:Fm,useInsertionEffect:Km,useLayoutEffect:Pm,useMemo:Wm,useReducer:qc,useRef:Xm,useState:function(){return qc(Pn)},useDebugValue:Qc,useDeferredValue:function(e,t){var n=rt();return qe===null?Zc(n,e,t):eh(n,qe.memoizedState,e,t)},useTransition:function(){var e=qc(Pn)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:to(e),t]},useSyncExternalStore:_m,useId:lh,useHostTransitionStatus:Pc,useFormState:$m,useActionState:$m,useOptimistic:function(e,t){var n=rt();return qe!==null?km(n,qe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Vc,useCacheRefresh:rh};uh.useEffectEvent=Zm;function Ic(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wc={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Kt(),s=Sa(l);s.payload=t,n!=null&&(s.callback=n),t=wa(e,s,l),t!==null&&(Ht(t,e,l),Fr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Kt(),s=Sa(l);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=wa(e,s,l),t!==null&&(Ht(t,e,l),Fr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Kt(),l=Sa(n);l.tag=2,t!=null&&(l.callback=t),t=wa(e,l,n),t!==null&&(Ht(t,e,n),Fr(t,e,n))}};function fh(e,t,n,l,s,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,g):t.prototype&&t.prototype.isPureReactComponent?!Gr(n,l)||!Gr(s,c):!0}function dh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Wc.enqueueReplaceState(t,t.state,null)}function gl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=m({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function mh(e){Fo(e)}function hh(e){console.error(e)}function ph(e){Fo(e)}function xi(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function gh(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function eu(e,t,n){return n=Sa(n),n.tag=3,n.payload={element:null},n.callback=function(){xi(e,t)},n}function vh(e){return e=Sa(e),e.tag=3,e}function yh(e,t,n,l){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var c=l.value;e.payload=function(){return s(c)},e.callback=function(){gh(t,n,l)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){gh(t,n,l),typeof s!="function"&&(Ra===null?Ra=new Set([this]):Ra.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function s1(e,t,n,l,s){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Pl(t,n,s,!0),n=$t.current,n!==null){switch(n.tag){case 31:case 13:return on===null?Di():n.alternate===null&&at===0&&(at=3),n.flags&=-257,n.flags|=65536,n.lanes=s,l===ii?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Nu(e,l,s)),!1;case 22:return n.flags|=65536,l===ii?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Nu(e,l,s)),!1}throw Error(i(435,n.tag))}return Nu(e,l,s),Di(),!1}if(je)return t=$t.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(nn(e,n)))):(l!==bc&&(t=Error(i(423),{cause:l}),Qr(nn(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=nn(l,n),s=eu(e.stateNode,l,s),Oc(e,s),at!==4&&(at=2)),!1;var c=Error(i(520),{cause:l});if(c=nn(c,n),fo===null?fo=[c]:fo.push(c),at!==4&&(at=2),t===null)return!0;l=nn(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=eu(n.stateNode,l,e),Oc(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ra===null||!Ra.has(c))))return n.flags|=65536,s&=-s,n.lanes|=s,s=vh(s),yh(s,e,n,l),Oc(n,s),!1}n=n.return}while(n!==null);return!1}var tu=Error(i(461)),st=!1;function bt(e,t,n,l){t.child=e===null?wm(t,null,n,l):hl(t,e.child,n,l)}function bh(e,t,n,l,s){n=n.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 ul(t),l=Lc(e,t,n,g,c,s),S=Uc(),e!==null&&!st?(Bc(e,t,s),Jn(e,t,s)):(je&&S&&vc(t),t.flags|=1,bt(e,t,l,s),t.child)}function xh(e,t,n,l,s){if(e===null){var c=n.type;return typeof c=="function"&&!hc(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Sh(e,t,c,l,s)):(e=ti(n.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(n=n.compare,n=n!==null?n:Gr,n(g,l)&&e.ref===t.ref)return Jn(e,t,s)}return t.flags|=1,e=$n(c,l),e.ref=t.ref,e.return=t,t.child=e}function Sh(e,t,n,l,s){if(e!==null){var c=e.memoizedProps;if(Gr(c,l)&&e.ref===t.ref)if(st=!1,t.pendingProps=l=c,cu(e,s))(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,Jn(e,t,s)}return nu(e,t,n,l,s)}function wh(e,t,n,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|n:n,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 Eh(e,t,c,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ri(t,c!==null?c.cachePool:null),c!==null?Nm(t,c):Dc(),Cm(t);else return l=t.lanes=536870912,Eh(e,t,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(ri(t,c.cachePool),Nm(t,c),Ta(),t.memoizedState=null):(e!==null&&ri(t,null),Dc(),Ta());return bt(e,t,s,n),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 Eh(e,t,n,l,s){var c=Cc();return c=c===null?null:{parent:ot._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&ri(t,null),Dc(),Cm(t),e!==null&&Pl(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 Th(e,t,n){return hl(t,e.child,null,n),e=Si(t,t.pendingProps),e.flags|=2,Xt(t),t.memoizedState=null,e}function c1(e,t,n){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=Ze)?(e=Lp(e,rn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ga!==null?{id:Tn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},n=im(e),n.return=t,t.child=n,vt=t,Ze=null)):e=null,e===null)throw ya(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=Th(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(st||Pl(e,t,n,!1),s=(n&e.childLanes)!==0,st||s){if(l=Qe,l!==null&&(g=Dt(l,n),g!==0&&g!==c.retryLane))throw c.retryLane=g,ol(e,g),Ht(l,e,g),tu;Di(),t=Th(e,t,n)}else e=c.treeContext,Ze=sn(g.nextSibling),vt=t,je=!0,va=null,rn=!1,e!==null&&um(t,e),t=Si(t,l),t.flags|=4096;return t}return e=$n(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function wi(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function nu(e,t,n,l,s){return ul(t),n=Lc(e,t,n,l,void 0,s),l=Uc(),e!==null&&!st?(Bc(e,t,s),Jn(e,t,s)):(je&&l&&vc(t),t.flags|=1,bt(e,t,n,s),t.child)}function Nh(e,t,n,l,s,c){return ul(t),t.updateQueue=null,n=Rm(t,l,n,s),Am(e),l=Uc(),e!==null&&!st?(Bc(e,t,c),Jn(e,t,c)):(je&&l&&vc(t),t.flags|=1,bt(e,t,n,c),t.child)}function Ch(e,t,n,l,s){if(ul(t),t.stateNode===null){var c=Xl,g=n.contextType;typeof g=="object"&&g!==null&&(c=yt(g)),c=new n(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=n.contextType,c.context=typeof g=="object"&&g!==null?yt(g):Xl,c.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(Ic(t,n,g,l),c.state=t.memoizedState),typeof n.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),Ir(),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=gl(n,S);c.props=R;var L=c.context,$=n.contextType;g=Xl,typeof $=="object"&&$!==null&&(g=yt($));var K=n.getDerivedStateFromProps;$=typeof K=="function"||typeof c.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,$||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(S||L!==g)&&dh(t,c,l,g),xa=!1;var U=t.memoizedState;c.state=U,Wr(t,l,c,s),Ir(),L=t.memoizedState,S||U!==L||xa?(typeof K=="function"&&(Ic(t,n,K,l),L=t.memoizedState),(R=xa||fh(t,n,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,$=gl(n,g),c.props=$,K=t.pendingProps,U=c.context,L=n.contextType,R=Xl,typeof L=="object"&&L!==null&&(R=yt(L)),S=n.getDerivedStateFromProps,(L=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==K||U!==R)&&dh(t,c,l,R),xa=!1,U=t.memoizedState,c.state=U,Wr(t,l,c,s),Ir();var H=t.memoizedState;g!==K||U!==H||xa||e!==null&&e.dependencies!==null&&ai(e.dependencies)?(typeof S=="function"&&(Ic(t,n,S,l),H=t.memoizedState),($=xa||fh(t,n,$,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,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=hl(t,e.child,null,s),t.child=hl(t,null,n,s)):bt(e,t,n,s),t.memoizedState=c.state,e=t.child):e=Jn(e,t,s),e}function Ah(e,t,n,l){return sl(),t.flags|=256,bt(e,t,n,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,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function Rh(e,t,n){var l=t.pendingProps,s=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:(lt.current&2)!==0),g&&(s=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(s?Ea(t):Ta(),(e=Ze)?(e=Lp(e,rn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ga!==null?{id:Tn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},n=im(e),n.return=t,t.child=n,vt=t,Ze=null)):e=null,e===null)throw ya(t);return Yu(e)?t.lanes=32:t.lanes=536870912,null}var S=l.children;return l=l.fallback,s?(Ta(),s=t.mode,S=Ei({mode:"hidden",children:S},s),l=il(l,s,n,null),S.return=t,l.return=t,S.sibling=l,t.child=S,l=t.child,l.memoizedState=lu(n),l.childLanes=ru(e,g,n),t.memoizedState=au,lo(null,l)):(Ea(t),ou(t,S))}var R=e.memoizedState;if(R!==null&&(S=R.dehydrated,S!==null)){if(c)t.flags&256?(Ea(t),t.flags&=-257,t=iu(e,t,n)):t.memoizedState!==null?(Ta(),t.child=e.child,t.flags|=128,t=null):(Ta(),S=l.fallback,s=t.mode,l=Ei({mode:"visible",children:l.children},s),S=il(S,s,n,null),S.flags|=2,l.return=t,S.return=t,l.sibling=S,t.child=l,hl(t,e.child,null,n),l=t.child,l.memoizedState=lu(n),l.childLanes=ru(e,g,n),t.memoizedState=au,t=lo(null,l));else if(Ea(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,n)}else if(st||Pl(e,t,n,!1),g=(n&e.childLanes)!==0,st||g){if(g=Qe,g!==null&&(l=Dt(g,n),l!==0&&l!==R.retryLane))throw R.retryLane=l,ol(e,l),Ht(g,e,l),tu;Vu(S)||Di(),t=iu(e,t,n)}else Vu(S)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,Ze=sn(S.nextSibling),vt=t,je=!0,va=null,rn=!1,e!==null&&um(t,e),t=ou(t,l.children),t.flags|=4096);return t}return s?(Ta(),S=l.fallback,s=t.mode,R=e.child,L=R.sibling,l=$n(R,{mode:"hidden",children:l.children}),l.subtreeFlags=R.subtreeFlags&65011712,L!==null?S=$n(L,S):(S=il(S,s,n,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(n):(s=S.cachePool,s!==null?(R=ot._currentValue,s=s.parent!==R?{parent:R,pool:R}:s):s=gm(),S={baseLanes:S.baseLanes|n,cachePool:s}),l.memoizedState=S,l.childLanes=ru(e,g,n),t.memoizedState=au,lo(e.child,l)):(Ea(t),n=e.child,e=n.sibling,n=$n(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=n,t.memoizedState=null,n)}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=Gt(22,e,null,t),e.lanes=0,e}function iu(e,t,n){return hl(t,e.child,null,n),e=ou(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _h(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),wc(e.return,t,n)}function su(e,t,n,l,s,c){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s,treeForkCount:c}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=n,g.tailMode=s,g.treeForkCount=c)}function Oh(e,t,n){var l=t.pendingProps,s=l.revealOrder,c=l.tail;l=l.children;var g=lt.current,S=(g&2)!==0;if(S?(g=g&1|2,t.flags|=128):g&=1,X(lt,g),bt(e,t,l,n),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&&_h(e,n,t);else if(e.tag===19)_h(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&fi(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),su(t,!1,s,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=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=n,n=s,s=e}su(t,!0,n,null,c,l);break;case"together":su(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Jn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Aa|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Pl(e,t,n,!1),(n&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,n=$n(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$n(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ai(e)))}function u1(e,t,n){switch(t.tag){case 3:ae(t,t.stateNode.containerInfo),ba(t,ot,e.memoizedState.cache),sl();break;case 27:case 5:Ce(t);break;case 4:ae(t,t.stateNode.containerInfo);break;case 10:ba(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?(Ea(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Rh(e,t,n):(Ea(t),e=Jn(e,t,n),e!==null?e.sibling:null);Ea(t);break;case 19:var s=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Pl(e,t,n,!1),l=(n&t.childLanes)!==0),s){if(l)return Oh(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),X(lt,lt.current),l)break;return null;case 22:return t.lanes=0,wh(e,t,n,t.pendingProps);case 24:ba(t,ot,e.memoizedState.cache)}return Jn(e,t,n)}function Mh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)st=!0;else{if(!cu(e,n)&&(t.flags&128)===0)return st=!1,u1(e,t,n);st=(e.flags&131072)!==0}else st=!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=dl(t.elementType),t.type=e,typeof e=="function")hc(e)?(l=gl(e,l),t.tag=1,t=Ch(null,t,e,l,n)):(t.tag=0,t=nu(null,t,e,l,n));else{if(e!=null){var s=e.$$typeof;if(s===B){t.tag=11,t=bh(null,t,e,l,n);break e}else if(s===q){t.tag=14,t=xh(null,t,e,l,n);break e}}throw t=ge(e)||e,Error(i(306,t,""))}}return t;case 0:return nu(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,s=gl(l,t.pendingProps),Ch(e,t,l,s,n);case 3:e:{if(ae(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,n);var g=t.memoizedState;if(l=g.cache,ba(t,ot,l),l!==c.cache&&Ec(t,[ot],n,!0),Ir(),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=Ah(e,t,l,n);break e}else if(l!==s){s=nn(Error(i(424)),t),Qr(s),t=Ah(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ze=sn(e.firstChild),vt=t,je=!0,va=null,rn=!0,n=wm(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(sl(),l===s){t=Jn(e,t,n);break e}bt(e,t,l,n)}t=t.child}return t;case 26:return wi(e,t),e===null?(n=qp(t.type,null,t.pendingProps,null))?t.memoizedState=n:je||(n=t.type,e=t.pendingProps,l=Hi(ne.current).createElement(n),l[gt]=t,l[jt]=e,xt(l,n,e),ht(l),t.stateNode=l):t.memoizedState=qp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ce(t),e===null&&je&&(l=t.stateNode=Hp(t.type,t.pendingProps,ne.current),vt=t,rn=!0,s=Ze,Da(t.type)?(qu=s,Ze=sn(l.firstChild)):Ze=s),bt(e,t,t.pendingProps.children,n),wi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((s=l=Ze)&&(l=V1(l,t.type,t.pendingProps,rn),l!==null?(t.stateNode=l,vt=t,Ze=sn(l.firstChild),rn=!1,s=!0):s=!1),s||ya(t)),Ce(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,t1,null,null,n),xo._currentValue=s),wi(e,t),bt(e,t,l,n),t.child;case 6:return e===null&&je&&((e=n=Ze)&&(n=Y1(n,t.pendingProps,rn),n!==null?(t.stateNode=n,vt=t,Ze=null,e=!0):e=!1),e||ya(t)),null;case 13:return Rh(e,t,n);case 4:return ae(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=hl(t,null,l,n):bt(e,t,l,n),t.child;case 11:return bh(e,t,t.type,t.pendingProps,n);case 7:return bt(e,t,t.pendingProps,n),t.child;case 8:return bt(e,t,t.pendingProps.children,n),t.child;case 12:return bt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,ba(t,t.type,l.value),bt(e,t,l.children,n),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,ul(t),s=yt(s),l=l(s),t.flags|=1,bt(e,t,l,n),t.child;case 14:return xh(e,t,t.type,t.pendingProps,n);case 15:return Sh(e,t,t.type,t.pendingProps,n);case 19:return Oh(e,t,n);case 31:return c1(e,t,n);case 22:return wh(e,t,n,t.pendingProps);case 24:return ul(t),l=yt(ot),e===null?(s=Cc(),s===null&&(s=Qe,c=Tc(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=n),s=c),t.memoizedState={parent:l,cache:s},Rc(t),ba(t,ot,s)):((e.lanes&n)!==0&&(_c(e,t),Wr(t,null,null,n),Ir()),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),ba(t,ot,l)):(l=c.cache,ba(t,ot,l),l!==s.cache&&Ec(t,[ot],n,!0))),bt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Fn(e){e.flags|=4}function uu(e,t,n,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(lp())e.flags|=8192;else throw ml=ii,Ac}else e.flags&=-16777217}function Dh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Zp(t))if(lp())e.flags|=8192;else throw ml=ii,Ac}function Ti(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Et():536870912,e.lanes|=t,ir|=t)}function ro(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var s=e.child;s!==null;)n|=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;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function f1(e,t,n){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 Ke(t),null;case 1:return Ke(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Zn(ot),ie(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Kl(t)?Fn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xc())),Ke(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(Fn(t),c!==null?(Ke(t),Dh(t,c)):(Ke(t),uu(t,s,null,l,n))):c?c!==e.memoizedState?(Fn(t),Ke(t),Dh(t,c)):(Ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Fn(t),Ke(t),uu(t,s,e,l,n)),null;case 27:if(we(t),n=ne.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Fn(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Ke(t),null}e=W.current,Kl(t)?fm(t):(e=Hp(s,l,n),t.stateNode=e,Fn(t))}return Ke(t),null;case 5:if(we(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Fn(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Ke(t),null}if(c=W.current,Kl(t))fm(t);else{var g=Hi(ne.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[gt]=t,c[jt]=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(xt(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&&Fn(t)}}return Ke(t),uu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Fn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(i(166));if(e=ne.current,Kl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,s=vt,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[gt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Rp(e.nodeValue,n)),e||ya(t,!0)}else e=Hi(e).createTextNode(l),e[gt]=t,t.stateNode=e}return Ke(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=Kl(t),n!==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[gt]=t}else sl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),e=!1}else n=xc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Xt(t),t):(Xt(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Ke(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Kl(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[gt]=t}else sl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),s=!1}else s=xc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Xt(t),t):(Xt(t),null)}return Xt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(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)),n!==e&&n&&(t.child.flags|=8192),Ti(t,t.updateQueue),Ke(t),null);case 4:return ie(),e===null&&Du(t.stateNode.containerInfo),Ke(t),null;case 10:return Zn(t.type),Ke(t),null;case 19:if(G(lt),l=t.memoizedState,l===null)return Ke(t),null;if(s=(t.flags&128)!==0,c=l.rendering,c===null)if(s)ro(l,!1);else{if(at!==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,Ti(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)om(n,e),n=n.sibling;return X(lt,lt.current&1|2),je&&Xn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&At()>_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,Ti(t,e),ro(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!je)return Ke(t),null}else 2*At()-l.renderingStartTime>_i&&n!==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=At(),e.sibling=null,n=lt.current,X(lt,s?n&1|2:n&1),je&&Xn(t,l.treeForkCount),e):(Ke(t),null);case 22:case 23:return Xt(t),jc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),n=t.updateQueue,n!==null&&Ti(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&G(fl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Zn(ot),Ke(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function d1(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 Zn(ot),ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return we(t),null;case 31:if(t.memoizedState!==null){if(Xt(t),t.alternate===null)throw Error(i(340));sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(lt),null;case 4:return ie(),null;case 10:return Zn(t.type),null;case 22:case 23:return Xt(t),jc(),e!==null&&G(fl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zn(ot),null;case 25:return null;default:return null}}function jh(e,t){switch(yc(t),t.tag){case 3:Zn(ot),ie();break;case 26:case 27:case 5:we(t);break;case 4:ie();break;case 31:t.memoizedState!==null&&Xt(t);break;case 13:Xt(t);break;case 19:G(lt);break;case 10:Zn(t.type);break;case 22:case 23:Xt(t),jc(),e!==null&&G(fl);break;case 24:Zn(ot)}}function oo(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&e)===e){l=void 0;var c=n.create,g=n.inst;l=c(),g.destroy=l}n=n.next}while(n!==s)}}catch(S){Ye(t,t.return,S)}}function Na(e,t,n){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=n,L=S;try{L()}catch($){Ye(s,R,$)}}}l=l.next}while(l!==c)}}catch($){Ye(t,t.return,$)}}function zh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Tm(t,n)}catch(l){Ye(e,e.return,l)}}}function kh(e,t,n){n.props=gl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Ye(e,t,l)}}function io(e,t){try{var n=e.ref;if(n!==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 n=="function"?e.refCleanup=n(l):n.current=l}}catch(s){Ye(e,t,s)}}function Cn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(s){Ye(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Ye(e,t,s)}else n.current=null}function Lh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(s){Ye(e,e.return,s)}}function fu(e,t,n){try{var l=e.stateNode;z1(l,e.type,n,t),l[jt]=t}catch(s){Ye(e,e.return,s)}}function Uh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Da(e.type)||e.tag===4}function du(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Uh(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&&Da(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,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qn));else if(l!==4&&(l===27&&Da(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(mu(e,t,n),e=e.sibling;e!==null;)mu(e,t,n),e=e.sibling}function Ni(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&Da(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ni(e,t,n),e=e.sibling;e!==null;)Ni(e,t,n),e=e.sibling}function Bh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);xt(t,l,n),t[gt]=e,t[jt]=n}catch(c){Ye(e,e.return,c)}}var In=!1,ct=!1,hu=!1,Hh=typeof WeakSet=="function"?WeakSet:Set,pt=null;function m1(e,t){if(e=e.containerInfo,ku=Qi,e=Fd(e),ic(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var s=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var g=0,S=-1,R=-1,L=0,$=0,K=e,U=null;t:for(;;){for(var H;K!==n||s!==0&&K.nodeType!==3||(S=g+s),K!==c||l!==0&&K.nodeType!==3||(R=g+l),K.nodeType===3&&(g+=K.nodeValue.length),(H=K.firstChild)!==null;)U=K,K=H;for(;;){if(K===e)break t;if(U===n&&++L===s&&(S=g),U===c&&++$===l&&(R=g),(H=K.nextSibling)!==null)break;K=U,U=K.parentNode}K=H}n=S===-1||R===-1?null:{start:S,end:R}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lu={focusedElem:e,selectionRange:n},Qi=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){switch(t=pt,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(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,s=c.memoizedProps,c=c.memoizedState,l=n.stateNode;try{var oe=gl(n.type,s);e=l.getSnapshotBeforeUpdate(oe,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(ye){Ye(n,n.return,ye)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Hu(e);else if(n===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,pt=e;break}pt=t.return}}function Vh(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:ea(e,n),l&4&&oo(5,n);break;case 1:if(ea(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){Ye(n,n.return,g)}else{var s=gl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Ye(n,n.return,g)}}l&64&&zh(n),l&512&&io(n,n.return);break;case 3:if(ea(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Tm(e,t)}catch(g){Ye(n,n.return,g)}}break;case 27:t===null&&l&4&&Bh(n);case 26:case 5:ea(e,n),t===null&&l&4&&Lh(n),l&512&&io(n,n.return);break;case 12:ea(e,n);break;case 31:ea(e,n),l&4&&Gh(e,n);break;case 13:ea(e,n),l&4&&$h(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=w1.bind(null,n),q1(e,n))));break;case 22:if(l=n.memoizedState!==null||In,!l){t=t!==null&&t.memoizedState!==null||ct,s=In;var c=ct;In=l,(ct=t)&&!c?ta(e,n,(n.subtreeFlags&8772)!==0):ea(e,n),In=s,ct=c}break;case 30:break;default:ea(e,n)}}function Yh(e){var t=e.alternate;t!==null&&(e.alternate=null,Yh(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 Je=null,kt=!1;function Wn(e,t,n){for(n=n.child;n!==null;)qh(e,t,n),n=n.sibling}function qh(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Wa,n)}catch{}switch(n.tag){case 26:ct||Cn(n,t),Wn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ct||Cn(n,t);var l=Je,s=kt;Da(n.type)&&(Je=n.stateNode,kt=!1),Wn(e,t,n),vo(n.stateNode),Je=l,kt=s;break;case 5:ct||Cn(n,t);case 6:if(l=Je,s=kt,Je=null,Wn(e,t,n),Je=l,kt=s,Je!==null)if(kt)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(n.stateNode)}catch(c){Ye(n,t,c)}else try{Je.removeChild(n.stateNode)}catch(c){Ye(n,t,c)}break;case 18:Je!==null&&(kt?(e=Je,zp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),pr(e)):zp(Je,n.stateNode));break;case 4:l=Je,s=kt,Je=n.stateNode.containerInfo,kt=!0,Wn(e,t,n),Je=l,kt=s;break;case 0:case 11:case 14:case 15:Na(2,n,t),ct||Na(4,n,t),Wn(e,t,n);break;case 1:ct||(Cn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&kh(n,t,l)),Wn(e,t,n);break;case 21:Wn(e,t,n);break;case 22:ct=(l=ct)||n.memoizedState!==null,Wn(e,t,n),ct=l;break;default:Wn(e,t,n)}}function Gh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{pr(e)}catch(n){Ye(t,t.return,n)}}}function $h(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{pr(e)}catch(n){Ye(t,t.return,n)}}function h1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Hh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Hh),t;default:throw Error(i(435,e.tag))}}function Ci(e,t){var n=h1(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var s=E1.bind(null,e,l);l.then(s,s)}})}function Lt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],c=e,g=t,S=g;e:for(;S!==null;){switch(S.tag){case 27:if(Da(S.type)){Je=S.stateNode,kt=!1;break e}break;case 5:Je=S.stateNode,kt=!1;break e;case 3:case 4:Je=S.stateNode.containerInfo,kt=!0;break e}S=S.return}if(Je===null)throw Error(i(160));qh(c,g,s),Je=null,kt=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Xh(t,e),t=t.sibling}var pn=null;function Xh(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Lt(t,e),Ut(e),l&4&&(Na(3,e,e.return),oo(3,e),Na(5,e,e.return));break;case 1:Lt(t,e),Ut(e),l&512&&(ct||n===null||Cn(n,n.return)),l&64&&In&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var s=pn;if(Lt(t,e),Ut(e),l&512&&(ct||n===null||Cn(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){case"title":c=s.getElementsByTagName("title")[0],(!c||c[zr]||c[gt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(l),s.head.insertBefore(c,s.querySelector("head > title"))),xt(c,l,n),c[gt]=e,ht(c),l=c;break e;case"link":var g=Xp("link","href",s).get(l+(n.href||""));if(g){for(var S=0;S<g.length;S++)if(c=g[S],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(S,1);break t}}c=s.createElement(l),xt(c,l,n),s.head.appendChild(c);break;case"meta":if(g=Xp("meta","content",s).get(l+(n.content||""))){for(S=0;S<g.length;S++)if(c=g[S],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(S,1);break t}}c=s.createElement(l),xt(c,l,n),s.head.appendChild(c);break;default:throw Error(i(468,l))}c[gt]=e,ht(c),l=c}e.stateNode=l}else Qp(s,e.type,e.stateNode);else e.stateNode=$p(s,l,e.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?Qp(s,e.type,e.stateNode):$p(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&fu(e,e.memoizedProps,n.memoizedProps)}break;case 27:Lt(t,e),Ut(e),l&512&&(ct||n===null||Cn(n,n.return)),n!==null&&l&4&&fu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Lt(t,e),Ut(e),l&512&&(ct||n===null||Cn(n,n.return)),e.flags&32){s=e.stateNode;try{Bl(s,"")}catch(oe){Ye(e,e.return,oe)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,fu(e,s,n!==null?n.memoizedProps:s)),l&1024&&(hu=!0);break;case 6:if(Lt(t,e),Ut(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(oe){Ye(e,e.return,oe)}}break;case 3:if(qi=null,s=pn,pn=Vi(t.containerInfo),Lt(t,e),pn=s,Ut(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{pr(t.containerInfo)}catch(oe){Ye(e,e.return,oe)}hu&&(hu=!1,Qh(e));break;case 4:l=pn,pn=Vi(e.stateNode.containerInfo),Lt(t,e),Ut(e),pn=l;break;case 12:Lt(t,e),Ut(e);break;case 31:Lt(t,e),Ut(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ci(e,l)));break;case 13:Lt(t,e),Ut(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ri=At()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ci(e,l)));break;case 22:s=e.memoizedState!==null;var R=n!==null&&n.memoizedState!==null,L=In,$=ct;if(In=L||s,ct=$||R,Lt(t,e),ct=$,In=L,Ut(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||R||In||ct||vl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){R=n=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 K=R.memoizedProps.style,U=K!=null&&K.hasOwnProperty("display")?K.display:null;S.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(oe){Ye(R,R.return,oe)}}}else if(t.tag===6){if(n===null){R=t;try{R.stateNode.nodeValue=s?"":R.memoizedProps}catch(oe){Ye(R,R.return,oe)}}}else if(t.tag===18){if(n===null){R=t;try{var H=R.stateNode;s?kp(H,!0):kp(R.stateNode,!1)}catch(oe){Ye(R,R.return,oe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Ci(e,n))));break;case 19:Lt(t,e),Ut(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ci(e,l)));break;case 30:break;case 21:break;default:Lt(t,e),Ut(e)}}function Ut(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Uh(l)){n=l;break}l=l.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var s=n.stateNode,c=du(e);Ni(e,c,s);break;case 5:var g=n.stateNode;n.flags&32&&(Bl(g,""),n.flags&=-33);var S=du(e);Ni(e,S,g);break;case 3:case 4:var R=n.stateNode.containerInfo,L=du(e);mu(e,L,R);break;default:throw Error(i(161))}}catch($){Ye(e,e.return,$)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Qh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Qh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ea(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Vh(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Na(4,t,t.return),vl(t);break;case 1:Cn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&kh(t,t.return,n),vl(t);break;case 27:vo(t.stateNode);case 26:case 5:Cn(t,t.return),vl(t);break;case 22:t.memoizedState===null&&vl(t);break;case 30:vl(t);break;default:vl(t)}e=e.sibling}}function ta(e,t,n){for(n=n&&(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:ta(s,c,n),oo(4,c);break;case 1:if(ta(s,c,n),l=c,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(L){Ye(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){Ye(l,l.return,L)}}n&&g&64&&zh(c),io(c,c.return);break;case 27:Bh(c);case 26:case 5:ta(s,c,n),n&&l===null&&g&4&&Lh(c),io(c,c.return);break;case 12:ta(s,c,n);break;case 31:ta(s,c,n),n&&g&4&&Gh(s,c);break;case 13:ta(s,c,n),n&&g&4&&$h(s,c);break;case 22:c.memoizedState===null&&ta(s,c,n),io(c,c.return);break;case 30:break;default:ta(s,c,n)}t=t.sibling}}function pu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Zr(n))}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 gn(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Zh(e,t,n,l),t=t.sibling}function Zh(e,t,n,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:gn(e,t,n,l),s&2048&&oo(9,t);break;case 1:gn(e,t,n,l);break;case 3:gn(e,t,n,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){gn(e,t,n,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){Ye(t,t.return,R)}}else gn(e,t,n,l);break;case 31:gn(e,t,n,l);break;case 13:gn(e,t,n,l);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?gn(e,t,n,l):so(e,t):c._visibility&2?gn(e,t,n,l):(c._visibility|=2,lr(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&pu(g,t);break;case 24:gn(e,t,n,l),s&2048&&gu(t.alternate,t);break;default:gn(e,t,n,l)}}function lr(e,t,n,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,g=t,S=n,R=l,L=g.flags;switch(g.tag){case 0:case 11:case 15:lr(c,g,S,R,s),oo(8,g);break;case 23:break;case 22:var $=g.stateNode;g.memoizedState!==null?$._visibility&2?lr(c,g,S,R,s):so(c,g):($._visibility|=2,lr(c,g,S,R,s)),s&&L&2048&&pu(g.alternate,g);break;case 24:lr(c,g,S,R,s),s&&L&2048&&gu(g.alternate,g);break;default:lr(c,g,S,R,s)}t=t.sibling}}function so(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,s=l.flags;switch(l.tag){case 22:so(n,l),s&2048&&pu(l.alternate,l);break;case 24:so(n,l),s&2048&&gu(l.alternate,l);break;default:so(n,l)}t=t.sibling}}var co=8192;function rr(e,t,n){if(e.subtreeFlags&co)for(e=e.child;e!==null;)Kh(e,t,n),e=e.sibling}function Kh(e,t,n){switch(e.tag){case 26:rr(e,t,n),e.flags&co&&e.memoizedState!==null&&eS(n,pn,e.memoizedState,e.memoizedProps);break;case 5:rr(e,t,n);break;case 3:case 4:var l=pn;pn=Vi(e.stateNode.containerInfo),rr(e,t,n),pn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=co,co=16777216,rr(e,t,n),co=l):rr(e,t,n));break;default:rr(e,t,n)}}function Ph(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 n=0;n<t.length;n++){var l=t[n];pt=l,Fh(l,e)}Ph(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jh(e),e=e.sibling}function Jh(e){switch(e.tag){case 0:case 11:case 15:uo(e),e.flags&2048&&Na(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 n=0;n<t.length;n++){var l=t[n];pt=l,Fh(l,e)}Ph(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Na(8,t,t.return),Ai(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ai(t));break;default:Ai(t)}e=e.sibling}}function Fh(e,t){for(;pt!==null;){var n=pt;switch(n.tag){case 0:case 11:case 15:Na(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Zr(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,pt=l;else e:for(n=e;pt!==null;){l=pt;var s=l.sibling,c=l.return;if(Yh(l),l===n){pt=null;break e}if(s!==null){s.return=c,pt=s;break e}pt=c}}}var p1={getCacheForType:function(e){var t=yt(ot),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return yt(ot).controller.signal}},g1=typeof WeakMap=="function"?WeakMap:Map,He=0,Qe=null,Re=null,Oe=0,Ve=0,Qt=null,Ca=!1,or=!1,vu=!1,na=0,at=0,Aa=0,yl=0,yu=0,Zt=0,ir=0,fo=null,Bt=null,bu=!1,Ri=0,Ih=0,_i=1/0,Oi=null,Ra=null,ut=0,_a=null,sr=null,aa=0,xu=0,Su=null,Wh=null,mo=0,wu=null;function Kt(){return(He&2)!==0&&Oe!==0?Oe&-Oe:O.T!==null?Ru():qs()}function ep(){if(Zt===0)if((Oe&536870912)===0||je){var e=Ol;Ol<<=1,(Ol&3932160)===0&&(Ol=262144),Zt=e}else Zt=536870912;return e=$t.current,e!==null&&(e.flags|=32),Zt}function Ht(e,t,n){(e===Qe&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)&&(cr(e,0),Oa(e,Oe,Zt,!1)),et(e,n),((He&2)===0||e!==Qe)&&(e===Qe&&((He&2)===0&&(yl|=n),at===4&&Oa(e,Oe,Zt,!1)),An(e))}function tp(e,t,n){if((He&6)!==0)throw Error(i(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Pe(e,t),s=l?b1(e,t):Tu(e,t,!0),c=l;do{if(s===0){or&&!l&&Oa(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!v1(n)){s=Tu(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&&(cr(S,g).flags|=256),g=Tu(S,g,!1),g!==2){if(vu&&!R){S.errorRecoveryDisabledLanes|=c,yl|=c,s=4;break e}c=Bt,Bt=s,c!==null&&(Bt===null?Bt=c:Bt.push.apply(Bt,c))}s=g}if(c=!1,s!==2)continue}}if(s===1){cr(e,0),Oa(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:Oa(l,t,Zt,!Ca);break e;case 2:Bt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(s=Ri+300-At(),10<s)){if(Oa(l,t,Zt,!Ca),be(l,0,!0)!==0)break e;aa=t,l.timeoutHandle=Dp(np.bind(null,l,n,Bt,Oi,bu,t,Zt,yl,ir,Ca,c,"Throttled",-0,0),s);break e}np(l,n,Bt,Oi,bu,t,Zt,yl,ir,Ca,c,null,-0,0)}}break}while(!0);An(e)}function np(e,t,n,l,s,c,g,S,R,L,$,K,U,H){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qn},Kh(t,c,K);var oe=(c&62914560)===c?Ri-At():(c&4194048)===c?Ih-At():0;if(oe=tS(K,oe),oe!==null){aa=c,e.cancelPendingCommit=oe(up.bind(null,e,t,c,n,l,s,g,S,R,$,K,null,U,H)),Oa(e,c,g,!L);return}}up(e,t,c,n,l,s,g,S,R)}function v1(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var s=n[l],c=s.getSnapshot;s=s.value;try{if(!qt(c(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Oa(e,t,n,l){t&=~yu,t&=~yl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var c=31-wt(s),g=1<<c;l[c]=-1,s&=~g}n!==0&&tl(e,n,t)}function Mi(){return(He&6)===0?(ho(0),!1):!0}function Eu(){if(Re!==null){if(Ve===0)var e=Re.return;else e=Re,Qn=cl=null,Hc(e),Wl=null,Pr=0,e=Re;for(;e!==null;)jh(e.alternate,e),e=e.return;Re=null}}function cr(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,U1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),aa=0,Eu(),Qe=e,Re=n=$n(e.current,null),Oe=t,Ve=0,Qt=null,Ca=!1,or=Pe(e,t),vu=!1,ir=Zt=yu=yl=Aa=at=0,Bt=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-wt(l),c=1<<s;t|=e[s],l&=~c}return na=t,Io(),n}function ap(e,t){Ee=null,O.H=ao,t===Il||t===oi?(t=bm(),Ve=3):t===Ac?(t=bm(),Ve=4):Ve=t===tu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,Re===null&&(at=1,xi(e,nn(t,e.current)))}function lp(){var e=$t.current;return e===null?!0:(Oe&4194048)===Oe?on===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===on:!1}function rp(){var e=O.H;return O.H=ao,e===null?ao:e}function op(){var e=O.A;return O.A=p1,e}function Di(){at=4,Ca||(Oe&4194048)!==Oe&&$t.current!==null||(or=!0),(Aa&134217727)===0&&(yl&134217727)===0||Qe===null||Oa(Qe,Oe,Zt,!1)}function Tu(e,t,n){var l=He;He|=2;var s=rp(),c=op();(Qe!==e||Oe!==t)&&(Oi=null,cr(e,t)),t=!1;var g=at;e:do try{if(Ve!==0&&Re!==null){var S=Re,R=Qt;switch(Ve){case 8:Eu(),g=6;break e;case 3:case 2:case 9:case 6:$t.current===null&&(t=!0);var L=Ve;if(Ve=0,Qt=null,ur(e,S,R,L),n&&or){g=0;break e}break;default:L=Ve,Ve=0,Qt=null,ur(e,S,R,L)}}y1(),g=at;break}catch($){ap(e,$)}while(!0);return t&&e.shellSuspendCounter++,Qn=cl=null,He=l,O.H=s,O.A=c,Re===null&&(Qe=null,Oe=0,Io()),g}function y1(){for(;Re!==null;)ip(Re)}function b1(e,t){var n=He;He|=2;var l=rp(),s=op();Qe!==e||Oe!==t?(Oi=null,_i=At()+500,cr(e,t)):or=Pe(e,t);e:do try{if(Ve!==0&&Re!==null){t=Re;var c=Qt;t:switch(Ve){case 1:Ve=0,Qt=null,ur(e,t,c,1);break;case 2:case 9:if(vm(c)){Ve=0,Qt=null,sp(t);break}t=function(){Ve!==2&&Ve!==9||Qe!==e||(Ve=7),An(e)},c.then(t,t);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:vm(c)?(Ve=0,Qt=null,sp(t)):(Ve=0,Qt=null,ur(e,t,c,7));break;case 5:var g=null;switch(Re.tag){case 26:g=Re.memoizedState;case 5:case 27:var S=Re;if(g?Zp(g):S.stateNode.complete){Ve=0,Qt=null;var R=S.sibling;if(R!==null)Re=R;else{var L=S.return;L!==null?(Re=L,ji(L)):Re=null}break t}}Ve=0,Qt=null,ur(e,t,c,5);break;case 6:Ve=0,Qt=null,ur(e,t,c,6);break;case 8:Eu(),at=6;break e;default:throw Error(i(462))}}x1();break}catch($){ap(e,$)}while(!0);return Qn=cl=null,O.H=l,O.A=s,He=n,Re!==null?0:(Qe=null,Oe=0,Io(),at)}function x1(){for(;Re!==null&&!Ct();)ip(Re)}function ip(e){var t=Mh(e.alternate,e,na);e.memoizedProps=e.pendingProps,t===null?ji(e):Re=t}function sp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Nh(n,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=Nh(n,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:Hc(t);default:jh(n,t),t=Re=om(t,na),t=Mh(n,t,na)}e.memoizedProps=e.pendingProps,t===null?ji(e):Re=t}function ur(e,t,n,l){Qn=cl=null,Hc(t),Wl=null,Pr=0;var s=t.return;try{if(s1(e,s,t,n,Oe)){at=1,xi(e,nn(n,e.current)),Re=null;return}}catch(c){if(s!==null)throw Re=s,c;at=1,xi(e,nn(n,e.current)),Re=null;return}t.flags&32768?(je||l===1?e=!0:or||(Oe&536870912)!==0?e=!1:(Ca=e=!0,(l===2||l===9||l===3||l===6)&&(l=$t.current,l!==null&&l.tag===13&&(l.flags|=16384))),cp(t,e)):ji(t)}function ji(e){var t=e;do{if((t.flags&32768)!==0){cp(t,Ca);return}e=t.return;var n=f1(t.alternate,t,na);if(n!==null){Re=n;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);at===0&&(at=5)}function cp(e,t){do{var n=d1(e.alternate,e);if(n!==null){n.flags&=32767,Re=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Re=e;return}Re=e=n}while(e!==null);at=6,Re=null}function up(e,t,n,l,s,c,g,S,R){e.cancelPendingCommit=null;do zi();while(ut!==0);if((He&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,Ot(e,n,c,g,S,R),e===Qe&&(Re=Qe=null,Oe=0),sr=t,_a=e,aa=n,xu=c,Su=s,Wh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,T1(Ia,function(){return pp(),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=He,He|=4;try{m1(e,t,n)}finally{He=g,Y.p=s,O.T=l}}ut=1,fp(),dp(),mp()}}function fp(){if(ut===1){ut=0;var e=_a,t=sr,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=O.T,O.T=null;var l=Y.p;Y.p=2;var s=He;He|=4;try{Xh(t,e);var c=Lu,g=Fd(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 K=S.ownerDocument||document,U=K&&K.defaultView||window;if(U.getSelection){var H=U.getSelection(),oe=S.textContent.length,ye=Math.min(R.start,oe),$e=R.end===void 0?ye:Math.min(R.end,oe);!H.extend&&ye>$e&&(g=$e,$e=ye,ye=g);var z=Pd(S,ye),M=Pd(S,$e);if(z&&M&&(H.rangeCount!==1||H.anchorNode!==z.node||H.anchorOffset!==z.offset||H.focusNode!==M.node||H.focusOffset!==M.offset)){var k=K.createRange();k.setStart(z.node,z.offset),H.removeAllRanges(),ye>$e?(H.addRange(k),H.extend(M.node,M.offset)):(k.setEnd(M.node,M.offset),H.addRange(k))}}}}for(K=[],H=S;H=H.parentNode;)H.nodeType===1&&K.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<K.length;S++){var Q=K[S];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}Qi=!!ku,Lu=ku=null}finally{He=s,Y.p=l,O.T=n}}e.current=t,ut=2}}function dp(){if(ut===2){ut=0;var e=_a,t=sr,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=O.T,O.T=null;var l=Y.p;Y.p=2;var s=He;He|=4;try{Vh(e,t.alternate,t)}finally{He=s,Y.p=l,O.T=n}}ut=3}}function mp(){if(ut===4||ut===3){ut=0,fa();var e=_a,t=sr,n=aa,l=Wh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ut=5:(ut=0,sr=_a=null,hp(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Ra=null),mn(n),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Wa,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}}(aa&3)!==0&&zi(),An(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===wu?mo++:(mo=0,wu=e):mo=0,ho(0)}}function hp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Zr(t)))}function zi(){return fp(),dp(),mp(),pp()}function pp(){if(ut!==5)return!1;var e=_a,t=xu;xu=0;var n=mn(aa),l=O.T,s=Y.p;try{Y.p=32>n?32:n,O.T=null,n=Su,Su=null;var c=_a,g=aa;if(ut=0,sr=_a=null,aa=0,(He&6)!==0)throw Error(i(331));var S=He;if(He|=4,Jh(c.current),Zh(c,c.current,g,n),He=S,ho(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Wa,c)}catch{}return!0}finally{Y.p=s,O.T=l,hp(e,t)}}function gp(e,t,n){t=nn(n,t),t=eu(e.stateNode,t,2),e=wa(e,t,2),e!==null&&(et(e,2),An(e))}function Ye(e,t,n){if(e.tag===3)gp(e,e,n);else for(;t!==null;){if(t.tag===3){gp(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ra===null||!Ra.has(l))){e=nn(n,e),n=vh(2),l=wa(t,n,2),l!==null&&(yh(n,l,t,e),et(l,2),An(l));break}}t=t.return}}function Nu(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new g1;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(n)||(vu=!0,s.add(n),e=S1.bind(null,e,t,n),t.then(e,e))}function S1(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Qe===e&&(Oe&n)===n&&(at===4||at===3&&(Oe&62914560)===Oe&&300>At()-Ri?(He&2)===0&&cr(e,0):yu|=n,ir===Oe&&(ir=0)),An(e)}function vp(e,t){t===0&&(t=Et()),e=ol(e,t),e!==null&&(et(e,t),An(e))}function w1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vp(e,n)}function E1(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(n=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),vp(e,n)}function T1(e,t){return Or(e,t)}var ki=null,fr=null,Cu=!1,Li=!1,Au=!1,Ma=0;function An(e){e!==fr&&e.next===null&&(fr===null?ki=fr=e:fr=fr.next=e),Li=!0,Cu||(Cu=!0,C1())}function ho(e,t){if(!Au&&Li){Au=!0;do for(var n=!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-wt(42|e)+1)-1,c&=s&~(g&~S),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Sp(l,c))}else c=Oe,c=be(l,l===Qe?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Pe(l,c)||(n=!0,Sp(l,c));l=l.next}while(n);Au=!1}}function N1(){yp()}function yp(){Li=Cu=!1;var e=0;Ma!==0&&L1()&&(e=Ma);for(var t=At(),n=null,l=ki;l!==null;){var s=l.next,c=bp(l,t);c===0?(l.next=null,n===null?ki=s:n.next=s,s===null&&(fr=n)):(n=l,(e!==0||(c&3)!==0)&&(Li=!0)),l=s}ut!==0&&ut!==5||ho(e),Ma!==0&&(Ma=0)}function bp(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-wt(c),S=1<<g,R=s[g];R===-1?((S&n)===0||(S&l)!==0)&&(s[g]=mt(S,t)):R<=t&&(e.expiredLanes|=S),c&=~S}if(t=Qe,n=Oe,n=be(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Mr(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Pe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Mr(l),mn(n)){case 2:case 8:n=Ho;break;case 32:n=Ia;break;case 268435456:n=Vn;break;default:n=Ia}return l=xp.bind(null,e),n=Or(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Mr(l),e.callbackPriority=2,e.callbackNode=null,2}function xp(e,t){if(ut!==0&&ut!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(zi()&&e.callbackNode!==n)return null;var l=Oe;return l=be(e,e===Qe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(tp(e,l,t),bp(e,At()),e.callbackNode!=null&&e.callbackNode===n?xp.bind(null,e):null)}function Sp(e,t){if(zi())return null;tp(e,t,!0)}function C1(){B1(function(){(He&6)!==0?Or(Fa,N1):yp()})}function Ru(){if(Ma===0){var e=Jl;e===0&&(e=_l,_l<<=1,(_l&261888)===0&&(_l=256)),Ma=e}return Ma}function wp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$o(""+e)}function Ep(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function A1(e,t,n,l,s){if(t==="submit"&&n&&n.stateNode===s){var c=wp((s[jt]||null).action),g=l.submitter;g&&(t=(t=g[jt]||null)?wp(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(Ma!==0){var R=g?Ep(s,g):new FormData(s);Kc(n,{pending:!0,data:R,method:s.method,action:c},null,R)}}else typeof c=="function"&&(S.preventDefault(),R=g?Ep(s,g):new FormData(s),Kc(n,{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],R1=Ou.toLowerCase(),_1=Ou[0].toUpperCase()+Ou.slice(1);hn(R1,"on"+_1)}hn(em,"onAnimationEnd"),hn(tm,"onAnimationIteration"),hn(nm,"onAnimationStart"),hn("dblclick","onDoubleClick"),hn("focusin","onFocus"),hn("focusout","onBlur"),hn(Xx,"onTransitionRun"),hn(Qx,"onTransitionStart"),hn(Zx,"onTransitionCancel"),hn(am,"onTransitionEnd"),Ll("onMouseEnter",["mouseout","mouseover"]),Ll("onMouseLeave",["mouseout","mouseover"]),Ll("onPointerEnter",["pointerout","pointerover"]),Ll("onPointerLeave",["pointerout","pointerover"]),nl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),nl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),nl("onBeforeInput",["compositionend","keypress","textInput","paste"]),nl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),nl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),nl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var po="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(" "),O1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(po));function Tp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],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($){Fo($)}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($){Fo($)}s.currentTarget=null,c=R}}}}function _e(e,t){var n=t[Gs];n===void 0&&(n=t[Gs]=new Set);var l=e+"__bubble";n.has(l)||(Np(t,e,2,!1),n.add(l))}function Mu(e,t,n){var l=0;t&&(l|=4),Np(n,e,l,t)}var Ui="_reactListening"+Math.random().toString(36).slice(2);function Du(e){if(!e[Ui]){e[Ui]=!0,yd.forEach(function(n){n!=="selectionchange"&&(O1.has(n)||Mu(n,!1,e),Mu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ui]||(t[Ui]=!0,Mu("selectionchange",!1,t))}}function Np(e,t,n,l){switch(eg(t)){case 2:var s=lS;break;case 8:s=rS;break;default:s=Zu}n=s.bind(null,t,n,e),s=void 0,!Is||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function ju(e,t,n,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=jl(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(n),K=[];e:{var U=lm.get(e);if(U!==void 0){var H=Ko,oe=e;switch(e){case"keypress":if(Qo(n)===0)break e;case"keydown":case"keyup":H=Ex;break;case"focusin":oe="focus",H=nc;break;case"focusout":oe="blur",H=nc;break;case"beforeblur":case"afterblur":H=nc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=jd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=fx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Cx;break;case em:case tm:case nm:H=hx;break;case am:H=Rx;break;case"scroll":case"scrollend":H=cx;break;case"wheel":H=Ox;break;case"copy":case"cut":case"paste":H=gx;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=Dx}var ye=(t&4)!==0,$e=!ye&&(e==="scroll"||e==="scrollend"),z=ye?U!==null?U+"Capture":null:U;ye=[];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&&ye.push(go(M,Q,k))),$e)break;M=M.return}0<ye.length&&(U=new H(U,oe,null,n,$),K.push({event:U,listeners:ye}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",U&&n!==Ps&&(oe=n.relatedTarget||n.fromElement)&&(jl(oe)||oe[Dl]))break e;if((H||U)&&(U=$.window===$?$:(U=$.ownerDocument)?U.defaultView||U.parentWindow:window,H?(oe=n.relatedTarget||n.toElement,H=L,oe=oe?jl(oe):null,oe!==null&&($e=f(oe),ye=oe.tag,oe!==$e||ye!==5&&ye!==27&&ye!==6)&&(oe=null)):(H=null,oe=L),H!==oe)){if(ye=jd,Q="onMouseLeave",z="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(ye=kd,Q="onPointerLeave",z="onPointerEnter",M="pointer"),$e=H==null?U:kr(H),k=oe==null?U:kr(oe),U=new ye(Q,M+"leave",H,n,$),U.target=$e,U.relatedTarget=k,Q=null,jl($)===L&&(ye=new ye(z,M+"enter",oe,n,$),ye.target=k,ye.relatedTarget=$e,Q=ye),$e=Q,H&&oe)t:{for(ye=M1,z=H,M=oe,k=0,Q=z;Q;Q=ye(Q))k++;Q=0;for(var ve=M;ve;ve=ye(ve))Q++;for(;0<k-Q;)z=ye(z),k--;for(;0<Q-k;)M=ye(M),Q--;for(;k--;){if(z===M||M!==null&&z===M.alternate){ye=z;break t}z=ye(z),M=ye(M)}ye=null}else ye=null;H!==null&&Cp(K,U,H,ye,!1),oe!==null&&$e!==null&&Cp(K,$e,oe,ye,!0)}}e:{if(U=L?kr(L):window,H=U.nodeName&&U.nodeName.toLowerCase(),H==="select"||H==="input"&&U.type==="file")var Le=Gd;else if(Yd(U))if($d)Le=qx;else{Le=Vx;var de=Hx}else H=U.nodeName,!H||H.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?L&&Ks(L.elementType)&&(Le=Gd):Le=Yx;if(Le&&(Le=Le(e,L))){qd(K,Le,n,$);break e}de&&de(e,U,L),e==="focusout"&&L&&U.type==="number"&&L.memoizedProps.value!=null&&Zs(U,"number",U.value)}switch(de=L?kr(L):window,e){case"focusin":(Yd(de)||de.contentEditable==="true")&&(ql=de,sc=L,$r=null);break;case"focusout":$r=sc=ql=null;break;case"mousedown":cc=!0;break;case"contextmenu":case"mouseup":case"dragend":cc=!1,Id(K,n,$);break;case"selectionchange":if($x)break;case"keydown":case"keyup":Id(K,n,$)}var Te;if(lc)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Yl?Hd(e,n)&&(Me="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Me="onCompositionStart");Me&&(Ld&&n.locale!=="ko"&&(Yl||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Yl&&(Te=Md()):(pa=$,Ws="value"in pa?pa.value:pa.textContent,Yl=!0)),de=Bi(L,Me),0<de.length&&(Me=new zd(Me,e,null,n,$),K.push({event:Me,listeners:de}),Te?Me.data=Te:(Te=Vd(n),Te!==null&&(Me.data=Te)))),(Te=zx?kx(e,n):Lx(e,n))&&(Me=Bi(L,"onBeforeInput"),0<Me.length&&(de=new zd("onBeforeInput","beforeinput",null,n,$),K.push({event:de,listeners:Me}),de.data=Te)),A1(K,e,L,n,$)}Tp(K,t)})}function go(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bi(e,t){for(var n=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,n),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 M1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Cp(e,t,n,l,s){for(var c=t._reactName,g=[];n!==null&&n!==l;){var S=n,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(n,c),L!=null&&g.unshift(go(n,L,R))):s||(L=Lr(n,c),L!=null&&g.push(go(n,L,R)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var D1=/\r\n?/g,j1=/\u0000|\uFFFD/g;function Ap(e){return(typeof e=="string"?e:""+e).replace(D1,`
50
- `).replace(j1,"")}function Rp(e,t){return t=Ap(t),Ap(e)===t}function Ge(e,t,n,l,s,c){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Bl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Bl(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,n,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"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=$o(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&Ge(e,t,"name",s.name,s,null),Ge(e,t,"formEncType",s.formEncType,s,null),Ge(e,t,"formMethod",s.formMethod,s,null),Ge(e,t,"formTarget",s.formTarget,s,null)):(Ge(e,t,"encType",s.encType,s,null),Ge(e,t,"method",s.method,s,null),Ge(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=$o(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=qn);break;case"onScroll":l!=null&&_e("scroll",e);break;case"onScrollEnd":l!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=n}}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}n=$o(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":_e("beforetoggle",e),_e("toggle",e),Yo(e,"popover",l);break;case"xlinkActuate":Yn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Yn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Yn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Yn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Yn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Yn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Yn(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<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=ix.get(n)||n,Yo(e,n,l))}}function zu(e,t,n,l,s,c){switch(n){case"style":Rd(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Bl(e,l):(typeof l=="number"||typeof l=="bigint")&&Bl(e,""+l);break;case"onScroll":l!=null&&_e("scroll",e);break;case"onScrollEnd":l!=null&&_e("scrollend",e);break;case"onClick":l!=null&&(e.onclick=qn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bd.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),c=e[jt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof l=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,s);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):Yo(e,n,l)}}}function xt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var l=!1,s=!1,c;for(c in n)if(n.hasOwnProperty(c)){var g=n[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:Ge(e,t,c,g,n,null)}}s&&Ge(e,t,"srcSet",n.srcSet,n,null),l&&Ge(e,t,"src",n.src,n,null);return;case"input":_e("invalid",e);var S=c=g=s=null,R=null,L=null;for(l in n)if(n.hasOwnProperty(l)){var $=n[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:Ge(e,t,l,$,n,null)}}Td(e,c,S,R,L,g,s,!1);return;case"select":_e("invalid",e),l=g=c=null;for(s in n)if(n.hasOwnProperty(s)&&(S=n[s],S!=null))switch(s){case"value":c=S;break;case"defaultValue":g=S;break;case"multiple":l=S;default:Ge(e,t,s,S,n,null)}t=c,n=g,e.multiple=!!l,t!=null?Ul(e,!!l,t,!1):n!=null&&Ul(e,!!l,n,!0);return;case"textarea":_e("invalid",e),c=s=l=null;for(g in n)if(n.hasOwnProperty(g)&&(S=n[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:Ge(e,t,g,S,n,null)}Cd(e,l,s,c);return;case"option":for(R in n)if(n.hasOwnProperty(R)&&(l=n[R],l!=null))switch(R){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ge(e,t,R,l,n,null)}return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(l=0;l<po.length;l++)_e(po[l],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("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 n)if(n.hasOwnProperty(L)&&(l=n[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ge(e,t,L,l,n,null)}return;default:if(Ks(t)){for($ in n)n.hasOwnProperty($)&&(l=n[$],l!==void 0&&zu(e,t,$,l,n,void 0));return}}for(S in n)n.hasOwnProperty(S)&&(l=n[S],l!=null&&Ge(e,t,S,l,n,null))}function z1(e,t,n,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 n){var K=n[H];if(n.hasOwnProperty(H)&&K!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":R=K;default:l.hasOwnProperty(H)||Ge(e,t,H,null,l,K)}}for(var U in l){var H=l[U];if(K=n[U],l.hasOwnProperty(U)&&(H!=null||K!=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!==K&&Ge(e,t,U,H,l,K)}}Qs(e,g,S,R,L,$,c,s);return;case"select":H=g=S=U=null;for(c in n)if(R=n[c],n.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":H=R;default:l.hasOwnProperty(c)||Ge(e,t,c,null,l,R)}for(s in l)if(c=l[s],R=n[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&&Ge(e,t,s,c,l,R)}t=S,n=g,l=H,U!=null?Ul(e,!!n,U,!1):!!l!=!!n&&(t!=null?Ul(e,!!n,t,!0):Ul(e,!!n,n?[]:"",!1));return;case"textarea":H=U=null;for(S in n)if(s=n[S],n.hasOwnProperty(S)&&s!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ge(e,t,S,null,l,s)}for(g in l)if(s=l[g],c=n[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&&Ge(e,t,g,s,l,c)}Nd(e,U,H);return;case"option":for(var oe in n)if(U=n[oe],n.hasOwnProperty(oe)&&U!=null&&!l.hasOwnProperty(oe))switch(oe){case"selected":e.selected=!1;break;default:Ge(e,t,oe,null,l,U)}for(R in l)if(U=l[R],H=n[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:Ge(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 ye in n)U=n[ye],n.hasOwnProperty(ye)&&U!=null&&!l.hasOwnProperty(ye)&&Ge(e,t,ye,null,l,U);for(L in l)if(U=l[L],H=n[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:Ge(e,t,L,U,l,H)}return;default:if(Ks(t)){for(var $e in n)U=n[$e],n.hasOwnProperty($e)&&U!==void 0&&!l.hasOwnProperty($e)&&zu(e,t,$e,void 0,l,U);for($ in l)U=l[$],H=n[$],!l.hasOwnProperty($)||U===H||U===void 0&&H===void 0||zu(e,t,$,U,l,H);return}}for(var z in n)U=n[z],n.hasOwnProperty(z)&&U!=null&&!l.hasOwnProperty(z)&&Ge(e,t,z,null,l,U);for(K in l)U=l[K],H=n[K],!l.hasOwnProperty(K)||U===H||U==null&&H==null||Ge(e,t,K,U,l,H)}function _p(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function k1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var s=n[l],c=s.transferSize,g=s.initiatorType,S=s.duration;if(c&&S&&_p(g)){for(g=0,S=s.responseEnd,l+=1;l<n.length;l++){var R=n[l],L=R.startTime;if(L>S)break;var $=R.transferSize,K=R.initiatorType;$&&_p(K)&&(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 Op(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 Mp(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 L1(){var e=window.event;return e&&e.type==="popstate"?e===Bu?!1:(Bu=e,!0):(Bu=null,!1)}var Dp=typeof setTimeout=="function"?setTimeout:void 0,U1=typeof clearTimeout=="function"?clearTimeout:void 0,jp=typeof Promise=="function"?Promise:void 0,B1=typeof queueMicrotask=="function"?queueMicrotask:typeof jp<"u"?function(e){return jp.resolve(null).then(e).catch(H1)}:Dp;function H1(e){setTimeout(function(){throw e})}function Da(e){return e==="head"}function zp(e,t){var n=t,l=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(s),pr(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")vo(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,vo(n);for(var c=n.firstChild;c;){var g=c.nextSibling,S=c.nodeName;c[zr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=g}}else n==="body"&&vo(e.ownerDocument.body);n=s}while(n);pr(t)}function kp(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Hu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Hu(n),$s(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function V1(e,t,n,l){for(;e.nodeType===1;){var s=n;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=sn(e.nextSibling),e===null)break}return null}function Y1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=sn(e.nextSibling),e===null))return null;return e}function Lp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=sn(e.nextSibling),e===null))return null;return e}function Vu(e){return e.data==="$?"||e.data==="$~"}function Yu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function q1(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function sn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var qu=null;function Up(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return sn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Bp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Hp(e,t,n){switch(t=Hi(n),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 cn=new Map,Vp=new Set;function Vi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var la=Y.d;Y.d={f:G1,r:$1,D:X1,C:Q1,L:Z1,m:K1,X:J1,S:P1,M:F1};function G1(){var e=la.f(),t=Mi();return e||t}function $1(e){var t=zl(e);t!==null&&t.tag===5&&t.type==="form"?ah(t):la.r(e)}var dr=typeof document>"u"?null:document;function Yp(e,t,n){var l=dr;if(l&&typeof t=="string"&&t){var s=en(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),Vp.has(s)||(Vp.add(s),e={rel:e,crossOrigin:n,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),xt(t,"link",e),ht(t),l.head.appendChild(t)))}}function X1(e){la.D(e),Yp("dns-prefetch",e,null)}function Q1(e,t){la.C(e,t),Yp("preconnect",e,t)}function Z1(e,t,n){la.L(e,t,n);var l=dr;if(l&&e&&t){var s='link[rel="preload"][as="'+en(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+en(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+en(n.imageSizes)+'"]')):s+='[href="'+en(e)+'"]';var c=s;switch(t){case"style":c=mr(e);break;case"script":c=hr(e)}cn.has(c)||(e=m({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),cn.set(c,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(yo(c))||t==="script"&&l.querySelector(bo(c))||(t=l.createElement("link"),xt(t,"link",e),ht(t),l.head.appendChild(t)))}}function K1(e,t){la.m(e,t);var n=dr;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+en(l)+'"][href="'+en(e)+'"]',c=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=hr(e)}if(!cn.has(c)&&(e=m({rel:"modulepreload",href:e},t),cn.set(c,e),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(bo(c)))return}l=n.createElement("link"),xt(l,"link",e),ht(l),n.head.appendChild(l)}}}function P1(e,t,n){la.S(e,t,n);var l=dr;if(l&&e){var s=kl(l).hoistableStyles,c=mr(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=m({rel:"stylesheet",href:e,"data-precedence":t},n),(n=cn.get(c))&&Gu(e,n);var R=g=l.createElement("link");ht(R),xt(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 J1(e,t){la.X(e,t);var n=dr;if(n&&e){var l=kl(n).hoistableScripts,s=hr(e),c=l.get(s);c||(c=n.querySelector(bo(s)),c||(e=m({src:e,async:!0},t),(t=cn.get(s))&&$u(e,t),c=n.createElement("script"),ht(c),xt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function F1(e,t){la.M(e,t);var n=dr;if(n&&e){var l=kl(n).hoistableScripts,s=hr(e),c=l.get(s);c||(c=n.querySelector(bo(s)),c||(e=m({src:e,async:!0,type:"module"},t),(t=cn.get(s))&&$u(e,t),c=n.createElement("script"),ht(c),xt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function qp(e,t,n,l){var s=(s=ne.current)?Vi(s):null;if(!s)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=mr(n.href),n=kl(s).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=mr(n.href);var c=kl(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),cn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},cn.set(e,n),c||I1(s,e,n,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=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=hr(n),n=kl(s).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function mr(e){return'href="'+en(e)+'"'}function yo(e){return'link[rel="stylesheet"]['+e+"]"}function Gp(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function I1(e,t,n,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}),xt(t,"link",n),ht(t),e.head.appendChild(t))}function hr(e){return'[src="'+en(e)+'"]'}function bo(e){return"script[async]"+e}function $p(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+en(n.href)+'"]');if(l)return t.instance=l,ht(l),l;var s=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ht(l),xt(l,"style",s),Yi(l,n.precedence,e),t.instance=l;case"stylesheet":s=mr(n.href);var c=e.querySelector(yo(s));if(c)return t.state.loading|=4,t.instance=c,ht(c),c;l=Gp(n),(s=cn.get(s))&&Gu(l,s),c=(e.ownerDocument||e).createElement("link"),ht(c);var g=c;return g._p=new Promise(function(S,R){g.onload=S,g.onerror=R}),xt(c,"link",l),t.state.loading|=4,Yi(c,n.precedence,e),t.instance=c;case"script":return c=hr(n.src),(s=e.querySelector(bo(c)))?(t.instance=s,ht(s),s):(l=n,(s=cn.get(c))&&(l=m({},n),$u(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),ht(s),xt(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,n.precedence,e));return t.instance}function Yi(e,t,n){for(var l=n.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=n.nodeType===9?n.head:n,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 Xp(e,t,n){if(qi===null){var l=new Map,s=qi=new Map;s.set(n,l)}else s=qi,l=s.get(n),l||(l=new Map,s.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var c=n[s];if(!(c[zr]||c[gt]||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 Qp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function W1(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Zp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function eS(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=mr(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)),n.state.loading|=4,n.instance=c,ht(c);return}c=t.ownerDocument||t,l=Gp(l),(s=cn.get(s))&&Gu(l,s),c=c.createElement("link"),ht(c);var g=c;g._p=new Promise(function(S,R){g.onload=S,g.onerror=R}),xt(c,"link",l),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Gi.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Xu=0;function tS(e,t){return e.stylesheets&&e.count===0&&Xi(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){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*k1());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=n,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(nS,e),$i=null,Gi.call(e))}function nS(e,t){if(!(t.state.loading&4)){var n=$i.get(e);if(n)var l=n.get(null);else{n=new Map,$i.set(e,n);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")&&(n.set(g.dataset.precedence,g),l=g)}l&&n.set(null,l)}s=t.instance,g=s.getAttribute("data-precedence"),c=n.get(g)||l,c===l&&n.set(null,s),n.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:J,_currentValue2:J,_threadCount:0};function aS(e,t,n,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=ma(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ma(0),this.hiddenUpdates=ma(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 Kp(e,t,n,l,s,c,g,S,R,L,$,K){return e=new aS(e,t,n,g,R,L,$,K,S),t=1,c===!0&&(t|=24),c=Gt(3,null,null,t),e.current=c,c.stateNode=e,t=Tc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:t},Rc(c),e}function Pp(e){return e?(e=Xl,e):Xl}function Jp(e,t,n,l,s,c){s=Pp(s),l.context===null?l.context=s:l.pendingContext=s,l=Sa(t),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=wa(e,l,t),n!==null&&(Ht(n,e,t),Fr(n,e,t))}function Fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Qu(e,t){Fp(e,t),(e=e.alternate)&&Fp(e,t)}function Ip(e){if(e.tag===13||e.tag===31){var t=ol(e,67108864);t!==null&&Ht(t,e,67108864),Qu(e,67108864)}}function Wp(e){if(e.tag===13||e.tag===31){var t=Kt();t=Ml(t);var n=ol(e,t);n!==null&&Ht(n,e,t),Qu(e,t)}}var Qi=!0;function lS(e,t,n,l){var s=O.T;O.T=null;var c=Y.p;try{Y.p=2,Zu(e,t,n,l)}finally{Y.p=c,O.T=s}}function rS(e,t,n,l){var s=O.T;O.T=null;var c=Y.p;try{Y.p=8,Zu(e,t,n,l)}finally{Y.p=c,O.T=s}}function Zu(e,t,n,l){if(Qi){var s=Ku(l);if(s===null)ju(e,t,l,Zi,n),tg(e,l);else if(iS(s,e,t,n,l))l.stopPropagation();else if(tg(e,l),t&4&&-1<oS.indexOf(e)){for(;s!==null;){var c=zl(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=En(c.pendingLanes);if(g!==0){var S=c;for(S.pendingLanes|=2,S.entangledLanes|=2;g;){var R=1<<31-wt(g);S.entanglements[1]|=R,g&=~R}An(c),(He&6)===0&&(_i=At()+500,ho(0))}}break;case 31:case 13:S=ol(c,2),S!==null&&Ht(S,c,2),Mi(),Qu(c,2)}if(c=Ku(l),c===null&&ju(e,t,l,Zi,n),c===s)break;s=c}s!==null&&l.stopPropagation()}else ju(e,t,l,null,n)}}function Ku(e){return e=Js(e),Pu(e)}var Zi=null;function Pu(e){if(Zi=null,e=jl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=h(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return 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 Fa:return 2;case Ho:return 8;case Ia:case Dr:return 32;case Vn:return 268435456;default:return 32}default:return 32}}var Ju=!1,ja=null,za=null,ka=null,So=new Map,wo=new Map,La=[],oS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function tg(e,t){switch(e){case"focusin":case"focusout":ja=null;break;case"dragenter":case"dragleave":za=null;break;case"mouseover":case"mouseout":ka=null;break;case"pointerover":case"pointerout":So.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wo.delete(t.pointerId)}}function Eo(e,t,n,l,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[s]},t!==null&&(t=zl(t),t!==null&&Ip(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function iS(e,t,n,l,s){switch(t){case"focusin":return ja=Eo(ja,e,t,n,l,s),!0;case"dragenter":return za=Eo(za,e,t,n,l,s),!0;case"mouseover":return ka=Eo(ka,e,t,n,l,s),!0;case"pointerover":var c=s.pointerId;return So.set(c,Eo(So.get(c)||null,e,t,n,l,s)),!0;case"gotpointercapture":return c=s.pointerId,wo.set(c,Eo(wo.get(c)||null,e,t,n,l,s)),!0}return!1}function ng(e){var t=jl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,gd(e.priority,function(){Wp(n)});return}}else if(t===31){if(t=h(n),t!==null){e.blockedOn=t,gd(e.priority,function(){Wp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ki(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ku(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Ps=l,n.target.dispatchEvent(l),Ps=null}else return t=zl(n),t!==null&&Ip(t),e.blockedOn=n,!1;t.shift()}return!0}function ag(e,t,n){Ki(e)&&n.delete(t)}function sS(){Ju=!1,ja!==null&&Ki(ja)&&(ja=null),za!==null&&Ki(za)&&(za=null),ka!==null&&Ki(ka)&&(ka=null),So.forEach(ag),wo.forEach(ag)}function Pi(e,t){e.blockedOn===t&&(e.blockedOn=null,Ju||(Ju=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,sS)))}var Ji=null;function lg(e){Ji!==e&&(Ji=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Ji===e&&(Ji=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(Pu(l||n)===null)continue;break}var c=zl(n);c!==null&&(e.splice(t,3),t-=3,Kc(c,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function pr(e){function t(R){return Pi(R,e)}ja!==null&&Pi(ja,e),za!==null&&Pi(za,e),ka!==null&&Pi(ka,e),So.forEach(t),wo.forEach(t);for(var n=0;n<La.length;n++){var l=La[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<La.length&&(n=La[0],n.blockedOn===null);)ng(n),n.blockedOn===null&&La.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var s=n[l],c=n[l+1],g=s[jt]||null;if(typeof c=="function")g||lg(n);else if(g){var S=null;if(c&&c.hasAttribute("formAction")){if(s=c,g=c[jt]||null)S=g.formAction;else if(Pu(s)!==null)continue}else S=g.action;typeof S=="function"?n[l+1]=S:(n.splice(l,3),l-=3),lg(n)}}}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(n,20)}function n(){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(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Fu(e){this._internalRoot=e}Fi.prototype.render=Fu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current,l=Kt();Jp(n,l,e,t,null,null)},Fi.prototype.unmount=Fu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Jp(e.current,2,null,e,null,null),Mi(),t[Dl]=null}};function Fi(e){this._internalRoot=e}Fi.prototype.unstable_scheduleHydration=function(e){if(e){var t=qs();e={blockedOn:null,target:e,priority:t};for(var n=0;n<La.length&&t!==0&&t<La[n].priority;n++);La.splice(n,0,e),n===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 cS={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ii=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ii.isDisabled&&Ii.supportsFiber)try{Wa=Ii.inject(cS),Rt=Ii}catch{}}return No.createRoot=function(e,t){if(!u(e))throw Error(i(299));var n=!1,l="",s=mh,c=hh,g=ph;return t!=null&&(t.unstable_strictMode===!0&&(n=!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=Kp(e,1,!1,null,null,n,l,null,s,c,g,rg),e[Dl]=t.current,Du(e),new Fu(t)},No.hydrateRoot=function(e,t,n){if(!u(e))throw Error(i(299));var l=!1,s="",c=mh,g=hh,S=ph,R=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError),n.formState!==void 0&&(R=n.formState)),t=Kp(e,1,!0,t,n??null,l,s,R,c,g,S,rg),t.context=Pp(null),n=t.current,l=Kt(),l=Ml(l),s=Sa(l),s.callback=null,wa(n,s,l),n=l,t.current.lanes=n,et(t,n),An(t),e[Dl]=t.current,Du(e),new Fi(t)},No.version="19.2.4",No}var gg;function bS(){if(gg)return ef.exports;gg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),ef.exports=yS(),ef.exports}var xS=bS();const SS="modulepreload",wS=function(a){return"/"+a},vg={},hv=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(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),v=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));u=d(o.map(p=>{if(p=wS(p),p in vg)return;vg[p]=!0;const x=p.endsWith(".css"),m=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${m}`))return;const w=document.createElement("link");if(w.rel=x?"stylesheet":SS,x||(w.as="script"),w.crossOrigin="",w.href=p,v&&w.setAttribute("nonce",v),document.head.appendChild(w),x)return new Promise((T,A)=>{w.addEventListener("load",T),w.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return u.then(d=>{for(const h of d||[])h.status==="rejected"&&f(h.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(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function ES(a={}){function r(i,u){var p;let f=(p=u.state)==null?void 0:p.masked,{pathname:d,search:h,hash:v}=f||i.location;return Sf("",{pathname:d,search:h,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 NS(r,o,null,a)}function Fe(a,r){if(a===!1||a===null||typeof a>"u")throw new Error(r)}function yn(a,r){if(!a){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function TS(){return Math.random().toString(36).substring(2,10)}function xg(a,r){return{usr:a.state,key:a.key,idx:r,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function Sf(a,r,o=null,i,u){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof r=="string"?Tr(r):r,state:o,key:r&&r.key||i||TS(),unstable_mask:u}}function _o({pathname:a="/",search:r="",hash:o=""}){return r&&r!=="?"&&(a+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(a+=o.charAt(0)==="#"?o:"#"+o),a}function Tr(a){let r={};if(a){let o=a.indexOf("#");o>=0&&(r.hash=a.substring(o),a=a.substring(0,o));let i=a.indexOf("?");i>=0&&(r.search=a.substring(i),a=a.substring(0,i)),a&&(r.pathname=a)}return r}function NS(a,r,o,i={}){let{window:u=document.defaultView,v5Compat:f=!1}=i,d=u.history,h="POP",v=null,p=x();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function x(){return(d.state||{idx:null}).idx}function m(){h="POP";let N=x(),C=N==null?null:N-p;p=N,v&&v({action:h,location:E.location,delta:C})}function w(N,C){h="PUSH";let j=bg(N)?N:Sf(E.location,N,C);p=x()+1;let D=xg(j,p),B=E.createHref(j.unstable_mask||j);try{d.pushState(D,"",B)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;u.location.assign(B)}f&&v&&v({action:h,location:E.location,delta:1})}function T(N,C){h="REPLACE";let j=bg(N)?N:Sf(E.location,N,C);p=x();let D=xg(j,p),B=E.createHref(j.unstable_mask||j);d.replaceState(D,"",B),f&&v&&v({action:h,location:E.location,delta:0})}function A(N){return CS(N)}let E={get action(){return h},get location(){return a(u,d)},listen(N){if(v)throw new Error("A history only accepts one active listener");return u.addEventListener(yg,m),v=N,()=>{u.removeEventListener(yg,m),v=null}},createHref(N){return r(u,N)},createURL:A,encodeLocation(N){let C=A(N);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:w,replace:T,go(N){return d.go(N)}};return E}function CS(a,r=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Fe(o,"No window.location.(origin|href) available to create URL");let i=typeof a=="string"?a:_o(a);return i=i.replace(/ $/,"%20"),!r&&i.startsWith("//")&&(i=o+i),new URL(i,o)}function pv(a,r,o="/"){return AS(a,r,o,!1)}function AS(a,r,o,i){let u=typeof r=="string"?Tr(r):r,f=oa(u.pathname||"/",o);if(f==null)return null;let d=gv(a);RS(d);let h=null;for(let v=0;h==null&&v<d.length;++v){let p=HS(f);h=US(d[v],p,i)}return h}function gv(a,r=[],o=[],i="",u=!1){let f=(d,h,v=u,p)=>{let x={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(i)&&v)return;Fe(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 m=Ln([i,x.relativePath]),w=o.concat(x);d.children&&d.children.length>0&&(Fe(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),gv(d.children,r,w,m,v)),!(d.path==null&&!d.index)&&r.push({path:m,score:kS(m,d.index),routesMeta:w})};return a.forEach((d,h)=>{var v;if(d.path===""||!((v=d.path)!=null&&v.includes("?")))f(d,h);else for(let p of vv(d.path))f(d,h,!0,p)}),r}function vv(a){let r=a.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("/")),h=[];return h.push(...d.map(v=>v===""?f:[f,v].join("/"))),u&&h.push(...d),h.map(v=>a.startsWith("/")&&v===""?"/":v)}function RS(a){a.sort((r,o)=>r.score!==o.score?o.score-r.score:LS(r.routesMeta.map(i=>i.childrenIndex),o.routesMeta.map(i=>i.childrenIndex)))}var _S=/^:[\w-]+$/,OS=3,MS=2,DS=1,jS=10,zS=-2,Sg=a=>a==="*";function kS(a,r){let o=a.split("/"),i=o.length;return o.some(Sg)&&(i+=zS),r&&(i+=MS),o.filter(u=>!Sg(u)).reduce((u,f)=>u+(_S.test(f)?OS:f===""?DS:jS),i)}function LS(a,r){return a.length===r.length&&a.slice(0,-1).every((i,u)=>i===r[u])?a[a.length-1]-r[r.length-1]:0}function US(a,r,o=!1){let{routesMeta:i}=a,u={},f="/",d=[];for(let h=0;h<i.length;++h){let v=i[h],p=h===i.length-1,x=f==="/"?r:r.slice(f.length)||"/",m=vs({path:v.relativePath,caseSensitive:v.caseSensitive,end:p},x),w=v.route;if(!m&&p&&o&&!i[i.length-1].route.index&&(m=vs({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},x)),!m)return null;Object.assign(u,m.params),d.push({params:u,pathname:Ln([f,m.pathname]),pathnameBase:GS(Ln([f,m.pathnameBase])),route:w}),m.pathnameBase!=="/"&&(f=Ln([f,m.pathnameBase]))}return d}function vs(a,r){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[o,i]=BS(a.path,a.caseSensitive,a.end),u=r.match(o);if(!u)return null;let f=u[0],d=f.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:i.reduce((p,{paramName:x,isOptional:m},w)=>{if(x==="*"){let A=h[w]||"";d=f.slice(0,f.length-A.length).replace(/(.)\/+$/,"$1")}const T=h[w];return m&&!T?p[x]=void 0:p[x]=(T||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:d,pattern:a}}function BS(a,r=!1,o=!0){yn(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let i=[],u="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,v,p,x)=>{if(i.push({paramName:h,isOptional:v!=null}),v){let m=x.charAt(p+d.length);return m&&m!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(i.push({paramName:"*"}),u+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?u+="\\/*$":a!==""&&a!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,r?void 0:"i"),i]}function HS(a){try{return a.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return yn(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),a}}function oa(a,r){if(r==="/")return a;if(!a.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,i=a.charAt(o);return i&&i!=="/"?null:a.slice(o)||"/"}var VS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function YS(a,r="/"){let{pathname:o,search:i="",hash:u=""}=typeof a=="string"?Tr(a):a,f;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?f=wg(o.substring(1),"/"):f=wg(o,r)):f=r,{pathname:f,search:$S(i),hash:XS(u)}}function wg(a,r){let o=r.replace(/\/+$/,"").split("/");return a.split("/").forEach(u=>{u===".."?o.length>1&&o.pop():u!=="."&&o.push(u)}),o.length>1?o.join("/"):"/"}function lf(a,r,o,i){return`Cannot include a '${a}' 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 qS(a){return a.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function Bf(a){let r=qS(a);return r.map((o,i)=>i===r.length-1?o.pathname:o.pathnameBase)}function Cs(a,r,o,i=!1){let u;typeof a=="string"?u=Tr(a):(u={...a},Fe(!u.pathname||!u.pathname.includes("?"),lf("?","pathname","search",u)),Fe(!u.pathname||!u.pathname.includes("#"),lf("#","pathname","hash",u)),Fe(!u.search||!u.search.includes("#"),lf("#","search","hash",u)));let f=a===""||u.pathname==="",d=f?"/":u.pathname,h;if(d==null)h=o;else{let m=r.length-1;if(!i&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),m-=1;u.pathname=w.join("/")}h=m>=0?r[m]:"/"}let v=YS(u,h),p=d&&d!=="/"&&d.endsWith("/"),x=(f||d===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(p||x)&&(v.pathname+="/"),v}var Ln=a=>a.join("/").replace(/\/\/+/g,"/"),GS=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),$S=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,XS=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,QS=class{constructor(a,r,o,i=!1){this.status=a,this.statusText=r||"",this.internal=i,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function ZS(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function KS(a){return a.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(a,r){let o=a;if(typeof o!="string"||!VS.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),h=oa(d.pathname,r);d.origin===f.origin&&h!=null?o=h+d.search+d.hash:u=!0}catch{yn(!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 PS=["GET",...xv];new Set(PS);var Nr=b.createContext(null);Nr.displayName="DataRouter";var As=b.createContext(null);As.displayName="DataRouterState";var JS=b.createContext(!1),Sv=b.createContext({isTransitioning:!1});Sv.displayName="ViewTransition";var FS=b.createContext(new Map);FS.displayName="Fetchers";var IS=b.createContext(null);IS.displayName="Await";var Ft=b.createContext(null);Ft.displayName="Navigation";var jo=b.createContext(null);jo.displayName="Location";var un=b.createContext({outlet:null,matches:[],isDataRoute:!1});un.displayName="Route";var Hf=b.createContext(null);Hf.displayName="RouteError";var wv="REACT_ROUTER_ERROR",WS="REDIRECT",e2="ROUTE_ERROR_RESPONSE";function t2(a){if(a.startsWith(`${wv}:${WS}:{`))try{let r=JSON.parse(a.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 n2(a){if(a.startsWith(`${wv}:${e2}:{`))try{let r=JSON.parse(a.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new QS(r.status,r.statusText,r.data)}catch{}}function a2(a,{relative:r}={}){Fe(Cr(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:i}=b.useContext(Ft),{hash:u,pathname:f,search:d}=zo(a,{relative:r}),h=f;return o!=="/"&&(h=f==="/"?o:Ln([o,f])),i.createHref({pathname:h,search:d,hash:u})}function Cr(){return b.useContext(jo)!=null}function Bn(){return Fe(Cr(),"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 Tv(a){b.useContext(Ft).static||b.useLayoutEffect(a)}function Nv(){let{isDataRoute:a}=b.useContext(un);return a?y2():l2()}function l2(){Fe(Cr(),"useNavigate() may be used only in the context of a <Router> component.");let a=b.useContext(Nr),{basename:r,navigator:o}=b.useContext(Ft),{matches:i}=b.useContext(un),{pathname:u}=Bn(),f=JSON.stringify(Bf(i)),d=b.useRef(!1);return Tv(()=>{d.current=!0}),b.useCallback((v,p={})=>{if(yn(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");a==null&&r!=="/"&&(x.pathname=x.pathname==="/"?r:Ln([r,x.pathname])),(p.replace?o.replace:o.push)(x,p.state,p)},[r,o,f,u,a])}var r2=b.createContext(null);function o2(a){let r=b.useContext(un).outlet;return b.useMemo(()=>r&&b.createElement(r2.Provider,{value:a},r),[r,a])}function j_(){let{matches:a}=b.useContext(un),r=a[a.length-1];return r?r.params:{}}function zo(a,{relative:r}={}){let{matches:o}=b.useContext(un),{pathname:i}=Bn(),u=JSON.stringify(Bf(o));return b.useMemo(()=>Cs(a,JSON.parse(u),i,r==="path"),[a,u,i,r])}function i2(a,r){return Cv(a,r)}function Cv(a,r,o){var N;Fe(Cr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=b.useContext(Ft),{matches:u}=b.useContext(un),f=u[u.length-1],d=f?f.params:{},h=f?f.pathname:"/",v=f?f.pathnameBase:"/",p=f&&f.route;{let C=p&&p.path||"";Rv(h,!p||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${C}">) 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="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let x=Bn(),m;if(r){let C=typeof r=="string"?Tr(r):r;Fe(v==="/"||((N=C.pathname)==null?void 0:N.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 "${C.pathname}" was given in the \`location\` prop.`),m=C}else m=x;let w=m.pathname||"/",T=w;if(v!=="/"){let C=v.replace(/^\//,"").split("/");T="/"+w.replace(/^\//,"").split("/").slice(C.length).join("/")}let A=pv(a,{pathname:T});yn(p||A!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),yn(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=d2(A&&A.map(C=>Object.assign({},C,{params:Object.assign({},d,C.params),pathname:Ln([v,i.encodeLocation?i.encodeLocation(C.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?v:Ln([v,i.encodeLocation?i.encodeLocation(C.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),u,o);return r&&E?b.createElement(jo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...m},navigationType:"POP"}},E):E}function s2(){let a=v2(),r=ZS(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),o=a instanceof Error?a.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:",a),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 c2=b.createElement(s2,null),Av=class extends b.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,r){return r.location!==a.location||r.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:r.error,location:r.location,revalidation:a.revalidation||r.revalidation}}componentDidCatch(a,r){this.props.onError?this.props.onError(a,r):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const o=n2(a.digest);o&&(a=o)}let r=a!==void 0?b.createElement(un.Provider,{value:this.props.routeContext},b.createElement(Hf.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?b.createElement(u2,{error:a},r):r}};Av.contextType=JS;var rf=new WeakMap;function u2({children:a,error:r}){let{basename:o}=b.useContext(Ft);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let i=t2(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 a}function f2({routeContext:a,match:r,children:o}){let i=b.useContext(Nr);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(un.Provider,{value:a},o)}function d2(a,r=[],o){let i=o==null?void 0:o.state;if(a==null){if(!i)return null;if(i.errors)a=i.matches;else if(r.length===0&&!i.initialized&&i.matches.length>0)a=i.matches;else return null}let u=a,f=i==null?void 0:i.errors;if(f!=null){let x=u.findIndex(m=>m.route.id&&(f==null?void 0:f[m.route.id])!==void 0);Fe(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,h=-1;if(o&&i){d=i.renderFallback;for(let x=0;x<u.length;x++){let m=u[x];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=x),m.route.id){let{loaderData:w,errors:T}=i,A=m.route.loader&&!w.hasOwnProperty(m.route.id)&&(!T||T[m.route.id]===void 0);if(m.route.lazy||A){o.isStatic&&(d=!0),h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}}let v=o==null?void 0:o.onError,p=i&&v?(x,m)=>{var w,T;v(x,{location:i.location,params:((T=(w=i.matches)==null?void 0:w[0])==null?void 0:T.params)??{},unstable_pattern:KS(i.matches),errorInfo:m})}:void 0;return u.reduceRight((x,m,w)=>{let T,A=!1,E=null,N=null;i&&(T=f&&m.route.id?f[m.route.id]:void 0,E=m.route.errorElement||c2,d&&(h<0&&w===0?(Rv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,N=null):h===w&&(A=!0,N=m.route.hydrateFallbackElement||null)));let C=r.concat(u.slice(0,w+1)),j=()=>{let D;return T?D=E:A?D=N:m.route.Component?D=b.createElement(m.route.Component,null):m.route.element?D=m.route.element:D=x,b.createElement(f2,{match:m,routeContext:{outlet:x,matches:C,isDataRoute:i!=null},children:D})};return i&&(m.route.ErrorBoundary||m.route.errorElement||w===0)?b.createElement(Av,{location:i.location,revalidation:i.revalidation,component:E,error:T,children:j(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:p}):j()},null)}function Vf(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function m2(a){let r=b.useContext(Nr);return Fe(r,Vf(a)),r}function h2(a){let r=b.useContext(As);return Fe(r,Vf(a)),r}function p2(a){let r=b.useContext(un);return Fe(r,Vf(a)),r}function Yf(a){let r=p2(a),o=r.matches[r.matches.length-1];return Fe(o.route.id,`${a} can only be used on routes that contain a unique "id"`),o.route.id}function g2(){return Yf("useRouteId")}function v2(){var i;let a=b.useContext(Hf),r=h2("useRouteError"),o=Yf("useRouteError");return a!==void 0?a:(i=r.errors)==null?void 0:i[o]}function y2(){let{router:a}=m2("useNavigate"),r=Yf("useNavigate"),o=b.useRef(!1);return Tv(()=>{o.current=!0}),b.useCallback(async(u,f={})=>{yn(o.current,Ev),o.current&&(typeof u=="number"?await a.navigate(u):await a.navigate(u,{fromRouteId:r,...f}))},[a,r])}var Eg={};function Rv(a,r,o){!r&&!Eg[a]&&(Eg[a]=!0,yn(!1,o))}b.memo(b2);function b2({routes:a,future:r,state:o,isStatic:i,onError:u}){return Cv(a,void 0,{state:o,isStatic:i,onError:u})}function Tg({to:a,replace:r,state:o,relative:i}){Fe(Cr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=b.useContext(Ft);yn(!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(un),{pathname:d}=Bn(),h=Nv(),v=Cs(a,Bf(f),d,i==="path"),p=JSON.stringify(v);return b.useEffect(()=>{h(JSON.parse(p),{replace:r,state:o,relative:i})},[h,p,i,r,o]),null}function x2(a){return o2(a.context)}function Sl(a){Fe(!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 S2({basename:a="/",children:r=null,location:o,navigationType:i="POP",navigator:u,static:f=!1,unstable_useTransitions:d}){Fe(!Cr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=a.replace(/^\/*/,"/"),v=b.useMemo(()=>({basename:h,navigator:u,static:f,unstable_useTransitions:d,future:{}}),[h,u,f,d]);typeof o=="string"&&(o=Tr(o));let{pathname:p="/",search:x="",hash:m="",state:w=null,key:T="default",unstable_mask:A}=o,E=b.useMemo(()=>{let N=oa(p,h);return N==null?null:{location:{pathname:N,search:x,hash:m,state:w,key:T,unstable_mask:A},navigationType:i}},[h,p,x,m,w,T,i,A]);return yn(E!=null,`<Router basename="${h}"> is not able to match the URL "${p}${x}${m}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:b.createElement(Ft.Provider,{value:v},b.createElement(jo.Provider,{children:r,value:E}))}function w2({children:a,location:r}){return i2(wf(a),r)}function wf(a,r=[]){let o=[];return b.Children.forEach(a,(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}Fe(i.type===Sl,`[${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>`),Fe(!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(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function E2(a){return Rs(a)&&a.tagName.toLowerCase()==="button"}function T2(a){return Rs(a)&&a.tagName.toLowerCase()==="form"}function N2(a){return Rs(a)&&a.tagName.toLowerCase()==="input"}function C2(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function A2(a,r){return a.button===0&&(!r||r==="_self")&&!C2(a)}var Wi=null;function R2(){if(Wi===null)try{new FormData(document.createElement("form"),0),Wi=!1}catch{Wi=!0}return Wi}var _2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function of(a){return a!=null&&!_2.has(a)?(yn(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fs}"`),null):a}function O2(a,r){let o,i,u,f,d;if(T2(a)){let h=a.getAttribute("action");i=h?oa(h,r):null,o=a.getAttribute("method")||us,u=of(a.getAttribute("enctype"))||fs,f=new FormData(a)}else if(E2(a)||N2(a)&&(a.type==="submit"||a.type==="image")){let h=a.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=a.getAttribute("formaction")||h.getAttribute("action");if(i=v?oa(v,r):null,o=a.getAttribute("formmethod")||h.getAttribute("method")||us,u=of(a.getAttribute("formenctype"))||of(h.getAttribute("enctype"))||fs,f=new FormData(h,a),!R2()){let{name:p,type:x,value:m}=a;if(x==="image"){let w=p?`${p}.`:"";f.append(`${w}x`,"0"),f.append(`${w}y`,"0")}else p&&f.append(p,m)}}else{if(Rs(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=us,i=null,u=fs,d=a}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(a,r){if(a===!1||a===null||typeof a>"u")throw new Error(r)}function M2(a,r,o,i){let u=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return o?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${i}`:u.pathname=`${u.pathname}.${i}`:u.pathname==="/"?u.pathname=`_root.${i}`:r&&oa(u.pathname,r)==="/"?u.pathname=`${r.replace(/\/$/,"")}/_root.${i}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${i}`,u}async function D2(a,r){if(a.id in r)return r[a.id];try{let o=await import(a.module);return r[a.id]=o,o}catch(o){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function j2(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function z2(a,r,o){let i=await Promise.all(a.map(async u=>{let f=r.routes[u.route.id];if(f){let d=await D2(f,o);return d.links?d.links():[]}return[]}));return B2(i.flat(1).filter(j2).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function Ng(a,r,o,i,u,f){let d=(v,p)=>o[p]?v.route.id!==o[p].route.id:!0,h=(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)||h(v,p)):f==="data"?r.filter((v,p)=>{var m;let x=i.routes[v.route.id];if(!x||!x.hasLoader)return!1;if(d(v,p)||h(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:((m=o[0])==null?void 0:m.params)||{},nextUrl:new URL(a,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function k2(a,r,{includeHydrateFallback:o}={}){return L2(a.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 L2(a){return[...new Set(a)]}function U2(a){let r={},o=Object.keys(a).sort();for(let i of o)r[i]=a[i];return r}function B2(a,r){let o=new Set;return new Set(r),a.reduce((i,u)=>{let f=JSON.stringify(U2(u));return o.has(f)||(o.add(f),i.push({key:f,link:u})),i},[])}function _v(){let a=b.useContext(Nr);return qf(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function H2(){let a=b.useContext(As);return qf(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var Gf=b.createContext(void 0);Gf.displayName="FrameworkContext";function Ov(){let a=b.useContext(Gf);return qf(a,"You must render this element inside a <HydratedRouter> element"),a}function V2(a,r){let o=b.useContext(Gf),[i,u]=b.useState(!1),[f,d]=b.useState(!1),{onFocus:h,onBlur:v,onMouseEnter:p,onMouseLeave:x,onTouchStart:m}=r,w=b.useRef(null);b.useEffect(()=>{if(a==="render"&&d(!0),a==="viewport"){let E=C=>{C.forEach(j=>{d(j.isIntersecting)})},N=new IntersectionObserver(E,{threshold:.5});return w.current&&N.observe(w.current),()=>{N.disconnect()}}},[a]),b.useEffect(()=>{if(i){let E=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(E)}}},[i]);let T=()=>{u(!0)},A=()=>{u(!1),d(!1)};return o?a!=="intent"?[f,w,{}]:[f,w,{onFocus:Co(h,T),onBlur:Co(v,A),onMouseEnter:Co(p,T),onMouseLeave:Co(x,A),onTouchStart:Co(m,T)}]:[!1,w,{}]}function Co(a,r){return o=>{a&&a(o),o.defaultPrevented||r(o)}}function Y2({page:a,...r}){let{router:o}=_v(),i=b.useMemo(()=>pv(o.routes,a,o.basename),[o.routes,a,o.basename]);return i?b.createElement(G2,{page:a,matches:i,...r}):null}function q2(a){let{manifest:r,routeModules:o}=Ov(),[i,u]=b.useState([]);return b.useEffect(()=>{let f=!1;return z2(a,r,o).then(d=>{f||u(d)}),()=>{f=!0}},[a,r,o]),i}function G2({page:a,matches:r,...o}){let i=Bn(),{future:u,manifest:f,routeModules:d}=Ov(),{basename:h}=_v(),{loaderData:v,matches:p}=H2(),x=b.useMemo(()=>Ng(a,r,p,f,i,"data"),[a,r,p,f,i]),m=b.useMemo(()=>Ng(a,r,p,f,i,"assets"),[a,r,p,f,i]),w=b.useMemo(()=>{if(a===i.pathname+i.search+i.hash)return[];let E=new Set,N=!1;if(r.forEach(j=>{var B;let D=f.routes[j.route.id];!D||!D.hasLoader||(!x.some(Z=>Z.route.id===j.route.id)&&j.route.id in v&&((B=d[j.route.id])!=null&&B.shouldRevalidate)||D.hasClientLoader?N=!0:E.add(j.route.id))}),E.size===0)return[];let C=M2(a,h,u.unstable_trailingSlashAwareDataRequests,"data");return N&&E.size>0&&C.searchParams.set("_routes",r.filter(j=>E.has(j.route.id)).map(j=>j.route.id).join(",")),[C.pathname+C.search]},[h,u.unstable_trailingSlashAwareDataRequests,v,i,f,x,r,a,d]),T=b.useMemo(()=>k2(m,f),[m,f]),A=q2(m);return b.createElement(b.Fragment,null,w.map(E=>b.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...o})),T.map(E=>b.createElement("link",{key:E,rel:"modulepreload",href:E,...o})),A.map(({key:E,link:N})=>b.createElement("link",{key:E,nonce:o.nonce,...N,crossOrigin:N.crossOrigin??o.crossOrigin})))}function $2(...a){return r=>{a.forEach(o=>{typeof o=="function"?o(r):o!=null&&(o.current=r)})}}var X2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{X2&&(window.__reactRouterVersion="7.13.2")}catch{}function Q2({basename:a,children:r,unstable_useTransitions:o,window:i}){let u=b.useRef();u.current==null&&(u.current=ES({window:i,v5Compat:!0}));let f=u.current,[d,h]=b.useState({action:f.action,location:f.location}),v=b.useCallback(p=>{o===!1?h(p):b.startTransition(()=>h(p))},[o]);return b.useLayoutEffect(()=>f.listen(v),[f,v]),b.createElement(S2,{basename:a,children:r,location:d.location,navigationType:d.action,navigator:f,unstable_useTransitions:o})}var Mv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dv=b.forwardRef(function({onClick:r,discover:o="render",prefetch:i="none",relative:u,reloadDocument:f,replace:d,unstable_mask:h,state:v,target:p,to:x,preventScrollReset:m,viewTransition:w,unstable_defaultShouldRevalidate:T,...A},E){let{basename:N,navigator:C,unstable_useTransitions:j}=b.useContext(Ft),D=typeof x=="string"&&Mv.test(x),B=bv(x,N);x=B.to;let Z=a2(x,{relative:u}),F=Bn(),q=null;if(h){let ue=Cs(h,[],F.unstable_mask?F.unstable_mask.pathname:"/",!0);N!=="/"&&(ue.pathname=ue.pathname==="/"?N:Ln([N,ue.pathname])),q=C.createHref(ue)}let[V,le,he]=V2(i,A),pe=P2(x,{replace:d,unstable_mask:h,state:v,target:p,preventScrollReset:m,relative:u,viewTransition:w,unstable_defaultShouldRevalidate:T,unstable_useTransitions:j});function fe(ue){r&&r(ue),ue.defaultPrevented||pe(ue)}let me=!(B.isExternal||f),ge=b.createElement("a",{...A,...he,href:(me?q:void 0)||B.absoluteURL||Z,onClick:me?fe:r,ref:$2(E,le),target:p,"data-discover":!D&&o==="render"?"true":void 0});return V&&!D?b.createElement(b.Fragment,null,ge,b.createElement(Y2,{page:Z})):ge});Dv.displayName="Link";var jv=b.forwardRef(function({"aria-current":r="page",caseSensitive:o=!1,className:i="",end:u=!1,style:f,to:d,viewTransition:h,children:v,...p},x){let m=zo(d,{relative:p.relative}),w=Bn(),T=b.useContext(As),{navigator:A,basename:E}=b.useContext(Ft),N=T!=null&&ew(m)&&h===!0,C=A.encodeLocation?A.encodeLocation(m).pathname:m.pathname,j=w.pathname,D=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;o||(j=j.toLowerCase(),D=D?D.toLowerCase():null,C=C.toLowerCase()),D&&E&&(D=oa(D,E)||D);const B=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let Z=j===C||!u&&j.startsWith(C)&&j.charAt(B)==="/",F=D!=null&&(D===C||!u&&D.startsWith(C)&&D.charAt(C.length)==="/"),q={isActive:Z,isPending:F,isTransitioning:N},V=Z?r:void 0,le;typeof i=="function"?le=i(q):le=[i,Z?"active":null,F?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let he=typeof f=="function"?f(q):f;return b.createElement(Dv,{...p,"aria-current":V,className:le,ref:x,style:he,to:d,viewTransition:h},typeof v=="function"?v(q):v)});jv.displayName="NavLink";var Z2=b.forwardRef(({discover:a="render",fetcherKey:r,navigate:o,reloadDocument:i,replace:u,state:f,method:d=us,action:h,onSubmit:v,relative:p,preventScrollReset:x,viewTransition:m,unstable_defaultShouldRevalidate:w,...T},A)=>{let{unstable_useTransitions:E}=b.useContext(Ft),N=I2(),C=W2(h,{relative:p}),j=d.toLowerCase()==="get"?"get":"post",D=typeof h=="string"&&Mv.test(h),B=Z=>{if(v&&v(Z),Z.defaultPrevented)return;Z.preventDefault();let F=Z.nativeEvent.submitter,q=(F==null?void 0:F.getAttribute("formmethod"))||d,V=()=>N(F||Z.currentTarget,{fetcherKey:r,method:q,navigate:o,replace:u,state:f,relative:p,preventScrollReset:x,viewTransition:m,unstable_defaultShouldRevalidate:w});E&&o!==!1?b.startTransition(()=>V()):V()};return b.createElement("form",{ref:A,method:j,action:C,onSubmit:i?v:B,...T,"data-discover":!D&&a==="render"?"true":void 0})});Z2.displayName="Form";function K2(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zv(a){let r=b.useContext(Nr);return Fe(r,K2(a)),r}function P2(a,{target:r,replace:o,unstable_mask:i,state:u,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:v,unstable_useTransitions:p}={}){let x=Nv(),m=Bn(),w=zo(a,{relative:d});return b.useCallback(T=>{if(A2(T,r)){T.preventDefault();let A=o!==void 0?o:_o(m)===_o(w),E=()=>x(a,{replace:A,unstable_mask:i,state:u,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:v});p?b.startTransition(()=>E()):E()}},[m,x,w,o,i,u,r,a,f,d,h,v,p])}var J2=0,F2=()=>`__${String(++J2)}__`;function I2(){let{router:a}=zv("useSubmit"),{basename:r}=b.useContext(Ft),o=g2(),i=a.fetch,u=a.navigate;return b.useCallback(async(f,d={})=>{let{action:h,method:v,encType:p,formData:x,body:m}=O2(f,r);if(d.navigate===!1){let w=d.fetcherKey||F2();await i(w,o,d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:m,formMethod:d.method||v,formEncType:d.encType||p,flushSync:d.flushSync})}else await u(d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:m,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 W2(a,{relative:r}={}){let{basename:o}=b.useContext(Ft),i=b.useContext(un);Fe(i,"useFormAction must be used inside a RouteContext");let[u]=i.matches.slice(-1),f={...zo(a||".",{relative:r})},d=Bn();if(a==null){f.search=d.search;let h=new URLSearchParams(f.search),v=h.getAll("index");if(v.some(x=>x==="")){h.delete("index"),v.filter(m=>m).forEach(m=>h.append("index",m));let x=h.toString();f.search=x?`?${x}`:""}}return(!a||a===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(f.pathname=f.pathname==="/"?o:Ln([o,f.pathname])),_o(f)}function ew(a,{relative:r}={}){let o=b.useContext(Sv);Fe(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=zv("useViewTransitionState"),u=zo(a,{relative:r});if(!o.isTransitioning)return!1;let f=oa(o.currentLocation.pathname,i)||o.currentLocation.pathname,d=oa(o.nextLocation.pathname,i)||o.nextLocation.pathname;return vs(u.pathname,d)!=null||vs(u.pathname,f)!=null}var ko=mv();const kv=dv(ko),tw="/api";function nw(a,r){if(typeof a=="string"&&a)return a;if(a&&typeof a=="object"){const o=a,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 De(a,r){const o=await fetch(`${tw}${a}`,{...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(nw(i,`HTTP ${o.status}`))}return o.json()}function aw(){return De("/system/info")}function z_(a){return De("/system/transport",{method:"POST",body:JSON.stringify({type:a})})}function lw(){return De("/cluster/state")}function k_(){return De("/cluster/promote",{method:"POST"})}function L_(a){return De("/cluster/connect",{method:"POST",body:JSON.stringify(a)})}function U_(){return De("/cluster/disconnect",{method:"POST"})}function rw(a){return De(`/node-operations/${a}`)}function ow(a,r){return De(`/nodes/${a}/agents/${r}/upgrade`,{method:"POST"})}function B_(a,r){return De(`/nodes/${a}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:r})})}function H_(a,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 De(`/nodes/${a}/workdir/tree${i?`?${i}`:""}`)}function V_(a,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 De(`/nodes/${a}/workdir/branch${i?`?${i}`:""}`)}function Y_(a,r){const o=new URLSearchParams;return o.set("agent",r.agent),o.set("limit",String(Math.min(Math.max(1,r.limit),100))),De(`/nodes/${a}/native-sessions?${o.toString()}`)}function q_(a,r){return De(`/nodes/${a}/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})})}async function G_(a){const r=new URLSearchParams;a!=null&&a.status&&r.set("status",a.status),a!=null&&a.assignedTo&&r.set("assignedTo",a.assignedTo),a!=null&&a.priority&&r.set("priority",a.priority);{const u=Math.min(Math.max(1,a.limit),100);r.set("limit",String(u))}a!=null&&a.offset&&r.set("offset",String(a.offset));const o=r.toString();return(await De(`/tasks${o?`?${o}`:""}`)).tasks}function $_(a){return De(`/tasks/${a}`)}function X_(a){return De("/tasks",{method:"POST",body:JSON.stringify(a)})}function Q_(a){return De("/tasks/import-session",{method:"POST",body:JSON.stringify(a)})}function Z_(a){return De("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:a})})}function K_(a){return De("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:a})})}function P_(a){return De(`/tasks/${a}/cancel`,{method:"POST"})}function J_(a){return De(`/tasks/${a}/retry`,{method:"POST"})}function F_(a,r){return De(`/tasks/${a}/logs`)}function I_(a,r){return De(`/tasks/${a}/message`,{method:"POST",body:JSON.stringify({content:r})})}function W_(a,r){return De(`/tasks/${a}/share`,{method:"POST",body:JSON.stringify(r)})}function e5(a){return De(`/tasks/${a}/share`,{method:"DELETE"})}function t5(a){return De(`/shared/conversations/${encodeURIComponent(a)}`)}function n5(a,r){return De(`/shared/conversations/${encodeURIComponent(a)}/logs`)}function a5(a){return De(`/shared/conversations/${encodeURIComponent(a)}/output`)}function l5(a,r="."){return De(`/shared/conversations/${encodeURIComponent(a)}/output/tree?path=${encodeURIComponent(r)}`)}function r5(a,r){return De(`/shared/conversations/${encodeURIComponent(a)}/output/content?path=${encodeURIComponent(r)}`)}function o5(a,r){return De(`/shared/conversations/${encodeURIComponent(a)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(r?{path:r}:{})})}function iw(a){return a?typeof a=="string"?{path:a}:{...a.path?{path:a.path}:{},...a.port!==void 0?{port:a.port}:{}}:{}}function i5(a){return De(`/tasks/${a}/output`)}function s5(a,r="."){return De(`/tasks/${a}/output/tree?path=${encodeURIComponent(r)}`)}function c5(a,r){return De(`/tasks/${a}/output/content?path=${encodeURIComponent(r)}`)}function u5(a,r){return De(`/tasks/${a}/output/preview-sessions`,{method:"POST",body:JSON.stringify(iw(r))})}function f5(a){return De(`/tasks/${a}/output/diff`)}function sw(a,r,o=!0){const i=b.useRef(a);b.useEffect(()=>{i.current=a},[a]),b.useEffect(()=>{if(!o)return;const u=()=>i.current();u();const f=setInterval(u,r);return()=>clearInterval(f)},[r,o])}let cw=0;function uw(a=50){const[r,o]=b.useState([]),[i,u]=b.useState(!1),f=b.useRef(null),d=b.useRef(0),h=b.useRef(new Map);b.useEffect(()=>{const x=new EventSource("/api/events");f.current=x,x.onopen=()=>u(!0),x.onerror=()=>u(!1);const m=["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 m)x.addEventListener(w,T=>{const A={id:String(++cw),type:w,data:JSON.parse(T.data),timestamp:Date.now()};o(E=>[A,...E].slice(0,a));for(const[,{pattern:E,callback:N}]of h.current)w.startsWith(E)&&N(A)});return()=>{x.close(),f.current=null,u(!1)}},[a]);const v=b.useCallback((x,m)=>{const w=++d.current;return h.current.set(w,{pattern:x,callback:m}),()=>{h.current.delete(w)}},[]),p=b.useCallback(()=>o([]),[]);return{events:r,connected:i,subscribe:v,clearEvents:p}}const Lv=b.createContext(null);function fw({children:a}){const[r,o]=b.useState(null),[i,u]=b.useState(null),[f,d]=b.useState(!0),[h,v]=b.useState(null),{events:p,connected:x,subscribe:m}=uw(),w=b.useCallback(async()=>{try{const[T,A]=await Promise.all([lw(),aw()]),E=T,N=A.nodeId??A.id,C=E.nodes??[],j=C.find(B=>B.id===N)??{id:N,name:A.name,endpoint:A.endpoint,role:A.role,status:A.status,capabilities:A.capabilities,joinedAt:A.joinedAt,lastHeartbeat:A.lastHeartbeat},D=E.leaderId?C.find(B=>B.id===E.leaderId)??null:null;o({leader:D?{id:D.id,name:D.name,endpoint:D.endpoint,...D.dashboardOrigin?{dashboardOrigin:D.dashboardOrigin}:{}}:null,term:E.term??0,nodes:C,self:j,taskSummary:E.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}}),u(A),v(null)}catch(T){v(T instanceof Error?T.message:"Failed to fetch cluster state")}finally{d(!1)}},[]);return sw(w,1e4),b.useEffect(()=>{const T=[m("cluster",w),m("election",w),m("node",w),m("transport",w),m("task",w)];return()=>T.forEach(A=>A())},[m,w]),y.jsx(Lv.Provider,{value:{cluster:r,systemInfo:i,events:p,sseConnected:x,subscribe:m,refresh:w,loading:f,error:h},children:a})}function Uv(){const a=b.useContext(Lv);if(!a)throw new Error("useCluster must be used within ClusterProvider");return a}/**
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 Bv=(...a)=>a.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 dw=a=>a.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 mw=a=>a.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=a=>{const r=mw(a);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 hw=a=>{for(const r in a)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},pw=b.createContext({}),gw=()=>b.useContext(pw),vw=b.forwardRef(({color:a,size:r,strokeWidth:o,absoluteStrokeWidth:i,className:u="",children:f,iconNode:d,...h},v)=>{const{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:m=!1,color:w="currentColor",className:T=""}=gw()??{},A=i??m?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:a??w,strokeWidth:A,className:Bv("lucide",T,u),...!f&&!hw(h)&&{"aria-hidden":"true"},...h},[...d.map(([E,N])=>b.createElement(E,N)),...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 We=(a,r)=>{const o=b.forwardRef(({className:i,...u},f)=>b.createElement(vw,{ref:f,iconNode:r,className:Bv(`lucide-${dw(Cg(a))}`,`lucide-${a}`,i),...u}));return o.displayName=Cg(a),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 yw=[["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"}]],Hv=We("activity",yw);/**
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 bw=[["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"}]],xw=We("book-open",bw);/**
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 Sw=[["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"}]],Vv=We("bot",Sw);/**
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 ww=[["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"}]],Ew=We("cable",ww);/**
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 Tw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Nw=We("check",Tw);/**
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 Cw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Yv=We("chevron-down",Cw);/**
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 Aw=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Rw=We("chevron-up",Aw);/**
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 _w=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ow=We("circle-check",_w);/**
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 Mw=[["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"}]],Dw=We("circle-x",Mw);/**
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 jw=[["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"}]],zw=We("copy",jw);/**
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 kw=[["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"}]],Lw=We("cpu",kw);/**
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 Uw=[["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"}]],Bw=We("external-link",Uw);/**
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 Hw=[["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"}]],Vw=We("folder-tree",Hw);/**
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 Yw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],qw=We("info",Yw);/**
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 Gw=[["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"}]],$w=We("monitor-cog",Gw);/**
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 Xw=[["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"}]],Qw=We("monitor",Xw);/**
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 Zw=[["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"}]],Kw=We("moon",Zw);/**
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 Pw=[["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=We("radio",Pw);/**
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 Jw=[["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"}]],Fw=We("server",Jw);/**
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 Iw=[["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"}]],Ww=We("settings",Iw);/**
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 eE=[["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"}]],tE=We("shield",eE);/**
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 nE=[["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"}]],aE=We("sun",nE);/**
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 lE=[["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"}]],rE=We("wifi-off",lE);/**
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 oE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Gv=We("x",oE);function Ag(a,r){if(typeof a=="function")return a(r);a!=null&&(a.current=r)}function $f(...a){return r=>{let o=!1;const i=a.map(u=>{const f=Ag(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():Ag(a[u],null)}}}}function Ie(...a){return b.useCallback($f(...a),a)}var iE=Symbol.for("react.lazy"),ys=Uf[" use ".trim().toString()];function sE(a){return typeof a=="object"&&a!==null&&"then"in a}function $v(a){return a!=null&&typeof a=="object"&&"$$typeof"in a&&a.$$typeof===iE&&"_payload"in a&&sE(a._payload)}function cE(a){const r=fE(a),o=b.forwardRef((i,u)=>{let{children:f,...d}=i;$v(f)&&typeof ys=="function"&&(f=ys(f._payload));const h=b.Children.toArray(f),v=h.find(mE);if(v){const p=v.props.children,x=h.map(m=>m===v?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:m);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=`${a}.Slot`,o}var uE=cE("Slot");function fE(a){const r=b.forwardRef((o,i)=>{let{children:u,...f}=o;if($v(u)&&typeof ys=="function"&&(u=ys(u._payload)),b.isValidElement(u)){const d=pE(u),h=hE(f,u.props);return u.type!==b.Fragment&&(h.ref=i?$f(i,d):d),b.cloneElement(u,h)}return b.Children.count(u)>1?b.Children.only(null):null});return r.displayName=`${a}.SlotClone`,r}var dE=Symbol("radix.slottable");function mE(a){return b.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===dE}function hE(a,r){const o={...r};for(const i in r){const u=a[i],f=r[i];/^on[A-Z]/.test(i)?u&&f?o[i]=(...h)=>{const v=f(...h);return u(...h),v}:u&&(o[i]=u):i==="style"?o[i]={...u,...f}:i==="className"&&(o[i]=[u,f].filter(Boolean).join(" "))}return{...a,...o}}function pE(a){var i,u;let r=(i=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?a.ref:(r=(u=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:u.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?a.props.ref:a.props.ref||a.ref)}function Xv(a){var r,o,i="";if(typeof a=="string"||typeof a=="number")i+=a;else if(typeof a=="object")if(Array.isArray(a)){var u=a.length;for(r=0;r<u;r++)a[r]&&(o=Xv(a[r]))&&(i&&(i+=" "),i+=o)}else for(o in a)a[o]&&(i&&(i+=" "),i+=o);return i}function Qv(){for(var a,r,o=0,i="",u=arguments.length;o<u;o++)(a=arguments[o])&&(r=Xv(a))&&(i&&(i+=" "),i+=r);return i}const Rg=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,_g=Qv,Zv=(a,r)=>o=>{var i;if((r==null?void 0:r.variants)==null)return _g(a,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],m=f==null?void 0:f[p];if(x===null)return null;const w=Rg(x)||Rg(m);return u[p][w]}),h=o&&Object.entries(o).reduce((p,x)=>{let[m,w]=x;return w===void 0||(p[m]=w),p},{}),v=r==null||(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((p,x)=>{let{class:m,className:w,...T}=x;return Object.entries(T).every(A=>{let[E,N]=A;return Array.isArray(N)?N.includes({...f,...h}[E]):{...f,...h}[E]===N})?[...p,m,w]:p},[]);return _g(a,d,v,o==null?void 0:o.class,o==null?void 0:o.className)},gE=(a,r)=>{const o=new Array(a.length+r.length);for(let i=0;i<a.length;i++)o[i]=a[i];for(let i=0;i<r.length;i++)o[a.length+i]=r[i];return o},vE=(a,r)=>({classGroupId:a,validator:r}),Kv=(a=new Map,r=null,o)=>({nextPart:a,validators:r,classGroupId:o}),bs="-",Og=[],yE="arbitrary..",bE=a=>{const r=SE(a),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=a;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return xE(d);const h=d.split(bs),v=h[0]===""&&h.length>1?1:0;return Pv(h,v,r)},getConflictingClassGroupIds:(d,h)=>{if(h){const v=i[d],p=o[d];return v?p?gE(p,v):v:p||Og}return o[d]||Og}}},Pv=(a,r,o)=>{if(a.length-r===0)return o.classGroupId;const u=a[r],f=o.nextPart.get(u);if(f){const p=Pv(a,r+1,f);if(p)return p}const d=o.validators;if(d===null)return;const h=r===0?a.join(bs):a.slice(r).join(bs),v=d.length;for(let p=0;p<v;p++){const x=d[p];if(x.validator(h))return x.classGroupId}},xE=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=a.slice(1,-1),o=r.indexOf(":"),i=r.slice(0,o);return i?yE+i:void 0})(),SE=a=>{const{theme:r,classGroups:o}=a;return wE(o,r)},wE=(a,r)=>{const o=Kv();for(const i in a){const u=a[i];Xf(u,o,i,r)}return o},Xf=(a,r,o,i)=>{const u=a.length;for(let f=0;f<u;f++){const d=a[f];EE(d,r,o,i)}},EE=(a,r,o,i)=>{if(typeof a=="string"){TE(a,r,o);return}if(typeof a=="function"){NE(a,r,o,i);return}CE(a,r,o,i)},TE=(a,r,o)=>{const i=a===""?r:Jv(r,a);i.classGroupId=o},NE=(a,r,o,i)=>{if(AE(a)){Xf(a(i),r,o,i);return}r.validators===null&&(r.validators=[]),r.validators.push(vE(o,a))},CE=(a,r,o,i)=>{const u=Object.entries(a),f=u.length;for(let d=0;d<f;d++){const[h,v]=u[d];Xf(v,Jv(r,h),o,i)}},Jv=(a,r)=>{let o=a;const i=r.split(bs),u=i.length;for(let f=0;f<u;f++){const d=i[f];let h=o.nextPart.get(d);h||(h=Kv(),o.nextPart.set(d,h)),o=h}return o},AE=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,RE=a=>{if(a<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),i=Object.create(null);const u=(f,d)=>{o[f]=d,r++,r>a&&(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="!",Mg=":",_E=[],Dg=(a,r,o,i,u)=>({modifiers:a,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:i,isExternal:u}),OE=a=>{const{prefix:r,experimentalParseClassName:o}=a;let i=u=>{const f=[];let d=0,h=0,v=0,p;const x=u.length;for(let E=0;E<x;E++){const N=u[E];if(d===0&&h===0){if(N===Mg){f.push(u.slice(v,E)),v=E+1;continue}if(N==="/"){p=E;continue}}N==="["?d++:N==="]"?d--:N==="("?h++:N===")"&&h--}const m=f.length===0?u:u.slice(v);let w=m,T=!1;m.endsWith(Ef)?(w=m.slice(0,-1),T=!0):m.startsWith(Ef)&&(w=m.slice(1),T=!0);const A=p&&p>v?p-v:void 0;return Dg(f,T,w,A)};if(r){const u=r+Mg,f=i;i=d=>d.startsWith(u)?f(d.slice(u.length)):Dg(_E,!1,d,void 0,!0)}if(o){const u=i;i=f=>o({className:f,parseClassName:u})}return i},ME=a=>{const r=new Map;return a.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],h=d[0]==="[",v=r.has(d);h||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}},DE=a=>({cache:RE(a.cacheSize),parseClassName:OE(a),sortModifiers:ME(a),...bE(a)}),jE=/\s+/,zE=(a,r)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:u,sortModifiers:f}=r,d=[],h=a.trim().split(jE);let v="";for(let p=h.length-1;p>=0;p-=1){const x=h[p],{isExternal:m,modifiers:w,hasImportantModifier:T,baseClassName:A,maybePostfixModifierPosition:E}=o(x);if(m){v=x+(v.length>0?" "+v:v);continue}let N=!!E,C=i(N?A.substring(0,E):A);if(!C){if(!N){v=x+(v.length>0?" "+v:v);continue}if(C=i(A),!C){v=x+(v.length>0?" "+v:v);continue}N=!1}const j=w.length===0?"":w.length===1?w[0]:f(w).join(":"),D=T?j+Ef:j,B=D+C;if(d.indexOf(B)>-1)continue;d.push(B);const Z=u(C,N);for(let F=0;F<Z.length;++F){const q=Z[F];d.push(D+q)}v=x+(v.length>0?" "+v:v)}return v},kE=(...a)=>{let r=0,o,i,u="";for(;r<a.length;)(o=a[r++])&&(i=Fv(o))&&(u&&(u+=" "),u+=i);return u},Fv=a=>{if(typeof a=="string")return a;let r,o="";for(let i=0;i<a.length;i++)a[i]&&(r=Fv(a[i]))&&(o&&(o+=" "),o+=r);return o},LE=(a,...r)=>{let o,i,u,f;const d=v=>{const p=r.reduce((x,m)=>m(x),a());return o=DE(p),i=o.cache.get,u=o.cache.set,f=h,h(v)},h=v=>{const p=i(v);if(p)return p;const x=zE(v,o);return u(v,x),x};return f=d,(...v)=>f(kE(...v))},UE=[],ft=a=>{const r=o=>o[a]||UE;return r.isThemeGetter=!0,r},Iv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Wv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,BE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,HE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,VE=/\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$/,YE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,GE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ba=a=>BE.test(a),Ae=a=>!!a&&!Number.isNaN(Number(a)),Ha=a=>!!a&&Number.isInteger(Number(a)),cf=a=>a.endsWith("%")&&Ae(a.slice(0,-1)),ra=a=>HE.test(a),ey=()=>!0,$E=a=>VE.test(a)&&!YE.test(a),Qf=()=>!1,XE=a=>qE.test(a),QE=a=>GE.test(a),ZE=a=>!se(a)&&!ce(a),KE=a=>Za(a,ay,Qf),se=a=>Iv.test(a),bl=a=>Za(a,ly,$E),jg=a=>Za(a,nT,Ae),PE=a=>Za(a,oy,ey),JE=a=>Za(a,ry,Qf),zg=a=>Za(a,ty,Qf),FE=a=>Za(a,ny,QE),es=a=>Za(a,iy,XE),ce=a=>Wv.test(a),Ao=a=>Al(a,ly),IE=a=>Al(a,ry),kg=a=>Al(a,ty),WE=a=>Al(a,ay),eT=a=>Al(a,ny),ts=a=>Al(a,iy,!0),tT=a=>Al(a,oy,!0),Za=(a,r,o)=>{const i=Iv.exec(a);return i?i[1]?r(i[1]):o(i[2]):!1},Al=(a,r,o=!1)=>{const i=Wv.exec(a);return i?i[1]?r(i[1]):o:!1},ty=a=>a==="position"||a==="percentage",ny=a=>a==="image"||a==="url",ay=a=>a==="length"||a==="size"||a==="bg-size",ly=a=>a==="length",nT=a=>a==="number",ry=a=>a==="family-name",oy=a=>a==="number"||a==="weight",iy=a=>a==="shadow",aT=()=>{const a=ft("color"),r=ft("font"),o=ft("text"),i=ft("font-weight"),u=ft("tracking"),f=ft("leading"),d=ft("breakpoint"),h=ft("container"),v=ft("spacing"),p=ft("radius"),x=ft("shadow"),m=ft("inset-shadow"),w=ft("text-shadow"),T=ft("drop-shadow"),A=ft("blur"),E=ft("perspective"),N=ft("aspect"),C=ft("ease"),j=ft("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"],Z=()=>[...B(),ce,se],F=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],V=()=>[ce,se,v],le=()=>[Ba,"full","auto",...V()],he=()=>[Ha,"none","subgrid",ce,se],pe=()=>["auto",{span:["full",Ha,ce,se]},Ha,ce,se],fe=()=>[Ha,"auto",ce,se],me=()=>["auto","min","max","fr",ce,se],ge=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...V()],Y=()=>[Ba,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],J=()=>[Ba,"screen","full","dvw","lvw","svw","min","max","fit",...V()],re=()=>[Ba,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],I=()=>[a,ce,se],_=()=>[...B(),kg,zg,{position:[ce,se]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",WE,KE,{size:[ce,se]}],W=()=>[cf,Ao,bl],P=()=>["","none","full",p,ce,se],ne=()=>["",Ae,Ao,bl],ee=()=>["solid","dashed","dotted","double"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[Ae,cf,kg,zg],Ce=()=>["","none",A,ce,se],we=()=>["none",Ae,ce,se],xe=()=>["none",Ae,ce,se],tt=()=>[Ae,ce,se],Xe=()=>[Ba,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ra],breakpoint:[ra],color:[ey],container:[ra],"drop-shadow":[ra],ease:["in","out","in-out"],font:[ZE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ra],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ra],shadow:[ra],spacing:["px",Ae],text:[ra],"text-shadow":[ra],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ba,se,ce,N]}],container:["container"],columns:[{columns:[Ae,se,ce,h]}],"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:Z()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:le()}],"inset-x":[{"inset-x":le()}],"inset-y":[{"inset-y":le()}],start:[{"inset-s":le(),start:le()}],end:[{"inset-e":le(),end:le()}],"inset-bs":[{"inset-bs":le()}],"inset-be":[{"inset-be":le()}],top:[{top:le()}],right:[{right:le()}],bottom:[{bottom:le()}],left:[{left:le()}],visibility:["visible","invisible","collapse"],z:[{z:[Ha,"auto",ce,se]}],basis:[{basis:[Ba,"full","auto",h,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ae,Ba,"auto","initial","none",se]}],grow:[{grow:["",Ae,ce,se]}],shrink:[{shrink:["",Ae,ce,se]}],order:[{order:[Ha,"first","last","none",ce,se]}],"grid-cols":[{"grid-cols":he()}],"col-start-end":[{col:pe()}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":he()}],"row-start-end":[{row:pe()}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":me()}],"auto-rows":[{"auto-rows":me()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...ge(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...ge()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":ge()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],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",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...re()]}],"min-block-size":[{"min-block":["auto",...re()]}],"max-block-size":[{"max-block":["none",...re()]}],w:[{w:[h,"screen",...Y()]}],"min-w":[{"min-w":[h,"screen","none",...Y()]}],"max-w":[{"max-w":[h,"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,bl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,tT,PE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",cf,se]}],"font-family":[{font:[IE,JE,r]}],"font-features":[{"font-features":[se]}],"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,ce,se]}],"line-clamp":[{"line-clamp":[Ae,"none",ce,jg]}],leading:[{leading:[f,...V()]}],"list-image":[{"list-image":["none",ce,se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,se]}],"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:[Ae,"from-font","auto",ce,bl]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Ae,"auto",ce,se]}],"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",ce,se]}],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",ce,se]}],"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"]},Ha,ce,se],radial:["",ce,se],conic:[Ha,ce,se]},eT,FE]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-bs":[{"border-bs":ne()}],"border-w-be":[{"border-be":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"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":[Ae,ce,se]}],"outline-w":[{outline:["",Ae,Ao,bl]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",x,ts,es]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",m,ts,es]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Ae,bl]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",w,ts,es]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Ae,ce,se]}],"mix-blend":[{"mix-blend":[...ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ae()}],"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":[Ae]}],"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":[ce,se]}],"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":[Ae]}],"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",ce,se]}],filter:[{filter:["","none",ce,se]}],blur:[{blur:Ce()}],brightness:[{brightness:[Ae,ce,se]}],contrast:[{contrast:[Ae,ce,se]}],"drop-shadow":[{"drop-shadow":["","none",T,ts,es]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",Ae,ce,se]}],"hue-rotate":[{"hue-rotate":[Ae,ce,se]}],invert:[{invert:["",Ae,ce,se]}],saturate:[{saturate:[Ae,ce,se]}],sepia:[{sepia:["",Ae,ce,se]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,se]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[Ae,ce,se]}],"backdrop-contrast":[{"backdrop-contrast":[Ae,ce,se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ae,ce,se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ae,ce,se]}],"backdrop-invert":[{"backdrop-invert":["",Ae,ce,se]}],"backdrop-opacity":[{"backdrop-opacity":[Ae,ce,se]}],"backdrop-saturate":[{"backdrop-saturate":[Ae,ce,se]}],"backdrop-sepia":[{"backdrop-sepia":["",Ae,ce,se]}],"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",ce,se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ae,"initial",ce,se]}],ease:[{ease:["linear","initial",C,ce,se]}],delay:[{delay:[Ae,ce,se]}],animate:[{animate:["none",j,ce,se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ce,se]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:we()}],"rotate-x":[{"rotate-x":we()}],"rotate-y":[{"rotate-y":we()}],"rotate-z":[{"rotate-z":we()}],scale:[{scale:xe()}],"scale-x":[{"scale-x":xe()}],"scale-y":[{"scale-y":xe()}],"scale-z":[{"scale-z":xe()}],"scale-3d":["scale-3d"],skew:[{skew:tt()}],"skew-x":[{"skew-x":tt()}],"skew-y":[{"skew-y":tt()}],transform:[{transform:[ce,se,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Xe()}],"translate-x":[{"translate-x":Xe()}],"translate-y":[{"translate-y":Xe()}],"translate-z":[{"translate-z":Xe()}],"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",ce,se]}],"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",ce,se]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[Ae,Ao,bl,jg]}],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"]}},lT=LE(aT);function Ne(...a){return lT(Qv(a))}const Zf=Zv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),wl=b.forwardRef(({className:a,variant:r,size:o,asChild:i=!1,...u},f)=>{const d=i?uE:"button";return y.jsx(d,{className:Ne(Zf({variant:r,size:o,className:a})),ref:f,...u})});wl.displayName="Button";const sy=b.createContext(null);function rT({children:a}){const[r,o]=b.useState(()=>typeof window<"u"?localStorage.getItem("meshy-theme")??"system":"system");return b.useEffect(()=>{const i=document.documentElement,u=f=>{if(f==="system"){const d=window.matchMedia("(prefers-color-scheme: dark)").matches;i.classList.toggle("dark",d)}else i.classList.toggle("dark",f==="dark")};if(u(r),localStorage.setItem("meshy-theme",r),r==="system"){const f=window.matchMedia("(prefers-color-scheme: dark)"),d=()=>u("system");return f.addEventListener("change",d),()=>f.removeEventListener("change",d)}},[r]),y.jsx(sy.Provider,{value:{theme:r,setTheme:o},children:a})}function oT(){const a=b.useContext(sy);if(!a)throw new Error("useTheme must be used within ThemeProvider");return a}const iT=Zv("inline-flex items-center rounded-full 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 St({className:a,variant:r,...o}){return y.jsx("div",{className:Ne(iT({variant:r}),a),...o})}const sT={online:"bg-green-500",busy:"bg-yellow-500",offline:"bg-red-500"};function cy({status:a}){return y.jsxs("span",{className:"relative inline-flex h-2.5 w-2.5",children:[a==="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:Ne("relative inline-flex h-2.5 w-2.5 rounded-full",sT[a])})]})}function cT({role:a}){return y.jsx(St,{variant:a==="leader"?"default":"secondary",className:"text-[11px]",children:a})}const uT={pending:{variant:"secondary",dotClass:"bg-muted-foreground"},assigned:{variant:"outline",dotClass:"bg-teal-500"},running:{variant:"outline",dotClass:"bg-amber-500"},completed:{variant:"outline",dotClass:"bg-green-500"},failed:{variant:"destructive",dotClass:"bg-red-300"},cancelled:{variant:"secondary",dotClass:"bg-muted-foreground"},archived:{variant:"secondary",dotClass:"bg-slate-400"}};function d5({status:a}){const r=uT[a];return y.jsxs(St,{variant:r.variant,className:"gap-1.5 text-[11px] font-medium",children:[y.jsx("span",{className:Ne("h-1.5 w-1.5 rounded-full",r.dotClass)}),a]})}const fT={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function m5({priority:a}){const r=fT[a];return y.jsx(St,{variant:r.variant,className:"text-[11px]",children:r.label})}function dT(a){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=a:o.appendChild(document.createTextNode(a))}const mT=a=>{switch(a){case"success":return gT;case"info":return yT;case"warning":return vT;case"error":return bT;default:return null}},hT=Array(12).fill(0),pT=({visible:a,className:r})=>te.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":a},te.createElement("div",{className:"sonner-spinner"},hT.map((o,i)=>te.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),gT=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"})),vT=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"})),yT=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"})),bT=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"})),xT=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"})),ST=()=>{const[a,r]=te.useState(document.hidden);return te.useEffect(()=>{const o=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),a};let Tf=1;class wT{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:Tf++,d=this.toasts.find(v=>v.id===f),h=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:h,title:i}):v):this.addToast({title:i,...u,dismissible:h,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 h=u.then(async p=>{if(d=["resolve",p],te.isValidElement(p))f=!1,this.create({id:i,type:"default",message:p});else if(TT(p)&&!p.ok){f=!1;const m=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,A=typeof m=="object"&&!te.isValidElement(m)?m:{message:m};this.create({id:i,type:"error",description:w,...A})}else if(p instanceof Error){f=!1;const m=typeof o.error=="function"?await o.error(p):o.error,w=typeof o.description=="function"?await o.description(p):o.description,A=typeof m=="object"&&!te.isValidElement(m)?m:{message:m};this.create({id:i,type:"error",description:w,...A})}else if(o.success!==void 0){f=!1;const m=typeof o.success=="function"?await o.success(p):o.success,w=typeof o.description=="function"?await o.description(p):o.description,A=typeof m=="object"&&!te.isValidElement(m)?m:{message:m};this.create({id:i,type:"success",description:w,...A})}}).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,m=typeof o.description=="function"?await o.description(p):o.description,T=typeof x=="object"&&!te.isValidElement(x)?x:{message:x};this.create({id:i,type:"error",description:m,...T})}}).finally(()=>{f&&(this.dismiss(i),i=void 0),o.finally==null||o.finally.call(o)}),v=()=>new Promise((p,x)=>h.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)||Tf++;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 Vt=new wT,ET=(a,r)=>{const o=(r==null?void 0:r.id)||Tf++;return Vt.addToast({title:a,...r,id:o}),o},TT=a=>a&&typeof a=="object"&&"ok"in a&&typeof a.ok=="boolean"&&"status"in a&&typeof a.status=="number",NT=ET,CT=()=>Vt.toasts,AT=()=>Vt.getActiveToasts(),Ya=Object.assign(NT,{success:Vt.success,info:Vt.info,warning:Vt.warning,error:Vt.error,custom:Vt.custom,message:Vt.message,promise:Vt.promise,dismiss:Vt.dismiss,loading:Vt.loading},{getHistory:CT,getToasts:AT});dT("[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(a){return a.label!==void 0}const RT=3,_T="24px",OT="16px",Lg=4e3,MT=356,DT=14,jT=45,zT=200;function Rn(...a){return a.filter(Boolean).join(" ")}function kT(a){const[r,o]=a.split("-"),i=[];return r&&i.push(r),o&&i.push(o),i}const LT=a=>{var r,o,i,u,f,d,h,v,p;const{invert:x,toast:m,unstyled:w,interacting:T,setHeights:A,visibleToasts:E,heights:N,index:C,toasts:j,expanded:D,removeToast:B,defaultRichColors:Z,closeButton:F,style:q,cancelButtonStyle:V,actionButtonStyle:le,className:he="",descriptionClassName:pe="",duration:fe,position:me,gap:ge,expandByDefault:ue,classNames:O,icons:Y,closeButtonAriaLabel:J="Close toast"}=a,[re,I]=te.useState(null),[_,G]=te.useState(null),[X,W]=te.useState(!1),[P,ne]=te.useState(!1),[ee,ae]=te.useState(!1),[ie,Ce]=te.useState(!1),[we,xe]=te.useState(!1),[tt,Xe]=te.useState(0),[fn,It]=te.useState(0),Yt=te.useRef(m.duration||fe||Lg),Ja=te.useRef(null),dt=te.useRef(null),Or=C===0,Mr=C+1<=E,Ct=m.type,fa=m.dismissible!==!1,At=m.className||"",Vs=m.descriptionClassName||"",Fa=te.useMemo(()=>N.findIndex(be=>be.toastId===m.id)||0,[N,m.id]),Ho=te.useMemo(()=>{var be;return(be=m.closeButton)!=null?be:F},[m.closeButton,F]),Ia=te.useMemo(()=>m.duration||fe||Lg,[m.duration,fe]),Dr=te.useRef(0),Vn=te.useRef(0),Vo=te.useRef(0),da=te.useRef(null),[Wa,Rt]=me.split("-"),dn=te.useMemo(()=>N.reduce((be,Pe,mt)=>mt>=Fa?be:be+Pe.height,0),[N,Fa]),wt=ST(),Ys=m.invert||x,jr=Ct==="loading";Vn.current=te.useMemo(()=>Fa*ge+dn,[Fa,dn]),te.useEffect(()=>{Yt.current=Ia},[Ia]),te.useEffect(()=>{W(!0)},[]),te.useEffect(()=>{const be=dt.current;if(be){const Pe=be.getBoundingClientRect().height;return It(Pe),A(mt=>[{toastId:m.id,height:Pe,position:m.position},...mt]),()=>A(mt=>mt.filter(Et=>Et.toastId!==m.id))}},[A,m.id]),te.useLayoutEffect(()=>{if(!X)return;const be=dt.current,Pe=be.style.height;be.style.height="auto";const mt=be.getBoundingClientRect().height;be.style.height=Pe,It(mt),A(Et=>Et.find(et=>et.toastId===m.id)?Et.map(et=>et.toastId===m.id?{...et,height:mt}:et):[{toastId:m.id,height:mt,position:m.position},...Et])},[X,m.title,m.description,A,m.id,m.jsx,m.action,m.cancel]);const wn=te.useCallback(()=>{ne(!0),Xe(Vn.current),A(be=>be.filter(Pe=>Pe.toastId!==m.id)),setTimeout(()=>{B(m)},zT)},[m,B,A,Vn]);te.useEffect(()=>{if(m.promise&&Ct==="loading"||m.duration===1/0||m.type==="loading")return;let be;return D||T||wt?(()=>{if(Vo.current<Dr.current){const Et=new Date().getTime()-Dr.current;Yt.current=Yt.current-Et}Vo.current=new Date().getTime()})():(()=>{Yt.current!==1/0&&(Dr.current=new Date().getTime(),be=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),wn()},Yt.current))})(),()=>clearTimeout(be)},[D,T,m,Ct,wt,wn]),te.useEffect(()=>{m.delete&&(wn(),m.onDismiss==null||m.onDismiss.call(m,m))},[wn,m.delete]);function _l(){var be;if(Y!=null&&Y.loading){var Pe;return te.createElement("div",{className:Rn(O==null?void 0:O.loader,m==null||(Pe=m.classNames)==null?void 0:Pe.loader,"sonner-loader"),"data-visible":Ct==="loading"},Y.loading)}return te.createElement(pT,{className:Rn(O==null?void 0:O.loader,m==null||(be=m.classNames)==null?void 0:be.loader),visible:Ct==="loading"})}const Ol=m.icon||(Y==null?void 0:Y[Ct])||mT(Ct);var el,En;return te.createElement("li",{tabIndex:0,ref:dt,className:Rn(he,At,O==null?void 0:O.toast,m==null||(r=m.classNames)==null?void 0:r.toast,O==null?void 0:O.default,O==null?void 0:O[Ct],m==null||(o=m.classNames)==null?void 0:o[Ct]),"data-sonner-toast":"","data-rich-colors":(el=m.richColors)!=null?el:Z,"data-styled":!(m.jsx||m.unstyled||w),"data-mounted":X,"data-promise":!!m.promise,"data-swiped":we,"data-removed":P,"data-visible":Mr,"data-y-position":Wa,"data-x-position":Rt,"data-index":C,"data-front":Or,"data-swiping":ee,"data-dismissible":fa,"data-type":Ct,"data-invert":Ys,"data-swipe-out":ie,"data-swipe-direction":_,"data-expanded":!!(D||ue&&X),"data-testid":m.testId,style:{"--index":C,"--toasts-before":C,"--z-index":j.length-C,"--offset":`${P?tt:Vn.current}px`,"--initial-height":ue?"auto":`${fn}px`,...q,...m.style},onDragEnd:()=>{ae(!1),I(null),da.current=null},onPointerDown:be=>{be.button!==2&&(jr||!fa||(Ja.current=new Date,Xe(Vn.current),be.target.setPointerCapture(be.pointerId),be.target.tagName!=="BUTTON"&&(ae(!0),da.current={x:be.clientX,y:be.clientY})))},onPointerUp:()=>{var be,Pe,mt;if(ie||!fa)return;da.current=null;const Et=Number(((be=dt.current)==null?void 0:be.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ma=Number(((Pe=dt.current)==null?void 0:Pe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),et=new Date().getTime()-((mt=Ja.current)==null?void 0:mt.getTime()),Ot=re==="x"?Et:ma,tl=Math.abs(Ot)/et;if(Math.abs(Ot)>=jT||tl>.11){Xe(Vn.current),m.onDismiss==null||m.onDismiss.call(m,m),G(re==="x"?Et>0?"right":"left":ma>0?"down":"up"),wn(),Ce(!0);return}else{var Mt,Dt;(Mt=dt.current)==null||Mt.style.setProperty("--swipe-amount-x","0px"),(Dt=dt.current)==null||Dt.style.setProperty("--swipe-amount-y","0px")}xe(!1),ae(!1),I(null)},onPointerMove:be=>{var Pe,mt,Et;if(!da.current||!fa||((Pe=window.getSelection())==null?void 0:Pe.toString().length)>0)return;const et=be.clientY-da.current.y,Ot=be.clientX-da.current.x;var tl;const Mt=(tl=a.swipeDirections)!=null?tl:kT(me);!re&&(Math.abs(Ot)>1||Math.abs(et)>1)&&I(Math.abs(Ot)>Math.abs(et)?"x":"y");let Dt={x:0,y:0};const Ml=mn=>1/(1.5+Math.abs(mn)/20);if(re==="y"){if(Mt.includes("top")||Mt.includes("bottom"))if(Mt.includes("top")&&et<0||Mt.includes("bottom")&&et>0)Dt.y=et;else{const mn=et*Ml(et);Dt.y=Math.abs(mn)<Math.abs(et)?mn:et}}else if(re==="x"&&(Mt.includes("left")||Mt.includes("right")))if(Mt.includes("left")&&Ot<0||Mt.includes("right")&&Ot>0)Dt.x=Ot;else{const mn=Ot*Ml(Ot);Dt.x=Math.abs(mn)<Math.abs(Ot)?mn:Ot}(Math.abs(Dt.x)>0||Math.abs(Dt.y)>0)&&xe(!0),(mt=dt.current)==null||mt.style.setProperty("--swipe-amount-x",`${Dt.x}px`),(Et=dt.current)==null||Et.style.setProperty("--swipe-amount-y",`${Dt.y}px`)}},Ho&&!m.jsx&&Ct!=="loading"?te.createElement("button",{"aria-label":J,"data-disabled":jr,"data-close-button":!0,onClick:jr||!fa?()=>{}:()=>{wn(),m.onDismiss==null||m.onDismiss.call(m,m)},className:Rn(O==null?void 0:O.closeButton,m==null||(i=m.classNames)==null?void 0:i.closeButton)},(En=Y==null?void 0:Y.close)!=null?En:xT):null,(Ct||m.icon||m.promise)&&m.icon!==null&&((Y==null?void 0:Y[Ct])!==null||m.icon)?te.createElement("div",{"data-icon":"",className:Rn(O==null?void 0:O.icon,m==null||(u=m.classNames)==null?void 0:u.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||_l():null,m.type!=="loading"?Ol:null):null,te.createElement("div",{"data-content":"",className:Rn(O==null?void 0:O.content,m==null||(f=m.classNames)==null?void 0:f.content)},te.createElement("div",{"data-title":"",className:Rn(O==null?void 0:O.title,m==null||(d=m.classNames)==null?void 0:d.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?te.createElement("div",{"data-description":"",className:Rn(pe,Vs,O==null?void 0:O.description,m==null||(h=m.classNames)==null?void 0:h.description)},typeof m.description=="function"?m.description():m.description):null),te.isValidElement(m.cancel)?m.cancel:m.cancel&&ns(m.cancel)?te.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||V,onClick:be=>{ns(m.cancel)&&fa&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,be),wn())},className:Rn(O==null?void 0:O.cancelButton,m==null||(v=m.classNames)==null?void 0:v.cancelButton)},m.cancel.label):null,te.isValidElement(m.action)?m.action:m.action&&ns(m.action)?te.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||le,onClick:be=>{ns(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,be),!be.defaultPrevented&&wn())},className:Rn(O==null?void 0:O.actionButton,m==null||(p=m.classNames)==null?void 0:p.actionButton)},m.action.label):null)};function Ug(){if(typeof window>"u"||typeof document>"u")return"ltr";const a=document.documentElement.getAttribute("dir");return a==="auto"||!a?window.getComputedStyle(document.documentElement).direction:a}function UT(a,r){const o={};return[a,r].forEach((i,u)=>{const f=u===1,d=f?"--mobile-offset":"--offset",h=f?OT:_T;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}`]=h:o[`${d}-${p}`]=typeof i[p]=="number"?`${i[p]}px`:i[p]}):v(h)}),o}const BT=te.forwardRef(function(r,o){const{id:i,invert:u,position:f="bottom-right",hotkey:d=["altKey","KeyT"],expand:h,closeButton:v,className:p,offset:x,mobileOffset:m,theme:w="light",richColors:T,duration:A,style:E,visibleToasts:N=RT,toastOptions:C,dir:j=Ug(),gap:D=DT,icons:B,containerAriaLabel:Z="Notifications"}=r,[F,q]=te.useState([]),V=te.useMemo(()=>i?F.filter(X=>X.toasterId===i):F.filter(X=>!X.toasterId),[F,i]),le=te.useMemo(()=>Array.from(new Set([f].concat(V.filter(X=>X.position).map(X=>X.position)))),[V,f]),[he,pe]=te.useState([]),[fe,me]=te.useState(!1),[ge,ue]=te.useState(!1),[O,Y]=te.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),J=te.useRef(null),re=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=te.useRef(null),_=te.useRef(!1),G=te.useCallback(X=>{q(W=>{var P;return(P=W.find(ne=>ne.id===X.id))!=null&&P.delete||Vt.dismiss(X.id),W.filter(({id:ne})=>ne!==X.id)})},[]);return te.useEffect(()=>Vt.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{q(W=>W.map(P=>P.id===X.id?{...P,delete:!0}:P))});return}setTimeout(()=>{kv.flushSync(()=>{q(W=>{const P=W.findIndex(ne=>ne.id===X.id);return P!==-1?[...W.slice(0,P),{...W[P],...X},...W.slice(P+1)]:[X,...W]})})})}),[F]),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:W})=>{Y(W?"dark":"light")})}catch{X.addListener(({matches:P})=>{try{Y(P?"dark":"light")}catch(ne){console.error(ne)}})}},[w]),te.useEffect(()=>{F.length<=1&&me(!1)},[F]),te.useEffect(()=>{const X=W=>{var P;if(d.every(ae=>W[ae]||W.code===ae)){var ee;me(!0),(ee=J.current)==null||ee.focus()}W.code==="Escape"&&(document.activeElement===J.current||(P=J.current)!=null&&P.contains(document.activeElement))&&me(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[d]),te.useEffect(()=>{if(J.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,_.current=!1)}},[J.current]),te.createElement("section",{ref:o,"aria-label":`${Z} ${re}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},le.map((X,W)=>{var P;const[ne,ee]=X.split("-");return V.length?te.createElement("ol",{key:X,dir:j==="auto"?Ug():j,tabIndex:-1,ref:J,className:p,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":ne,"data-x-position":ee,style:{"--front-toast-height":`${((P=he[0])==null?void 0:P.height)||0}px`,"--width":`${MT}px`,"--gap":`${D}px`,...E,...UT(x,m)},onBlur:ae=>{_.current&&!ae.currentTarget.contains(ae.relatedTarget)&&(_.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:ae=>{ae.target instanceof HTMLElement&&ae.target.dataset.dismissible==="false"||_.current||(_.current=!0,I.current=ae.relatedTarget)},onMouseEnter:()=>me(!0),onMouseMove:()=>me(!0),onMouseLeave:()=>{ge||me(!1)},onDragEnd:()=>me(!1),onPointerDown:ae=>{ae.target instanceof HTMLElement&&ae.target.dataset.dismissible==="false"||ue(!0)},onPointerUp:()=>ue(!1)},V.filter(ae=>!ae.position&&W===0||ae.position===X).map((ae,ie)=>{var Ce,we;return te.createElement(LT,{key:ae.id,icons:B,index:ie,toast:ae,defaultRichColors:T,duration:(Ce=C==null?void 0:C.duration)!=null?Ce:A,className:C==null?void 0:C.className,descriptionClassName:C==null?void 0:C.descriptionClassName,invert:u,visibleToasts:N,closeButton:(we=C==null?void 0:C.closeButton)!=null?we:v,interacting:ge,position:X,style:C==null?void 0:C.style,unstyled:C==null?void 0:C.unstyled,classNames:C==null?void 0:C.classNames,cancelButtonStyle:C==null?void 0:C.cancelButtonStyle,actionButtonStyle:C==null?void 0:C.actionButtonStyle,closeButtonAriaLabel:C==null?void 0:C.closeButtonAriaLabel,removeToast:G,toasts:V.filter(xe=>xe.position==ae.position),heights:he.filter(xe=>xe.position==ae.position),setHeights:pe,expandByDefault:h,gap:D,expanded:fe,swipeDirections:r.swipeDirections})})):null}))}),_n=b.forwardRef(({className:a,...r},o)=>y.jsx("div",{ref:o,className:Ne("rounded-lg border bg-card text-card-foreground shadow-sm",a),...r}));_n.displayName="Card";const On=b.forwardRef(({className:a,...r},o)=>y.jsx("div",{ref:o,className:Ne("flex flex-col space-y-1.5 p-6",a),...r}));On.displayName="CardHeader";const Mn=b.forwardRef(({className:a,...r},o)=>y.jsx("div",{ref:o,className:Ne("text-2xl font-semibold leading-none tracking-tight",a),...r}));Mn.displayName="CardTitle";const Dn=b.forwardRef(({className:a,...r},o)=>y.jsx("div",{ref:o,className:Ne("text-sm text-muted-foreground",a),...r}));Dn.displayName="CardDescription";const jn=b.forwardRef(({className:a,...r},o)=>y.jsx("div",{ref:o,className:Ne("p-6 pt-0",a),...r}));jn.displayName="CardContent";const HT=b.forwardRef(({className:a,...r},o)=>y.jsx("div",{ref:o,className:Ne("flex items-center p-6 pt-0",a),...r}));HT.displayName="CardFooter";function ke(a,r,{checkForDefaultPrevented:o=!0}={}){return function(u){if(a==null||a(u),o===!1||!u.defaultPrevented)return r==null?void 0:r(u)}}function VT(a,r){const o=b.createContext(r),i=f=>{const{children:d,...h}=f,v=b.useMemo(()=>h,Object.values(h));return y.jsx(o.Provider,{value:v,children:d})};i.displayName=a+"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 \`${a}\``)}return[i,u]}function Rl(a,r=[]){let o=[];function i(f,d){const h=b.createContext(d),v=o.length;o=[...o,d];const p=m=>{var C;const{scope:w,children:T,...A}=m,E=((C=w==null?void 0:w[a])==null?void 0:C[v])||h,N=b.useMemo(()=>A,Object.values(A));return y.jsx(E.Provider,{value:N,children:T})};p.displayName=f+"Provider";function x(m,w){var E;const T=((E=w==null?void 0:w[a])==null?void 0:E[v])||h,A=b.useContext(T);if(A)return A;if(d!==void 0)return d;throw new Error(`\`${m}\` must be used within \`${f}\``)}return[p,x]}const u=()=>{const f=o.map(d=>b.createContext(d));return function(h){const v=(h==null?void 0:h[a])||f;return b.useMemo(()=>({[`__scope${a}`]:{...h,[a]:v}}),[h,v])}};return u.scopeName=a,[i,YT(u,...r)]}function YT(...a){const r=a[0];if(a.length===1)return r;const o=()=>{const i=a.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const d=i.reduce((h,{useScope:v,scopeName:p})=>{const m=v(f)[`__scope${p}`];return{...h,...m}},{});return b.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])}};return o.scopeName=r.scopeName,o}var Nt=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},qT=Uf[" useId ".trim().toString()]||(()=>{}),GT=0;function Ga(a){const[r,o]=b.useState(qT());return Nt(()=>{o(i=>i??String(GT++))},[a]),r?`radix-${r}`:""}var $T=Uf[" useInsertionEffect ".trim().toString()]||Nt;function Oo({prop:a,defaultProp:r,onChange:o=()=>{},caller:i}){const[u,f,d]=XT({defaultProp:r,onChange:o}),h=a!==void 0,v=h?a:u;{const x=b.useRef(a!==void 0);b.useEffect(()=>{const m=x.current;m!==h&&console.warn(`${i} is changing from ${m?"controlled":"uncontrolled"} to ${h?"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=h},[h,i])}const p=b.useCallback(x=>{var m;if(h){const w=QT(x)?x(a):x;w!==a&&((m=d.current)==null||m.call(d,w))}else f(x)},[h,a,f,d]);return[v,p]}function XT({defaultProp:a,onChange:r}){const[o,i]=b.useState(a),u=b.useRef(o),f=b.useRef(r);return $T(()=>{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 QT(a){return typeof a=="function"}function Mo(a){const r=ZT(a),o=b.forwardRef((i,u)=>{const{children:f,...d}=i,h=b.Children.toArray(f),v=h.find(PT);if(v){const p=v.props.children,x=h.map(m=>m===v?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:m);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=`${a}.Slot`,o}function ZT(a){const r=b.forwardRef((o,i)=>{const{children:u,...f}=o;if(b.isValidElement(u)){const d=FT(u),h=JT(f,u.props);return u.type!==b.Fragment&&(h.ref=i?$f(i,d):d),b.cloneElement(u,h)}return b.Children.count(u)>1?b.Children.only(null):null});return r.displayName=`${a}.SlotClone`,r}var uy=Symbol("radix.slottable");function KT(a){const r=({children:o})=>y.jsx(y.Fragment,{children:o});return r.displayName=`${a}.Slottable`,r.__radixId=uy,r}function PT(a){return b.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===uy}function JT(a,r){const o={...r};for(const i in r){const u=a[i],f=r[i];/^on[A-Z]/.test(i)?u&&f?o[i]=(...h)=>{const v=f(...h);return u(...h),v}:u&&(o[i]=u):i==="style"?o[i]={...u,...f}:i==="className"&&(o[i]=[u,f].filter(Boolean).join(" "))}return{...a,...o}}function FT(a){var i,u;let r=(i=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?a.ref:(r=(u=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:u.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?a.props.ref:a.props.ref||a.ref)}var IT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Be=IT.reduce((a,r)=>{const o=Mo(`Primitive.${r}`),i=b.forwardRef((u,f)=>{const{asChild:d,...h}=u,v=d?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(v,{...h,ref:f})});return i.displayName=`Primitive.${r}`,{...a,[r]:i}},{});function WT(a,r){a&&ko.flushSync(()=>a.dispatchEvent(r))}function $a(a){const r=b.useRef(a);return b.useEffect(()=>{r.current=a}),b.useMemo(()=>(...o)=>{var i;return(i=r.current)==null?void 0:i.call(r,...o)},[])}function eN(a,r=globalThis==null?void 0:globalThis.document){const o=$a(a);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 tN="DismissableLayer",Nf="dismissableLayer.update",nN="dismissableLayer.pointerDownOutside",aN="dismissableLayer.focusOutside",Bg,fy=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kf=b.forwardRef((a,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:h,...v}=a,p=b.useContext(fy),[x,m]=b.useState(null),w=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,T]=b.useState({}),A=Ie(r,q=>m(q)),E=Array.from(p.layers),[N]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),C=E.indexOf(N),j=x?E.indexOf(x):-1,D=p.layersWithOutsidePointerEventsDisabled.size>0,B=j>=C,Z=oN(q=>{const V=q.target,le=[...p.branches].some(he=>he.contains(V));!B||le||(u==null||u(q),d==null||d(q),q.defaultPrevented||h==null||h())},w),F=iN(q=>{const V=q.target;[...p.branches].some(he=>he.contains(V))||(f==null||f(q),d==null||d(q),q.defaultPrevented||h==null||h())},w);return eN(q=>{j===p.layers.size-1&&(i==null||i(q),!q.defaultPrevented&&h&&(q.preventDefault(),h()))},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=()=>T({});return document.addEventListener(Nf,q),()=>document.removeEventListener(Nf,q)},[]),y.jsx(Be.div,{...v,ref:A,style:{pointerEvents:D?B?"auto":"none":void 0,...a.style},onFocusCapture:ke(a.onFocusCapture,F.onFocusCapture),onBlurCapture:ke(a.onBlurCapture,F.onBlurCapture),onPointerDownCapture:ke(a.onPointerDownCapture,Z.onPointerDownCapture)})});Kf.displayName=tN;var lN="DismissableLayerBranch",rN=b.forwardRef((a,r)=>{const o=b.useContext(fy),i=b.useRef(null),u=Ie(r,i);return b.useEffect(()=>{const f=i.current;if(f)return o.branches.add(f),()=>{o.branches.delete(f)}},[o.branches]),y.jsx(Be.div,{...a,ref:u})});rN.displayName=lN;function oN(a,r=globalThis==null?void 0:globalThis.document){const o=$a(a),i=b.useRef(!1),u=b.useRef(()=>{});return b.useEffect(()=>{const f=h=>{if(h.target&&!i.current){let v=function(){dy(nN,o,p,{discrete:!0})};const p={originalEvent:h};h.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 iN(a,r=globalThis==null?void 0:globalThis.document){const o=$a(a),i=b.useRef(!1);return b.useEffect(()=>{const u=f=>{f.target&&!i.current&&dy(aN,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 a=new CustomEvent(Nf);document.dispatchEvent(a)}function dy(a,r,o,{discrete:i}){const u=o.originalEvent.target,f=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:o});r&&u.addEventListener(a,r,{once:!0}),i?WT(u,f):u.dispatchEvent(f)}var uf="focusScope.autoFocusOnMount",ff="focusScope.autoFocusOnUnmount",Vg={bubbles:!1,cancelable:!0},sN="FocusScope",Pf=b.forwardRef((a,r)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:u,onUnmountAutoFocus:f,...d}=a,[h,v]=b.useState(null),p=$a(u),x=$a(f),m=b.useRef(null),w=Ie(r,E=>v(E)),T=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(i){let E=function(D){if(T.paused||!h)return;const B=D.target;h.contains(B)?m.current=B:Va(m.current,{select:!0})},N=function(D){if(T.paused||!h)return;const B=D.relatedTarget;B!==null&&(h.contains(B)||Va(m.current,{select:!0}))},C=function(D){if(document.activeElement===document.body)for(const Z of D)Z.removedNodes.length>0&&Va(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",N);const j=new MutationObserver(C);return h&&j.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",N),j.disconnect()}}},[i,h,T.paused]),b.useEffect(()=>{if(h){qg.add(T);const E=document.activeElement;if(!h.contains(E)){const C=new CustomEvent(uf,Vg);h.addEventListener(uf,p),h.dispatchEvent(C),C.defaultPrevented||(cN(hN(my(h)),{select:!0}),document.activeElement===E&&Va(h))}return()=>{h.removeEventListener(uf,p),setTimeout(()=>{const C=new CustomEvent(ff,Vg);h.addEventListener(ff,x),h.dispatchEvent(C),C.defaultPrevented||Va(E??document.body,{select:!0}),h.removeEventListener(ff,x),qg.remove(T)},0)}}},[h,p,x,T]);const A=b.useCallback(E=>{if(!o&&!i||T.paused)return;const N=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,C=document.activeElement;if(N&&C){const j=E.currentTarget,[D,B]=uN(j);D&&B?!E.shiftKey&&C===B?(E.preventDefault(),o&&Va(D,{select:!0})):E.shiftKey&&C===D&&(E.preventDefault(),o&&Va(B,{select:!0})):C===j&&E.preventDefault()}},[o,i,T.paused]);return y.jsx(Be.div,{tabIndex:-1,...d,ref:w,onKeyDown:A})});Pf.displayName=sN;function cN(a,{select:r=!1}={}){const o=document.activeElement;for(const i of a)if(Va(i,{select:r}),document.activeElement!==o)return}function uN(a){const r=my(a),o=Yg(r,a),i=Yg(r.reverse(),a);return[o,i]}function my(a){const r=[],o=document.createTreeWalker(a,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(a,r){for(const o of a)if(!fN(o,{upTo:r}))return o}function fN(a,{upTo:r}){if(getComputedStyle(a).visibility==="hidden")return!0;for(;a;){if(r!==void 0&&a===r)return!1;if(getComputedStyle(a).display==="none")return!0;a=a.parentElement}return!1}function dN(a){return a instanceof HTMLInputElement&&"select"in a}function Va(a,{select:r=!1}={}){if(a&&a.focus){const o=document.activeElement;a.focus({preventScroll:!0}),a!==o&&dN(a)&&r&&a.select()}}var qg=mN();function mN(){let a=[];return{add(r){const o=a[0];r!==o&&(o==null||o.pause()),a=Gg(a,r),a.unshift(r)},remove(r){var o;a=Gg(a,r),(o=a[0])==null||o.resume()}}}function Gg(a,r){const o=[...a],i=o.indexOf(r);return i!==-1&&o.splice(i,1),o}function hN(a){return a.filter(r=>r.tagName!=="A")}var pN="Portal",Jf=b.forwardRef((a,r)=>{var h;const{container:o,...i}=a,[u,f]=b.useState(!1);Nt(()=>f(!0),[]);const d=o||u&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return d?kv.createPortal(y.jsx(Be.div,{...i,ref:r}),d):null});Jf.displayName=pN;function gN(a,r){return b.useReducer((o,i)=>r[o][i]??o,a)}var Lo=a=>{const{present:r,children:o}=a,i=vN(r),u=typeof o=="function"?o({present:i.isPresent}):b.Children.only(o),f=Ie(i.ref,yN(u));return typeof o=="function"||i.isPresent?b.cloneElement(u,{ref:f}):null};Lo.displayName="Presence";function vN(a){const[r,o]=b.useState(),i=b.useRef(null),u=b.useRef(a),f=b.useRef("none"),d=a?"mounted":"unmounted",[h,v]=gN(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=h==="mounted"?p:"none"},[h]),Nt(()=>{const p=i.current,x=u.current;if(x!==a){const w=f.current,T=as(p);a?v("MOUNT"):T==="none"||(p==null?void 0:p.display)==="none"?v("UNMOUNT"):v(x&&w!==T?"ANIMATION_OUT":"UNMOUNT"),u.current=a}},[a,v]),Nt(()=>{if(r){let p;const x=r.ownerDocument.defaultView??window,m=T=>{const E=as(i.current).includes(CSS.escape(T.animationName));if(T.target===r&&E&&(v("ANIMATION_END"),!u.current)){const N=r.style.animationFillMode;r.style.animationFillMode="forwards",p=x.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=N)})}},w=T=>{T.target===r&&(f.current=as(i.current))};return r.addEventListener("animationstart",w),r.addEventListener("animationcancel",m),r.addEventListener("animationend",m),()=>{x.clearTimeout(p),r.removeEventListener("animationstart",w),r.removeEventListener("animationcancel",m),r.removeEventListener("animationend",m)}}else v("ANIMATION_END")},[r,v]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:b.useCallback(p=>{i.current=p?getComputedStyle(p):null,o(p)},[])}}function as(a){return(a==null?void 0:a.animationName)||"none"}function yN(a){var i,u;let r=(i=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?a.ref:(r=(u=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:u.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?a.props.ref:a.props.ref||a.ref)}var df=0;function hy(){b.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??$g()),document.body.insertAdjacentElement("beforeend",a[1]??$g()),df++,()=>{df===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),df--}},[])}function $g(){const a=document.createElement("span");return a.setAttribute("data-radix-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}var zn=function(){return zn=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},zn.apply(this,arguments)};function py(a,r){var o={};for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&r.indexOf(i)<0&&(o[i]=a[i]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,i=Object.getOwnPropertySymbols(a);u<i.length;u++)r.indexOf(i[u])<0&&Object.prototype.propertyIsEnumerable.call(a,i[u])&&(o[i[u]]=a[i[u]]);return o}function bN(a,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 a.concat(f||Array.prototype.slice.call(r))}var ds="right-scroll-bar-position",ms="width-before-scroll-bar",xN="with-scroll-bars-hidden",SN="--removed-body-scroll-bar-size";function mf(a,r){return typeof a=="function"?a(r):a&&(a.current=r),a}function wN(a,r){var o=b.useState(function(){return{value:a,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 EN=typeof window<"u"?b.useLayoutEffect:b.useEffect,Xg=new WeakMap;function TN(a,r){var o=wN(null,function(i){return a.forEach(function(u){return mf(u,i)})});return EN(function(){var i=Xg.get(o);if(i){var u=new Set(i),f=new Set(a),d=o.current;u.forEach(function(h){f.has(h)||mf(h,null)}),f.forEach(function(h){u.has(h)||mf(h,d)})}Xg.set(o,a)},[a]),o}function NN(a){return a}function CN(a,r){r===void 0&&(r=NN);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]:a},useMedium:function(f){var d=r(f,i);return o.push(d),function(){o=o.filter(function(h){return h!==d})}},assignSyncMedium:function(f){for(i=!0;o.length;){var d=o;o=[],d.forEach(f)}o={push:function(h){return f(h)},filter:function(){return o}}},assignMedium:function(f){i=!0;var d=[];if(o.length){var h=o;o=[],h.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 AN(a){a===void 0&&(a={});var r=CN(null);return r.options=zn({async:!0,ssr:!1},a),r}var gy=function(a){var r=a.sideCar,o=py(a,["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,zn({},o))};gy.isSideCarExport=!0;function RN(a,r){return a.useMedium(r),gy}var vy=AN(),hf=function(){},_s=b.forwardRef(function(a,r){var o=b.useRef(null),i=b.useState({onScrollCapture:hf,onWheelCapture:hf,onTouchMoveCapture:hf}),u=i[0],f=i[1],d=a.forwardProps,h=a.children,v=a.className,p=a.removeScrollBar,x=a.enabled,m=a.shards,w=a.sideCar,T=a.noRelative,A=a.noIsolation,E=a.inert,N=a.allowPinchZoom,C=a.as,j=C===void 0?"div":C,D=a.gapMode,B=py(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Z=w,F=TN([o,r]),q=zn(zn({},B),u);return b.createElement(b.Fragment,null,x&&b.createElement(Z,{sideCar:vy,removeScrollBar:p,shards:m,noRelative:T,noIsolation:A,inert:E,setCallbacks:f,allowPinchZoom:!!N,lockRef:o,gapMode:D}),d?b.cloneElement(b.Children.only(h),zn(zn({},q),{ref:F})):b.createElement(j,zn({},q,{className:v,ref:F}),h))});_s.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_s.classNames={fullWidth:ms,zeroRight:ds};var _N=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ON(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var r=_N();return r&&a.setAttribute("nonce",r),a}function MN(a,r){a.styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r))}function DN(a){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(a)}var jN=function(){var a=0,r=null;return{add:function(o){a==0&&(r=ON())&&(MN(r,o),DN(r)),a++},remove:function(){a--,!a&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},zN=function(){var a=jN();return function(r,o){b.useEffect(function(){return a.add(r),function(){a.remove()}},[r&&o])}},yy=function(){var a=zN(),r=function(o){var i=o.styles,u=o.dynamic;return a(i,u),null};return r},kN={left:0,top:0,right:0,gap:0},pf=function(a){return parseInt(a||"",10)||0},LN=function(a){var r=window.getComputedStyle(document.body),o=r[a==="padding"?"paddingLeft":"marginLeft"],i=r[a==="padding"?"paddingTop":"marginTop"],u=r[a==="padding"?"paddingRight":"marginRight"];return[pf(o),pf(i),pf(u)]},UN=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return kN;var r=LN(a),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])}},BN=yy(),xr="data-scroll-locked",HN=function(a,r,o,i){var u=a.left,f=a.top,d=a.right,h=a.gap;return o===void 0&&(o="margin"),`
217
- .`.concat(xN,` {
218
- overflow: hidden `).concat(i,`;
219
- padding-right: `).concat(h,"px ").concat(i,`;
220
- }
221
- body[`).concat(xr,`] {
222
- overflow: hidden `).concat(i,`;
223
- overscroll-behavior: contain;
224
- `).concat([r&&"position: relative ".concat(i,";"),o==="margin"&&`
225
- padding-left: `.concat(u,`px;
226
- padding-top: `).concat(f,`px;
227
- padding-right: `).concat(d,`px;
228
- margin-left:0;
229
- margin-top:0;
230
- margin-right: `).concat(h,"px ").concat(i,`;
231
- `),o==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
232
- }
233
-
234
- .`).concat(ds,` {
235
- right: `).concat(h,"px ").concat(i,`;
236
- }
237
-
238
- .`).concat(ms,` {
239
- margin-right: `).concat(h,"px ").concat(i,`;
240
- }
241
-
242
- .`).concat(ds," .").concat(ds,` {
243
- right: 0 `).concat(i,`;
244
- }
245
-
246
- .`).concat(ms," .").concat(ms,` {
247
- margin-right: 0 `).concat(i,`;
248
- }
249
-
250
- body[`).concat(xr,`] {
251
- `).concat(SN,": ").concat(h,`px;
252
- }
253
- `)},Qg=function(){var a=parseInt(document.body.getAttribute(xr)||"0",10);return isFinite(a)?a:0},VN=function(){b.useEffect(function(){return document.body.setAttribute(xr,(Qg()+1).toString()),function(){var a=Qg()-1;a<=0?document.body.removeAttribute(xr):document.body.setAttribute(xr,a.toString())}},[])},YN=function(a){var r=a.noRelative,o=a.noImportant,i=a.gapMode,u=i===void 0?"margin":i;VN();var f=b.useMemo(function(){return UN(u)},[u]);return b.createElement(BN,{styles:HN(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 gr=Cf?{passive:!1}:!1,qN=function(a){return a.tagName==="TEXTAREA"},by=function(a,r){if(!(a instanceof Element))return!1;var o=window.getComputedStyle(a);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!qN(a)&&o[r]==="visible")},GN=function(a){return by(a,"overflowY")},$N=function(a){return by(a,"overflowX")},Zg=function(a,r){var o=r.ownerDocument,i=r;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var u=xy(a,i);if(u){var f=Sy(a,i),d=f[1],h=f[2];if(d>h)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},XN=function(a){var r=a.scrollTop,o=a.scrollHeight,i=a.clientHeight;return[r,o,i]},QN=function(a){var r=a.scrollLeft,o=a.scrollWidth,i=a.clientWidth;return[r,o,i]},xy=function(a,r){return a==="v"?GN(r):$N(r)},Sy=function(a,r){return a==="v"?XN(r):QN(r)},ZN=function(a,r){return a==="h"&&r==="rtl"?-1:1},KN=function(a,r,o,i,u){var f=ZN(a,window.getComputedStyle(r).direction),d=f*i,h=o.target,v=r.contains(h),p=!1,x=d>0,m=0,w=0;do{if(!h)break;var T=Sy(a,h),A=T[0],E=T[1],N=T[2],C=E-N-f*A;(A||C)&&xy(a,h)&&(m+=C,w+=A);var j=h.parentNode;h=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!v&&h!==document.body||v&&(r.contains(h)||r===h));return(x&&Math.abs(m)<1||!x&&Math.abs(w)<1)&&(p=!0),p},rs=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},Kg=function(a){return[a.deltaX,a.deltaY]},Pg=function(a){return a&&"current"in a?a.current:a},PN=function(a,r){return a[0]===r[0]&&a[1]===r[1]},JN=function(a){return`
254
- .block-interactivity-`.concat(a,` {pointer-events: none;}
255
- .allow-interactivity-`).concat(a,` {pointer-events: all;}
256
- `)},FN=0,vr=[];function IN(a){var r=b.useRef([]),o=b.useRef([0,0]),i=b.useRef(),u=b.useState(FN++)[0],f=b.useState(yy)[0],d=b.useRef(a);b.useEffect(function(){d.current=a},[a]),b.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(u));var E=bN([a.lockRef.current],(a.shards||[]).map(Pg),!0).filter(Boolean);return E.forEach(function(N){return N.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),E.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(u))})}}},[a.inert,a.lockRef.current,a.shards]);var h=b.useCallback(function(E,N){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!d.current.allowPinchZoom;var C=rs(E),j=o.current,D="deltaX"in E?E.deltaX:j[0]-C[0],B="deltaY"in E?E.deltaY:j[1]-C[1],Z,F=E.target,q=Math.abs(D)>Math.abs(B)?"h":"v";if("touches"in E&&q==="h"&&F.type==="range")return!1;var V=window.getSelection(),le=V&&V.anchorNode,he=le?le===F||le.contains(F):!1;if(he)return!1;var pe=Zg(q,F);if(!pe)return!0;if(pe?Z=q:(Z=q==="v"?"h":"v",pe=Zg(q,F)),!pe)return!1;if(!i.current&&"changedTouches"in E&&(D||B)&&(i.current=Z),!Z)return!0;var fe=i.current||Z;return KN(fe,N,E,fe==="h"?D:B)},[]),v=b.useCallback(function(E){var N=E;if(!(!vr.length||vr[vr.length-1]!==f)){var C="deltaY"in N?Kg(N):rs(N),j=r.current.filter(function(Z){return Z.name===N.type&&(Z.target===N.target||N.target===Z.shadowParent)&&PN(Z.delta,C)})[0];if(j&&j.should){N.cancelable&&N.preventDefault();return}if(!j){var D=(d.current.shards||[]).map(Pg).filter(Boolean).filter(function(Z){return Z.contains(N.target)}),B=D.length>0?h(N,D[0]):!d.current.noIsolation;B&&N.cancelable&&N.preventDefault()}}},[]),p=b.useCallback(function(E,N,C,j){var D={name:E,delta:N,target:C,should:j,shadowParent:WN(C)};r.current.push(D),setTimeout(function(){r.current=r.current.filter(function(B){return B!==D})},1)},[]),x=b.useCallback(function(E){o.current=rs(E),i.current=void 0},[]),m=b.useCallback(function(E){p(E.type,Kg(E),E.target,h(E,a.lockRef.current))},[]),w=b.useCallback(function(E){p(E.type,rs(E),E.target,h(E,a.lockRef.current))},[]);b.useEffect(function(){return vr.push(f),a.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:w}),document.addEventListener("wheel",v,gr),document.addEventListener("touchmove",v,gr),document.addEventListener("touchstart",x,gr),function(){vr=vr.filter(function(E){return E!==f}),document.removeEventListener("wheel",v,gr),document.removeEventListener("touchmove",v,gr),document.removeEventListener("touchstart",x,gr)}},[]);var T=a.removeScrollBar,A=a.inert;return b.createElement(b.Fragment,null,A?b.createElement(f,{styles:JN(u)}):null,T?b.createElement(YN,{noRelative:a.noRelative,gapMode:a.gapMode}):null)}function WN(a){for(var r=null;a!==null;)a instanceof ShadowRoot&&(r=a.host,a=a.host),a=a.parentNode;return r}const eC=RN(vy,IN);var Ff=b.forwardRef(function(a,r){return b.createElement(_s,zn({},a,{ref:r,sideCar:eC}))});Ff.classNames=_s.classNames;var tC=function(a){if(typeof document>"u")return null;var r=Array.isArray(a)?a[0]:a;return r.ownerDocument.body},yr=new WeakMap,os=new WeakMap,is={},gf=0,wy=function(a){return a&&(a.host||wy(a.parentNode))},nC=function(a,r){return r.map(function(o){if(a.contains(o))return o;var i=wy(o);return i&&a.contains(i)?i:(console.error("aria-hidden",o,"in not contained inside",a,". Doing nothing"),null)}).filter(function(o){return!!o})},aC=function(a,r,o,i){var u=nC(r,Array.isArray(a)?a:[a]);is[o]||(is[o]=new WeakMap);var f=is[o],d=[],h=new Set,v=new Set(u),p=function(m){!m||h.has(m)||(h.add(m),p(m.parentNode))};u.forEach(p);var x=function(m){!m||v.has(m)||Array.prototype.forEach.call(m.children,function(w){if(h.has(w))x(w);else try{var T=w.getAttribute(i),A=T!==null&&T!=="false",E=(yr.get(w)||0)+1,N=(f.get(w)||0)+1;yr.set(w,E),f.set(w,N),d.push(w),E===1&&A&&os.set(w,!0),N===1&&w.setAttribute(o,"true"),A||w.setAttribute(i,"true")}catch(C){console.error("aria-hidden: cannot operate on ",w,C)}})};return x(r),h.clear(),gf++,function(){d.forEach(function(m){var w=yr.get(m)-1,T=f.get(m)-1;yr.set(m,w),f.set(m,T),w||(os.has(m)||m.removeAttribute(i),os.delete(m)),T||m.removeAttribute(o)}),gf--,gf||(yr=new WeakMap,yr=new WeakMap,os=new WeakMap,is={})}},Ey=function(a,r,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(a)?a:[a]),u=tC(a);return u?(i.push.apply(i,Array.from(u.querySelectorAll("[aria-live], script"))),aC(i,u,o,"aria-hidden")):function(){return null}},Os="Dialog",[Ty,Ny]=Rl(Os),[lC,Sn]=Ty(Os),Cy=a=>{const{__scopeDialog:r,children:o,open:i,defaultOpen:u,onOpenChange:f,modal:d=!0}=a,h=b.useRef(null),v=b.useRef(null),[p,x]=Oo({prop:i,defaultProp:u??!1,onChange:f,caller:Os});return y.jsx(lC,{scope:r,triggerRef:h,contentRef:v,contentId:Ga(),titleId:Ga(),descriptionId:Ga(),open:p,onOpenChange:x,onOpenToggle:b.useCallback(()=>x(m=>!m),[x]),modal:d,children:o})};Cy.displayName=Os;var Ay="DialogTrigger",Ry=b.forwardRef((a,r)=>{const{__scopeDialog:o,...i}=a,u=Sn(Ay,o),f=Ie(r,u.triggerRef);return y.jsx(Be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":ed(u.open),...i,ref:f,onClick:ke(a.onClick,u.onOpenToggle)})});Ry.displayName=Ay;var If="DialogPortal",[rC,_y]=Ty(If,{forceMount:void 0}),Oy=a=>{const{__scopeDialog:r,forceMount:o,children:i,container:u}=a,f=Sn(If,r);return y.jsx(rC,{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})}))})};Oy.displayName=If;var xs="DialogOverlay",My=b.forwardRef((a,r)=>{const o=_y(xs,a.__scopeDialog),{forceMount:i=o.forceMount,...u}=a,f=Sn(xs,a.__scopeDialog);return f.modal?y.jsx(Lo,{present:i||f.open,children:y.jsx(iC,{...u,ref:r})}):null});My.displayName=xs;var oC=Mo("DialogOverlay.RemoveScroll"),iC=b.forwardRef((a,r)=>{const{__scopeDialog:o,...i}=a,u=Sn(xs,o);return y.jsx(Ff,{as:oC,allowPinchZoom:!0,shards:[u.contentRef],children:y.jsx(Be.div,{"data-state":ed(u.open),...i,ref:r,style:{pointerEvents:"auto",...i.style}})})}),El="DialogContent",Dy=b.forwardRef((a,r)=>{const o=_y(El,a.__scopeDialog),{forceMount:i=o.forceMount,...u}=a,f=Sn(El,a.__scopeDialog);return y.jsx(Lo,{present:i||f.open,children:f.modal?y.jsx(sC,{...u,ref:r}):y.jsx(cC,{...u,ref:r})})});Dy.displayName=El;var sC=b.forwardRef((a,r)=>{const o=Sn(El,a.__scopeDialog),i=b.useRef(null),u=Ie(r,o.contentRef,i);return b.useEffect(()=>{const f=i.current;if(f)return Ey(f)},[]),y.jsx(jy,{...a,ref:u,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ke(a.onCloseAutoFocus,f=>{var d;f.preventDefault(),(d=o.triggerRef.current)==null||d.focus()}),onPointerDownOutside:ke(a.onPointerDownOutside,f=>{const d=f.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0;(d.button===2||h)&&f.preventDefault()}),onFocusOutside:ke(a.onFocusOutside,f=>f.preventDefault())})}),cC=b.forwardRef((a,r)=>{const o=Sn(El,a.__scopeDialog),i=b.useRef(!1),u=b.useRef(!1);return y.jsx(jy,{...a,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,h;(d=a.onCloseAutoFocus)==null||d.call(a,f),f.defaultPrevented||(i.current||(h=o.triggerRef.current)==null||h.focus(),f.preventDefault()),i.current=!1,u.current=!1},onInteractOutside:f=>{var v,p;(v=a.onInteractOutside)==null||v.call(a,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()}})}),jy=b.forwardRef((a,r)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:f,...d}=a,h=Sn(El,o),v=b.useRef(null),p=Ie(r,v);return hy(),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:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":ed(h.open),...d,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(fC,{titleId:h.titleId}),y.jsx(mC,{contentRef:v,descriptionId:h.descriptionId})]})]})}),Wf="DialogTitle",zy=b.forwardRef((a,r)=>{const{__scopeDialog:o,...i}=a,u=Sn(Wf,o);return y.jsx(Be.h2,{id:u.titleId,...i,ref:r})});zy.displayName=Wf;var ky="DialogDescription",Ly=b.forwardRef((a,r)=>{const{__scopeDialog:o,...i}=a,u=Sn(ky,o);return y.jsx(Be.p,{id:u.descriptionId,...i,ref:r})});Ly.displayName=ky;var Uy="DialogClose",By=b.forwardRef((a,r)=>{const{__scopeDialog:o,...i}=a,u=Sn(Uy,o);return y.jsx(Be.button,{type:"button",...i,ref:r,onClick:ke(a.onClick,()=>u.onOpenChange(!1))})});By.displayName=Uy;function ed(a){return a?"open":"closed"}var Hy="DialogTitleWarning",[uC,Vy]=VT(Hy,{contentName:El,titleName:Wf,docsSlug:"dialog"}),fC=({titleId:a})=>{const r=Vy(Hy),o=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
257
-
258
- If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
259
-
260
- For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return b.useEffect(()=>{a&&(document.getElementById(a)||console.error(o))},[o,a]),null},dC="DialogDescriptionWarning",mC=({contentRef:a,descriptionId:r})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vy(dC).contentName}}.`;return b.useEffect(()=>{var f;const u=(f=a.current)==null?void 0:f.getAttribute("aria-describedby");r&&u&&(document.getElementById(r)||console.warn(i))},[i,a,r]),null},Yy=Cy,qy=Ry,Gy=Oy,td=My,nd=Dy,ad=zy,ld=Ly,Ms=By;const hC=Yy,pC=qy,gC=Gy,h5=Ms,$y=b.forwardRef(({className:a,...r},o)=>y.jsx(td,{ref:o,className:Ne("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",a),...r}));$y.displayName=td.displayName;const Xy=b.forwardRef(({className:a,children:r,...o},i)=>y.jsxs(gC,{children:[y.jsx($y,{}),y.jsxs(nd,{ref:i,className:Ne("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg 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%] sm:rounded-lg",a),...o,children:[r,y.jsxs(Ms,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[y.jsx(Gv,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Xy.displayName=nd.displayName;const Qy=({className:a,...r})=>y.jsx("div",{className:Ne("flex flex-col space-y-1.5 text-center sm:text-left",a),...r});Qy.displayName="DialogHeader";const vC=({className:a,...r})=>y.jsx("div",{className:Ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...r});vC.displayName="DialogFooter";const Zy=b.forwardRef(({className:a,...r},o)=>y.jsx(ad,{ref:o,className:Ne("text-lg font-semibold leading-none tracking-tight",a),...r}));Zy.displayName=ad.displayName;const Ky=b.forwardRef(({className:a,...r},o)=>y.jsx(ld,{ref:o,className:Ne("text-sm text-muted-foreground",a),...r}));Ky.displayName=ld.displayName;function Jg(a,[r,o]){return Math.min(o,Math.max(r,a))}function Py(a){const r=a+"CollectionProvider",[o,i]=Rl(r),[u,f]=o(r,{collectionRef:{current:null},itemMap:new Map}),d=E=>{const{scope:N,children:C}=E,j=te.useRef(null),D=te.useRef(new Map).current;return y.jsx(u,{scope:N,itemMap:D,collectionRef:j,children:C})};d.displayName=r;const h=a+"CollectionSlot",v=Mo(h),p=te.forwardRef((E,N)=>{const{scope:C,children:j}=E,D=f(h,C),B=Ie(N,D.collectionRef);return y.jsx(v,{ref:B,children:j})});p.displayName=h;const x=a+"CollectionItemSlot",m="data-radix-collection-item",w=Mo(x),T=te.forwardRef((E,N)=>{const{scope:C,children:j,...D}=E,B=te.useRef(null),Z=Ie(N,B),F=f(x,C);return te.useEffect(()=>(F.itemMap.set(B,{ref:B,...D}),()=>void F.itemMap.delete(B))),y.jsx(w,{[m]:"",ref:Z,children:j})});T.displayName=x;function A(E){const N=f(a+"CollectionConsumer",E);return te.useCallback(()=>{const j=N.collectionRef.current;if(!j)return[];const D=Array.from(j.querySelectorAll(`[${m}]`));return Array.from(N.itemMap.values()).sort((F,q)=>D.indexOf(F.ref.current)-D.indexOf(q.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:d,Slot:p,ItemSlot:T},A,i]}var yC=b.createContext(void 0);function rd(a){const r=b.useContext(yC);return a||r||"ltr"}const bC=["top","right","bottom","left"],Xa=Math.min,Pt=Math.max,Ss=Math.round,ss=Math.floor,Un=a=>({x:a,y:a}),xC={left:"right",right:"left",bottom:"top",top:"bottom"};function Af(a,r,o){return Pt(a,Xa(r,o))}function ia(a,r){return typeof a=="function"?a(r):a}function sa(a){return a.split("-")[0]}function Ar(a){return a.split("-")[1]}function od(a){return a==="x"?"y":"x"}function id(a){return a==="y"?"height":"width"}function kn(a){const r=a[0];return r==="t"||r==="b"?"y":"x"}function sd(a){return od(kn(a))}function SC(a,r,o){o===void 0&&(o=!1);const i=Ar(a),u=sd(a),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 wC(a){const r=ws(a);return[Rf(a),r,Rf(r)]}function Rf(a){return a.includes("start")?a.replace("start","end"):a.replace("end","start")}const Fg=["left","right"],Ig=["right","left"],EC=["top","bottom"],TC=["bottom","top"];function NC(a,r,o){switch(a){case"top":case"bottom":return o?r?Ig:Fg:r?Fg:Ig;case"left":case"right":return r?EC:TC;default:return[]}}function CC(a,r,o,i){const u=Ar(a);let f=NC(sa(a),o==="start",i);return u&&(f=f.map(d=>d+"-"+u),r&&(f=f.concat(f.map(Rf)))),f}function ws(a){const r=sa(a);return xC[r]+a.slice(r.length)}function AC(a){return{top:0,right:0,bottom:0,left:0,...a}}function Jy(a){return typeof a!="number"?AC(a):{top:a,right:a,bottom:a,left:a}}function Es(a){const{x:r,y:o,width:i,height:u}=a;return{width:i,height:u,top:o,left:r,right:r+i,bottom:o+u,x:r,y:o}}function Wg(a,r,o){let{reference:i,floating:u}=a;const f=kn(r),d=sd(r),h=id(d),v=sa(r),p=f==="y",x=i.x+i.width/2-u.width/2,m=i.y+i.height/2-u.height/2,w=i[h]/2-u[h]/2;let T;switch(v){case"top":T={x,y:i.y-u.height};break;case"bottom":T={x,y:i.y+i.height};break;case"right":T={x:i.x+i.width,y:m};break;case"left":T={x:i.x-u.width,y:m};break;default:T={x:i.x,y:i.y}}switch(Ar(r)){case"start":T[d]-=w*(o&&p?-1:1);break;case"end":T[d]+=w*(o&&p?-1:1);break}return T}async function RC(a,r){var o;r===void 0&&(r={});const{x:i,y:u,platform:f,rects:d,elements:h,strategy:v}=a,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:m="floating",altBoundary:w=!1,padding:T=0}=ia(r,a),A=Jy(T),N=h[w?m==="floating"?"reference":"floating":m],C=Es(await f.getClippingRect({element:(o=await(f.isElement==null?void 0:f.isElement(N)))==null||o?N:N.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(h.floating)),boundary:p,rootBoundary:x,strategy:v})),j=m==="floating"?{x:i,y:u,width:d.floating.width,height:d.floating.height}:d.reference,D=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h.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},Z=Es(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:j,offsetParent:D,strategy:v}):j);return{top:(C.top-Z.top+A.top)/B.y,bottom:(Z.bottom-C.bottom+A.bottom)/B.y,left:(C.left-Z.left+A.left)/B.x,right:(Z.right-C.right+A.right)/B.x}}const _C=50,OC=async(a,r,o)=>{const{placement:i="bottom",strategy:u="absolute",middleware:f=[],platform:d}=o,h=d.detectOverflow?d:{...d,detectOverflow:RC},v=await(d.isRTL==null?void 0:d.isRTL(r));let p=await d.getElementRects({reference:a,floating:r,strategy:u}),{x,y:m}=Wg(p,i,v),w=i,T=0;const A={};for(let E=0;E<f.length;E++){const N=f[E];if(!N)continue;const{name:C,fn:j}=N,{x:D,y:B,data:Z,reset:F}=await j({x,y:m,initialPlacement:i,placement:w,strategy:u,middlewareData:A,rects:p,platform:h,elements:{reference:a,floating:r}});x=D??x,m=B??m,A[C]={...A[C],...Z},F&&T<_C&&(T++,typeof F=="object"&&(F.placement&&(w=F.placement),F.rects&&(p=F.rects===!0?await d.getElementRects({reference:a,floating:r,strategy:u}):F.rects),{x,y:m}=Wg(p,w,v)),E=-1)}return{x,y:m,placement:w,strategy:u,middlewareData:A}},MC=a=>({name:"arrow",options:a,async fn(r){const{x:o,y:i,placement:u,rects:f,platform:d,elements:h,middlewareData:v}=r,{element:p,padding:x=0}=ia(a,r)||{};if(p==null)return{};const m=Jy(x),w={x:o,y:i},T=sd(u),A=id(T),E=await d.getDimensions(p),N=T==="y",C=N?"top":"left",j=N?"bottom":"right",D=N?"clientHeight":"clientWidth",B=f.reference[A]+f.reference[T]-w[T]-f.floating[A],Z=w[T]-f.reference[T],F=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p));let q=F?F[D]:0;(!q||!await(d.isElement==null?void 0:d.isElement(F)))&&(q=h.floating[D]||f.floating[A]);const V=B/2-Z/2,le=q/2-E[A]/2-1,he=Xa(m[C],le),pe=Xa(m[j],le),fe=he,me=q-E[A]-pe,ge=q/2-E[A]/2+V,ue=Af(fe,ge,me),O=!v.arrow&&Ar(u)!=null&&ge!==ue&&f.reference[A]/2-(ge<fe?he:pe)-E[A]/2<0,Y=O?ge<fe?ge-fe:ge-me:0;return{[T]:w[T]+Y,data:{[T]:ue,centerOffset:ge-ue-Y,...O&&{alignmentOffset:Y}},reset:O}}}),DC=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(r){var o,i;const{placement:u,middlewareData:f,rects:d,initialPlacement:h,platform:v,elements:p}=r,{mainAxis:x=!0,crossAxis:m=!0,fallbackPlacements:w,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:E=!0,...N}=ia(a,r);if((o=f.arrow)!=null&&o.alignmentOffset)return{};const C=sa(u),j=kn(h),D=sa(h)===h,B=await(v.isRTL==null?void 0:v.isRTL(p.floating)),Z=w||(D||!E?[ws(h)]:wC(h)),F=A!=="none";!w&&F&&Z.push(...CC(h,E,A,B));const q=[h,...Z],V=await v.detectOverflow(r,N),le=[];let he=((i=f.flip)==null?void 0:i.overflows)||[];if(x&&le.push(V[C]),m){const ge=SC(u,d,B);le.push(V[ge[0]],V[ge[1]])}if(he=[...he,{placement:u,overflows:le}],!le.every(ge=>ge<=0)){var pe,fe;const ge=(((pe=f.flip)==null?void 0:pe.index)||0)+1,ue=q[ge];if(ue&&(!(m==="alignment"?j!==kn(ue):!1)||he.every(J=>kn(J.placement)===j?J.overflows[0]>0:!0)))return{data:{index:ge,overflows:he},reset:{placement:ue}};let O=(fe=he.filter(Y=>Y.overflows[0]<=0).sort((Y,J)=>Y.overflows[1]-J.overflows[1])[0])==null?void 0:fe.placement;if(!O)switch(T){case"bestFit":{var me;const Y=(me=he.filter(J=>{if(F){const re=kn(J.placement);return re===j||re==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(re=>re>0).reduce((re,I)=>re+I,0)]).sort((J,re)=>J[1]-re[1])[0])==null?void 0:me[0];Y&&(O=Y);break}case"initialPlacement":O=h;break}if(u!==O)return{reset:{placement:O}}}return{}}}};function ev(a,r){return{top:a.top-r.height,right:a.right-r.width,bottom:a.bottom-r.height,left:a.left-r.width}}function tv(a){return bC.some(r=>a[r]>=0)}const jC=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(r){const{rects:o,platform:i}=r,{strategy:u="referenceHidden",...f}=ia(a,r);switch(u){case"referenceHidden":{const d=await i.detectOverflow(r,{...f,elementContext:"reference"}),h=ev(d,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:tv(h)}}}case"escaped":{const d=await i.detectOverflow(r,{...f,altBoundary:!0}),h=ev(d,o.floating);return{data:{escapedOffsets:h,escaped:tv(h)}}}default:return{}}}}},Fy=new Set(["left","top"]);async function zC(a,r){const{placement:o,platform:i,elements:u}=a,f=await(i.isRTL==null?void 0:i.isRTL(u.floating)),d=sa(o),h=Ar(o),v=kn(o)==="y",p=Fy.has(d)?-1:1,x=f&&v?-1:1,m=ia(r,a);let{mainAxis:w,crossAxis:T,alignmentAxis:A}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return h&&typeof A=="number"&&(T=h==="end"?A*-1:A),v?{x:T*x,y:w*p}:{x:w*p,y:T*x}}const kC=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(r){var o,i;const{x:u,y:f,placement:d,middlewareData:h}=r,v=await zC(r,a);return d===((o=h.offset)==null?void 0:o.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:u+v.x,y:f+v.y,data:{...v,placement:d}}}}},LC=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(r){const{x:o,y:i,placement:u,platform:f}=r,{mainAxis:d=!0,crossAxis:h=!1,limiter:v={fn:C=>{let{x:j,y:D}=C;return{x:j,y:D}}},...p}=ia(a,r),x={x:o,y:i},m=await f.detectOverflow(r,p),w=kn(sa(u)),T=od(w);let A=x[T],E=x[w];if(d){const C=T==="y"?"top":"left",j=T==="y"?"bottom":"right",D=A+m[C],B=A-m[j];A=Af(D,A,B)}if(h){const C=w==="y"?"top":"left",j=w==="y"?"bottom":"right",D=E+m[C],B=E-m[j];E=Af(D,E,B)}const N=v.fn({...r,[T]:A,[w]:E});return{...N,data:{x:N.x-o,y:N.y-i,enabled:{[T]:d,[w]:h}}}}}},UC=function(a){return a===void 0&&(a={}),{options:a,fn(r){const{x:o,y:i,placement:u,rects:f,middlewareData:d}=r,{offset:h=0,mainAxis:v=!0,crossAxis:p=!0}=ia(a,r),x={x:o,y:i},m=kn(u),w=od(m);let T=x[w],A=x[m];const E=ia(h,r),N=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(v){const D=w==="y"?"height":"width",B=f.reference[w]-f.floating[D]+N.mainAxis,Z=f.reference[w]+f.reference[D]-N.mainAxis;T<B?T=B:T>Z&&(T=Z)}if(p){var C,j;const D=w==="y"?"width":"height",B=Fy.has(sa(u)),Z=f.reference[m]-f.floating[D]+(B&&((C=d.offset)==null?void 0:C[m])||0)+(B?0:N.crossAxis),F=f.reference[m]+f.reference[D]+(B?0:((j=d.offset)==null?void 0:j[m])||0)-(B?N.crossAxis:0);A<Z?A=Z:A>F&&(A=F)}return{[w]:T,[m]:A}}}},BC=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(r){var o,i;const{placement:u,rects:f,platform:d,elements:h}=r,{apply:v=()=>{},...p}=ia(a,r),x=await d.detectOverflow(r,p),m=sa(u),w=Ar(u),T=kn(u)==="y",{width:A,height:E}=f.floating;let N,C;m==="top"||m==="bottom"?(N=m,C=w===(await(d.isRTL==null?void 0:d.isRTL(h.floating))?"start":"end")?"left":"right"):(C=m,N=w==="end"?"top":"bottom");const j=E-x.top-x.bottom,D=A-x.left-x.right,B=Xa(E-x[N],j),Z=Xa(A-x[C],D),F=!r.middlewareData.shift;let q=B,V=Z;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&(V=D),(i=r.middlewareData.shift)!=null&&i.enabled.y&&(q=j),F&&!w){const he=Pt(x.left,0),pe=Pt(x.right,0),fe=Pt(x.top,0),me=Pt(x.bottom,0);T?V=A-2*(he!==0||pe!==0?he+pe:Pt(x.left,x.right)):q=E-2*(fe!==0||me!==0?fe+me:Pt(x.top,x.bottom))}await v({...r,availableWidth:V,availableHeight:q});const le=await d.getDimensions(h.floating);return A!==le.width||E!==le.height?{reset:{rects:!0}}:{}}}};function Ds(){return typeof window<"u"}function Rr(a){return Iy(a)?(a.nodeName||"").toLowerCase():"#document"}function Jt(a){var r;return(a==null||(r=a.ownerDocument)==null?void 0:r.defaultView)||window}function Hn(a){var r;return(r=(Iy(a)?a.ownerDocument:a.document)||window.document)==null?void 0:r.documentElement}function Iy(a){return Ds()?a instanceof Node||a instanceof Jt(a).Node:!1}function bn(a){return Ds()?a instanceof Element||a instanceof Jt(a).Element:!1}function ca(a){return Ds()?a instanceof HTMLElement||a instanceof Jt(a).HTMLElement:!1}function nv(a){return!Ds()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Jt(a).ShadowRoot}function Uo(a){const{overflow:r,overflowX:o,overflowY:i,display:u}=xn(a);return/auto|scroll|overlay|hidden|clip/.test(r+i+o)&&u!=="inline"&&u!=="contents"}function HC(a){return/^(table|td|th)$/.test(Rr(a))}function js(a){try{if(a.matches(":popover-open"))return!0}catch{}try{return a.matches(":modal")}catch{return!1}}const VC=/transform|translate|scale|rotate|perspective|filter/,YC=/paint|layout|strict|content/,xl=a=>!!a&&a!=="none";let vf;function cd(a){const r=bn(a)?xn(a):a;return xl(r.transform)||xl(r.translate)||xl(r.scale)||xl(r.rotate)||xl(r.perspective)||!ud()&&(xl(r.backdropFilter)||xl(r.filter))||VC.test(r.willChange||"")||YC.test(r.contain||"")}function qC(a){let r=Qa(a);for(;ca(r)&&!Er(r);){if(cd(r))return r;if(js(r))return null;r=Qa(r)}return null}function ud(){return vf==null&&(vf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),vf}function Er(a){return/^(html|body|#document)$/.test(Rr(a))}function xn(a){return Jt(a).getComputedStyle(a)}function zs(a){return bn(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Qa(a){if(Rr(a)==="html")return a;const r=a.assignedSlot||a.parentNode||nv(a)&&a.host||Hn(a);return nv(r)?r.host:r}function Wy(a){const r=Qa(a);return Er(r)?a.ownerDocument?a.ownerDocument.body:a.body:ca(r)&&Uo(r)?r:Wy(r)}function Do(a,r,o){var i;r===void 0&&(r=[]),o===void 0&&(o=!0);const u=Wy(a),f=u===((i=a.ownerDocument)==null?void 0:i.body),d=Jt(u);if(f){const h=_f(d);return r.concat(d,d.visualViewport||[],Uo(u)?u:[],h&&o?Do(h):[])}else return r.concat(u,Do(u,[],o))}function _f(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function e0(a){const r=xn(a);let o=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const u=ca(a),f=u?a.offsetWidth:o,d=u?a.offsetHeight:i,h=Ss(o)!==f||Ss(i)!==d;return h&&(o=f,i=d),{width:o,height:i,$:h}}function fd(a){return bn(a)?a:a.contextElement}function Sr(a){const r=fd(a);if(!ca(r))return Un(1);const o=r.getBoundingClientRect(),{width:i,height:u,$:f}=e0(r);let d=(f?Ss(o.width):o.width)/i,h=(f?Ss(o.height):o.height)/u;return(!d||!Number.isFinite(d))&&(d=1),(!h||!Number.isFinite(h))&&(h=1),{x:d,y:h}}const GC=Un(0);function t0(a){const r=Jt(a);return!ud()||!r.visualViewport?GC:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function $C(a,r,o){return r===void 0&&(r=!1),!o||r&&o!==Jt(a)?!1:r}function Tl(a,r,o,i){r===void 0&&(r=!1),o===void 0&&(o=!1);const u=a.getBoundingClientRect(),f=fd(a);let d=Un(1);r&&(i?bn(i)&&(d=Sr(i)):d=Sr(a));const h=$C(f,o,i)?t0(f):Un(0);let v=(u.left+h.x)/d.x,p=(u.top+h.y)/d.y,x=u.width/d.x,m=u.height/d.y;if(f){const w=Jt(f),T=i&&bn(i)?Jt(i):i;let A=w,E=_f(A);for(;E&&i&&T!==A;){const N=Sr(E),C=E.getBoundingClientRect(),j=xn(E),D=C.left+(E.clientLeft+parseFloat(j.paddingLeft))*N.x,B=C.top+(E.clientTop+parseFloat(j.paddingTop))*N.y;v*=N.x,p*=N.y,x*=N.x,m*=N.y,v+=D,p+=B,A=Jt(E),E=_f(A)}}return Es({width:x,height:m,x:v,y:p})}function ks(a,r){const o=zs(a).scrollLeft;return r?r.left+o:Tl(Hn(a)).left+o}function n0(a,r){const o=a.getBoundingClientRect(),i=o.left+r.scrollLeft-ks(a,o),u=o.top+r.scrollTop;return{x:i,y:u}}function XC(a){let{elements:r,rect:o,offsetParent:i,strategy:u}=a;const f=u==="fixed",d=Hn(i),h=r?js(r.floating):!1;if(i===d||h&&f)return o;let v={scrollLeft:0,scrollTop:0},p=Un(1);const x=Un(0),m=ca(i);if((m||!m&&!f)&&((Rr(i)!=="body"||Uo(d))&&(v=zs(i)),m)){const T=Tl(i);p=Sr(i),x.x=T.x+i.clientLeft,x.y=T.y+i.clientTop}const w=d&&!m&&!f?n0(d,v):Un(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 QC(a){return Array.from(a.getClientRects())}function ZC(a){const r=Hn(a),o=zs(a),i=a.ownerDocument.body,u=Pt(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),f=Pt(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let d=-o.scrollLeft+ks(a);const h=-o.scrollTop;return xn(i).direction==="rtl"&&(d+=Pt(r.clientWidth,i.clientWidth)-u),{width:u,height:f,x:d,y:h}}const av=25;function KC(a,r){const o=Jt(a),i=Hn(a),u=o.visualViewport;let f=i.clientWidth,d=i.clientHeight,h=0,v=0;if(u){f=u.width,d=u.height;const x=ud();(!x||x&&r==="fixed")&&(h=u.offsetLeft,v=u.offsetTop)}const p=ks(i);if(p<=0){const x=i.ownerDocument,m=x.body,w=getComputedStyle(m),T=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,A=Math.abs(i.clientWidth-m.clientWidth-T);A<=av&&(f-=A)}else p<=av&&(f+=p);return{width:f,height:d,x:h,y:v}}function PC(a,r){const o=Tl(a,!0,r==="fixed"),i=o.top+a.clientTop,u=o.left+a.clientLeft,f=ca(a)?Sr(a):Un(1),d=a.clientWidth*f.x,h=a.clientHeight*f.y,v=u*f.x,p=i*f.y;return{width:d,height:h,x:v,y:p}}function lv(a,r,o){let i;if(r==="viewport")i=KC(a,o);else if(r==="document")i=ZC(Hn(a));else if(bn(r))i=PC(r,o);else{const u=t0(a);i={x:r.x-u.x,y:r.y-u.y,width:r.width,height:r.height}}return Es(i)}function a0(a,r){const o=Qa(a);return o===r||!bn(o)||Er(o)?!1:xn(o).position==="fixed"||a0(o,r)}function JC(a,r){const o=r.get(a);if(o)return o;let i=Do(a,[],!1).filter(h=>bn(h)&&Rr(h)!=="body"),u=null;const f=xn(a).position==="fixed";let d=f?Qa(a):a;for(;bn(d)&&!Er(d);){const h=xn(d),v=cd(d);!v&&h.position==="fixed"&&(u=null),(f?!v&&!u:!v&&h.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||Uo(d)&&!v&&a0(a,d))?i=i.filter(x=>x!==d):u=h,d=Qa(d)}return r.set(a,i),i}function FC(a){let{element:r,boundary:o,rootBoundary:i,strategy:u}=a;const d=[...o==="clippingAncestors"?js(r)?[]:JC(r,this._c):[].concat(o),i],h=lv(r,d[0],u);let v=h.top,p=h.right,x=h.bottom,m=h.left;for(let w=1;w<d.length;w++){const T=lv(r,d[w],u);v=Pt(T.top,v),p=Xa(T.right,p),x=Xa(T.bottom,x),m=Pt(T.left,m)}return{width:p-m,height:x-v,x:m,y:v}}function IC(a){const{width:r,height:o}=e0(a);return{width:r,height:o}}function WC(a,r,o){const i=ca(r),u=Hn(r),f=o==="fixed",d=Tl(a,!0,f,r);let h={scrollLeft:0,scrollTop:0};const v=Un(0);function p(){v.x=ks(u)}if(i||!i&&!f)if((Rr(r)!=="body"||Uo(u))&&(h=zs(r)),i){const T=Tl(r,!0,f,r);v.x=T.x+r.clientLeft,v.y=T.y+r.clientTop}else u&&p();f&&!i&&u&&p();const x=u&&!i&&!f?n0(u,h):Un(0),m=d.left+h.scrollLeft-v.x-x.x,w=d.top+h.scrollTop-v.y-x.y;return{x:m,y:w,width:d.width,height:d.height}}function yf(a){return xn(a).position==="static"}function rv(a,r){if(!ca(a)||xn(a).position==="fixed")return null;if(r)return r(a);let o=a.offsetParent;return Hn(a)===o&&(o=o.ownerDocument.body),o}function l0(a,r){const o=Jt(a);if(js(a))return o;if(!ca(a)){let u=Qa(a);for(;u&&!Er(u);){if(bn(u)&&!yf(u))return u;u=Qa(u)}return o}let i=rv(a,r);for(;i&&HC(i)&&yf(i);)i=rv(i,r);return i&&Er(i)&&yf(i)&&!cd(i)?o:i||qC(a)||o}const eA=async function(a){const r=this.getOffsetParent||l0,o=this.getDimensions,i=await o(a.floating);return{reference:WC(a.reference,await r(a.floating),a.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function tA(a){return xn(a).direction==="rtl"}const nA={convertOffsetParentRelativeRectToViewportRelativeRect:XC,getDocumentElement:Hn,getClippingRect:FC,getOffsetParent:l0,getElementRects:eA,getClientRects:QC,getDimensions:IC,getScale:Sr,isElement:bn,isRTL:tA};function r0(a,r){return a.x===r.x&&a.y===r.y&&a.width===r.width&&a.height===r.height}function aA(a,r){let o=null,i;const u=Hn(a);function f(){var h;clearTimeout(i),(h=o)==null||h.disconnect(),o=null}function d(h,v){h===void 0&&(h=!1),v===void 0&&(v=1),f();const p=a.getBoundingClientRect(),{left:x,top:m,width:w,height:T}=p;if(h||r(),!w||!T)return;const A=ss(m),E=ss(u.clientWidth-(x+w)),N=ss(u.clientHeight-(m+T)),C=ss(x),D={rootMargin:-A+"px "+-E+"px "+-N+"px "+-C+"px",threshold:Pt(0,Xa(1,v))||1};let B=!0;function Z(F){const q=F[0].intersectionRatio;if(q!==v){if(!B)return d();q?d(!1,q):i=setTimeout(()=>{d(!1,1e-7)},1e3)}q===1&&!r0(p,a.getBoundingClientRect())&&d(),B=!1}try{o=new IntersectionObserver(Z,{...D,root:u.ownerDocument})}catch{o=new IntersectionObserver(Z,D)}o.observe(a)}return d(!0),f}function lA(a,r,o,i){i===void 0&&(i={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:v=!1}=i,p=fd(a),x=u||f?[...p?Do(p):[],...r?Do(r):[]]:[];x.forEach(C=>{u&&C.addEventListener("scroll",o,{passive:!0}),f&&C.addEventListener("resize",o)});const m=p&&h?aA(p,o):null;let w=-1,T=null;d&&(T=new ResizeObserver(C=>{let[j]=C;j&&j.target===p&&T&&r&&(T.unobserve(r),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var D;(D=T)==null||D.observe(r)})),o()}),p&&!v&&T.observe(p),r&&T.observe(r));let A,E=v?Tl(a):null;v&&N();function N(){const C=Tl(a);E&&!r0(E,C)&&o(),E=C,A=requestAnimationFrame(N)}return o(),()=>{var C;x.forEach(j=>{u&&j.removeEventListener("scroll",o),f&&j.removeEventListener("resize",o)}),m==null||m(),(C=T)==null||C.disconnect(),T=null,v&&cancelAnimationFrame(A)}}const rA=kC,oA=LC,iA=DC,sA=BC,cA=jC,ov=MC,uA=UC,fA=(a,r,o)=>{const i=new Map,u={platform:nA,...o},f={...u.platform,_c:i};return OC(a,r,{...u,platform:f})};var dA=typeof document<"u",mA=function(){},hs=dA?b.useLayoutEffect:mA;function Ts(a,r){if(a===r)return!0;if(typeof a!=typeof r)return!1;if(typeof a=="function"&&a.toString()===r.toString())return!0;let o,i,u;if(a&&r&&typeof a=="object"){if(Array.isArray(a)){if(o=a.length,o!==r.length)return!1;for(i=o;i--!==0;)if(!Ts(a[i],r[i]))return!1;return!0}if(u=Object.keys(a),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"&&a.$$typeof)&&!Ts(a[f],r[f]))return!1}return!0}return a!==a&&r!==r}function o0(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function iv(a,r){const o=o0(a);return Math.round(r*o)/o}function bf(a){const r=b.useRef(a);return hs(()=>{r.current=a}),r}function hA(a){a===void 0&&(a={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:u,elements:{reference:f,floating:d}={},transform:h=!0,whileElementsMounted:v,open:p}=a,[x,m]=b.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[w,T]=b.useState(i);Ts(w,i)||T(i);const[A,E]=b.useState(null),[N,C]=b.useState(null),j=b.useCallback(J=>{J!==F.current&&(F.current=J,E(J))},[]),D=b.useCallback(J=>{J!==q.current&&(q.current=J,C(J))},[]),B=f||A,Z=d||N,F=b.useRef(null),q=b.useRef(null),V=b.useRef(x),le=v!=null,he=bf(v),pe=bf(u),fe=bf(p),me=b.useCallback(()=>{if(!F.current||!q.current)return;const J={placement:r,strategy:o,middleware:w};pe.current&&(J.platform=pe.current),fA(F.current,q.current,J).then(re=>{const I={...re,isPositioned:fe.current!==!1};ge.current&&!Ts(V.current,I)&&(V.current=I,ko.flushSync(()=>{m(I)}))})},[w,r,o,pe,fe]);hs(()=>{p===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,m(J=>({...J,isPositioned:!1})))},[p]);const ge=b.useRef(!1);hs(()=>(ge.current=!0,()=>{ge.current=!1}),[]),hs(()=>{if(B&&(F.current=B),Z&&(q.current=Z),B&&Z){if(he.current)return he.current(B,Z,me);me()}},[B,Z,me,he,le]);const ue=b.useMemo(()=>({reference:F,floating:q,setReference:j,setFloating:D}),[j,D]),O=b.useMemo(()=>({reference:B,floating:Z}),[B,Z]),Y=b.useMemo(()=>{const J={position:o,left:0,top:0};if(!O.floating)return J;const re=iv(O.floating,x.x),I=iv(O.floating,x.y);return h?{...J,transform:"translate("+re+"px, "+I+"px)",...o0(O.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:re,top:I}},[o,h,O.floating,x.x,x.y]);return b.useMemo(()=>({...x,update:me,refs:ue,elements:O,floatingStyles:Y}),[x,me,ue,O,Y])}const pA=a=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:a,fn(o){const{element:i,padding:u}=typeof a=="function"?a(o):a;return i&&r(i)?i.current!=null?ov({element:i.current,padding:u}).fn(o):{}:i?ov({element:i,padding:u}).fn(o):{}}}},gA=(a,r)=>{const o=rA(a);return{name:o.name,fn:o.fn,options:[a,r]}},vA=(a,r)=>{const o=oA(a);return{name:o.name,fn:o.fn,options:[a,r]}},yA=(a,r)=>({fn:uA(a).fn,options:[a,r]}),bA=(a,r)=>{const o=iA(a);return{name:o.name,fn:o.fn,options:[a,r]}},xA=(a,r)=>{const o=sA(a);return{name:o.name,fn:o.fn,options:[a,r]}},SA=(a,r)=>{const o=cA(a);return{name:o.name,fn:o.fn,options:[a,r]}},wA=(a,r)=>{const o=pA(a);return{name:o.name,fn:o.fn,options:[a,r]}};var EA="Arrow",i0=b.forwardRef((a,r)=>{const{children:o,width:i=10,height:u=5,...f}=a;return y.jsx(Be.svg,{...f,ref:r,width:i,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?o:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});i0.displayName=EA;var TA=i0;function NA(a){const[r,o]=b.useState(void 0);return Nt(()=>{if(a){o({width:a.offsetWidth,height:a.offsetHeight});const i=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let d,h;if("borderBoxSize"in f){const v=f.borderBoxSize,p=Array.isArray(v)?v[0]:v;d=p.inlineSize,h=p.blockSize}else d=a.offsetWidth,h=a.offsetHeight;o({width:d,height:h})});return i.observe(a,{box:"border-box"}),()=>i.unobserve(a)}else o(void 0)},[a]),r}var dd="Popper",[s0,c0]=Rl(dd),[CA,u0]=s0(dd),f0=a=>{const{__scopePopper:r,children:o}=a,[i,u]=b.useState(null);return y.jsx(CA,{scope:r,anchor:i,onAnchorChange:u,children:o})};f0.displayName=dd;var d0="PopperAnchor",m0=b.forwardRef((a,r)=>{const{__scopePopper:o,virtualRef:i,...u}=a,f=u0(d0,o),d=b.useRef(null),h=Ie(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(Be.div,{...u,ref:h})});m0.displayName=d0;var md="PopperContent",[AA,RA]=s0(md),h0=b.forwardRef((a,r)=>{var ee,ae,ie,Ce,we,xe;const{__scopePopper:o,side:i="bottom",sideOffset:u=0,align:f="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:v=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:m="partial",hideWhenDetached:w=!1,updatePositionStrategy:T="optimized",onPlaced:A,...E}=a,N=u0(md,o),[C,j]=b.useState(null),D=Ie(r,tt=>j(tt)),[B,Z]=b.useState(null),F=NA(B),q=(F==null?void 0:F.width)??0,V=(F==null?void 0:F.height)??0,le=i+(f!=="center"?"-"+f:""),he=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},pe=Array.isArray(p)?p:[p],fe=pe.length>0,me={padding:he,boundary:pe.filter(OA),altBoundary:fe},{refs:ge,floatingStyles:ue,placement:O,isPositioned:Y,middlewareData:J}=hA({strategy:"fixed",placement:le,whileElementsMounted:(...tt)=>lA(...tt,{animationFrame:T==="always"}),elements:{reference:N.anchor},middleware:[gA({mainAxis:u+V,alignmentAxis:d}),v&&vA({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?yA():void 0,...me}),v&&bA({...me}),xA({...me,apply:({elements:tt,rects:Xe,availableWidth:fn,availableHeight:It})=>{const{width:Yt,height:Ja}=Xe.reference,dt=tt.floating.style;dt.setProperty("--radix-popper-available-width",`${fn}px`),dt.setProperty("--radix-popper-available-height",`${It}px`),dt.setProperty("--radix-popper-anchor-width",`${Yt}px`),dt.setProperty("--radix-popper-anchor-height",`${Ja}px`)}}),B&&wA({element:B,padding:h}),MA({arrowWidth:q,arrowHeight:V}),w&&SA({strategy:"referenceHidden",...me})]}),[re,I]=v0(O),_=$a(A);Nt(()=>{Y&&(_==null||_())},[Y,_]);const G=(ee=J.arrow)==null?void 0:ee.x,X=(ae=J.arrow)==null?void 0:ae.y,W=((ie=J.arrow)==null?void 0:ie.centerOffset)!==0,[P,ne]=b.useState();return Nt(()=>{C&&ne(window.getComputedStyle(C).zIndex)},[C]),y.jsx("div",{ref:ge.setFloating,"data-radix-popper-content-wrapper":"",style:{...ue,transform:Y?ue.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:P,"--radix-popper-transform-origin":[(Ce=J.transformOrigin)==null?void 0:Ce.x,(we=J.transformOrigin)==null?void 0:we.y].join(" "),...((xe=J.hide)==null?void 0:xe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:y.jsx(AA,{scope:o,placedSide:re,onArrowChange:Z,arrowX:G,arrowY:X,shouldHideArrow:W,children:y.jsx(Be.div,{"data-side":re,"data-align":I,...E,ref:D,style:{...E.style,animation:Y?void 0:"none"}})})})});h0.displayName=md;var p0="PopperArrow",_A={top:"bottom",right:"left",bottom:"top",left:"right"},g0=b.forwardRef(function(r,o){const{__scopePopper:i,...u}=r,f=RA(p0,i),d=_A[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(TA,{...u,ref:o,style:{...u.style,display:"block"}})})});g0.displayName=p0;function OA(a){return a!==null}var MA=a=>({name:"transformOrigin",options:a,fn(r){var N,C,j;const{placement:o,rects:i,middlewareData:u}=r,d=((N=u.arrow)==null?void 0:N.centerOffset)!==0,h=d?0:a.arrowWidth,v=d?0:a.arrowHeight,[p,x]=v0(o),m={start:"0%",center:"50%",end:"100%"}[x],w=(((C=u.arrow)==null?void 0:C.x)??0)+h/2,T=(((j=u.arrow)==null?void 0:j.y)??0)+v/2;let A="",E="";return p==="bottom"?(A=d?m:`${w}px`,E=`${-v}px`):p==="top"?(A=d?m:`${w}px`,E=`${i.floating.height+v}px`):p==="right"?(A=`${-v}px`,E=d?m:`${T}px`):p==="left"&&(A=`${i.floating.width+v}px`,E=d?m:`${T}px`),{data:{x:A,y:E}}}});function v0(a){const[r,o="center"]=a.split("-");return[r,o]}var DA=f0,jA=m0,zA=h0,kA=g0;function LA(a){const r=b.useRef({value:a,previous:a});return b.useMemo(()=>(r.current.value!==a&&(r.current.previous=r.current.value,r.current.value=a),r.current.previous),[a])}var y0=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"}),UA="VisuallyHidden",BA=b.forwardRef((a,r)=>y.jsx(Be.span,{...a,ref:r,style:{...y0,...a.style}}));BA.displayName=UA;var HA=[" ","Enter","ArrowUp","ArrowDown"],VA=[" ","Enter"],Nl="Select",[Ls,Us,YA]=Py(Nl),[_r]=Rl(Nl,[YA,c0]),Bs=c0(),[qA,Ka]=_r(Nl),[GA,$A]=_r(Nl),b0=a=>{const{__scopeSelect:r,children:o,open:i,defaultOpen:u,onOpenChange:f,value:d,defaultValue:h,onValueChange:v,dir:p,name:x,autoComplete:m,disabled:w,required:T,form:A}=a,E=Bs(r),[N,C]=b.useState(null),[j,D]=b.useState(null),[B,Z]=b.useState(!1),F=rd(p),[q,V]=Oo({prop:i,defaultProp:u??!1,onChange:f,caller:Nl}),[le,he]=Oo({prop:d,defaultProp:h,onChange:v,caller:Nl}),pe=b.useRef(null),fe=N?A||!!N.closest("form"):!0,[me,ge]=b.useState(new Set),ue=Array.from(me).map(O=>O.props.value).join(";");return y.jsx(DA,{...E,children:y.jsxs(qA,{required:T,scope:r,trigger:N,onTriggerChange:C,valueNode:j,onValueNodeChange:D,valueNodeHasChildren:B,onValueNodeHasChildrenChange:Z,contentId:Ga(),value:le,onValueChange:he,open:q,onOpenChange:V,dir:F,triggerPointerDownPosRef:pe,disabled:w,children:[y.jsx(Ls.Provider,{scope:r,children:y.jsx(GA,{scope:a.__scopeSelect,onNativeOptionAdd:b.useCallback(O=>{ge(Y=>new Set(Y).add(O))},[]),onNativeOptionRemove:b.useCallback(O=>{ge(Y=>{const J=new Set(Y);return J.delete(O),J})},[]),children:o})}),fe?y.jsxs(G0,{"aria-hidden":!0,required:T,tabIndex:-1,name:x,autoComplete:m,value:le,onChange:O=>he(O.target.value),disabled:w,form:A,children:[le===void 0?y.jsx("option",{value:""}):null,Array.from(me)]},ue):null]})})};b0.displayName=Nl;var x0="SelectTrigger",S0=b.forwardRef((a,r)=>{const{__scopeSelect:o,disabled:i=!1,...u}=a,f=Bs(o),d=Ka(x0,o),h=d.disabled||i,v=Ie(r,d.onTriggerChange),p=Us(o),x=b.useRef("touch"),[m,w,T]=X0(E=>{const N=p().filter(D=>!D.disabled),C=N.find(D=>D.value===d.value),j=Q0(N,E,C);j!==void 0&&d.onValueChange(j.value)}),A=E=>{h||(d.onOpenChange(!0),T()),E&&(d.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return y.jsx(jA,{asChild:!0,...f,children:y.jsx(Be.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:h,"data-disabled":h?"":void 0,"data-placeholder":$0(d.value)?"":void 0,...u,ref:v,onClick:ke(u.onClick,E=>{E.currentTarget.focus(),x.current!=="mouse"&&A(E)}),onPointerDown:ke(u.onPointerDown,E=>{x.current=E.pointerType;const N=E.target;N.hasPointerCapture(E.pointerId)&&N.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(A(E),E.preventDefault())}),onKeyDown:ke(u.onKeyDown,E=>{const N=m.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&w(E.key),!(N&&E.key===" ")&&HA.includes(E.key)&&(A(),E.preventDefault())})})})});S0.displayName=x0;var w0="SelectValue",E0=b.forwardRef((a,r)=>{const{__scopeSelect:o,className:i,style:u,children:f,placeholder:d="",...h}=a,v=Ka(w0,o),{onValueNodeHasChildrenChange:p}=v,x=f!==void 0,m=Ie(r,v.onValueNodeChange);return Nt(()=>{p(x)},[p,x]),y.jsx(Be.span,{...h,ref:m,style:{pointerEvents:"none"},children:$0(v.value)?y.jsx(y.Fragment,{children:d}):f})});E0.displayName=w0;var XA="SelectIcon",T0=b.forwardRef((a,r)=>{const{__scopeSelect:o,children:i,...u}=a;return y.jsx(Be.span,{"aria-hidden":!0,...u,ref:r,children:i||"▼"})});T0.displayName=XA;var QA="SelectPortal",N0=a=>y.jsx(Jf,{asChild:!0,...a});N0.displayName=QA;var Cl="SelectContent",C0=b.forwardRef((a,r)=>{const o=Ka(Cl,a.__scopeSelect),[i,u]=b.useState();if(Nt(()=>{u(new DocumentFragment)},[]),!o.open){const f=i;return f?ko.createPortal(y.jsx(A0,{scope:a.__scopeSelect,children:y.jsx(Ls.Slot,{scope:a.__scopeSelect,children:y.jsx("div",{children:a.children})})}),f):null}return y.jsx(R0,{...a,ref:r})});C0.displayName=Cl;var vn=10,[A0,Pa]=_r(Cl),ZA="SelectContentImpl",KA=Mo("SelectContent.RemoveScroll"),R0=b.forwardRef((a,r)=>{const{__scopeSelect:o,position:i="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:f,onPointerDownOutside:d,side:h,sideOffset:v,align:p,alignOffset:x,arrowPadding:m,collisionBoundary:w,collisionPadding:T,sticky:A,hideWhenDetached:E,avoidCollisions:N,...C}=a,j=Ka(Cl,o),[D,B]=b.useState(null),[Z,F]=b.useState(null),q=Ie(r,ee=>B(ee)),[V,le]=b.useState(null),[he,pe]=b.useState(null),fe=Us(o),[me,ge]=b.useState(!1),ue=b.useRef(!1);b.useEffect(()=>{if(D)return Ey(D)},[D]),hy();const O=b.useCallback(ee=>{const[ae,...ie]=fe().map(xe=>xe.ref.current),[Ce]=ie.slice(-1),we=document.activeElement;for(const xe of ee)if(xe===we||(xe==null||xe.scrollIntoView({block:"nearest"}),xe===ae&&Z&&(Z.scrollTop=0),xe===Ce&&Z&&(Z.scrollTop=Z.scrollHeight),xe==null||xe.focus(),document.activeElement!==we))return},[fe,Z]),Y=b.useCallback(()=>O([V,D]),[O,V,D]);b.useEffect(()=>{me&&Y()},[me,Y]);const{onOpenChange:J,triggerPointerDownPosRef:re}=j;b.useEffect(()=>{if(D){let ee={x:0,y:0};const ae=Ce=>{var we,xe;ee={x:Math.abs(Math.round(Ce.pageX)-(((we=re.current)==null?void 0:we.x)??0)),y:Math.abs(Math.round(Ce.pageY)-(((xe=re.current)==null?void 0:xe.y)??0))}},ie=Ce=>{ee.x<=10&&ee.y<=10?Ce.preventDefault():D.contains(Ce.target)||J(!1),document.removeEventListener("pointermove",ae),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",ae),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ae),document.removeEventListener("pointerup",ie,{capture:!0})}}},[D,J,re]),b.useEffect(()=>{const ee=()=>J(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[J]);const[I,_]=X0(ee=>{const ae=fe().filter(we=>!we.disabled),ie=ae.find(we=>we.ref.current===document.activeElement),Ce=Q0(ae,ee,ie);Ce&&setTimeout(()=>Ce.ref.current.focus())}),G=b.useCallback((ee,ae,ie)=>{const Ce=!ue.current&&!ie;(j.value!==void 0&&j.value===ae||Ce)&&(le(ee),Ce&&(ue.current=!0))},[j.value]),X=b.useCallback(()=>D==null?void 0:D.focus(),[D]),W=b.useCallback((ee,ae,ie)=>{const Ce=!ue.current&&!ie;(j.value!==void 0&&j.value===ae||Ce)&&pe(ee)},[j.value]),P=i==="popper"?Of:_0,ne=P===Of?{side:h,sideOffset:v,align:p,alignOffset:x,arrowPadding:m,collisionBoundary:w,collisionPadding:T,sticky:A,hideWhenDetached:E,avoidCollisions:N}:{};return y.jsx(A0,{scope:o,content:D,viewport:Z,onViewportChange:F,itemRefCallback:G,selectedItem:V,onItemLeave:X,itemTextRefCallback:W,focusSelectedItem:Y,selectedItemText:he,position:i,isPositioned:me,searchRef:I,children:y.jsx(Ff,{as:KA,allowPinchZoom:!0,children:y.jsx(Pf,{asChild:!0,trapped:j.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:ke(u,ee=>{var ae;(ae=j.trigger)==null||ae.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(P,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:ee=>ee.preventDefault(),...C,...ne,onPlaced:()=>ge(!0),ref:q,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:ke(C.onKeyDown,ee=>{const ae=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!ae&&ee.key.length===1&&_(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let Ce=fe().filter(we=>!we.disabled).map(we=>we.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(Ce=Ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const we=ee.target,xe=Ce.indexOf(we);Ce=Ce.slice(xe+1)}setTimeout(()=>O(Ce)),ee.preventDefault()}})})})})})})});R0.displayName=ZA;var PA="SelectItemAlignedPosition",_0=b.forwardRef((a,r)=>{const{__scopeSelect:o,onPlaced:i,...u}=a,f=Ka(Cl,o),d=Pa(Cl,o),[h,v]=b.useState(null),[p,x]=b.useState(null),m=Ie(r,q=>x(q)),w=Us(o),T=b.useRef(!1),A=b.useRef(!0),{viewport:E,selectedItem:N,selectedItemText:C,focusSelectedItem:j}=d,D=b.useCallback(()=>{if(f.trigger&&f.valueNode&&h&&p&&E&&N&&C){const q=f.trigger.getBoundingClientRect(),V=p.getBoundingClientRect(),le=f.valueNode.getBoundingClientRect(),he=C.getBoundingClientRect();if(f.dir!=="rtl"){const we=he.left-V.left,xe=le.left-we,tt=q.left-xe,Xe=q.width+tt,fn=Math.max(Xe,V.width),It=window.innerWidth-vn,Yt=Jg(xe,[vn,Math.max(vn,It-fn)]);h.style.minWidth=Xe+"px",h.style.left=Yt+"px"}else{const we=V.right-he.right,xe=window.innerWidth-le.right-we,tt=window.innerWidth-q.right-xe,Xe=q.width+tt,fn=Math.max(Xe,V.width),It=window.innerWidth-vn,Yt=Jg(xe,[vn,Math.max(vn,It-fn)]);h.style.minWidth=Xe+"px",h.style.right=Yt+"px"}const pe=w(),fe=window.innerHeight-vn*2,me=E.scrollHeight,ge=window.getComputedStyle(p),ue=parseInt(ge.borderTopWidth,10),O=parseInt(ge.paddingTop,10),Y=parseInt(ge.borderBottomWidth,10),J=parseInt(ge.paddingBottom,10),re=ue+O+me+J+Y,I=Math.min(N.offsetHeight*5,re),_=window.getComputedStyle(E),G=parseInt(_.paddingTop,10),X=parseInt(_.paddingBottom,10),W=q.top+q.height/2-vn,P=fe-W,ne=N.offsetHeight/2,ee=N.offsetTop+ne,ae=ue+O+ee,ie=re-ae;if(ae<=W){const we=pe.length>0&&N===pe[pe.length-1].ref.current;h.style.bottom="0px";const xe=p.clientHeight-E.offsetTop-E.offsetHeight,tt=Math.max(P,ne+(we?X:0)+xe+Y),Xe=ae+tt;h.style.height=Xe+"px"}else{const we=pe.length>0&&N===pe[0].ref.current;h.style.top="0px";const tt=Math.max(W,ue+E.offsetTop+(we?G:0)+ne)+ie;h.style.height=tt+"px",E.scrollTop=ae-W+E.offsetTop}h.style.margin=`${vn}px 0`,h.style.minHeight=I+"px",h.style.maxHeight=fe+"px",i==null||i(),requestAnimationFrame(()=>T.current=!0)}},[w,f.trigger,f.valueNode,h,p,E,N,C,f.dir,i]);Nt(()=>D(),[D]);const[B,Z]=b.useState();Nt(()=>{p&&Z(window.getComputedStyle(p).zIndex)},[p]);const F=b.useCallback(q=>{q&&A.current===!0&&(D(),j==null||j(),A.current=!1)},[D,j]);return y.jsx(FA,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:T,onScrollButtonChange:F,children:y.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:B},children:y.jsx(Be.div,{...u,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});_0.displayName=PA;var JA="SelectPopperPosition",Of=b.forwardRef((a,r)=>{const{__scopeSelect:o,align:i="start",collisionPadding:u=vn,...f}=a,d=Bs(o);return y.jsx(zA,{...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=JA;var[FA,hd]=_r(Cl,{}),Mf="SelectViewport",O0=b.forwardRef((a,r)=>{const{__scopeSelect:o,nonce:i,...u}=a,f=Pa(Mf,o),d=hd(Mf,o),h=Ie(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(Be.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:ke(u.onScroll,p=>{const x=p.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:w}=d;if(w!=null&&w.current&&m){const T=Math.abs(v.current-x.scrollTop);if(T>0){const A=window.innerHeight-vn*2,E=parseFloat(m.style.minHeight),N=parseFloat(m.style.height),C=Math.max(E,N);if(C<A){const j=C+T,D=Math.min(A,j),B=j-D;m.style.height=D+"px",m.style.bottom==="0px"&&(x.scrollTop=B>0?B:0,m.style.justifyContent="flex-end")}}}v.current=x.scrollTop})})})]})});O0.displayName=Mf;var M0="SelectGroup",[IA,WA]=_r(M0),eR=b.forwardRef((a,r)=>{const{__scopeSelect:o,...i}=a,u=Ga();return y.jsx(IA,{scope:o,id:u,children:y.jsx(Be.div,{role:"group","aria-labelledby":u,...i,ref:r})})});eR.displayName=M0;var D0="SelectLabel",j0=b.forwardRef((a,r)=>{const{__scopeSelect:o,...i}=a,u=WA(D0,o);return y.jsx(Be.div,{id:u.id,...i,ref:r})});j0.displayName=D0;var Ns="SelectItem",[tR,z0]=_r(Ns),k0=b.forwardRef((a,r)=>{const{__scopeSelect:o,value:i,disabled:u=!1,textValue:f,...d}=a,h=Ka(Ns,o),v=Pa(Ns,o),p=h.value===i,[x,m]=b.useState(f??""),[w,T]=b.useState(!1),A=Ie(r,j=>{var D;return(D=v.itemRefCallback)==null?void 0:D.call(v,j,i,u)}),E=Ga(),N=b.useRef("touch"),C=()=>{u||(h.onValueChange(i),h.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(tR,{scope:o,value:i,disabled:u,textId:E,isSelected:p,onItemTextChange:b.useCallback(j=>{m(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(Be.div,{role:"option","aria-labelledby":E,"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:A,onFocus:ke(d.onFocus,()=>T(!0)),onBlur:ke(d.onBlur,()=>T(!1)),onClick:ke(d.onClick,()=>{N.current!=="mouse"&&C()}),onPointerUp:ke(d.onPointerUp,()=>{N.current==="mouse"&&C()}),onPointerDown:ke(d.onPointerDown,j=>{N.current=j.pointerType}),onPointerMove:ke(d.onPointerMove,j=>{var D;N.current=j.pointerType,u?(D=v.onItemLeave)==null||D.call(v):N.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===" "||(VA.includes(j.key)&&C(),j.key===" "&&j.preventDefault())})})})})});k0.displayName=Ns;var Ro="SelectItemText",L0=b.forwardRef((a,r)=>{const{__scopeSelect:o,className:i,style:u,...f}=a,d=Ka(Ro,o),h=Pa(Ro,o),v=z0(Ro,o),p=$A(Ro,o),[x,m]=b.useState(null),w=Ie(r,C=>m(C),v.onItemTextChange,C=>{var j;return(j=h.itemTextRefCallback)==null?void 0:j.call(h,C,v.value,v.disabled)}),T=x==null?void 0:x.textContent,A=b.useMemo(()=>y.jsx("option",{value:v.value,disabled:v.disabled,children:T},v.value),[v.disabled,v.value,T]),{onNativeOptionAdd:E,onNativeOptionRemove:N}=p;return Nt(()=>(E(A),()=>N(A)),[E,N,A]),y.jsxs(y.Fragment,{children:[y.jsx(Be.span,{id:v.textId,...f,ref:w}),v.isSelected&&d.valueNode&&!d.valueNodeHasChildren?ko.createPortal(f.children,d.valueNode):null]})});L0.displayName=Ro;var U0="SelectItemIndicator",B0=b.forwardRef((a,r)=>{const{__scopeSelect:o,...i}=a;return z0(U0,o).isSelected?y.jsx(Be.span,{"aria-hidden":!0,...i,ref:r}):null});B0.displayName=U0;var Df="SelectScrollUpButton",H0=b.forwardRef((a,r)=>{const o=Pa(Df,a.__scopeSelect),i=hd(Df,a.__scopeSelect),[u,f]=b.useState(!1),d=Ie(r,i.onScrollButtonChange);return Nt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=v.scrollTop>0;f(p)};const v=o.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),u?y.jsx(Y0,{...a,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=o;h&&v&&(h.scrollTop=h.scrollTop-v.offsetHeight)}}):null});H0.displayName=Df;var jf="SelectScrollDownButton",V0=b.forwardRef((a,r)=>{const o=Pa(jf,a.__scopeSelect),i=hd(jf,a.__scopeSelect),[u,f]=b.useState(!1),d=Ie(r,i.onScrollButtonChange);return Nt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=v.scrollHeight-v.clientHeight,x=Math.ceil(v.scrollTop)<p;f(x)};const v=o.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),u?y.jsx(Y0,{...a,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=o;h&&v&&(h.scrollTop=h.scrollTop+v.offsetHeight)}}):null});V0.displayName=jf;var Y0=b.forwardRef((a,r)=>{const{__scopeSelect:o,onAutoScroll:i,...u}=a,f=Pa("SelectScrollButton",o),d=b.useRef(null),h=Us(o),v=b.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return b.useEffect(()=>()=>v(),[v]),Nt(()=>{var x;const p=h().find(m=>m.ref.current===document.activeElement);(x=p==null?void 0:p.ref.current)==null||x.scrollIntoView({block:"nearest"})},[h]),y.jsx(Be.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()})})}),nR="SelectSeparator",q0=b.forwardRef((a,r)=>{const{__scopeSelect:o,...i}=a;return y.jsx(Be.div,{"aria-hidden":!0,...i,ref:r})});q0.displayName=nR;var zf="SelectArrow",aR=b.forwardRef((a,r)=>{const{__scopeSelect:o,...i}=a,u=Bs(o),f=Ka(zf,o),d=Pa(zf,o);return f.open&&d.position==="popper"?y.jsx(kA,{...u,...i,ref:r}):null});aR.displayName=zf;var lR="SelectBubbleInput",G0=b.forwardRef(({__scopeSelect:a,value:r,...o},i)=>{const u=b.useRef(null),f=Ie(i,u),d=LA(r);return b.useEffect(()=>{const h=u.current;if(!h)return;const v=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(v,"value").set;if(d!==r&&x){const m=new Event("change",{bubbles:!0});x.call(h,r),h.dispatchEvent(m)}},[d,r]),y.jsx(Be.select,{...o,style:{...y0,...o.style},ref:f,defaultValue:r})});G0.displayName=lR;function $0(a){return a===""||a===void 0}function X0(a){const r=$a(a),o=b.useRef(""),i=b.useRef(0),u=b.useCallback(d=>{const h=o.current+d;r(h),(function v(p){o.current=p,window.clearTimeout(i.current),p!==""&&(i.current=window.setTimeout(()=>v(""),1e3))})(h)},[r]),f=b.useCallback(()=>{o.current="",window.clearTimeout(i.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(i.current),[]),[o,u,f]}function Q0(a,r,o){const u=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,f=o?a.indexOf(o):-1;let d=rR(a,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 rR(a,r){return a.map((o,i)=>a[(r+i)%a.length])}var oR=b0,Z0=S0,iR=E0,sR=T0,cR=N0,K0=C0,uR=O0,P0=j0,J0=k0,fR=L0,dR=B0,F0=H0,I0=V0,W0=q0;const mR=oR,hR=iR,eb=b.forwardRef(({className:a,children:r,...o},i)=>y.jsxs(Z0,{ref:i,className:Ne("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...o,children:[r,y.jsx(sR,{asChild:!0,children:y.jsx(Yv,{className:"h-4 w-4 opacity-50"})})]}));eb.displayName=Z0.displayName;const tb=b.forwardRef(({className:a,...r},o)=>y.jsx(F0,{ref:o,className:Ne("flex cursor-default items-center justify-center py-1",a),...r,children:y.jsx(Rw,{className:"h-4 w-4"})}));tb.displayName=F0.displayName;const nb=b.forwardRef(({className:a,...r},o)=>y.jsx(I0,{ref:o,className:Ne("flex cursor-default items-center justify-center py-1",a),...r,children:y.jsx(Yv,{className:"h-4 w-4"})}));nb.displayName=I0.displayName;const ab=b.forwardRef(({className:a,children:r,position:o="popper",...i},u)=>y.jsx(cR,{children:y.jsxs(K0,{ref:u,className:Ne("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",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",a),position:o,...i,children:[y.jsx(tb,{}),y.jsx(uR,{className:Ne("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),y.jsx(nb,{})]})}));ab.displayName=K0.displayName;const pR=b.forwardRef(({className:a,...r},o)=>y.jsx(P0,{ref:o,className:Ne("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...r}));pR.displayName=P0.displayName;const lb=b.forwardRef(({className:a,children:r,...o},i)=>y.jsxs(J0,{ref:i,className:Ne("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...o,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(dR,{children:y.jsx(Nw,{className:"h-4 w-4"})})}),y.jsx(fR,{children:r})]}));lb.displayName=J0.displayName;const gR=b.forwardRef(({className:a,...r},o)=>y.jsx(W0,{ref:o,className:Ne("-mx-1 my-1 h-px bg-muted",a),...r}));gR.displayName=W0.displayName;var xf="rovingFocusGroup.onEntryFocus",vR={bubbles:!1,cancelable:!0},Bo="RovingFocusGroup",[kf,rb,yR]=Py(Bo),[bR,ob]=Rl(Bo,[yR]),[xR,SR]=bR(Bo),ib=b.forwardRef((a,r)=>y.jsx(kf.Provider,{scope:a.__scopeRovingFocusGroup,children:y.jsx(kf.Slot,{scope:a.__scopeRovingFocusGroup,children:y.jsx(wR,{...a,ref:r})})}));ib.displayName=Bo;var wR=b.forwardRef((a,r)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:u=!1,dir:f,currentTabStopId:d,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:v,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...m}=a,w=b.useRef(null),T=Ie(r,w),A=rd(f),[E,N]=Oo({prop:d,defaultProp:h??null,onChange:v,caller:Bo}),[C,j]=b.useState(!1),D=$a(p),B=rb(o),Z=b.useRef(!1),[F,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(xR,{scope:o,orientation:i,dir:A,loop:u,currentTabStopId:E,onItemFocus:b.useCallback(V=>N(V),[N]),onItemShiftTab:b.useCallback(()=>j(!0),[]),onFocusableItemAdd:b.useCallback(()=>q(V=>V+1),[]),onFocusableItemRemove:b.useCallback(()=>q(V=>V-1),[]),children:y.jsx(Be.div,{tabIndex:C||F===0?-1:0,"data-orientation":i,...m,ref:T,style:{outline:"none",...a.style},onMouseDown:ke(a.onMouseDown,()=>{Z.current=!0}),onFocus:ke(a.onFocus,V=>{const le=!Z.current;if(V.target===V.currentTarget&&le&&!C){const he=new CustomEvent(xf,vR);if(V.currentTarget.dispatchEvent(he),!he.defaultPrevented){const pe=B().filter(O=>O.focusable),fe=pe.find(O=>O.active),me=pe.find(O=>O.id===E),ue=[fe,me,...pe].filter(Boolean).map(O=>O.ref.current);ub(ue,x)}}Z.current=!1}),onBlur:ke(a.onBlur,()=>j(!1))})})}),sb="RovingFocusGroupItem",cb=b.forwardRef((a,r)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:u=!1,tabStopId:f,children:d,...h}=a,v=Ga(),p=f||v,x=SR(sb,o),m=x.currentTabStopId===p,w=rb(o),{onFocusableItemAdd:T,onFocusableItemRemove:A,currentTabStopId:E}=x;return b.useEffect(()=>{if(i)return T(),()=>A()},[i,T,A]),y.jsx(kf.ItemSlot,{scope:o,id:p,focusable:i,active:u,children:y.jsx(Be.span,{tabIndex:m?0:-1,"data-orientation":x.orientation,...h,ref:r,onMouseDown:ke(a.onMouseDown,N=>{i?x.onItemFocus(p):N.preventDefault()}),onFocus:ke(a.onFocus,()=>x.onItemFocus(p)),onKeyDown:ke(a.onKeyDown,N=>{if(N.key==="Tab"&&N.shiftKey){x.onItemShiftTab();return}if(N.target!==N.currentTarget)return;const C=NR(N,x.orientation,x.dir);if(C!==void 0){if(N.metaKey||N.ctrlKey||N.altKey||N.shiftKey)return;N.preventDefault();let D=w().filter(B=>B.focusable).map(B=>B.ref.current);if(C==="last")D.reverse();else if(C==="prev"||C==="next"){C==="prev"&&D.reverse();const B=D.indexOf(N.currentTarget);D=x.loop?CR(D,B+1):D.slice(B+1)}setTimeout(()=>ub(D))}}),children:typeof d=="function"?d({isCurrentTabStop:m,hasTabStop:E!=null}):d})})});cb.displayName=sb;var ER={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function TR(a,r){return r!=="rtl"?a:a==="ArrowLeft"?"ArrowRight":a==="ArrowRight"?"ArrowLeft":a}function NR(a,r,o){const i=TR(a.key,o);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return ER[i]}function ub(a,r=!1){const o=document.activeElement;for(const i of a)if(i===o||(i.focus({preventScroll:r}),document.activeElement!==o))return}function CR(a,r){return a.map((o,i)=>a[(r+i)%a.length])}var AR=ib,RR=cb,Hs="Tabs",[_R]=Rl(Hs,[ob]),fb=ob(),[OR,pd]=_R(Hs),db=b.forwardRef((a,r)=>{const{__scopeTabs:o,value:i,onValueChange:u,defaultValue:f,orientation:d="horizontal",dir:h,activationMode:v="automatic",...p}=a,x=rd(h),[m,w]=Oo({prop:i,onChange:u,defaultProp:f??"",caller:Hs});return y.jsx(OR,{scope:o,baseId:Ga(),value:m,onValueChange:w,orientation:d,dir:x,activationMode:v,children:y.jsx(Be.div,{dir:x,"data-orientation":d,...p,ref:r})})});db.displayName=Hs;var mb="TabsList",hb=b.forwardRef((a,r)=>{const{__scopeTabs:o,loop:i=!0,...u}=a,f=pd(mb,o),d=fb(o);return y.jsx(AR,{asChild:!0,...d,orientation:f.orientation,dir:f.dir,loop:i,children:y.jsx(Be.div,{role:"tablist","aria-orientation":f.orientation,...u,ref:r})})});hb.displayName=mb;var pb="TabsTrigger",gb=b.forwardRef((a,r)=>{const{__scopeTabs:o,value:i,disabled:u=!1,...f}=a,d=pd(pb,o),h=fb(o),v=bb(d.baseId,i),p=xb(d.baseId,i),x=i===d.value;return y.jsx(RR,{asChild:!0,...h,focusable:!u,active:x,children:y.jsx(Be.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(a.onMouseDown,m=>{!u&&m.button===0&&m.ctrlKey===!1?d.onValueChange(i):m.preventDefault()}),onKeyDown:ke(a.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&d.onValueChange(i)}),onFocus:ke(a.onFocus,()=>{const m=d.activationMode!=="manual";!x&&!u&&m&&d.onValueChange(i)})})})});gb.displayName=pb;var vb="TabsContent",yb=b.forwardRef((a,r)=>{const{__scopeTabs:o,value:i,forceMount:u,children:f,...d}=a,h=pd(vb,o),v=bb(h.baseId,i),p=xb(h.baseId,i),x=i===h.value,m=b.useRef(x);return b.useEffect(()=>{const w=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(w)},[]),y.jsx(Lo,{present:u||x,children:({present:w})=>y.jsx(Be.div,{"data-state":x?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":v,hidden:!w,id:p,tabIndex:0,...d,ref:r,style:{...a.style,animationDuration:m.current?"0s":void 0},children:w&&f})})});yb.displayName=vb;function bb(a,r){return`${a}-trigger-${r}`}function xb(a,r){return`${a}-content-${r}`}var MR=db,Sb=hb,wb=gb,Eb=yb;const DR=MR,Tb=b.forwardRef(({className:a,...r},o)=>y.jsx(Sb,{ref:o,className:Ne("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",a),...r}));Tb.displayName=Sb.displayName;const ps=b.forwardRef(({className:a,...r},o)=>y.jsx(wb,{ref:o,className:Ne("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",a),...r}));ps.displayName=wb.displayName;const gs=b.forwardRef(({className:a,...r},o)=>y.jsx(Eb,{ref:o,className:Ne("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",a),...r}));gs.displayName=Eb.displayName;var Nb="AlertDialog",[jR]=Rl(Nb,[Ny]),ua=Ny(),Cb=a=>{const{__scopeAlertDialog:r,...o}=a,i=ua(r);return y.jsx(Yy,{...i,...o,modal:!0})};Cb.displayName=Nb;var zR="AlertDialogTrigger",Ab=b.forwardRef((a,r)=>{const{__scopeAlertDialog:o,...i}=a,u=ua(o);return y.jsx(qy,{...u,...i,ref:r})});Ab.displayName=zR;var kR="AlertDialogPortal",Rb=a=>{const{__scopeAlertDialog:r,...o}=a,i=ua(r);return y.jsx(Gy,{...i,...o})};Rb.displayName=kR;var LR="AlertDialogOverlay",_b=b.forwardRef((a,r)=>{const{__scopeAlertDialog:o,...i}=a,u=ua(o);return y.jsx(td,{...u,...i,ref:r})});_b.displayName=LR;var wr="AlertDialogContent",[UR,BR]=jR(wr),HR=KT("AlertDialogContent"),Ob=b.forwardRef((a,r)=>{const{__scopeAlertDialog:o,children:i,...u}=a,f=ua(o),d=b.useRef(null),h=Ie(r,d),v=b.useRef(null);return y.jsx(uC,{contentName:wr,titleName:Mb,docsSlug:"alert-dialog",children:y.jsx(UR,{scope:o,cancelRef:v,children:y.jsxs(nd,{role:"alertdialog",...f,...u,ref:h,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(HR,{children:i}),y.jsx(YR,{contentRef:d})]})})})});Ob.displayName=wr;var Mb="AlertDialogTitle",Db=b.forwardRef((a,r)=>{const{__scopeAlertDialog:o,...i}=a,u=ua(o);return y.jsx(ad,{...u,...i,ref:r})});Db.displayName=Mb;var jb="AlertDialogDescription",zb=b.forwardRef((a,r)=>{const{__scopeAlertDialog:o,...i}=a,u=ua(o);return y.jsx(ld,{...u,...i,ref:r})});zb.displayName=jb;var VR="AlertDialogAction",kb=b.forwardRef((a,r)=>{const{__scopeAlertDialog:o,...i}=a,u=ua(o);return y.jsx(Ms,{...u,...i,ref:r})});kb.displayName=VR;var Lb="AlertDialogCancel",Ub=b.forwardRef((a,r)=>{const{__scopeAlertDialog:o,...i}=a,{cancelRef:u}=BR(Lb,o),f=ua(o),d=Ie(r,u);return y.jsx(Ms,{...f,...i,ref:d})});Ub.displayName=Lb;var YR=({contentRef:a})=>{const r=`\`${wr}\` requires a description for the component to be accessible for screen reader users.
261
-
262
- You can add a description to the \`${wr}\` by passing a \`${jb}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
263
-
264
- 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 \`${wr}\`. 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.
265
-
266
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return b.useEffect(()=>{var i;document.getElementById((i=a.current)==null?void 0:i.getAttribute("aria-describedby"))||console.warn(r)},[r,a]),null},qR=Cb,GR=Ab,$R=Rb,Bb=_b,Hb=Ob,Vb=kb,Yb=Ub,qb=Db,Gb=zb;const XR=qR,QR=GR,ZR=$R,$b=b.forwardRef(({className:a,...r},o)=>y.jsx(Bb,{className:Ne("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",a),...r,ref:o}));$b.displayName=Bb.displayName;const Xb=b.forwardRef(({className:a,...r},o)=>y.jsxs(ZR,{children:[y.jsx($b,{}),y.jsx(Hb,{ref:o,className:Ne("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg 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%] sm:rounded-lg",a),...r})]}));Xb.displayName=Hb.displayName;const Qb=({className:a,...r})=>y.jsx("div",{className:Ne("flex flex-col space-y-2 text-center sm:text-left",a),...r});Qb.displayName="AlertDialogHeader";const Zb=({className:a,...r})=>y.jsx("div",{className:Ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...r});Zb.displayName="AlertDialogFooter";const Kb=b.forwardRef(({className:a,...r},o)=>y.jsx(qb,{ref:o,className:Ne("text-lg font-semibold",a),...r}));Kb.displayName=qb.displayName;const Pb=b.forwardRef(({className:a,...r},o)=>y.jsx(Gb,{ref:o,className:Ne("text-sm text-muted-foreground",a),...r}));Pb.displayName=Gb.displayName;const Jb=b.forwardRef(({className:a,...r},o)=>y.jsx(Vb,{ref:o,className:Ne(Zf(),a),...r}));Jb.displayName=Vb.displayName;const Fb=b.forwardRef(({className:a,...r},o)=>y.jsx(Yb,{ref:o,className:Ne(Zf({variant:"outline"}),"mt-2 sm:mt-0",a),...r}));Fb.displayName=Yb.displayName;const KR=2e3,PR=24e4;function qa(a){if(a==null||a==="")return"Unavailable";const r=new Date(a);return Number.isNaN(r.getTime())?"Unavailable":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(r)}function JR(a){const r=Math.max(0,Math.floor(a)),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 sv(a){if(a==null||Number.isNaN(a))return"Unavailable";const r=["B","KB","MB","GB","TB"];let o=a,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 Ib(a){return a==="ok"?"default":a==="missing"||a==="install-failed"||a==="login-failed"?"destructive":a==="not-authenticated"||a==="unsupported-platform"?"outline":"secondary"}function FR(a){return a.available?y.jsxs(St,{className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[y.jsx(Ow,{className:"h-3 w-3"}),"Available"]}):y.jsxs(St,{variant:"destructive",className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[y.jsx(Dw,{className:"h-3 w-3"}),"Unavailable"]})}function IR(a){return a.update?a.update.updateAvailable?y.jsxs(St,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Update ",a.update.latestVersion]}):y.jsx(St,{variant:"secondary",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:"Up to date"}):null}function WR(a){var o;const r=`npm install -g ${(o=a.update)==null?void 0:o.packageName}@latest`;return a.id==="claude"?`${r} --include=optional --ignore-scripts=false`:r}function e_(a){return new Promise(r=>setTimeout(r,a))}function cv(a){return a.status==="succeeded"||a.status==="failed"}async function t_(a){if(cv(a))return a;const r=Date.now()+PR;let o=a;for(;!cv(o)&&Date.now()<r;)await e_(KR),o=await rw(a.id);return o}function n_(a){if(a.error)return a.error;const r=a.result;return(r==null?void 0:r.detail)??null}function ze({label:a,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:a}),y.jsx("span",{className:Ne("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:r})]})}function a_({agent:a,nodeName:r,upgrading:o,onUpgrade:i}){var d,h;const u=((d=a.update)==null?void 0:d.updateAvailable)===!0,f=IR(a);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(Vv,{className:"h-3.5 w-3.5 text-primary"}),a.label]}),y.jsxs("div",{className:"mt-0.5 text-[10px] text-muted-foreground",children:["Command: ",y.jsx("span",{className:"font-mono text-[10px]",children:a.command})]})]}),y.jsxs("div",{className:"flex flex-col items-end gap-1",children:[FR(a),u?y.jsxs(XR,{children:[y.jsx(QR,{asChild:!0,children:y.jsx("button",{type:"button",disabled:o,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(Xb,{children:[y.jsxs(Qb,{children:[y.jsxs(Kb,{children:["Upgrade ",a.label,"?"]}),y.jsxs(Pb,{children:["This runs ",WR(a)," on ",r,". Remote nodes execute the command on the remote machine."]})]}),y.jsxs(Zb,{children:[y.jsx(Fb,{children:"Cancel"}),y.jsx(Jb,{onClick:()=>i(a),children:"Upgrade"})]})]})]}):f]})]}),y.jsxs("div",{className:"mt-2 space-y-1 text-[11px]",children:[y.jsx(ze,{label:"Version",value:a.version??"Unavailable",mono:!!a.version}),a.update&&y.jsx(ze,{label:"Latest",value:a.update.latestVersion??"Unavailable",mono:!!a.update.latestVersion}),y.jsx(ze,{label:"Path",value:a.path??"Not on PATH",mono:!!a.path}),y.jsx(ze,{label:"Checked",value:qa(a.checkedAt)}),a.update&&y.jsx(ze,{label:"Update check",value:qa(a.update.checkedAt)})]}),((h=a.update)==null?void 0:h.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:a.update.detail}),a.metadataStatus&&y.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[y.jsx(St,{variant:Ib(a.metadataStatus),className:"rounded-full px-2 py-0 text-[10px] uppercase tracking-[0.14em]",children:a.metadataStatus}),y.jsx("span",{children:"Startup preflight"})]}),a.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:a.detail})]})}function cs({name:a,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:a}),y.jsx("div",{className:"text-[10px] text-muted-foreground",children:qa(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(St,{variant:r.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:r.authenticated?"auth ok":"auth required"}),y.jsx(St,{variant:Ib(r==null?void 0:r.status),className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:(r==null?void 0:r.status)??"unknown"})]})]})}function l_(a){return[{key:"workspace",label:"Workspace",value:a==null?void 0:a.workspace},{key:"node",label:"Node app",value:a==null?void 0:a.node},{key:"core",label:"Core",value:a==null?void 0:a.core},{key:"dashboard",label:"Dashboard",value:a==null?void 0:a.dashboard},{key:"api",label:"API",value:a==null?void 0:a.api}].filter(o=>o.value)}function r_(a,r){var o;return(o=a==null?void 0:a.nodes)!=null&&o.length?a.nodes:r?[r]:[]}function o_(a,r){var i;if(r&&a.id===r.nodeId)return r;const o=a.settingsSnapshot;return{...a,nodeId:a.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 i_(a,r){return a.id===r?`${a.name} (this node)`:`${a.name} (${a.role})`}function s_({cluster:a,systemInfo:r,sseConnected:o,onRefresh:i}){var C,j,D,B,Z,F,q,V,le,he,pe,fe,me,ge,ue,O,Y,J,re,I,_,G,X,W;const u=b.useMemo(()=>r_(a,r),[a,r]),[f,d]=b.useState(()=>{var P;return(r==null?void 0:r.nodeId)??((P=a==null?void 0:a.self)==null?void 0:P.id)??""}),[h,v]=b.useState(null),p=(a==null?void 0:a.self)??r??u[0]??null,x=u.find(P=>P.id===f)??p,m=x?o_(x,r):null,w=!!(r&&x&&x.id===r.nodeId),T=w||!!(x!=null&&x.settingsSnapshot),A=b.useMemo(()=>l_(m==null?void 0:m.packages),[m==null?void 0:m.packages]),E=((C=m==null?void 0:m.startupRequirements)==null?void 0:C.components)??(m==null?void 0:m.components)??{};async function N(P){if(!x)return;const ne=`${x.id}:${P.id}`;v(ne);try{const ee=await ow(x.id,P.id);Ya.info(`${P.label} upgrade started on ${x.name}`);const ae=await t_(ee);ae.status==="succeeded"?(Ya.success(`${P.label} upgrade finished on ${x.name}`),i==null||i()):ae.status==="failed"?Ya.error(n_(ae)??`${P.label} upgrade failed`):Ya.info(`${P.label} upgrade is still running on ${x.name}`)}catch(ee){Ya.error(ee instanceof Error?ee.message:`${P.label} upgrade failed`)}finally{v(null)}}return!x||!m?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(cy,{status:x.status}),y.jsx("span",{className:"font-medium text-foreground",children:x.name})]}),y.jsx(cT,{role:x.role}),y.jsx(St,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:x.transportType??m.transportType??"direct"}),y.jsx(St,{variant:w?"default":"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:w?"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(mR,{value:x.id,onValueChange:d,children:[y.jsx(eb,{className:"h-7 rounded-lg border-border/70 bg-background/70 text-[11px]",children:y.jsx(hR,{placeholder:"Choose a node"})}),y.jsx(ab,{children:u.map(P=>y.jsx(lb,{value:P.id,children:i_(P,r==null?void 0:r.nodeId)},P.id))})]})]})]}),y.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[y.jsxs(St,{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(St,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:["Uptime ",JR(m.uptime)]}),!w&&y.jsxs(St,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:["Updated ",qa((j=x.settingsSnapshot)==null?void 0:j.collectedAt)]})]})]})}),!T&&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(DR,{defaultValue:"session",className:"space-y-2",children:[y.jsxs(Tb,{className:"h-auto flex-wrap rounded-xl border border-border/60 bg-muted/40 p-0.5",children:[y.jsx(ps,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),y.jsx(ps,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),y.jsx(ps,{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(_n,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(Fw,{className:"h-3.5 w-3.5 text-primary"}),"Selected node"]}),y.jsx(Dn,{className:"text-[10px]",children:"Cluster role, identity, and node-scoped runtime state."})]}),y.jsxs(jn,{className:"space-y-0 px-3 pb-2.5",children:[y.jsx(ze,{label:"Node ID",value:m.nodeId,mono:!0}),y.jsx(ze,{label:"Status",value:x.status}),y.jsx(ze,{label:"Role",value:x.role}),y.jsx(ze,{label:"Endpoint",value:x.endpoint,mono:!0}),y.jsx(ze,{label:"Joined",value:qa(x.joinedAt)}),y.jsx(ze,{label:"Heartbeat",value:qa(x.lastHeartbeat)}),y.jsx(ze,{label:"Capabilities",value:x.capabilities.length>0?x.capabilities.join(", "):"None"})]})]}),y.jsxs(_n,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(Lw,{className:"h-3.5 w-3.5 text-primary"}),"OS info"]}),y.jsx(Dn,{className:"text-[10px]",children:"Host and resource details reported by the current process."})]}),y.jsxs(jn,{className:"space-y-0 px-3 pb-2.5",children:[y.jsx(ze,{label:"Host",value:((D=m.os)==null?void 0:D.hostname)??"Unavailable"}),y.jsx(ze,{label:"Platform",value:m.os?`${m.os.platform} ${m.os.release}`:"Unavailable"}),y.jsx(ze,{label:"Arch",value:((B=m.os)==null?void 0:B.arch)??"Unavailable"}),y.jsx(ze,{label:"CPU",value:((Z=m.os)==null?void 0:Z.cpuModel)??"Unavailable"}),y.jsx(ze,{label:"Cores",value:String(((F=m.os)==null?void 0:F.cpuCount)??"Unavailable")}),y.jsx(ze,{label:"Memory",value:m.os?`${sv(m.os.freeMemoryBytes)} free / ${sv(m.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),y.jsxs(_n,{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(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(Vv,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),y.jsx(Dn,{className:"text-[10px]",children:w?"Live command availability for Codex and Claude Code on this node.":"Most recent agent availability snapshot synced from this node."})]}),y.jsx(jn,{className:"grid gap-2 px-3 pb-2.5 md:grid-cols-2",children:(m.agents??[]).map(P=>y.jsx(a_,{agent:P,nodeName:x.name,upgrading:h===`${x.id}:${P.id}`,onUpgrade:N},P.id))})]})]}),y.jsxs(gs,{value:"access",className:"mt-0 grid gap-2 xl:grid-cols-2",children:[y.jsxs(_n,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(Ew,{className:"h-3.5 w-3.5 text-primary"}),"Access surface"]}),y.jsx(Dn,{className:"text-[10px]",children:"How this node is exposed to the dashboard and other peers."})]}),y.jsxs(jn,{className:"space-y-0 px-3 pb-2.5",children:[y.jsx(ze,{label:"Transport",value:x.transportType??m.transportType??"direct"}),y.jsx(ze,{label:"Node URL",value:x.endpoint,mono:!0}),y.jsx(ze,{label:"Node tunnel",value:x.devtunnelEndpoint??"Disabled",mono:!!x.devtunnelEndpoint}),y.jsx(ze,{label:"Dashboard URL",value:x.dashboardOrigin??m.localDashboardOrigin??"Unavailable",mono:!!(x.dashboardOrigin||m.localDashboardOrigin)}),y.jsx(ze,{label:"Local dashboard",value:m.localDashboardOrigin??"Unavailable",mono:!!m.localDashboardOrigin})]})]}),y.jsxs(_n,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(tE,{className:"h-3.5 w-3.5 text-primary"}),"Auth"]}),y.jsx(Dn,{className:"text-[10px]",children:"Current bearer-auth and trusted access posture."})]}),y.jsxs(jn,{className:"space-y-0 px-3 pb-2.5",children:[y.jsx(ze,{label:"Enabled",value:(q=m.auth)!=null&&q.enabled?"Yes":"No"}),y.jsx(ze,{label:"Same tenant",value:(V=m.auth)!=null&&V.allowSameTenant?"Allowed":"Off"}),y.jsx(ze,{label:"Allowed users",value:(le=m.auth)!=null&&le.allowedUsers.length?m.auth.allowedUsers.join(", "):"None"})]})]}),y.jsxs(_n,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(Vw,{className:"h-3.5 w-3.5 text-primary"}),"Paths"]}),y.jsx(Dn,{className:"text-[10px]",children:"Workspace and runtime paths currently used by this node."})]}),y.jsxs(jn,{className:"space-y-0 px-3 pb-2.5",children:[y.jsx(ze,{label:"Work dir",value:((he=m.runtime)==null?void 0:he.workDir)??m.workDir??"Unavailable",mono:!!(((pe=m.runtime)==null?void 0:pe.workDir)??m.workDir)}),y.jsx(ze,{label:"Storage",value:((fe=m.runtime)==null?void 0:fe.storagePath)??"Unavailable",mono:!!((me=m.runtime)!=null&&me.storagePath)}),y.jsx(ze,{label:"Process cwd",value:((ge=m.runtime)==null?void 0:ge.cwd)??"Unavailable",mono:!!((ue=m.runtime)!=null&&ue.cwd)}),y.jsx(ze,{label:"Started",value:qa((O=m.runtime)==null?void 0:O.startedAt)}),y.jsx(ze,{label:"PID",value:m.runtime?String(m.runtime.pid):"Unavailable",mono:!!m.runtime})]})]}),y.jsxs(_n,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(Hv,{className:"h-3.5 w-3.5 text-primary"}),"Startup checks"]}),y.jsx(Dn,{className:"text-[10px]",children:"Dependency preflight snapshot persisted during node startup."})]}),y.jsxs(jn,{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:qa((Y=m.startupRequirements)==null?void 0:Y.lastCheckedAt)})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsx(cs,{name:"Azure CLI",status:E.az}),y.jsx(cs,{name:"DevTunnel",status:E.devtunnel}),y.jsx(cs,{name:"Claude Code",status:E.claude}),y.jsx(cs,{name:"Codex",status:E.codex})]})]})]})]}),y.jsxs(gs,{value:"about",className:"mt-0 grid gap-2 xl:grid-cols-[0.92fr_1.08fr]",children:[y.jsxs(_n,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(xw,{className:"h-3.5 w-3.5 text-primary"}),"Repository"]}),y.jsx(Dn,{className:"text-[10px]",children:"Source-of-truth repository metadata for this running node."})]}),y.jsxs(jn,{className:"space-y-3 px-3 pb-2.5",children:[(J=m.repository)!=null&&J.url?y.jsxs("a",{href:m.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:m.repository.url}),y.jsx(Bw,{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:((re=m.repository)==null?void 0:re.branch)??"Unavailable",mono:!!((I=m.repository)!=null&&I.branch)}),y.jsx(ze,{label:"Commit",value:((_=m.repository)==null?void 0:_.commit)??"Unavailable",mono:!!((G=m.repository)!=null&&G.commit)}),y.jsx(ze,{label:"Runtime",value:`${m.packageName??"meshy"} ${m.version}`,mono:!0}),y.jsx(ze,{label:"Node.js",value:((X=m.runtime)==null?void 0:X.nodeVersion)??"Unavailable",mono:!!((W=m.runtime)!=null&&W.nodeVersion)})]})]})]}),y.jsxs(_n,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(qw,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),y.jsx(Dn,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),y.jsx(jn,{className:"space-y-1.5 px-3 pb-2.5",children:A.map(P=>{var ne,ee;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:P.label}),y.jsx("div",{className:"text-[10px] text-muted-foreground",children:(ne=P.value)==null?void 0:ne.name})]}),y.jsx(St,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 font-mono text-[10px]",children:(ee=P.value)==null?void 0:ee.version})]},P.key)})})]})]})]})]})}function c_(){const{cluster:a,systemInfo:r,sseConnected:o,refresh:i}=Uv(),[u,f]=b.useState(!1);return y.jsxs(hC,{open:u,onOpenChange:f,children:[y.jsx(pC,{asChild:!0,children:y.jsx(wl,{variant:"ghost",size:"icon","aria-label":"Settings",title:"Settings",className:"rounded-full border border-border/70 bg-background/70 shadow-sm",children:y.jsx(Ww,{className:"h-4 w-4"})})}),y.jsxs(Xy,{className:"grid h-[min(82vh,42rem)] max-h-[82vh] max-w-[min(90vw,56rem)] grid-rows-[auto_minmax(0,1fr)] overflow-hidden rounded-2xl 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(Qy,{className:"shrink-0 border-b border-border/60 px-3 py-2 sm:px-4",children:[y.jsxs(Zy,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx($w,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),y.jsx(Ky,{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(s_,{cluster:a,systemInfo:r,sseConnected:o,onRefresh:i})})]})]})}const p5="bypass",u_=[{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"}],g5=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],v5=new Set(u_.filter(a=>a.supportsFollowUp).map(a=>a.value)),y5=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],b5=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],f_=new Set(["pending","assigned"]),d_=new Set(["running"]),m_=new Set(["completed","failed","cancelled"]);function x5(a,r){switch(r){case"running":return d_.has(a.status);case"waiting":return f_.has(a.status);case"closed":return m_.has(a.status);case"shared":return!!a.activeShare;case"archived":return a.status==="archived";case"active":default:return a.status!=="archived"}}function S5(a,r){if(r==="all")return!0;const o=a.conversationKind==="nativeSession";return r==="native"?o:!o}function w5(a,r){const o=r.trim().toLowerCase();return o?[a.title,a.description,a.id,a.agent,a.assignedTo??"",a.assignedNodeName??"",a.project??"",a.effectiveProjectPath??"",a.conversationKind==="nativeSession"?"native session":"meshy chat",a.activeShare?"shared conversation":""].some(i=>i.toLowerCase().includes(o)):!0}function h_(a,r,o){if(!a)return"unassigned";const i=r==null?void 0:r.find(u=>u.id===a);return(i==null?void 0:i.name)??o??a.slice(0,8)}function E5(a,r,o){return h_(a,r,o).toLowerCase()}function T5(a,r){return[...a].sort((o,i)=>o.id===r?-1:i.id===r?1:o.name.localeCompare(i.name))}function N5(a){if(!a||typeof a!="object")return null;const r=a,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 C5(a){switch(a){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 A5(a){return a==="default workspace"?a:a.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??a}function R5(a){const r=Date.now()-a;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 _5(a){return new Date(a).toLocaleString()}function O5(a){const r=Math.floor(a/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 p_(a,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(a),Ya.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 h=f.createElement("textarea"),v=f.activeElement,p=v&&typeof v.focus=="function"?v:null;h.value=a,h.setAttribute("readonly","true"),h.style.position="fixed",h.style.opacity="0",h.style.pointerEvents="none",f.body.appendChild(h),h.select(),h.setSelectionRange(0,h.value.length);const x=d("copy");if(f.body.removeChild(h),p==null||p.focus(),!x)throw new Error("Clipboard access is unavailable");return Ya.success(r),!0}catch(f){return Ya.error(f instanceof Error?f.message:"Failed to copy"),!1}}function M5(a,r){const o=new Map;for(const u of a){const f=u.assignedTo??null,d=f??"__unassigned__",h=f?r.get(f)??u.assignedNodeName??f.slice(0,8):"Unassigned",v=u.effectiveProjectPath??u.project??"default workspace";o.has(d)||o.set(d,{nodeId:f,nodeName:h,dirMap:new Map});const p=o.get(d);p.dirMap.has(v)||p.dirMap.set(v,[]),p.dirMap.get(v).push(u)}const i=Array.from(o.values()).map(({nodeId:u,nodeName:f,dirMap:d})=>{const h=Array.from(d.entries()).map(([v,p])=>({path:v,tasks:p})).sort((v,p)=>p.tasks.length-v.tasks.length||v.path.localeCompare(p.path));return{nodeId:u,nodeName:f,dirs:h}});return i.sort((u,f)=>u.nodeId===null?1:f.nodeId===null?-1:u.nodeName.localeCompare(f.nodeName)),i}const g_={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 v_(a){return a.split(".")[0]??"unknown"}function y_(a){return new Date(a).toLocaleTimeString("en-US",{hour12:!1})}function br(a,r){return(r==null?void 0:r.get(a))??a}function b_(a,r){const o=a.data,i=o.operation;switch(a.type){case"node.joined":return`${o.name} joined the cluster`;case"node.left":return`${br(o.nodeId,r)} left (${o.reason})`;case"node.status":return`${br(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 ${br(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 ${br(i==null?void 0:i.nodeId,r)}`;case"transport.changed":return`${br(o.nodeId,r)} transport switched to ${o.transportType}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${br(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 x_(a){return JSON.stringify(a,null,2)}function S_({events:a,maxHeight:r="400px",emptyTitle:o="No live events yet",emptyDescription:i="Cluster activity appears here as it happens.",nodeNameById:u,onDismiss:f}){return a.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:a.map(d=>{const h=v_(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:y_(d.timestamp)}),y.jsx(St,{variant:"outline",className:Ne("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",g_[h]),children:d.type})]}),y.jsxs("div",{className:"flex shrink-0 items-center gap-0.5",children:[y.jsx(wl,{type:"button",variant:"ghost",size:"icon",className:"h-5 w-5 rounded-full text-muted-foreground",onClick:()=>void p_(x_(d),"Event copied"),"aria-label":`Copy ${d.type} event`,title:"Copy event",children:y.jsx(zw,{className:"h-3 w-3"})}),f&&y.jsx(wl,{type:"button",variant:"ghost",size:"icon",className:"h-5 w-5 rounded-full text-muted-foreground hover:text-foreground",onClick:()=>f(d.id),"aria-label":`Dismiss ${d.type} event`,title:"Dismiss event",children:y.jsx(Gv,{className:"h-3 w-3"})})]})]}),y.jsx("div",{className:"text-[11px] leading-snug text-foreground/85",children:b_(d,u)})]})},d.id)})})})}const w_=["node.","election.","transport."],Wb="cluster.state";function E_(a){return w_.some(r=>a.type.startsWith(r))}function T_(a){return new Date(a).toLocaleTimeString("en-US",{hour12:!1})}function uv(a,r){return typeof a=="string"?(r==null?void 0:r.get(a))??a:null}function N_(a,r){if(a.type===Wb)return uv(a.data.leaderId,r);const o=a.data.operation;return uv(a.data.nodeId??(o==null?void 0:o.nodeId)??a.data.leaderId??a.data.candidateId,r)}function C_(a,r){return a?`${N_(a,r)??a.type}: ${T_(a.timestamp)}`:"Waiting for cluster activity"}function A_({connected:a,events:r,nodeNameById:o,defaultOpen:i=!1}){const[u,f]=b.useState(i),[d,h]=b.useState(new Set),v=b.useRef(null),p=b.useMemo(()=>{const m=r.filter(T=>E_(T)&&!d.has(T.id)),w=new Set;return m.filter(T=>{if(T.type!=="node.status")return!0;const A=typeof T.data.nodeId=="string"?T.data.nodeId:T.type;return w.has(A)?!1:(w.add(A),!0)})},[r,d]),x=b.useMemo(()=>r.find(m=>m.type===Wb)??p[0],[r,p]);return b.useEffect(()=>{h(m=>{if(m.size===0)return m;const w=new Set(r.map(A=>A.id)),T=new Set(Array.from(m).filter(A=>w.has(A)));return T.size===m.size?m:T})},[r]),b.useEffect(()=>{if(!u)return;const m=T=>{var A;(A=v.current)!=null&&A.contains(T.target)||f(!1)},w=T=>{T.key==="Escape"&&f(!1)};return document.addEventListener("pointerdown",m),document.addEventListener("keydown",w),()=>{document.removeEventListener("pointerdown",m),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(m=>!m),className:Ne("flex items-center gap-1.5 rounded-full border px-2 py-1.5 text-[11px] transition-all sm:gap-2 sm:px-3 sm:py-2 sm:text-xs",a?"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:a?"Live link connected":"Live link reconnecting",children:[y.jsx(qv,{className:Ne("h-3.5 w-3.5",a?"text-emerald-500":"text-destructive")}),a?"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-2xl 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:[a?y.jsx(Hv,{className:"h-3.5 w-3.5 text-emerald-500"}):y.jsx(rE,{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:a?"SSE stream is connected":"SSE stream is reconnecting"})]}),y.jsx("div",{className:Ne("rounded-full border px-2 py-0.5 text-[9px] font-medium uppercase tracking-[0.14em]",a?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:a?"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:C_(x,o)})]})]}),y.jsx("div",{className:"px-2 py-2",children:y.jsx(S_,{events:p,maxHeight:"16rem",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:o,onDismiss:m=>h(w=>new Set(w).add(m))})}),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(wl,{type:"button",variant:"ghost",size:"sm",className:"h-6 rounded-full px-2 text-[10px]",onClick:()=>h(new Set(r.map(m=>m.id))),disabled:p.length===0,title:"Dismiss all notifications",children:"Dismiss all"}),y.jsx(wl,{type:"button",variant:"ghost",size:"sm",className:"h-6 rounded-full px-2 text-[10px]",onClick:()=>f(!1),children:"Close"})]})]})]})]})}function R_(){var x,m;const{cluster:a,events:r,sseConnected:o}=Uv(),{theme:i,setTheme:u}=oT(),f=Bn(),d=f.pathname==="/"||/^\/tasks\/[^/]+$/.test(f.pathname),h=b.useMemo(()=>{const w=new Map;for(const T of(a==null?void 0:a.nodes)??[])w.set(T.id,T.name);return w},[a==null?void 0:a.nodes]),v=i==="dark"?Kw:i==="light"?aE:Qw,p=()=>{const w=["light","dark","system"],T=w.indexOf(i);u(w[(T+1)%w.length])};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.jsx("div",{className:"pointer-events-none absolute left-[-12rem] top-[-10rem] h-[28rem] w-[28rem] rounded-full bg-primary/14 blur-3xl"}),y.jsx("div",{className:"pointer-events-none absolute right-[-10rem] top-[10%] h-[24rem] w-[24rem] rounded-full bg-emerald-500/10 blur-3xl dark:bg-emerald-300/8"}),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:"mx-auto flex max-w-[1760px] flex-wrap items-center justify-between gap-2 rounded-2xl border border-border/60 bg-background/78 px-3 py-2 shadow-[0_20px_80px_-48px_rgba(0,0,0,var(--panel-shadow-alpha))] backdrop-blur-xl 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(jv,{to:"/",className:"flex items-center gap-3",children:[y.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-xl border border-border/70 bg-foreground text-xs font-semibold tracking-[0.24em] text-background sm:h-11 sm:w-11 sm:rounded-2xl 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-full border border-border/70 bg-background/70 px-3 py-2 text-xs text-muted-foreground sm:flex",children:[y.jsxs("span",{className:"flex items-center gap-2",children:[(a==null?void 0:a.self)&&y.jsx(cy,{status:a.self.status}),y.jsx("span",{className:"font-medium text-foreground",children:((x=a==null?void 0:a.self)==null?void 0:x.name)??"offline"})]}),y.jsx("span",{className:"text-border",children:"/"}),y.jsx("span",{className:"capitalize",children:((m=a==null?void 0:a.self)==null?void 0:m.role)??"node"})]}),y.jsx(A_,{connected:o,events:r,nodeNameById:h}),y.jsx(c_,{}),y.jsx(wl,{variant:"ghost",size:"icon",onClick:p,className:"rounded-full border border-border/60 bg-background/70",title:`Theme: ${i}`,children:y.jsx(v,{className:"h-4 w-4"})})]})]})}),y.jsx("main",{className:Ne("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(x2,{})})})]})]})}const fv=b.lazy(async()=>({default:(await hv(()=>import("./DashboardPage-DQjLt2wn.js").then(r=>r.D),__vite__mapDeps([0,1,2,3]))).DashboardPage})),__=b.lazy(async()=>({default:(await hv(()=>import("./SharedConversationPage-CDFyo1wW.js"),__vite__mapDeps([4,1]))).SharedConversationPage}));function O_(){return y.jsx(Q2,{children:y.jsx(b.Suspense,{fallback:y.jsx(M_,{}),children:y.jsxs(w2,{children:[y.jsx(Sl,{path:"/shared/tasks/:shareId",element:y.jsx(__,{})}),y.jsxs(Sl,{element:y.jsx(fw,{children:y.jsx(R_,{})}),children:[y.jsx(Sl,{path:"/",element:y.jsx(fv,{})}),y.jsx(Sl,{path:"/nodes",element:y.jsx(Tg,{to:"/",replace:!0})}),y.jsx(Sl,{path:"/tasks",element:y.jsx(Tg,{to:"/",replace:!0})}),y.jsx(Sl,{path:"/tasks/:id",element:y.jsx(fv,{})})]})]})})})}function M_(){return y.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function D_(a){return y.jsx(BT,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...a})}xS.createRoot(document.getElementById("root")).render(y.jsx(b.StrictMode,{children:y.jsxs(rT,{children:[y.jsx(O_,{}),y.jsx(D_,{})]})}));export{hv as $,X_ as A,St as B,Nw as C,Xy as D,hC as E,Vw as F,zw as G,p_ as H,h_ as I,DR as J,d5 as K,Tb as L,ps as M,_5 as N,gs as O,m5 as P,XR as Q,Xb as R,lb as S,g5 as T,Qb as U,Kb as V,Pb as W,Gv as X,Zb as Y,Fb as Z,Jb as _,cE as a,f5 as a$,T5 as a0,qv as a1,S_ as a2,cy as a3,Bw as a4,cT as a5,O5 as a6,f_ as a7,Lo as a8,Be as a9,E5 as aA,w5 as aB,$_ as aC,v5 as aD,d_ as aE,I_ as aF,P_ as aG,J_ as aH,K_ as aI,Z_ as aJ,k_ as aK,U_ as aL,z_ as aM,B_ as aN,r5 as aO,l5 as aP,a5 as aQ,t5 as aR,n5 as aS,o5 as aT,Rw as aU,dv as aV,c5 as aW,s5 as aX,i5 as aY,u5 as aZ,h5 as a_,Oo as aa,Ie as ab,ke as ac,LA as ad,NA as ae,Rl as af,M5 as ag,Dw as ah,y5 as ai,b5 as aj,A5 as ak,C5 as al,R5 as am,QR as an,W_ as ao,e5 as ap,G_ as aq,sw as ar,F_ as as,j_ as at,Bn as au,Nv as av,Uv as aw,N5 as ax,x5 as ay,S5 as az,Ne as b,We as c,Zv as d,L_ as e,Qy as f,Zy as g,vC as h,wl as i,y as j,V_ as k,q_ as l,rw as m,H_ as n,p5 as o,Y_ as p,Q_ as q,b as r,mR as s,Ya as t,eb as u,hR as v,ab as w,Vv as x,Yv as y,u_ as z};