meshy-node 0.5.6 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dashboard/assets/DashboardPage-DZvoRYz2.js +134 -0
- package/dashboard/assets/{DashboardShared-DMrNrARk.js → DashboardShared-EIrXwlKQ.js} +2 -2
- package/dashboard/assets/{DiffTab-CPgg5BgU.js → DiffTab-RR71B7Td.js} +3 -3
- package/dashboard/assets/{FilesTab-Bd6A8nUE.js → FilesTab-BzAuq2V1.js} +7 -7
- package/dashboard/assets/{PreviewTab-kljCXeWP.js → PreviewTab-Dul4hiGt.js} +2 -2
- package/dashboard/assets/SharedConversationPage-DmimAj_x.js +7 -0
- package/dashboard/assets/{file-CPaJOnu-.js → file-CL1x0Gq_.js} +1 -1
- package/dashboard/assets/{folder-DgOi0nrN.js → folder-B7_msHnX.js} +1 -1
- package/dashboard/assets/index-BlCzIaoB.css +1 -0
- package/dashboard/assets/index-C8QVuMfU.js +301 -0
- package/dashboard/assets/{play-DQGsm6yq.js → play-IZPebZI4.js} +1 -1
- package/dashboard/index.html +2 -2
- package/main.cjs +267 -82
- package/package.json +1 -1
- package/runtime-metadata.json +5 -5
- package/dashboard/assets/DashboardPage-BSAt8kN_.js +0 -129
- package/dashboard/assets/SharedConversationPage-DmcJdyZj.js +0 -7
- package/dashboard/assets/index-DgDWjVGo.css +0 -1
- package/dashboard/assets/index-nG4cAWuh.js +0 -301
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-BSAt8kN_.js","assets/DashboardShared-DMrNrARk.js","assets/folder-DgOi0nrN.js","assets/play-DQGsm6yq.js","assets/SharedConversationPage-DmcJdyZj.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
function XS(n,l){for(var o=0;o<l.length;o++){const i=l[o];if(typeof i!="string"&&!Array.isArray(i)){for(const u in i)if(u!=="default"&&!(u in n)){const d=Object.getOwnPropertyDescriptor(i,u);d&&Object.defineProperty(n,u,d.get?d:{enumerable:!0,get:()=>i[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))i(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function o(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(u){if(u.ep)return;u.ep=!0;const d=o(u);fetch(u.href,d)}})();function Bv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var pd={exports:{}},jo={};/**
|
|
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 Mg;function QS(){if(Mg)return jo;Mg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function o(i,u,d){var f=null;if(d!==void 0&&(f=""+d),u.key!==void 0&&(f=""+u.key),"key"in u){d={};for(var h in u)h!=="key"&&(d[h]=u[h])}else d=u;return u=d.ref,{$$typeof:n,type:i,key:f,ref:u!==void 0?u:null,props:d}}return jo.Fragment=l,jo.jsx=o,jo.jsxs=o,jo}var Dg;function KS(){return Dg||(Dg=1,pd.exports=QS()),pd.exports}var m=KS(),gd={exports:{}},Ce={};/**
|
|
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 kg;function ZS(){if(kg)return Ce;kg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),w=Symbol.iterator;function C(_){return _===null||typeof _!="object"?null:(_=w&&_[w]||_["@@iterator"],typeof _=="function"?_:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,R={};function T(_,X,K){this.props=_,this.context=X,this.refs=R,this.updater=K||N}T.prototype.isReactComponent={},T.prototype.setState=function(_,X){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,_,X,"setState")},T.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function j(){}j.prototype=T.prototype;function O(_,X,K){this.props=_,this.context=X,this.refs=R,this.updater=K||N}var k=O.prototype=new j;k.constructor=O,E(k,T.prototype),k.isPureReactComponent=!0;var q=Array.isArray;function $(){}var B={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function te(_,X,K){var J=K.ref;return{$$typeof:n,type:_,key:X,ref:J!==void 0?J:null,props:K}}function le(_,X){return te(_.type,X,_.props)}function ve(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function ie(_){var X={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(K){return X[K]})}var ce=/\/+/g;function re(_,X){return typeof _=="object"&&_!==null&&_.key!=null?ie(""+_.key):X.toString(36)}function ue(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then($,$):(_.status="pending",_.then(function(X){_.status==="pending"&&(_.status="fulfilled",_.value=X)},function(X){_.status==="pending"&&(_.status="rejected",_.reason=X)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function M(_,X,K,J,W){var ae=typeof _;(ae==="undefined"||ae==="boolean")&&(_=null);var ee=!1;if(_===null)ee=!0;else switch(ae){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(_.$$typeof){case n:case l:ee=!0;break;case x:return ee=_._init,M(ee(_._payload),X,K,J,W)}}if(ee)return W=W(_),ee=J===""?"."+re(_,0):J,q(W)?(K="",ee!=null&&(K=ee.replace(ce,"$&/")+"/"),M(W,X,K,"",function(Te){return Te})):W!=null&&(ve(W)&&(W=le(W,K+(W.key==null||_&&_.key===W.key?"":(""+W.key).replace(ce,"$&/")+"/")+ee)),X.push(W)),1;ee=0;var oe=J===""?".":J+":";if(q(_))for(var de=0;de<_.length;de++)J=_[de],ae=oe+re(J,de),ee+=M(J,X,K,ae,W);else if(de=C(_),typeof de=="function")for(_=de.call(_),de=0;!(J=_.next()).done;)J=J.value,ae=oe+re(J,de++),ee+=M(J,X,K,ae,W);else if(ae==="object"){if(typeof _.then=="function")return M(ue(_),X,K,J,W);throw X=String(_),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return ee}function G(_,X,K){if(_==null)return _;var J=[],W=0;return M(_,J,"","",function(ae){return X.call(K,ae,W++)}),J}function I(_){if(_._status===-1){var X=_._result;X=X(),X.then(function(K){(_._status===0||_._status===-1)&&(_._status=1,_._result=K)},function(K){(_._status===0||_._status===-1)&&(_._status=2,_._result=K)}),_._status===-1&&(_._status=0,_._result=X)}if(_._status===1)return _._result.default;throw _._result}var se=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},F={map:G,forEach:function(_,X,K){G(_,function(){X.apply(this,arguments)},K)},count:function(_){var X=0;return G(_,function(){X++}),X},toArray:function(_){return G(_,function(X){return X})||[]},only:function(_){if(!ve(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Ce.Activity=p,Ce.Children=F,Ce.Component=T,Ce.Fragment=o,Ce.Profiler=u,Ce.PureComponent=O,Ce.StrictMode=i,Ce.Suspense=y,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(_){return B.H.useMemoCache(_)}},Ce.cache=function(_){return function(){return _.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(_,X,K){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var J=E({},_.props),W=_.key;if(X!=null)for(ae in X.key!==void 0&&(W=""+X.key),X)!V.call(X,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&X.ref===void 0||(J[ae]=X[ae]);var ae=arguments.length-2;if(ae===1)J.children=K;else if(1<ae){for(var ee=Array(ae),oe=0;oe<ae;oe++)ee[oe]=arguments[oe+2];J.children=ee}return te(_.type,W,J)},Ce.createContext=function(_){return _={$$typeof:f,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:d,_context:_},_},Ce.createElement=function(_,X,K){var J,W={},ae=null;if(X!=null)for(J in X.key!==void 0&&(ae=""+X.key),X)V.call(X,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(W[J]=X[J]);var ee=arguments.length-2;if(ee===1)W.children=K;else if(1<ee){for(var oe=Array(ee),de=0;de<ee;de++)oe[de]=arguments[de+2];W.children=oe}if(_&&_.defaultProps)for(J in ee=_.defaultProps,ee)W[J]===void 0&&(W[J]=ee[J]);return te(_,ae,W)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(_){return{$$typeof:h,render:_}},Ce.isValidElement=ve,Ce.lazy=function(_){return{$$typeof:x,_payload:{_status:-1,_result:_},_init:I}},Ce.memo=function(_,X){return{$$typeof:g,type:_,compare:X===void 0?null:X}},Ce.startTransition=function(_){var X=B.T,K={};B.T=K;try{var J=_(),W=B.S;W!==null&&W(K,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then($,se)}catch(ae){se(ae)}finally{X!==null&&K.types!==null&&(X.types=K.types),B.T=X}},Ce.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},Ce.use=function(_){return B.H.use(_)},Ce.useActionState=function(_,X,K){return B.H.useActionState(_,X,K)},Ce.useCallback=function(_,X){return B.H.useCallback(_,X)},Ce.useContext=function(_){return B.H.useContext(_)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(_,X){return B.H.useDeferredValue(_,X)},Ce.useEffect=function(_,X){return B.H.useEffect(_,X)},Ce.useEffectEvent=function(_){return B.H.useEffectEvent(_)},Ce.useId=function(){return B.H.useId()},Ce.useImperativeHandle=function(_,X,K){return B.H.useImperativeHandle(_,X,K)},Ce.useInsertionEffect=function(_,X){return B.H.useInsertionEffect(_,X)},Ce.useLayoutEffect=function(_,X){return B.H.useLayoutEffect(_,X)},Ce.useMemo=function(_,X){return B.H.useMemo(_,X)},Ce.useOptimistic=function(_,X){return B.H.useOptimistic(_,X)},Ce.useReducer=function(_,X,K){return B.H.useReducer(_,X,K)},Ce.useRef=function(_){return B.H.useRef(_)},Ce.useState=function(_){return B.H.useState(_)},Ce.useSyncExternalStore=function(_,X,K){return B.H.useSyncExternalStore(_,X,K)},Ce.useTransition=function(){return B.H.useTransition()},Ce.version="19.2.4",Ce}var zg;function tf(){return zg||(zg=1,gd.exports=ZS()),gd.exports}var v=tf();const ne=Bv(v),nf=XS({__proto__:null,default:ne},[v]);var vd={exports:{}},Oo={},yd={exports:{}},bd={};/**
|
|
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 Lg;function PS(){return Lg||(Lg=1,(function(n){function l(M,G){var I=M.length;M.push(G);e:for(;0<I;){var se=I-1>>>1,F=M[se];if(0<u(F,G))M[se]=G,M[I]=F,I=se;else break e}}function o(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var G=M[0],I=M.pop();if(I!==G){M[0]=I;e:for(var se=0,F=M.length,_=F>>>1;se<_;){var X=2*(se+1)-1,K=M[X],J=X+1,W=M[J];if(0>u(K,I))J<F&&0>u(W,K)?(M[se]=W,M[J]=I,se=J):(M[se]=K,M[X]=I,se=X);else if(J<F&&0>u(W,I))M[se]=W,M[J]=I,se=J;else break e}}return G}function u(M,G){var I=M.sortIndex-G.sortIndex;return I!==0?I:M.id-G.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var f=Date,h=f.now();n.unstable_now=function(){return f.now()-h}}var y=[],g=[],x=1,p=null,w=3,C=!1,N=!1,E=!1,R=!1,T=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function k(M){for(var G=o(g);G!==null;){if(G.callback===null)i(g);else if(G.startTime<=M)i(g),G.sortIndex=G.expirationTime,l(y,G);else break;G=o(g)}}function q(M){if(E=!1,k(M),!N)if(o(y)!==null)N=!0,$||($=!0,ie());else{var G=o(g);G!==null&&ue(q,G.startTime-M)}}var $=!1,B=-1,V=5,te=-1;function le(){return R?!0:!(n.unstable_now()-te<V)}function ve(){if(R=!1,$){var M=n.unstable_now();te=M;var G=!0;try{e:{N=!1,E&&(E=!1,j(B),B=-1),C=!0;var I=w;try{t:{for(k(M),p=o(y);p!==null&&!(p.expirationTime>M&&le());){var se=p.callback;if(typeof se=="function"){p.callback=null,w=p.priorityLevel;var F=se(p.expirationTime<=M);if(M=n.unstable_now(),typeof F=="function"){p.callback=F,k(M),G=!0;break t}p===o(y)&&i(y),k(M)}else i(y);p=o(y)}if(p!==null)G=!0;else{var _=o(g);_!==null&&ue(q,_.startTime-M),G=!1}}break e}finally{p=null,w=I,C=!1}G=void 0}}finally{G?ie():$=!1}}}var ie;if(typeof O=="function")ie=function(){O(ve)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,re=ce.port2;ce.port1.onmessage=ve,ie=function(){re.postMessage(null)}}else ie=function(){T(ve,0)};function ue(M,G){B=T(function(){M(n.unstable_now())},G)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(M){M.callback=null},n.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<M?Math.floor(1e3/M):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(M){switch(w){case 1:case 2:case 3:var G=3;break;default:G=w}var I=w;w=G;try{return M()}finally{w=I}},n.unstable_requestPaint=function(){R=!0},n.unstable_runWithPriority=function(M,G){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var I=w;w=M;try{return G()}finally{w=I}},n.unstable_scheduleCallback=function(M,G,I){var se=n.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?se+I:se):I=se,M){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=I+F,M={id:x++,callback:G,priorityLevel:M,startTime:I,expirationTime:F,sortIndex:-1},I>se?(M.sortIndex=I,l(g,M),o(y)===null&&M===o(g)&&(E?(j(B),B=-1):E=!0,ue(q,I-se))):(M.sortIndex=F,l(y,M),N||C||(N=!0,$||($=!0,ie()))),M},n.unstable_shouldYield=le,n.unstable_wrapCallback=function(M){var G=w;return function(){var I=w;w=G;try{return M.apply(this,arguments)}finally{w=I}}}})(bd)),bd}var Ug;function IS(){return Ug||(Ug=1,yd.exports=PS()),yd.exports}var xd={exports:{}},jt={};/**
|
|
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 Bg;function FS(){if(Bg)return jt;Bg=1;var n=tf();function l(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+g+" 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(l(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 d(y,g,x){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:p==null?null:""+p,children:y,containerInfo:g,implementation:x}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,jt.createPortal=function(y,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(l(299));return d(y,g,null,x)},jt.flushSync=function(y){var g=f.T,x=i.p;try{if(f.T=null,i.p=2,y)return y()}finally{f.T=g,i.p=x,i.d.f()}},jt.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,i.d.C(y,g))},jt.prefetchDNS=function(y){typeof y=="string"&&i.d.D(y)},jt.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var x=g.as,p=h(x,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,C=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?i.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:p,integrity:w,fetchPriority:C}):x==="script"&&i.d.X(y,{crossOrigin:p,integrity:w,fetchPriority:C,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},jt.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=h(g.as,g.crossOrigin);i.d.M(y,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(y)},jt.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,p=h(x,g.crossOrigin);i.d.L(y,x,{crossOrigin:p,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},jt.preloadModule=function(y,g){if(typeof y=="string")if(g){var x=h(g.as,g.crossOrigin);i.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(y)},jt.requestFormReset=function(y){i.d.r(y)},jt.unstable_batchedUpdates=function(y,g){return y(g)},jt.useFormState=function(y,g,x){return f.H.useFormState(y,g,x)},jt.useFormStatus=function(){return f.H.useHostTransitionStatus()},jt.version="19.2.4",jt}var Hg;function Hv(){if(Hg)return xd.exports;Hg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),xd.exports=FS(),xd.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 Vg;function JS(){if(Vg)return Oo;Vg=1;var n=IS(),l=tf(),o=Hv();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function f(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 y(e){if(d(e)!==e)throw Error(i(188))}function g(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(i(188));return t!==e?null:e}for(var a=e,r=t;;){var s=a.return;if(s===null)break;var c=s.alternate;if(c===null){if(r=s.return,r!==null){a=r;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===a)return y(s),e;if(c===r)return y(s),t;c=c.sibling}throw Error(i(188))}if(a.return!==r.return)a=s,r=c;else{for(var b=!1,S=s.child;S;){if(S===a){b=!0,a=s,r=c;break}if(S===r){b=!0,r=s,a=c;break}S=S.sibling}if(!b){for(S=c.child;S;){if(S===a){b=!0,a=c,r=s;break}if(S===r){b=!0,r=c,a=s;break}S=S.sibling}if(!b)throw Error(i(189))}}if(a.alternate!==r)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,w=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),O=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),ve=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=ve&&e[ve]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function re(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case T:return"Profiler";case R:return"StrictMode";case q:return"Suspense";case $:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case O:return e.displayName||"Context";case j:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return t=e.displayName||null,t!==null?t:re(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var ue=Array.isArray,M=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},se=[],F=-1;function _(e){return{current:e}}function X(e){0>F||(e.current=se[F],se[F]=null,F--)}function K(e,t){F++,se[F]=e.current,e.current=t}var J=_(null),W=_(null),ae=_(null),ee=_(null);function oe(e,t){switch(K(ae,t),K(W,e),K(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?tg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=tg(t),e=ng(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(J),K(J,e)}function de(){X(J),X(W),X(ae)}function Te(e){e.memoizedState!==null&&K(ee,e);var t=J.current,a=ng(t,e.type);t!==a&&(K(W,e),K(J,a))}function Ee(e){W.current===e&&(X(J),X(W)),ee.current===e&&(X(ee),To._currentValue=I)}var we,Je;function $e(e){if(we===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);we=t&&t[1]||"",Je=-1<a.stack.indexOf(`
|
|
43
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+we+e+Je}var zt=!1;function Mt(e,t){if(!e||zt)return"";zt=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(Y){var H=Y}Reflect.construct(e,[],P)}else{try{P.call()}catch(Y){H=Y}e.call(P.prototype)}}else{try{throw Error()}catch(Y){H=Y}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(Y){if(Y&&H&&typeof Y.stack=="string")return[Y.stack,H.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=r.DetermineComponentFrameRoot(),b=c[0],S=c[1];if(b&&S){var A=b.split(`
|
|
45
|
-
`),U=S.split(`
|
|
46
|
-
`);for(s=r=0;r<A.length&&!A[r].includes("DetermineComponentFrameRoot");)r++;for(;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;if(r===A.length||s===U.length)for(r=A.length-1,s=U.length-1;1<=r&&0<=s&&A[r]!==U[s];)s--;for(;1<=r&&0<=s;r--,s--)if(A[r]!==U[s]){if(r!==1||s!==1)do if(r--,s--,0>s||A[r]!==U[s]){var Q=`
|
|
47
|
-
`+A[r].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),Q}while(1<=r&&0<=s);break}}}finally{zt=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?$e(a):""}function ye(e,t){switch(e.tag){case 26:case 27:case 5:return $e(e.type);case 16:return $e("Lazy");case 13:return e.child!==t&&t!==null?$e("Suspense Fallback"):$e("Suspense");case 19:return $e("SuspenseList");case 0:case 15:return Mt(e.type,!1);case 11:return Mt(e.type.render,!1);case 1:return Mt(e.type,!0);case 31:return $e("Activity");default:return""}}function tt(e){try{var t="",a=null;do t+=ye(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
|
|
48
|
-
Error generating stack: `+r.message+`
|
|
49
|
-
`+r.stack}}var Be=Object.prototype.hasOwnProperty,rn=n.unstable_scheduleCallback,Kt=n.unstable_cancelCallback,dt=n.unstable_shouldYield,Ie=n.unstable_requestPaint,st=n.unstable_now,bn=n.unstable_getCurrentPriorityLevel,Zt=n.unstable_ImmediatePriority,Qo=n.unstable_UserBlockingPriority,ll=n.unstable_NormalPriority,Br=n.unstable_LowPriority,Pn=n.unstable_IdlePriority,Ko=n.log,xa=n.unstable_setDisableYieldValue,rl=null,Dt=null;function xn(e){if(typeof Ko=="function"&&xa(e),Dt&&typeof Dt.setStrictMode=="function")try{Dt.setStrictMode(rl,e)}catch{}}var At=Math.clz32?Math.clz32:jn,lc=Math.log,Hr=Math.LN2;function jn(e){return e>>>=0,e===0?32:31-(lc(e)/Hr|0)|0}var kl=256,zl=262144,ol=4194304;function On(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 Ne(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var s=0,c=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=r&134217727;return S!==0?(r=S&~c,r!==0?s=On(r):(b&=S,b!==0?s=On(b):a||(a=S&~e,a!==0&&(s=On(a))))):(S=r&~c,S!==0?s=On(S):b!==0?s=On(b):a||(a=r&~e,a!==0&&(s=On(a)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:s}function nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function bt(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 _t(){var e=ol;return ol<<=1,(ol&62914560)===0&&(ol=4194304),e}function Sa(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function rt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Lt(e,t,a,r,s,c){var b=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,A=e.expirationTimes,U=e.hiddenUpdates;for(a=b&~a;0<a;){var Q=31-At(a),P=1<<Q;S[Q]=0,A[Q]=-1;var H=U[Q];if(H!==null)for(U[Q]=null,Q=0;Q<H.length;Q++){var Y=H[Q];Y!==null&&(Y.lane&=-536870913)}a&=~P}r!==0&&il(e,r,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(b&~t))}function il(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-At(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function Ut(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-At(a),s=1<<r;s&t|e[r]&t&&(e[r]|=t),a&=~s}}function Bt(e,t){var a=t&-t;return a=(a&42)!==0?1:Ll(a),(a&(e.suspendedLanes|t))!==0?0:a}function Ll(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 Sn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function rc(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Cg(e.type))}function qf(e,t){var a=G.p;try{return G.p=e,t()}finally{G.p=a}}var wa=Math.random().toString(36).slice(2),Et="__reactFiber$"+wa,Ht="__reactProps$"+wa,Ul="__reactContainer$"+wa,oc="__reactEvents$"+wa,kx="__reactListeners$"+wa,zx="__reactHandles$"+wa,Yf="__reactResources$"+wa,Vr="__reactMarker$"+wa;function ic(e){delete e[Et],delete e[Ht],delete e[oc],delete e[kx],delete e[zx]}function Bl(e){var t=e[Et];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Ul]||a[Et]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=cg(e);e!==null;){if(a=e[Et])return a;e=cg(e)}return t}e=a,a=e.parentNode}return null}function Hl(e){if(e=e[Et]||e[Ul]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function qr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Vl(e){var t=e[Yf];return t||(t=e[Yf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xt(e){e[Vr]=!0}var $f=new Set,Gf={};function sl(e,t){ql(e,t),ql(e+"Capture",t)}function ql(e,t){for(Gf[e]=t,e=0;e<t.length;e++)$f.add(t[e])}var Lx=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]*$"),Xf={},Qf={};function Ux(e){return Be.call(Qf,e)?!0:Be.call(Xf,e)?!1:Lx.test(e)?Qf[e]=!0:(Xf[e]=!0,!1)}function Zo(e,t,a){if(Ux(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Po(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function In(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function on(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bx(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(b){a=""+b,c.call(this,b)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sc(e){if(!e._valueTracker){var t=Kf(e)?"checked":"value";e._valueTracker=Bx(e,t,""+e[t])}}function Zf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Kf(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Io(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 Hx=/[\n"\\]/g;function sn(e){return e.replace(Hx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function cc(e,t,a,r,s,c,b,S){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),t!=null?b==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+on(t)):e.value!==""+on(t)&&(e.value=""+on(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?uc(e,b,on(t)):a!=null?uc(e,b,on(a)):r!=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=""+on(S):e.removeAttribute("name")}function Pf(e,t,a,r,s,c,b,S){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){sc(e);return}a=a!=null?""+on(a):"",t=t!=null?""+on(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}r=r??s,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=S?e.checked:!!r,e.defaultChecked=!!r,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),sc(e)}function uc(e,t,a){t==="number"&&Io(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Yl(e,t,a,r){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&r&&(e[a].defaultSelected=!0)}else{for(a=""+on(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function If(e,t,a){if(t!=null&&(t=""+on(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+on(a):""}function Ff(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(i(92));if(ue(r)){if(1<r.length)throw Error(i(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=on(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),sc(e)}function $l(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Vx=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 Jf(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||Vx.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Wf(e,t,a){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var s in t)r=t[s],t.hasOwnProperty(s)&&a[s]!==r&&Jf(e,s,r)}else for(var c in t)t.hasOwnProperty(c)&&Jf(e,c,t[c])}function dc(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 qx=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"]]),Yx=/^[\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 Fo(e){return Yx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Fn(){}var fc=null;function mc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gl=null,Xl=null;function em(e){var t=Hl(e);if(t&&(e=t.stateNode)){var a=e[Ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(cc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+sn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var s=r[Ht]||null;if(!s)throw Error(i(90));cc(r,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&Zf(r)}break e;case"textarea":If(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Yl(e,!!a.multiple,t,!1)}}}var hc=!1;function tm(e,t,a){if(hc)return e(t,a);hc=!0;try{var r=e(t);return r}finally{if(hc=!1,(Gl!==null||Xl!==null)&&(Bi(),Gl&&(t=Gl,e=Xl,Xl=Gl=null,em(t),e)))for(t=0;t<e.length;t++)em(e[t])}}function Yr(e,t){var a=e.stateNode;if(a===null)return null;var r=a[Ht]||null;if(r===null)return null;a=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,t,typeof a));return a}var Jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pc=!1;if(Jn)try{var $r={};Object.defineProperty($r,"passive",{get:function(){pc=!0}}),window.addEventListener("test",$r,$r),window.removeEventListener("test",$r,$r)}catch{pc=!1}var Ea=null,gc=null,Jo=null;function nm(){if(Jo)return Jo;var e,t=gc,a=t.length,r,s="value"in Ea?Ea.value:Ea.textContent,c=s.length;for(e=0;e<a&&t[e]===s[e];e++);var b=a-e;for(r=1;r<=b&&t[a-r]===s[c-r];r++);return Jo=s.slice(e,1<r?1-r:void 0)}function Wo(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 ei(){return!0}function am(){return!1}function Vt(e){function t(a,r,s,c,b){this._reactName=a,this._targetInst=s,this.type=r,this.nativeEvent=c,this.target=b,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(a=e[S],this[S]=a?a(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ei:am,this.isPropagationStopped=am,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ei)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ei)},persist:function(){},isPersistent:ei}),t}var cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ti=Vt(cl),Gr=p({},cl,{view:0,detail:0}),$x=Vt(Gr),vc,yc,Xr,ni=p({},Gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xc,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!==Xr&&(Xr&&e.type==="mousemove"?(vc=e.screenX-Xr.screenX,yc=e.screenY-Xr.screenY):yc=vc=0,Xr=e),vc)},movementY:function(e){return"movementY"in e?e.movementY:yc}}),lm=Vt(ni),Gx=p({},ni,{dataTransfer:0}),Xx=Vt(Gx),Qx=p({},Gr,{relatedTarget:0}),bc=Vt(Qx),Kx=p({},cl,{animationName:0,elapsedTime:0,pseudoElement:0}),Zx=Vt(Kx),Px=p({},cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ix=Vt(Px),Fx=p({},cl,{data:0}),rm=Vt(Fx),Jx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wx={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"},e1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=e1[e])?!!t[e]:!1}function xc(){return t1}var n1=p({},Gr,{key:function(e){if(e.key){var t=Jx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xc,charCode:function(e){return e.type==="keypress"?Wo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),a1=Vt(n1),l1=p({},ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),om=Vt(l1),r1=p({},Gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xc}),o1=Vt(r1),i1=p({},cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),s1=Vt(i1),c1=p({},ni,{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}),u1=Vt(c1),d1=p({},cl,{newState:0,oldState:0}),f1=Vt(d1),m1=[9,13,27,32],Sc=Jn&&"CompositionEvent"in window,Qr=null;Jn&&"documentMode"in document&&(Qr=document.documentMode);var h1=Jn&&"TextEvent"in window&&!Qr,im=Jn&&(!Sc||Qr&&8<Qr&&11>=Qr),sm=" ",cm=!1;function um(e,t){switch(e){case"keyup":return m1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ql=!1;function p1(e,t){switch(e){case"compositionend":return dm(t);case"keypress":return t.which!==32?null:(cm=!0,sm);case"textInput":return e=t.data,e===sm&&cm?null:e;default:return null}}function g1(e,t){if(Ql)return e==="compositionend"||!Sc&&um(e,t)?(e=nm(),Jo=gc=Ea=null,Ql=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return im&&t.locale!=="ko"?null:t.data;default:return null}}var v1={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 fm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!v1[e.type]:t==="textarea"}function mm(e,t,a,r){Gl?Xl?Xl.push(r):Xl=[r]:Gl=r,t=Xi(t,"onChange"),0<t.length&&(a=new ti("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Kr=null,Zr=null;function y1(e){Pp(e,0)}function ai(e){var t=qr(e);if(Zf(t))return e}function hm(e,t){if(e==="change")return t}var pm=!1;if(Jn){var wc;if(Jn){var Ec="oninput"in document;if(!Ec){var gm=document.createElement("div");gm.setAttribute("oninput","return;"),Ec=typeof gm.oninput=="function"}wc=Ec}else wc=!1;pm=wc&&(!document.documentMode||9<document.documentMode)}function vm(){Kr&&(Kr.detachEvent("onpropertychange",ym),Zr=Kr=null)}function ym(e){if(e.propertyName==="value"&&ai(Zr)){var t=[];mm(t,Zr,e,mc(e)),tm(y1,t)}}function b1(e,t,a){e==="focusin"?(vm(),Kr=t,Zr=a,Kr.attachEvent("onpropertychange",ym)):e==="focusout"&&vm()}function x1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ai(Zr)}function S1(e,t){if(e==="click")return ai(t)}function w1(e,t){if(e==="input"||e==="change")return ai(t)}function E1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pt=typeof Object.is=="function"?Object.is:E1;function Pr(e,t){if(Pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var s=a[r];if(!Be.call(t,s)||!Pt(e[s],t[s]))return!1}return!0}function bm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xm(e,t){var a=bm(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=bm(a)}}function Sm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Io(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Io(e.document)}return t}function Nc(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 N1=Jn&&"documentMode"in document&&11>=document.documentMode,Kl=null,Cc=null,Ir=null,Tc=!1;function Em(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Tc||Kl==null||Kl!==Io(r)||(r=Kl,"selectionStart"in r&&Nc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ir&&Pr(Ir,r)||(Ir=r,r=Xi(Cc,"onSelect"),0<r.length&&(t=new ti("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Kl)))}function ul(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Zl={animationend:ul("Animation","AnimationEnd"),animationiteration:ul("Animation","AnimationIteration"),animationstart:ul("Animation","AnimationStart"),transitionrun:ul("Transition","TransitionRun"),transitionstart:ul("Transition","TransitionStart"),transitioncancel:ul("Transition","TransitionCancel"),transitionend:ul("Transition","TransitionEnd")},Rc={},Nm={};Jn&&(Nm=document.createElement("div").style,"AnimationEvent"in window||(delete Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function dl(e){if(Rc[e])return Rc[e];if(!Zl[e])return e;var t=Zl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Nm)return Rc[e]=t[a];return e}var Cm=dl("animationend"),Tm=dl("animationiteration"),Rm=dl("animationstart"),C1=dl("transitionrun"),T1=dl("transitionstart"),R1=dl("transitioncancel"),Am=dl("transitionend"),_m=new Map,Ac="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(" ");Ac.push("scrollEnd");function wn(e,t){_m.set(e,t),sl(t,[e])}var li=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)},cn=[],Pl=0,_c=0;function ri(){for(var e=Pl,t=_c=Pl=0;t<e;){var a=cn[t];cn[t++]=null;var r=cn[t];cn[t++]=null;var s=cn[t];cn[t++]=null;var c=cn[t];if(cn[t++]=null,r!==null&&s!==null){var b=r.pending;b===null?s.next=s:(s.next=b.next,b.next=s),r.pending=s}c!==0&&jm(a,s,c)}}function oi(e,t,a,r){cn[Pl++]=e,cn[Pl++]=t,cn[Pl++]=a,cn[Pl++]=r,_c|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function jc(e,t,a,r){return oi(e,t,a,r),ii(e)}function fl(e,t){return oi(e,null,null,t),ii(e)}function jm(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var s=!1,c=e.return;c!==null;)c.childLanes|=a,r=c.alternate,r!==null&&(r.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-At(a),e=c.hiddenUpdates,r=e[s],r===null?e[s]=[t]:r.push(t),t.lane=a|536870912),c):null}function ii(e){if(50<bo)throw bo=0,Hu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Il={};function A1(e,t,a,r){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,a,r){return new A1(e,t,a,r)}function Oc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wn(e,t){var a=e.alternate;return a===null?(a=It(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Om(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function si(e,t,a,r,s,c){var b=0;if(r=e,typeof e=="function")Oc(e)&&(b=1);else if(typeof e=="string")b=DS(e,a,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=It(31,a,t,s),e.elementType=te,e.lanes=c,e;case E:return ml(a.children,s,c,t);case R:b=8,s|=24;break;case T:return e=It(12,a,t,s|2),e.elementType=T,e.lanes=c,e;case q:return e=It(13,a,t,s),e.elementType=q,e.lanes=c,e;case $:return e=It(19,a,t,s),e.elementType=$,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:b=10;break e;case j:b=9;break e;case k:b=11;break e;case B:b=14;break e;case V:b=16,r=null;break e}b=29,a=Error(i(130,e===null?"null":typeof e,"")),r=null}return t=It(b,a,t,s),t.elementType=e,t.type=r,t.lanes=c,t}function ml(e,t,a,r){return e=It(7,e,r,t),e.lanes=a,e}function Mc(e,t,a){return e=It(6,e,null,t),e.lanes=a,e}function Mm(e){var t=It(18,null,null,0);return t.stateNode=e,t}function Dc(e,t,a){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Dm=new WeakMap;function un(e,t){if(typeof e=="object"&&e!==null){var a=Dm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:tt(t)},Dm.set(e,t),t)}return{value:e,source:t,stack:tt(t)}}var Fl=[],Jl=0,ci=null,Fr=0,dn=[],fn=0,Na=null,Mn=1,Dn="";function ea(e,t){Fl[Jl++]=Fr,Fl[Jl++]=ci,ci=e,Fr=t}function km(e,t,a){dn[fn++]=Mn,dn[fn++]=Dn,dn[fn++]=Na,Na=e;var r=Mn;e=Dn;var s=32-At(r)-1;r&=~(1<<s),a+=1;var c=32-At(t)+s;if(30<c){var b=s-s%5;c=(r&(1<<b)-1).toString(32),r>>=b,s-=b,Mn=1<<32-At(t)+s|a<<s|r,Dn=c+e}else Mn=1<<c|a<<s|r,Dn=e}function kc(e){e.return!==null&&(ea(e,1),km(e,1,0))}function zc(e){for(;e===ci;)ci=Fl[--Jl],Fl[Jl]=null,Fr=Fl[--Jl],Fl[Jl]=null;for(;e===Na;)Na=dn[--fn],dn[fn]=null,Dn=dn[--fn],dn[fn]=null,Mn=dn[--fn],dn[fn]=null}function zm(e,t){dn[fn++]=Mn,dn[fn++]=Dn,dn[fn++]=Na,Mn=t.id,Dn=t.overflow,Na=e}var Nt=null,We=null,ze=!1,Ca=null,mn=!1,Lc=Error(i(519));function Ta(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jr(un(t,e)),Lc}function Lm(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[Et]=e,t[Ht]=r,a){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(a=0;a<So.length;a++)Oe(So[a],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),Pf(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),Ff(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||Wp(t.textContent,a)?(r.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),r.onScroll!=null&&Oe("scroll",t),r.onScrollEnd!=null&&Oe("scrollend",t),r.onClick!=null&&(t.onclick=Fn),t=!0):t=!1,t||Ta(e,!0)}function Um(e){for(Nt=e.return;Nt;)switch(Nt.tag){case 5:case 31:case 13:mn=!1;return;case 27:case 3:mn=!0;return;default:Nt=Nt.return}}function Wl(e){if(e!==Nt)return!1;if(!ze)return Um(e),ze=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ed(e.type,e.memoizedProps)),a=!a),a&&We&&Ta(e),Um(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));We=sg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));We=sg(e)}else t===27?(t=We,Va(e.type)?(e=rd,rd=null,We=e):We=t):We=Nt?pn(e.stateNode.nextSibling):null;return!0}function hl(){We=Nt=null,ze=!1}function Uc(){var e=Ca;return e!==null&&(Gt===null?Gt=e:Gt.push.apply(Gt,e),Ca=null),e}function Jr(e){Ca===null?Ca=[e]:Ca.push(e)}var Bc=_(null),pl=null,ta=null;function Ra(e,t,a){K(Bc,t._currentValue),t._currentValue=a}function na(e){e._currentValue=Bc.current,X(Bc)}function Hc(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function Vc(e,t,a,r){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var b=s.child;c=c.firstContext;e:for(;c!==null;){var S=c;c=s;for(var A=0;A<t.length;A++)if(S.context===t[A]){c.lanes|=a,S=c.alternate,S!==null&&(S.lanes|=a),Hc(c.return,a,e),r||(b=null);break e}c=S.next}}else if(s.tag===18){if(b=s.return,b===null)throw Error(i(341));b.lanes|=a,c=b.alternate,c!==null&&(c.lanes|=a),Hc(b,a,e),b=null}else b=s.child;if(b!==null)b.return=s;else for(b=s;b!==null;){if(b===e){b=null;break}if(s=b.sibling,s!==null){s.return=b.return,b=s;break}b=b.return}s=b}}function er(e,t,a,r){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 b=s.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var S=s.type;Pt(s.pendingProps.value,b.value)||(e!==null?e.push(S):e=[S])}}else if(s===ee.current){if(b=s.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(To):e=[To])}s=s.return}e!==null&&Vc(t,e,a,r),t.flags|=262144}function ui(e){for(e=e.firstContext;e!==null;){if(!Pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gl(e){pl=e,ta=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ct(e){return Bm(pl,e)}function di(e,t){return pl===null&&gl(e),Bm(e,t)}function Bm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ta===null){if(e===null)throw Error(i(308));ta=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ta=ta.next=t;return a}var _1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},j1=n.unstable_scheduleCallback,O1=n.unstable_NormalPriority,ft={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qc(){return{controller:new _1,data:new Map,refCount:0}}function Wr(e){e.refCount--,e.refCount===0&&j1(O1,function(){e.controller.abort()})}var eo=null,Yc=0,tr=0,nr=null;function M1(e,t){if(eo===null){var a=eo=[];Yc=0,tr=Xu(),nr={status:"pending",value:void 0,then:function(r){a.push(r)}}}return Yc++,t.then(Hm,Hm),t}function Hm(){if(--Yc===0&&eo!==null){nr!==null&&(nr.status="fulfilled");var e=eo;eo=null,tr=0,nr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function D1(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(r.status="rejected",r.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),r}var Vm=M.S;M.S=function(e,t){Ep=st(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&M1(e,t),Vm!==null&&Vm(e,t)};var vl=_(null);function $c(){var e=vl.current;return e!==null?e:Pe.pooledCache}function fi(e,t){t===null?K(vl,vl.current):K(vl,t.pool)}function qm(){var e=$c();return e===null?null:{parent:ft._currentValue,pool:e}}var ar=Error(i(460)),Gc=Error(i(474)),mi=Error(i(542)),hi={then:function(){}};function Ym(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $m(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Fn,Fn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xm(e),e;default:if(typeof t.status=="string")t.then(Fn,Fn);else{if(e=Pe,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=r}},function(r){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xm(e),e}throw bl=t,ar}}function yl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(bl=a,ar):a}}var bl=null;function Gm(){if(bl===null)throw Error(i(459));var e=bl;return bl=null,e}function Xm(e){if(e===ar||e===mi)throw Error(i(483))}var lr=null,to=0;function pi(e){var t=to;return to+=1,lr===null&&(lr=[]),$m(lr,e,t)}function no(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function gi(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 Qm(e){function t(z,D){if(e){var L=z.deletions;L===null?(z.deletions=[D],z.flags|=16):L.push(D)}}function a(z,D){if(!e)return null;for(;D!==null;)t(z,D),D=D.sibling;return null}function r(z){for(var D=new Map;z!==null;)z.key!==null?D.set(z.key,z):D.set(z.index,z),z=z.sibling;return D}function s(z,D){return z=Wn(z,D),z.index=0,z.sibling=null,z}function c(z,D,L){return z.index=L,e?(L=z.alternate,L!==null?(L=L.index,L<D?(z.flags|=67108866,D):L):(z.flags|=67108866,D)):(z.flags|=1048576,D)}function b(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function S(z,D,L,Z){return D===null||D.tag!==6?(D=Mc(L,z.mode,Z),D.return=z,D):(D=s(D,L),D.return=z,D)}function A(z,D,L,Z){var be=L.type;return be===E?Q(z,D,L.props.children,Z,L.key):D!==null&&(D.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===V&&yl(be)===D.type)?(D=s(D,L.props),no(D,L),D.return=z,D):(D=si(L.type,L.key,L.props,null,z.mode,Z),no(D,L),D.return=z,D)}function U(z,D,L,Z){return D===null||D.tag!==4||D.stateNode.containerInfo!==L.containerInfo||D.stateNode.implementation!==L.implementation?(D=Dc(L,z.mode,Z),D.return=z,D):(D=s(D,L.children||[]),D.return=z,D)}function Q(z,D,L,Z,be){return D===null||D.tag!==7?(D=ml(L,z.mode,Z,be),D.return=z,D):(D=s(D,L),D.return=z,D)}function P(z,D,L){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Mc(""+D,z.mode,L),D.return=z,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case C:return L=si(D.type,D.key,D.props,null,z.mode,L),no(L,D),L.return=z,L;case N:return D=Dc(D,z.mode,L),D.return=z,D;case V:return D=yl(D),P(z,D,L)}if(ue(D)||ie(D))return D=ml(D,z.mode,L,null),D.return=z,D;if(typeof D.then=="function")return P(z,pi(D),L);if(D.$$typeof===O)return P(z,di(z,D),L);gi(z,D)}return null}function H(z,D,L,Z){var be=D!==null?D.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return be!==null?null:S(z,D,""+L,Z);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case C:return L.key===be?A(z,D,L,Z):null;case N:return L.key===be?U(z,D,L,Z):null;case V:return L=yl(L),H(z,D,L,Z)}if(ue(L)||ie(L))return be!==null?null:Q(z,D,L,Z,null);if(typeof L.then=="function")return H(z,D,pi(L),Z);if(L.$$typeof===O)return H(z,D,di(z,L),Z);gi(z,L)}return null}function Y(z,D,L,Z,be){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return z=z.get(L)||null,S(D,z,""+Z,be);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case C:return z=z.get(Z.key===null?L:Z.key)||null,A(D,z,Z,be);case N:return z=z.get(Z.key===null?L:Z.key)||null,U(D,z,Z,be);case V:return Z=yl(Z),Y(z,D,L,Z,be)}if(ue(Z)||ie(Z))return z=z.get(L)||null,Q(D,z,Z,be,null);if(typeof Z.then=="function")return Y(z,D,L,pi(Z),be);if(Z.$$typeof===O)return Y(z,D,L,di(D,Z),be);gi(D,Z)}return null}function me(z,D,L,Z){for(var be=null,He=null,ge=D,Ae=D=0,ke=null;ge!==null&&Ae<L.length;Ae++){ge.index>Ae?(ke=ge,ge=null):ke=ge.sibling;var Ve=H(z,ge,L[Ae],Z);if(Ve===null){ge===null&&(ge=ke);break}e&&ge&&Ve.alternate===null&&t(z,ge),D=c(Ve,D,Ae),He===null?be=Ve:He.sibling=Ve,He=Ve,ge=ke}if(Ae===L.length)return a(z,ge),ze&&ea(z,Ae),be;if(ge===null){for(;Ae<L.length;Ae++)ge=P(z,L[Ae],Z),ge!==null&&(D=c(ge,D,Ae),He===null?be=ge:He.sibling=ge,He=ge);return ze&&ea(z,Ae),be}for(ge=r(ge);Ae<L.length;Ae++)ke=Y(ge,z,Ae,L[Ae],Z),ke!==null&&(e&&ke.alternate!==null&&ge.delete(ke.key===null?Ae:ke.key),D=c(ke,D,Ae),He===null?be=ke:He.sibling=ke,He=ke);return e&&ge.forEach(function(Xa){return t(z,Xa)}),ze&&ea(z,Ae),be}function xe(z,D,L,Z){if(L==null)throw Error(i(151));for(var be=null,He=null,ge=D,Ae=D=0,ke=null,Ve=L.next();ge!==null&&!Ve.done;Ae++,Ve=L.next()){ge.index>Ae?(ke=ge,ge=null):ke=ge.sibling;var Xa=H(z,ge,Ve.value,Z);if(Xa===null){ge===null&&(ge=ke);break}e&&ge&&Xa.alternate===null&&t(z,ge),D=c(Xa,D,Ae),He===null?be=Xa:He.sibling=Xa,He=Xa,ge=ke}if(Ve.done)return a(z,ge),ze&&ea(z,Ae),be;if(ge===null){for(;!Ve.done;Ae++,Ve=L.next())Ve=P(z,Ve.value,Z),Ve!==null&&(D=c(Ve,D,Ae),He===null?be=Ve:He.sibling=Ve,He=Ve);return ze&&ea(z,Ae),be}for(ge=r(ge);!Ve.done;Ae++,Ve=L.next())Ve=Y(ge,z,Ae,Ve.value,Z),Ve!==null&&(e&&Ve.alternate!==null&&ge.delete(Ve.key===null?Ae:Ve.key),D=c(Ve,D,Ae),He===null?be=Ve:He.sibling=Ve,He=Ve);return e&&ge.forEach(function(GS){return t(z,GS)}),ze&&ea(z,Ae),be}function Ze(z,D,L,Z){if(typeof L=="object"&&L!==null&&L.type===E&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case C:e:{for(var be=L.key;D!==null;){if(D.key===be){if(be=L.type,be===E){if(D.tag===7){a(z,D.sibling),Z=s(D,L.props.children),Z.return=z,z=Z;break e}}else if(D.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===V&&yl(be)===D.type){a(z,D.sibling),Z=s(D,L.props),no(Z,L),Z.return=z,z=Z;break e}a(z,D);break}else t(z,D);D=D.sibling}L.type===E?(Z=ml(L.props.children,z.mode,Z,L.key),Z.return=z,z=Z):(Z=si(L.type,L.key,L.props,null,z.mode,Z),no(Z,L),Z.return=z,z=Z)}return b(z);case N:e:{for(be=L.key;D!==null;){if(D.key===be)if(D.tag===4&&D.stateNode.containerInfo===L.containerInfo&&D.stateNode.implementation===L.implementation){a(z,D.sibling),Z=s(D,L.children||[]),Z.return=z,z=Z;break e}else{a(z,D);break}else t(z,D);D=D.sibling}Z=Dc(L,z.mode,Z),Z.return=z,z=Z}return b(z);case V:return L=yl(L),Ze(z,D,L,Z)}if(ue(L))return me(z,D,L,Z);if(ie(L)){if(be=ie(L),typeof be!="function")throw Error(i(150));return L=be.call(L),xe(z,D,L,Z)}if(typeof L.then=="function")return Ze(z,D,pi(L),Z);if(L.$$typeof===O)return Ze(z,D,di(z,L),Z);gi(z,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,D!==null&&D.tag===6?(a(z,D.sibling),Z=s(D,L),Z.return=z,z=Z):(a(z,D),Z=Mc(L,z.mode,Z),Z.return=z,z=Z),b(z)):a(z,D)}return function(z,D,L,Z){try{to=0;var be=Ze(z,D,L,Z);return lr=null,be}catch(ge){if(ge===ar||ge===mi)throw ge;var He=It(29,ge,null,z.mode);return He.lanes=Z,He.return=z,He}finally{}}}var xl=Qm(!0),Km=Qm(!1),Aa=!1;function Xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qc(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 _a(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ja(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(qe&2)!==0){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,t=ii(e),jm(e,null,a),t}return oi(e,r,t,a),ii(e)}function ao(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Ut(e,a)}}function Kc(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var s=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?s=c=b:c=c.next=b,a=a.next}while(a!==null);c===null?s=c=t:c=c.next=t}else s=c=t;a={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Zc=!1;function lo(){if(Zc){var e=nr;if(e!==null)throw e}}function ro(e,t,a,r){Zc=!1;var s=e.updateQueue;Aa=!1;var c=s.firstBaseUpdate,b=s.lastBaseUpdate,S=s.shared.pending;if(S!==null){s.shared.pending=null;var A=S,U=A.next;A.next=null,b===null?c=U:b.next=U,b=A;var Q=e.alternate;Q!==null&&(Q=Q.updateQueue,S=Q.lastBaseUpdate,S!==b&&(S===null?Q.firstBaseUpdate=U:S.next=U,Q.lastBaseUpdate=A))}if(c!==null){var P=s.baseState;b=0,Q=U=A=null,S=c;do{var H=S.lane&-536870913,Y=H!==S.lane;if(Y?(De&H)===H:(r&H)===H){H!==0&&H===tr&&(Zc=!0),Q!==null&&(Q=Q.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var me=e,xe=S;H=t;var Ze=a;switch(xe.tag){case 1:if(me=xe.payload,typeof me=="function"){P=me.call(Ze,P,H);break e}P=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=xe.payload,H=typeof me=="function"?me.call(Ze,P,H):me,H==null)break e;P=p({},P,H);break e;case 2:Aa=!0}}H=S.callback,H!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=s.callbacks,Y===null?s.callbacks=[H]:Y.push(H))}else Y={lane:H,tag:S.tag,payload:S.payload,callback:S.callback,next:null},Q===null?(U=Q=Y,A=P):Q=Q.next=Y,b|=H;if(S=S.next,S===null){if(S=s.shared.pending,S===null)break;Y=S,S=Y.next,Y.next=null,s.lastBaseUpdate=Y,s.shared.pending=null}}while(!0);Q===null&&(A=P),s.baseState=A,s.firstBaseUpdate=U,s.lastBaseUpdate=Q,c===null&&(s.shared.lanes=0),za|=b,e.lanes=b,e.memoizedState=P}}function Zm(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Pm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Zm(a[e],t)}var rr=_(null),vi=_(0);function Im(e,t){e=da,K(vi,e),K(rr,t),da=e|t.baseLanes}function Pc(){K(vi,da),K(rr,rr.current)}function Ic(){da=vi.current,X(rr),X(vi)}var Ft=_(null),hn=null;function Oa(e){var t=e.alternate;K(ct,ct.current&1),K(Ft,e),hn===null&&(t===null||rr.current!==null||t.memoizedState!==null)&&(hn=e)}function Fc(e){K(ct,ct.current),K(Ft,e),hn===null&&(hn=e)}function Fm(e){e.tag===22?(K(ct,ct.current),K(Ft,e),hn===null&&(hn=e)):Ma()}function Ma(){K(ct,ct.current),K(Ft,Ft.current)}function Jt(e){X(Ft),hn===e&&(hn=null),X(ct)}var ct=_(0);function yi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ad(a)||ld(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var aa=0,Re=null,Qe=null,mt=null,bi=!1,or=!1,Sl=!1,xi=0,oo=0,ir=null,k1=0;function ot(){throw Error(i(321))}function Jc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Pt(e[a],t[a]))return!1;return!0}function Wc(e,t,a,r,s,c){return aa=c,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?kh:hu,Sl=!1,c=a(r,s),Sl=!1,or&&(c=Wm(t,a,r,s)),Jm(e),c}function Jm(e){M.H=co;var t=Qe!==null&&Qe.next!==null;if(aa=0,mt=Qe=Re=null,bi=!1,oo=0,ir=null,t)throw Error(i(300));e===null||ht||(e=e.dependencies,e!==null&&ui(e)&&(ht=!0))}function Wm(e,t,a,r){Re=e;var s=0;do{if(or&&(ir=null),oo=0,or=!1,25<=s)throw Error(i(301));if(s+=1,mt=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)}M.H=zh,c=t(a,r)}while(or);return c}function z1(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?io(t):t,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(Re.flags|=1024),t}function eu(){var e=xi!==0;return xi=0,e}function tu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function nu(e){if(bi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}bi=!1}aa=0,mt=Qe=Re=null,or=!1,oo=xi=0,ir=null}function kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?Re.memoizedState=mt=e:mt=mt.next=e,mt}function ut(){if(Qe===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=mt===null?Re.memoizedState:mt.next;if(t!==null)mt=t,Qe=e;else{if(e===null)throw Re.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},mt===null?Re.memoizedState=mt=e:mt=mt.next=e}return mt}function Si(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function io(e){var t=oo;return oo+=1,ir===null&&(ir=[]),e=$m(ir,e,t),t=Re,(mt===null?t.memoizedState:mt.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?kh:hu),e}function wi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return io(e);if(e.$$typeof===O)return Ct(e)}throw Error(i(438,String(e)))}function au(e){var t=null,a=Re.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=Re.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Si(),Re.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=le;return t.index++,a}function la(e,t){return typeof t=="function"?t(e):t}function Ei(e){var t=ut();return lu(t,Qe,e)}function lu(e,t,a){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=a;var s=e.baseQueue,c=r.pending;if(c!==null){if(s!==null){var b=s.next;s.next=c.next,c.next=b}t.baseQueue=s=c,r.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var S=b=null,A=null,U=t,Q=!1;do{var P=U.lane&-536870913;if(P!==U.lane?(De&P)===P:(aa&P)===P){var H=U.revertLane;if(H===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),P===tr&&(Q=!0);else if((aa&H)===H){U=U.next,H===tr&&(Q=!0);continue}else P={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},A===null?(S=A=P,b=c):A=A.next=P,Re.lanes|=H,za|=H;P=U.action,Sl&&a(c,P),c=U.hasEagerState?U.eagerState:a(c,P)}else H={lane:P,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},A===null?(S=A=H,b=c):A=A.next=H,Re.lanes|=P,za|=P;U=U.next}while(U!==null&&U!==t);if(A===null?b=c:A.next=S,!Pt(c,e.memoizedState)&&(ht=!0,Q&&(a=nr,a!==null)))throw a;e.memoizedState=c,e.baseState=b,e.baseQueue=A,r.lastRenderedState=c}return s===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ru(e){var t=ut(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var r=a.dispatch,s=a.pending,c=t.memoizedState;if(s!==null){a.pending=null;var b=s=s.next;do c=e(c,b.action),b=b.next;while(b!==s);Pt(c,t.memoizedState)||(ht=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,r]}function eh(e,t,a){var r=Re,s=ut(),c=ze;if(c){if(a===void 0)throw Error(i(407));a=a()}else a=t();var b=!Pt((Qe||s).memoizedState,a);if(b&&(s.memoizedState=a,ht=!0),s=s.queue,su(ah.bind(null,r,s,e),[e]),s.getSnapshot!==t||b||mt!==null&&mt.memoizedState.tag&1){if(r.flags|=2048,sr(9,{destroy:void 0},nh.bind(null,r,s,a,t),null),Pe===null)throw Error(i(349));c||(aa&127)!==0||th(r,t,a)}return a}function th(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Re.updateQueue,t===null?(t=Si(),Re.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function nh(e,t,a,r){t.value=a,t.getSnapshot=r,lh(t)&&rh(e)}function ah(e,t,a){return a(function(){lh(t)&&rh(e)})}function lh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Pt(e,a)}catch{return!0}}function rh(e){var t=fl(e,2);t!==null&&Xt(t,e,2)}function ou(e){var t=kt();if(typeof e=="function"){var a=e;if(e=a(),Sl){xn(!0);try{a()}finally{xn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:e},t}function oh(e,t,a,r){return e.baseState=a,lu(e,Qe,typeof r=="function"?r:la)}function L1(e,t,a,r,s){if(Ti(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(b){c.listeners.push(b)}};M.T!==null?a(!0):c.isTransition=!1,r(c),a=t.pending,a===null?(c.next=t.pending=c,ih(t,c)):(c.next=a.next,t.pending=a.next=c)}}function ih(e,t){var a=t.action,r=t.payload,s=e.state;if(t.isTransition){var c=M.T,b={};M.T=b;try{var S=a(s,r),A=M.S;A!==null&&A(b,S),sh(e,t,S)}catch(U){iu(e,t,U)}finally{c!==null&&b.types!==null&&(c.types=b.types),M.T=c}}else try{c=a(s,r),sh(e,t,c)}catch(U){iu(e,t,U)}}function sh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){ch(e,t,r)},function(r){return iu(e,t,r)}):ch(e,t,a)}function ch(e,t,a){t.status="fulfilled",t.value=a,uh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,ih(e,a)))}function iu(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,uh(t),t=t.next;while(t!==r)}e.action=null}function uh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function dh(e,t){return t}function fh(e,t){if(ze){var a=Pe.formState;if(a!==null){e:{var r=Re;if(ze){if(We){t:{for(var s=We,c=mn;s.nodeType!==8;){if(!c){s=null;break t}if(s=pn(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){We=pn(s.nextSibling),r=s.data==="F!";break e}}Ta(r)}r=!1}r&&(t=a[0])}}return a=kt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dh,lastRenderedState:t},a.queue=r,a=Oh.bind(null,Re,r),r.dispatch=a,r=ou(!1),c=mu.bind(null,Re,!1,r.queue),r=kt(),s={state:t,dispatch:null,action:e,pending:null},r.queue=s,a=L1.bind(null,Re,s,c,a),s.dispatch=a,r.memoizedState=e,[t,a,!1]}function mh(e){var t=ut();return hh(t,Qe,e)}function hh(e,t,a){if(t=lu(e,t,dh)[0],e=Ei(la)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=io(t)}catch(b){throw b===ar?mi:b}else r=t;t=ut();var s=t.queue,c=s.dispatch;return a!==t.memoizedState&&(Re.flags|=2048,sr(9,{destroy:void 0},U1.bind(null,s,a),null)),[r,c,e]}function U1(e,t){e.action=t}function ph(e){var t=ut(),a=Qe;if(a!==null)return hh(t,a,e);ut(),t=t.memoizedState,a=ut();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function sr(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=Re.updateQueue,t===null&&(t=Si(),Re.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function gh(){return ut().memoizedState}function Ni(e,t,a,r){var s=kt();Re.flags|=e,s.memoizedState=sr(1|t,{destroy:void 0},a,r===void 0?null:r)}function Ci(e,t,a,r){var s=ut();r=r===void 0?null:r;var c=s.memoizedState.inst;Qe!==null&&r!==null&&Jc(r,Qe.memoizedState.deps)?s.memoizedState=sr(t,c,a,r):(Re.flags|=e,s.memoizedState=sr(1|t,c,a,r))}function vh(e,t){Ni(8390656,8,e,t)}function su(e,t){Ci(2048,8,e,t)}function B1(e){Re.flags|=4;var t=Re.updateQueue;if(t===null)t=Si(),Re.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function yh(e){var t=ut().memoizedState;return B1({ref:t,nextImpl:e}),function(){if((qe&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function bh(e,t){return Ci(4,2,e,t)}function xh(e,t){return Ci(4,4,e,t)}function Sh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function wh(e,t,a){a=a!=null?a.concat([e]):null,Ci(4,4,Sh.bind(null,t,e),a)}function cu(){}function Eh(e,t){var a=ut();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&Jc(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Nh(e,t){var a=ut();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&Jc(t,r[1]))return r[0];if(r=e(),Sl){xn(!0);try{e()}finally{xn(!1)}}return a.memoizedState=[r,t],r}function uu(e,t,a){return a===void 0||(aa&1073741824)!==0&&(De&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Cp(),Re.lanes|=e,za|=e,a)}function Ch(e,t,a,r){return Pt(a,t)?a:rr.current!==null?(e=uu(e,a,r),Pt(e,t)||(ht=!0),e):(aa&42)===0||(aa&1073741824)!==0&&(De&261930)===0?(ht=!0,e.memoizedState=a):(e=Cp(),Re.lanes|=e,za|=e,t)}function Th(e,t,a,r,s){var c=G.p;G.p=c!==0&&8>c?c:8;var b=M.T,S={};M.T=S,mu(e,!1,t,a);try{var A=s(),U=M.S;if(U!==null&&U(S,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var Q=D1(A,r);so(e,t,Q,tn(e))}else so(e,t,r,tn(e))}catch(P){so(e,t,{then:function(){},status:"rejected",reason:P},tn())}finally{G.p=c,b!==null&&S.types!==null&&(b.types=S.types),M.T=b}}function H1(){}function du(e,t,a,r){if(e.tag!==5)throw Error(i(476));var s=Rh(e).queue;Th(e,s,t,I,a===null?H1:function(){return Ah(e),a(r)})}function Rh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:I},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ah(e){var t=Rh(e);t.next===null&&(t=e.alternate.memoizedState),so(e,t.next.queue,{},tn())}function fu(){return Ct(To)}function _h(){return ut().memoizedState}function jh(){return ut().memoizedState}function V1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=tn();e=_a(a);var r=ja(t,e,a);r!==null&&(Xt(r,t,a),ao(r,t,a)),t={cache:qc()},e.payload=t;return}t=t.return}}function q1(e,t,a){var r=tn();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ti(e)?Mh(t,a):(a=jc(e,t,a,r),a!==null&&(Xt(a,e,r),Dh(a,t,r)))}function Oh(e,t,a){var r=tn();so(e,t,a,r)}function so(e,t,a,r){var s={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ti(e))Mh(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var b=t.lastRenderedState,S=c(b,a);if(s.hasEagerState=!0,s.eagerState=S,Pt(S,b))return oi(e,t,s,0),Pe===null&&ri(),!1}catch{}finally{}if(a=jc(e,t,s,r),a!==null)return Xt(a,e,r),Dh(a,t,r),!0}return!1}function mu(e,t,a,r){if(r={lane:2,revertLane:Xu(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ti(e)){if(t)throw Error(i(479))}else t=jc(e,a,r,2),t!==null&&Xt(t,e,2)}function Ti(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function Mh(e,t){or=bi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Dh(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Ut(e,a)}}var co={readContext:Ct,use:wi,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useInsertionEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useSyncExternalStore:ot,useId:ot,useHostTransitionStatus:ot,useFormState:ot,useActionState:ot,useOptimistic:ot,useMemoCache:ot,useCacheRefresh:ot};co.useEffectEvent=ot;var kh={readContext:Ct,use:wi,useCallback:function(e,t){return kt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:vh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ni(4194308,4,Sh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){Ni(4,2,e,t)},useMemo:function(e,t){var a=kt();t=t===void 0?null:t;var r=e();if(Sl){xn(!0);try{e()}finally{xn(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=kt();if(a!==void 0){var s=a(t);if(Sl){xn(!0);try{a(t)}finally{xn(!1)}}}else s=t;return r.memoizedState=r.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},r.queue=e,e=e.dispatch=q1.bind(null,Re,e),[r.memoizedState,e]},useRef:function(e){var t=kt();return e={current:e},t.memoizedState=e},useState:function(e){e=ou(e);var t=e.queue,a=Oh.bind(null,Re,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:cu,useDeferredValue:function(e,t){var a=kt();return uu(a,e,t)},useTransition:function(){var e=ou(!1);return e=Th.bind(null,Re,e.queue,!0,!1),kt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=Re,s=kt();if(ze){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Pe===null)throw Error(i(349));(De&127)!==0||th(r,t,a)}s.memoizedState=a;var c={value:a,getSnapshot:t};return s.queue=c,vh(ah.bind(null,r,c,e),[e]),r.flags|=2048,sr(9,{destroy:void 0},nh.bind(null,r,c,a,t),null),a},useId:function(){var e=kt(),t=Pe.identifierPrefix;if(ze){var a=Dn,r=Mn;a=(r&~(1<<32-At(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=xi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=k1++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:fu,useFormState:fh,useActionState:fh,useOptimistic:function(e){var t=kt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=mu.bind(null,Re,!0,a),a.dispatch=t,[e,t]},useMemoCache:au,useCacheRefresh:function(){return kt().memoizedState=V1.bind(null,Re)},useEffectEvent:function(e){var t=kt(),a={impl:e};return t.memoizedState=a,function(){if((qe&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},hu={readContext:Ct,use:wi,useCallback:Eh,useContext:Ct,useEffect:su,useImperativeHandle:wh,useInsertionEffect:bh,useLayoutEffect:xh,useMemo:Nh,useReducer:Ei,useRef:gh,useState:function(){return Ei(la)},useDebugValue:cu,useDeferredValue:function(e,t){var a=ut();return Ch(a,Qe.memoizedState,e,t)},useTransition:function(){var e=Ei(la)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:io(e),t]},useSyncExternalStore:eh,useId:_h,useHostTransitionStatus:fu,useFormState:mh,useActionState:mh,useOptimistic:function(e,t){var a=ut();return oh(a,Qe,e,t)},useMemoCache:au,useCacheRefresh:jh};hu.useEffectEvent=yh;var zh={readContext:Ct,use:wi,useCallback:Eh,useContext:Ct,useEffect:su,useImperativeHandle:wh,useInsertionEffect:bh,useLayoutEffect:xh,useMemo:Nh,useReducer:ru,useRef:gh,useState:function(){return ru(la)},useDebugValue:cu,useDeferredValue:function(e,t){var a=ut();return Qe===null?uu(a,e,t):Ch(a,Qe.memoizedState,e,t)},useTransition:function(){var e=ru(la)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:io(e),t]},useSyncExternalStore:eh,useId:_h,useHostTransitionStatus:fu,useFormState:ph,useActionState:ph,useOptimistic:function(e,t){var a=ut();return Qe!==null?oh(a,Qe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:au,useCacheRefresh:jh};zh.useEffectEvent=yh;function pu(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:p({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var gu={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=tn(),s=_a(r);s.payload=t,a!=null&&(s.callback=a),t=ja(e,s,r),t!==null&&(Xt(t,e,r),ao(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=tn(),s=_a(r);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=ja(e,s,r),t!==null&&(Xt(t,e,r),ao(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=tn(),r=_a(a);r.tag=2,t!=null&&(r.callback=t),t=ja(e,r,a),t!==null&&(Xt(t,e,a),ao(t,e,a))}};function Lh(e,t,a,r,s,c,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,c,b):t.prototype&&t.prototype.isPureReactComponent?!Pr(a,r)||!Pr(s,c):!0}function Uh(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&gu.enqueueReplaceState(t,t.state,null)}function wl(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=p({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function Bh(e){li(e)}function Hh(e){console.error(e)}function Vh(e){li(e)}function Ri(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function qh(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function vu(e,t,a){return a=_a(a),a.tag=3,a.payload={element:null},a.callback=function(){Ri(e,t)},a}function Yh(e){return e=_a(e),e.tag=3,e}function $h(e,t,a,r){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var c=r.value;e.payload=function(){return s(c)},e.callback=function(){qh(t,a,r)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){qh(t,a,r),typeof s!="function"&&(La===null?La=new Set([this]):La.add(this));var S=r.stack;this.componentDidCatch(r.value,{componentStack:S!==null?S:""})})}function Y1(e,t,a,r,s){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&er(t,a,s,!0),a=Ft.current,a!==null){switch(a.tag){case 31:case 13:return hn===null?Hi():a.alternate===null&&it===0&&(it=3),a.flags&=-257,a.flags|=65536,a.lanes=s,r===hi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Yu(e,r,s)),!1;case 22:return a.flags|=65536,r===hi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),Yu(e,r,s)),!1}throw Error(i(435,a.tag))}return Yu(e,r,s),Hi(),!1}if(ze)return t=Ft.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,r!==Lc&&(e=Error(i(422),{cause:r}),Jr(un(e,a)))):(r!==Lc&&(t=Error(i(423),{cause:r}),Jr(un(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,r=un(r,a),s=vu(e.stateNode,r,s),Kc(e,s),it!==4&&(it=2)),!1;var c=Error(i(520),{cause:r});if(c=un(c,a),yo===null?yo=[c]:yo.push(c),it!==4&&(it=2),t===null)return!0;r=un(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=vu(a.stateNode,r,e),Kc(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(La===null||!La.has(c))))return a.flags|=65536,s&=-s,a.lanes|=s,s=Yh(s),$h(s,e,a,r),Kc(a,s),!1}a=a.return}while(a!==null);return!1}var yu=Error(i(461)),ht=!1;function Tt(e,t,a,r){t.child=e===null?Km(t,null,a,r):xl(t,e.child,a,r)}function Gh(e,t,a,r,s){a=a.render;var c=t.ref;if("ref"in r){var b={};for(var S in r)S!=="ref"&&(b[S]=r[S])}else b=r;return gl(t),r=Wc(e,t,a,b,c,s),S=eu(),e!==null&&!ht?(tu(e,t,s),ra(e,t,s)):(ze&&S&&kc(t),t.flags|=1,Tt(e,t,r,s),t.child)}function Xh(e,t,a,r,s){if(e===null){var c=a.type;return typeof c=="function"&&!Oc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Qh(e,t,c,r,s)):(e=si(a.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Tu(e,s)){var b=c.memoizedProps;if(a=a.compare,a=a!==null?a:Pr,a(b,r)&&e.ref===t.ref)return ra(e,t,s)}return t.flags|=1,e=Wn(c,r),e.ref=t.ref,e.return=t,t.child=e}function Qh(e,t,a,r,s){if(e!==null){var c=e.memoizedProps;if(Pr(c,r)&&e.ref===t.ref)if(ht=!1,t.pendingProps=r=c,Tu(e,s))(e.flags&131072)!==0&&(ht=!0);else return t.lanes=e.lanes,ra(e,t,s)}return bu(e,t,a,r,s)}function Kh(e,t,a,r){var s=r.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(r=t.child=e.child,s=0;r!==null;)s=s|r.lanes|r.childLanes,r=r.sibling;r=s&~c}else r=0,t.child=null;return Zh(e,t,c,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fi(t,c!==null?c.cachePool:null),c!==null?Im(t,c):Pc(),Fm(t);else return r=t.lanes=536870912,Zh(e,t,c!==null?c.baseLanes|a:a,a,r)}else c!==null?(fi(t,c.cachePool),Im(t,c),Ma(),t.memoizedState=null):(e!==null&&fi(t,null),Pc(),Ma());return Tt(e,t,s,a),t.child}function uo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Zh(e,t,a,r,s){var c=$c();return c=c===null?null:{parent:ft._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&fi(t,null),Pc(),Fm(t),e!==null&&er(e,t,r,!0),t.childLanes=s,null}function Ai(e,t){return t=ji({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ph(e,t,a){return xl(t,e.child,null,a),e=Ai(t,t.pendingProps),e.flags|=2,Jt(t),t.memoizedState=null,e}function $1(e,t,a){var r=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(r.mode==="hidden")return e=Ai(t,r),t.lanes=536870912,uo(null,e);if(Fc(t),(e=We)?(e=ig(e,mn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Na!==null?{id:Mn,overflow:Dn}:null,retryLane:536870912,hydrationErrors:null},a=Mm(e),a.return=t,t.child=a,Nt=t,We=null)):e=null,e===null)throw Ta(t);return t.lanes=536870912,null}return Ai(t,r)}var c=e.memoizedState;if(c!==null){var b=c.dehydrated;if(Fc(t),s)if(t.flags&256)t.flags&=-257,t=Ph(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ht||er(e,t,a,!1),s=(a&e.childLanes)!==0,ht||s){if(r=Pe,r!==null&&(b=Bt(r,a),b!==0&&b!==c.retryLane))throw c.retryLane=b,fl(e,b),Xt(r,e,b),yu;Hi(),t=Ph(e,t,a)}else e=c.treeContext,We=pn(b.nextSibling),Nt=t,ze=!0,Ca=null,mn=!1,e!==null&&zm(t,e),t=Ai(t,r),t.flags|=4096;return t}return e=Wn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function _i(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function bu(e,t,a,r,s){return gl(t),a=Wc(e,t,a,r,void 0,s),r=eu(),e!==null&&!ht?(tu(e,t,s),ra(e,t,s)):(ze&&r&&kc(t),t.flags|=1,Tt(e,t,a,s),t.child)}function Ih(e,t,a,r,s,c){return gl(t),t.updateQueue=null,a=Wm(t,r,a,s),Jm(e),r=eu(),e!==null&&!ht?(tu(e,t,c),ra(e,t,c)):(ze&&r&&kc(t),t.flags|=1,Tt(e,t,a,c),t.child)}function Fh(e,t,a,r,s){if(gl(t),t.stateNode===null){var c=Il,b=a.contextType;typeof b=="object"&&b!==null&&(c=Ct(b)),c=new a(r,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=gu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=r,c.state=t.memoizedState,c.refs={},Xc(t),b=a.contextType,c.context=typeof b=="object"&&b!==null?Ct(b):Il,c.state=t.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(pu(t,a,b,r),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(b=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),b!==c.state&&gu.enqueueReplaceState(c,c.state,null),ro(t,r,c,s),lo(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){c=t.stateNode;var S=t.memoizedProps,A=wl(a,S);c.props=A;var U=c.context,Q=a.contextType;b=Il,typeof Q=="object"&&Q!==null&&(b=Ct(Q));var P=a.getDerivedStateFromProps;Q=typeof P=="function"||typeof c.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,Q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(S||U!==b)&&Uh(t,c,r,b),Aa=!1;var H=t.memoizedState;c.state=H,ro(t,r,c,s),lo(),U=t.memoizedState,S||H!==U||Aa?(typeof P=="function"&&(pu(t,a,P,r),U=t.memoizedState),(A=Aa||Lh(t,a,A,r,H,U,b))?(Q||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=r,t.memoizedState=U),c.props=r,c.state=U,c.context=b,r=A):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,Qc(e,t),b=t.memoizedProps,Q=wl(a,b),c.props=Q,P=t.pendingProps,H=c.context,U=a.contextType,A=Il,typeof U=="object"&&U!==null&&(A=Ct(U)),S=a.getDerivedStateFromProps,(U=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b!==P||H!==A)&&Uh(t,c,r,A),Aa=!1,H=t.memoizedState,c.state=H,ro(t,r,c,s),lo();var Y=t.memoizedState;b!==P||H!==Y||Aa||e!==null&&e.dependencies!==null&&ui(e.dependencies)?(typeof S=="function"&&(pu(t,a,S,r),Y=t.memoizedState),(Q=Aa||Lh(t,a,Q,r,H,Y,A)||e!==null&&e.dependencies!==null&&ui(e.dependencies))?(U||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,Y,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,Y,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=Y),c.props=r,c.state=Y,c.context=A,r=Q):(typeof c.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),r=!1)}return c=r,_i(e,t),r=(t.flags&128)!==0,c||r?(c=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&r?(t.child=xl(t,e.child,null,s),t.child=xl(t,null,a,s)):Tt(e,t,a,s),t.memoizedState=c.state,e=t.child):e=ra(e,t,s),e}function Jh(e,t,a,r){return hl(),t.flags|=256,Tt(e,t,a,r),t.child}var xu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Su(e){return{baseLanes:e,cachePool:qm()}}function wu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=en),e}function Wh(e,t,a){var r=t.pendingProps,s=!1,c=(t.flags&128)!==0,b;if((b=c)||(b=e!==null&&e.memoizedState===null?!1:(ct.current&2)!==0),b&&(s=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(s?Oa(t):Ma(),(e=We)?(e=ig(e,mn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Na!==null?{id:Mn,overflow:Dn}:null,retryLane:536870912,hydrationErrors:null},a=Mm(e),a.return=t,t.child=a,Nt=t,We=null)):e=null,e===null)throw Ta(t);return ld(e)?t.lanes=32:t.lanes=536870912,null}var S=r.children;return r=r.fallback,s?(Ma(),s=t.mode,S=ji({mode:"hidden",children:S},s),r=ml(r,s,a,null),S.return=t,r.return=t,S.sibling=r,t.child=S,r=t.child,r.memoizedState=Su(a),r.childLanes=wu(e,b,a),t.memoizedState=xu,uo(null,r)):(Oa(t),Eu(t,S))}var A=e.memoizedState;if(A!==null&&(S=A.dehydrated,S!==null)){if(c)t.flags&256?(Oa(t),t.flags&=-257,t=Nu(e,t,a)):t.memoizedState!==null?(Ma(),t.child=e.child,t.flags|=128,t=null):(Ma(),S=r.fallback,s=t.mode,r=ji({mode:"visible",children:r.children},s),S=ml(S,s,a,null),S.flags|=2,r.return=t,S.return=t,r.sibling=S,t.child=r,xl(t,e.child,null,a),r=t.child,r.memoizedState=Su(a),r.childLanes=wu(e,b,a),t.memoizedState=xu,t=uo(null,r));else if(Oa(t),ld(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var U=b.dgst;b=U,r=Error(i(419)),r.stack="",r.digest=b,Jr({value:r,source:null,stack:null}),t=Nu(e,t,a)}else if(ht||er(e,t,a,!1),b=(a&e.childLanes)!==0,ht||b){if(b=Pe,b!==null&&(r=Bt(b,a),r!==0&&r!==A.retryLane))throw A.retryLane=r,fl(e,r),Xt(b,e,r),yu;ad(S)||Hi(),t=Nu(e,t,a)}else ad(S)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,We=pn(S.nextSibling),Nt=t,ze=!0,Ca=null,mn=!1,e!==null&&zm(t,e),t=Eu(t,r.children),t.flags|=4096);return t}return s?(Ma(),S=r.fallback,s=t.mode,A=e.child,U=A.sibling,r=Wn(A,{mode:"hidden",children:r.children}),r.subtreeFlags=A.subtreeFlags&65011712,U!==null?S=Wn(U,S):(S=ml(S,s,a,null),S.flags|=2),S.return=t,r.return=t,r.sibling=S,t.child=r,uo(null,r),r=t.child,S=e.child.memoizedState,S===null?S=Su(a):(s=S.cachePool,s!==null?(A=ft._currentValue,s=s.parent!==A?{parent:A,pool:A}:s):s=qm(),S={baseLanes:S.baseLanes|a,cachePool:s}),r.memoizedState=S,r.childLanes=wu(e,b,a),t.memoizedState=xu,uo(e.child,r)):(Oa(t),a=e.child,e=a.sibling,a=Wn(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=a,t.memoizedState=null,a)}function Eu(e,t){return t=ji({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ji(e,t){return e=It(22,e,null,t),e.lanes=0,e}function Nu(e,t,a){return xl(t,e.child,null,a),e=Eu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ep(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hc(e.return,t,a)}function Cu(e,t,a,r,s,c){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:s,treeForkCount:c}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=r,b.tail=a,b.tailMode=s,b.treeForkCount=c)}function tp(e,t,a){var r=t.pendingProps,s=r.revealOrder,c=r.tail;r=r.children;var b=ct.current,S=(b&2)!==0;if(S?(b=b&1|2,t.flags|=128):b&=1,K(ct,b),Tt(e,t,r,a),r=ze?Fr:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ep(e,a,t);else if(e.tag===19)ep(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&yi(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),Cu(t,!1,s,a,c,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&yi(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}Cu(t,!0,a,null,c,r);break;case"together":Cu(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function ra(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),za|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(er(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,a=Wn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Wn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Tu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ui(e)))}function G1(e,t,a){switch(t.tag){case 3:oe(t,t.stateNode.containerInfo),Ra(t,ft,e.memoizedState.cache),hl();break;case 27:case 5:Te(t);break;case 4:oe(t,t.stateNode.containerInfo);break;case 10:Ra(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Fc(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Oa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Wh(e,t,a):(Oa(t),e=ra(e,t,a),e!==null?e.sibling:null);Oa(t);break;case 19:var s=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(er(e,t,a,!1),r=(a&t.childLanes)!==0),s){if(r)return tp(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),K(ct,ct.current),r)break;return null;case 22:return t.lanes=0,Kh(e,t,a,t.pendingProps);case 24:Ra(t,ft,e.memoizedState.cache)}return ra(e,t,a)}function np(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ht=!0;else{if(!Tu(e,a)&&(t.flags&128)===0)return ht=!1,G1(e,t,a);ht=(e.flags&131072)!==0}else ht=!1,ze&&(t.flags&1048576)!==0&&km(t,Fr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=yl(t.elementType),t.type=e,typeof e=="function")Oc(e)?(r=wl(e,r),t.tag=1,t=Fh(null,t,e,r,a)):(t.tag=0,t=bu(null,t,e,r,a));else{if(e!=null){var s=e.$$typeof;if(s===k){t.tag=11,t=Gh(null,t,e,r,a);break e}else if(s===B){t.tag=14,t=Xh(null,t,e,r,a);break e}}throw t=re(e)||e,Error(i(306,t,""))}}return t;case 0:return bu(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,s=wl(r,t.pendingProps),Fh(e,t,r,s,a);case 3:e:{if(oe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var c=t.memoizedState;s=c.element,Qc(e,t),ro(t,r,null,a);var b=t.memoizedState;if(r=b.cache,Ra(t,ft,r),r!==c.cache&&Vc(t,[ft],a,!0),lo(),r=b.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Jh(e,t,r,a);break e}else if(r!==s){s=un(Error(i(424)),t),Jr(s),t=Jh(e,t,r,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(We=pn(e.firstChild),Nt=t,ze=!0,Ca=null,mn=!0,a=Km(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(hl(),r===s){t=ra(e,t,a);break e}Tt(e,t,r,a)}t=t.child}return t;case 26:return _i(e,t),e===null?(a=mg(t.type,null,t.pendingProps,null))?t.memoizedState=a:ze||(a=t.type,e=t.pendingProps,r=Qi(ae.current).createElement(a),r[Et]=t,r[Ht]=e,Rt(r,a,e),xt(r),t.stateNode=r):t.memoizedState=mg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Te(t),e===null&&ze&&(r=t.stateNode=ug(t.type,t.pendingProps,ae.current),Nt=t,mn=!0,s=We,Va(t.type)?(rd=s,We=pn(r.firstChild)):We=s),Tt(e,t,t.pendingProps.children,a),_i(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((s=r=We)&&(r=xS(r,t.type,t.pendingProps,mn),r!==null?(t.stateNode=r,Nt=t,We=pn(r.firstChild),mn=!1,s=!0):s=!1),s||Ta(t)),Te(t),s=t.type,c=t.pendingProps,b=e!==null?e.memoizedProps:null,r=c.children,ed(s,c)?r=null:b!==null&&ed(s,b)&&(t.flags|=32),t.memoizedState!==null&&(s=Wc(e,t,z1,null,null,a),To._currentValue=s),_i(e,t),Tt(e,t,r,a),t.child;case 6:return e===null&&ze&&((e=a=We)&&(a=SS(a,t.pendingProps,mn),a!==null?(t.stateNode=a,Nt=t,We=null,e=!0):e=!1),e||Ta(t)),null;case 13:return Wh(e,t,a);case 4:return oe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xl(t,null,r,a):Tt(e,t,r,a),t.child;case 11:return Gh(e,t,t.type,t.pendingProps,a);case 7:return Tt(e,t,t.pendingProps,a),t.child;case 8:return Tt(e,t,t.pendingProps.children,a),t.child;case 12:return Tt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,Ra(t,t.type,r.value),Tt(e,t,r.children,a),t.child;case 9:return s=t.type._context,r=t.pendingProps.children,gl(t),s=Ct(s),r=r(s),t.flags|=1,Tt(e,t,r,a),t.child;case 14:return Xh(e,t,t.type,t.pendingProps,a);case 15:return Qh(e,t,t.type,t.pendingProps,a);case 19:return tp(e,t,a);case 31:return $1(e,t,a);case 22:return Kh(e,t,a,t.pendingProps);case 24:return gl(t),r=Ct(ft),e===null?(s=$c(),s===null&&(s=Pe,c=qc(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=a),s=c),t.memoizedState={parent:r,cache:s},Xc(t),Ra(t,ft,s)):((e.lanes&a)!==0&&(Qc(e,t),ro(t,null,null,a),lo()),s=e.memoizedState,c=t.memoizedState,s.parent!==r?(s={parent:r,cache:r},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Ra(t,ft,r)):(r=c.cache,Ra(t,ft,r),r!==s.cache&&Vc(t,[ft],a,!0))),Tt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function oa(e){e.flags|=4}function Ru(e,t,a,r,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(_p())e.flags|=8192;else throw bl=hi,Gc}else e.flags&=-16777217}function ap(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!yg(t))if(_p())e.flags|=8192;else throw bl=hi,Gc}function Oi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?_t():536870912,e.lanes|=t,fr|=t)}function fo(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,r|=s.subtreeFlags&65011712,r|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function X1(e,t,a){var r=t.pendingProps;switch(zc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return et(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),na(ft),de(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Wl(t)?oa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Uc())),et(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(oa(t),c!==null?(et(t),ap(t,c)):(et(t),Ru(t,s,null,r,a))):c?c!==e.memoizedState?(oa(t),et(t),ap(t,c)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&oa(t),et(t),Ru(t,s,e,r,a)),null;case 27:if(Ee(t),a=ae.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&oa(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return et(t),null}e=J.current,Wl(t)?Lm(t):(e=ug(s,r,a),t.stateNode=e,oa(t))}return et(t),null;case 5:if(Ee(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&oa(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return et(t),null}if(c=J.current,Wl(t))Lm(t);else{var b=Qi(ae.current);switch(c){case 1:c=b.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=b.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=b.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=b.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=b.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof r.is=="string"?b.createElement("select",{is:r.is}):b.createElement("select"),r.multiple?c.multiple=!0:r.size&&(c.size=r.size);break;default:c=typeof r.is=="string"?b.createElement(s,{is:r.is}):b.createElement(s)}}c[Et]=t,c[Ht]=r;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)c.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break e;for(;b.sibling===null;){if(b.return===null||b.return===t)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}t.stateNode=c;e:switch(Rt(c,s,r),s){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&oa(t)}}return et(t),Ru(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&oa(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(i(166));if(e=ae.current,Wl(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,s=Nt,s!==null)switch(s.tag){case 27:case 5:r=s.memoizedProps}e[Et]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||Wp(e.nodeValue,a)),e||Ta(t,!0)}else e=Qi(e).createTextNode(r),e[Et]=t,t.stateNode=e}return et(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=Wl(t),a!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[Et]=t}else hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else a=Uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Jt(t),t):(Jt(t),null);if((t.flags&128)!==0)throw Error(i(558))}return et(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Wl(t),r!==null&&r.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[Et]=t}else hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),s=!1}else s=Uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Jt(t),t):(Jt(t),null)}return Jt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,s=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(s=r.alternate.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==s&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Oi(t,t.updateQueue),et(t),null);case 4:return de(),e===null&&Pu(t.stateNode.containerInfo),et(t),null;case 10:return na(t.type),et(t),null;case 19:if(X(ct),r=t.memoizedState,r===null)return et(t),null;if(s=(t.flags&128)!==0,c=r.rendering,c===null)if(s)fo(r,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=yi(e),c!==null){for(t.flags|=128,fo(r,!1),e=c.updateQueue,t.updateQueue=e,Oi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Om(a,e),a=a.sibling;return K(ct,ct.current&1|2),ze&&ea(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&st()>Li&&(t.flags|=128,s=!0,fo(r,!1),t.lanes=4194304)}else{if(!s)if(e=yi(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Oi(t,e),fo(r,!0),r.tail===null&&r.tailMode==="hidden"&&!c.alternate&&!ze)return et(t),null}else 2*st()-r.renderingStartTime>Li&&a!==536870912&&(t.flags|=128,s=!0,fo(r,!1),t.lanes=4194304);r.isBackwards?(c.sibling=t.child,t.child=c):(e=r.last,e!==null?e.sibling=c:t.child=c,r.last=c)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=st(),e.sibling=null,a=ct.current,K(ct,s?a&1|2:a&1),ze&&ea(t,r.treeForkCount),e):(et(t),null);case 22:case 23:return Jt(t),Ic(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),a=t.updateQueue,a!==null&&Oi(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&X(vl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),na(ft),et(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Q1(e,t){switch(zc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return na(ft),de(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ee(t),null;case 31:if(t.memoizedState!==null){if(Jt(t),t.alternate===null)throw Error(i(340));hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(ct),null;case 4:return de(),null;case 10:return na(t.type),null;case 22:case 23:return Jt(t),Ic(),e!==null&&X(vl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return na(ft),null;case 25:return null;default:return null}}function lp(e,t){switch(zc(t),t.tag){case 3:na(ft),de();break;case 26:case 27:case 5:Ee(t);break;case 4:de();break;case 31:t.memoizedState!==null&&Jt(t);break;case 13:Jt(t);break;case 19:X(ct);break;case 10:na(t.type);break;case 22:case 23:Jt(t),Ic(),e!==null&&X(vl);break;case 24:na(ft)}}function mo(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var s=r.next;a=s;do{if((a.tag&e)===e){r=void 0;var c=a.create,b=a.inst;r=c(),b.destroy=r}a=a.next}while(a!==s)}}catch(S){Xe(t,t.return,S)}}function Da(e,t,a){try{var r=t.updateQueue,s=r!==null?r.lastEffect:null;if(s!==null){var c=s.next;r=c;do{if((r.tag&e)===e){var b=r.inst,S=b.destroy;if(S!==void 0){b.destroy=void 0,s=t;var A=a,U=S;try{U()}catch(Q){Xe(s,A,Q)}}}r=r.next}while(r!==c)}}catch(Q){Xe(t,t.return,Q)}}function rp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Pm(t,a)}catch(r){Xe(e,e.return,r)}}}function op(e,t,a){a.props=wl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){Xe(e,t,r)}}function ho(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(s){Xe(e,t,s)}}function kn(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(s){Xe(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){Xe(e,t,s)}else a.current=null}function ip(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(s){Xe(e,e.return,s)}}function Au(e,t,a){try{var r=e.stateNode;hS(r,e.type,a,t),r[Ht]=t}catch(s){Xe(e,e.return,s)}}function sp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Va(e.type)||e.tag===4}function _u(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sp(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&&Va(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 ju(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Fn));else if(r!==4&&(r===27&&Va(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ju(e,t,a),e=e.sibling;e!==null;)ju(e,t,a),e=e.sibling}function Mi(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&Va(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Mi(e,t,a),e=e.sibling;e!==null;)Mi(e,t,a),e=e.sibling}function cp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Rt(t,r,a),t[Et]=e,t[Ht]=a}catch(c){Xe(e,e.return,c)}}var ia=!1,pt=!1,Ou=!1,up=typeof WeakSet=="function"?WeakSet:Set,St=null;function K1(e,t){if(e=e.containerInfo,Ju=Wi,e=wm(e),Nc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var s=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var b=0,S=-1,A=-1,U=0,Q=0,P=e,H=null;t:for(;;){for(var Y;P!==a||s!==0&&P.nodeType!==3||(S=b+s),P!==c||r!==0&&P.nodeType!==3||(A=b+r),P.nodeType===3&&(b+=P.nodeValue.length),(Y=P.firstChild)!==null;)H=P,P=Y;for(;;){if(P===e)break t;if(H===a&&++U===s&&(S=b),H===c&&++Q===r&&(A=b),(Y=P.nextSibling)!==null)break;P=H,H=P.parentNode}P=Y}a=S===-1||A===-1?null:{start:S,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(Wu={focusedElem:e,selectionRange:a},Wi=!1,St=t;St!==null;)if(t=St,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,St=e;else for(;St!==null;){switch(t=St,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,s=c.memoizedProps,c=c.memoizedState,r=a.stateNode;try{var me=wl(a.type,s);e=r.getSnapshotBeforeUpdate(me,c),r.__reactInternalSnapshotBeforeUpdate=e}catch(xe){Xe(a,a.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)nd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":nd(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,St=e;break}St=t.return}}function dp(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:ca(e,a),r&4&&mo(5,a);break;case 1:if(ca(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(b){Xe(a,a.return,b)}else{var s=wl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Xe(a,a.return,b)}}r&64&&rp(a),r&512&&ho(a,a.return);break;case 3:if(ca(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Pm(e,t)}catch(b){Xe(a,a.return,b)}}break;case 27:t===null&&r&4&&cp(a);case 26:case 5:ca(e,a),t===null&&r&4&&ip(a),r&512&&ho(a,a.return);break;case 12:ca(e,a);break;case 31:ca(e,a),r&4&&hp(e,a);break;case 13:ca(e,a),r&4&&pp(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=nS.bind(null,a),wS(e,a))));break;case 22:if(r=a.memoizedState!==null||ia,!r){t=t!==null&&t.memoizedState!==null||pt,s=ia;var c=pt;ia=r,(pt=t)&&!c?ua(e,a,(a.subtreeFlags&8772)!==0):ca(e,a),ia=s,pt=c}break;case 30:break;default:ca(e,a)}}function fp(e){var t=e.alternate;t!==null&&(e.alternate=null,fp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ic(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 at=null,qt=!1;function sa(e,t,a){for(a=a.child;a!==null;)mp(e,t,a),a=a.sibling}function mp(e,t,a){if(Dt&&typeof Dt.onCommitFiberUnmount=="function")try{Dt.onCommitFiberUnmount(rl,a)}catch{}switch(a.tag){case 26:pt||kn(a,t),sa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:pt||kn(a,t);var r=at,s=qt;Va(a.type)&&(at=a.stateNode,qt=!1),sa(e,t,a),Eo(a.stateNode),at=r,qt=s;break;case 5:pt||kn(a,t);case 6:if(r=at,s=qt,at=null,sa(e,t,a),at=r,qt=s,at!==null)if(qt)try{(at.nodeType===9?at.body:at.nodeName==="HTML"?at.ownerDocument.body:at).removeChild(a.stateNode)}catch(c){Xe(a,t,c)}else try{at.removeChild(a.stateNode)}catch(c){Xe(a,t,c)}break;case 18:at!==null&&(qt?(e=at,rg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),xr(e)):rg(at,a.stateNode));break;case 4:r=at,s=qt,at=a.stateNode.containerInfo,qt=!0,sa(e,t,a),at=r,qt=s;break;case 0:case 11:case 14:case 15:Da(2,a,t),pt||Da(4,a,t),sa(e,t,a);break;case 1:pt||(kn(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&op(a,t,r)),sa(e,t,a);break;case 21:sa(e,t,a);break;case 22:pt=(r=pt)||a.memoizedState!==null,sa(e,t,a),pt=r;break;default:sa(e,t,a)}}function hp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{xr(e)}catch(a){Xe(t,t.return,a)}}}function pp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{xr(e)}catch(a){Xe(t,t.return,a)}}function Z1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new up),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new up),t;default:throw Error(i(435,e.tag))}}function Di(e,t){var a=Z1(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var s=aS.bind(null,e,r);r.then(s,s)}})}function Yt(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var s=a[r],c=e,b=t,S=b;e:for(;S!==null;){switch(S.tag){case 27:if(Va(S.type)){at=S.stateNode,qt=!1;break e}break;case 5:at=S.stateNode,qt=!1;break e;case 3:case 4:at=S.stateNode.containerInfo,qt=!0;break e}S=S.return}if(at===null)throw Error(i(160));mp(c,b,s),at=null,qt=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gp(t,e),t=t.sibling}var En=null;function gp(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yt(t,e),$t(e),r&4&&(Da(3,e,e.return),mo(3,e),Da(5,e,e.return));break;case 1:Yt(t,e),$t(e),r&512&&(pt||a===null||kn(a,a.return)),r&64&&ia&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var s=En;if(Yt(t,e),$t(e),r&512&&(pt||a===null||kn(a,a.return)),r&4){var c=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(r){case"title":c=s.getElementsByTagName("title")[0],(!c||c[Vr]||c[Et]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(r),s.head.insertBefore(c,s.querySelector("head > title"))),Rt(c,r,a),c[Et]=e,xt(c),r=c;break e;case"link":var b=gg("link","href",s).get(r+(a.href||""));if(b){for(var S=0;S<b.length;S++)if(c=b[S],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){b.splice(S,1);break t}}c=s.createElement(r),Rt(c,r,a),s.head.appendChild(c);break;case"meta":if(b=gg("meta","content",s).get(r+(a.content||""))){for(S=0;S<b.length;S++)if(c=b[S],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){b.splice(S,1);break t}}c=s.createElement(r),Rt(c,r,a),s.head.appendChild(c);break;default:throw Error(i(468,r))}c[Et]=e,xt(c),r=c}e.stateNode=r}else vg(s,e.type,e.stateNode);else e.stateNode=pg(s,r,e.memoizedProps);else c!==r?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,r===null?vg(s,e.type,e.stateNode):pg(s,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Au(e,e.memoizedProps,a.memoizedProps)}break;case 27:Yt(t,e),$t(e),r&512&&(pt||a===null||kn(a,a.return)),a!==null&&r&4&&Au(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Yt(t,e),$t(e),r&512&&(pt||a===null||kn(a,a.return)),e.flags&32){s=e.stateNode;try{$l(s,"")}catch(me){Xe(e,e.return,me)}}r&4&&e.stateNode!=null&&(s=e.memoizedProps,Au(e,s,a!==null?a.memoizedProps:s)),r&1024&&(Ou=!0);break;case 6:if(Yt(t,e),$t(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(me){Xe(e,e.return,me)}}break;case 3:if(Pi=null,s=En,En=Ki(t.containerInfo),Yt(t,e),En=s,$t(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{xr(t.containerInfo)}catch(me){Xe(e,e.return,me)}Ou&&(Ou=!1,vp(e));break;case 4:r=En,En=Ki(e.stateNode.containerInfo),Yt(t,e),$t(e),En=r;break;case 12:Yt(t,e),$t(e);break;case 31:Yt(t,e),$t(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Di(e,r)));break;case 13:Yt(t,e),$t(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(zi=st()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Di(e,r)));break;case 22:s=e.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,U=ia,Q=pt;if(ia=U||s,pt=Q||A,Yt(t,e),pt=Q,ia=U,$t(e),r&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||A||ia||pt||El(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){A=a=t;try{if(c=A.stateNode,s)b=c.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=A.stateNode;var P=A.memoizedProps.style,H=P!=null&&P.hasOwnProperty("display")?P.display:null;S.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(me){Xe(A,A.return,me)}}}else if(t.tag===6){if(a===null){A=t;try{A.stateNode.nodeValue=s?"":A.memoizedProps}catch(me){Xe(A,A.return,me)}}}else if(t.tag===18){if(a===null){A=t;try{var Y=A.stateNode;s?og(Y,!0):og(A.stateNode,!1)}catch(me){Xe(A,A.return,me)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,Di(e,a))));break;case 19:Yt(t,e),$t(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Di(e,r)));break;case 30:break;case 21:break;default:Yt(t,e),$t(e)}}function $t(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(sp(r)){a=r;break}r=r.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var s=a.stateNode,c=_u(e);Mi(e,c,s);break;case 5:var b=a.stateNode;a.flags&32&&($l(b,""),a.flags&=-33);var S=_u(e);Mi(e,S,b);break;case 3:case 4:var A=a.stateNode.containerInfo,U=_u(e);ju(e,U,A);break;default:throw Error(i(161))}}catch(Q){Xe(e,e.return,Q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ca(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dp(e,t.alternate,t),t=t.sibling}function El(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Da(4,t,t.return),El(t);break;case 1:kn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&op(t,t.return,a),El(t);break;case 27:Eo(t.stateNode);case 26:case 5:kn(t,t.return),El(t);break;case 22:t.memoizedState===null&&El(t);break;case 30:El(t);break;default:El(t)}e=e.sibling}}function ua(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,s=e,c=t,b=c.flags;switch(c.tag){case 0:case 11:case 15:ua(s,c,a),mo(4,c);break;case 1:if(ua(s,c,a),r=c,s=r.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(U){Xe(r,r.return,U)}if(r=c,s=r.updateQueue,s!==null){var S=r.stateNode;try{var A=s.shared.hiddenCallbacks;if(A!==null)for(s.shared.hiddenCallbacks=null,s=0;s<A.length;s++)Zm(A[s],S)}catch(U){Xe(r,r.return,U)}}a&&b&64&&rp(c),ho(c,c.return);break;case 27:cp(c);case 26:case 5:ua(s,c,a),a&&r===null&&b&4&&ip(c),ho(c,c.return);break;case 12:ua(s,c,a);break;case 31:ua(s,c,a),a&&b&4&&hp(s,c);break;case 13:ua(s,c,a),a&&b&4&&pp(s,c);break;case 22:c.memoizedState===null&&ua(s,c,a),ho(c,c.return);break;case 30:break;default:ua(s,c,a)}t=t.sibling}}function Mu(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Wr(a))}function Du(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wr(e))}function Nn(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)yp(e,t,a,r),t=t.sibling}function yp(e,t,a,r){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Nn(e,t,a,r),s&2048&&mo(9,t);break;case 1:Nn(e,t,a,r);break;case 3:Nn(e,t,a,r),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wr(e)));break;case 12:if(s&2048){Nn(e,t,a,r),e=t.stateNode;try{var c=t.memoizedProps,b=c.id,S=c.onPostCommit;typeof S=="function"&&S(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Xe(t,t.return,A)}}else Nn(e,t,a,r);break;case 31:Nn(e,t,a,r);break;case 13:Nn(e,t,a,r);break;case 23:break;case 22:c=t.stateNode,b=t.alternate,t.memoizedState!==null?c._visibility&2?Nn(e,t,a,r):po(e,t):c._visibility&2?Nn(e,t,a,r):(c._visibility|=2,cr(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Mu(b,t);break;case 24:Nn(e,t,a,r),s&2048&&Du(t.alternate,t);break;default:Nn(e,t,a,r)}}function cr(e,t,a,r,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,b=t,S=a,A=r,U=b.flags;switch(b.tag){case 0:case 11:case 15:cr(c,b,S,A,s),mo(8,b);break;case 23:break;case 22:var Q=b.stateNode;b.memoizedState!==null?Q._visibility&2?cr(c,b,S,A,s):po(c,b):(Q._visibility|=2,cr(c,b,S,A,s)),s&&U&2048&&Mu(b.alternate,b);break;case 24:cr(c,b,S,A,s),s&&U&2048&&Du(b.alternate,b);break;default:cr(c,b,S,A,s)}t=t.sibling}}function po(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,s=r.flags;switch(r.tag){case 22:po(a,r),s&2048&&Mu(r.alternate,r);break;case 24:po(a,r),s&2048&&Du(r.alternate,r);break;default:po(a,r)}t=t.sibling}}var go=8192;function ur(e,t,a){if(e.subtreeFlags&go)for(e=e.child;e!==null;)bp(e,t,a),e=e.sibling}function bp(e,t,a){switch(e.tag){case 26:ur(e,t,a),e.flags&go&&e.memoizedState!==null&&kS(a,En,e.memoizedState,e.memoizedProps);break;case 5:ur(e,t,a);break;case 3:case 4:var r=En;En=Ki(e.stateNode.containerInfo),ur(e,t,a),En=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=go,go=16777216,ur(e,t,a),go=r):ur(e,t,a));break;default:ur(e,t,a)}}function xp(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 vo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];St=r,wp(r,e)}xp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Sp(e),e=e.sibling}function Sp(e){switch(e.tag){case 0:case 11:case 15:vo(e),e.flags&2048&&Da(9,e,e.return);break;case 3:vo(e);break;case 12:vo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ki(e)):vo(e);break;default:vo(e)}}function ki(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];St=r,wp(r,e)}xp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Da(8,t,t.return),ki(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ki(t));break;default:ki(t)}e=e.sibling}}function wp(e,t){for(;St!==null;){var a=St;switch(a.tag){case 0:case 11:case 15:Da(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Wr(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,St=r;else e:for(a=e;St!==null;){r=St;var s=r.sibling,c=r.return;if(fp(r),r===a){St=null;break e}if(s!==null){s.return=c,St=s;break e}St=c}}}var P1={getCacheForType:function(e){var t=Ct(ft),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ct(ft).controller.signal}},I1=typeof WeakMap=="function"?WeakMap:Map,qe=0,Pe=null,je=null,De=0,Ge=0,Wt=null,ka=!1,dr=!1,ku=!1,da=0,it=0,za=0,Nl=0,zu=0,en=0,fr=0,yo=null,Gt=null,Lu=!1,zi=0,Ep=0,Li=1/0,Ui=null,La=null,gt=0,Ua=null,mr=null,fa=0,Uu=0,Bu=null,Np=null,bo=0,Hu=null;function tn(){return(qe&2)!==0&&De!==0?De&-De:M.T!==null?Xu():rc()}function Cp(){if(en===0)if((De&536870912)===0||ze){var e=zl;zl<<=1,(zl&3932160)===0&&(zl=262144),en=e}else en=536870912;return e=Ft.current,e!==null&&(e.flags|=32),en}function Xt(e,t,a){(e===Pe&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(hr(e,0),Ba(e,De,en,!1)),rt(e,a),((qe&2)===0||e!==Pe)&&(e===Pe&&((qe&2)===0&&(Nl|=a),it===4&&Ba(e,De,en,!1)),zn(e))}function Tp(e,t,a){if((qe&6)!==0)throw Error(i(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||nt(e,t),s=r?W1(e,t):qu(e,t,!0),c=r;do{if(s===0){dr&&!r&&Ba(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!F1(a)){s=qu(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){t=b;e:{var S=e;s=yo;var A=S.current.memoizedState.isDehydrated;if(A&&(hr(S,b).flags|=256),b=qu(S,b,!1),b!==2){if(ku&&!A){S.errorRecoveryDisabledLanes|=c,Nl|=c,s=4;break e}c=Gt,Gt=s,c!==null&&(Gt===null?Gt=c:Gt.push.apply(Gt,c))}s=b}if(c=!1,s!==2)continue}}if(s===1){hr(e,0),Ba(e,t,0,!0);break}e:{switch(r=e,c=s,c){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Ba(r,t,en,!ka);break e;case 2:Gt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(s=zi+300-st(),10<s)){if(Ba(r,t,en,!ka),Ne(r,0,!0)!==0)break e;fa=t,r.timeoutHandle=ag(Rp.bind(null,r,a,Gt,Ui,Lu,t,en,Nl,fr,ka,c,"Throttled",-0,0),s);break e}Rp(r,a,Gt,Ui,Lu,t,en,Nl,fr,ka,c,null,-0,0)}}break}while(!0);zn(e)}function Rp(e,t,a,r,s,c,b,S,A,U,Q,P,H,Y){if(e.timeoutHandle=-1,P=t.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Fn},bp(t,c,P);var me=(c&62914560)===c?zi-st():(c&4194048)===c?Ep-st():0;if(me=zS(P,me),me!==null){fa=c,e.cancelPendingCommit=me(zp.bind(null,e,t,c,a,r,s,b,S,A,Q,P,null,H,Y)),Ba(e,c,b,!U);return}}zp(e,t,c,a,r,s,b,S,A)}function F1(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var s=a[r],c=s.getSnapshot;s=s.value;try{if(!Pt(c(),s))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ba(e,t,a,r){t&=~zu,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var s=t;0<s;){var c=31-At(s),b=1<<c;r[c]=-1,s&=~b}a!==0&&il(e,a,t)}function Bi(){return(qe&6)===0?(xo(0),!1):!0}function Vu(){if(je!==null){if(Ge===0)var e=je.return;else e=je,ta=pl=null,nu(e),lr=null,to=0,e=je;for(;e!==null;)lp(e.alternate,e),e=e.return;je=null}}function hr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,vS(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),fa=0,Vu(),Pe=e,je=a=Wn(e.current,null),De=t,Ge=0,Wt=null,ka=!1,dr=nt(e,t),ku=!1,fr=en=zu=Nl=za=it=0,Gt=yo=null,Lu=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var s=31-At(r),c=1<<s;t|=e[s],r&=~c}return da=t,ri(),a}function Ap(e,t){Re=null,M.H=co,t===ar||t===mi?(t=Gm(),Ge=3):t===Gc?(t=Gm(),Ge=4):Ge=t===yu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Wt=t,je===null&&(it=1,Ri(e,un(t,e.current)))}function _p(){var e=Ft.current;return e===null?!0:(De&4194048)===De?hn===null:(De&62914560)===De||(De&536870912)!==0?e===hn:!1}function jp(){var e=M.H;return M.H=co,e===null?co:e}function Op(){var e=M.A;return M.A=P1,e}function Hi(){it=4,ka||(De&4194048)!==De&&Ft.current!==null||(dr=!0),(za&134217727)===0&&(Nl&134217727)===0||Pe===null||Ba(Pe,De,en,!1)}function qu(e,t,a){var r=qe;qe|=2;var s=jp(),c=Op();(Pe!==e||De!==t)&&(Ui=null,hr(e,t)),t=!1;var b=it;e:do try{if(Ge!==0&&je!==null){var S=je,A=Wt;switch(Ge){case 8:Vu(),b=6;break e;case 3:case 2:case 9:case 6:Ft.current===null&&(t=!0);var U=Ge;if(Ge=0,Wt=null,pr(e,S,A,U),a&&dr){b=0;break e}break;default:U=Ge,Ge=0,Wt=null,pr(e,S,A,U)}}J1(),b=it;break}catch(Q){Ap(e,Q)}while(!0);return t&&e.shellSuspendCounter++,ta=pl=null,qe=r,M.H=s,M.A=c,je===null&&(Pe=null,De=0,ri()),b}function J1(){for(;je!==null;)Mp(je)}function W1(e,t){var a=qe;qe|=2;var r=jp(),s=Op();Pe!==e||De!==t?(Ui=null,Li=st()+500,hr(e,t)):dr=nt(e,t);e:do try{if(Ge!==0&&je!==null){t=je;var c=Wt;t:switch(Ge){case 1:Ge=0,Wt=null,pr(e,t,c,1);break;case 2:case 9:if(Ym(c)){Ge=0,Wt=null,Dp(t);break}t=function(){Ge!==2&&Ge!==9||Pe!==e||(Ge=7),zn(e)},c.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:Ym(c)?(Ge=0,Wt=null,Dp(t)):(Ge=0,Wt=null,pr(e,t,c,7));break;case 5:var b=null;switch(je.tag){case 26:b=je.memoizedState;case 5:case 27:var S=je;if(b?yg(b):S.stateNode.complete){Ge=0,Wt=null;var A=S.sibling;if(A!==null)je=A;else{var U=S.return;U!==null?(je=U,Vi(U)):je=null}break t}}Ge=0,Wt=null,pr(e,t,c,5);break;case 6:Ge=0,Wt=null,pr(e,t,c,6);break;case 8:Vu(),it=6;break e;default:throw Error(i(462))}}eS();break}catch(Q){Ap(e,Q)}while(!0);return ta=pl=null,M.H=r,M.A=s,qe=a,je!==null?0:(Pe=null,De=0,ri(),it)}function eS(){for(;je!==null&&!dt();)Mp(je)}function Mp(e){var t=np(e.alternate,e,da);e.memoizedProps=e.pendingProps,t===null?Vi(e):je=t}function Dp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Ih(a,t,t.pendingProps,t.type,void 0,De);break;case 11:t=Ih(a,t,t.pendingProps,t.type.render,t.ref,De);break;case 5:nu(t);default:lp(a,t),t=je=Om(t,da),t=np(a,t,da)}e.memoizedProps=e.pendingProps,t===null?Vi(e):je=t}function pr(e,t,a,r){ta=pl=null,nu(t),lr=null,to=0;var s=t.return;try{if(Y1(e,s,t,a,De)){it=1,Ri(e,un(a,e.current)),je=null;return}}catch(c){if(s!==null)throw je=s,c;it=1,Ri(e,un(a,e.current)),je=null;return}t.flags&32768?(ze||r===1?e=!0:dr||(De&536870912)!==0?e=!1:(ka=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ft.current,r!==null&&r.tag===13&&(r.flags|=16384))),kp(t,e)):Vi(t)}function Vi(e){var t=e;do{if((t.flags&32768)!==0){kp(t,ka);return}e=t.return;var a=X1(t.alternate,t,da);if(a!==null){je=a;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);it===0&&(it=5)}function kp(e,t){do{var a=Q1(e.alternate,e);if(a!==null){a.flags&=32767,je=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=a}while(e!==null);it=6,je=null}function zp(e,t,a,r,s,c,b,S,A){e.cancelPendingCommit=null;do qi();while(gt!==0);if((qe&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(c=t.lanes|t.childLanes,c|=_c,Lt(e,a,c,b,S,A),e===Pe&&(je=Pe=null,De=0),mr=t,Ua=e,fa=a,Uu=c,Bu=s,Np=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,lS(ll,function(){return Vp(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=M.T,M.T=null,s=G.p,G.p=2,b=qe,qe|=4;try{K1(e,t,a)}finally{qe=b,G.p=s,M.T=r}}gt=1,Lp(),Up(),Bp()}}function Lp(){if(gt===1){gt=0;var e=Ua,t=mr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var r=G.p;G.p=2;var s=qe;qe|=4;try{gp(t,e);var c=Wu,b=wm(e.containerInfo),S=c.focusedElem,A=c.selectionRange;if(b!==S&&S&&S.ownerDocument&&Sm(S.ownerDocument.documentElement,S)){if(A!==null&&Nc(S)){var U=A.start,Q=A.end;if(Q===void 0&&(Q=U),"selectionStart"in S)S.selectionStart=U,S.selectionEnd=Math.min(Q,S.value.length);else{var P=S.ownerDocument||document,H=P&&P.defaultView||window;if(H.getSelection){var Y=H.getSelection(),me=S.textContent.length,xe=Math.min(A.start,me),Ze=A.end===void 0?xe:Math.min(A.end,me);!Y.extend&&xe>Ze&&(b=Ze,Ze=xe,xe=b);var z=xm(S,xe),D=xm(S,Ze);if(z&&D&&(Y.rangeCount!==1||Y.anchorNode!==z.node||Y.anchorOffset!==z.offset||Y.focusNode!==D.node||Y.focusOffset!==D.offset)){var L=P.createRange();L.setStart(z.node,z.offset),Y.removeAllRanges(),xe>Ze?(Y.addRange(L),Y.extend(D.node,D.offset)):(L.setEnd(D.node,D.offset),Y.addRange(L))}}}}for(P=[],Y=S;Y=Y.parentNode;)Y.nodeType===1&&P.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<P.length;S++){var Z=P[S];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Wi=!!Ju,Wu=Ju=null}finally{qe=s,G.p=r,M.T=a}}e.current=t,gt=2}}function Up(){if(gt===2){gt=0;var e=Ua,t=mr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var r=G.p;G.p=2;var s=qe;qe|=4;try{dp(e,t.alternate,t)}finally{qe=s,G.p=r,M.T=a}}gt=3}}function Bp(){if(gt===4||gt===3){gt=0,Ie();var e=Ua,t=mr,a=fa,r=Np;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?gt=5:(gt=0,mr=Ua=null,Hp(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(La=null),Sn(a),t=t.stateNode,Dt&&typeof Dt.onCommitFiberRoot=="function")try{Dt.onCommitFiberRoot(rl,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=M.T,s=G.p,G.p=2,M.T=null;try{for(var c=e.onRecoverableError,b=0;b<r.length;b++){var S=r[b];c(S.value,{componentStack:S.stack})}}finally{M.T=t,G.p=s}}(fa&3)!==0&&qi(),zn(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===Hu?bo++:(bo=0,Hu=e):bo=0,xo(0)}}function Hp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Wr(t)))}function qi(){return Lp(),Up(),Bp(),Vp()}function Vp(){if(gt!==5)return!1;var e=Ua,t=Uu;Uu=0;var a=Sn(fa),r=M.T,s=G.p;try{G.p=32>a?32:a,M.T=null,a=Bu,Bu=null;var c=Ua,b=fa;if(gt=0,mr=Ua=null,fa=0,(qe&6)!==0)throw Error(i(331));var S=qe;if(qe|=4,Sp(c.current),yp(c,c.current,b,a),qe=S,xo(0,!1),Dt&&typeof Dt.onPostCommitFiberRoot=="function")try{Dt.onPostCommitFiberRoot(rl,c)}catch{}return!0}finally{G.p=s,M.T=r,Hp(e,t)}}function qp(e,t,a){t=un(a,t),t=vu(e.stateNode,t,2),e=ja(e,t,2),e!==null&&(rt(e,2),zn(e))}function Xe(e,t,a){if(e.tag===3)qp(e,e,a);else for(;t!==null;){if(t.tag===3){qp(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(La===null||!La.has(r))){e=un(a,e),a=Yh(2),r=ja(t,a,2),r!==null&&($h(a,r,t,e),rt(r,2),zn(r));break}}t=t.return}}function Yu(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new I1;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(a)||(ku=!0,s.add(a),e=tS.bind(null,e,t,a),t.then(e,e))}function tS(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Pe===e&&(De&a)===a&&(it===4||it===3&&(De&62914560)===De&&300>st()-zi?(qe&2)===0&&hr(e,0):zu|=a,fr===De&&(fr=0)),zn(e)}function Yp(e,t){t===0&&(t=_t()),e=fl(e,t),e!==null&&(rt(e,t),zn(e))}function nS(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Yp(e,a)}function aS(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Yp(e,a)}function lS(e,t){return rn(e,t)}var Yi=null,gr=null,$u=!1,$i=!1,Gu=!1,Ha=0;function zn(e){e!==gr&&e.next===null&&(gr===null?Yi=gr=e:gr=gr.next=e),$i=!0,$u||($u=!0,oS())}function xo(e,t){if(!Gu&&$i){Gu=!0;do for(var a=!1,r=Yi;r!==null;){if(e!==0){var s=r.pendingLanes;if(s===0)var c=0;else{var b=r.suspendedLanes,S=r.pingedLanes;c=(1<<31-At(42|e)+1)-1,c&=s&~(b&~S),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Qp(r,c))}else c=De,c=Ne(r,r===Pe?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(c&3)===0||nt(r,c)||(a=!0,Qp(r,c));r=r.next}while(a);Gu=!1}}function rS(){$p()}function $p(){$i=$u=!1;var e=0;Ha!==0&&gS()&&(e=Ha);for(var t=st(),a=null,r=Yi;r!==null;){var s=r.next,c=Gp(r,t);c===0?(r.next=null,a===null?Yi=s:a.next=s,s===null&&(gr=a)):(a=r,(e!==0||(c&3)!==0)&&($i=!0)),r=s}gt!==0&>!==5||xo(e),Ha!==0&&(Ha=0)}function Gp(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var b=31-At(c),S=1<<b,A=s[b];A===-1?((S&a)===0||(S&r)!==0)&&(s[b]=bt(S,t)):A<=t&&(e.expiredLanes|=S),c&=~S}if(t=Pe,a=De,a=Ne(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Kt(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||nt(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&Kt(r),Sn(a)){case 2:case 8:a=Qo;break;case 32:a=ll;break;case 268435456:a=Pn;break;default:a=ll}return r=Xp.bind(null,e),a=rn(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&Kt(r),e.callbackPriority=2,e.callbackNode=null,2}function Xp(e,t){if(gt!==0&>!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(qi()&&e.callbackNode!==a)return null;var r=De;return r=Ne(e,e===Pe?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Tp(e,r,t),Gp(e,st()),e.callbackNode!=null&&e.callbackNode===a?Xp.bind(null,e):null)}function Qp(e,t){if(qi())return null;Tp(e,t,!0)}function oS(){yS(function(){(qe&6)!==0?rn(Zt,rS):$p()})}function Xu(){if(Ha===0){var e=tr;e===0&&(e=kl,kl<<=1,(kl&261888)===0&&(kl=256)),Ha=e}return Ha}function Kp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Fo(""+e)}function Zp(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function iS(e,t,a,r,s){if(t==="submit"&&a&&a.stateNode===s){var c=Kp((s[Ht]||null).action),b=r.submitter;b&&(t=(t=b[Ht]||null)?Kp(t.formAction):b.getAttribute("formAction"),t!==null&&(c=t,b=null));var S=new ti("action","action",null,r,s);e.push({event:S,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ha!==0){var A=b?Zp(s,b):new FormData(s);du(a,{pending:!0,data:A,method:s.method,action:c},null,A)}}else typeof c=="function"&&(S.preventDefault(),A=b?Zp(s,b):new FormData(s),du(a,{pending:!0,data:A,method:s.method,action:c},c,A))},currentTarget:s}]})}}for(var Qu=0;Qu<Ac.length;Qu++){var Ku=Ac[Qu],sS=Ku.toLowerCase(),cS=Ku[0].toUpperCase()+Ku.slice(1);wn(sS,"on"+cS)}wn(Cm,"onAnimationEnd"),wn(Tm,"onAnimationIteration"),wn(Rm,"onAnimationStart"),wn("dblclick","onDoubleClick"),wn("focusin","onFocus"),wn("focusout","onBlur"),wn(C1,"onTransitionRun"),wn(T1,"onTransitionStart"),wn(R1,"onTransitionCancel"),wn(Am,"onTransitionEnd"),ql("onMouseEnter",["mouseout","mouseover"]),ql("onMouseLeave",["mouseout","mouseover"]),ql("onPointerEnter",["pointerout","pointerover"]),ql("onPointerLeave",["pointerout","pointerover"]),sl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sl("onBeforeInput",["compositionend","keypress","textInput","paste"]),sl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var So="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(" "),uS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(So));function Pp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],s=r.event;r=r.listeners;e:{var c=void 0;if(t)for(var b=r.length-1;0<=b;b--){var S=r[b],A=S.instance,U=S.currentTarget;if(S=S.listener,A!==c&&s.isPropagationStopped())break e;c=S,s.currentTarget=U;try{c(s)}catch(Q){li(Q)}s.currentTarget=null,c=A}else for(b=0;b<r.length;b++){if(S=r[b],A=S.instance,U=S.currentTarget,S=S.listener,A!==c&&s.isPropagationStopped())break e;c=S,s.currentTarget=U;try{c(s)}catch(Q){li(Q)}s.currentTarget=null,c=A}}}}function Oe(e,t){var a=t[oc];a===void 0&&(a=t[oc]=new Set);var r=e+"__bubble";a.has(r)||(Ip(t,e,2,!1),a.add(r))}function Zu(e,t,a){var r=0;t&&(r|=4),Ip(a,e,r,t)}var Gi="_reactListening"+Math.random().toString(36).slice(2);function Pu(e){if(!e[Gi]){e[Gi]=!0,$f.forEach(function(a){a!=="selectionchange"&&(uS.has(a)||Zu(a,!1,e),Zu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gi]||(t[Gi]=!0,Zu("selectionchange",!1,t))}}function Ip(e,t,a,r){switch(Cg(t)){case 2:var s=BS;break;case 8:s=HS;break;default:s=ud}a=s.bind(null,t,a,e),s=void 0,!pc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function Iu(e,t,a,r,s){var c=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var b=r.tag;if(b===3||b===4){var S=r.stateNode.containerInfo;if(S===s)break;if(b===4)for(b=r.return;b!==null;){var A=b.tag;if((A===3||A===4)&&b.stateNode.containerInfo===s)return;b=b.return}for(;S!==null;){if(b=Bl(S),b===null)return;if(A=b.tag,A===5||A===6||A===26||A===27){r=c=b;continue e}S=S.parentNode}}r=r.return}tm(function(){var U=c,Q=mc(a),P=[];e:{var H=_m.get(e);if(H!==void 0){var Y=ti,me=e;switch(e){case"keypress":if(Wo(a)===0)break e;case"keydown":case"keyup":Y=a1;break;case"focusin":me="focus",Y=bc;break;case"focusout":me="blur",Y=bc;break;case"beforeblur":case"afterblur":Y=bc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=lm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=Xx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=o1;break;case Cm:case Tm:case Rm:Y=Zx;break;case Am:Y=s1;break;case"scroll":case"scrollend":Y=$x;break;case"wheel":Y=u1;break;case"copy":case"cut":case"paste":Y=Ix;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=om;break;case"toggle":case"beforetoggle":Y=f1}var xe=(t&4)!==0,Ze=!xe&&(e==="scroll"||e==="scrollend"),z=xe?H!==null?H+"Capture":null:H;xe=[];for(var D=U,L;D!==null;){var Z=D;if(L=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||L===null||z===null||(Z=Yr(D,z),Z!=null&&xe.push(wo(D,Z,L))),Ze)break;D=D.return}0<xe.length&&(H=new Y(H,me,null,a,Q),P.push({event:H,listeners:xe}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",H&&a!==fc&&(me=a.relatedTarget||a.fromElement)&&(Bl(me)||me[Ul]))break e;if((Y||H)&&(H=Q.window===Q?Q:(H=Q.ownerDocument)?H.defaultView||H.parentWindow:window,Y?(me=a.relatedTarget||a.toElement,Y=U,me=me?Bl(me):null,me!==null&&(Ze=d(me),xe=me.tag,me!==Ze||xe!==5&&xe!==27&&xe!==6)&&(me=null)):(Y=null,me=U),Y!==me)){if(xe=lm,Z="onMouseLeave",z="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(xe=om,Z="onPointerLeave",z="onPointerEnter",D="pointer"),Ze=Y==null?H:qr(Y),L=me==null?H:qr(me),H=new xe(Z,D+"leave",Y,a,Q),H.target=Ze,H.relatedTarget=L,Z=null,Bl(Q)===U&&(xe=new xe(z,D+"enter",me,a,Q),xe.target=L,xe.relatedTarget=Ze,Z=xe),Ze=Z,Y&&me)t:{for(xe=dS,z=Y,D=me,L=0,Z=z;Z;Z=xe(Z))L++;Z=0;for(var be=D;be;be=xe(be))Z++;for(;0<L-Z;)z=xe(z),L--;for(;0<Z-L;)D=xe(D),Z--;for(;L--;){if(z===D||D!==null&&z===D.alternate){xe=z;break t}z=xe(z),D=xe(D)}xe=null}else xe=null;Y!==null&&Fp(P,H,Y,xe,!1),me!==null&&Ze!==null&&Fp(P,Ze,me,xe,!0)}}e:{if(H=U?qr(U):window,Y=H.nodeName&&H.nodeName.toLowerCase(),Y==="select"||Y==="input"&&H.type==="file")var He=hm;else if(fm(H))if(pm)He=w1;else{He=x1;var ge=b1}else Y=H.nodeName,!Y||Y.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?U&&dc(U.elementType)&&(He=hm):He=S1;if(He&&(He=He(e,U))){mm(P,He,a,Q);break e}ge&&ge(e,H,U),e==="focusout"&&U&&H.type==="number"&&U.memoizedProps.value!=null&&uc(H,"number",H.value)}switch(ge=U?qr(U):window,e){case"focusin":(fm(ge)||ge.contentEditable==="true")&&(Kl=ge,Cc=U,Ir=null);break;case"focusout":Ir=Cc=Kl=null;break;case"mousedown":Tc=!0;break;case"contextmenu":case"mouseup":case"dragend":Tc=!1,Em(P,a,Q);break;case"selectionchange":if(N1)break;case"keydown":case"keyup":Em(P,a,Q)}var Ae;if(Sc)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else Ql?um(e,a)&&(ke="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ke="onCompositionStart");ke&&(im&&a.locale!=="ko"&&(Ql||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&Ql&&(Ae=nm()):(Ea=Q,gc="value"in Ea?Ea.value:Ea.textContent,Ql=!0)),ge=Xi(U,ke),0<ge.length&&(ke=new rm(ke,e,null,a,Q),P.push({event:ke,listeners:ge}),Ae?ke.data=Ae:(Ae=dm(a),Ae!==null&&(ke.data=Ae)))),(Ae=h1?p1(e,a):g1(e,a))&&(ke=Xi(U,"onBeforeInput"),0<ke.length&&(ge=new rm("onBeforeInput","beforeinput",null,a,Q),P.push({event:ge,listeners:ke}),ge.data=Ae)),iS(P,e,U,a,Q)}Pp(P,t)})}function wo(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Xi(e,t){for(var a=t+"Capture",r=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=Yr(e,a),s!=null&&r.unshift(wo(e,s,c)),s=Yr(e,t),s!=null&&r.push(wo(e,s,c))),e.tag===3)return r;e=e.return}return[]}function dS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Fp(e,t,a,r,s){for(var c=t._reactName,b=[];a!==null&&a!==r;){var S=a,A=S.alternate,U=S.stateNode;if(S=S.tag,A!==null&&A===r)break;S!==5&&S!==26&&S!==27||U===null||(A=U,s?(U=Yr(a,c),U!=null&&b.unshift(wo(a,U,A))):s||(U=Yr(a,c),U!=null&&b.push(wo(a,U,A)))),a=a.return}b.length!==0&&e.push({event:t,listeners:b})}var fS=/\r\n?/g,mS=/\u0000|\uFFFD/g;function Jp(e){return(typeof e=="string"?e:""+e).replace(fS,`
|
|
50
|
-
`).replace(mS,"")}function Wp(e,t){return t=Jp(t),Jp(e)===t}function Ke(e,t,a,r,s,c){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||$l(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&$l(e,""+r);break;case"className":Po(e,"class",r);break;case"tabIndex":Po(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Po(e,a,r);break;case"style":Wf(e,r,c);break;case"data":if(t!=="object"){Po(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Fo(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&Ke(e,t,"name",s.name,s,null),Ke(e,t,"formEncType",s.formEncType,s,null),Ke(e,t,"formMethod",s.formMethod,s,null),Ke(e,t,"formTarget",s.formTarget,s,null)):(Ke(e,t,"encType",s.encType,s,null),Ke(e,t,"method",s.method,s,null),Ke(e,t,"target",s.target,s,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Fo(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=Fn);break;case"onScroll":r!=null&&Oe("scroll",e);break;case"onScrollEnd":r!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(i(61));if(a=r.__html,a!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=Fo(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),Zo(e,"popover",r);break;case"xlinkActuate":In(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":In(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":In(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":In(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":In(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":In(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":In(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":In(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":In(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Zo(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=qx.get(a)||a,Zo(e,a,r))}}function Fu(e,t,a,r,s,c){switch(a){case"style":Wf(e,r,c);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(i(61));if(a=r.__html,a!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof r=="string"?$l(e,r):(typeof r=="number"||typeof r=="bigint")&&$l(e,""+r);break;case"onScroll":r!=null&&Oe("scroll",e);break;case"onScrollEnd":r!=null&&Oe("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Fn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),c=e[Ht]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof r=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,s);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):Zo(e,a,r)}}}function Rt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var r=!1,s=!1,c;for(c in a)if(a.hasOwnProperty(c)){var b=a[c];if(b!=null)switch(c){case"src":r=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ke(e,t,c,b,a,null)}}s&&Ke(e,t,"srcSet",a.srcSet,a,null),r&&Ke(e,t,"src",a.src,a,null);return;case"input":Oe("invalid",e);var S=c=b=s=null,A=null,U=null;for(r in a)if(a.hasOwnProperty(r)){var Q=a[r];if(Q!=null)switch(r){case"name":s=Q;break;case"type":b=Q;break;case"checked":A=Q;break;case"defaultChecked":U=Q;break;case"value":c=Q;break;case"defaultValue":S=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,t));break;default:Ke(e,t,r,Q,a,null)}}Pf(e,c,S,A,U,b,s,!1);return;case"select":Oe("invalid",e),r=b=c=null;for(s in a)if(a.hasOwnProperty(s)&&(S=a[s],S!=null))switch(s){case"value":c=S;break;case"defaultValue":b=S;break;case"multiple":r=S;default:Ke(e,t,s,S,a,null)}t=c,a=b,e.multiple=!!r,t!=null?Yl(e,!!r,t,!1):a!=null&&Yl(e,!!r,a,!0);return;case"textarea":Oe("invalid",e),c=s=r=null;for(b in a)if(a.hasOwnProperty(b)&&(S=a[b],S!=null))switch(b){case"value":r=S;break;case"defaultValue":s=S;break;case"children":c=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(i(91));break;default:Ke(e,t,b,S,a,null)}Ff(e,r,s,c);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(r=a[A],r!=null))switch(A){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Ke(e,t,A,r,a,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(r=0;r<So.length;r++)Oe(So[r],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in a)if(a.hasOwnProperty(U)&&(r=a[U],r!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ke(e,t,U,r,a,null)}return;default:if(dc(t)){for(Q in a)a.hasOwnProperty(Q)&&(r=a[Q],r!==void 0&&Fu(e,t,Q,r,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(r=a[S],r!=null&&Ke(e,t,S,r,a,null))}function hS(e,t,a,r){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,b=null,S=null,A=null,U=null,Q=null;for(Y in a){var P=a[Y];if(a.hasOwnProperty(Y)&&P!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":A=P;default:r.hasOwnProperty(Y)||Ke(e,t,Y,null,r,P)}}for(var H in r){var Y=r[H];if(P=a[H],r.hasOwnProperty(H)&&(Y!=null||P!=null))switch(H){case"type":c=Y;break;case"name":s=Y;break;case"checked":U=Y;break;case"defaultChecked":Q=Y;break;case"value":b=Y;break;case"defaultValue":S=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:Y!==P&&Ke(e,t,H,Y,r,P)}}cc(e,b,S,A,U,Q,c,s);return;case"select":Y=b=S=H=null;for(c in a)if(A=a[c],a.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":Y=A;default:r.hasOwnProperty(c)||Ke(e,t,c,null,r,A)}for(s in r)if(c=r[s],A=a[s],r.hasOwnProperty(s)&&(c!=null||A!=null))switch(s){case"value":H=c;break;case"defaultValue":S=c;break;case"multiple":b=c;default:c!==A&&Ke(e,t,s,c,r,A)}t=S,a=b,r=Y,H!=null?Yl(e,!!a,H,!1):!!r!=!!a&&(t!=null?Yl(e,!!a,t,!0):Yl(e,!!a,a?[]:"",!1));return;case"textarea":Y=H=null;for(S in a)if(s=a[S],a.hasOwnProperty(S)&&s!=null&&!r.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ke(e,t,S,null,r,s)}for(b in r)if(s=r[b],c=a[b],r.hasOwnProperty(b)&&(s!=null||c!=null))switch(b){case"value":H=s;break;case"defaultValue":Y=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(i(91));break;default:s!==c&&Ke(e,t,b,s,r,c)}If(e,H,Y);return;case"option":for(var me in a)if(H=a[me],a.hasOwnProperty(me)&&H!=null&&!r.hasOwnProperty(me))switch(me){case"selected":e.selected=!1;break;default:Ke(e,t,me,null,r,H)}for(A in r)if(H=r[A],Y=a[A],r.hasOwnProperty(A)&&H!==Y&&(H!=null||Y!=null))switch(A){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Ke(e,t,A,H,r,Y)}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 xe in a)H=a[xe],a.hasOwnProperty(xe)&&H!=null&&!r.hasOwnProperty(xe)&&Ke(e,t,xe,null,r,H);for(U in r)if(H=r[U],Y=a[U],r.hasOwnProperty(U)&&H!==Y&&(H!=null||Y!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(i(137,t));break;default:Ke(e,t,U,H,r,Y)}return;default:if(dc(t)){for(var Ze in a)H=a[Ze],a.hasOwnProperty(Ze)&&H!==void 0&&!r.hasOwnProperty(Ze)&&Fu(e,t,Ze,void 0,r,H);for(Q in r)H=r[Q],Y=a[Q],!r.hasOwnProperty(Q)||H===Y||H===void 0&&Y===void 0||Fu(e,t,Q,H,r,Y);return}}for(var z in a)H=a[z],a.hasOwnProperty(z)&&H!=null&&!r.hasOwnProperty(z)&&Ke(e,t,z,null,r,H);for(P in r)H=r[P],Y=a[P],!r.hasOwnProperty(P)||H===Y||H==null&&Y==null||Ke(e,t,P,H,r,Y)}function eg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var s=a[r],c=s.transferSize,b=s.initiatorType,S=s.duration;if(c&&S&&eg(b)){for(b=0,S=s.responseEnd,r+=1;r<a.length;r++){var A=a[r],U=A.startTime;if(U>S)break;var Q=A.transferSize,P=A.initiatorType;Q&&eg(P)&&(A=A.responseEnd,b+=Q*(A<S?1:(S-U)/(A-U)))}if(--r,t+=8*(c+b)/(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 Ju=null,Wu=null;function Qi(e){return e.nodeType===9?e:e.ownerDocument}function tg(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 ng(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 ed(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 td=null;function gS(){var e=window.event;return e&&e.type==="popstate"?e===td?!1:(td=e,!0):(td=null,!1)}var ag=typeof setTimeout=="function"?setTimeout:void 0,vS=typeof clearTimeout=="function"?clearTimeout:void 0,lg=typeof Promise=="function"?Promise:void 0,yS=typeof queueMicrotask=="function"?queueMicrotask:typeof lg<"u"?function(e){return lg.resolve(null).then(e).catch(bS)}:ag;function bS(e){setTimeout(function(){throw e})}function Va(e){return e==="head"}function rg(e,t){var a=t,r=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(s),xr(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")Eo(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Eo(a);for(var c=a.firstChild;c;){var b=c.nextSibling,S=c.nodeName;c[Vr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=b}}else a==="body"&&Eo(e.ownerDocument.body);a=s}while(a);xr(t)}function og(e,t){var a=e;e=0;do{var r=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function nd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":nd(a),ic(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function xS(e,t,a,r){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Vr])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=pn(e.nextSibling),e===null)break}return null}function SS(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=pn(e.nextSibling),e===null))return null;return e}function ig(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=pn(e.nextSibling),e===null))return null;return e}function ad(e){return e.data==="$?"||e.data==="$~"}function ld(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function wS(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function pn(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 rd=null;function sg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return pn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function cg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function ug(e,t,a){switch(t=Qi(a),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Eo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ic(e)}var gn=new Map,dg=new Set;function Ki(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ma=G.d;G.d={f:ES,r:NS,D:CS,C:TS,L:RS,m:AS,X:jS,S:_S,M:OS};function ES(){var e=ma.f(),t=Bi();return e||t}function NS(e){var t=Hl(e);t!==null&&t.tag===5&&t.type==="form"?Ah(t):ma.r(e)}var vr=typeof document>"u"?null:document;function fg(e,t,a){var r=vr;if(r&&typeof t=="string"&&t){var s=sn(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),dg.has(s)||(dg.add(s),e={rel:e,crossOrigin:a,href:t},r.querySelector(s)===null&&(t=r.createElement("link"),Rt(t,"link",e),xt(t),r.head.appendChild(t)))}}function CS(e){ma.D(e),fg("dns-prefetch",e,null)}function TS(e,t){ma.C(e,t),fg("preconnect",e,t)}function RS(e,t,a){ma.L(e,t,a);var r=vr;if(r&&e&&t){var s='link[rel="preload"][as="'+sn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+sn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+sn(a.imageSizes)+'"]')):s+='[href="'+sn(e)+'"]';var c=s;switch(t){case"style":c=yr(e);break;case"script":c=br(e)}gn.has(c)||(e=p({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),gn.set(c,e),r.querySelector(s)!==null||t==="style"&&r.querySelector(No(c))||t==="script"&&r.querySelector(Co(c))||(t=r.createElement("link"),Rt(t,"link",e),xt(t),r.head.appendChild(t)))}}function AS(e,t){ma.m(e,t);var a=vr;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+sn(r)+'"][href="'+sn(e)+'"]',c=s;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=br(e)}if(!gn.has(c)&&(e=p({rel:"modulepreload",href:e},t),gn.set(c,e),a.querySelector(s)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Co(c)))return}r=a.createElement("link"),Rt(r,"link",e),xt(r),a.head.appendChild(r)}}}function _S(e,t,a){ma.S(e,t,a);var r=vr;if(r&&e){var s=Vl(r).hoistableStyles,c=yr(e);t=t||"default";var b=s.get(c);if(!b){var S={loading:0,preload:null};if(b=r.querySelector(No(c)))S.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},a),(a=gn.get(c))&&od(e,a);var A=b=r.createElement("link");xt(A),Rt(A,"link",e),A._p=new Promise(function(U,Q){A.onload=U,A.onerror=Q}),A.addEventListener("load",function(){S.loading|=1}),A.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Zi(b,t,r)}b={type:"stylesheet",instance:b,count:1,state:S},s.set(c,b)}}}function jS(e,t){ma.X(e,t);var a=vr;if(a&&e){var r=Vl(a).hoistableScripts,s=br(e),c=r.get(s);c||(c=a.querySelector(Co(s)),c||(e=p({src:e,async:!0},t),(t=gn.get(s))&&id(e,t),c=a.createElement("script"),xt(c),Rt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(s,c))}}function OS(e,t){ma.M(e,t);var a=vr;if(a&&e){var r=Vl(a).hoistableScripts,s=br(e),c=r.get(s);c||(c=a.querySelector(Co(s)),c||(e=p({src:e,async:!0,type:"module"},t),(t=gn.get(s))&&id(e,t),c=a.createElement("script"),xt(c),Rt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(s,c))}}function mg(e,t,a,r){var s=(s=ae.current)?Ki(s):null;if(!s)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=yr(a.href),a=Vl(s).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=yr(a.href);var c=Vl(s).hoistableStyles,b=c.get(e);if(b||(s=s.ownerDocument||s,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,b),(c=s.querySelector(No(e)))&&!c._p&&(b.instance=c,b.state.loading=5),gn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},gn.set(e,a),c||MS(s,e,a,b.state))),t&&r===null)throw Error(i(528,""));return b}if(t&&r!==null)throw Error(i(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=br(a),a=Vl(s).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function yr(e){return'href="'+sn(e)+'"'}function No(e){return'link[rel="stylesheet"]['+e+"]"}function hg(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function MS(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Rt(t,"link",a),xt(t),e.head.appendChild(t))}function br(e){return'[src="'+sn(e)+'"]'}function Co(e){return"script[async]"+e}function pg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+sn(a.href)+'"]');if(r)return t.instance=r,xt(r),r;var s=p({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),xt(r),Rt(r,"style",s),Zi(r,a.precedence,e),t.instance=r;case"stylesheet":s=yr(a.href);var c=e.querySelector(No(s));if(c)return t.state.loading|=4,t.instance=c,xt(c),c;r=hg(a),(s=gn.get(s))&&od(r,s),c=(e.ownerDocument||e).createElement("link"),xt(c);var b=c;return b._p=new Promise(function(S,A){b.onload=S,b.onerror=A}),Rt(c,"link",r),t.state.loading|=4,Zi(c,a.precedence,e),t.instance=c;case"script":return c=br(a.src),(s=e.querySelector(Co(c)))?(t.instance=s,xt(s),s):(r=a,(s=gn.get(c))&&(r=p({},a),id(r,s)),e=e.ownerDocument||e,s=e.createElement("script"),xt(s),Rt(s,"link",r),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&&(r=t.instance,t.state.loading|=4,Zi(r,a.precedence,e));return t.instance}function Zi(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=r.length?r[r.length-1]:null,c=s,b=0;b<r.length;b++){var S=r[b];if(S.dataset.precedence===t)c=S;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function od(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function id(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Pi=null;function gg(e,t,a){if(Pi===null){var r=new Map,s=Pi=new Map;s.set(a,r)}else s=Pi,r=s.get(a),r||(r=new Map,s.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var c=a[s];if(!(c[Vr]||c[Et]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var b=c.getAttribute(t)||"";b=e+b;var S=r.get(b);S?S.push(c):r.set(b,[c])}}return r}function vg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function DS(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function yg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function kS(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=yr(r.href),c=t.querySelector(No(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ii.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,xt(c);return}c=t.ownerDocument||t,r=hg(r),(s=gn.get(s))&&od(r,s),c=c.createElement("link"),xt(c);var b=c;b._p=new Promise(function(S,A){b.onload=S,b.onerror=A}),Rt(c,"link",r),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ii.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var sd=0;function zS(e,t){return e.stylesheets&&e.count===0&&Ji(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&Ji(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&sd===0&&(sd=62500*pS());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ji(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>sd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(s)}}:null}function Ii(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ji(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fi=null;function Ji(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fi=new Map,t.forEach(LS,e),Fi=null,Ii.call(e))}function LS(e,t){if(!(t.state.loading&4)){var a=Fi.get(e);if(a)var r=a.get(null);else{a=new Map,Fi.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var b=s[c];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(a.set(b.dataset.precedence,b),r=b)}r&&a.set(null,r)}s=t.instance,b=s.getAttribute("data-precedence"),c=a.get(b)||r,c===r&&a.set(null,s),a.set(b,s),this.count++,r=Ii.bind(this),s.addEventListener("load",r),s.addEventListener("error",r),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var To={$$typeof:O,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function US(e,t,a,r,s,c,b,S,A){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=Sa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sa(0),this.hiddenUpdates=Sa(null),this.identifierPrefix=r,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function bg(e,t,a,r,s,c,b,S,A,U,Q,P){return e=new US(e,t,a,b,A,U,Q,P,S),t=1,c===!0&&(t|=24),c=It(3,null,null,t),e.current=c,c.stateNode=e,t=qc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:r,isDehydrated:a,cache:t},Xc(c),e}function xg(e){return e?(e=Il,e):Il}function Sg(e,t,a,r,s,c){s=xg(s),r.context===null?r.context=s:r.pendingContext=s,r=_a(t),r.payload={element:a},c=c===void 0?null:c,c!==null&&(r.callback=c),a=ja(e,r,t),a!==null&&(Xt(a,e,t),ao(a,e,t))}function wg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function cd(e,t){wg(e,t),(e=e.alternate)&&wg(e,t)}function Eg(e){if(e.tag===13||e.tag===31){var t=fl(e,67108864);t!==null&&Xt(t,e,67108864),cd(e,67108864)}}function Ng(e){if(e.tag===13||e.tag===31){var t=tn();t=Ll(t);var a=fl(e,t);a!==null&&Xt(a,e,t),cd(e,t)}}var Wi=!0;function BS(e,t,a,r){var s=M.T;M.T=null;var c=G.p;try{G.p=2,ud(e,t,a,r)}finally{G.p=c,M.T=s}}function HS(e,t,a,r){var s=M.T;M.T=null;var c=G.p;try{G.p=8,ud(e,t,a,r)}finally{G.p=c,M.T=s}}function ud(e,t,a,r){if(Wi){var s=dd(r);if(s===null)Iu(e,t,r,es,a),Tg(e,r);else if(qS(s,e,t,a,r))r.stopPropagation();else if(Tg(e,r),t&4&&-1<VS.indexOf(e)){for(;s!==null;){var c=Hl(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var b=On(c.pendingLanes);if(b!==0){var S=c;for(S.pendingLanes|=2,S.entangledLanes|=2;b;){var A=1<<31-At(b);S.entanglements[1]|=A,b&=~A}zn(c),(qe&6)===0&&(Li=st()+500,xo(0))}}break;case 31:case 13:S=fl(c,2),S!==null&&Xt(S,c,2),Bi(),cd(c,2)}if(c=dd(r),c===null&&Iu(e,t,r,es,a),c===s)break;s=c}s!==null&&r.stopPropagation()}else Iu(e,t,r,null,a)}}function dd(e){return e=mc(e),fd(e)}var es=null;function fd(e){if(es=null,e=Bl(e),e!==null){var t=d(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=f(t),e!==null)return e;e=null}else if(a===31){if(e=h(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return es=e,null}function Cg(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(bn()){case Zt:return 2;case Qo:return 8;case ll:case Br:return 32;case Pn:return 268435456;default:return 32}default:return 32}}var md=!1,qa=null,Ya=null,$a=null,Ro=new Map,Ao=new Map,Ga=[],VS="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":qa=null;break;case"dragenter":case"dragleave":Ya=null;break;case"mouseover":case"mouseout":$a=null;break;case"pointerover":case"pointerout":Ro.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ao.delete(t.pointerId)}}function _o(e,t,a,r,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:c,targetContainers:[s]},t!==null&&(t=Hl(t),t!==null&&Eg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function qS(e,t,a,r,s){switch(t){case"focusin":return qa=_o(qa,e,t,a,r,s),!0;case"dragenter":return Ya=_o(Ya,e,t,a,r,s),!0;case"mouseover":return $a=_o($a,e,t,a,r,s),!0;case"pointerover":var c=s.pointerId;return Ro.set(c,_o(Ro.get(c)||null,e,t,a,r,s)),!0;case"gotpointercapture":return c=s.pointerId,Ao.set(c,_o(Ao.get(c)||null,e,t,a,r,s)),!0}return!1}function Rg(e){var t=Bl(e.target);if(t!==null){var a=d(t);if(a!==null){if(t=a.tag,t===13){if(t=f(a),t!==null){e.blockedOn=t,qf(e.priority,function(){Ng(a)});return}}else if(t===31){if(t=h(a),t!==null){e.blockedOn=t,qf(e.priority,function(){Ng(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ts(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=dd(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);fc=r,a.target.dispatchEvent(r),fc=null}else return t=Hl(a),t!==null&&Eg(t),e.blockedOn=a,!1;t.shift()}return!0}function Ag(e,t,a){ts(e)&&a.delete(t)}function YS(){md=!1,qa!==null&&ts(qa)&&(qa=null),Ya!==null&&ts(Ya)&&(Ya=null),$a!==null&&ts($a)&&($a=null),Ro.forEach(Ag),Ao.forEach(Ag)}function ns(e,t){e.blockedOn===t&&(e.blockedOn=null,md||(md=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,YS)))}var as=null;function _g(e){as!==e&&(as=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){as===e&&(as=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],s=e[t+2];if(typeof r!="function"){if(fd(r||a)===null)continue;break}var c=Hl(a);c!==null&&(e.splice(t,3),t-=3,du(c,{pending:!0,data:s,method:a.method,action:r},r,s))}}))}function xr(e){function t(A){return ns(A,e)}qa!==null&&ns(qa,e),Ya!==null&&ns(Ya,e),$a!==null&&ns($a,e),Ro.forEach(t),Ao.forEach(t);for(var a=0;a<Ga.length;a++){var r=Ga[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ga.length&&(a=Ga[0],a.blockedOn===null);)Rg(a),a.blockedOn===null&&Ga.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var s=a[r],c=a[r+1],b=s[Ht]||null;if(typeof c=="function")b||_g(a);else if(b){var S=null;if(c&&c.hasAttribute("formAction")){if(s=c,b=c[Ht]||null)S=b.formAction;else if(fd(s)!==null)continue}else S=b.action;typeof S=="function"?a[r+1]=S:(a.splice(r,3),r-=3),_g(a)}}}function jg(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(b){return s=b})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),r||setTimeout(a,20)}function a(){if(!r&&!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 r=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function hd(e){this._internalRoot=e}ls.prototype.render=hd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,r=tn();Sg(a,r,e,t,null,null)},ls.prototype.unmount=hd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Sg(e.current,2,null,e,null,null),Bi(),t[Ul]=null}};function ls(e){this._internalRoot=e}ls.prototype.unstable_scheduleHydration=function(e){if(e){var t=rc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ga.length&&t!==0&&t<Ga[a].priority;a++);Ga.splice(a,0,e),a===0&&Rg(e)}};var Og=l.version;if(Og!=="19.2.4")throw Error(i(527,Og,"19.2.4"));G.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=g(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var $S={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rs.isDisabled&&rs.supportsFiber)try{rl=rs.inject($S),Dt=rs}catch{}}return Oo.createRoot=function(e,t){if(!u(e))throw Error(i(299));var a=!1,r="",s=Bh,c=Hh,b=Vh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=bg(e,1,!1,null,null,a,r,null,s,c,b,jg),e[Ul]=t.current,Pu(e),new hd(t)},Oo.hydrateRoot=function(e,t,a){if(!u(e))throw Error(i(299));var r=!1,s="",c=Bh,b=Hh,S=Vh,A=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(A=a.formState)),t=bg(e,1,!0,t,a??null,r,s,A,c,b,S,jg),t.context=xg(null),a=t.current,r=tn(),r=Ll(r),s=_a(r),s.callback=null,ja(a,s,r),a=r,t.current.lanes=a,rt(t,a),zn(t),e[Ul]=t.current,Pu(e),new ls(t)},Oo.version="19.2.4",Oo}var qg;function WS(){if(qg)return vd.exports;qg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),vd.exports=JS(),vd.exports}var e2=WS();const t2="modulepreload",n2=function(n){return"/"+n},Yg={},Vv=function(l,o,i){let u=Promise.resolve();if(o&&o.length>0){let f=function(g){return Promise.all(g.map(x=>Promise.resolve(x).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),y=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));u=f(o.map(g=>{if(g=n2(g),g in Yg)return;Yg[g]=!0;const x=g.endsWith(".css"),p=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${p}`))return;const w=document.createElement("link");if(w.rel=x?"stylesheet":t2,x||(w.as="script"),w.crossOrigin="",w.href=g,y&&w.setAttribute("nonce",y),document.head.appendChild(w),x)return new Promise((C,N)=>{w.addEventListener("load",C),w.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${g}`)))})}))}function d(f){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=f,window.dispatchEvent(h),!h.defaultPrevented)throw f}return u.then(f=>{for(const h of f||[])h.status==="rejected"&&d(h.reason);return l().catch(d)})};/**
|
|
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 $g="popstate";function Gg(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function a2(n={}){function l(i,u){var g;let d=(g=u.state)==null?void 0:g.masked,{pathname:f,search:h,hash:y}=d||i.location;return Bd("",{pathname:f,search:h,hash:y},u.state&&u.state.usr||null,u.state&&u.state.key||"default",d?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function o(i,u){return typeof u=="string"?u:Bo(u)}return r2(l,o,null,n)}function lt(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function Tn(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function l2(){return Math.random().toString(36).substring(2,10)}function Xg(n,l){return{usr:n.state,key:n.key,idx:l,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Bd(n,l,o=null,i,u){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?Or(l):l,state:o,key:l&&l.key||i||l2(),unstable_mask:u}}function Bo({pathname:n="/",search:l="",hash:o=""}){return l&&l!=="?"&&(n+=l.charAt(0)==="?"?l:"?"+l),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function Or(n){let l={};if(n){let o=n.indexOf("#");o>=0&&(l.hash=n.substring(o),n=n.substring(0,o));let i=n.indexOf("?");i>=0&&(l.search=n.substring(i),n=n.substring(0,i)),n&&(l.pathname=n)}return l}function r2(n,l,o,i={}){let{window:u=document.defaultView,v5Compat:d=!1}=i,f=u.history,h="POP",y=null,g=x();g==null&&(g=0,f.replaceState({...f.state,idx:g},""));function x(){return(f.state||{idx:null}).idx}function p(){h="POP";let R=x(),T=R==null?null:R-g;g=R,y&&y({action:h,location:E.location,delta:T})}function w(R,T){h="PUSH";let j=Gg(R)?R:Bd(E.location,R,T);g=x()+1;let O=Xg(j,g),k=E.createHref(j.unstable_mask||j);try{f.pushState(O,"",k)}catch(q){if(q instanceof DOMException&&q.name==="DataCloneError")throw q;u.location.assign(k)}d&&y&&y({action:h,location:E.location,delta:1})}function C(R,T){h="REPLACE";let j=Gg(R)?R:Bd(E.location,R,T);g=x();let O=Xg(j,g),k=E.createHref(j.unstable_mask||j);f.replaceState(O,"",k),d&&y&&y({action:h,location:E.location,delta:0})}function N(R){return o2(R)}let E={get action(){return h},get location(){return n(u,f)},listen(R){if(y)throw new Error("A history only accepts one active listener");return u.addEventListener($g,p),y=R,()=>{u.removeEventListener($g,p),y=null}},createHref(R){return l(u,R)},createURL:N,encodeLocation(R){let T=N(R);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:w,replace:C,go(R){return f.go(R)}};return E}function o2(n,l=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),lt(o,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:Bo(n);return i=i.replace(/ $/,"%20"),!l&&i.startsWith("//")&&(i=o+i),new URL(i,o)}function qv(n,l,o="/"){return i2(n,l,o,!1)}function i2(n,l,o,i){let u=typeof l=="string"?Or(l):l,d=pa(u.pathname||"/",o);if(d==null)return null;let f=Yv(n);s2(f);let h=null;for(let y=0;h==null&&y<f.length;++y){let g=b2(d);h=v2(f[y],g,i)}return h}function Yv(n,l=[],o=[],i="",u=!1){let d=(f,h,y=u,g)=>{let x={relativePath:g===void 0?f.path||"":g,caseSensitive:f.caseSensitive===!0,childrenIndex:h,route:f};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(i)&&y)return;lt(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 p=Gn([i,x.relativePath]),w=o.concat(x);f.children&&f.children.length>0&&(lt(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Yv(f.children,l,w,p,y)),!(f.path==null&&!f.index)&&l.push({path:p,score:p2(p,f.index),routesMeta:w})};return n.forEach((f,h)=>{var y;if(f.path===""||!((y=f.path)!=null&&y.includes("?")))d(f,h);else for(let g of $v(f.path))d(f,h,!0,g)}),l}function $v(n){let l=n.split("/");if(l.length===0)return[];let[o,...i]=l,u=o.endsWith("?"),d=o.replace(/\?$/,"");if(i.length===0)return u?[d,""]:[d];let f=$v(i.join("/")),h=[];return h.push(...f.map(y=>y===""?d:[d,y].join("/"))),u&&h.push(...f),h.map(y=>n.startsWith("/")&&y===""?"/":y)}function s2(n){n.sort((l,o)=>l.score!==o.score?o.score-l.score:g2(l.routesMeta.map(i=>i.childrenIndex),o.routesMeta.map(i=>i.childrenIndex)))}var c2=/^:[\w-]+$/,u2=3,d2=2,f2=1,m2=10,h2=-2,Qg=n=>n==="*";function p2(n,l){let o=n.split("/"),i=o.length;return o.some(Qg)&&(i+=h2),l&&(i+=d2),o.filter(u=>!Qg(u)).reduce((u,d)=>u+(c2.test(d)?u2:d===""?f2:m2),i)}function g2(n,l){return n.length===l.length&&n.slice(0,-1).every((i,u)=>i===l[u])?n[n.length-1]-l[l.length-1]:0}function v2(n,l,o=!1){let{routesMeta:i}=n,u={},d="/",f=[];for(let h=0;h<i.length;++h){let y=i[h],g=h===i.length-1,x=d==="/"?l:l.slice(d.length)||"/",p=Cs({path:y.relativePath,caseSensitive:y.caseSensitive,end:g},x),w=y.route;if(!p&&g&&o&&!i[i.length-1].route.index&&(p=Cs({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},x)),!p)return null;Object.assign(u,p.params),f.push({params:u,pathname:Gn([d,p.pathname]),pathnameBase:E2(Gn([d,p.pathnameBase])),route:w}),p.pathnameBase!=="/"&&(d=Gn([d,p.pathnameBase]))}return f}function Cs(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[o,i]=y2(n.path,n.caseSensitive,n.end),u=l.match(o);if(!u)return null;let d=u[0],f=d.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:i.reduce((g,{paramName:x,isOptional:p},w)=>{if(x==="*"){let N=h[w]||"";f=d.slice(0,d.length-N.length).replace(/(.)\/+$/,"$1")}const C=h[w];return p&&!C?g[x]=void 0:g[x]=(C||"").replace(/%2F/g,"/"),g},{}),pathname:d,pathnameBase:f,pattern:n}}function y2(n,l=!1,o=!0){Tn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,h,y,g,x)=>{if(i.push({paramName:h,isOptional:y!=null}),y){let p=x.charAt(g+f.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(i.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,l?void 0:"i"),i]}function b2(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Tn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),n}}function pa(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let o=l.endsWith("/")?l.length-1:l.length,i=n.charAt(o);return i&&i!=="/"?null:n.slice(o)||"/"}var x2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function S2(n,l="/"){let{pathname:o,search:i="",hash:u=""}=typeof n=="string"?Or(n):n,d;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?d=Kg(o.substring(1),"/"):d=Kg(o,l)):d=l,{pathname:d,search:N2(i),hash:C2(u)}}function Kg(n,l){let o=l.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?o.length>1&&o.pop():u!=="."&&o.push(u)}),o.length>1?o.join("/"):"/"}function Sd(n,l,o,i){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` 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 w2(n){return n.filter((l,o)=>o===0||l.route.path&&l.route.path.length>0)}function af(n){let l=w2(n);return l.map((o,i)=>i===l.length-1?o.pathname:o.pathnameBase)}function Ys(n,l,o,i=!1){let u;typeof n=="string"?u=Or(n):(u={...n},lt(!u.pathname||!u.pathname.includes("?"),Sd("?","pathname","search",u)),lt(!u.pathname||!u.pathname.includes("#"),Sd("#","pathname","hash",u)),lt(!u.search||!u.search.includes("#"),Sd("#","search","hash",u)));let d=n===""||u.pathname==="",f=d?"/":u.pathname,h;if(f==null)h=o;else{let p=l.length-1;if(!i&&f.startsWith("..")){let w=f.split("/");for(;w[0]==="..";)w.shift(),p-=1;u.pathname=w.join("/")}h=p>=0?l[p]:"/"}let y=S2(u,h),g=f&&f!=="/"&&f.endsWith("/"),x=(d||f===".")&&o.endsWith("/");return!y.pathname.endsWith("/")&&(g||x)&&(y.pathname+="/"),y}var Gn=n=>n.join("/").replace(/\/\/+/g,"/"),E2=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),N2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,C2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,T2=class{constructor(n,l,o,i=!1){this.status=n,this.statusText=l||"",this.internal=i,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function R2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function A2(n){return n.map(l=>l.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Gv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Xv(n,l){let o=n;if(typeof o!="string"||!x2.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let i=o,u=!1;if(Gv)try{let d=new URL(window.location.href),f=o.startsWith("//")?new URL(d.protocol+o):new URL(o),h=pa(f.pathname,l);f.origin===d.origin&&h!=null?o=h+f.search+f.hash:u=!0}catch{Tn(!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 Qv=["POST","PUT","PATCH","DELETE"];new Set(Qv);var _2=["GET",...Qv];new Set(_2);var Mr=v.createContext(null);Mr.displayName="DataRouter";var $s=v.createContext(null);$s.displayName="DataRouterState";var j2=v.createContext(!1),Kv=v.createContext({isTransitioning:!1});Kv.displayName="ViewTransition";var O2=v.createContext(new Map);O2.displayName="Fetchers";var M2=v.createContext(null);M2.displayName="Await";var ln=v.createContext(null);ln.displayName="Navigation";var qo=v.createContext(null);qo.displayName="Location";var yn=v.createContext({outlet:null,matches:[],isDataRoute:!1});yn.displayName="Route";var lf=v.createContext(null);lf.displayName="RouteError";var Zv="REACT_ROUTER_ERROR",D2="REDIRECT",k2="ROUTE_ERROR_RESPONSE";function z2(n){if(n.startsWith(`${Zv}:${D2}:{`))try{let l=JSON.parse(n.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function L2(n){if(n.startsWith(`${Zv}:${k2}:{`))try{let l=JSON.parse(n.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new T2(l.status,l.statusText,l.data)}catch{}}function U2(n,{relative:l}={}){lt(Dr(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:i}=v.useContext(ln),{hash:u,pathname:d,search:f}=Yo(n,{relative:l}),h=d;return o!=="/"&&(h=d==="/"?o:Gn([o,d])),i.createHref({pathname:h,search:f,hash:u})}function Dr(){return v.useContext(qo)!=null}function Kn(){return lt(Dr(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(qo).location}var Pv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Iv(n){v.useContext(ln).static||v.useLayoutEffect(n)}function Fv(){let{isDataRoute:n}=v.useContext(yn);return n?F2():B2()}function B2(){lt(Dr(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(Mr),{basename:l,navigator:o}=v.useContext(ln),{matches:i}=v.useContext(yn),{pathname:u}=Kn(),d=JSON.stringify(af(i)),f=v.useRef(!1);return Iv(()=>{f.current=!0}),v.useCallback((y,g={})=>{if(Tn(f.current,Pv),!f.current)return;if(typeof y=="number"){o.go(y);return}let x=Ys(y,JSON.parse(d),u,g.relative==="path");n==null&&l!=="/"&&(x.pathname=x.pathname==="/"?l:Gn([l,x.pathname])),(g.replace?o.replace:o.push)(x,g.state,g)},[l,o,d,u,n])}var Jv=v.createContext(null);function I_(){return v.useContext(Jv)}function H2(n){let l=v.useContext(yn).outlet;return v.useMemo(()=>l&&v.createElement(Jv.Provider,{value:n},l),[l,n])}function F_(){let{matches:n}=v.useContext(yn),l=n[n.length-1];return l?l.params:{}}function Yo(n,{relative:l}={}){let{matches:o}=v.useContext(yn),{pathname:i}=Kn(),u=JSON.stringify(af(o));return v.useMemo(()=>Ys(n,JSON.parse(u),i,l==="path"),[n,u,i,l])}function V2(n,l){return Wv(n,l)}function Wv(n,l,o){var R;lt(Dr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=v.useContext(ln),{matches:u}=v.useContext(yn),d=u[u.length-1],f=d?d.params:{},h=d?d.pathname:"/",y=d?d.pathnameBase:"/",g=d&&d.route;{let T=g&&g.path||"";t0(h,!g||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${T}">) 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="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let x=Kn(),p;if(l){let T=typeof l=="string"?Or(l):l;lt(y==="/"||((R=T.pathname)==null?void 0:R.startsWith(y)),`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 "${y}" but pathname "${T.pathname}" was given in the \`location\` prop.`),p=T}else p=x;let w=p.pathname||"/",C=w;if(y!=="/"){let T=y.replace(/^\//,"").split("/");C="/"+w.replace(/^\//,"").split("/").slice(T.length).join("/")}let N=qv(n,{pathname:C});Tn(g||N!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Tn(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.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=X2(N&&N.map(T=>Object.assign({},T,{params:Object.assign({},f,T.params),pathname:Gn([y,i.encodeLocation?i.encodeLocation(T.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?y:Gn([y,i.encodeLocation?i.encodeLocation(T.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathnameBase])})),u,o);return l&&E?v.createElement(qo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},E):E}function q2(){let n=I2(),l=R2(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),o=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:i},d={padding:"2px 4px",backgroundColor:i},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:d},"ErrorBoundary")," or"," ",v.createElement("code",{style:d},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},l),o?v.createElement("pre",{style:u},o):null,f)}var Y2=v.createElement(q2,null),e0=class extends v.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,l){return l.location!==n.location||l.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:l.error,location:l.location,revalidation:n.revalidation||l.revalidation}}componentDidCatch(n,l){this.props.onError?this.props.onError(n,l):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const o=L2(n.digest);o&&(n=o)}let l=n!==void 0?v.createElement(yn.Provider,{value:this.props.routeContext},v.createElement(lf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?v.createElement($2,{error:n},l):l}};e0.contextType=j2;var wd=new WeakMap;function $2({children:n,error:l}){let{basename:o}=v.useContext(ln);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let i=z2(l.digest);if(i){let u=wd.get(l);if(u)throw u;let d=Xv(i.location,o);if(Gv&&!wd.get(l))if(d.isExternal||i.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:i.replace}));throw wd.set(l,f),f}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return n}function G2({routeContext:n,match:l,children:o}){let i=v.useContext(Mr);return i&&i.static&&i.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=l.route.id),v.createElement(yn.Provider,{value:n},o)}function X2(n,l=[],o){let i=o==null?void 0:o.state;if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(l.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let u=n,d=i==null?void 0:i.errors;if(d!=null){let x=u.findIndex(p=>p.route.id&&(d==null?void 0:d[p.route.id])!==void 0);lt(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),u=u.slice(0,Math.min(u.length,x+1))}let f=!1,h=-1;if(o&&i){f=i.renderFallback;for(let x=0;x<u.length;x++){let p=u[x];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(h=x),p.route.id){let{loaderData:w,errors:C}=i,N=p.route.loader&&!w.hasOwnProperty(p.route.id)&&(!C||C[p.route.id]===void 0);if(p.route.lazy||N){o.isStatic&&(f=!0),h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}}let y=o==null?void 0:o.onError,g=i&&y?(x,p)=>{var w,C;y(x,{location:i.location,params:((C=(w=i.matches)==null?void 0:w[0])==null?void 0:C.params)??{},unstable_pattern:A2(i.matches),errorInfo:p})}:void 0;return u.reduceRight((x,p,w)=>{let C,N=!1,E=null,R=null;i&&(C=d&&p.route.id?d[p.route.id]:void 0,E=p.route.errorElement||Y2,f&&(h<0&&w===0?(t0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,R=null):h===w&&(N=!0,R=p.route.hydrateFallbackElement||null)));let T=l.concat(u.slice(0,w+1)),j=()=>{let O;return C?O=E:N?O=R:p.route.Component?O=v.createElement(p.route.Component,null):p.route.element?O=p.route.element:O=x,v.createElement(G2,{match:p,routeContext:{outlet:x,matches:T,isDataRoute:i!=null},children:O})};return i&&(p.route.ErrorBoundary||p.route.errorElement||w===0)?v.createElement(e0,{location:i.location,revalidation:i.revalidation,component:E,error:C,children:j(),routeContext:{outlet:null,matches:T,isDataRoute:!0},onError:g}):j()},null)}function rf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Q2(n){let l=v.useContext(Mr);return lt(l,rf(n)),l}function K2(n){let l=v.useContext($s);return lt(l,rf(n)),l}function Z2(n){let l=v.useContext(yn);return lt(l,rf(n)),l}function of(n){let l=Z2(n),o=l.matches[l.matches.length-1];return lt(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function P2(){return of("useRouteId")}function I2(){var i;let n=v.useContext(lf),l=K2("useRouteError"),o=of("useRouteError");return n!==void 0?n:(i=l.errors)==null?void 0:i[o]}function F2(){let{router:n}=Q2("useNavigate"),l=of("useNavigate"),o=v.useRef(!1);return Iv(()=>{o.current=!0}),v.useCallback(async(u,d={})=>{Tn(o.current,Pv),o.current&&(typeof u=="number"?await n.navigate(u):await n.navigate(u,{fromRouteId:l,...d}))},[n,l])}var Zg={};function t0(n,l,o){!l&&!Zg[n]&&(Zg[n]=!0,Tn(!1,o))}v.memo(J2);function J2({routes:n,future:l,state:o,isStatic:i,onError:u}){return Wv(n,void 0,{state:o,isStatic:i,onError:u})}function Pg({to:n,replace:l,state:o,relative:i}){lt(Dr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=v.useContext(ln);Tn(!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:d}=v.useContext(yn),{pathname:f}=Kn(),h=Fv(),y=Ys(n,af(d),f,i==="path"),g=JSON.stringify(y);return v.useEffect(()=>{h(JSON.parse(g),{replace:l,state:o,relative:i})},[h,g,i,l,o]),null}function W2(n){return H2(n.context)}function Al(n){lt(!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 ew({basename:n="/",children:l=null,location:o,navigationType:i="POP",navigator:u,static:d=!1,unstable_useTransitions:f}){lt(!Dr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),y=v.useMemo(()=>({basename:h,navigator:u,static:d,unstable_useTransitions:f,future:{}}),[h,u,d,f]);typeof o=="string"&&(o=Or(o));let{pathname:g="/",search:x="",hash:p="",state:w=null,key:C="default",unstable_mask:N}=o,E=v.useMemo(()=>{let R=pa(g,h);return R==null?null:{location:{pathname:R,search:x,hash:p,state:w,key:C,unstable_mask:N},navigationType:i}},[h,g,x,p,w,C,i,N]);return Tn(E!=null,`<Router basename="${h}"> is not able to match the URL "${g}${x}${p}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:v.createElement(ln.Provider,{value:y},v.createElement(qo.Provider,{children:l,value:E}))}function tw({children:n,location:l}){return V2(Hd(n),l)}function Hd(n,l=[]){let o=[];return v.Children.forEach(n,(i,u)=>{if(!v.isValidElement(i))return;let d=[...l,u];if(i.type===v.Fragment){o.push.apply(o,Hd(i.props.children,d));return}lt(i.type===Al,`[${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>`),lt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let f={id:i.props.id||d.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&&(f.children=Hd(i.props.children,d)),o.push(f)}),o}var ys="get",bs="application/x-www-form-urlencoded";function Gs(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function nw(n){return Gs(n)&&n.tagName.toLowerCase()==="button"}function aw(n){return Gs(n)&&n.tagName.toLowerCase()==="form"}function lw(n){return Gs(n)&&n.tagName.toLowerCase()==="input"}function rw(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function ow(n,l){return n.button===0&&(!l||l==="_self")&&!rw(n)}var os=null;function iw(){if(os===null)try{new FormData(document.createElement("form"),0),os=!1}catch{os=!0}return os}var sw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ed(n){return n!=null&&!sw.has(n)?(Tn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bs}"`),null):n}function cw(n,l){let o,i,u,d,f;if(aw(n)){let h=n.getAttribute("action");i=h?pa(h,l):null,o=n.getAttribute("method")||ys,u=Ed(n.getAttribute("enctype"))||bs,d=new FormData(n)}else if(nw(n)||lw(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=n.getAttribute("formaction")||h.getAttribute("action");if(i=y?pa(y,l):null,o=n.getAttribute("formmethod")||h.getAttribute("method")||ys,u=Ed(n.getAttribute("formenctype"))||Ed(h.getAttribute("enctype"))||bs,d=new FormData(h,n),!iw()){let{name:g,type:x,value:p}=n;if(x==="image"){let w=g?`${g}.`:"";d.append(`${w}x`,"0"),d.append(`${w}y`,"0")}else g&&d.append(g,p)}}else{if(Gs(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=ys,i=null,u=bs,f=n}return d&&u==="text/plain"&&(f=d,d=void 0),{action:i,method:o.toLowerCase(),encType:u,formData:d,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function sf(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function uw(n,l,o,i){let u=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return o?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${i}`:u.pathname=`${u.pathname}.${i}`:u.pathname==="/"?u.pathname=`_root.${i}`:l&&pa(u.pathname,l)==="/"?u.pathname=`${l.replace(/\/$/,"")}/_root.${i}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${i}`,u}async function dw(n,l){if(n.id in l)return l[n.id];try{let o=await import(n.module);return l[n.id]=o,o}catch(o){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function fw(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function mw(n,l,o){let i=await Promise.all(n.map(async u=>{let d=l.routes[u.route.id];if(d){let f=await dw(d,o);return f.links?f.links():[]}return[]}));return vw(i.flat(1).filter(fw).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function Ig(n,l,o,i,u,d){let f=(y,g)=>o[g]?y.route.id!==o[g].route.id:!0,h=(y,g)=>{var x;return o[g].pathname!==y.pathname||((x=o[g].route.path)==null?void 0:x.endsWith("*"))&&o[g].params["*"]!==y.params["*"]};return d==="assets"?l.filter((y,g)=>f(y,g)||h(y,g)):d==="data"?l.filter((y,g)=>{var p;let x=i.routes[y.route.id];if(!x||!x.hasLoader)return!1;if(f(y,g)||h(y,g))return!0;if(y.route.shouldRevalidate){let w=y.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((p=o[0])==null?void 0:p.params)||{},nextUrl:new URL(n,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function hw(n,l,{includeHydrateFallback:o}={}){return pw(n.map(i=>{let u=l.routes[i.route.id];if(!u)return[];let d=[u.module];return u.clientActionModule&&(d=d.concat(u.clientActionModule)),u.clientLoaderModule&&(d=d.concat(u.clientLoaderModule)),o&&u.hydrateFallbackModule&&(d=d.concat(u.hydrateFallbackModule)),u.imports&&(d=d.concat(u.imports)),d}).flat(1))}function pw(n){return[...new Set(n)]}function gw(n){let l={},o=Object.keys(n).sort();for(let i of o)l[i]=n[i];return l}function vw(n,l){let o=new Set;return new Set(l),n.reduce((i,u)=>{let d=JSON.stringify(gw(u));return o.has(d)||(o.add(d),i.push({key:d,link:u})),i},[])}function n0(){let n=v.useContext(Mr);return sf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function yw(){let n=v.useContext($s);return sf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var cf=v.createContext(void 0);cf.displayName="FrameworkContext";function a0(){let n=v.useContext(cf);return sf(n,"You must render this element inside a <HydratedRouter> element"),n}function bw(n,l){let o=v.useContext(cf),[i,u]=v.useState(!1),[d,f]=v.useState(!1),{onFocus:h,onBlur:y,onMouseEnter:g,onMouseLeave:x,onTouchStart:p}=l,w=v.useRef(null);v.useEffect(()=>{if(n==="render"&&f(!0),n==="viewport"){let E=T=>{T.forEach(j=>{f(j.isIntersecting)})},R=new IntersectionObserver(E,{threshold:.5});return w.current&&R.observe(w.current),()=>{R.disconnect()}}},[n]),v.useEffect(()=>{if(i){let E=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(E)}}},[i]);let C=()=>{u(!0)},N=()=>{u(!1),f(!1)};return o?n!=="intent"?[d,w,{}]:[d,w,{onFocus:Mo(h,C),onBlur:Mo(y,N),onMouseEnter:Mo(g,C),onMouseLeave:Mo(x,N),onTouchStart:Mo(p,C)}]:[!1,w,{}]}function Mo(n,l){return o=>{n&&n(o),o.defaultPrevented||l(o)}}function xw({page:n,...l}){let{router:o}=n0(),i=v.useMemo(()=>qv(o.routes,n,o.basename),[o.routes,n,o.basename]);return i?v.createElement(ww,{page:n,matches:i,...l}):null}function Sw(n){let{manifest:l,routeModules:o}=a0(),[i,u]=v.useState([]);return v.useEffect(()=>{let d=!1;return mw(n,l,o).then(f=>{d||u(f)}),()=>{d=!0}},[n,l,o]),i}function ww({page:n,matches:l,...o}){let i=Kn(),{future:u,manifest:d,routeModules:f}=a0(),{basename:h}=n0(),{loaderData:y,matches:g}=yw(),x=v.useMemo(()=>Ig(n,l,g,d,i,"data"),[n,l,g,d,i]),p=v.useMemo(()=>Ig(n,l,g,d,i,"assets"),[n,l,g,d,i]),w=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,R=!1;if(l.forEach(j=>{var k;let O=d.routes[j.route.id];!O||!O.hasLoader||(!x.some(q=>q.route.id===j.route.id)&&j.route.id in y&&((k=f[j.route.id])!=null&&k.shouldRevalidate)||O.hasClientLoader?R=!0:E.add(j.route.id))}),E.size===0)return[];let T=uw(n,h,u.unstable_trailingSlashAwareDataRequests,"data");return R&&E.size>0&&T.searchParams.set("_routes",l.filter(j=>E.has(j.route.id)).map(j=>j.route.id).join(",")),[T.pathname+T.search]},[h,u.unstable_trailingSlashAwareDataRequests,y,i,d,x,l,n,f]),C=v.useMemo(()=>hw(p,d),[p,d]),N=Sw(p);return v.createElement(v.Fragment,null,w.map(E=>v.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...o})),C.map(E=>v.createElement("link",{key:E,rel:"modulepreload",href:E,...o})),N.map(({key:E,link:R})=>v.createElement("link",{key:E,nonce:o.nonce,...R,crossOrigin:R.crossOrigin??o.crossOrigin})))}function Ew(...n){return l=>{n.forEach(o=>{typeof o=="function"?o(l):o!=null&&(o.current=l)})}}var Nw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Nw&&(window.__reactRouterVersion="7.13.2")}catch{}function Cw({basename:n,children:l,unstable_useTransitions:o,window:i}){let u=v.useRef();u.current==null&&(u.current=a2({window:i,v5Compat:!0}));let d=u.current,[f,h]=v.useState({action:d.action,location:d.location}),y=v.useCallback(g=>{o===!1?h(g):v.startTransition(()=>h(g))},[o]);return v.useLayoutEffect(()=>d.listen(y),[d,y]),v.createElement(ew,{basename:n,children:l,location:f.location,navigationType:f.action,navigator:d,unstable_useTransitions:o})}var l0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,r0=v.forwardRef(function({onClick:l,discover:o="render",prefetch:i="none",relative:u,reloadDocument:d,replace:f,unstable_mask:h,state:y,target:g,to:x,preventScrollReset:p,viewTransition:w,unstable_defaultShouldRevalidate:C,...N},E){let{basename:R,navigator:T,unstable_useTransitions:j}=v.useContext(ln),O=typeof x=="string"&&l0.test(x),k=Xv(x,R);x=k.to;let q=U2(x,{relative:u}),$=Kn(),B=null;if(h){let ue=Ys(h,[],$.unstable_mask?$.unstable_mask.pathname:"/",!0);R!=="/"&&(ue.pathname=ue.pathname==="/"?R:Gn([R,ue.pathname])),B=T.createHref(ue)}let[V,te,le]=bw(i,N),ve=Aw(x,{replace:f,unstable_mask:h,state:y,target:g,preventScrollReset:p,relative:u,viewTransition:w,unstable_defaultShouldRevalidate:C,unstable_useTransitions:j});function ie(ue){l&&l(ue),ue.defaultPrevented||ve(ue)}let ce=!(k.isExternal||d),re=v.createElement("a",{...N,...le,href:(ce?B:void 0)||k.absoluteURL||q,onClick:ce?ie:l,ref:Ew(E,te),target:g,"data-discover":!O&&o==="render"?"true":void 0});return V&&!O?v.createElement(v.Fragment,null,re,v.createElement(xw,{page:q})):re});r0.displayName="Link";var o0=v.forwardRef(function({"aria-current":l="page",caseSensitive:o=!1,className:i="",end:u=!1,style:d,to:f,viewTransition:h,children:y,...g},x){let p=Yo(f,{relative:g.relative}),w=Kn(),C=v.useContext($s),{navigator:N,basename:E}=v.useContext(ln),R=C!=null&&Dw(p)&&h===!0,T=N.encodeLocation?N.encodeLocation(p).pathname:p.pathname,j=w.pathname,O=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;o||(j=j.toLowerCase(),O=O?O.toLowerCase():null,T=T.toLowerCase()),O&&E&&(O=pa(O,E)||O);const k=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let q=j===T||!u&&j.startsWith(T)&&j.charAt(k)==="/",$=O!=null&&(O===T||!u&&O.startsWith(T)&&O.charAt(T.length)==="/"),B={isActive:q,isPending:$,isTransitioning:R},V=q?l:void 0,te;typeof i=="function"?te=i(B):te=[i,q?"active":null,$?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let le=typeof d=="function"?d(B):d;return v.createElement(r0,{...g,"aria-current":V,className:te,ref:x,style:le,to:f,viewTransition:h},typeof y=="function"?y(B):y)});o0.displayName="NavLink";var Tw=v.forwardRef(({discover:n="render",fetcherKey:l,navigate:o,reloadDocument:i,replace:u,state:d,method:f=ys,action:h,onSubmit:y,relative:g,preventScrollReset:x,viewTransition:p,unstable_defaultShouldRevalidate:w,...C},N)=>{let{unstable_useTransitions:E}=v.useContext(ln),R=Ow(),T=Mw(h,{relative:g}),j=f.toLowerCase()==="get"?"get":"post",O=typeof h=="string"&&l0.test(h),k=q=>{if(y&&y(q),q.defaultPrevented)return;q.preventDefault();let $=q.nativeEvent.submitter,B=($==null?void 0:$.getAttribute("formmethod"))||f,V=()=>R($||q.currentTarget,{fetcherKey:l,method:B,navigate:o,replace:u,state:d,relative:g,preventScrollReset:x,viewTransition:p,unstable_defaultShouldRevalidate:w});E&&o!==!1?v.startTransition(()=>V()):V()};return v.createElement("form",{ref:N,method:j,action:T,onSubmit:i?y:k,...C,"data-discover":!O&&n==="render"?"true":void 0})});Tw.displayName="Form";function Rw(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function i0(n){let l=v.useContext(Mr);return lt(l,Rw(n)),l}function Aw(n,{target:l,replace:o,unstable_mask:i,state:u,preventScrollReset:d,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:y,unstable_useTransitions:g}={}){let x=Fv(),p=Kn(),w=Yo(n,{relative:f});return v.useCallback(C=>{if(ow(C,l)){C.preventDefault();let N=o!==void 0?o:Bo(p)===Bo(w),E=()=>x(n,{replace:N,unstable_mask:i,state:u,preventScrollReset:d,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:y});g?v.startTransition(()=>E()):E()}},[p,x,w,o,i,u,l,n,d,f,h,y,g])}var _w=0,jw=()=>`__${String(++_w)}__`;function Ow(){let{router:n}=i0("useSubmit"),{basename:l}=v.useContext(ln),o=P2(),i=n.fetch,u=n.navigate;return v.useCallback(async(d,f={})=>{let{action:h,method:y,encType:g,formData:x,body:p}=cw(d,l);if(f.navigate===!1){let w=f.fetcherKey||jw();await i(w,o,f.action||h,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:x,body:p,formMethod:f.method||y,formEncType:f.encType||g,flushSync:f.flushSync})}else await u(f.action||h,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:x,body:p,formMethod:f.method||y,formEncType:f.encType||g,replace:f.replace,state:f.state,fromRouteId:o,flushSync:f.flushSync,viewTransition:f.viewTransition})},[i,u,l,o])}function Mw(n,{relative:l}={}){let{basename:o}=v.useContext(ln),i=v.useContext(yn);lt(i,"useFormAction must be used inside a RouteContext");let[u]=i.matches.slice(-1),d={...Yo(n||".",{relative:l})},f=Kn();if(n==null){d.search=f.search;let h=new URLSearchParams(d.search),y=h.getAll("index");if(y.some(x=>x==="")){h.delete("index"),y.filter(p=>p).forEach(p=>h.append("index",p));let x=h.toString();d.search=x?`?${x}`:""}}return(!n||n===".")&&u.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(d.pathname=d.pathname==="/"?o:Gn([o,d.pathname])),Bo(d)}function Dw(n,{relative:l}={}){let o=v.useContext(Kv);lt(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=i0("useViewTransitionState"),u=Yo(n,{relative:l});if(!o.isTransitioning)return!1;let d=pa(o.currentLocation.pathname,i)||o.currentLocation.pathname,f=pa(o.nextLocation.pathname,i)||o.nextLocation.pathname;return Cs(u.pathname,f)!=null||Cs(u.pathname,d)!=null}var $o=Hv();const s0=Bv($o),kw="/api";function zw(n,l){if(typeof n=="string"&&n)return n;if(n&&typeof n=="object"){const o=n,i=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return o.error;if(typeof(i==null?void 0:i.message)=="string"&&i.message)return i.message;if(typeof o.message=="string"&&o.message)return o.message}return l}async function Se(n,l){const o=await fetch(`${kw}${n}`,{...l,headers:{"Content-Type":"application/json",...l==null?void 0:l.headers}});if(!o.ok){const i=await o.json().catch(()=>o.statusText);throw new Error(zw(i,`HTTP ${o.status}`))}return o.json()}function Lw(){return Se("/system/info")}function J_(n){return Se("/system/transport",{method:"POST",body:JSON.stringify({type:n})})}function Uw(n){return Se("/system/runtime/restart",{method:"POST",body:JSON.stringify(n)})}function Bw(){return Se("/system/runtime/stop",{method:"POST"})}function Hw(){return Se("/cluster/state")}function W_(){return Se("/cluster/promote",{method:"POST"})}function e3(n){return Se("/cluster/connect",{method:"POST",body:JSON.stringify(n)})}function t3(){return Se("/cluster/disconnect",{method:"POST"})}function Vw(n){return Se(`/node-operations/${n}`)}async function qw(n={}){const l=new URLSearchParams;n.nodeId&&l.set("nodeId",n.nodeId),n.status&&l.set("status",n.status),n.kind&&l.set("kind",n.kind);const o=l.toString();return(await Se(`/node-operations${o?`?${o}`:""}`)).operations}function Yw(n,l){return Se(`/nodes/${n}/agents/${l}/upgrade`,{method:"POST"})}function $w(n,l){return Se(`/nodes/${n}/runtime/restart`,{method:"POST",body:JSON.stringify(l)})}async function n3(){return(await Se("/devboxes")).devboxes}function a3(n,l){return Se(`/nodes/${n}/devbox/configure`,{method:"POST",body:JSON.stringify({devbox:l})})}function l3(n){return Se(`/nodes/${n}/devbox/status`)}function r3(n){return Se(`/nodes/${n}/devbox/start`,{method:"POST"})}function o3(n,l){return Se(`/nodes/${n}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:l})})}function i3(n,l={}){const o=new URLSearchParams;l.path&&o.set("path",l.path),l.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,l.limit),100))),l.offset!==void 0&&o.set("offset",String(Math.max(0,l.offset))),l.directoriesOnly!==void 0&&o.set("directoriesOnly",String(l.directoriesOnly)),l.allowAbsolute!==void 0&&o.set("allowAbsolute",String(l.allowAbsolute));const i=o.toString();return Se(`/nodes/${n}/workdir/tree${i?`?${i}`:""}`)}function s3(n,l={}){const o=new URLSearchParams;l.path&&o.set("path",l.path),l.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,l.limit),20))),l.offset!==void 0&&o.set("offset",String(Math.max(0,l.offset))),l.allowAbsolute!==void 0&&o.set("allowAbsolute",String(l.allowAbsolute));const i=o.toString();return Se(`/nodes/${n}/workdir/branch${i?`?${i}`:""}`)}function c3(n,l){const o=new URLSearchParams;return o.set("agent",l.agent),o.set("limit",String(Math.min(Math.max(1,l.limit),100))),Se(`/nodes/${n}/native-sessions?${o.toString()}`)}function u3(n,l){return Se(`/nodes/${n}/workdir/branch`,{method:"POST",body:JSON.stringify({path:l.path,branchName:l.branchName,startPoint:l.startPoint,limit:l.limit,offset:l.offset,allowAbsolute:l.allowAbsolute})})}function d3(n,l){return Se(`/nodes/${n}/terminal/sessions`,{method:"POST",body:JSON.stringify(l)})}function f3(n){return Se(`/nodes/${n}/terminal/sessions`)}function m3(n,l){return Se(`/nodes/${n}/terminal/sessions/${l}`)}function h3(n,l){return Se(`/nodes/${n}/terminal/sessions/${l}/stop`,{method:"POST"})}async function p3(n){const l=new URLSearchParams;if(n!=null&&n.status&&l.set("status",n.status),n!=null&&n.assignedTo&&l.set("assignedTo",n.assignedTo),n!=null&&n.priority&&l.set("priority",n.priority),n!=null&&n.limit){const u=Math.min(Math.max(1,n.limit),100);l.set("limit",String(u))}n!=null&&n.offset&&l.set("offset",String(n.offset));const o=l.toString();return(await Se(`/tasks${o?`?${o}`:""}`)).tasks}function g3(n){return Se(`/tasks/${n}`)}function v3(n){return Se("/tasks",{method:"POST",body:JSON.stringify(n)})}function y3(n){return Se("/tasks/import-session",{method:"POST",body:JSON.stringify(n)})}function b3(n){return Se("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:n})})}function x3(n){return Se("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:n})})}function S3(n){return Se(`/tasks/${n}/cancel`,{method:"POST"})}function w3(n){return Se(`/tasks/${n}/retry`,{method:"POST"})}function E3(n,l){return Se(`/tasks/${n}/logs`)}function N3(n,l){return Se(`/tasks/${n}/message`,{method:"POST",body:JSON.stringify({content:l})})}function C3(n,l){return Se(`/tasks/${n}/share`,{method:"POST",body:JSON.stringify(l)})}function T3(n){return Se(`/tasks/${n}/share`,{method:"DELETE"})}function R3(n){return Se(`/shared/conversations/${encodeURIComponent(n)}`)}function A3(n,l){return Se(`/shared/conversations/${encodeURIComponent(n)}/logs`)}function _3(n){return Se(`/shared/conversations/${encodeURIComponent(n)}/output`)}function j3(n,l="."){return Se(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(l)}`)}function O3(n,l){return Se(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(l)}`)}function M3(n,l){return Se(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(l?{path:l}:{})})}function Gw(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}function D3(n){return Se(`/tasks/${n}/output`)}function k3(n,l="."){return Se(`/tasks/${n}/output/tree?path=${encodeURIComponent(l)}`)}function z3(n,l){return Se(`/tasks/${n}/output/content?path=${encodeURIComponent(l)}`)}function L3(n,l){return Se(`/tasks/${n}/output/preview-sessions`,{method:"POST",body:JSON.stringify(Gw(l))})}function U3(n){return Se(`/tasks/${n}/output/diff`)}function Xw({hasStarted:n,enabled:l}){return l&&!n}function Qw(n,l,o=!0){const i=v.useRef(n),u=v.useRef(!1);v.useEffect(()=>{i.current=n},[n]),v.useEffect(()=>{if(!o)return;const d=()=>i.current();Xw({hasStarted:u.current,enabled:o})&&(u.current=!0,d());const f=setInterval(d,l);return()=>clearInterval(f)},[l,o])}let Kw=0;function Zw(n=50){const[l,o]=v.useState([]),[i,u]=v.useState(!1),d=v.useRef(null),f=v.useRef(0),h=v.useRef(new Map);v.useEffect(()=>{const x=new EventSource("/api/events");d.current=x,x.onopen=()=>u(!0),x.onerror=()=>u(!1);const p=["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 p)x.addEventListener(w,C=>{const N={id:String(++Kw),type:w,data:JSON.parse(C.data),timestamp:Date.now()};o(E=>[N,...E].slice(0,n));for(const[,{pattern:E,callback:R}]of h.current)w.startsWith(E)&&R(N)});return()=>{x.close(),d.current=null,u(!1)}},[n]);const y=v.useCallback((x,p)=>{const w=++f.current;return h.current.set(w,{pattern:x,callback:p}),()=>{h.current.delete(w)}},[]),g=v.useCallback(()=>o([]),[]);return{events:l,connected:i,subscribe:y,clearEvents:g}}const Pw=1e4,Iw=6e4,Fw=Pw,Jw=250,Ww=new Set(["task.created","task.assigned","task.deleted"]),eE=new Set(["task.created","task.assigned","task.status","task.deleted"]);function tE(n){return n?Iw:Fw}function B3(n){return Ww.has(n)}function nE(n){return eE.has(n)}function aE(n,l){if(!l)return!0;const o=n.leaderId,i=n.term,u=n.nodeCount;return typeof o!="string"&&o!==null||typeof i!="number"||typeof u!="number"?!0:l.leaderId!==o||l.term!==i||l.nodeCount!==u}function lE(n,l,o){if(n==="node.joined"||n==="node.left"||n!=="node.status")return!0;const i=l.nodeId,u=l.status;return typeof i!="string"||typeof u!="string"?!0:o.get(i)!==u}function H3(n,l){const o=l.taskId,i=l.status;if(typeof o!="string"||typeof i!="string")return n;let u=!1;const d=n.map(f=>{if(f.id!==o)return f;u=!0;const h="result"in l?l.result:i==="completed"?null:f.result,y="error"in l?l.error:i==="completed"?null:f.error;return{...f,status:i,result:h,error:y}});return u?d:n}const c0=v.createContext(null);function rE({children:n}){const[l,o]=v.useState(null),[i,u]=v.useState(null),[d,f]=v.useState(!0),[h,y]=v.useState(null),g=v.useRef(null),x=v.useRef(null),p=v.useRef(new Map),{events:w,connected:C,subscribe:N}=Zw(),E=v.useCallback(async()=>{var T;try{const[j,O]=await Promise.all([Hw(),Lw()]),k=j,q=O.nodeId??O.id,$=k.nodes??[],B=$.find(le=>le.id===q)??{id:q,name:O.name,endpoint:O.endpoint,role:O.role,status:O.status,capabilities:O.capabilities,joinedAt:O.joinedAt,lastHeartbeat:O.lastHeartbeat},V=k.leaderId?$.find(le=>le.id===k.leaderId)??null:null,te={leader:V?{id:V.id,name:V.name,endpoint:V.endpoint,...V.dashboardOrigin?{dashboardOrigin:V.dashboardOrigin}:{}}:null,term:k.term??0,nodes:$,self:B,taskSummary:k.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}};x.current={leaderId:((T=te.leader)==null?void 0:T.id)??null,term:te.term,nodeCount:te.nodes.length},p.current=new Map(te.nodes.map(le=>[le.id,le.status])),p.current.set(te.self.id,te.self.status),o(te),u(O),y(null)}catch(j){y(j instanceof Error?j.message:"Failed to fetch cluster state")}finally{f(!1)}},[]),R=v.useCallback(()=>{g.current===null&&(g.current=window.setTimeout(()=>{g.current=null,E()},Jw))},[E]);return Qw(E,tE(C)),v.useEffect(()=>()=>{g.current!==null&&(window.clearTimeout(g.current),g.current=null)},[]),v.useEffect(()=>{const T=[N("cluster",j=>{aE(j.data,x.current)&&R()}),N("election",R),N("node",j=>{lE(j.type,j.data,p.current)&&R()}),N("transport",R),N("task",j=>{nE(j.type)&&R()})];return()=>T.forEach(j=>j())},[N,R]),m.jsx(c0.Provider,{value:{cluster:l,systemInfo:i,events:w,sseConnected:C,subscribe:N,refresh:E,loading:d,error:h},children:n})}function u0(){const n=v.useContext(c0);if(!n)throw new Error("useCluster must be used within ClusterProvider");return n}/**
|
|
62
|
-
* @license lucide-react v1.7.0 - ISC
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the ISC license.
|
|
65
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const d0=(...n)=>n.filter((l,o,i)=>!!l&&l.trim()!==""&&i.indexOf(l)===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 oE=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
72
|
-
* @license lucide-react v1.7.0 - ISC
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the ISC license.
|
|
75
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/const iE=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,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 Fg=n=>{const l=iE(n);return l.charAt(0).toUpperCase()+l.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 Nd={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 sE=n=>{for(const l in n)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1},cE=v.createContext({}),uE=()=>v.useContext(cE),dE=v.forwardRef(({color:n,size:l,strokeWidth:o,absoluteStrokeWidth:i,className:u="",children:d,iconNode:f,...h},y)=>{const{size:g=24,strokeWidth:x=2,absoluteStrokeWidth:p=!1,color:w="currentColor",className:C=""}=uE()??{},N=i??p?Number(o??x)*24/Number(l??g):o??x;return v.createElement("svg",{ref:y,...Nd,width:l??g??Nd.width,height:l??g??Nd.height,stroke:n??w,strokeWidth:N,className:d0("lucide",C,u),...!d&&!sE(h)&&{"aria-hidden":"true"},...h},[...f.map(([E,R])=>v.createElement(E,R)),...Array.isArray(d)?d:[d]])});/**
|
|
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 Ye=(n,l)=>{const o=v.forwardRef(({className:i,...u},d)=>v.createElement(dE,{ref:d,iconNode:l,className:d0(`lucide-${oE(Fg(n))}`,`lucide-${n}`,i),...u}));return o.displayName=Fg(n),o};/**
|
|
97
|
-
* @license lucide-react v1.7.0 - ISC
|
|
98
|
-
*
|
|
99
|
-
* This source code is licensed under the ISC license.
|
|
100
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const fE=[["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"}]],Ts=Ye("activity",fE);/**
|
|
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 mE=[["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"}]],hE=Ye("book-open",mE);/**
|
|
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 pE=[["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"}]],f0=Ye("bot",pE);/**
|
|
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 gE=[["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"}]],vE=Ye("cable",gE);/**
|
|
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 yE=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],uf=Ye("check",yE);/**
|
|
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 bE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xs=Ye("chevron-down",bE);/**
|
|
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 xE=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],SE=Ye("chevron-right",xE);/**
|
|
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 wE=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],EE=Ye("chevron-up",wE);/**
|
|
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 NE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],is=Ye("circle-alert",NE);/**
|
|
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 CE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],zo=Ye("circle-check",CE);/**
|
|
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 TE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Jg=Ye("circle-dot",TE);/**
|
|
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 RE=[["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"}]],AE=Ye("circle-x",RE);/**
|
|
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 _E=[["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"}]],jE=Ye("copy",_E);/**
|
|
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 OE=[["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"}]],ME=Ye("cpu",OE);/**
|
|
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 DE=[["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"}]],kE=Ye("external-link",DE);/**
|
|
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 zE=[["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"}]],LE=Ye("folder-tree",zE);/**
|
|
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 UE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],BE=Ye("info",UE);/**
|
|
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 HE=[["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"}]],VE=Ye("monitor-cog",HE);/**
|
|
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 qE=[["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"}]],m0=Ye("monitor",qE);/**
|
|
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 YE=[["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"}]],h0=Ye("moon",YE);/**
|
|
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 $E=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],GE=Ye("power",$E);/**
|
|
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 XE=[["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"}]],p0=Ye("radio",XE);/**
|
|
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 QE=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],KE=Ye("refresh-cw",QE);/**
|
|
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 ZE=[["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"}]],PE=Ye("server",ZE);/**
|
|
217
|
-
* @license lucide-react v1.7.0 - ISC
|
|
218
|
-
*
|
|
219
|
-
* This source code is licensed under the ISC license.
|
|
220
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const IE=[["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"}]],FE=Ye("settings",IE);/**
|
|
222
|
-
* @license lucide-react v1.7.0 - ISC
|
|
223
|
-
*
|
|
224
|
-
* This source code is licensed under the ISC license.
|
|
225
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
-
*/const JE=[["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"}]],WE=Ye("shield",JE);/**
|
|
227
|
-
* @license lucide-react v1.7.0 - ISC
|
|
228
|
-
*
|
|
229
|
-
* This source code is licensed under the ISC license.
|
|
230
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
-
*/const eN=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],tN=Ye("sparkles",eN);/**
|
|
232
|
-
* @license lucide-react v1.7.0 - ISC
|
|
233
|
-
*
|
|
234
|
-
* This source code is licensed under the ISC license.
|
|
235
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
-
*/const nN=[["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"}]],g0=Ye("sun",nN);/**
|
|
237
|
-
* @license lucide-react v1.7.0 - ISC
|
|
238
|
-
*
|
|
239
|
-
* This source code is licensed under the ISC license.
|
|
240
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
-
*/const aN=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],v0=Ye("terminal",aN);/**
|
|
242
|
-
* @license lucide-react v1.7.0 - ISC
|
|
243
|
-
*
|
|
244
|
-
* This source code is licensed under the ISC license.
|
|
245
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
-
*/const lN=[["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"}]],rN=Ye("wifi-off",lN);/**
|
|
247
|
-
* @license lucide-react v1.7.0 - ISC
|
|
248
|
-
*
|
|
249
|
-
* This source code is licensed under the ISC license.
|
|
250
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
-
*/const oN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],y0=Ye("x",oN);function b0(n){var l,o,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(l=0;l<u;l++)n[l]&&(o=b0(n[l]))&&(i&&(i+=" "),i+=o)}else for(o in n)n[o]&&(i&&(i+=" "),i+=o);return i}function x0(){for(var n,l,o=0,i="",u=arguments.length;o<u;o++)(n=arguments[o])&&(l=b0(n))&&(i&&(i+=" "),i+=l);return i}const iN=(n,l)=>{const o=new Array(n.length+l.length);for(let i=0;i<n.length;i++)o[i]=n[i];for(let i=0;i<l.length;i++)o[n.length+i]=l[i];return o},sN=(n,l)=>({classGroupId:n,validator:l}),S0=(n=new Map,l=null,o)=>({nextPart:n,validators:l,classGroupId:o}),Rs="-",Wg=[],cN="arbitrary..",uN=n=>{const l=fN(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return dN(f);const h=f.split(Rs),y=h[0]===""&&h.length>1?1:0;return w0(h,y,l)},getConflictingClassGroupIds:(f,h)=>{if(h){const y=i[f],g=o[f];return y?g?iN(g,y):y:g||Wg}return o[f]||Wg}}},w0=(n,l,o)=>{if(n.length-l===0)return o.classGroupId;const u=n[l],d=o.nextPart.get(u);if(d){const g=w0(n,l+1,d);if(g)return g}const f=o.validators;if(f===null)return;const h=l===0?n.join(Rs):n.slice(l).join(Rs),y=f.length;for(let g=0;g<y;g++){const x=f[g];if(x.validator(h))return x.classGroupId}},dN=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const l=n.slice(1,-1),o=l.indexOf(":"),i=l.slice(0,o);return i?cN+i:void 0})(),fN=n=>{const{theme:l,classGroups:o}=n;return mN(o,l)},mN=(n,l)=>{const o=S0();for(const i in n){const u=n[i];df(u,o,i,l)}return o},df=(n,l,o,i)=>{const u=n.length;for(let d=0;d<u;d++){const f=n[d];hN(f,l,o,i)}},hN=(n,l,o,i)=>{if(typeof n=="string"){pN(n,l,o);return}if(typeof n=="function"){gN(n,l,o,i);return}vN(n,l,o,i)},pN=(n,l,o)=>{const i=n===""?l:E0(l,n);i.classGroupId=o},gN=(n,l,o,i)=>{if(yN(n)){df(n(i),l,o,i);return}l.validators===null&&(l.validators=[]),l.validators.push(sN(o,n))},vN=(n,l,o,i)=>{const u=Object.entries(n),d=u.length;for(let f=0;f<d;f++){const[h,y]=u[f];df(y,E0(l,h),o,i)}},E0=(n,l)=>{let o=n;const i=l.split(Rs),u=i.length;for(let d=0;d<u;d++){const f=i[d];let h=o.nextPart.get(f);h||(h=S0(),o.nextPart.set(f,h)),o=h}return o},yN=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,bN=n=>{if(n<1)return{get:()=>{},set:()=>{}};let l=0,o=Object.create(null),i=Object.create(null);const u=(d,f)=>{o[d]=f,l++,l>n&&(l=0,i=o,o=Object.create(null))};return{get(d){let f=o[d];if(f!==void 0)return f;if((f=i[d])!==void 0)return u(d,f),f},set(d,f){d in o?o[d]=f:u(d,f)}}},Vd="!",ev=":",xN=[],tv=(n,l,o,i,u)=>({modifiers:n,hasImportantModifier:l,baseClassName:o,maybePostfixModifierPosition:i,isExternal:u}),SN=n=>{const{prefix:l,experimentalParseClassName:o}=n;let i=u=>{const d=[];let f=0,h=0,y=0,g;const x=u.length;for(let E=0;E<x;E++){const R=u[E];if(f===0&&h===0){if(R===ev){d.push(u.slice(y,E)),y=E+1;continue}if(R==="/"){g=E;continue}}R==="["?f++:R==="]"?f--:R==="("?h++:R===")"&&h--}const p=d.length===0?u:u.slice(y);let w=p,C=!1;p.endsWith(Vd)?(w=p.slice(0,-1),C=!0):p.startsWith(Vd)&&(w=p.slice(1),C=!0);const N=g&&g>y?g-y:void 0;return tv(d,C,w,N)};if(l){const u=l+ev,d=i;i=f=>f.startsWith(u)?d(f.slice(u.length)):tv(xN,!1,f,void 0,!0)}if(o){const u=i;i=d=>o({className:d,parseClassName:u})}return i},wN=n=>{const l=new Map;return n.orderSensitiveModifiers.forEach((o,i)=>{l.set(o,1e6+i)}),o=>{const i=[];let u=[];for(let d=0;d<o.length;d++){const f=o[d],h=f[0]==="[",y=l.has(f);h||y?(u.length>0&&(u.sort(),i.push(...u),u=[]),i.push(f)):u.push(f)}return u.length>0&&(u.sort(),i.push(...u)),i}},EN=n=>({cache:bN(n.cacheSize),parseClassName:SN(n),sortModifiers:wN(n),...uN(n)}),NN=/\s+/,CN=(n,l)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:u,sortModifiers:d}=l,f=[],h=n.trim().split(NN);let y="";for(let g=h.length-1;g>=0;g-=1){const x=h[g],{isExternal:p,modifiers:w,hasImportantModifier:C,baseClassName:N,maybePostfixModifierPosition:E}=o(x);if(p){y=x+(y.length>0?" "+y:y);continue}let R=!!E,T=i(R?N.substring(0,E):N);if(!T){if(!R){y=x+(y.length>0?" "+y:y);continue}if(T=i(N),!T){y=x+(y.length>0?" "+y:y);continue}R=!1}const j=w.length===0?"":w.length===1?w[0]:d(w).join(":"),O=C?j+Vd:j,k=O+T;if(f.indexOf(k)>-1)continue;f.push(k);const q=u(T,R);for(let $=0;$<q.length;++$){const B=q[$];f.push(O+B)}y=x+(y.length>0?" "+y:y)}return y},TN=(...n)=>{let l=0,o,i,u="";for(;l<n.length;)(o=n[l++])&&(i=N0(o))&&(u&&(u+=" "),u+=i);return u},N0=n=>{if(typeof n=="string")return n;let l,o="";for(let i=0;i<n.length;i++)n[i]&&(l=N0(n[i]))&&(o&&(o+=" "),o+=l);return o},RN=(n,...l)=>{let o,i,u,d;const f=y=>{const g=l.reduce((x,p)=>p(x),n());return o=EN(g),i=o.cache.get,u=o.cache.set,d=h,h(y)},h=y=>{const g=i(y);if(g)return g;const x=CN(y,o);return u(y,x),x};return d=f,(...y)=>d(TN(...y))},AN=[],vt=n=>{const l=o=>o[n]||AN;return l.isThemeGetter=!0,l},C0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,T0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_N=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,jN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ON=/\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$/,MN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,DN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qa=n=>_N.test(n),_e=n=>!!n&&!Number.isNaN(Number(n)),Ka=n=>!!n&&Number.isInteger(Number(n)),Cd=n=>n.endsWith("%")&&_e(n.slice(0,-1)),ha=n=>jN.test(n),R0=()=>!0,zN=n=>ON.test(n)&&!MN.test(n),ff=()=>!1,LN=n=>DN.test(n),UN=n=>kN.test(n),BN=n=>!he(n)&&!pe(n),HN=n=>el(n,j0,ff),he=n=>C0.test(n),Cl=n=>el(n,O0,zN),nv=n=>el(n,KN,_e),VN=n=>el(n,D0,R0),qN=n=>el(n,M0,ff),av=n=>el(n,A0,ff),YN=n=>el(n,_0,UN),ss=n=>el(n,k0,LN),pe=n=>T0.test(n),Do=n=>Dl(n,O0),$N=n=>Dl(n,M0),lv=n=>Dl(n,A0),GN=n=>Dl(n,j0),XN=n=>Dl(n,_0),cs=n=>Dl(n,k0,!0),QN=n=>Dl(n,D0,!0),el=(n,l,o)=>{const i=C0.exec(n);return i?i[1]?l(i[1]):o(i[2]):!1},Dl=(n,l,o=!1)=>{const i=T0.exec(n);return i?i[1]?l(i[1]):o:!1},A0=n=>n==="position"||n==="percentage",_0=n=>n==="image"||n==="url",j0=n=>n==="length"||n==="size"||n==="bg-size",O0=n=>n==="length",KN=n=>n==="number",M0=n=>n==="family-name",D0=n=>n==="number"||n==="weight",k0=n=>n==="shadow",ZN=()=>{const n=vt("color"),l=vt("font"),o=vt("text"),i=vt("font-weight"),u=vt("tracking"),d=vt("leading"),f=vt("breakpoint"),h=vt("container"),y=vt("spacing"),g=vt("radius"),x=vt("shadow"),p=vt("inset-shadow"),w=vt("text-shadow"),C=vt("drop-shadow"),N=vt("blur"),E=vt("perspective"),R=vt("aspect"),T=vt("ease"),j=vt("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],q=()=>[...k(),pe,he],$=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],V=()=>[pe,he,y],te=()=>[Qa,"full","auto",...V()],le=()=>[Ka,"none","subgrid",pe,he],ve=()=>["auto",{span:["full",Ka,pe,he]},Ka,pe,he],ie=()=>[Ka,"auto",pe,he],ce=()=>["auto","min","max","fr",pe,he],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...V()],G=()=>[Qa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],I=()=>[Qa,"screen","full","dvw","lvw","svw","min","max","fit",...V()],se=()=>[Qa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],F=()=>[n,pe,he],_=()=>[...k(),lv,av,{position:[pe,he]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",GN,HN,{size:[pe,he]}],J=()=>[Cd,Do,Cl],W=()=>["","none","full",g,pe,he],ae=()=>["",_e,Do,Cl],ee=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[_e,Cd,lv,av],Te=()=>["","none",N,pe,he],Ee=()=>["none",_e,pe,he],we=()=>["none",_e,pe,he],Je=()=>[_e,pe,he],$e=()=>[Qa,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ha],breakpoint:[ha],color:[R0],container:[ha],"drop-shadow":[ha],ease:["in","out","in-out"],font:[BN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ha],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ha],shadow:[ha],spacing:["px",_e],text:[ha],"text-shadow":[ha],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qa,he,pe,R]}],container:["container"],columns:[{columns:[_e,he,pe,h]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"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:q()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{"inset-s":te(),start:te()}],end:[{"inset-e":te(),end:te()}],"inset-bs":[{"inset-bs":te()}],"inset-be":[{"inset-be":te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[Ka,"auto",pe,he]}],basis:[{basis:[Qa,"full","auto",h,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Qa,"auto","initial","none",he]}],grow:[{grow:["",_e,pe,he]}],shrink:[{shrink:["",_e,pe,he]}],order:[{order:[Ka,"first","last","none",pe,he]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:ve()}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:ve()}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"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:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],"inline-size":[{inline:["auto",...I()]}],"min-inline-size":[{"min-inline":["auto",...I()]}],"max-inline-size":[{"max-inline":["none",...I()]}],"block-size":[{block:["auto",...se()]}],"min-block-size":[{"min-block":["auto",...se()]}],"max-block-size":[{"max-block":["none",...se()]}],w:[{w:[h,"screen",...G()]}],"min-w":[{"min-w":[h,"screen","none",...G()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[f]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",o,Do,Cl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,QN,VN]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Cd,he]}],"font-family":[{font:[$N,qN,l]}],"font-features":[{"font-features":[he]}],"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,pe,he]}],"line-clamp":[{"line-clamp":[_e,"none",pe,nv]}],leading:[{leading:[d,...V()]}],"list-image":[{"list-image":["none",pe,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",pe,Cl]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[_e,"auto",pe,he]}],"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",pe,he]}],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",pe,he]}],"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:X()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ka,pe,he],radial:["",pe,he],conic:[Ka,pe,he]},XN,YN]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:J()}],"gradient-via-pos":[{via:J()}],"gradient-to-pos":[{to:J()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,pe,he]}],"outline-w":[{outline:["",_e,Do,Cl]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",x,cs,ss]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",p,cs,ss]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[_e,Cl]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",w,cs,ss]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[_e,pe,he]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"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":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[pe,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":k()}],"mask-image-conic-pos":[{"mask-conic":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:X()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,he]}],filter:[{filter:["","none",pe,he]}],blur:[{blur:Te()}],brightness:[{brightness:[_e,pe,he]}],contrast:[{contrast:[_e,pe,he]}],"drop-shadow":[{"drop-shadow":["","none",C,cs,ss]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",_e,pe,he]}],"hue-rotate":[{"hue-rotate":[_e,pe,he]}],invert:[{invert:["",_e,pe,he]}],saturate:[{saturate:[_e,pe,he]}],sepia:[{sepia:["",_e,pe,he]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,he]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[_e,pe,he]}],"backdrop-contrast":[{"backdrop-contrast":[_e,pe,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,pe,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,pe,he]}],"backdrop-invert":[{"backdrop-invert":["",_e,pe,he]}],"backdrop-opacity":[{"backdrop-opacity":[_e,pe,he]}],"backdrop-saturate":[{"backdrop-saturate":[_e,pe,he]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,pe,he]}],"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",pe,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",pe,he]}],ease:[{ease:["linear","initial",T,pe,he]}],delay:[{delay:[_e,pe,he]}],animate:[{animate:["none",j,pe,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,pe,he]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:Ee()}],"rotate-x":[{"rotate-x":Ee()}],"rotate-y":[{"rotate-y":Ee()}],"rotate-z":[{"rotate-z":Ee()}],scale:[{scale:we()}],"scale-x":[{"scale-x":we()}],"scale-y":[{"scale-y":we()}],"scale-z":[{"scale-z":we()}],"scale-3d":["scale-3d"],skew:[{skew:Je()}],"skew-x":[{"skew-x":Je()}],"skew-y":[{"skew-y":Je()}],transform:[{transform:[pe,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$e()}],"translate-x":[{"translate-x":$e()}],"translate-y":[{"translate-y":$e()}],"translate-z":[{"translate-z":$e()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"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",pe,he]}],"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",pe,he]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[_e,Do,Cl,nv]}],stroke:[{stroke:["none",...F()]}],"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"]}},PN=RN(ZN);function fe(...n){return PN(x0(n))}const rv=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,ov=x0,z0=(n,l)=>o=>{var i;if((l==null?void 0:l.variants)==null)return ov(n,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:u,defaultVariants:d}=l,f=Object.keys(u).map(g=>{const x=o==null?void 0:o[g],p=d==null?void 0:d[g];if(x===null)return null;const w=rv(x)||rv(p);return u[g][w]}),h=o&&Object.entries(o).reduce((g,x)=>{let[p,w]=x;return w===void 0||(g[p]=w),g},{}),y=l==null||(i=l.compoundVariants)===null||i===void 0?void 0:i.reduce((g,x)=>{let{class:p,className:w,...C}=x;return Object.entries(C).every(N=>{let[E,R]=N;return Array.isArray(R)?R.includes({...d,...h}[E]):{...d,...h}[E]===R})?[...g,p,w]:g},[]);return ov(n,f,y,o==null?void 0:o.class,o==null?void 0:o.className)},IN=z0("inline-flex items-center rounded-[12px] border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function yt({className:n,variant:l,...o}){return m.jsx("div",{className:fe(IN({variant:l}),n),...o})}const FN={online:"bg-green-500",busy:"bg-yellow-500",offline:"bg-red-500"};function L0({status:n}){return m.jsxs("span",{className:"relative inline-flex h-2.5 w-2.5",children:[n==="online"&&m.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-green-500 opacity-30"}),m.jsx("span",{className:fe("relative inline-flex h-2.5 w-2.5 rounded-full",FN[n])})]})}function JN({role:n}){return m.jsx(yt,{variant:n==="leader"?"default":"secondary",className:"text-[11px]",children:n})}const WN={pending:{variant:"secondary",dotClass:"bg-muted-foreground",className:"border-transparent bg-muted/55 text-muted-foreground"},assigned:{variant:"outline",dotClass:"bg-teal-500",className:"border-teal-500/20 bg-teal-500/8 text-teal-700 dark:text-teal-300"},running:{variant:"outline",dotClass:"bg-amber-500",className:"border-amber-500/22 bg-amber-500/9 text-amber-700 dark:text-amber-300"},completed:{variant:"outline",dotClass:"bg-emerald-500",className:"border-emerald-500/18 bg-emerald-500/8 text-emerald-700 dark:text-emerald-300"},failed:{variant:"destructive",dotClass:"bg-red-200",className:"border-destructive/20 bg-destructive/90 text-destructive-foreground"},cancelled:{variant:"secondary",dotClass:"bg-muted-foreground",className:"border-transparent bg-muted/55 text-muted-foreground"},archived:{variant:"secondary",dotClass:"bg-slate-400",className:"border-transparent bg-muted/50 text-muted-foreground"}};function V3({status:n}){const l=WN[n];return m.jsxs(yt,{variant:l.variant,className:fe("gap-1 rounded-[9px] px-1.5 py-0 text-[10px] font-medium leading-4 shadow-none",l.className),children:[m.jsx("span",{className:fe("h-[5px] w-[5px] rounded-full",l.dotClass)}),n]})}const eC={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function q3({priority:n}){const l=eC[n];return m.jsx(yt,{variant:l.variant,className:"rounded-[9px] px-1.5 py-0 text-[10px] leading-4 shadow-none",children:l.label})}function tC(n){if(typeof document>"u")return;let l=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",l.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}const nC=n=>{switch(n){case"success":return rC;case"info":return iC;case"warning":return oC;case"error":return sC;default:return null}},aC=Array(12).fill(0),lC=({visible:n,className:l})=>ne.createElement("div",{className:["sonner-loading-wrapper",l].filter(Boolean).join(" "),"data-visible":n},ne.createElement("div",{className:"sonner-spinner"},aC.map((o,i)=>ne.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),rC=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.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"})),oC=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ne.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"})),iC=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.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"})),sC=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.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"})),cC=ne.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"},ne.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ne.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),uC=()=>{const[n,l]=ne.useState(document.hidden);return ne.useEffect(()=>{const o=()=>{l(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),n};let qd=1;class dC{constructor(){this.subscribe=l=>(this.subscribers.push(l),()=>{const o=this.subscribers.indexOf(l);this.subscribers.splice(o,1)}),this.publish=l=>{this.subscribers.forEach(o=>o(l))},this.addToast=l=>{this.publish(l),this.toasts=[...this.toasts,l]},this.create=l=>{var o;const{message:i,...u}=l,d=typeof(l==null?void 0:l.id)=="number"||((o=l.id)==null?void 0:o.length)>0?l.id:qd++,f=this.toasts.find(y=>y.id===d),h=l.dismissible===void 0?!0:l.dismissible;return this.dismissedToasts.has(d)&&this.dismissedToasts.delete(d),f?this.toasts=this.toasts.map(y=>y.id===d?(this.publish({...y,...l,id:d,title:i}),{...y,...l,id:d,dismissible:h,title:i}):y):this.addToast({title:i,...u,dismissible:h,id:d}),d},this.dismiss=l=>(l?(this.dismissedToasts.add(l),requestAnimationFrame(()=>this.subscribers.forEach(o=>o({id:l,dismiss:!0})))):this.toasts.forEach(o=>{this.subscribers.forEach(i=>i({id:o.id,dismiss:!0}))}),l),this.message=(l,o)=>this.create({...o,message:l}),this.error=(l,o)=>this.create({...o,message:l,type:"error"}),this.success=(l,o)=>this.create({...o,type:"success",message:l}),this.info=(l,o)=>this.create({...o,type:"info",message:l}),this.warning=(l,o)=>this.create({...o,type:"warning",message:l}),this.loading=(l,o)=>this.create({...o,type:"loading",message:l}),this.promise=(l,o)=>{if(!o)return;let i;o.loading!==void 0&&(i=this.create({...o,promise:l,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));const u=Promise.resolve(l instanceof Function?l():l);let d=i!==void 0,f;const h=u.then(async g=>{if(f=["resolve",g],ne.isValidElement(g))d=!1,this.create({id:i,type:"default",message:g});else if(mC(g)&&!g.ok){d=!1;const p=typeof o.error=="function"?await o.error(`HTTP error! status: ${g.status}`):o.error,w=typeof o.description=="function"?await o.description(`HTTP error! status: ${g.status}`):o.description,N=typeof p=="object"&&!ne.isValidElement(p)?p:{message:p};this.create({id:i,type:"error",description:w,...N})}else if(g instanceof Error){d=!1;const p=typeof o.error=="function"?await o.error(g):o.error,w=typeof o.description=="function"?await o.description(g):o.description,N=typeof p=="object"&&!ne.isValidElement(p)?p:{message:p};this.create({id:i,type:"error",description:w,...N})}else if(o.success!==void 0){d=!1;const p=typeof o.success=="function"?await o.success(g):o.success,w=typeof o.description=="function"?await o.description(g):o.description,N=typeof p=="object"&&!ne.isValidElement(p)?p:{message:p};this.create({id:i,type:"success",description:w,...N})}}).catch(async g=>{if(f=["reject",g],o.error!==void 0){d=!1;const x=typeof o.error=="function"?await o.error(g):o.error,p=typeof o.description=="function"?await o.description(g):o.description,C=typeof x=="object"&&!ne.isValidElement(x)?x:{message:x};this.create({id:i,type:"error",description:p,...C})}}).finally(()=>{d&&(this.dismiss(i),i=void 0),o.finally==null||o.finally.call(o)}),y=()=>new Promise((g,x)=>h.then(()=>f[0]==="reject"?x(f[1]):g(f[1])).catch(x));return typeof i!="string"&&typeof i!="number"?{unwrap:y}:Object.assign(i,{unwrap:y})},this.custom=(l,o)=>{const i=(o==null?void 0:o.id)||qd++;return this.create({jsx:l(i),id:i,...o}),i},this.getActiveToasts=()=>this.toasts.filter(l=>!this.dismissedToasts.has(l.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Qt=new dC,fC=(n,l)=>{const o=(l==null?void 0:l.id)||qd++;return Qt.addToast({title:n,...l,id:o}),o},mC=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",hC=fC,pC=()=>Qt.toasts,gC=()=>Qt.getActiveToasts(),wt=Object.assign(hC,{success:Qt.success,info:Qt.info,warning:Qt.warning,error:Qt.error,custom:Qt.custom,message:Qt.message,promise:Qt.promise,dismiss:Qt.dismiss,loading:Qt.loading},{getHistory:pC,getToasts:gC});tC("[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 us(n){return n.label!==void 0}const vC=3,yC="24px",bC="16px",iv=4e3,xC=356,SC=14,wC=45,EC=200;function Ln(...n){return n.filter(Boolean).join(" ")}function NC(n){const[l,o]=n.split("-"),i=[];return l&&i.push(l),o&&i.push(o),i}const CC=n=>{var l,o,i,u,d,f,h,y,g;const{invert:x,toast:p,unstyled:w,interacting:C,setHeights:N,visibleToasts:E,heights:R,index:T,toasts:j,expanded:O,removeToast:k,defaultRichColors:q,closeButton:$,style:B,cancelButtonStyle:V,actionButtonStyle:te,className:le="",descriptionClassName:ve="",duration:ie,position:ce,gap:re,expandByDefault:ue,classNames:M,icons:G,closeButtonAriaLabel:I="Close toast"}=n,[se,F]=ne.useState(null),[_,X]=ne.useState(null),[K,J]=ne.useState(!1),[W,ae]=ne.useState(!1),[ee,oe]=ne.useState(!1),[de,Te]=ne.useState(!1),[Ee,we]=ne.useState(!1),[Je,$e]=ne.useState(0),[zt,Mt]=ne.useState(0),ye=ne.useRef(p.duration||ie||iv),tt=ne.useRef(null),Be=ne.useRef(null),rn=T===0,Kt=T+1<=E,dt=p.type,Ie=p.dismissible!==!1,st=p.className||"",bn=p.descriptionClassName||"",Zt=ne.useMemo(()=>R.findIndex(Ne=>Ne.toastId===p.id)||0,[R,p.id]),Qo=ne.useMemo(()=>{var Ne;return(Ne=p.closeButton)!=null?Ne:$},[p.closeButton,$]),ll=ne.useMemo(()=>p.duration||ie||iv,[p.duration,ie]),Br=ne.useRef(0),Pn=ne.useRef(0),Ko=ne.useRef(0),xa=ne.useRef(null),[rl,Dt]=ce.split("-"),xn=ne.useMemo(()=>R.reduce((Ne,nt,bt)=>bt>=Zt?Ne:Ne+nt.height,0),[R,Zt]),At=uC(),lc=p.invert||x,Hr=dt==="loading";Pn.current=ne.useMemo(()=>Zt*re+xn,[Zt,xn]),ne.useEffect(()=>{ye.current=ll},[ll]),ne.useEffect(()=>{J(!0)},[]),ne.useEffect(()=>{const Ne=Be.current;if(Ne){const nt=Ne.getBoundingClientRect().height;return Mt(nt),N(bt=>[{toastId:p.id,height:nt,position:p.position},...bt]),()=>N(bt=>bt.filter(_t=>_t.toastId!==p.id))}},[N,p.id]),ne.useLayoutEffect(()=>{if(!K)return;const Ne=Be.current,nt=Ne.style.height;Ne.style.height="auto";const bt=Ne.getBoundingClientRect().height;Ne.style.height=nt,Mt(bt),N(_t=>_t.find(rt=>rt.toastId===p.id)?_t.map(rt=>rt.toastId===p.id?{...rt,height:bt}:rt):[{toastId:p.id,height:bt,position:p.position},..._t])},[K,p.title,p.description,N,p.id,p.jsx,p.action,p.cancel]);const jn=ne.useCallback(()=>{ae(!0),$e(Pn.current),N(Ne=>Ne.filter(nt=>nt.toastId!==p.id)),setTimeout(()=>{k(p)},EC)},[p,k,N,Pn]);ne.useEffect(()=>{if(p.promise&&dt==="loading"||p.duration===1/0||p.type==="loading")return;let Ne;return O||C||At?(()=>{if(Ko.current<Br.current){const _t=new Date().getTime()-Br.current;ye.current=ye.current-_t}Ko.current=new Date().getTime()})():(()=>{ye.current!==1/0&&(Br.current=new Date().getTime(),Ne=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),jn()},ye.current))})(),()=>clearTimeout(Ne)},[O,C,p,dt,At,jn]),ne.useEffect(()=>{p.delete&&(jn(),p.onDismiss==null||p.onDismiss.call(p,p))},[jn,p.delete]);function kl(){var Ne;if(G!=null&&G.loading){var nt;return ne.createElement("div",{className:Ln(M==null?void 0:M.loader,p==null||(nt=p.classNames)==null?void 0:nt.loader,"sonner-loader"),"data-visible":dt==="loading"},G.loading)}return ne.createElement(lC,{className:Ln(M==null?void 0:M.loader,p==null||(Ne=p.classNames)==null?void 0:Ne.loader),visible:dt==="loading"})}const zl=p.icon||(G==null?void 0:G[dt])||nC(dt);var ol,On;return ne.createElement("li",{tabIndex:0,ref:Be,className:Ln(le,st,M==null?void 0:M.toast,p==null||(l=p.classNames)==null?void 0:l.toast,M==null?void 0:M.default,M==null?void 0:M[dt],p==null||(o=p.classNames)==null?void 0:o[dt]),"data-sonner-toast":"","data-rich-colors":(ol=p.richColors)!=null?ol:q,"data-styled":!(p.jsx||p.unstyled||w),"data-mounted":K,"data-promise":!!p.promise,"data-swiped":Ee,"data-removed":W,"data-visible":Kt,"data-y-position":rl,"data-x-position":Dt,"data-index":T,"data-front":rn,"data-swiping":ee,"data-dismissible":Ie,"data-type":dt,"data-invert":lc,"data-swipe-out":de,"data-swipe-direction":_,"data-expanded":!!(O||ue&&K),"data-testid":p.testId,style:{"--index":T,"--toasts-before":T,"--z-index":j.length-T,"--offset":`${W?Je:Pn.current}px`,"--initial-height":ue?"auto":`${zt}px`,...B,...p.style},onDragEnd:()=>{oe(!1),F(null),xa.current=null},onPointerDown:Ne=>{Ne.button!==2&&(Hr||!Ie||(tt.current=new Date,$e(Pn.current),Ne.target.setPointerCapture(Ne.pointerId),Ne.target.tagName!=="BUTTON"&&(oe(!0),xa.current={x:Ne.clientX,y:Ne.clientY})))},onPointerUp:()=>{var Ne,nt,bt;if(de||!Ie)return;xa.current=null;const _t=Number(((Ne=Be.current)==null?void 0:Ne.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Sa=Number(((nt=Be.current)==null?void 0:nt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),rt=new Date().getTime()-((bt=tt.current)==null?void 0:bt.getTime()),Lt=se==="x"?_t:Sa,il=Math.abs(Lt)/rt;if(Math.abs(Lt)>=wC||il>.11){$e(Pn.current),p.onDismiss==null||p.onDismiss.call(p,p),X(se==="x"?_t>0?"right":"left":Sa>0?"down":"up"),jn(),Te(!0);return}else{var Ut,Bt;(Ut=Be.current)==null||Ut.style.setProperty("--swipe-amount-x","0px"),(Bt=Be.current)==null||Bt.style.setProperty("--swipe-amount-y","0px")}we(!1),oe(!1),F(null)},onPointerMove:Ne=>{var nt,bt,_t;if(!xa.current||!Ie||((nt=window.getSelection())==null?void 0:nt.toString().length)>0)return;const rt=Ne.clientY-xa.current.y,Lt=Ne.clientX-xa.current.x;var il;const Ut=(il=n.swipeDirections)!=null?il:NC(ce);!se&&(Math.abs(Lt)>1||Math.abs(rt)>1)&&F(Math.abs(Lt)>Math.abs(rt)?"x":"y");let Bt={x:0,y:0};const Ll=Sn=>1/(1.5+Math.abs(Sn)/20);if(se==="y"){if(Ut.includes("top")||Ut.includes("bottom"))if(Ut.includes("top")&&rt<0||Ut.includes("bottom")&&rt>0)Bt.y=rt;else{const Sn=rt*Ll(rt);Bt.y=Math.abs(Sn)<Math.abs(rt)?Sn:rt}}else if(se==="x"&&(Ut.includes("left")||Ut.includes("right")))if(Ut.includes("left")&&Lt<0||Ut.includes("right")&&Lt>0)Bt.x=Lt;else{const Sn=Lt*Ll(Lt);Bt.x=Math.abs(Sn)<Math.abs(Lt)?Sn:Lt}(Math.abs(Bt.x)>0||Math.abs(Bt.y)>0)&&we(!0),(bt=Be.current)==null||bt.style.setProperty("--swipe-amount-x",`${Bt.x}px`),(_t=Be.current)==null||_t.style.setProperty("--swipe-amount-y",`${Bt.y}px`)}},Qo&&!p.jsx&&dt!=="loading"?ne.createElement("button",{"aria-label":I,"data-disabled":Hr,"data-close-button":!0,onClick:Hr||!Ie?()=>{}:()=>{jn(),p.onDismiss==null||p.onDismiss.call(p,p)},className:Ln(M==null?void 0:M.closeButton,p==null||(i=p.classNames)==null?void 0:i.closeButton)},(On=G==null?void 0:G.close)!=null?On:cC):null,(dt||p.icon||p.promise)&&p.icon!==null&&((G==null?void 0:G[dt])!==null||p.icon)?ne.createElement("div",{"data-icon":"",className:Ln(M==null?void 0:M.icon,p==null||(u=p.classNames)==null?void 0:u.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||kl():null,p.type!=="loading"?zl:null):null,ne.createElement("div",{"data-content":"",className:Ln(M==null?void 0:M.content,p==null||(d=p.classNames)==null?void 0:d.content)},ne.createElement("div",{"data-title":"",className:Ln(M==null?void 0:M.title,p==null||(f=p.classNames)==null?void 0:f.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?ne.createElement("div",{"data-description":"",className:Ln(ve,bn,M==null?void 0:M.description,p==null||(h=p.classNames)==null?void 0:h.description)},typeof p.description=="function"?p.description():p.description):null),ne.isValidElement(p.cancel)?p.cancel:p.cancel&&us(p.cancel)?ne.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||V,onClick:Ne=>{us(p.cancel)&&Ie&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Ne),jn())},className:Ln(M==null?void 0:M.cancelButton,p==null||(y=p.classNames)==null?void 0:y.cancelButton)},p.cancel.label):null,ne.isValidElement(p.action)?p.action:p.action&&us(p.action)?ne.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||te,onClick:Ne=>{us(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,Ne),!Ne.defaultPrevented&&jn())},className:Ln(M==null?void 0:M.actionButton,p==null||(g=p.classNames)==null?void 0:g.actionButton)},p.action.label):null)};function sv(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function TC(n,l){const o={};return[n,l].forEach((i,u)=>{const d=u===1,f=d?"--mobile-offset":"--offset",h=d?bC:yC;function y(g){["top","right","bottom","left"].forEach(x=>{o[`${f}-${x}`]=typeof g=="number"?`${g}px`:g})}typeof i=="number"||typeof i=="string"?y(i):typeof i=="object"?["top","right","bottom","left"].forEach(g=>{i[g]===void 0?o[`${f}-${g}`]=h:o[`${f}-${g}`]=typeof i[g]=="number"?`${i[g]}px`:i[g]}):y(h)}),o}const RC=ne.forwardRef(function(l,o){const{id:i,invert:u,position:d="bottom-right",hotkey:f=["altKey","KeyT"],expand:h,closeButton:y,className:g,offset:x,mobileOffset:p,theme:w="light",richColors:C,duration:N,style:E,visibleToasts:R=vC,toastOptions:T,dir:j=sv(),gap:O=SC,icons:k,containerAriaLabel:q="Notifications"}=l,[$,B]=ne.useState([]),V=ne.useMemo(()=>i?$.filter(K=>K.toasterId===i):$.filter(K=>!K.toasterId),[$,i]),te=ne.useMemo(()=>Array.from(new Set([d].concat(V.filter(K=>K.position).map(K=>K.position)))),[V,d]),[le,ve]=ne.useState([]),[ie,ce]=ne.useState(!1),[re,ue]=ne.useState(!1),[M,G]=ne.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),I=ne.useRef(null),se=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=ne.useRef(null),_=ne.useRef(!1),X=ne.useCallback(K=>{B(J=>{var W;return(W=J.find(ae=>ae.id===K.id))!=null&&W.delete||Qt.dismiss(K.id),J.filter(({id:ae})=>ae!==K.id)})},[]);return ne.useEffect(()=>Qt.subscribe(K=>{if(K.dismiss){requestAnimationFrame(()=>{B(J=>J.map(W=>W.id===K.id?{...W,delete:!0}:W))});return}setTimeout(()=>{s0.flushSync(()=>{B(J=>{const W=J.findIndex(ae=>ae.id===K.id);return W!==-1?[...J.slice(0,W),{...J[W],...K},...J.slice(W+1)]:[K,...J]})})})}),[$]),ne.useEffect(()=>{if(w!=="system"){G(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?G("dark"):G("light")),typeof window>"u")return;const K=window.matchMedia("(prefers-color-scheme: dark)");try{K.addEventListener("change",({matches:J})=>{G(J?"dark":"light")})}catch{K.addListener(({matches:W})=>{try{G(W?"dark":"light")}catch(ae){console.error(ae)}})}},[w]),ne.useEffect(()=>{$.length<=1&&ce(!1)},[$]),ne.useEffect(()=>{const K=J=>{var W;if(f.every(oe=>J[oe]||J.code===oe)){var ee;ce(!0),(ee=I.current)==null||ee.focus()}J.code==="Escape"&&(document.activeElement===I.current||(W=I.current)!=null&&W.contains(document.activeElement))&&ce(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[f]),ne.useEffect(()=>{if(I.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,_.current=!1)}},[I.current]),ne.createElement("section",{ref:o,"aria-label":`${q} ${se}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},te.map((K,J)=>{var W;const[ae,ee]=K.split("-");return V.length?ne.createElement("ol",{key:K,dir:j==="auto"?sv():j,tabIndex:-1,ref:I,className:g,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":ae,"data-x-position":ee,style:{"--front-toast-height":`${((W=le[0])==null?void 0:W.height)||0}px`,"--width":`${xC}px`,"--gap":`${O}px`,...E,...TC(x,p)},onBlur:oe=>{_.current&&!oe.currentTarget.contains(oe.relatedTarget)&&(_.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:oe=>{oe.target instanceof HTMLElement&&oe.target.dataset.dismissible==="false"||_.current||(_.current=!0,F.current=oe.relatedTarget)},onMouseEnter:()=>ce(!0),onMouseMove:()=>ce(!0),onMouseLeave:()=>{re||ce(!1)},onDragEnd:()=>ce(!1),onPointerDown:oe=>{oe.target instanceof HTMLElement&&oe.target.dataset.dismissible==="false"||ue(!0)},onPointerUp:()=>ue(!1)},V.filter(oe=>!oe.position&&J===0||oe.position===K).map((oe,de)=>{var Te,Ee;return ne.createElement(CC,{key:oe.id,icons:k,index:de,toast:oe,defaultRichColors:C,duration:(Te=T==null?void 0:T.duration)!=null?Te:N,className:T==null?void 0:T.className,descriptionClassName:T==null?void 0:T.descriptionClassName,invert:u,visibleToasts:R,closeButton:(Ee=T==null?void 0:T.closeButton)!=null?Ee:y,interacting:re,position:K,style:T==null?void 0:T.style,unstyled:T==null?void 0:T.unstyled,classNames:T==null?void 0:T.classNames,cancelButtonStyle:T==null?void 0:T.cancelButtonStyle,actionButtonStyle:T==null?void 0:T.actionButtonStyle,closeButtonAriaLabel:T==null?void 0:T.closeButtonAriaLabel,removeToast:X,toasts:V.filter(we=>we.position==oe.position),heights:le.filter(we=>we.position==oe.position),setHeights:ve,expandByDefault:h,gap:O,expanded:ie,swipeDirections:l.swipeDirections})})):null}))}),Un=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:fe("rounded-[18px] border bg-card text-card-foreground shadow-sm",n),...l}));Un.displayName="Card";const Bn=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:fe("flex flex-col space-y-1.5 p-6",n),...l}));Bn.displayName="CardHeader";const Hn=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:fe("text-2xl font-semibold leading-none tracking-tight",n),...l}));Hn.displayName="CardTitle";const Vn=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:fe("text-sm text-muted-foreground",n),...l}));Vn.displayName="CardDescription";const qn=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:fe("p-6 pt-0",n),...l}));qn.displayName="CardContent";const AC=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:fe("flex items-center p-6 pt-0",n),...l}));AC.displayName="CardFooter";function cv(n,l){if(typeof n=="function")return n(l);n!=null&&(n.current=l)}function mf(...n){return l=>{let o=!1;const i=n.map(u=>{const d=cv(u,l);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let u=0;u<i.length;u++){const d=i[u];typeof d=="function"?d():cv(n[u],null)}}}}function Fe(...n){return v.useCallback(mf(...n),n)}var _C=Symbol.for("react.lazy"),As=nf[" use ".trim().toString()];function jC(n){return typeof n=="object"&&n!==null&&"then"in n}function U0(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===_C&&"_payload"in n&&jC(n._payload)}function OC(n){const l=DC(n),o=v.forwardRef((i,u)=>{let{children:d,...f}=i;U0(d)&&typeof As=="function"&&(d=As(d._payload));const h=v.Children.toArray(d),y=h.find(zC);if(y){const g=y.props.children,x=h.map(p=>p===y?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:p);return m.jsx(l,{...f,ref:u,children:v.isValidElement(g)?v.cloneElement(g,void 0,x):null})}return m.jsx(l,{...f,ref:u,children:d})});return o.displayName=`${n}.Slot`,o}var MC=OC("Slot");function DC(n){const l=v.forwardRef((o,i)=>{let{children:u,...d}=o;if(U0(u)&&typeof As=="function"&&(u=As(u._payload)),v.isValidElement(u)){const f=UC(u),h=LC(d,u.props);return u.type!==v.Fragment&&(h.ref=i?mf(i,f):f),v.cloneElement(u,h)}return v.Children.count(u)>1?v.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var kC=Symbol("radix.slottable");function zC(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===kC}function LC(n,l){const o={...l};for(const i in l){const u=n[i],d=l[i];/^on[A-Z]/.test(i)?u&&d?o[i]=(...h)=>{const y=d(...h);return u(...h),y}:u&&(o[i]=u):i==="style"?o[i]={...u,...d}:i==="className"&&(o[i]=[u,d].filter(Boolean).join(" "))}return{...n,...o}}function UC(n){var i,u;let l=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?n.ref:(l=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}const hf=z0("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[16px] text-sm font-semibold transition-all duration-200 ease-out hover:-translate-y-px focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 active:translate-y-0 active:scale-[0.985] disabled:pointer-events-none disabled:translate-y-0 disabled:scale-100 disabled:opacity-50 disabled:shadow-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"border border-primary/15 bg-primary text-primary-foreground shadow-[0_14px_34px_-20px_hsl(var(--primary)/0.9)] hover:bg-primary/90 hover:shadow-[0_18px_42px_-22px_hsl(var(--primary)/0.95)]",destructive:"border border-destructive/15 bg-destructive text-destructive-foreground shadow-[0_14px_34px_-20px_hsl(var(--destructive)/0.8)] hover:bg-destructive/90",outline:"border border-input/80 bg-background/72 shadow-sm backdrop-blur hover:border-primary/35 hover:bg-accent/70 hover:text-accent-foreground",secondary:"border border-transparent bg-secondary/88 text-secondary-foreground shadow-sm hover:bg-secondary",ghost:"hover:bg-accent/72 hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-[14px] px-3",lg:"h-11 rounded-[18px] px-8",icon:"h-10 w-10 rounded-[16px]"}},defaultVariants:{variant:"default",size:"default"}}),Qn=v.forwardRef(({className:n,variant:l,size:o,asChild:i=!1,...u},d)=>{const f=i?MC:"button";return m.jsx(f,{className:fe(hf({variant:l,size:o,className:n})),ref:d,...u})});Qn.displayName="Button";function Me(n,l,{checkForDefaultPrevented:o=!0}={}){return function(u){if(n==null||n(u),o===!1||!u.defaultPrevented)return l==null?void 0:l(u)}}function BC(n,l){const o=v.createContext(l),i=d=>{const{children:f,...h}=d,y=v.useMemo(()=>h,Object.values(h));return m.jsx(o.Provider,{value:y,children:f})};i.displayName=n+"Provider";function u(d){const f=v.useContext(o);if(f)return f;if(l!==void 0)return l;throw new Error(`\`${d}\` must be used within \`${n}\``)}return[i,u]}function tl(n,l=[]){let o=[];function i(d,f){const h=v.createContext(f),y=o.length;o=[...o,f];const g=p=>{var T;const{scope:w,children:C,...N}=p,E=((T=w==null?void 0:w[n])==null?void 0:T[y])||h,R=v.useMemo(()=>N,Object.values(N));return m.jsx(E.Provider,{value:R,children:C})};g.displayName=d+"Provider";function x(p,w){var E;const C=((E=w==null?void 0:w[n])==null?void 0:E[y])||h,N=v.useContext(C);if(N)return N;if(f!==void 0)return f;throw new Error(`\`${p}\` must be used within \`${d}\``)}return[g,x]}const u=()=>{const d=o.map(f=>v.createContext(f));return function(h){const y=(h==null?void 0:h[n])||d;return v.useMemo(()=>({[`__scope${n}`]:{...h,[n]:y}}),[h,y])}};return u.scopeName=n,[i,HC(u,...l)]}function HC(...n){const l=n[0];if(n.length===1)return l;const o=()=>{const i=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(d){const f=i.reduce((h,{useScope:y,scopeName:g})=>{const p=y(d)[`__scope${g}`];return{...h,...p}},{});return v.useMemo(()=>({[`__scope${l.scopeName}`]:f}),[f])}};return o.scopeName=l.scopeName,o}var Ot=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},VC=nf[" useId ".trim().toString()]||(()=>{}),qC=0;function Pa(n){const[l,o]=v.useState(VC());return Ot(()=>{o(i=>i??String(qC++))},[n]),l?`radix-${l}`:""}var YC=nf[" useInsertionEffect ".trim().toString()]||Ot;function _r({prop:n,defaultProp:l,onChange:o=()=>{},caller:i}){const[u,d,f]=$C({defaultProp:l,onChange:o}),h=n!==void 0,y=h?n:u;{const x=v.useRef(n!==void 0);v.useEffect(()=>{const p=x.current;p!==h&&console.warn(`${i} is changing from ${p?"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 g=v.useCallback(x=>{var p;if(h){const w=GC(x)?x(n):x;w!==n&&((p=f.current)==null||p.call(f,w))}else d(x)},[h,n,d,f]);return[y,g]}function $C({defaultProp:n,onChange:l}){const[o,i]=v.useState(n),u=v.useRef(o),d=v.useRef(l);return YC(()=>{d.current=l},[l]),v.useEffect(()=>{var f;u.current!==o&&((f=d.current)==null||f.call(d,o),u.current=o)},[o,u]),[o,i,d]}function GC(n){return typeof n=="function"}function Ho(n){const l=XC(n),o=v.forwardRef((i,u)=>{const{children:d,...f}=i,h=v.Children.toArray(d),y=h.find(KC);if(y){const g=y.props.children,x=h.map(p=>p===y?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:p);return m.jsx(l,{...f,ref:u,children:v.isValidElement(g)?v.cloneElement(g,void 0,x):null})}return m.jsx(l,{...f,ref:u,children:d})});return o.displayName=`${n}.Slot`,o}function XC(n){const l=v.forwardRef((o,i)=>{const{children:u,...d}=o;if(v.isValidElement(u)){const f=PC(u),h=ZC(d,u.props);return u.type!==v.Fragment&&(h.ref=i?mf(i,f):f),v.cloneElement(u,h)}return v.Children.count(u)>1?v.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var B0=Symbol("radix.slottable");function QC(n){const l=({children:o})=>m.jsx(m.Fragment,{children:o});return l.displayName=`${n}.Slottable`,l.__radixId=B0,l}function KC(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===B0}function ZC(n,l){const o={...l};for(const i in l){const u=n[i],d=l[i];/^on[A-Z]/.test(i)?u&&d?o[i]=(...h)=>{const y=d(...h);return u(...h),y}:u&&(o[i]=u):i==="style"?o[i]={...u,...d}:i==="className"&&(o[i]=[u,d].filter(Boolean).join(" "))}return{...n,...o}}function PC(n){var i,u;let l=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?n.ref:(l=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var IC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=IC.reduce((n,l)=>{const o=Ho(`Primitive.${l}`),i=v.forwardRef((u,d)=>{const{asChild:f,...h}=u,y=f?o:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(y,{...h,ref:d})});return i.displayName=`Primitive.${l}`,{...n,[l]:i}},{});function FC(n,l){n&&$o.flushSync(()=>n.dispatchEvent(l))}function Fa(n){const l=v.useRef(n);return v.useEffect(()=>{l.current=n}),v.useMemo(()=>(...o)=>{var i;return(i=l.current)==null?void 0:i.call(l,...o)},[])}function JC(n,l=globalThis==null?void 0:globalThis.document){const o=Fa(n);v.useEffect(()=>{const i=u=>{u.key==="Escape"&&o(u)};return l.addEventListener("keydown",i,{capture:!0}),()=>l.removeEventListener("keydown",i,{capture:!0})},[o,l])}var WC="DismissableLayer",Yd="dismissableLayer.update",eT="dismissableLayer.pointerDownOutside",tT="dismissableLayer.focusOutside",uv,H0=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pf=v.forwardRef((n,l)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,...y}=n,g=v.useContext(H0),[x,p]=v.useState(null),w=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,C]=v.useState({}),N=Fe(l,B=>p(B)),E=Array.from(g.layers),[R]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),T=E.indexOf(R),j=x?E.indexOf(x):-1,O=g.layersWithOutsidePointerEventsDisabled.size>0,k=j>=T,q=lT(B=>{const V=B.target,te=[...g.branches].some(le=>le.contains(V));!k||te||(u==null||u(B),f==null||f(B),B.defaultPrevented||h==null||h())},w),$=rT(B=>{const V=B.target;[...g.branches].some(le=>le.contains(V))||(d==null||d(B),f==null||f(B),B.defaultPrevented||h==null||h())},w);return JC(B=>{j===g.layers.size-1&&(i==null||i(B),!B.defaultPrevented&&h&&(B.preventDefault(),h()))},w),v.useEffect(()=>{if(x)return o&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(uv=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(x)),g.layers.add(x),dv(),()=>{o&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=uv)}},[x,w,o,g]),v.useEffect(()=>()=>{x&&(g.layers.delete(x),g.layersWithOutsidePointerEventsDisabled.delete(x),dv())},[x,g]),v.useEffect(()=>{const B=()=>C({});return document.addEventListener(Yd,B),()=>document.removeEventListener(Yd,B)},[]),m.jsx(Ue.div,{...y,ref:N,style:{pointerEvents:O?k?"auto":"none":void 0,...n.style},onFocusCapture:Me(n.onFocusCapture,$.onFocusCapture),onBlurCapture:Me(n.onBlurCapture,$.onBlurCapture),onPointerDownCapture:Me(n.onPointerDownCapture,q.onPointerDownCapture)})});pf.displayName=WC;var nT="DismissableLayerBranch",aT=v.forwardRef((n,l)=>{const o=v.useContext(H0),i=v.useRef(null),u=Fe(l,i);return v.useEffect(()=>{const d=i.current;if(d)return o.branches.add(d),()=>{o.branches.delete(d)}},[o.branches]),m.jsx(Ue.div,{...n,ref:u})});aT.displayName=nT;function lT(n,l=globalThis==null?void 0:globalThis.document){const o=Fa(n),i=v.useRef(!1),u=v.useRef(()=>{});return v.useEffect(()=>{const d=h=>{if(h.target&&!i.current){let y=function(){V0(eT,o,g,{discrete:!0})};const g={originalEvent:h};h.pointerType==="touch"?(l.removeEventListener("click",u.current),u.current=y,l.addEventListener("click",u.current,{once:!0})):y()}else l.removeEventListener("click",u.current);i.current=!1},f=window.setTimeout(()=>{l.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(f),l.removeEventListener("pointerdown",d),l.removeEventListener("click",u.current)}},[l,o]),{onPointerDownCapture:()=>i.current=!0}}function rT(n,l=globalThis==null?void 0:globalThis.document){const o=Fa(n),i=v.useRef(!1);return v.useEffect(()=>{const u=d=>{d.target&&!i.current&&V0(tT,o,{originalEvent:d},{discrete:!1})};return l.addEventListener("focusin",u),()=>l.removeEventListener("focusin",u)},[l,o]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function dv(){const n=new CustomEvent(Yd);document.dispatchEvent(n)}function V0(n,l,o,{discrete:i}){const u=o.originalEvent.target,d=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});l&&u.addEventListener(n,l,{once:!0}),i?FC(u,d):u.dispatchEvent(d)}var Td="focusScope.autoFocusOnMount",Rd="focusScope.autoFocusOnUnmount",fv={bubbles:!1,cancelable:!0},oT="FocusScope",gf=v.forwardRef((n,l)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:u,onUnmountAutoFocus:d,...f}=n,[h,y]=v.useState(null),g=Fa(u),x=Fa(d),p=v.useRef(null),w=Fe(l,E=>y(E)),C=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let E=function(O){if(C.paused||!h)return;const k=O.target;h.contains(k)?p.current=k:Za(p.current,{select:!0})},R=function(O){if(C.paused||!h)return;const k=O.relatedTarget;k!==null&&(h.contains(k)||Za(p.current,{select:!0}))},T=function(O){if(document.activeElement===document.body)for(const q of O)q.removedNodes.length>0&&Za(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",R);const j=new MutationObserver(T);return h&&j.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",R),j.disconnect()}}},[i,h,C.paused]),v.useEffect(()=>{if(h){hv.add(C);const E=document.activeElement;if(!h.contains(E)){const T=new CustomEvent(Td,fv);h.addEventListener(Td,g),h.dispatchEvent(T),T.defaultPrevented||(iT(fT(q0(h)),{select:!0}),document.activeElement===E&&Za(h))}return()=>{h.removeEventListener(Td,g),setTimeout(()=>{const T=new CustomEvent(Rd,fv);h.addEventListener(Rd,x),h.dispatchEvent(T),T.defaultPrevented||Za(E??document.body,{select:!0}),h.removeEventListener(Rd,x),hv.remove(C)},0)}}},[h,g,x,C]);const N=v.useCallback(E=>{if(!o&&!i||C.paused)return;const R=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,T=document.activeElement;if(R&&T){const j=E.currentTarget,[O,k]=sT(j);O&&k?!E.shiftKey&&T===k?(E.preventDefault(),o&&Za(O,{select:!0})):E.shiftKey&&T===O&&(E.preventDefault(),o&&Za(k,{select:!0})):T===j&&E.preventDefault()}},[o,i,C.paused]);return m.jsx(Ue.div,{tabIndex:-1,...f,ref:w,onKeyDown:N})});gf.displayName=oT;function iT(n,{select:l=!1}={}){const o=document.activeElement;for(const i of n)if(Za(i,{select:l}),document.activeElement!==o)return}function sT(n){const l=q0(n),o=mv(l,n),i=mv(l.reverse(),n);return[o,i]}function q0(n){const l=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const u=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||u?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)l.push(o.currentNode);return l}function mv(n,l){for(const o of n)if(!cT(o,{upTo:l}))return o}function cT(n,{upTo:l}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(l!==void 0&&n===l)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function uT(n){return n instanceof HTMLInputElement&&"select"in n}function Za(n,{select:l=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&uT(n)&&l&&n.select()}}var hv=dT();function dT(){let n=[];return{add(l){const o=n[0];l!==o&&(o==null||o.pause()),n=pv(n,l),n.unshift(l)},remove(l){var o;n=pv(n,l),(o=n[0])==null||o.resume()}}}function pv(n,l){const o=[...n],i=o.indexOf(l);return i!==-1&&o.splice(i,1),o}function fT(n){return n.filter(l=>l.tagName!=="A")}var mT="Portal",vf=v.forwardRef((n,l)=>{var h;const{container:o,...i}=n,[u,d]=v.useState(!1);Ot(()=>d(!0),[]);const f=o||u&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return f?s0.createPortal(m.jsx(Ue.div,{...i,ref:l}),f):null});vf.displayName=mT;function hT(n,l){return v.useReducer((o,i)=>l[o][i]??o,n)}var kr=n=>{const{present:l,children:o}=n,i=pT(l),u=typeof o=="function"?o({present:i.isPresent}):v.Children.only(o),d=Fe(i.ref,gT(u));return typeof o=="function"||i.isPresent?v.cloneElement(u,{ref:d}):null};kr.displayName="Presence";function pT(n){const[l,o]=v.useState(),i=v.useRef(null),u=v.useRef(n),d=v.useRef("none"),f=n?"mounted":"unmounted",[h,y]=hT(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=ds(i.current);d.current=h==="mounted"?g:"none"},[h]),Ot(()=>{const g=i.current,x=u.current;if(x!==n){const w=d.current,C=ds(g);n?y("MOUNT"):C==="none"||(g==null?void 0:g.display)==="none"?y("UNMOUNT"):y(x&&w!==C?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,y]),Ot(()=>{if(l){let g;const x=l.ownerDocument.defaultView??window,p=C=>{const E=ds(i.current).includes(CSS.escape(C.animationName));if(C.target===l&&E&&(y("ANIMATION_END"),!u.current)){const R=l.style.animationFillMode;l.style.animationFillMode="forwards",g=x.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=R)})}},w=C=>{C.target===l&&(d.current=ds(i.current))};return l.addEventListener("animationstart",w),l.addEventListener("animationcancel",p),l.addEventListener("animationend",p),()=>{x.clearTimeout(g),l.removeEventListener("animationstart",w),l.removeEventListener("animationcancel",p),l.removeEventListener("animationend",p)}}else y("ANIMATION_END")},[l,y]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:v.useCallback(g=>{i.current=g?getComputedStyle(g):null,o(g)},[])}}function ds(n){return(n==null?void 0:n.animationName)||"none"}function gT(n){var i,u;let l=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?n.ref:(l=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var Ad=0;function Y0(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??gv()),document.body.insertAdjacentElement("beforeend",n[1]??gv()),Ad++,()=>{Ad===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),Ad--}},[])}function gv(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Yn=function(){return Yn=Object.assign||function(l){for(var o,i=1,u=arguments.length;i<u;i++){o=arguments[i];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(l[d]=o[d])}return l},Yn.apply(this,arguments)};function $0(n,l){var o={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&l.indexOf(i)<0&&(o[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,i=Object.getOwnPropertySymbols(n);u<i.length;u++)l.indexOf(i[u])<0&&Object.prototype.propertyIsEnumerable.call(n,i[u])&&(o[i[u]]=n[i[u]]);return o}function vT(n,l,o){if(o||arguments.length===2)for(var i=0,u=l.length,d;i<u;i++)(d||!(i in l))&&(d||(d=Array.prototype.slice.call(l,0,i)),d[i]=l[i]);return n.concat(d||Array.prototype.slice.call(l))}var xs="right-scroll-bar-position",Ss="width-before-scroll-bar",yT="with-scroll-bars-hidden",bT="--removed-body-scroll-bar-size";function _d(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function xT(n,l){var o=v.useState(function(){return{value:n,callback:l,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=l,o.facade}var ST=typeof window<"u"?v.useLayoutEffect:v.useEffect,vv=new WeakMap;function wT(n,l){var o=xT(null,function(i){return n.forEach(function(u){return _d(u,i)})});return ST(function(){var i=vv.get(o);if(i){var u=new Set(i),d=new Set(n),f=o.current;u.forEach(function(h){d.has(h)||_d(h,null)}),d.forEach(function(h){u.has(h)||_d(h,f)})}vv.set(o,n)},[n]),o}function ET(n){return n}function NT(n,l){l===void 0&&(l=ET);var o=[],i=!1,u={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:n},useMedium:function(d){var f=l(d,i);return o.push(f),function(){o=o.filter(function(h){return h!==f})}},assignSyncMedium:function(d){for(i=!0;o.length;){var f=o;o=[],f.forEach(d)}o={push:function(h){return d(h)},filter:function(){return o}}},assignMedium:function(d){i=!0;var f=[];if(o.length){var h=o;o=[],h.forEach(d),f=o}var y=function(){var x=f;f=[],x.forEach(d)},g=function(){return Promise.resolve().then(y)};g(),o={push:function(x){f.push(x),g()},filter:function(x){return f=f.filter(x),o}}}};return u}function CT(n){n===void 0&&(n={});var l=NT(null);return l.options=Yn({async:!0,ssr:!1},n),l}var G0=function(n){var l=n.sideCar,o=$0(n,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=l.read();if(!i)throw new Error("Sidecar medium not found");return v.createElement(i,Yn({},o))};G0.isSideCarExport=!0;function TT(n,l){return n.useMedium(l),G0}var X0=CT(),jd=function(){},Qs=v.forwardRef(function(n,l){var o=v.useRef(null),i=v.useState({onScrollCapture:jd,onWheelCapture:jd,onTouchMoveCapture:jd}),u=i[0],d=i[1],f=n.forwardProps,h=n.children,y=n.className,g=n.removeScrollBar,x=n.enabled,p=n.shards,w=n.sideCar,C=n.noRelative,N=n.noIsolation,E=n.inert,R=n.allowPinchZoom,T=n.as,j=T===void 0?"div":T,O=n.gapMode,k=$0(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),q=w,$=wT([o,l]),B=Yn(Yn({},k),u);return v.createElement(v.Fragment,null,x&&v.createElement(q,{sideCar:X0,removeScrollBar:g,shards:p,noRelative:C,noIsolation:N,inert:E,setCallbacks:d,allowPinchZoom:!!R,lockRef:o,gapMode:O}),f?v.cloneElement(v.Children.only(h),Yn(Yn({},B),{ref:$})):v.createElement(j,Yn({},B,{className:y,ref:$}),h))});Qs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qs.classNames={fullWidth:Ss,zeroRight:xs};var RT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function AT(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=RT();return l&&n.setAttribute("nonce",l),n}function _T(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function jT(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var OT=function(){var n=0,l=null;return{add:function(o){n==0&&(l=AT())&&(_T(l,o),jT(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},MT=function(){var n=OT();return function(l,o){v.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&o])}},Q0=function(){var n=MT(),l=function(o){var i=o.styles,u=o.dynamic;return n(i,u),null};return l},DT={left:0,top:0,right:0,gap:0},Od=function(n){return parseInt(n||"",10)||0},kT=function(n){var l=window.getComputedStyle(document.body),o=l[n==="padding"?"paddingLeft":"marginLeft"],i=l[n==="padding"?"paddingTop":"marginTop"],u=l[n==="padding"?"paddingRight":"marginRight"];return[Od(o),Od(i),Od(u)]},zT=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return DT;var l=kT(n),o=document.documentElement.clientWidth,i=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,i-o+l[2]-l[0])}},LT=Q0(),Tr="data-scroll-locked",UT=function(n,l,o,i){var u=n.left,d=n.top,f=n.right,h=n.gap;return o===void 0&&(o="margin"),`
|
|
252
|
-
.`.concat(yT,` {
|
|
253
|
-
overflow: hidden `).concat(i,`;
|
|
254
|
-
padding-right: `).concat(h,"px ").concat(i,`;
|
|
255
|
-
}
|
|
256
|
-
body[`).concat(Tr,`] {
|
|
257
|
-
overflow: hidden `).concat(i,`;
|
|
258
|
-
overscroll-behavior: contain;
|
|
259
|
-
`).concat([l&&"position: relative ".concat(i,";"),o==="margin"&&`
|
|
260
|
-
padding-left: `.concat(u,`px;
|
|
261
|
-
padding-top: `).concat(d,`px;
|
|
262
|
-
padding-right: `).concat(f,`px;
|
|
263
|
-
margin-left:0;
|
|
264
|
-
margin-top:0;
|
|
265
|
-
margin-right: `).concat(h,"px ").concat(i,`;
|
|
266
|
-
`),o==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.`).concat(xs,` {
|
|
270
|
-
right: `).concat(h,"px ").concat(i,`;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.`).concat(Ss,` {
|
|
274
|
-
margin-right: `).concat(h,"px ").concat(i,`;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.`).concat(xs," .").concat(xs,` {
|
|
278
|
-
right: 0 `).concat(i,`;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.`).concat(Ss," .").concat(Ss,` {
|
|
282
|
-
margin-right: 0 `).concat(i,`;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
body[`).concat(Tr,`] {
|
|
286
|
-
`).concat(bT,": ").concat(h,`px;
|
|
287
|
-
}
|
|
288
|
-
`)},yv=function(){var n=parseInt(document.body.getAttribute(Tr)||"0",10);return isFinite(n)?n:0},BT=function(){v.useEffect(function(){return document.body.setAttribute(Tr,(yv()+1).toString()),function(){var n=yv()-1;n<=0?document.body.removeAttribute(Tr):document.body.setAttribute(Tr,n.toString())}},[])},HT=function(n){var l=n.noRelative,o=n.noImportant,i=n.gapMode,u=i===void 0?"margin":i;BT();var d=v.useMemo(function(){return zT(u)},[u]);return v.createElement(LT,{styles:UT(d,!l,u,o?"":"!important")})},$d=!1;if(typeof window<"u")try{var fs=Object.defineProperty({},"passive",{get:function(){return $d=!0,!0}});window.addEventListener("test",fs,fs),window.removeEventListener("test",fs,fs)}catch{$d=!1}var Sr=$d?{passive:!1}:!1,VT=function(n){return n.tagName==="TEXTAREA"},K0=function(n,l){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[l]!=="hidden"&&!(o.overflowY===o.overflowX&&!VT(n)&&o[l]==="visible")},qT=function(n){return K0(n,"overflowY")},YT=function(n){return K0(n,"overflowX")},bv=function(n,l){var o=l.ownerDocument,i=l;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var u=Z0(n,i);if(u){var d=P0(n,i),f=d[1],h=d[2];if(f>h)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},$T=function(n){var l=n.scrollTop,o=n.scrollHeight,i=n.clientHeight;return[l,o,i]},GT=function(n){var l=n.scrollLeft,o=n.scrollWidth,i=n.clientWidth;return[l,o,i]},Z0=function(n,l){return n==="v"?qT(l):YT(l)},P0=function(n,l){return n==="v"?$T(l):GT(l)},XT=function(n,l){return n==="h"&&l==="rtl"?-1:1},QT=function(n,l,o,i,u){var d=XT(n,window.getComputedStyle(l).direction),f=d*i,h=o.target,y=l.contains(h),g=!1,x=f>0,p=0,w=0;do{if(!h)break;var C=P0(n,h),N=C[0],E=C[1],R=C[2],T=E-R-d*N;(N||T)&&Z0(n,h)&&(p+=T,w+=N);var j=h.parentNode;h=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!y&&h!==document.body||y&&(l.contains(h)||l===h));return(x&&Math.abs(p)<1||!x&&Math.abs(w)<1)&&(g=!0),g},ms=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},xv=function(n){return[n.deltaX,n.deltaY]},Sv=function(n){return n&&"current"in n?n.current:n},KT=function(n,l){return n[0]===l[0]&&n[1]===l[1]},ZT=function(n){return`
|
|
289
|
-
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
290
|
-
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
291
|
-
`)},PT=0,wr=[];function IT(n){var l=v.useRef([]),o=v.useRef([0,0]),i=v.useRef(),u=v.useState(PT++)[0],d=v.useState(Q0)[0],f=v.useRef(n);v.useEffect(function(){f.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(u));var E=vT([n.lockRef.current],(n.shards||[]).map(Sv),!0).filter(Boolean);return E.forEach(function(R){return R.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),E.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(u))})}}},[n.inert,n.lockRef.current,n.shards]);var h=v.useCallback(function(E,R){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!f.current.allowPinchZoom;var T=ms(E),j=o.current,O="deltaX"in E?E.deltaX:j[0]-T[0],k="deltaY"in E?E.deltaY:j[1]-T[1],q,$=E.target,B=Math.abs(O)>Math.abs(k)?"h":"v";if("touches"in E&&B==="h"&&$.type==="range")return!1;var V=window.getSelection(),te=V&&V.anchorNode,le=te?te===$||te.contains($):!1;if(le)return!1;var ve=bv(B,$);if(!ve)return!0;if(ve?q=B:(q=B==="v"?"h":"v",ve=bv(B,$)),!ve)return!1;if(!i.current&&"changedTouches"in E&&(O||k)&&(i.current=q),!q)return!0;var ie=i.current||q;return QT(ie,R,E,ie==="h"?O:k)},[]),y=v.useCallback(function(E){var R=E;if(!(!wr.length||wr[wr.length-1]!==d)){var T="deltaY"in R?xv(R):ms(R),j=l.current.filter(function(q){return q.name===R.type&&(q.target===R.target||R.target===q.shadowParent)&&KT(q.delta,T)})[0];if(j&&j.should){R.cancelable&&R.preventDefault();return}if(!j){var O=(f.current.shards||[]).map(Sv).filter(Boolean).filter(function(q){return q.contains(R.target)}),k=O.length>0?h(R,O[0]):!f.current.noIsolation;k&&R.cancelable&&R.preventDefault()}}},[]),g=v.useCallback(function(E,R,T,j){var O={name:E,delta:R,target:T,should:j,shadowParent:FT(T)};l.current.push(O),setTimeout(function(){l.current=l.current.filter(function(k){return k!==O})},1)},[]),x=v.useCallback(function(E){o.current=ms(E),i.current=void 0},[]),p=v.useCallback(function(E){g(E.type,xv(E),E.target,h(E,n.lockRef.current))},[]),w=v.useCallback(function(E){g(E.type,ms(E),E.target,h(E,n.lockRef.current))},[]);v.useEffect(function(){return wr.push(d),n.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:w}),document.addEventListener("wheel",y,Sr),document.addEventListener("touchmove",y,Sr),document.addEventListener("touchstart",x,Sr),function(){wr=wr.filter(function(E){return E!==d}),document.removeEventListener("wheel",y,Sr),document.removeEventListener("touchmove",y,Sr),document.removeEventListener("touchstart",x,Sr)}},[]);var C=n.removeScrollBar,N=n.inert;return v.createElement(v.Fragment,null,N?v.createElement(d,{styles:ZT(u)}):null,C?v.createElement(HT,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function FT(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const JT=TT(X0,IT);var yf=v.forwardRef(function(n,l){return v.createElement(Qs,Yn({},n,{ref:l,sideCar:JT}))});yf.classNames=Qs.classNames;var WT=function(n){if(typeof document>"u")return null;var l=Array.isArray(n)?n[0]:n;return l.ownerDocument.body},Er=new WeakMap,hs=new WeakMap,ps={},Md=0,I0=function(n){return n&&(n.host||I0(n.parentNode))},e5=function(n,l){return l.map(function(o){if(n.contains(o))return o;var i=I0(o);return i&&n.contains(i)?i:(console.error("aria-hidden",o,"in not contained inside",n,". Doing nothing"),null)}).filter(function(o){return!!o})},t5=function(n,l,o,i){var u=e5(l,Array.isArray(n)?n:[n]);ps[o]||(ps[o]=new WeakMap);var d=ps[o],f=[],h=new Set,y=new Set(u),g=function(p){!p||h.has(p)||(h.add(p),g(p.parentNode))};u.forEach(g);var x=function(p){!p||y.has(p)||Array.prototype.forEach.call(p.children,function(w){if(h.has(w))x(w);else try{var C=w.getAttribute(i),N=C!==null&&C!=="false",E=(Er.get(w)||0)+1,R=(d.get(w)||0)+1;Er.set(w,E),d.set(w,R),f.push(w),E===1&&N&&hs.set(w,!0),R===1&&w.setAttribute(o,"true"),N||w.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",w,T)}})};return x(l),h.clear(),Md++,function(){f.forEach(function(p){var w=Er.get(p)-1,C=d.get(p)-1;Er.set(p,w),d.set(p,C),w||(hs.has(p)||p.removeAttribute(i),hs.delete(p)),C||p.removeAttribute(o)}),Md--,Md||(Er=new WeakMap,Er=new WeakMap,hs=new WeakMap,ps={})}},F0=function(n,l,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),u=WT(n);return u?(i.push.apply(i,Array.from(u.querySelectorAll("[aria-live], script"))),t5(i,u,o,"aria-hidden")):function(){return null}},Ks="Dialog",[J0,W0]=tl(Ks),[n5,_n]=J0(Ks),ey=n=>{const{__scopeDialog:l,children:o,open:i,defaultOpen:u,onOpenChange:d,modal:f=!0}=n,h=v.useRef(null),y=v.useRef(null),[g,x]=_r({prop:i,defaultProp:u??!1,onChange:d,caller:Ks});return m.jsx(n5,{scope:l,triggerRef:h,contentRef:y,contentId:Pa(),titleId:Pa(),descriptionId:Pa(),open:g,onOpenChange:x,onOpenToggle:v.useCallback(()=>x(p=>!p),[x]),modal:f,children:o})};ey.displayName=Ks;var ty="DialogTrigger",ny=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=_n(ty,o),d=Fe(l,u.triggerRef);return m.jsx(Ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":Sf(u.open),...i,ref:d,onClick:Me(n.onClick,u.onOpenToggle)})});ny.displayName=ty;var bf="DialogPortal",[a5,ay]=J0(bf,{forceMount:void 0}),ly=n=>{const{__scopeDialog:l,forceMount:o,children:i,container:u}=n,d=_n(bf,l);return m.jsx(a5,{scope:l,forceMount:o,children:v.Children.map(i,f=>m.jsx(kr,{present:o||d.open,children:m.jsx(vf,{asChild:!0,container:u,children:f})}))})};ly.displayName=bf;var _s="DialogOverlay",ry=v.forwardRef((n,l)=>{const o=ay(_s,n.__scopeDialog),{forceMount:i=o.forceMount,...u}=n,d=_n(_s,n.__scopeDialog);return d.modal?m.jsx(kr,{present:i||d.open,children:m.jsx(r5,{...u,ref:l})}):null});ry.displayName=_s;var l5=Ho("DialogOverlay.RemoveScroll"),r5=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=_n(_s,o);return m.jsx(yf,{as:l5,allowPinchZoom:!0,shards:[u.contentRef],children:m.jsx(Ue.div,{"data-state":Sf(u.open),...i,ref:l,style:{pointerEvents:"auto",...i.style}})})}),_l="DialogContent",oy=v.forwardRef((n,l)=>{const o=ay(_l,n.__scopeDialog),{forceMount:i=o.forceMount,...u}=n,d=_n(_l,n.__scopeDialog);return m.jsx(kr,{present:i||d.open,children:d.modal?m.jsx(o5,{...u,ref:l}):m.jsx(i5,{...u,ref:l})})});oy.displayName=_l;var o5=v.forwardRef((n,l)=>{const o=_n(_l,n.__scopeDialog),i=v.useRef(null),u=Fe(l,o.contentRef,i);return v.useEffect(()=>{const d=i.current;if(d)return F0(d)},[]),m.jsx(iy,{...n,ref:u,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Me(n.onCloseAutoFocus,d=>{var f;d.preventDefault(),(f=o.triggerRef.current)==null||f.focus()}),onPointerDownOutside:Me(n.onPointerDownOutside,d=>{const f=d.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&d.preventDefault()}),onFocusOutside:Me(n.onFocusOutside,d=>d.preventDefault())})}),i5=v.forwardRef((n,l)=>{const o=_n(_l,n.__scopeDialog),i=v.useRef(!1),u=v.useRef(!1);return m.jsx(iy,{...n,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var f,h;(f=n.onCloseAutoFocus)==null||f.call(n,d),d.defaultPrevented||(i.current||(h=o.triggerRef.current)==null||h.focus(),d.preventDefault()),i.current=!1,u.current=!1},onInteractOutside:d=>{var y,g;(y=n.onInteractOutside)==null||y.call(n,d),d.defaultPrevented||(i.current=!0,d.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const f=d.target;((g=o.triggerRef.current)==null?void 0:g.contains(f))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&u.current&&d.preventDefault()}})}),iy=v.forwardRef((n,l)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:d,...f}=n,h=_n(_l,o),y=v.useRef(null),g=Fe(l,y);return Y0(),m.jsxs(m.Fragment,{children:[m.jsx(gf,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:u,onUnmountAutoFocus:d,children:m.jsx(pf,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Sf(h.open),...f,ref:g,onDismiss:()=>h.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(c5,{titleId:h.titleId}),m.jsx(d5,{contentRef:y,descriptionId:h.descriptionId})]})]})}),xf="DialogTitle",sy=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=_n(xf,o);return m.jsx(Ue.h2,{id:u.titleId,...i,ref:l})});sy.displayName=xf;var cy="DialogDescription",uy=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=_n(cy,o);return m.jsx(Ue.p,{id:u.descriptionId,...i,ref:l})});uy.displayName=cy;var dy="DialogClose",fy=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=_n(dy,o);return m.jsx(Ue.button,{type:"button",...i,ref:l,onClick:Me(n.onClick,()=>u.onOpenChange(!1))})});fy.displayName=dy;function Sf(n){return n?"open":"closed"}var my="DialogTitleWarning",[s5,hy]=BC(my,{contentName:_l,titleName:xf,docsSlug:"dialog"}),c5=({titleId:n})=>{const l=hy(my),o=`\`${l.contentName}\` requires a \`${l.titleName}\` for the component to be accessible for screen reader users.
|
|
292
|
-
|
|
293
|
-
If you want to hide the \`${l.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
294
|
-
|
|
295
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${l.docsSlug}`;return v.useEffect(()=>{n&&(document.getElementById(n)||console.error(o))},[o,n]),null},u5="DialogDescriptionWarning",d5=({contentRef:n,descriptionId:l})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${hy(u5).contentName}}.`;return v.useEffect(()=>{var d;const u=(d=n.current)==null?void 0:d.getAttribute("aria-describedby");l&&u&&(document.getElementById(l)||console.warn(i))},[i,n,l]),null},py=ey,gy=ny,vy=ly,wf=ry,Ef=oy,Nf=sy,Cf=uy,Zs=fy;const f5=py,m5=gy,h5=vy,Y3=Zs,yy=v.forwardRef(({className:n,...l},o)=>m.jsx(wf,{ref:o,className:fe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...l}));yy.displayName=wf.displayName;const by=v.forwardRef(({className:n,children:l,...o},i)=>m.jsxs(h5,{children:[m.jsx(yy,{}),m.jsxs(Ef,{ref:i,className:fe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-[22px] border bg-background p-6 shadow-[0_34px_110px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...o,children:[l,m.jsxs(Zs,{className:"absolute right-4 top-4 rounded-[10px] opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[m.jsx(y0,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));by.displayName=Ef.displayName;const xy=({className:n,...l})=>m.jsx("div",{className:fe("flex flex-col space-y-1.5 text-center sm:text-left",n),...l});xy.displayName="DialogHeader";const p5=({className:n,...l})=>m.jsx("div",{className:fe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...l});p5.displayName="DialogFooter";const Sy=v.forwardRef(({className:n,...l},o)=>m.jsx(Nf,{ref:o,className:fe("text-lg font-semibold leading-none tracking-tight",n),...l}));Sy.displayName=Nf.displayName;const wy=v.forwardRef(({className:n,...l},o)=>m.jsx(Cf,{ref:o,className:fe("text-sm text-muted-foreground",n),...l}));wy.displayName=Cf.displayName;function g5({children:n,open:l,onOpenChange:o,showTrigger:i=!0}){const[u,d]=v.useState(!1),f=l??u,h=v.useCallback(y=>{l===void 0&&d(y),o==null||o(y)},[l,o]);return m.jsxs(f5,{open:f,onOpenChange:h,children:[i&&m.jsx(m5,{asChild:!0,children:m.jsx(Qn,{variant:"ghost",size:"icon","aria-label":"Settings",title:"Settings",className:"rounded-[16px] border border-border/70 bg-background/70 shadow-sm",children:m.jsx(FE,{className:"h-4 w-4"})})}),m.jsxs(by,{className:"grid h-[min(82vh,42rem)] max-h-[82vh] max-w-[min(90vw,56rem)] grid-rows-[auto_minmax(0,1fr)] gap-0 overflow-hidden rounded-[22px] border-border/70 bg-background/96 p-0 shadow-[0_40px_120px_-56px_rgba(15,23,42,0.75)] backdrop-blur-xl",children:[m.jsxs(xy,{className:"shrink-0 border-b border-border/60 px-3 py-2 sm:px-4",children:[m.jsxs(Sy,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(VE,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),m.jsx(wy,{className:"text-[11px]",children:"Session diagnostics, access configuration, and build metadata for the current Meshy node."})]}),m.jsx("div",{className:"min-h-0 overflow-y-auto px-3 pb-2.5 pt-0 sm:px-4 sm:pb-3",children:n})]})]})}function wv(n,[l,o]){return Math.min(o,Math.max(l,n))}function Ey(n){const l=n+"CollectionProvider",[o,i]=tl(l),[u,d]=o(l,{collectionRef:{current:null},itemMap:new Map}),f=E=>{const{scope:R,children:T}=E,j=ne.useRef(null),O=ne.useRef(new Map).current;return m.jsx(u,{scope:R,itemMap:O,collectionRef:j,children:T})};f.displayName=l;const h=n+"CollectionSlot",y=Ho(h),g=ne.forwardRef((E,R)=>{const{scope:T,children:j}=E,O=d(h,T),k=Fe(R,O.collectionRef);return m.jsx(y,{ref:k,children:j})});g.displayName=h;const x=n+"CollectionItemSlot",p="data-radix-collection-item",w=Ho(x),C=ne.forwardRef((E,R)=>{const{scope:T,children:j,...O}=E,k=ne.useRef(null),q=Fe(R,k),$=d(x,T);return ne.useEffect(()=>($.itemMap.set(k,{ref:k,...O}),()=>void $.itemMap.delete(k))),m.jsx(w,{[p]:"",ref:q,children:j})});C.displayName=x;function N(E){const R=d(n+"CollectionConsumer",E);return ne.useCallback(()=>{const j=R.collectionRef.current;if(!j)return[];const O=Array.from(j.querySelectorAll(`[${p}]`));return Array.from(R.itemMap.values()).sort(($,B)=>O.indexOf($.ref.current)-O.indexOf(B.ref.current))},[R.collectionRef,R.itemMap])}return[{Provider:f,Slot:g,ItemSlot:C},N,i]}var v5=v.createContext(void 0);function Tf(n){const l=v.useContext(v5);return n||l||"ltr"}const y5=["top","right","bottom","left"],Ja=Math.min,nn=Math.max,js=Math.round,gs=Math.floor,Xn=n=>({x:n,y:n}),b5={left:"right",right:"left",bottom:"top",top:"bottom"};function Gd(n,l,o){return nn(n,Ja(l,o))}function ga(n,l){return typeof n=="function"?n(l):n}function va(n){return n.split("-")[0]}function zr(n){return n.split("-")[1]}function Rf(n){return n==="x"?"y":"x"}function Af(n){return n==="y"?"height":"width"}function $n(n){const l=n[0];return l==="t"||l==="b"?"y":"x"}function _f(n){return Rf($n(n))}function x5(n,l,o){o===void 0&&(o=!1);const i=zr(n),u=_f(n),d=Af(u);let f=u==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return l.reference[d]>l.floating[d]&&(f=Os(f)),[f,Os(f)]}function S5(n){const l=Os(n);return[Xd(n),l,Xd(l)]}function Xd(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Ev=["left","right"],Nv=["right","left"],w5=["top","bottom"],E5=["bottom","top"];function N5(n,l,o){switch(n){case"top":case"bottom":return o?l?Nv:Ev:l?Ev:Nv;case"left":case"right":return l?w5:E5;default:return[]}}function C5(n,l,o,i){const u=zr(n);let d=N5(va(n),o==="start",i);return u&&(d=d.map(f=>f+"-"+u),l&&(d=d.concat(d.map(Xd)))),d}function Os(n){const l=va(n);return b5[l]+n.slice(l.length)}function T5(n){return{top:0,right:0,bottom:0,left:0,...n}}function Ny(n){return typeof n!="number"?T5(n):{top:n,right:n,bottom:n,left:n}}function Ms(n){const{x:l,y:o,width:i,height:u}=n;return{width:i,height:u,top:o,left:l,right:l+i,bottom:o+u,x:l,y:o}}function Cv(n,l,o){let{reference:i,floating:u}=n;const d=$n(l),f=_f(l),h=Af(f),y=va(l),g=d==="y",x=i.x+i.width/2-u.width/2,p=i.y+i.height/2-u.height/2,w=i[h]/2-u[h]/2;let C;switch(y){case"top":C={x,y:i.y-u.height};break;case"bottom":C={x,y:i.y+i.height};break;case"right":C={x:i.x+i.width,y:p};break;case"left":C={x:i.x-u.width,y:p};break;default:C={x:i.x,y:i.y}}switch(zr(l)){case"start":C[f]-=w*(o&&g?-1:1);break;case"end":C[f]+=w*(o&&g?-1:1);break}return C}async function R5(n,l){var o;l===void 0&&(l={});const{x:i,y:u,platform:d,rects:f,elements:h,strategy:y}=n,{boundary:g="clippingAncestors",rootBoundary:x="viewport",elementContext:p="floating",altBoundary:w=!1,padding:C=0}=ga(l,n),N=Ny(C),R=h[w?p==="floating"?"reference":"floating":p],T=Ms(await d.getClippingRect({element:(o=await(d.isElement==null?void 0:d.isElement(R)))==null||o?R:R.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(h.floating)),boundary:g,rootBoundary:x,strategy:y})),j=p==="floating"?{x:i,y:u,width:f.floating.width,height:f.floating.height}:f.reference,O=await(d.getOffsetParent==null?void 0:d.getOffsetParent(h.floating)),k=await(d.isElement==null?void 0:d.isElement(O))?await(d.getScale==null?void 0:d.getScale(O))||{x:1,y:1}:{x:1,y:1},q=Ms(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:j,offsetParent:O,strategy:y}):j);return{top:(T.top-q.top+N.top)/k.y,bottom:(q.bottom-T.bottom+N.bottom)/k.y,left:(T.left-q.left+N.left)/k.x,right:(q.right-T.right+N.right)/k.x}}const A5=50,_5=async(n,l,o)=>{const{placement:i="bottom",strategy:u="absolute",middleware:d=[],platform:f}=o,h=f.detectOverflow?f:{...f,detectOverflow:R5},y=await(f.isRTL==null?void 0:f.isRTL(l));let g=await f.getElementRects({reference:n,floating:l,strategy:u}),{x,y:p}=Cv(g,i,y),w=i,C=0;const N={};for(let E=0;E<d.length;E++){const R=d[E];if(!R)continue;const{name:T,fn:j}=R,{x:O,y:k,data:q,reset:$}=await j({x,y:p,initialPlacement:i,placement:w,strategy:u,middlewareData:N,rects:g,platform:h,elements:{reference:n,floating:l}});x=O??x,p=k??p,N[T]={...N[T],...q},$&&C<A5&&(C++,typeof $=="object"&&($.placement&&(w=$.placement),$.rects&&(g=$.rects===!0?await f.getElementRects({reference:n,floating:l,strategy:u}):$.rects),{x,y:p}=Cv(g,w,y)),E=-1)}return{x,y:p,placement:w,strategy:u,middlewareData:N}},j5=n=>({name:"arrow",options:n,async fn(l){const{x:o,y:i,placement:u,rects:d,platform:f,elements:h,middlewareData:y}=l,{element:g,padding:x=0}=ga(n,l)||{};if(g==null)return{};const p=Ny(x),w={x:o,y:i},C=_f(u),N=Af(C),E=await f.getDimensions(g),R=C==="y",T=R?"top":"left",j=R?"bottom":"right",O=R?"clientHeight":"clientWidth",k=d.reference[N]+d.reference[C]-w[C]-d.floating[N],q=w[C]-d.reference[C],$=await(f.getOffsetParent==null?void 0:f.getOffsetParent(g));let B=$?$[O]:0;(!B||!await(f.isElement==null?void 0:f.isElement($)))&&(B=h.floating[O]||d.floating[N]);const V=k/2-q/2,te=B/2-E[N]/2-1,le=Ja(p[T],te),ve=Ja(p[j],te),ie=le,ce=B-E[N]-ve,re=B/2-E[N]/2+V,ue=Gd(ie,re,ce),M=!y.arrow&&zr(u)!=null&&re!==ue&&d.reference[N]/2-(re<ie?le:ve)-E[N]/2<0,G=M?re<ie?re-ie:re-ce:0;return{[C]:w[C]+G,data:{[C]:ue,centerOffset:re-ue-G,...M&&{alignmentOffset:G}},reset:M}}}),O5=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var o,i;const{placement:u,middlewareData:d,rects:f,initialPlacement:h,platform:y,elements:g}=l,{mainAxis:x=!0,crossAxis:p=!0,fallbackPlacements:w,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:E=!0,...R}=ga(n,l);if((o=d.arrow)!=null&&o.alignmentOffset)return{};const T=va(u),j=$n(h),O=va(h)===h,k=await(y.isRTL==null?void 0:y.isRTL(g.floating)),q=w||(O||!E?[Os(h)]:S5(h)),$=N!=="none";!w&&$&&q.push(...C5(h,E,N,k));const B=[h,...q],V=await y.detectOverflow(l,R),te=[];let le=((i=d.flip)==null?void 0:i.overflows)||[];if(x&&te.push(V[T]),p){const re=x5(u,f,k);te.push(V[re[0]],V[re[1]])}if(le=[...le,{placement:u,overflows:te}],!te.every(re=>re<=0)){var ve,ie;const re=(((ve=d.flip)==null?void 0:ve.index)||0)+1,ue=B[re];if(ue&&(!(p==="alignment"?j!==$n(ue):!1)||le.every(I=>$n(I.placement)===j?I.overflows[0]>0:!0)))return{data:{index:re,overflows:le},reset:{placement:ue}};let M=(ie=le.filter(G=>G.overflows[0]<=0).sort((G,I)=>G.overflows[1]-I.overflows[1])[0])==null?void 0:ie.placement;if(!M)switch(C){case"bestFit":{var ce;const G=(ce=le.filter(I=>{if($){const se=$n(I.placement);return se===j||se==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(se=>se>0).reduce((se,F)=>se+F,0)]).sort((I,se)=>I[1]-se[1])[0])==null?void 0:ce[0];G&&(M=G);break}case"initialPlacement":M=h;break}if(u!==M)return{reset:{placement:M}}}return{}}}};function Tv(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function Rv(n){return y5.some(l=>n[l]>=0)}const M5=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:o,platform:i}=l,{strategy:u="referenceHidden",...d}=ga(n,l);switch(u){case"referenceHidden":{const f=await i.detectOverflow(l,{...d,elementContext:"reference"}),h=Tv(f,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Rv(h)}}}case"escaped":{const f=await i.detectOverflow(l,{...d,altBoundary:!0}),h=Tv(f,o.floating);return{data:{escapedOffsets:h,escaped:Rv(h)}}}default:return{}}}}},Cy=new Set(["left","top"]);async function D5(n,l){const{placement:o,platform:i,elements:u}=n,d=await(i.isRTL==null?void 0:i.isRTL(u.floating)),f=va(o),h=zr(o),y=$n(o)==="y",g=Cy.has(f)?-1:1,x=d&&y?-1:1,p=ga(l,n);let{mainAxis:w,crossAxis:C,alignmentAxis:N}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return h&&typeof N=="number"&&(C=h==="end"?N*-1:N),y?{x:C*x,y:w*g}:{x:w*g,y:C*x}}const k5=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var o,i;const{x:u,y:d,placement:f,middlewareData:h}=l,y=await D5(l,n);return f===((o=h.offset)==null?void 0:o.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:u+y.x,y:d+y.y,data:{...y,placement:f}}}}},z5=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:o,y:i,placement:u,platform:d}=l,{mainAxis:f=!0,crossAxis:h=!1,limiter:y={fn:T=>{let{x:j,y:O}=T;return{x:j,y:O}}},...g}=ga(n,l),x={x:o,y:i},p=await d.detectOverflow(l,g),w=$n(va(u)),C=Rf(w);let N=x[C],E=x[w];if(f){const T=C==="y"?"top":"left",j=C==="y"?"bottom":"right",O=N+p[T],k=N-p[j];N=Gd(O,N,k)}if(h){const T=w==="y"?"top":"left",j=w==="y"?"bottom":"right",O=E+p[T],k=E-p[j];E=Gd(O,E,k)}const R=y.fn({...l,[C]:N,[w]:E});return{...R,data:{x:R.x-o,y:R.y-i,enabled:{[C]:f,[w]:h}}}}}},L5=function(n){return n===void 0&&(n={}),{options:n,fn(l){const{x:o,y:i,placement:u,rects:d,middlewareData:f}=l,{offset:h=0,mainAxis:y=!0,crossAxis:g=!0}=ga(n,l),x={x:o,y:i},p=$n(u),w=Rf(p);let C=x[w],N=x[p];const E=ga(h,l),R=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(y){const O=w==="y"?"height":"width",k=d.reference[w]-d.floating[O]+R.mainAxis,q=d.reference[w]+d.reference[O]-R.mainAxis;C<k?C=k:C>q&&(C=q)}if(g){var T,j;const O=w==="y"?"width":"height",k=Cy.has(va(u)),q=d.reference[p]-d.floating[O]+(k&&((T=f.offset)==null?void 0:T[p])||0)+(k?0:R.crossAxis),$=d.reference[p]+d.reference[O]+(k?0:((j=f.offset)==null?void 0:j[p])||0)-(k?R.crossAxis:0);N<q?N=q:N>$&&(N=$)}return{[w]:C,[p]:N}}}},U5=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(l){var o,i;const{placement:u,rects:d,platform:f,elements:h}=l,{apply:y=()=>{},...g}=ga(n,l),x=await f.detectOverflow(l,g),p=va(u),w=zr(u),C=$n(u)==="y",{width:N,height:E}=d.floating;let R,T;p==="top"||p==="bottom"?(R=p,T=w===(await(f.isRTL==null?void 0:f.isRTL(h.floating))?"start":"end")?"left":"right"):(T=p,R=w==="end"?"top":"bottom");const j=E-x.top-x.bottom,O=N-x.left-x.right,k=Ja(E-x[R],j),q=Ja(N-x[T],O),$=!l.middlewareData.shift;let B=k,V=q;if((o=l.middlewareData.shift)!=null&&o.enabled.x&&(V=O),(i=l.middlewareData.shift)!=null&&i.enabled.y&&(B=j),$&&!w){const le=nn(x.left,0),ve=nn(x.right,0),ie=nn(x.top,0),ce=nn(x.bottom,0);C?V=N-2*(le!==0||ve!==0?le+ve:nn(x.left,x.right)):B=E-2*(ie!==0||ce!==0?ie+ce:nn(x.top,x.bottom))}await y({...l,availableWidth:V,availableHeight:B});const te=await f.getDimensions(h.floating);return N!==te.width||E!==te.height?{reset:{rects:!0}}:{}}}};function Ps(){return typeof window<"u"}function Lr(n){return Ty(n)?(n.nodeName||"").toLowerCase():"#document"}function an(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function Zn(n){var l;return(l=(Ty(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function Ty(n){return Ps()?n instanceof Node||n instanceof an(n).Node:!1}function Rn(n){return Ps()?n instanceof Element||n instanceof an(n).Element:!1}function ya(n){return Ps()?n instanceof HTMLElement||n instanceof an(n).HTMLElement:!1}function Av(n){return!Ps()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof an(n).ShadowRoot}function Go(n){const{overflow:l,overflowX:o,overflowY:i,display:u}=An(n);return/auto|scroll|overlay|hidden|clip/.test(l+i+o)&&u!=="inline"&&u!=="contents"}function B5(n){return/^(table|td|th)$/.test(Lr(n))}function Is(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const H5=/transform|translate|scale|rotate|perspective|filter/,V5=/paint|layout|strict|content/,Tl=n=>!!n&&n!=="none";let Dd;function jf(n){const l=Rn(n)?An(n):n;return Tl(l.transform)||Tl(l.translate)||Tl(l.scale)||Tl(l.rotate)||Tl(l.perspective)||!Of()&&(Tl(l.backdropFilter)||Tl(l.filter))||H5.test(l.willChange||"")||V5.test(l.contain||"")}function q5(n){let l=Wa(n);for(;ya(l)&&!jr(l);){if(jf(l))return l;if(Is(l))return null;l=Wa(l)}return null}function Of(){return Dd==null&&(Dd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Dd}function jr(n){return/^(html|body|#document)$/.test(Lr(n))}function An(n){return an(n).getComputedStyle(n)}function Fs(n){return Rn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Wa(n){if(Lr(n)==="html")return n;const l=n.assignedSlot||n.parentNode||Av(n)&&n.host||Zn(n);return Av(l)?l.host:l}function Ry(n){const l=Wa(n);return jr(l)?n.ownerDocument?n.ownerDocument.body:n.body:ya(l)&&Go(l)?l:Ry(l)}function Vo(n,l,o){var i;l===void 0&&(l=[]),o===void 0&&(o=!0);const u=Ry(n),d=u===((i=n.ownerDocument)==null?void 0:i.body),f=an(u);if(d){const h=Qd(f);return l.concat(f,f.visualViewport||[],Go(u)?u:[],h&&o?Vo(h):[])}else return l.concat(u,Vo(u,[],o))}function Qd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Ay(n){const l=An(n);let o=parseFloat(l.width)||0,i=parseFloat(l.height)||0;const u=ya(n),d=u?n.offsetWidth:o,f=u?n.offsetHeight:i,h=js(o)!==d||js(i)!==f;return h&&(o=d,i=f),{width:o,height:i,$:h}}function Mf(n){return Rn(n)?n:n.contextElement}function Rr(n){const l=Mf(n);if(!ya(l))return Xn(1);const o=l.getBoundingClientRect(),{width:i,height:u,$:d}=Ay(l);let f=(d?js(o.width):o.width)/i,h=(d?js(o.height):o.height)/u;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const Y5=Xn(0);function _y(n){const l=an(n);return!Of()||!l.visualViewport?Y5:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function $5(n,l,o){return l===void 0&&(l=!1),!o||l&&o!==an(n)?!1:l}function jl(n,l,o,i){l===void 0&&(l=!1),o===void 0&&(o=!1);const u=n.getBoundingClientRect(),d=Mf(n);let f=Xn(1);l&&(i?Rn(i)&&(f=Rr(i)):f=Rr(n));const h=$5(d,o,i)?_y(d):Xn(0);let y=(u.left+h.x)/f.x,g=(u.top+h.y)/f.y,x=u.width/f.x,p=u.height/f.y;if(d){const w=an(d),C=i&&Rn(i)?an(i):i;let N=w,E=Qd(N);for(;E&&i&&C!==N;){const R=Rr(E),T=E.getBoundingClientRect(),j=An(E),O=T.left+(E.clientLeft+parseFloat(j.paddingLeft))*R.x,k=T.top+(E.clientTop+parseFloat(j.paddingTop))*R.y;y*=R.x,g*=R.y,x*=R.x,p*=R.y,y+=O,g+=k,N=an(E),E=Qd(N)}}return Ms({width:x,height:p,x:y,y:g})}function Js(n,l){const o=Fs(n).scrollLeft;return l?l.left+o:jl(Zn(n)).left+o}function jy(n,l){const o=n.getBoundingClientRect(),i=o.left+l.scrollLeft-Js(n,o),u=o.top+l.scrollTop;return{x:i,y:u}}function G5(n){let{elements:l,rect:o,offsetParent:i,strategy:u}=n;const d=u==="fixed",f=Zn(i),h=l?Is(l.floating):!1;if(i===f||h&&d)return o;let y={scrollLeft:0,scrollTop:0},g=Xn(1);const x=Xn(0),p=ya(i);if((p||!p&&!d)&&((Lr(i)!=="body"||Go(f))&&(y=Fs(i)),p)){const C=jl(i);g=Rr(i),x.x=C.x+i.clientLeft,x.y=C.y+i.clientTop}const w=f&&!p&&!d?jy(f,y):Xn(0);return{width:o.width*g.x,height:o.height*g.y,x:o.x*g.x-y.scrollLeft*g.x+x.x+w.x,y:o.y*g.y-y.scrollTop*g.y+x.y+w.y}}function X5(n){return Array.from(n.getClientRects())}function Q5(n){const l=Zn(n),o=Fs(n),i=n.ownerDocument.body,u=nn(l.scrollWidth,l.clientWidth,i.scrollWidth,i.clientWidth),d=nn(l.scrollHeight,l.clientHeight,i.scrollHeight,i.clientHeight);let f=-o.scrollLeft+Js(n);const h=-o.scrollTop;return An(i).direction==="rtl"&&(f+=nn(l.clientWidth,i.clientWidth)-u),{width:u,height:d,x:f,y:h}}const _v=25;function K5(n,l){const o=an(n),i=Zn(n),u=o.visualViewport;let d=i.clientWidth,f=i.clientHeight,h=0,y=0;if(u){d=u.width,f=u.height;const x=Of();(!x||x&&l==="fixed")&&(h=u.offsetLeft,y=u.offsetTop)}const g=Js(i);if(g<=0){const x=i.ownerDocument,p=x.body,w=getComputedStyle(p),C=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,N=Math.abs(i.clientWidth-p.clientWidth-C);N<=_v&&(d-=N)}else g<=_v&&(d+=g);return{width:d,height:f,x:h,y}}function Z5(n,l){const o=jl(n,!0,l==="fixed"),i=o.top+n.clientTop,u=o.left+n.clientLeft,d=ya(n)?Rr(n):Xn(1),f=n.clientWidth*d.x,h=n.clientHeight*d.y,y=u*d.x,g=i*d.y;return{width:f,height:h,x:y,y:g}}function jv(n,l,o){let i;if(l==="viewport")i=K5(n,o);else if(l==="document")i=Q5(Zn(n));else if(Rn(l))i=Z5(l,o);else{const u=_y(n);i={x:l.x-u.x,y:l.y-u.y,width:l.width,height:l.height}}return Ms(i)}function Oy(n,l){const o=Wa(n);return o===l||!Rn(o)||jr(o)?!1:An(o).position==="fixed"||Oy(o,l)}function P5(n,l){const o=l.get(n);if(o)return o;let i=Vo(n,[],!1).filter(h=>Rn(h)&&Lr(h)!=="body"),u=null;const d=An(n).position==="fixed";let f=d?Wa(n):n;for(;Rn(f)&&!jr(f);){const h=An(f),y=jf(f);!y&&h.position==="fixed"&&(u=null),(d?!y&&!u:!y&&h.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||Go(f)&&!y&&Oy(n,f))?i=i.filter(x=>x!==f):u=h,f=Wa(f)}return l.set(n,i),i}function I5(n){let{element:l,boundary:o,rootBoundary:i,strategy:u}=n;const f=[...o==="clippingAncestors"?Is(l)?[]:P5(l,this._c):[].concat(o),i],h=jv(l,f[0],u);let y=h.top,g=h.right,x=h.bottom,p=h.left;for(let w=1;w<f.length;w++){const C=jv(l,f[w],u);y=nn(C.top,y),g=Ja(C.right,g),x=Ja(C.bottom,x),p=nn(C.left,p)}return{width:g-p,height:x-y,x:p,y}}function F5(n){const{width:l,height:o}=Ay(n);return{width:l,height:o}}function J5(n,l,o){const i=ya(l),u=Zn(l),d=o==="fixed",f=jl(n,!0,d,l);let h={scrollLeft:0,scrollTop:0};const y=Xn(0);function g(){y.x=Js(u)}if(i||!i&&!d)if((Lr(l)!=="body"||Go(u))&&(h=Fs(l)),i){const C=jl(l,!0,d,l);y.x=C.x+l.clientLeft,y.y=C.y+l.clientTop}else u&&g();d&&!i&&u&&g();const x=u&&!i&&!d?jy(u,h):Xn(0),p=f.left+h.scrollLeft-y.x-x.x,w=f.top+h.scrollTop-y.y-x.y;return{x:p,y:w,width:f.width,height:f.height}}function kd(n){return An(n).position==="static"}function Ov(n,l){if(!ya(n)||An(n).position==="fixed")return null;if(l)return l(n);let o=n.offsetParent;return Zn(n)===o&&(o=o.ownerDocument.body),o}function My(n,l){const o=an(n);if(Is(n))return o;if(!ya(n)){let u=Wa(n);for(;u&&!jr(u);){if(Rn(u)&&!kd(u))return u;u=Wa(u)}return o}let i=Ov(n,l);for(;i&&B5(i)&&kd(i);)i=Ov(i,l);return i&&jr(i)&&kd(i)&&!jf(i)?o:i||q5(n)||o}const W5=async function(n){const l=this.getOffsetParent||My,o=this.getDimensions,i=await o(n.floating);return{reference:J5(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function eR(n){return An(n).direction==="rtl"}const tR={convertOffsetParentRelativeRectToViewportRelativeRect:G5,getDocumentElement:Zn,getClippingRect:I5,getOffsetParent:My,getElementRects:W5,getClientRects:X5,getDimensions:F5,getScale:Rr,isElement:Rn,isRTL:eR};function Dy(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function nR(n,l){let o=null,i;const u=Zn(n);function d(){var h;clearTimeout(i),(h=o)==null||h.disconnect(),o=null}function f(h,y){h===void 0&&(h=!1),y===void 0&&(y=1),d();const g=n.getBoundingClientRect(),{left:x,top:p,width:w,height:C}=g;if(h||l(),!w||!C)return;const N=gs(p),E=gs(u.clientWidth-(x+w)),R=gs(u.clientHeight-(p+C)),T=gs(x),O={rootMargin:-N+"px "+-E+"px "+-R+"px "+-T+"px",threshold:nn(0,Ja(1,y))||1};let k=!0;function q($){const B=$[0].intersectionRatio;if(B!==y){if(!k)return f();B?f(!1,B):i=setTimeout(()=>{f(!1,1e-7)},1e3)}B===1&&!Dy(g,n.getBoundingClientRect())&&f(),k=!1}try{o=new IntersectionObserver(q,{...O,root:u.ownerDocument})}catch{o=new IntersectionObserver(q,O)}o.observe(n)}return f(!0),d}function aR(n,l,o,i){i===void 0&&(i={});const{ancestorScroll:u=!0,ancestorResize:d=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:y=!1}=i,g=Mf(n),x=u||d?[...g?Vo(g):[],...l?Vo(l):[]]:[];x.forEach(T=>{u&&T.addEventListener("scroll",o,{passive:!0}),d&&T.addEventListener("resize",o)});const p=g&&h?nR(g,o):null;let w=-1,C=null;f&&(C=new ResizeObserver(T=>{let[j]=T;j&&j.target===g&&C&&l&&(C.unobserve(l),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var O;(O=C)==null||O.observe(l)})),o()}),g&&!y&&C.observe(g),l&&C.observe(l));let N,E=y?jl(n):null;y&&R();function R(){const T=jl(n);E&&!Dy(E,T)&&o(),E=T,N=requestAnimationFrame(R)}return o(),()=>{var T;x.forEach(j=>{u&&j.removeEventListener("scroll",o),d&&j.removeEventListener("resize",o)}),p==null||p(),(T=C)==null||T.disconnect(),C=null,y&&cancelAnimationFrame(N)}}const lR=k5,rR=z5,oR=O5,iR=U5,sR=M5,Mv=j5,cR=L5,uR=(n,l,o)=>{const i=new Map,u={platform:tR,...o},d={...u.platform,_c:i};return _5(n,l,{...u,platform:d})};var dR=typeof document<"u",fR=function(){},ws=dR?v.useLayoutEffect:fR;function Ds(n,l){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(typeof n=="function"&&n.toString()===l.toString())return!0;let o,i,u;if(n&&l&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==l.length)return!1;for(i=o;i--!==0;)if(!Ds(n[i],l[i]))return!1;return!0}if(u=Object.keys(n),o=u.length,o!==Object.keys(l).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(l,u[i]))return!1;for(i=o;i--!==0;){const d=u[i];if(!(d==="_owner"&&n.$$typeof)&&!Ds(n[d],l[d]))return!1}return!0}return n!==n&&l!==l}function ky(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Dv(n,l){const o=ky(n);return Math.round(l*o)/o}function zd(n){const l=v.useRef(n);return ws(()=>{l.current=n}),l}function mR(n){n===void 0&&(n={});const{placement:l="bottom",strategy:o="absolute",middleware:i=[],platform:u,elements:{reference:d,floating:f}={},transform:h=!0,whileElementsMounted:y,open:g}=n,[x,p]=v.useState({x:0,y:0,strategy:o,placement:l,middlewareData:{},isPositioned:!1}),[w,C]=v.useState(i);Ds(w,i)||C(i);const[N,E]=v.useState(null),[R,T]=v.useState(null),j=v.useCallback(I=>{I!==$.current&&($.current=I,E(I))},[]),O=v.useCallback(I=>{I!==B.current&&(B.current=I,T(I))},[]),k=d||N,q=f||R,$=v.useRef(null),B=v.useRef(null),V=v.useRef(x),te=y!=null,le=zd(y),ve=zd(u),ie=zd(g),ce=v.useCallback(()=>{if(!$.current||!B.current)return;const I={placement:l,strategy:o,middleware:w};ve.current&&(I.platform=ve.current),uR($.current,B.current,I).then(se=>{const F={...se,isPositioned:ie.current!==!1};re.current&&!Ds(V.current,F)&&(V.current=F,$o.flushSync(()=>{p(F)}))})},[w,l,o,ve,ie]);ws(()=>{g===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,p(I=>({...I,isPositioned:!1})))},[g]);const re=v.useRef(!1);ws(()=>(re.current=!0,()=>{re.current=!1}),[]),ws(()=>{if(k&&($.current=k),q&&(B.current=q),k&&q){if(le.current)return le.current(k,q,ce);ce()}},[k,q,ce,le,te]);const ue=v.useMemo(()=>({reference:$,floating:B,setReference:j,setFloating:O}),[j,O]),M=v.useMemo(()=>({reference:k,floating:q}),[k,q]),G=v.useMemo(()=>{const I={position:o,left:0,top:0};if(!M.floating)return I;const se=Dv(M.floating,x.x),F=Dv(M.floating,x.y);return h?{...I,transform:"translate("+se+"px, "+F+"px)",...ky(M.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:se,top:F}},[o,h,M.floating,x.x,x.y]);return v.useMemo(()=>({...x,update:ce,refs:ue,elements:M,floatingStyles:G}),[x,ce,ue,M,G])}const hR=n=>{function l(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:i,padding:u}=typeof n=="function"?n(o):n;return i&&l(i)?i.current!=null?Mv({element:i.current,padding:u}).fn(o):{}:i?Mv({element:i,padding:u}).fn(o):{}}}},pR=(n,l)=>{const o=lR(n);return{name:o.name,fn:o.fn,options:[n,l]}},gR=(n,l)=>{const o=rR(n);return{name:o.name,fn:o.fn,options:[n,l]}},vR=(n,l)=>({fn:cR(n).fn,options:[n,l]}),yR=(n,l)=>{const o=oR(n);return{name:o.name,fn:o.fn,options:[n,l]}},bR=(n,l)=>{const o=iR(n);return{name:o.name,fn:o.fn,options:[n,l]}},xR=(n,l)=>{const o=sR(n);return{name:o.name,fn:o.fn,options:[n,l]}},SR=(n,l)=>{const o=hR(n);return{name:o.name,fn:o.fn,options:[n,l]}};var wR="Arrow",zy=v.forwardRef((n,l)=>{const{children:o,width:i=10,height:u=5,...d}=n;return m.jsx(Ue.svg,{...d,ref:l,width:i,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?o:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});zy.displayName=wR;var ER=zy;function Ly(n){const[l,o]=v.useState(void 0);return Ot(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const d=u[0];let f,h;if("borderBoxSize"in d){const y=d.borderBoxSize,g=Array.isArray(y)?y[0]:y;f=g.inlineSize,h=g.blockSize}else f=n.offsetWidth,h=n.offsetHeight;o({width:f,height:h})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else o(void 0)},[n]),l}var Df="Popper",[Uy,By]=tl(Df),[NR,Hy]=Uy(Df),Vy=n=>{const{__scopePopper:l,children:o}=n,[i,u]=v.useState(null);return m.jsx(NR,{scope:l,anchor:i,onAnchorChange:u,children:o})};Vy.displayName=Df;var qy="PopperAnchor",Yy=v.forwardRef((n,l)=>{const{__scopePopper:o,virtualRef:i,...u}=n,d=Hy(qy,o),f=v.useRef(null),h=Fe(l,f),y=v.useRef(null);return v.useEffect(()=>{const g=y.current;y.current=(i==null?void 0:i.current)||f.current,g!==y.current&&d.onAnchorChange(y.current)}),i?null:m.jsx(Ue.div,{...u,ref:h})});Yy.displayName=qy;var kf="PopperContent",[CR,TR]=Uy(kf),$y=v.forwardRef((n,l)=>{var ee,oe,de,Te,Ee,we;const{__scopePopper:o,side:i="bottom",sideOffset:u=0,align:d="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:y=!0,collisionBoundary:g=[],collisionPadding:x=0,sticky:p="partial",hideWhenDetached:w=!1,updatePositionStrategy:C="optimized",onPlaced:N,...E}=n,R=Hy(kf,o),[T,j]=v.useState(null),O=Fe(l,Je=>j(Je)),[k,q]=v.useState(null),$=Ly(k),B=($==null?void 0:$.width)??0,V=($==null?void 0:$.height)??0,te=i+(d!=="center"?"-"+d:""),le=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},ve=Array.isArray(g)?g:[g],ie=ve.length>0,ce={padding:le,boundary:ve.filter(AR),altBoundary:ie},{refs:re,floatingStyles:ue,placement:M,isPositioned:G,middlewareData:I}=mR({strategy:"fixed",placement:te,whileElementsMounted:(...Je)=>aR(...Je,{animationFrame:C==="always"}),elements:{reference:R.anchor},middleware:[pR({mainAxis:u+V,alignmentAxis:f}),y&&gR({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?vR():void 0,...ce}),y&&yR({...ce}),bR({...ce,apply:({elements:Je,rects:$e,availableWidth:zt,availableHeight:Mt})=>{const{width:ye,height:tt}=$e.reference,Be=Je.floating.style;Be.setProperty("--radix-popper-available-width",`${zt}px`),Be.setProperty("--radix-popper-available-height",`${Mt}px`),Be.setProperty("--radix-popper-anchor-width",`${ye}px`),Be.setProperty("--radix-popper-anchor-height",`${tt}px`)}}),k&&SR({element:k,padding:h}),_R({arrowWidth:B,arrowHeight:V}),w&&xR({strategy:"referenceHidden",...ce})]}),[se,F]=Qy(M),_=Fa(N);Ot(()=>{G&&(_==null||_())},[G,_]);const X=(ee=I.arrow)==null?void 0:ee.x,K=(oe=I.arrow)==null?void 0:oe.y,J=((de=I.arrow)==null?void 0:de.centerOffset)!==0,[W,ae]=v.useState();return Ot(()=>{T&&ae(window.getComputedStyle(T).zIndex)},[T]),m.jsx("div",{ref:re.setFloating,"data-radix-popper-content-wrapper":"",style:{...ue,transform:G?ue.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[(Te=I.transformOrigin)==null?void 0:Te.x,(Ee=I.transformOrigin)==null?void 0:Ee.y].join(" "),...((we=I.hide)==null?void 0:we.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:m.jsx(CR,{scope:o,placedSide:se,onArrowChange:q,arrowX:X,arrowY:K,shouldHideArrow:J,children:m.jsx(Ue.div,{"data-side":se,"data-align":F,...E,ref:O,style:{...E.style,animation:G?void 0:"none"}})})})});$y.displayName=kf;var Gy="PopperArrow",RR={top:"bottom",right:"left",bottom:"top",left:"right"},Xy=v.forwardRef(function(l,o){const{__scopePopper:i,...u}=l,d=TR(Gy,i),f=RR[d.placedSide];return m.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:m.jsx(ER,{...u,ref:o,style:{...u.style,display:"block"}})})});Xy.displayName=Gy;function AR(n){return n!==null}var _R=n=>({name:"transformOrigin",options:n,fn(l){var R,T,j;const{placement:o,rects:i,middlewareData:u}=l,f=((R=u.arrow)==null?void 0:R.centerOffset)!==0,h=f?0:n.arrowWidth,y=f?0:n.arrowHeight,[g,x]=Qy(o),p={start:"0%",center:"50%",end:"100%"}[x],w=(((T=u.arrow)==null?void 0:T.x)??0)+h/2,C=(((j=u.arrow)==null?void 0:j.y)??0)+y/2;let N="",E="";return g==="bottom"?(N=f?p:`${w}px`,E=`${-y}px`):g==="top"?(N=f?p:`${w}px`,E=`${i.floating.height+y}px`):g==="right"?(N=`${-y}px`,E=f?p:`${C}px`):g==="left"&&(N=`${i.floating.width+y}px`,E=f?p:`${C}px`),{data:{x:N,y:E}}}});function Qy(n){const[l,o="center"]=n.split("-");return[l,o]}var jR=Vy,OR=Yy,MR=$y,DR=Xy;function Ky(n){const l=v.useRef({value:n,previous:n});return v.useMemo(()=>(l.current.value!==n&&(l.current.previous=l.current.value,l.current.value=n),l.current.previous),[n])}var Zy=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"}),kR="VisuallyHidden",zR=v.forwardRef((n,l)=>m.jsx(Ue.span,{...n,ref:l,style:{...Zy,...n.style}}));zR.displayName=kR;var LR=[" ","Enter","ArrowUp","ArrowDown"],UR=[" ","Enter"],Ol="Select",[Ws,ec,BR]=Ey(Ol),[Ur]=tl(Ol,[BR,By]),tc=By(),[HR,nl]=Ur(Ol),[VR,qR]=Ur(Ol),Py=n=>{const{__scopeSelect:l,children:o,open:i,defaultOpen:u,onOpenChange:d,value:f,defaultValue:h,onValueChange:y,dir:g,name:x,autoComplete:p,disabled:w,required:C,form:N}=n,E=tc(l),[R,T]=v.useState(null),[j,O]=v.useState(null),[k,q]=v.useState(!1),$=Tf(g),[B,V]=_r({prop:i,defaultProp:u??!1,onChange:d,caller:Ol}),[te,le]=_r({prop:f,defaultProp:h,onChange:y,caller:Ol}),ve=v.useRef(null),ie=R?N||!!R.closest("form"):!0,[ce,re]=v.useState(new Set),ue=Array.from(ce).map(M=>M.props.value).join(";");return m.jsx(jR,{...E,children:m.jsxs(HR,{required:C,scope:l,trigger:R,onTriggerChange:T,valueNode:j,onValueNodeChange:O,valueNodeHasChildren:k,onValueNodeHasChildrenChange:q,contentId:Pa(),value:te,onValueChange:le,open:B,onOpenChange:V,dir:$,triggerPointerDownPosRef:ve,disabled:w,children:[m.jsx(Ws.Provider,{scope:l,children:m.jsx(VR,{scope:n.__scopeSelect,onNativeOptionAdd:v.useCallback(M=>{re(G=>new Set(G).add(M))},[]),onNativeOptionRemove:v.useCallback(M=>{re(G=>{const I=new Set(G);return I.delete(M),I})},[]),children:o})}),ie?m.jsxs(bb,{"aria-hidden":!0,required:C,tabIndex:-1,name:x,autoComplete:p,value:te,onChange:M=>le(M.target.value),disabled:w,form:N,children:[te===void 0?m.jsx("option",{value:""}):null,Array.from(ce)]},ue):null]})})};Py.displayName=Ol;var Iy="SelectTrigger",Fy=v.forwardRef((n,l)=>{const{__scopeSelect:o,disabled:i=!1,...u}=n,d=tc(o),f=nl(Iy,o),h=f.disabled||i,y=Fe(l,f.onTriggerChange),g=ec(o),x=v.useRef("touch"),[p,w,C]=Sb(E=>{const R=g().filter(O=>!O.disabled),T=R.find(O=>O.value===f.value),j=wb(R,E,T);j!==void 0&&f.onValueChange(j.value)}),N=E=>{h||(f.onOpenChange(!0),C()),E&&(f.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return m.jsx(OR,{asChild:!0,...d,children:m.jsx(Ue.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":xb(f.value)?"":void 0,...u,ref:y,onClick:Me(u.onClick,E=>{E.currentTarget.focus(),x.current!=="mouse"&&N(E)}),onPointerDown:Me(u.onPointerDown,E=>{x.current=E.pointerType;const R=E.target;R.hasPointerCapture(E.pointerId)&&R.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(N(E),E.preventDefault())}),onKeyDown:Me(u.onKeyDown,E=>{const R=p.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&w(E.key),!(R&&E.key===" ")&&LR.includes(E.key)&&(N(),E.preventDefault())})})})});Fy.displayName=Iy;var Jy="SelectValue",Wy=v.forwardRef((n,l)=>{const{__scopeSelect:o,className:i,style:u,children:d,placeholder:f="",...h}=n,y=nl(Jy,o),{onValueNodeHasChildrenChange:g}=y,x=d!==void 0,p=Fe(l,y.onValueNodeChange);return Ot(()=>{g(x)},[g,x]),m.jsx(Ue.span,{...h,ref:p,style:{pointerEvents:"none"},children:xb(y.value)?m.jsx(m.Fragment,{children:f}):d})});Wy.displayName=Jy;var YR="SelectIcon",eb=v.forwardRef((n,l)=>{const{__scopeSelect:o,children:i,...u}=n;return m.jsx(Ue.span,{"aria-hidden":!0,...u,ref:l,children:i||"▼"})});eb.displayName=YR;var $R="SelectPortal",tb=n=>m.jsx(vf,{asChild:!0,...n});tb.displayName=$R;var Ml="SelectContent",nb=v.forwardRef((n,l)=>{const o=nl(Ml,n.__scopeSelect),[i,u]=v.useState();if(Ot(()=>{u(new DocumentFragment)},[]),!o.open){const d=i;return d?$o.createPortal(m.jsx(ab,{scope:n.__scopeSelect,children:m.jsx(Ws.Slot,{scope:n.__scopeSelect,children:m.jsx("div",{children:n.children})})}),d):null}return m.jsx(lb,{...n,ref:l})});nb.displayName=Ml;var Cn=10,[ab,al]=Ur(Ml),GR="SelectContentImpl",XR=Ho("SelectContent.RemoveScroll"),lb=v.forwardRef((n,l)=>{const{__scopeSelect:o,position:i="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:d,onPointerDownOutside:f,side:h,sideOffset:y,align:g,alignOffset:x,arrowPadding:p,collisionBoundary:w,collisionPadding:C,sticky:N,hideWhenDetached:E,avoidCollisions:R,...T}=n,j=nl(Ml,o),[O,k]=v.useState(null),[q,$]=v.useState(null),B=Fe(l,ee=>k(ee)),[V,te]=v.useState(null),[le,ve]=v.useState(null),ie=ec(o),[ce,re]=v.useState(!1),ue=v.useRef(!1);v.useEffect(()=>{if(O)return F0(O)},[O]),Y0();const M=v.useCallback(ee=>{const[oe,...de]=ie().map(we=>we.ref.current),[Te]=de.slice(-1),Ee=document.activeElement;for(const we of ee)if(we===Ee||(we==null||we.scrollIntoView({block:"nearest"}),we===oe&&q&&(q.scrollTop=0),we===Te&&q&&(q.scrollTop=q.scrollHeight),we==null||we.focus(),document.activeElement!==Ee))return},[ie,q]),G=v.useCallback(()=>M([V,O]),[M,V,O]);v.useEffect(()=>{ce&&G()},[ce,G]);const{onOpenChange:I,triggerPointerDownPosRef:se}=j;v.useEffect(()=>{if(O){let ee={x:0,y:0};const oe=Te=>{var Ee,we;ee={x:Math.abs(Math.round(Te.pageX)-(((Ee=se.current)==null?void 0:Ee.x)??0)),y:Math.abs(Math.round(Te.pageY)-(((we=se.current)==null?void 0:we.y)??0))}},de=Te=>{ee.x<=10&&ee.y<=10?Te.preventDefault():O.contains(Te.target)||I(!1),document.removeEventListener("pointermove",oe),se.current=null};return se.current!==null&&(document.addEventListener("pointermove",oe),document.addEventListener("pointerup",de,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",oe),document.removeEventListener("pointerup",de,{capture:!0})}}},[O,I,se]),v.useEffect(()=>{const ee=()=>I(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[I]);const[F,_]=Sb(ee=>{const oe=ie().filter(Ee=>!Ee.disabled),de=oe.find(Ee=>Ee.ref.current===document.activeElement),Te=wb(oe,ee,de);Te&&setTimeout(()=>Te.ref.current.focus())}),X=v.useCallback((ee,oe,de)=>{const Te=!ue.current&&!de;(j.value!==void 0&&j.value===oe||Te)&&(te(ee),Te&&(ue.current=!0))},[j.value]),K=v.useCallback(()=>O==null?void 0:O.focus(),[O]),J=v.useCallback((ee,oe,de)=>{const Te=!ue.current&&!de;(j.value!==void 0&&j.value===oe||Te)&&ve(ee)},[j.value]),W=i==="popper"?Kd:rb,ae=W===Kd?{side:h,sideOffset:y,align:g,alignOffset:x,arrowPadding:p,collisionBoundary:w,collisionPadding:C,sticky:N,hideWhenDetached:E,avoidCollisions:R}:{};return m.jsx(ab,{scope:o,content:O,viewport:q,onViewportChange:$,itemRefCallback:X,selectedItem:V,onItemLeave:K,itemTextRefCallback:J,focusSelectedItem:G,selectedItemText:le,position:i,isPositioned:ce,searchRef:F,children:m.jsx(yf,{as:XR,allowPinchZoom:!0,children:m.jsx(gf,{asChild:!0,trapped:j.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:Me(u,ee=>{var oe;(oe=j.trigger)==null||oe.focus({preventScroll:!0}),ee.preventDefault()}),children:m.jsx(pf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:m.jsx(W,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:ee=>ee.preventDefault(),...T,...ae,onPlaced:()=>re(!0),ref:B,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:Me(T.onKeyDown,ee=>{const oe=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!oe&&ee.key.length===1&&_(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let Te=ie().filter(Ee=>!Ee.disabled).map(Ee=>Ee.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(Te=Te.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const Ee=ee.target,we=Te.indexOf(Ee);Te=Te.slice(we+1)}setTimeout(()=>M(Te)),ee.preventDefault()}})})})})})})});lb.displayName=GR;var QR="SelectItemAlignedPosition",rb=v.forwardRef((n,l)=>{const{__scopeSelect:o,onPlaced:i,...u}=n,d=nl(Ml,o),f=al(Ml,o),[h,y]=v.useState(null),[g,x]=v.useState(null),p=Fe(l,B=>x(B)),w=ec(o),C=v.useRef(!1),N=v.useRef(!0),{viewport:E,selectedItem:R,selectedItemText:T,focusSelectedItem:j}=f,O=v.useCallback(()=>{if(d.trigger&&d.valueNode&&h&&g&&E&&R&&T){const B=d.trigger.getBoundingClientRect(),V=g.getBoundingClientRect(),te=d.valueNode.getBoundingClientRect(),le=T.getBoundingClientRect();if(d.dir!=="rtl"){const Ee=le.left-V.left,we=te.left-Ee,Je=B.left-we,$e=B.width+Je,zt=Math.max($e,V.width),Mt=window.innerWidth-Cn,ye=wv(we,[Cn,Math.max(Cn,Mt-zt)]);h.style.minWidth=$e+"px",h.style.left=ye+"px"}else{const Ee=V.right-le.right,we=window.innerWidth-te.right-Ee,Je=window.innerWidth-B.right-we,$e=B.width+Je,zt=Math.max($e,V.width),Mt=window.innerWidth-Cn,ye=wv(we,[Cn,Math.max(Cn,Mt-zt)]);h.style.minWidth=$e+"px",h.style.right=ye+"px"}const ve=w(),ie=window.innerHeight-Cn*2,ce=E.scrollHeight,re=window.getComputedStyle(g),ue=parseInt(re.borderTopWidth,10),M=parseInt(re.paddingTop,10),G=parseInt(re.borderBottomWidth,10),I=parseInt(re.paddingBottom,10),se=ue+M+ce+I+G,F=Math.min(R.offsetHeight*5,se),_=window.getComputedStyle(E),X=parseInt(_.paddingTop,10),K=parseInt(_.paddingBottom,10),J=B.top+B.height/2-Cn,W=ie-J,ae=R.offsetHeight/2,ee=R.offsetTop+ae,oe=ue+M+ee,de=se-oe;if(oe<=J){const Ee=ve.length>0&&R===ve[ve.length-1].ref.current;h.style.bottom="0px";const we=g.clientHeight-E.offsetTop-E.offsetHeight,Je=Math.max(W,ae+(Ee?K:0)+we+G),$e=oe+Je;h.style.height=$e+"px"}else{const Ee=ve.length>0&&R===ve[0].ref.current;h.style.top="0px";const Je=Math.max(J,ue+E.offsetTop+(Ee?X:0)+ae)+de;h.style.height=Je+"px",E.scrollTop=oe-J+E.offsetTop}h.style.margin=`${Cn}px 0`,h.style.minHeight=F+"px",h.style.maxHeight=ie+"px",i==null||i(),requestAnimationFrame(()=>C.current=!0)}},[w,d.trigger,d.valueNode,h,g,E,R,T,d.dir,i]);Ot(()=>O(),[O]);const[k,q]=v.useState();Ot(()=>{g&&q(window.getComputedStyle(g).zIndex)},[g]);const $=v.useCallback(B=>{B&&N.current===!0&&(O(),j==null||j(),N.current=!1)},[O,j]);return m.jsx(ZR,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:C,onScrollButtonChange:$,children:m.jsx("div",{ref:y,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:m.jsx(Ue.div,{...u,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});rb.displayName=QR;var KR="SelectPopperPosition",Kd=v.forwardRef((n,l)=>{const{__scopeSelect:o,align:i="start",collisionPadding:u=Cn,...d}=n,f=tc(o);return m.jsx(MR,{...f,...d,ref:l,align:i,collisionPadding:u,style:{boxSizing:"border-box",...d.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)"}})});Kd.displayName=KR;var[ZR,zf]=Ur(Ml,{}),Zd="SelectViewport",ob=v.forwardRef((n,l)=>{const{__scopeSelect:o,nonce:i,...u}=n,d=al(Zd,o),f=zf(Zd,o),h=Fe(l,d.onViewportChange),y=v.useRef(0);return m.jsxs(m.Fragment,{children:[m.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}),m.jsx(Ws.Slot,{scope:o,children:m.jsx(Ue.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:Me(u.onScroll,g=>{const x=g.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:w}=f;if(w!=null&&w.current&&p){const C=Math.abs(y.current-x.scrollTop);if(C>0){const N=window.innerHeight-Cn*2,E=parseFloat(p.style.minHeight),R=parseFloat(p.style.height),T=Math.max(E,R);if(T<N){const j=T+C,O=Math.min(N,j),k=j-O;p.style.height=O+"px",p.style.bottom==="0px"&&(x.scrollTop=k>0?k:0,p.style.justifyContent="flex-end")}}}y.current=x.scrollTop})})})]})});ob.displayName=Zd;var ib="SelectGroup",[PR,IR]=Ur(ib),FR=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,u=Pa();return m.jsx(PR,{scope:o,id:u,children:m.jsx(Ue.div,{role:"group","aria-labelledby":u,...i,ref:l})})});FR.displayName=ib;var sb="SelectLabel",cb=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,u=IR(sb,o);return m.jsx(Ue.div,{id:u.id,...i,ref:l})});cb.displayName=sb;var ks="SelectItem",[JR,ub]=Ur(ks),db=v.forwardRef((n,l)=>{const{__scopeSelect:o,value:i,disabled:u=!1,textValue:d,...f}=n,h=nl(ks,o),y=al(ks,o),g=h.value===i,[x,p]=v.useState(d??""),[w,C]=v.useState(!1),N=Fe(l,j=>{var O;return(O=y.itemRefCallback)==null?void 0:O.call(y,j,i,u)}),E=Pa(),R=v.useRef("touch"),T=()=>{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 m.jsx(JR,{scope:o,value:i,disabled:u,textId:E,isSelected:g,onItemTextChange:v.useCallback(j=>{p(O=>O||((j==null?void 0:j.textContent)??"").trim())},[]),children:m.jsx(Ws.ItemSlot,{scope:o,value:i,disabled:u,textValue:x,children:m.jsx(Ue.div,{role:"option","aria-labelledby":E,"data-highlighted":w?"":void 0,"aria-selected":g&&w,"data-state":g?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...f,ref:N,onFocus:Me(f.onFocus,()=>C(!0)),onBlur:Me(f.onBlur,()=>C(!1)),onClick:Me(f.onClick,()=>{R.current!=="mouse"&&T()}),onPointerUp:Me(f.onPointerUp,()=>{R.current==="mouse"&&T()}),onPointerDown:Me(f.onPointerDown,j=>{R.current=j.pointerType}),onPointerMove:Me(f.onPointerMove,j=>{var O;R.current=j.pointerType,u?(O=y.onItemLeave)==null||O.call(y):R.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Me(f.onPointerLeave,j=>{var O;j.currentTarget===document.activeElement&&((O=y.onItemLeave)==null||O.call(y))}),onKeyDown:Me(f.onKeyDown,j=>{var k;((k=y.searchRef)==null?void 0:k.current)!==""&&j.key===" "||(UR.includes(j.key)&&T(),j.key===" "&&j.preventDefault())})})})})});db.displayName=ks;var Lo="SelectItemText",fb=v.forwardRef((n,l)=>{const{__scopeSelect:o,className:i,style:u,...d}=n,f=nl(Lo,o),h=al(Lo,o),y=ub(Lo,o),g=qR(Lo,o),[x,p]=v.useState(null),w=Fe(l,T=>p(T),y.onItemTextChange,T=>{var j;return(j=h.itemTextRefCallback)==null?void 0:j.call(h,T,y.value,y.disabled)}),C=x==null?void 0:x.textContent,N=v.useMemo(()=>m.jsx("option",{value:y.value,disabled:y.disabled,children:C},y.value),[y.disabled,y.value,C]),{onNativeOptionAdd:E,onNativeOptionRemove:R}=g;return Ot(()=>(E(N),()=>R(N)),[E,R,N]),m.jsxs(m.Fragment,{children:[m.jsx(Ue.span,{id:y.textId,...d,ref:w}),y.isSelected&&f.valueNode&&!f.valueNodeHasChildren?$o.createPortal(d.children,f.valueNode):null]})});fb.displayName=Lo;var mb="SelectItemIndicator",hb=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n;return ub(mb,o).isSelected?m.jsx(Ue.span,{"aria-hidden":!0,...i,ref:l}):null});hb.displayName=mb;var Pd="SelectScrollUpButton",pb=v.forwardRef((n,l)=>{const o=al(Pd,n.__scopeSelect),i=zf(Pd,n.__scopeSelect),[u,d]=v.useState(!1),f=Fe(l,i.onScrollButtonChange);return Ot(()=>{if(o.viewport&&o.isPositioned){let h=function(){const g=y.scrollTop>0;d(g)};const y=o.viewport;return h(),y.addEventListener("scroll",h),()=>y.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),u?m.jsx(vb,{...n,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:y}=o;h&&y&&(h.scrollTop=h.scrollTop-y.offsetHeight)}}):null});pb.displayName=Pd;var Id="SelectScrollDownButton",gb=v.forwardRef((n,l)=>{const o=al(Id,n.__scopeSelect),i=zf(Id,n.__scopeSelect),[u,d]=v.useState(!1),f=Fe(l,i.onScrollButtonChange);return Ot(()=>{if(o.viewport&&o.isPositioned){let h=function(){const g=y.scrollHeight-y.clientHeight,x=Math.ceil(y.scrollTop)<g;d(x)};const y=o.viewport;return h(),y.addEventListener("scroll",h),()=>y.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),u?m.jsx(vb,{...n,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:y}=o;h&&y&&(h.scrollTop=h.scrollTop+y.offsetHeight)}}):null});gb.displayName=Id;var vb=v.forwardRef((n,l)=>{const{__scopeSelect:o,onAutoScroll:i,...u}=n,d=al("SelectScrollButton",o),f=v.useRef(null),h=ec(o),y=v.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return v.useEffect(()=>()=>y(),[y]),Ot(()=>{var x;const g=h().find(p=>p.ref.current===document.activeElement);(x=g==null?void 0:g.ref.current)==null||x.scrollIntoView({block:"nearest"})},[h]),m.jsx(Ue.div,{"aria-hidden":!0,...u,ref:l,style:{flexShrink:0,...u.style},onPointerDown:Me(u.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(i,50))}),onPointerMove:Me(u.onPointerMove,()=>{var g;(g=d.onItemLeave)==null||g.call(d),f.current===null&&(f.current=window.setInterval(i,50))}),onPointerLeave:Me(u.onPointerLeave,()=>{y()})})}),WR="SelectSeparator",yb=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n;return m.jsx(Ue.div,{"aria-hidden":!0,...i,ref:l})});yb.displayName=WR;var Fd="SelectArrow",eA=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,u=tc(o),d=nl(Fd,o),f=al(Fd,o);return d.open&&f.position==="popper"?m.jsx(DR,{...u,...i,ref:l}):null});eA.displayName=Fd;var tA="SelectBubbleInput",bb=v.forwardRef(({__scopeSelect:n,value:l,...o},i)=>{const u=v.useRef(null),d=Fe(i,u),f=Ky(l);return v.useEffect(()=>{const h=u.current;if(!h)return;const y=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(y,"value").set;if(f!==l&&x){const p=new Event("change",{bubbles:!0});x.call(h,l),h.dispatchEvent(p)}},[f,l]),m.jsx(Ue.select,{...o,style:{...Zy,...o.style},ref:d,defaultValue:l})});bb.displayName=tA;function xb(n){return n===""||n===void 0}function Sb(n){const l=Fa(n),o=v.useRef(""),i=v.useRef(0),u=v.useCallback(f=>{const h=o.current+f;l(h),(function y(g){o.current=g,window.clearTimeout(i.current),g!==""&&(i.current=window.setTimeout(()=>y(""),1e3))})(h)},[l]),d=v.useCallback(()=>{o.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[o,u,d]}function wb(n,l,o){const u=l.length>1&&Array.from(l).every(g=>g===l[0])?l[0]:l,d=o?n.indexOf(o):-1;let f=nA(n,Math.max(d,0));u.length===1&&(f=f.filter(g=>g!==o));const y=f.find(g=>g.textValue.toLowerCase().startsWith(u.toLowerCase()));return y!==o?y:void 0}function nA(n,l){return n.map((o,i)=>n[(l+i)%n.length])}var aA=Py,Eb=Fy,lA=Wy,rA=eb,oA=tb,Nb=nb,iA=ob,Cb=cb,Tb=db,sA=fb,cA=hb,Rb=pb,Ab=gb,_b=yb;const jb=aA,Ob=lA,Lf=v.forwardRef(({className:n,children:l,...o},i)=>m.jsxs(Eb,{ref:i,className:fe("flex h-10 w-full items-center justify-between rounded-[16px] border border-input/85 bg-background/72 px-3 py-2 text-sm shadow-sm ring-offset-background transition-all duration-200 placeholder:text-muted-foreground focus:border-primary/45 focus:bg-background/90 focus:outline-none focus:ring-2 focus:ring-ring/45 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...o,children:[l,m.jsx(rA,{asChild:!0,children:m.jsx(Xs,{className:"h-4 w-4 opacity-50"})})]}));Lf.displayName=Eb.displayName;const Mb=v.forwardRef(({className:n,...l},o)=>m.jsx(Rb,{ref:o,className:fe("flex cursor-default items-center justify-center py-1",n),...l,children:m.jsx(EE,{className:"h-4 w-4"})}));Mb.displayName=Rb.displayName;const Db=v.forwardRef(({className:n,...l},o)=>m.jsx(Ab,{ref:o,className:fe("flex cursor-default items-center justify-center py-1",n),...l,children:m.jsx(Xs,{className:"h-4 w-4"})}));Db.displayName=Ab.displayName;const Uf=v.forwardRef(({className:n,children:l,position:o="popper",...i},u)=>m.jsx(oA,{children:m.jsxs(Nb,{ref:u,className:fe("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-[18px] border border-border/70 bg-popover/96 text-popover-foreground shadow-[0_20px_70px_-36px_rgba(0,0,0,0.45)] backdrop-blur-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:o,...i,children:[m.jsx(Mb,{}),m.jsx(iA,{className:fe("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l}),m.jsx(Db,{})]})}));Uf.displayName=Nb.displayName;const uA=v.forwardRef(({className:n,...l},o)=>m.jsx(Cb,{ref:o,className:fe("py-1.5 pl-8 pr-2 text-sm font-semibold",n),...l}));uA.displayName=Cb.displayName;const Cr=v.forwardRef(({className:n,children:l,...o},i)=>m.jsxs(Tb,{ref:i,className:fe("relative flex w-full cursor-default select-none items-center rounded-[12px] py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent/80 focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...o,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(cA,{children:m.jsx(uf,{className:"h-4 w-4"})})}),m.jsx(sA,{children:l})]}));Cr.displayName=Tb.displayName;const dA=v.forwardRef(({className:n,...l},o)=>m.jsx(_b,{ref:o,className:fe("-mx-1 my-1 h-px bg-muted",n),...l}));dA.displayName=_b.displayName;var Ld="rovingFocusGroup.onEntryFocus",fA={bubbles:!1,cancelable:!0},Xo="RovingFocusGroup",[Jd,kb,mA]=Ey(Xo),[hA,zb]=tl(Xo,[mA]),[pA,gA]=hA(Xo),Lb=v.forwardRef((n,l)=>m.jsx(Jd.Provider,{scope:n.__scopeRovingFocusGroup,children:m.jsx(Jd.Slot,{scope:n.__scopeRovingFocusGroup,children:m.jsx(vA,{...n,ref:l})})}));Lb.displayName=Xo;var vA=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:u=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:y,onEntryFocus:g,preventScrollOnEntryFocus:x=!1,...p}=n,w=v.useRef(null),C=Fe(l,w),N=Tf(d),[E,R]=_r({prop:f,defaultProp:h??null,onChange:y,caller:Xo}),[T,j]=v.useState(!1),O=Fa(g),k=kb(o),q=v.useRef(!1),[$,B]=v.useState(0);return v.useEffect(()=>{const V=w.current;if(V)return V.addEventListener(Ld,O),()=>V.removeEventListener(Ld,O)},[O]),m.jsx(pA,{scope:o,orientation:i,dir:N,loop:u,currentTabStopId:E,onItemFocus:v.useCallback(V=>R(V),[R]),onItemShiftTab:v.useCallback(()=>j(!0),[]),onFocusableItemAdd:v.useCallback(()=>B(V=>V+1),[]),onFocusableItemRemove:v.useCallback(()=>B(V=>V-1),[]),children:m.jsx(Ue.div,{tabIndex:T||$===0?-1:0,"data-orientation":i,...p,ref:C,style:{outline:"none",...n.style},onMouseDown:Me(n.onMouseDown,()=>{q.current=!0}),onFocus:Me(n.onFocus,V=>{const te=!q.current;if(V.target===V.currentTarget&&te&&!T){const le=new CustomEvent(Ld,fA);if(V.currentTarget.dispatchEvent(le),!le.defaultPrevented){const ve=k().filter(M=>M.focusable),ie=ve.find(M=>M.active),ce=ve.find(M=>M.id===E),ue=[ie,ce,...ve].filter(Boolean).map(M=>M.ref.current);Hb(ue,x)}}q.current=!1}),onBlur:Me(n.onBlur,()=>j(!1))})})}),Ub="RovingFocusGroupItem",Bb=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:u=!1,tabStopId:d,children:f,...h}=n,y=Pa(),g=d||y,x=gA(Ub,o),p=x.currentTabStopId===g,w=kb(o),{onFocusableItemAdd:C,onFocusableItemRemove:N,currentTabStopId:E}=x;return v.useEffect(()=>{if(i)return C(),()=>N()},[i,C,N]),m.jsx(Jd.ItemSlot,{scope:o,id:g,focusable:i,active:u,children:m.jsx(Ue.span,{tabIndex:p?0:-1,"data-orientation":x.orientation,...h,ref:l,onMouseDown:Me(n.onMouseDown,R=>{i?x.onItemFocus(g):R.preventDefault()}),onFocus:Me(n.onFocus,()=>x.onItemFocus(g)),onKeyDown:Me(n.onKeyDown,R=>{if(R.key==="Tab"&&R.shiftKey){x.onItemShiftTab();return}if(R.target!==R.currentTarget)return;const T=xA(R,x.orientation,x.dir);if(T!==void 0){if(R.metaKey||R.ctrlKey||R.altKey||R.shiftKey)return;R.preventDefault();let O=w().filter(k=>k.focusable).map(k=>k.ref.current);if(T==="last")O.reverse();else if(T==="prev"||T==="next"){T==="prev"&&O.reverse();const k=O.indexOf(R.currentTarget);O=x.loop?SA(O,k+1):O.slice(k+1)}setTimeout(()=>Hb(O))}}),children:typeof f=="function"?f({isCurrentTabStop:p,hasTabStop:E!=null}):f})})});Bb.displayName=Ub;var yA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function bA(n,l){return l!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function xA(n,l,o){const i=bA(n.key,o);if(!(l==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(l==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return yA[i]}function Hb(n,l=!1){const o=document.activeElement;for(const i of n)if(i===o||(i.focus({preventScroll:l}),document.activeElement!==o))return}function SA(n,l){return n.map((o,i)=>n[(l+i)%n.length])}var wA=Lb,EA=Bb,nc="Tabs",[NA]=tl(nc,[zb]),Vb=zb(),[CA,Bf]=NA(nc),qb=v.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,onValueChange:u,defaultValue:d,orientation:f="horizontal",dir:h,activationMode:y="automatic",...g}=n,x=Tf(h),[p,w]=_r({prop:i,onChange:u,defaultProp:d??"",caller:nc});return m.jsx(CA,{scope:o,baseId:Pa(),value:p,onValueChange:w,orientation:f,dir:x,activationMode:y,children:m.jsx(Ue.div,{dir:x,"data-orientation":f,...g,ref:l})})});qb.displayName=nc;var Yb="TabsList",$b=v.forwardRef((n,l)=>{const{__scopeTabs:o,loop:i=!0,...u}=n,d=Bf(Yb,o),f=Vb(o);return m.jsx(wA,{asChild:!0,...f,orientation:d.orientation,dir:d.dir,loop:i,children:m.jsx(Ue.div,{role:"tablist","aria-orientation":d.orientation,...u,ref:l})})});$b.displayName=Yb;var Gb="TabsTrigger",Xb=v.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,disabled:u=!1,...d}=n,f=Bf(Gb,o),h=Vb(o),y=Zb(f.baseId,i),g=Pb(f.baseId,i),x=i===f.value;return m.jsx(EA,{asChild:!0,...h,focusable:!u,active:x,children:m.jsx(Ue.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":g,"data-state":x?"active":"inactive","data-disabled":u?"":void 0,disabled:u,id:y,...d,ref:l,onMouseDown:Me(n.onMouseDown,p=>{!u&&p.button===0&&p.ctrlKey===!1?f.onValueChange(i):p.preventDefault()}),onKeyDown:Me(n.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&f.onValueChange(i)}),onFocus:Me(n.onFocus,()=>{const p=f.activationMode!=="manual";!x&&!u&&p&&f.onValueChange(i)})})})});Xb.displayName=Gb;var Qb="TabsContent",Kb=v.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,forceMount:u,children:d,...f}=n,h=Bf(Qb,o),y=Zb(h.baseId,i),g=Pb(h.baseId,i),x=i===h.value,p=v.useRef(x);return v.useEffect(()=>{const w=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(w)},[]),m.jsx(kr,{present:u||x,children:({present:w})=>m.jsx(Ue.div,{"data-state":x?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":y,hidden:!w,id:g,tabIndex:0,...f,ref:l,style:{...n.style,animationDuration:p.current?"0s":void 0},children:w&&d})})});Kb.displayName=Qb;function Zb(n,l){return`${n}-trigger-${l}`}function Pb(n,l){return`${n}-content-${l}`}var TA=qb,Ib=$b,Fb=Xb,Jb=Kb;const RA=TA,Wb=v.forwardRef(({className:n,...l},o)=>m.jsx(Ib,{ref:o,className:fe("inline-flex h-10 items-center justify-center rounded-[18px] bg-muted/72 p-1 text-muted-foreground shadow-inner shadow-background/40",n),...l}));Wb.displayName=Ib.displayName;const Es=v.forwardRef(({className:n,...l},o)=>m.jsx(Fb,{ref:o,className:fe("inline-flex items-center justify-center whitespace-nowrap rounded-[14px] px-3 py-1.5 text-sm font-semibold ring-offset-background transition-all duration-200 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary/12 data-[state=active]:text-primary data-[state=active]:shadow-[0_10px_28px_-18px_hsl(var(--primary)/0.85)] data-[state=active]:ring-1 data-[state=active]:ring-primary/22",n),...l}));Es.displayName=Fb.displayName;const Ns=v.forwardRef(({className:n,...l},o)=>m.jsx(Jb,{ref:o,className:fe("mt-2 ring-offset-background data-[state=inactive]:hidden focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n),...l}));Ns.displayName=Jb.displayName;var ex="AlertDialog",[AA]=tl(ex,[W0]),ba=W0(),tx=n=>{const{__scopeAlertDialog:l,...o}=n,i=ba(l);return m.jsx(py,{...i,...o,modal:!0})};tx.displayName=ex;var _A="AlertDialogTrigger",nx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ba(o);return m.jsx(gy,{...u,...i,ref:l})});nx.displayName=_A;var jA="AlertDialogPortal",ax=n=>{const{__scopeAlertDialog:l,...o}=n,i=ba(l);return m.jsx(vy,{...i,...o})};ax.displayName=jA;var OA="AlertDialogOverlay",lx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ba(o);return m.jsx(wf,{...u,...i,ref:l})});lx.displayName=OA;var Ar="AlertDialogContent",[MA,DA]=AA(Ar),kA=QC("AlertDialogContent"),rx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,children:i,...u}=n,d=ba(o),f=v.useRef(null),h=Fe(l,f),y=v.useRef(null);return m.jsx(s5,{contentName:Ar,titleName:ox,docsSlug:"alert-dialog",children:m.jsx(MA,{scope:o,cancelRef:y,children:m.jsxs(Ef,{role:"alertdialog",...d,...u,ref:h,onOpenAutoFocus:Me(u.onOpenAutoFocus,g=>{var x;g.preventDefault(),(x=y.current)==null||x.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[m.jsx(kA,{children:i}),m.jsx(LA,{contentRef:f})]})})})});rx.displayName=Ar;var ox="AlertDialogTitle",ix=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ba(o);return m.jsx(Nf,{...u,...i,ref:l})});ix.displayName=ox;var sx="AlertDialogDescription",cx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ba(o);return m.jsx(Cf,{...u,...i,ref:l})});cx.displayName=sx;var zA="AlertDialogAction",ux=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ba(o);return m.jsx(Zs,{...u,...i,ref:l})});ux.displayName=zA;var dx="AlertDialogCancel",fx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,{cancelRef:u}=DA(dx,o),d=ba(o),f=Fe(l,u);return m.jsx(Zs,{...d,...i,ref:f})});fx.displayName=dx;var LA=({contentRef:n})=>{const l=`\`${Ar}\` requires a description for the component to be accessible for screen reader users.
|
|
296
|
-
|
|
297
|
-
You can add a description to the \`${Ar}\` by passing a \`${sx}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
298
|
-
|
|
299
|
-
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 \`${Ar}\`. 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.
|
|
300
|
-
|
|
301
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return v.useEffect(()=>{var i;document.getElementById((i=n.current)==null?void 0:i.getAttribute("aria-describedby"))||console.warn(l)},[l,n]),null},UA=tx,BA=nx,HA=ax,mx=lx,hx=rx,px=ux,gx=fx,vx=ix,yx=cx;const Wd=UA,ef=BA,VA=HA,bx=v.forwardRef(({className:n,...l},o)=>m.jsx(mx,{className:fe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...l,ref:o}));bx.displayName=mx.displayName;const zs=v.forwardRef(({className:n,...l},o)=>m.jsxs(VA,{children:[m.jsx(bx,{}),m.jsx(hx,{ref:o,className:fe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-[22px] border bg-background p-6 shadow-[0_34px_110px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...l})]}));zs.displayName=hx.displayName;const Ls=({className:n,...l})=>m.jsx("div",{className:fe("flex flex-col space-y-2 text-center sm:text-left",n),...l});Ls.displayName="AlertDialogHeader";const Us=({className:n,...l})=>m.jsx("div",{className:fe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...l});Us.displayName="AlertDialogFooter";const Bs=v.forwardRef(({className:n,...l},o)=>m.jsx(vx,{ref:o,className:fe("text-lg font-semibold",n),...l}));Bs.displayName=vx.displayName;const Hs=v.forwardRef(({className:n,...l},o)=>m.jsx(yx,{ref:o,className:fe("text-sm text-muted-foreground",n),...l}));Hs.displayName=yx.displayName;const Vs=v.forwardRef(({className:n,...l},o)=>m.jsx(px,{ref:o,className:fe(hf(),n),...l}));Vs.displayName=px.displayName;const qs=v.forwardRef(({className:n,...l},o)=>m.jsx(gx,{ref:o,className:fe(hf({variant:"outline"}),"mt-2 sm:mt-0",n),...l}));qs.displayName=gx.displayName;var ac="Checkbox",[qA]=tl(ac),[YA,Hf]=qA(ac);function $A(n){const{__scopeCheckbox:l,checked:o,children:i,defaultChecked:u,disabled:d,form:f,name:h,onCheckedChange:y,required:g,value:x="on",internal_do_not_use_render:p}=n,[w,C]=_r({prop:o,defaultProp:u??!1,onChange:y,caller:ac}),[N,E]=v.useState(null),[R,T]=v.useState(null),j=v.useRef(!1),O=N?!!f||!!N.closest("form"):!0,k={checked:w,disabled:d,setChecked:C,control:N,setControl:E,name:h,form:f,value:x,hasConsumerStoppedPropagationRef:j,required:g,defaultChecked:Ia(u)?!1:u,isFormControl:O,bubbleInput:R,setBubbleInput:T};return m.jsx(YA,{scope:l,...k,children:GA(p)?p(k):i})}var xx="CheckboxTrigger",Sx=v.forwardRef(({__scopeCheckbox:n,onKeyDown:l,onClick:o,...i},u)=>{const{control:d,value:f,disabled:h,checked:y,required:g,setControl:x,setChecked:p,hasConsumerStoppedPropagationRef:w,isFormControl:C,bubbleInput:N}=Hf(xx,n),E=Fe(u,x),R=v.useRef(y);return v.useEffect(()=>{const T=d==null?void 0:d.form;if(T){const j=()=>p(R.current);return T.addEventListener("reset",j),()=>T.removeEventListener("reset",j)}},[d,p]),m.jsx(Ue.button,{type:"button",role:"checkbox","aria-checked":Ia(y)?"mixed":y,"aria-required":g,"data-state":Tx(y),"data-disabled":h?"":void 0,disabled:h,value:f,...i,ref:E,onKeyDown:Me(l,T=>{T.key==="Enter"&&T.preventDefault()}),onClick:Me(o,T=>{p(j=>Ia(j)?!0:!j),N&&C&&(w.current=T.isPropagationStopped(),w.current||T.stopPropagation())})})});Sx.displayName=xx;var Vf=v.forwardRef((n,l)=>{const{__scopeCheckbox:o,name:i,checked:u,defaultChecked:d,required:f,disabled:h,value:y,onCheckedChange:g,form:x,...p}=n;return m.jsx($A,{__scopeCheckbox:o,checked:u,defaultChecked:d,disabled:h,required:f,onCheckedChange:g,name:i,form:x,value:y,internal_do_not_use_render:({isFormControl:w})=>m.jsxs(m.Fragment,{children:[m.jsx(Sx,{...p,ref:l,__scopeCheckbox:o}),w&&m.jsx(Cx,{__scopeCheckbox:o})]})})});Vf.displayName=ac;var wx="CheckboxIndicator",Ex=v.forwardRef((n,l)=>{const{__scopeCheckbox:o,forceMount:i,...u}=n,d=Hf(wx,o);return m.jsx(kr,{present:i||Ia(d.checked)||d.checked===!0,children:m.jsx(Ue.span,{"data-state":Tx(d.checked),"data-disabled":d.disabled?"":void 0,...u,ref:l,style:{pointerEvents:"none",...n.style}})})});Ex.displayName=wx;var Nx="CheckboxBubbleInput",Cx=v.forwardRef(({__scopeCheckbox:n,...l},o)=>{const{control:i,hasConsumerStoppedPropagationRef:u,checked:d,defaultChecked:f,required:h,disabled:y,name:g,value:x,form:p,bubbleInput:w,setBubbleInput:C}=Hf(Nx,n),N=Fe(o,C),E=Ky(d),R=Ly(i);v.useEffect(()=>{const j=w;if(!j)return;const O=window.HTMLInputElement.prototype,q=Object.getOwnPropertyDescriptor(O,"checked").set,$=!u.current;if(E!==d&&q){const B=new Event("click",{bubbles:$});j.indeterminate=Ia(d),q.call(j,Ia(d)?!1:d),j.dispatchEvent(B)}},[w,E,d,u]);const T=v.useRef(Ia(d)?!1:d);return m.jsx(Ue.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??T.current,required:h,disabled:y,name:g,value:x,form:p,...l,tabIndex:-1,ref:N,style:{...l.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Cx.displayName=Nx;function GA(n){return typeof n=="function"}function Ia(n){return n==="indeterminate"}function Tx(n){return Ia(n)?"indeterminate":n?"checked":"unchecked"}const Rx=v.forwardRef(({className:n,...l},o)=>m.jsx(Vf,{ref:o,className:fe("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n),...l,children:m.jsx(Ex,{className:fe("flex items-center justify-center text-current"),children:m.jsx(uf,{className:"h-3.5 w-3.5"})})}));Rx.displayName=Vf.displayName;const Ax=v.forwardRef(({className:n,type:l,...o},i)=>m.jsx("input",{type:l,className:fe("flex h-10 w-full rounded-[16px] border border-input/85 bg-background/72 px-3 py-2 text-sm shadow-sm ring-offset-background transition-all duration-200 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/75 focus-visible:border-primary/45 focus-visible:bg-background/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/45 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),ref:i,...o}));Ax.displayName="Input";const kv=["queued","running"];function XA(n){return n.map(l=>`${l.id}:${l.name}`).join("\0")}function QA(n){return n==="claude"||n==="codex"}function _x(n){var o;if(n.kind!=="agent.upgrade")return null;const l=(o=n.payload)==null?void 0:o.agent;return QA(l)?`${n.nodeId}:${l}`:null}function KA(n){return n.status==="succeeded"||n.status==="failed"}async function jx(n,l={}){const o=l.getOperation??Vw,i=l.pollIntervalMs??2e3,u=l.timeoutMs??24e4,d=Date.now()+u;let f=n;for(;!KA(f)&&Date.now()<d;)await PA(i),f=await o(n.id);return f}async function ZA(n,l=qw){const o=new Set(n),i=await Promise.all(kv.map(d=>l({kind:"agent.upgrade",status:d}))),u=new Map;for(const d of i.flat()){if(!kv.includes(d.status)||o.size>0&&!o.has(d.nodeId))continue;const f=_x(d);if(!f)continue;const h=u.get(f);(!h||d.updatedAt>h.updatedAt)&&u.set(f,d)}return u}function PA(n){return new Promise(l=>setTimeout(l,n))}function IA(n,l=!0){return l?(n==null?void 0:n.restartMode)==="development"?"Restart dev runtime":n!=null&&n.updateAvailable?"Update & restart":"Restart runtime":n!=null&&n.updateAvailable?"Update & restart follower":"Restart follower"}function FA({checkedLabel:n,disableAuthDefault:l,endpoint:o,isLiveLocalNode:i,nodeId:u,nodeName:d,pid:f,transportType:h,update:y,workDir:g}){const x=IA(y,i),[p,w]=v.useState(null),[C,N]=v.useState(()=>zv({disableAuthDefault:l,endpoint:o,nodeName:d,transportType:h,workDir:g})),[E,R]=v.useState(!1),[T,j]=v.useState(!1),[O,k]=v.useState(!1);v.useEffect(()=>{N(zv({disableAuthDefault:l,endpoint:o,nodeName:d,transportType:h,workDir:g}))},[l,o,d,h,g]);async function q(){if(!u||E||T)return;const te=y.updateAvailable?"update":"restart",le=e_(C);if(C.port.trim()&&(le==null?void 0:le.port)===void 0){wt.error("Runtime restart port must be a positive integer");return}const ve=le?{reason:te,startArgs:le}:{reason:te};R(!0);try{if(i){const ue=await Uw(ve);w({...ue,pid:ue.pid??f,status:"accepted"}),wt.info(`Restarting ${d} from a detached helper. PID ${ue.pid??f??"unknown"} will not stay attached to the original terminal window; follow ${ue.logPath} for launch output.`);return}const ie=await $w(u,ve);w({operationId:ie.id,pid:f,status:ie.status}),wt.info(`Restart requested on ${d}. Operation ${Ud(ie.id)} will hand off to a detached process, so the new runtime will not stay attached to the original terminal window.`);const ce=await jx(ie,{timeoutMs:6e4}),re=WA(ce);w({command:re==null?void 0:re.command,logPath:re==null?void 0:re.logPath,mode:re==null?void 0:re.mode,operationId:ce.id,pid:(re==null?void 0:re.pid)??f,status:ce.status}),ce.status==="succeeded"?wt.success(`Restart handoff accepted on ${d}. Follow ${(re==null?void 0:re.logPath)??"the node restart log"} for launch output.`):ce.status==="failed"?wt.error(ce.error??`Restart failed on ${d}`):wt.info(`Restart operation ${Ud(ce.id)} is still ${ce.status}. More details will update after the node reports back.`),R(!1)}catch(ie){R(!1),wt.error(ie instanceof Error?ie.message:"Runtime restart failed")}}async function $(){if(!(!i||E||T)){j(!0);try{const te=await Bw();wt.info(`Stopping Meshy process ${te.pid}`)}catch(te){j(!1),wt.error(te instanceof Error?te.message:"Runtime stop failed")}}}const B=E?"restarting":T?"stopping":(p==null?void 0:p.status)??"idle",V=y.restartMode==="development";return m.jsxs("div",{className:"rounded-xl border border-border/70 bg-background/70 overflow-hidden",children:[m.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2 border-b border-border/50",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Ts,{className:"h-3.5 w-3.5 text-primary shrink-0"}),m.jsxs("div",{children:[m.jsx("div",{className:"text-[11px] font-semibold text-foreground leading-tight",children:"Runtime"}),m.jsx("div",{className:"text-[10px] text-muted-foreground leading-tight",children:V?"Development launcher":`Latest ${y.latestVersion??"—"}`})]})]}),m.jsx("div",{className:"flex items-center gap-1.5",children:m.jsx(yt,{variant:y.updateAvailable?"default":"outline",className:"rounded-full border-border/70 bg-background/60 font-mono text-[10px] px-2 py-0.5",children:V?"dev":y.updateAvailable?`→ ${y.latestVersion}`:"current"})})]}),m.jsxs("div",{className:"grid grid-cols-2 divide-x divide-border/50 border-b border-border/50",children:[m.jsxs("div",{className:"px-3 py-1.5",children:[m.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:"PID"}),m.jsx("div",{className:"mt-0.5 font-mono text-[11px] text-foreground",children:f??"—"})]}),m.jsxs("div",{className:"px-3 py-1.5",children:[m.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:"Status"}),m.jsx("div",{className:"mt-0.5 text-[11px] text-foreground capitalize",children:B})]})]}),m.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2",children:[m.jsxs("div",{className:"text-[10px] text-muted-foreground",children:["Checked ",n]}),m.jsxs("div",{className:"flex items-center gap-1.5",children:[i&&m.jsxs(Wd,{children:[m.jsx(ef,{asChild:!0,children:m.jsxs(Qn,{type:"button",size:"sm",variant:"ghost",disabled:E||T,className:"h-7 rounded-lg px-2 text-[11px] text-muted-foreground hover:text-destructive hover:bg-destructive/10",children:[m.jsx(GE,{className:fe("mr-1 h-3.5 w-3.5",T&&"animate-pulse")}),T?"Stopping":"Stop"]})}),m.jsxs(zs,{className:"max-w-[22rem] rounded-xl gap-2 p-4",children:[m.jsxs(Ls,{className:"space-y-1",children:[m.jsx(Bs,{className:"text-sm",children:"Stop runtime?"}),m.jsx(Hs,{className:"text-[11px] leading-4",children:"Gracefully stops the current Meshy process without launching a replacement. The dashboard will disconnect until the node is started again."})]}),m.jsxs(Us,{className:"gap-1 pt-0 sm:space-x-1",children:[m.jsx(qs,{className:"h-7 rounded-lg px-2 text-[11px]",children:"Cancel"}),m.jsx(Vs,{className:"h-7 rounded-lg px-2 text-[11px] bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:()=>void $(),children:"Stop runtime"})]})]})]}),m.jsxs(Wd,{children:[m.jsx(ef,{asChild:!0,children:m.jsxs(Qn,{type:"button",size:"sm",variant:y.updateAvailable?"default":"outline",disabled:!u||E||T,className:"h-7 rounded-lg px-2 text-[11px]",children:[m.jsx(KE,{className:fe("mr-1 h-3.5 w-3.5",E&&"animate-spin")}),E?"Restarting…":x]})}),m.jsxs(zs,{className:"max-w-[28rem] gap-3 rounded-xl p-4",children:[m.jsxs(Ls,{className:"space-y-1",children:[m.jsxs(Bs,{className:"text-sm",children:[x,"?"]}),m.jsxs(Hs,{className:"text-[11px] leading-4",children:["Starts a detached restart helper, shuts down ",i?"the current node":d,", and brings it back with the configured launcher. The new process will not stay attached to the original terminal window."]})]}),m.jsx(JA,{value:C,onChange:N}),m.jsxs(Us,{className:"gap-1 pt-0 sm:space-x-1",children:[m.jsx(qs,{className:"h-7 rounded-lg px-2 text-[11px]",children:"Cancel"}),m.jsx(Vs,{className:"h-7 rounded-lg px-2 text-[11px]",onClick:()=>void q(),children:x})]})]})]})]})]}),m.jsxs("div",{className:"border-t border-border/50",children:[m.jsxs("button",{type:"button",onClick:()=>k(te=>!te),className:"flex w-full items-center justify-between px-3 py-1.5 text-[10px] text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors",children:[m.jsxs("span",{className:"flex items-center gap-1.5",children:[m.jsx(v0,{className:"h-3 w-3"}),"Restart details"]}),m.jsx(Xs,{className:fe("h-3 w-3 transition-transform duration-150",O&&"rotate-180")})]}),O&&m.jsxs("div",{className:"border-t border-border/50 bg-muted/20 px-3 py-2 space-y-1",children:[m.jsx(Rl,{label:"Current PID",value:f===void 0?"—":String(f),mono:f!==void 0}),m.jsx(Rl,{label:"Restart PID",value:(p==null?void 0:p.pid)===void 0?"Pending":String(p.pid),mono:(p==null?void 0:p.pid)!==void 0}),m.jsx(Rl,{label:"Operation",value:p!=null&&p.operationId?Ud(p.operationId):"Local direct request",mono:!!(p!=null&&p.operationId)}),m.jsx(Rl,{label:"Status",value:(p==null?void 0:p.status)??(E?"requested":"idle")}),m.jsx(Rl,{label:"Launcher",value:(p==null?void 0:p.command)??"Available after restart",mono:!!(p!=null&&p.command)}),m.jsx(Rl,{label:"Log",value:(p==null?void 0:p.logPath)??"Available after restart",mono:!!(p!=null&&p.logPath)}),m.jsx(Rl,{label:"Terminal",value:"New process is detached from original terminal"})]})]}),y.detail&&m.jsx("div",{className:"border-t border-border/50 px-3 py-1.5 text-[10px] text-muted-foreground bg-muted/20",children:y.detail})]})}function JA({onChange:n,value:l}){const o=(i,u)=>{n({...l,[i]:u})};return m.jsxs("div",{className:"rounded-lg border border-border/70 bg-muted/30 p-3 space-y-3",children:[m.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-muted-foreground",children:"Startup arguments"}),m.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[m.jsx(ko,{label:"HTTP port",value:l.port,onChange:i=>o("port",i),inputMode:"numeric"}),m.jsx(ko,{label:"Node name",value:l.name,onChange:i=>o("name",i)}),m.jsx(ko,{label:"Join endpoint",value:l.join,onChange:i=>o("join",i),className:"sm:col-span-2"}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:"Transport"}),m.jsxs(jb,{value:l.transport,onValueChange:i=>o("transport",Ox(i)),children:[m.jsx(Lf,{className:"h-7 rounded-md border-border/70 bg-background/70 px-2 text-[10px]",children:m.jsx(Ob,{placeholder:"Transport"})}),m.jsxs(Uf,{children:[m.jsx(Cr,{className:"py-1 text-[11px]",value:"inherit",children:"current / default"}),m.jsx(Cr,{className:"py-1 text-[11px]",value:"direct",children:"direct"}),m.jsx(Cr,{className:"py-1 text-[11px]",value:"devtunnel",children:"devtunnel"}),m.jsx(Cr,{className:"py-1 text-[11px]",value:"tailscale",children:"tailscale"})]})]})]}),m.jsx(ko,{label:"Working directory",value:l.workDir,onChange:i=>o("workDir",i)}),m.jsx(ko,{label:"Config path",value:l.config,onChange:i=>o("config",i),className:"sm:col-span-2"}),m.jsxs("label",{className:"flex items-center gap-2 rounded-md border border-border/60 bg-background/60 px-2 py-1.5 text-[10px] text-foreground sm:col-span-2 cursor-pointer hover:bg-muted/40 transition-colors",children:[m.jsx(Rx,{className:"h-3.5 w-3.5",checked:l.disableAuth,onCheckedChange:i=>n({...l,disableAuth:i===!0,disableAuthKnown:!0})}),"Disable auth"]})]})]})}function ko({className:n,inputMode:l,label:o,onChange:i,value:u}){return m.jsxs("label",{className:fe("space-y-1",n),children:[m.jsx("span",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:o}),m.jsx(Ax,{className:"h-7 rounded-md px-2 text-[10px]",inputMode:l,value:u,onChange:d=>i(d.target.value)})]})}function Rl({label:n,value:l,mono:o=!1}){return m.jsxs("div",{className:"flex items-start justify-between gap-3 text-[10px]",children:[m.jsx("span",{className:"shrink-0 uppercase tracking-[0.14em] text-muted-foreground",children:n}),m.jsx("span",{className:fe("break-all text-right text-foreground",o&&"font-mono"),children:l})]})}function WA(n){const l=n.result;if(!l||typeof l!="object")return null;const o=l;return o.ok!==!0||typeof o.command!="string"||typeof o.logPath!="string"?null:{ok:!0,mode:o.mode==="package"?"package":"development",command:o.command,logPath:o.logPath,pid:typeof o.pid=="number"?o.pid:void 0}}function zv(n){return{port:t_(n.endpoint),name:n.nodeName,join:"",transport:Ox(n.transportType),workDir:n.workDir??"",config:"",disableAuth:n.disableAuthDefault===!0,disableAuthKnown:n.disableAuthDefault!==void 0}}function e_(n){const l={},o=Number(n.port.trim());return n.port.trim()&&Number.isInteger(o)&&o>0&&(l.port=o),n.name.trim()&&(l.name=n.name.trim()),n.join.trim()&&(l.join=n.join.trim()),n.transport!=="inherit"&&(l.transport=n.transport),n.workDir.trim()&&(l.workDir=n.workDir.trim()),n.config.trim()&&(l.config=n.config.trim()),n.disableAuthKnown&&(l.disableAuth=n.disableAuth),Object.keys(l).length>0?l:void 0}function Ox(n){return n==="direct"||n==="devtunnel"||n==="tailscale"?n:"inherit"}function t_(n){if(!n)return"";try{return new URL(n).port||""}catch{return""}}function Ud(n){return n.length<=8?n:n.slice(0,8)}function vs({formatDateTime:n,name:l,status:o,statusVariant:i}){return m.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:[m.jsxs("div",{children:[m.jsx("div",{className:"text-[11px] font-medium text-foreground",children:l}),m.jsx("div",{className:"text-[10px] text-muted-foreground",children:n(o==null?void 0:o.checkedAt)})]}),m.jsxs("div",{className:"flex items-center gap-1.5",children:[typeof(o==null?void 0:o.authenticated)=="boolean"&&m.jsx(yt,{variant:o.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:o.authenticated?"auth ok":"auth required"}),m.jsx(yt,{variant:i(o==null?void 0:o.status),className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:(o==null?void 0:o.status)??"unknown"})]})]})}function vn(n){if(n==null||n==="")return"Unavailable";const l=new Date(n);return Number.isNaN(l.getTime())?"Unavailable":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(l)}function n_(n){const l=Math.max(0,Math.floor(n)),o=Math.floor(l/86400),i=Math.floor(l%86400/3600),u=Math.floor(l%3600/60);return o>0?`${o}d ${i}h`:i>0?`${i}h ${u}m`:`${u}m`}function Lv(n){if(n==null||Number.isNaN(n))return"Unavailable";const l=["B","KB","MB","GB","TB"];let o=n,i=0;for(;o>=1024&&i<l.length-1;)o/=1024,i+=1;return`${o.toFixed(o>=10||i===0?0:1)} ${l[i]}`}function Uo(n){return n==="ok"?"default":n==="missing"||n==="install-failed"||n==="login-failed"?"destructive":n==="not-authenticated"||n==="unsupported-platform"?"outline":"secondary"}function a_(n){return n.available?m.jsxs(yt,{className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[m.jsx(zo,{className:"h-3 w-3"}),"Available"]}):m.jsxs(yt,{variant:"destructive",className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[m.jsx(AE,{className:"h-3 w-3"}),"Unavailable"]})}function l_(n){return n.update?n.update.updateAvailable?m.jsxs(yt,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Update ",n.update.latestVersion]}):m.jsx(yt,{variant:"secondary",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:"Up to date"}):null}function r_(n){var o;const l=`npm install -g ${(o=n.update)==null?void 0:o.packageName}@latest`;return n.id==="claude"?`${l} --include=optional --ignore-scripts=false`:l}function o_(n){if(n.error)return n.error;const l=n.result;return(l==null?void 0:l.detail)??null}function Le({label:n,value:l,mono:o=!1}){return m.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:[m.jsx("span",{className:"shrink-0 text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:n}),m.jsx("span",{className:fe("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:l})]})}function i_({agent:n,nodeName:l,activeOperation:o,onUpgrade:i}){var h,y;const u=((h=n.update)==null?void 0:h.updateAvailable)===!0,d=l_(n),f=!!o;return m.jsxs("div",{className:"rounded-lg border border-border/60 bg-background/70 p-2.5 shadow-sm",children:[m.jsxs("div",{className:"flex items-start justify-between gap-2",children:[m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-semibold text-foreground",children:[m.jsx(f0,{className:"h-3.5 w-3.5 text-primary"}),n.label]}),m.jsxs("div",{className:"mt-0.5 text-[10px] text-muted-foreground",children:["Command: ",m.jsx("span",{className:"font-mono text-[10px]",children:n.command})]})]}),m.jsxs("div",{className:"flex flex-col items-end gap-1",children:[a_(n),o?m.jsxs(yt,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Upgrade ",o.status]}):u?m.jsxs(Wd,{children:[m.jsx(ef,{asChild:!0,children:m.jsx("button",{type:"button",disabled:f,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:d})}),m.jsxs(zs,{children:[m.jsxs(Ls,{children:[m.jsxs(Bs,{children:["Upgrade ",n.label,"?"]}),m.jsxs(Hs,{children:["This runs ",r_(n)," on ",l,". Remote nodes execute the command on the remote machine."]})]}),m.jsxs(Us,{children:[m.jsx(qs,{children:"Cancel"}),m.jsx(Vs,{onClick:()=>i(n),children:"Upgrade"})]})]})]}):d]})]}),m.jsxs("div",{className:"mt-2 space-y-1 text-[11px]",children:[m.jsx(Le,{label:"Version",value:n.version??"Unavailable",mono:!!n.version}),n.update&&m.jsx(Le,{label:"Latest",value:n.update.latestVersion??"Unavailable",mono:!!n.update.latestVersion}),m.jsx(Le,{label:"Path",value:n.path??"Not on PATH",mono:!!n.path}),m.jsx(Le,{label:"Checked",value:vn(n.checkedAt)}),n.update&&m.jsx(Le,{label:"Update check",value:vn(n.update.checkedAt)})]}),((y=n.update)==null?void 0:y.detail)&&m.jsx("div",{className:"mt-1.5 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:n.update.detail}),n.metadataStatus&&m.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[m.jsx(yt,{variant:Uo(n.metadataStatus),className:"rounded-full px-2 py-0 text-[10px] uppercase tracking-[0.14em]",children:n.metadataStatus}),m.jsx("span",{children:"Startup preflight"})]}),n.detail&&m.jsx("div",{className:"mt-1.5 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:n.detail})]})}function s_(n){return[{key:"workspace",label:"Workspace",value:n==null?void 0:n.workspace},{key:"node",label:"Node app",value:n==null?void 0:n.node},{key:"core",label:"Core",value:n==null?void 0:n.core},{key:"dashboard",label:"Dashboard",value:n==null?void 0:n.dashboard},{key:"api",label:"API",value:n==null?void 0:n.api}].filter(o=>o.value)}function c_(n,l){var o;return(o=n==null?void 0:n.nodes)!=null&&o.length?n.nodes:l?[l]:[]}function u_(n,l){var i;if(l&&n.id===l.nodeId)return l;const o=n.settingsSnapshot;return{...n,nodeId:n.id,version:(o==null?void 0:o.version)??"Unavailable",packageName:o==null?void 0:o.packageName,uptime:(o==null?void 0:o.uptime)??0,localDashboardOrigin:((i=o==null?void 0:o.runtime)==null?void 0:i.localDashboardOrigin)??void 0,auth:o==null?void 0:o.auth,os:o==null?void 0:o.os,runtime:o==null?void 0:o.runtime,runtimeUpdate:o==null?void 0:o.runtimeUpdate,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 d_(n,l){return n.id===l?`${n.name} (this node)`:`${n.name} (${n.role})`}function f_(n){return n==="claude"?"Claude Code":"Codex"}function m_(n){var o;const l=(o=n.payload)==null?void 0:o.agent;return l==="claude"||l==="codex"?l:null}function h_({cluster:n,systemInfo:l,sseConnected:o,initialSelectedNodeId:i,onRefresh:u}){var le,ve,ie,ce,re,ue,M,G,I,se,F,_,X,K,J,W,ae,ee,oe,de,Te,Ee,we,Je,$e,zt,Mt;const d=v.useMemo(()=>c_(n,l),[n,l]),[f,h]=v.useState(()=>{var ye;return i??(l==null?void 0:l.nodeId)??((ye=n==null?void 0:n.self)==null?void 0:ye.id)??""}),[y,g]=v.useState(()=>new Map),x=v.useRef(new Set),p=v.useRef(new Set),w=(n==null?void 0:n.self)??l??d[0]??null,C=d.find(ye=>ye.id===f)??w,N=C?u_(C,l):null,E=!!(l&&C&&C.id===l.nodeId),R=E||!!(C!=null&&C.settingsSnapshot),T=v.useMemo(()=>s_(N==null?void 0:N.packages),[N==null?void 0:N.packages]),j=N==null?void 0:N.runtimeUpdate,O=((le=N==null?void 0:N.startupRequirements)==null?void 0:le.components)??(N==null?void 0:N.components)??{},k=v.useMemo(()=>d.map(ye=>ye.id),[d]),q=k.join("\0"),$=XA(d),B=v.useMemo(()=>new Map(d.map(ye=>[ye.id,ye.name])),[$]);v.useEffect(()=>{i&&k.includes(i)&&h(i)},[i,q]);const V=v.useCallback(async(ye,tt)=>{const Be=_x(ye);if(!Be||x.current.has(ye.id))return;const rn=m_(ye),Kt=(tt==null?void 0:tt.agentLabel)??(rn?f_(rn):"Agent"),dt=(tt==null?void 0:tt.nodeName)??B.get(ye.nodeId)??ye.nodeId;x.current.add(ye.id),g(Ie=>new Map(Ie).set(Be,ye));try{const Ie=await jx(ye);if(Ie.status==="succeeded")await(u==null?void 0:u()),p.current.has(Ie.id)||(wt.success(`${Kt} upgrade finished on ${dt}`),p.current.add(Ie.id));else if(Ie.status==="failed")p.current.has(Ie.id)||(wt.error(o_(Ie)??`${Kt} upgrade failed`),p.current.add(Ie.id));else{g(st=>new Map(st).set(Be,Ie)),wt.info(`${Kt} upgrade is still ${Ie.status} on ${dt}`);return}g(st=>{const bn=new Map(st),Zt=bn.get(Be);return(!Zt||Zt.id===Ie.id)&&bn.delete(Be),bn})}catch(Ie){g(st=>{const bn=new Map(st),Zt=bn.get(Be);return(!Zt||Zt.id===ye.id)&&bn.delete(Be),bn}),wt.error(Ie instanceof Error?Ie.message:`${Kt} upgrade failed`)}finally{x.current.delete(ye.id)}},[u,B]);v.useEffect(()=>{if(k.length===0)return;let ye=!1;async function tt(){let Be;try{Be=await ZA(k)}catch{return}if(!ye){g(rn=>{const Kt=new Map(rn);for(const[dt,Ie]of Be)Kt.set(dt,Ie);return Kt});for(const rn of Be.values())V(rn)}}return tt(),()=>{ye=!0}},[V,q]);async function te(ye){if(C)try{const tt=await Yw(C.id,ye.id);wt.info(`${ye.label} upgrade started on ${C.name}`),await V(tt,{agentLabel:ye.label,nodeName:C.name})}catch(tt){wt.error(tt instanceof Error?tt.message:`${ye.label} upgrade failed`)}}return!C||!N?m.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..."}):m.jsxs("div",{className:"space-y-3",children:[m.jsxs("section",{className:"relative mt-2 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:[!E&&m.jsxs(yt,{variant:"outline",className:"absolute right-3 top-2.5 rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em] whitespace-nowrap",children:["Updated ",vn((ve=C.settingsSnapshot)==null?void 0:ve.collectedAt)]}),m.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-end md:justify-between",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[m.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:[m.jsx(L0,{status:C.status}),m.jsx("span",{className:"font-medium text-foreground",children:C.name})]}),m.jsx(JN,{role:C.role}),m.jsx(yt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:C.transportType??N.transportType??"direct"}),m.jsx(yt,{variant:E?"default":"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:E?"Live local session":"Leader-synced snapshot"})]}),m.jsxs("div",{children:[m.jsx("div",{className:"text-[10px] uppercase tracking-[0.34em] text-muted-foreground",children:"Session"}),m.jsx("h3",{className:"mt-0.5 text-sm font-semibold tracking-tight text-foreground",children:"Node runtime"}),m.jsx("p",{className:"mt-0.5 text-[11px] text-muted-foreground",children:"Runtime environment, connectivity, and build metadata."})]}),d.length>1&&m.jsxs("div",{className:"w-48 space-y-1.5",children:[m.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Inspect node"}),m.jsxs(jb,{value:C.id,onValueChange:h,children:[m.jsx(Lf,{className:"h-7 rounded-lg border-border/70 bg-background/70 text-[11px]",children:m.jsx(Ob,{placeholder:"Choose a node"})}),m.jsx(Uf,{children:d.map(ye=>m.jsx(Cr,{value:ye.id,children:d_(ye,l==null?void 0:l.nodeId)},ye.id))})]})]})]}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsxs(yt,{variant:o?"default":"outline",className:"gap-1 rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:[m.jsx(p0,{className:"h-3 w-3"}),o?"Live link":"Reconnecting"]}),m.jsxs(yt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:["Uptime ",n_(N.uptime)]})]})]})]}),!R&&m.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."}),m.jsxs(RA,{defaultValue:"session",className:"space-y-2",children:[m.jsxs(Wb,{className:"h-auto flex-wrap rounded-xl border border-border/60 bg-muted/40 p-0.5",children:[m.jsx(Es,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),m.jsx(Es,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),m.jsx(Es,{value:"about",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"About"})]}),m.jsxs(Ns,{value:"session",className:"mt-0 grid gap-2 xl:grid-cols-[1.15fr_0.85fr]",children:[m.jsxs(Un,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(PE,{className:"h-3.5 w-3.5 text-primary"}),"Selected node"]}),m.jsx(Vn,{className:"text-[10px]",children:"Cluster role, identity, and node-scoped runtime state."})]}),m.jsxs(qn,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Le,{label:"Node ID",value:N.nodeId,mono:!0}),m.jsx(Le,{label:"Status",value:C.status}),m.jsx(Le,{label:"Role",value:C.role}),m.jsx(Le,{label:"Endpoint",value:C.endpoint,mono:!0}),m.jsx(Le,{label:"Joined",value:vn(C.joinedAt)}),m.jsx(Le,{label:"Heartbeat",value:vn(C.lastHeartbeat)}),m.jsx(Le,{label:"Capabilities",value:C.capabilities.length>0?C.capabilities.join(", "):"None"})]})]}),m.jsxs(Un,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(ME,{className:"h-3.5 w-3.5 text-primary"}),"OS info"]}),m.jsx(Vn,{className:"text-[10px]",children:"Host and resource details reported by the current process."})]}),m.jsxs(qn,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Le,{label:"Host",value:((ie=N.os)==null?void 0:ie.hostname)??"Unavailable"}),m.jsx(Le,{label:"Platform",value:N.os?`${N.os.platform} ${N.os.release}`:"Unavailable"}),m.jsx(Le,{label:"Arch",value:((ce=N.os)==null?void 0:ce.arch)??"Unavailable"}),m.jsx(Le,{label:"CPU",value:((re=N.os)==null?void 0:re.cpuModel)??"Unavailable"}),m.jsx(Le,{label:"Cores",value:String(((ue=N.os)==null?void 0:ue.cpuCount)??"Unavailable")}),m.jsx(Le,{label:"Memory",value:N.os?`${Lv(N.os.freeMemoryBytes)} free / ${Lv(N.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),m.jsxs(Un,{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:[m.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(f0,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),m.jsx(Vn,{className:"text-[10px]",children:E?"Live command availability for Codex and Claude Code on this node.":"Most recent agent availability snapshot synced from this node."})]}),m.jsx(qn,{className:"grid gap-2 px-3 pb-2.5 md:grid-cols-2",children:(N.agents??[]).map(ye=>m.jsx(i_,{agent:ye,nodeName:C.name,activeOperation:y.get(`${C.id}:${ye.id}`),onUpgrade:te},ye.id))})]})]}),m.jsxs(Ns,{value:"access",className:"mt-0 grid gap-2 xl:grid-cols-2",children:[m.jsxs(Un,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(vE,{className:"h-3.5 w-3.5 text-primary"}),"Access surface"]}),m.jsx(Vn,{className:"text-[10px]",children:"How this node is exposed to the dashboard and other peers."})]}),m.jsxs(qn,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Le,{label:"Transport",value:C.transportType??N.transportType??"direct"}),m.jsx(Le,{label:"Node URL",value:C.endpoint,mono:!0}),m.jsx(Le,{label:"Node tunnel",value:C.devtunnelEndpoint??"Disabled",mono:!!C.devtunnelEndpoint}),m.jsx(Le,{label:"Dashboard URL",value:C.dashboardOrigin??N.localDashboardOrigin??"Unavailable",mono:!!(C.dashboardOrigin||N.localDashboardOrigin)}),m.jsx(Le,{label:"Local dashboard",value:N.localDashboardOrigin??"Unavailable",mono:!!N.localDashboardOrigin})]})]}),m.jsxs(Un,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(WE,{className:"h-3.5 w-3.5 text-primary"}),"Auth"]}),m.jsx(Vn,{className:"text-[10px]",children:"Current bearer-auth and trusted access posture."})]}),m.jsxs(qn,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Le,{label:"Enabled",value:(M=N.auth)!=null&&M.enabled?"Yes":"No"}),m.jsx(Le,{label:"Same tenant",value:(G=N.auth)!=null&&G.allowSameTenant?"Allowed":"Off"}),m.jsx(Le,{label:"Allowed users",value:(I=N.auth)!=null&&I.allowedUsers.length?N.auth.allowedUsers.join(", "):"None"})]})]}),m.jsxs(Un,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(LE,{className:"h-3.5 w-3.5 text-primary"}),"Paths"]}),m.jsx(Vn,{className:"text-[10px]",children:"Workspace and runtime paths currently used by this node."})]}),m.jsxs(qn,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Le,{label:"Work dir",value:((se=N.runtime)==null?void 0:se.workDir)??N.workDir??"Unavailable",mono:!!(((F=N.runtime)==null?void 0:F.workDir)??N.workDir)}),m.jsx(Le,{label:"Storage",value:((_=N.runtime)==null?void 0:_.storagePath)??"Unavailable",mono:!!((X=N.runtime)!=null&&X.storagePath)}),m.jsx(Le,{label:"Process cwd",value:((K=N.runtime)==null?void 0:K.cwd)??"Unavailable",mono:!!((J=N.runtime)!=null&&J.cwd)}),m.jsx(Le,{label:"Started",value:vn((W=N.runtime)==null?void 0:W.startedAt)}),m.jsx(Le,{label:"PID",value:N.runtime?String(N.runtime.pid):"Unavailable",mono:!!N.runtime})]})]}),m.jsxs(Un,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(Ts,{className:"h-3.5 w-3.5 text-primary"}),"Startup checks"]}),m.jsx(Vn,{className:"text-[10px]",children:"Dependency preflight snapshot persisted during node startup."})]}),m.jsxs(qn,{className:"space-y-3 px-3 pb-2.5",children:[m.jsxs("div",{className:"rounded-xl border border-border/60 bg-background/70 px-3 py-2",children:[m.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Last checked"}),m.jsx("div",{className:"mt-0.5 text-[11px] text-foreground",children:vn((ae=N.startupRequirements)==null?void 0:ae.lastCheckedAt)})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(vs,{formatDateTime:vn,name:"Azure CLI",status:O.az,statusVariant:Uo}),m.jsx(vs,{formatDateTime:vn,name:"DevTunnel",status:O.devtunnel,statusVariant:Uo}),m.jsx(vs,{formatDateTime:vn,name:"Claude Code",status:O.claude,statusVariant:Uo}),m.jsx(vs,{formatDateTime:vn,name:"Codex",status:O.codex,statusVariant:Uo})]})]})]})]}),m.jsxs(Ns,{value:"about",className:"mt-0 grid gap-2 xl:grid-cols-[0.92fr_1.08fr]",children:[m.jsxs(Un,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(hE,{className:"h-3.5 w-3.5 text-primary"}),"Repository"]}),m.jsx(Vn,{className:"text-[10px]",children:"Source-of-truth repository metadata for this running node."})]}),m.jsxs(qn,{className:"space-y-3 px-3 pb-2.5",children:[(ee=N.repository)!=null&&ee.url?m.jsxs("a",{href:N.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:[m.jsx("span",{className:"font-mono text-[10px]",children:N.repository.url}),m.jsx(kE,{className:"h-3.5 w-3.5 text-muted-foreground transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]}):m.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."}),m.jsxs("div",{className:"space-y-0",children:[m.jsx(Le,{label:"Branch",value:((oe=N.repository)==null?void 0:oe.branch)??"Unavailable",mono:!!((de=N.repository)!=null&&de.branch)}),m.jsx(Le,{label:"Commit",value:((Te=N.repository)==null?void 0:Te.commit)??"Unavailable",mono:!!((Ee=N.repository)!=null&&Ee.commit)}),m.jsx(Le,{label:"Runtime",value:`${N.packageName??"meshy"} ${N.version}`,mono:!0}),m.jsx(Le,{label:"Node.js",value:((we=N.runtime)==null?void 0:we.nodeVersion)??"Unavailable",mono:!!((Je=N.runtime)!=null&&Je.nodeVersion)})]})]})]}),m.jsxs("div",{className:"space-y-2",children:[j&&m.jsx(FA,{checkedLabel:vn(j.checkedAt),disableAuthDefault:(($e=N.auth)==null?void 0:$e.enabled)===void 0?void 0:N.auth.enabled===!1,endpoint:C.endpoint,isLiveLocalNode:E,nodeId:C.id,nodeName:C.name,pid:(zt=N.runtime)==null?void 0:zt.pid,transportType:C.transportType,update:j,workDir:((Mt=N.runtime)==null?void 0:Mt.workDir)??C.workDir}),m.jsxs(Un,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(BE,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),m.jsx(Vn,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),m.jsx(qn,{className:"space-y-1.5 px-3 pb-2.5",children:T.map(ye=>{var tt,Be;return m.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:[m.jsxs("div",{children:[m.jsx("div",{className:"text-[11px] font-medium text-foreground",children:ye.label}),m.jsx("div",{className:"text-[10px] text-muted-foreground",children:(tt=ye.value)==null?void 0:tt.name})]}),m.jsx(yt,{variant:"outline",className:"rounded-[11px] border-border/70 bg-background/60 font-mono text-[10px]",children:(Be=ye.value)==null?void 0:Be.version})]},ye.key)})})]})]})]})]})]})}function p_({initialSelectedNodeId:n,open:l,onOpenChange:o,showTrigger:i=!0}={}){const{cluster:u,systemInfo:d,sseConnected:f,refresh:h}=u0();return m.jsx(g5,{open:l,onOpenChange:o,showTrigger:i,children:m.jsx(h_,{cluster:u,systemInfo:d,sseConnected:f,initialSelectedNodeId:n,onRefresh:h})})}const $3="bypass",g_=[{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"}],G3=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],X3=new Set(g_.filter(n=>n.supportsFollowUp).map(n=>n.value)),Q3=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],K3=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],v_=new Set(["pending","assigned"]),y_=new Set(["running"]),b_=new Set(["completed","failed","cancelled"]);function Z3(n,l){switch(l){case"running":return y_.has(n.status);case"waiting":return v_.has(n.status);case"closed":return b_.has(n.status);case"shared":return!!n.activeShare;case"archived":return n.status==="archived";case"active":default:return n.status!=="archived"}}function P3(n,l){if(l==="all")return!0;const o=n.conversationKind==="nativeSession";return l==="native"?o:!o}function I3(n,l){const o=l.trim().toLowerCase();return o?[n.title,n.description,n.id,n.agent,n.assignedTo??"",n.assignedNodeName??"",n.project??"",n.effectiveProjectPath??"",n.conversationKind==="nativeSession"?"native session":"meshy chat",n.activeShare?"shared conversation":""].some(i=>i.toLowerCase().includes(o)):!0}function x_(n,l,o){if(!n)return"unassigned";const i=l==null?void 0:l.find(u=>u.id===n);return(i==null?void 0:i.name)??o??n.slice(0,8)}function F3(n,l,o){return x_(n,l,o).toLowerCase()}function J3(n,l,o){return!n.assignedTo||(o==null?void 0:o.id)===n.assignedTo?!0:(l==null?void 0:l.some(i=>i.id===n.assignedTo))??!1}function W3(n,l){return[...n].sort((o,i)=>o.id===l?-1:i.id===l?1:o.name.localeCompare(i.name))}function ej(n){if(!n||typeof n!="object")return null;const l=n,o=l.createMode,i=o==="chat"||o==="native"?o:void 0;return{draftNewTask:l.draftNewTask===!0,returnRoute:typeof l.returnRoute=="string"?l.returnRoute:void 0,returnTaskId:typeof l.returnTaskId=="string"||l.returnTaskId===null?l.returnTaskId:void 0,createMode:i}}function tj(n){switch(n){case"running":return"bg-amber-500";case"completed":return"bg-emerald-500";case"failed":return"bg-destructive";case"cancelled":case"archived":return"bg-slate-400";case"assigned":return"bg-teal-500";case"pending":default:return"bg-muted-foreground"}}function nj(n){return n==="default workspace"?n:n.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??n}function aj(n){const l=Date.now()-n;return l<6e4?"just now":l<36e5?`${Math.floor(l/6e4)}m`:l<864e5?`${Math.floor(l/36e5)}h`:`${Math.floor(l/864e5)}d`}function lj(n){return new Date(n).toLocaleString()}function rj(n){const l=Math.floor(n/1e3),o=Math.floor(l/3600),i=Math.floor(l%3600/60),u=l%60;return`${String(o).padStart(2,"0")}:${String(i).padStart(2,"0")}:${String(u).padStart(2,"0")}`}async function S_(n,l="Copied to clipboard"){var o,i,u;try{if((i=(o=globalThis.navigator)==null?void 0:o.clipboard)!=null&&i.writeText)return await globalThis.navigator.clipboard.writeText(n),wt.success(l),!0;const d=globalThis.document,f=(u=d==null?void 0:d.execCommand)==null?void 0:u.bind(d);if(!(d!=null&&d.body)||typeof d.createElement!="function"||typeof f!="function")throw new Error("Clipboard access is unavailable");const h=d.createElement("textarea"),y=d.activeElement,g=y&&typeof y.focus=="function"?y:null;h.value=n,h.setAttribute("readonly","true"),h.style.position="fixed",h.style.opacity="0",h.style.pointerEvents="none",d.body.appendChild(h),h.select(),h.setSelectionRange(0,h.value.length);const x=f("copy");if(d.body.removeChild(h),g==null||g.focus(),!x)throw new Error("Clipboard access is unavailable");return wt.success(l),!0}catch(d){return wt.error(d instanceof Error?d.message:"Failed to copy"),!1}}function oj(n,l,o){const i=new Map;for(const d of n){const f=d.assignedTo??null,h=f??"__unassigned__",y=f?l.get(f)??d.assignedNodeName??f.slice(0,8):"Unassigned",g=d.effectiveProjectPath??d.project??"default workspace";i.has(h)||i.set(h,{nodeId:f,nodeName:y,dirMap:new Map});const x=i.get(h);x.dirMap.has(g)||x.dirMap.set(g,[]),x.dirMap.get(g).push(d)}const u=Array.from(i.values()).map(({nodeId:d,nodeName:f,dirMap:h})=>{const y=Array.from(h.entries()).map(([g,x])=>({path:g,tasks:x})).sort((g,x)=>x.tasks.length-g.tasks.length||g.path.localeCompare(x.path));return{nodeId:d,nodeName:f,dirs:y}});return u.sort((d,f)=>{if(o){if(d.nodeId===o)return-1;if(f.nodeId===o)return 1}return d.nodeId===null?1:f.nodeId===null?-1:d.nodeName.localeCompare(f.nodeName)}),u}const w_={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"},E_={node:"text-teal-700/70 dark:text-teal-300/70",task:"text-amber-700/70 dark:text-amber-300/70",election:"text-indigo-700/70 dark:text-indigo-300/70",cluster:"text-emerald-700/70 dark:text-emerald-300/70",transport:"text-sky-700/70 dark:text-sky-300/70"};function N_(n){return n.split(".")[0]??"unknown"}function C_(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function Nr(n,l){return(l==null?void 0:l.get(n))??n}function Mx(n,l){const o=n.data,i=o.operation;switch(n.type){case"node.joined":return`${o.name} joined the cluster`;case"node.left":return`${Nr(o.nodeId,l)} left (${o.reason})`;case"node.status":return`${Nr(o.nodeId,l)} is now ${o.status}`;case"node.operation.created":return`${i==null?void 0:i.kind} ${i==null?void 0:i.status} on ${Nr(i==null?void 0:i.nodeId,l)}`;case"node.operation.updated":return`${i==null?void 0:i.kind} ${i==null?void 0:i.status} on ${Nr(i==null?void 0:i.nodeId,l)}`;case"transport.changed":return`${Nr(o.nodeId,l)} transport switched to ${o.transportType}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${Nr(o.nodeId,l)}`;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 T_(n){return JSON.stringify(n,null,2)}function R_({events:n,maxHeight:l="400px",nodeNameById:o,onDismiss:i,density:u="default"}){if(n.length===0)return null;const d=u==="compact";return m.jsx("div",{className:"overflow-y-auto pr-1",style:{maxHeight:l},children:m.jsx("div",{className:"space-y-1.5",children:n.map(f=>{const h=N_(f.type);return m.jsx("div",{className:fe("transition-colors hover:bg-muted/30",d?"rounded-[7px] px-1 py-0.5":"rounded-lg px-1.5 py-1"),children:m.jsxs("div",{className:"space-y-1",children:[m.jsxs("div",{className:"flex items-start justify-between gap-1.5",children:[m.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[m.jsx("div",{className:fe("font-mono text-muted-foreground",d?"text-[8px]":"text-[9px]"),children:C_(f.timestamp)}),d?m.jsx("span",{className:fe("max-w-[8.5rem] truncate text-[7px] font-medium uppercase tracking-[0.08em] text-muted-foreground/70",E_[h]),children:f.type}):m.jsx(yt,{variant:"outline",className:fe("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",w_[h]),children:f.type})]}),m.jsxs("div",{className:"flex shrink-0 items-center gap-0.5",children:[m.jsx(Qn,{type:"button",variant:"ghost",size:"icon",className:fe("rounded-[8px] text-muted-foreground",d?"h-4 w-4":"h-5 w-5"),onClick:()=>void S_(T_(f),"Event copied"),"aria-label":`Copy ${f.type} event`,title:"Copy event",children:m.jsx(jE,{className:d?"h-2.5 w-2.5":"h-3 w-3"})}),i&&m.jsx(Qn,{type:"button",variant:"ghost",size:"icon",className:fe("rounded-[8px] text-muted-foreground hover:text-foreground",d?"h-4 w-4":"h-5 w-5"),onClick:()=>i(f.id),"aria-label":`Dismiss ${f.type} event`,title:"Dismiss event",children:m.jsx(y0,{className:d?"h-2.5 w-2.5":"h-3 w-3"})})]})]}),m.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:Mx(f,o)})]})},f.id)})})})}const A_=["node.","election.","transport."],__="cluster.state";function j_(n){return n.type==="node.status"?!1:A_.some(l=>n.type.startsWith(l))}function O_(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function M_(n,l){return n?{time:O_(n.timestamp),text:Mx(n,l)}:null}function D_(n){return n.transportType==="devtunnel"||!!n.devtunnelEndpoint}function k_(n){if(n.length===0)return"No node tunnel";const l=n.filter(u=>u.status==="offline").length;if(l>0)return`${l} offline`;const o=n.filter(u=>{var d;return((d=u.devtunnelHealth)==null?void 0:d.status)==="failed"}).length;if(o>0)return`${o} failed`;const i=n.filter(u=>{var d;return u.status!=="offline"&&((d=u.devtunnelHealth)==null?void 0:d.status)!=="healthy"}).length;return i>0?`${i} checking`:"Healthy"}function z_(n,l){var u;const o=(l==null?void 0:l.get(n.id))??n.name??n.id;if(n.status==="offline")return{label:o,status:"offline"};const i=((u=n.devtunnelHealth)==null?void 0:u.status)??"checking";return{label:o,status:i}}function L_(n){if(n.length===0)return"No nodes";const l=n.filter(i=>i.status==="offline").length;if(l>0)return`${l} offline`;const o=n.filter(i=>i.status==="busy").length;return o>0?`${o} busy`:"Healthy"}function U_(n,l){return{label:(l==null?void 0:l.get(n.id))??n.name??n.id,status:n.status}}function B_({connected:n,events:l,nodes:o=[],nodeNameById:i,defaultOpen:u=!1}){const[d,f]=v.useState(u),[h,y]=v.useState(!0),[g,x]=v.useState(new Set),p=v.useRef(null),w=v.useMemo(()=>l.filter(k=>j_(k)&&!g.has(k.id)),[l,g]),C=v.useMemo(()=>l.find(k=>k.type===__)??w[0],[l,w]),N=v.useMemo(()=>M_(C,i),[C,i]),E=v.useMemo(()=>o.filter(D_),[o]),R=E.some(k=>{var q;return k.status==="offline"||((q=k.devtunnelHealth)==null?void 0:q.status)==="failed"}),T=o.some(k=>k.status==="offline"),j=o.some(k=>k.status==="busy"),O=o.length>0;return v.useEffect(()=>{x(k=>{if(k.size===0)return k;const q=new Set(l.map(B=>B.id)),$=new Set(Array.from(k).filter(B=>q.has(B)));return $.size===k.size?k:$})},[l]),v.useEffect(()=>{if(!d)return;const k=$=>{var B;(B=p.current)!=null&&B.contains($.target)||f(!1)},q=$=>{$.key==="Escape"&&f(!1)};return document.addEventListener("pointerdown",k),document.addEventListener("keydown",q),()=>{document.removeEventListener("pointerdown",k),document.removeEventListener("keydown",q)}},[d]),m.jsxs("div",{ref:p,className:"relative",children:[m.jsxs("button",{type:"button","aria-expanded":d,"aria-haspopup":"dialog",onClick:()=>f(k=>!k),className:fe("flex items-center gap-1.5 rounded-[16px] border px-2 py-1.5 text-[11px] shadow-sm transition-all sm:gap-2 sm:px-3 sm:py-2 sm:text-xs",n?"border-emerald-500/25 bg-emerald-500/8 text-muted-foreground hover:border-emerald-500/40 hover:bg-emerald-500/12":"border-destructive/25 bg-destructive/8 text-muted-foreground hover:border-destructive/40 hover:bg-destructive/12",d&&"shadow-[0_14px_40px_-26px_rgba(16,185,129,0.95)]"),title:n?"Live link connected":"Live link reconnecting",children:[m.jsx(p0,{className:fe("h-3.5 w-3.5",n?"text-emerald-500":"text-destructive")}),n?"Live link":"Reconnecting"]}),d&&m.jsxs("div",{role:"dialog","aria-label":"Live link connection events",className:"absolute right-0 top-[calc(100%+0.4rem)] z-50 w-[18rem] max-w-[calc(100vw-1.5rem)] overflow-hidden rounded-[18px] border border-border/70 bg-background/96 shadow-[0_28px_90px_-42px_rgba(0,0,0,var(--panel-shadow-alpha))] backdrop-blur-xl max-sm:fixed max-sm:right-3 max-sm:top-[3.75rem] max-sm:w-[calc(100vw-1.5rem)]",children:[m.jsx("div",{className:"border-b border-border/60 bg-muted/25 px-2.5 py-1.5",children:m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex items-center gap-1.5",children:[n?m.jsx(Ts,{className:"h-3 w-3 text-emerald-500"}):m.jsx(rN,{className:"h-3 w-3 text-destructive"}),m.jsx("span",{className:"text-[10px] font-semibold text-foreground",children:"Live link"}),m.jsx("span",{className:"text-[9px] text-muted-foreground",children:n?"· SSE connected":"· reconnecting"})]}),m.jsx("div",{className:fe("rounded-[9px] border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.12em]",n?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:n?"Connected":"Retrying"})]})}),m.jsxs("div",{className:"grid grid-cols-2 border-b border-border/60",children:[m.jsxs("div",{className:"border-r border-border/60 px-2.5 py-1.5",children:[m.jsx("div",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Events"}),m.jsx("div",{className:"mt-0.5 text-base font-semibold tracking-tight text-foreground",children:w.length})]}),m.jsxs("div",{className:"min-w-0 px-2.5 py-1.5",children:[m.jsx("div",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Latest"}),N?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"mt-0.5 truncate text-[9px] leading-snug text-foreground/80",children:N.text}),m.jsx("div",{className:"font-mono text-[8px] text-muted-foreground/60",children:N.time})]}):m.jsx("div",{className:"mt-0.5 text-[8px] text-muted-foreground/50",children:"—"})]})]}),m.jsxs("div",{className:"border-b border-border/60 px-2.5 py-1.5",children:[m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[T?m.jsx(is,{className:"h-3 w-3 shrink-0 text-destructive"}):j?m.jsx(Ts,{className:"h-3 w-3 shrink-0 text-amber-500"}):m.jsx(zo,{className:fe("h-3 w-3 shrink-0",O?"text-emerald-500":"text-muted-foreground")}),m.jsx("span",{className:"text-[9px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Node health"})]}),m.jsx("span",{className:fe("shrink-0 rounded-[8px] border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",T?"border-destructive/30 bg-destructive/10 text-destructive":j?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":O?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-border/70 bg-background/60 text-muted-foreground"),children:L_(o)})]}),o.length>0&&m.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:o.map(k=>{const{label:q,status:$}=U_(k,i),B=$==="offline",V=$==="busy";return m.jsxs("div",{"aria-label":`${q} ${$}`,className:fe("flex items-center justify-between gap-2 rounded-[7px] px-2 py-0.5",B?"bg-destructive/6":V?"bg-amber-500/6":"bg-emerald-500/5"),title:`${q} ${$}`,children:[m.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:q}),B?m.jsx(is,{className:"h-3 w-3 shrink-0 text-destructive"}):V?m.jsx(Jg,{className:"h-3 w-3 shrink-0 text-amber-500"}):m.jsx(zo,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},k.id)})})]}),E.length>0&&m.jsxs("div",{className:"border-b border-border/60 px-2.5 py-1.5",children:[m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[R?m.jsx(is,{className:"h-3 w-3 shrink-0 text-destructive"}):m.jsx(zo,{className:"h-3 w-3 shrink-0 text-emerald-500"}),m.jsx("span",{className:"text-[9px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"DevTunnel"})]}),m.jsx("span",{className:fe("shrink-0 rounded-[8px] border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",R?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"),children:k_(E)})]}),m.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:E.map(k=>{var le;const{label:q,status:$}=z_(k,i),B=$==="failed"||$==="offline",V=$!=="healthy"&&$!=="failed"&&$!=="offline",te=(le=k.devtunnelHealth)!=null&&le.reason?`${q} ${$}: ${k.devtunnelHealth.reason}`:`${q} ${$}`;return m.jsxs("div",{"aria-label":`${q} ${$}`,className:fe("flex items-center justify-between gap-2 rounded-[7px] px-2 py-0.5",B?"bg-destructive/6":V?"bg-muted/30":"bg-emerald-500/5"),title:te,children:[m.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:q}),B?m.jsx(is,{className:"h-3 w-3 shrink-0 text-destructive"}):V?m.jsx(Jg,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):m.jsx(zo,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},k.id)})})]}),m.jsxs("div",{children:[m.jsxs("button",{type:"button",onClick:()=>y(k=>!k),className:"flex w-full items-center justify-between px-2.5 py-1.5 text-left hover:bg-muted/30",children:[m.jsxs("span",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:["Notifications ",w.length>0&&`(${w.length})`]}),h?m.jsx(Xs,{className:"h-3 w-3 text-muted-foreground"}):m.jsx(SE,{className:"h-3 w-3 text-muted-foreground"})]}),h&&m.jsx("div",{className:"px-2 pb-2",children:m.jsx(R_,{events:w,maxHeight:"12rem",density:"compact",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:i,onDismiss:k=>x(q=>new Set(q).add(k))})})]}),m.jsxs("div",{className:"flex items-center justify-end gap-1 border-t border-border/60 px-2.5 py-1",children:[m.jsx(Qn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-[9px] px-1.5 text-[9px]",onClick:()=>x(new Set(l.map(k=>k.id))),disabled:w.length===0,title:"Dismiss all notifications",children:"Dismiss all"}),m.jsx(Qn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-[9px] px-1.5 text-[9px]",onClick:()=>f(!1),children:"Close"})]})]})]})}const Dx=v.createContext(null);function H_({children:n}){const[l,o]=v.useState(()=>typeof window<"u"?localStorage.getItem("meshy-theme")??"system":"system"),[i,u]=v.useState(()=>typeof window<"u"?localStorage.getItem("meshy-palette")??"default":"default");return v.useEffect(()=>{const d=document.documentElement,f=h=>{if(h==="system"){const y=window.matchMedia("(prefers-color-scheme: dark)").matches;d.classList.toggle("dark",y)}else d.classList.toggle("dark",h==="dark")};if(f(l),localStorage.setItem("meshy-theme",l),l==="system"){const h=window.matchMedia("(prefers-color-scheme: dark)"),y=()=>f("system");return h.addEventListener("change",y),()=>h.removeEventListener("change",y)}},[l]),v.useEffect(()=>{const d=document.documentElement;i==="default"?d.removeAttribute("data-palette"):d.setAttribute("data-palette",i),localStorage.setItem("meshy-palette",i)},[i]),m.jsx(Dx.Provider,{value:{theme:l,setTheme:o,palette:i,setPalette:u},children:n})}function V_(){const n=v.useContext(Dx);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}const q_=[{value:"light",label:"Light",icon:g0},{value:"dark",label:"Dark",icon:h0},{value:"system",label:"System",icon:m0}],Y_=[{value:"default",label:"Default",hint:"Porcelain + blue"},{value:"warm",label:"Warm",hint:"Cream + amber"},{value:"finsight",label:"FinSight",hint:"Cool sage green"},{value:"inshield",label:"inShield",hint:"Pure white + navy"},{value:"edge",label:"Edge",hint:"Rounded violet panels"}];function $_(){const{theme:n,setTheme:l,palette:o,setPalette:i}=V_(),[u,d]=v.useState(!1),f=v.useRef(null),h=v.useRef(null),y=n==="dark"?h0:n==="light"?g0:m0,g=()=>{f.current&&(clearTimeout(f.current),f.current=null)},x=()=>{g(),f.current=setTimeout(()=>d(!1),180)};return v.useEffect(()=>{if(!u)return;const p=w=>{h.current&&!h.current.contains(w.target)&&d(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[u]),v.useEffect(()=>()=>g(),[]),m.jsxs("div",{ref:h,className:"relative",onMouseEnter:()=>{g(),d(!0)},onMouseLeave:x,children:[m.jsx(Qn,{variant:"ghost",size:"icon",onClick:()=>d(p=>!p),className:fe("rounded-[16px] border bg-background/70",o==="default"?"border-border/60":"border-primary/60 text-primary"),title:"Appearance","aria-haspopup":"menu","aria-expanded":u,children:m.jsx(y,{className:"h-4 w-4"})}),u&&m.jsxs("div",{role:"menu",className:"absolute right-0 top-[calc(100%+8px)] z-50 w-64 rounded-[20px] border border-border/70 bg-popover/95 p-3 text-popover-foreground shadow-[0_24px_80px_-32px_rgba(0,0,0,0.35)] backdrop-blur-xl",children:[m.jsx("div",{className:"px-1 pb-1 text-[10px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Theme"}),m.jsx("div",{className:"mb-2 grid grid-cols-3 gap-1",children:q_.map(({value:p,label:w,icon:C})=>{const N=n===p;return m.jsxs("button",{type:"button",onClick:()=>l(p),className:fe("flex flex-col items-center gap-1 rounded-[14px] border px-2 py-2 text-[11px] font-medium transition-colors",N?"border-primary/50 bg-primary/10 text-primary":"border-border/60 text-muted-foreground hover:border-border hover:bg-muted/60 hover:text-foreground"),children:[m.jsx(C,{className:"h-4 w-4"}),w]},p)})}),m.jsxs("div",{className:"mt-2 flex items-center gap-1.5 px-1 pb-1 text-[10px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:[m.jsx(tN,{className:"h-3 w-3"}),"Palette"]}),m.jsx("div",{className:"space-y-1",children:Y_.map(({value:p,label:w,hint:C})=>{const N=o===p;return m.jsxs("button",{type:"button",onClick:()=>i(p),className:fe("flex w-full items-center gap-2 rounded-[14px] border px-2.5 py-1.5 text-left transition-colors",N?"border-primary/50 bg-primary/10":"border-transparent hover:bg-muted/60"),children:[m.jsx(G_,{value:p}),m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsx("div",{className:fe("text-[12px] font-medium",N?"text-primary":"text-foreground"),children:w}),m.jsx("div",{className:"text-[10px] text-muted-foreground",children:C})]}),N&&m.jsx(uf,{className:"h-3.5 w-3.5 text-primary"})]},p)})})]})]})}function G_({value:n}){const l={default:["hsl(212 76% 44%)","hsl(210 22% 98%)","hsl(174 42% 61%)"],warm:["hsl(35 88% 56%)","hsl(42 22% 97%)","hsl(160 60% 45%)"],finsight:["hsl(152 38% 32%)","hsl(150 14% 97%)","hsl(142 55% 58%)"],inshield:["hsl(220 25% 12%)","hsl(0 0% 100%)","hsl(195 80% 55%)"],edge:["hsl(265 75% 55%)","hsl(260 12% 98%)","hsl(285 70% 65%)"]},[o,i,u]=l[n];return m.jsxs("div",{className:fe("flex h-6 w-6 shrink-0 overflow-hidden border border-border/60",n==="edge"?"rounded-[10px]":"rounded-[12px]"),children:[m.jsx("div",{className:"h-full w-1/3",style:{background:o}}),m.jsx("div",{className:"h-full w-1/3",style:{background:i}}),m.jsx("div",{className:"h-full w-1/3",style:{background:u}})]})}function X_(){var y,g;const{cluster:n,events:l,sseConnected:o}=u0(),i=Kn(),[u,d]=v.useState(!1),f=i.pathname==="/"||/^\/tasks\/[^/]+$/.test(i.pathname),h=v.useMemo(()=>{const x=new Map;for(const p of(n==null?void 0:n.nodes)??[])x.set(p.id,p.name);return x},[n==null?void 0:n.nodes]);return m.jsxs("div",{className:"relative h-full overflow-hidden bg-background text-foreground",children:[m.jsx("div",{className:"mesh-grid pointer-events-none absolute inset-0"}),m.jsxs("div",{className:"relative z-10 flex h-full min-h-0 flex-col",children:[m.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:m.jsxs("div",{className:"dashboard-panel dashboard-panel-muted animate-panel-settle mx-auto flex max-w-[1760px] flex-wrap items-center justify-between gap-2 rounded-[22px] px-3 py-2 sm:gap-3 sm:rounded-[24px] sm:px-4 sm:py-3",children:[m.jsx("div",{className:"flex min-w-0 items-center gap-4",children:m.jsxs(o0,{to:"/",className:"flex items-center gap-3",children:[m.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-[15px] border border-border/70 bg-foreground text-xs font-semibold tracking-[0.24em] text-background shadow-sm sm:h-11 sm:w-11 sm:rounded-[17px] sm:text-sm",children:"M"}),m.jsxs("div",{className:"hidden min-w-0 sm:block",children:[m.jsx("div",{className:"text-[11px] font-medium uppercase tracking-[0.34em] text-muted-foreground",children:"MESHY"}),m.jsx("div",{className:"truncate text-base font-semibold tracking-tight text-foreground",children:"Workspace"})]})]})}),m.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[m.jsxs("div",{className:"hidden items-center gap-2 rounded-[16px] border border-border/70 bg-background/70 px-3 py-2 text-xs text-muted-foreground shadow-sm sm:flex",children:[m.jsxs("span",{className:"flex items-center gap-2",children:[(n==null?void 0:n.self)&&m.jsx(L0,{status:n.self.status}),m.jsx("span",{className:"font-medium text-foreground",children:((y=n==null?void 0:n.self)==null?void 0:y.name)??"offline"})]}),m.jsx("span",{className:"text-border",children:"/"}),m.jsx("span",{className:"capitalize",children:((g=n==null?void 0:n.self)==null?void 0:g.role)??"node"})]}),m.jsx(B_,{connected:o,events:l,nodes:(n==null?void 0:n.nodes)??[],nodeNameById:h}),f&&m.jsx(Qn,{variant:"ghost",size:"icon",onClick:()=>d(x=>!x),"aria-label":u?"Close terminal":"Open terminal",title:u?"Close terminal":"Open terminal",className:fe("rounded-[16px] border bg-background/70 shadow-sm",u?"border-primary/50 bg-primary/10 text-primary":"border-border/70"),children:m.jsx(v0,{className:"h-4 w-4"})}),m.jsx(p_,{}),m.jsx($_,{})]})]})}),m.jsx("main",{className:fe("min-h-0 flex-1 px-3 pb-3 sm:px-5 lg:px-6",f?"overflow-hidden":"overflow-y-auto"),children:m.jsx("div",{className:"mx-auto h-full min-h-0 max-w-[1760px]",children:m.jsx(W2,{context:{terminalOpen:u,setTerminalOpen:d}})})})]})]})}const Uv=v.lazy(async()=>({default:(await Vv(()=>import("./DashboardPage-BSAt8kN_.js").then(l=>l.D),__vite__mapDeps([0,1,2,3]))).DashboardPage})),Q_=v.lazy(async()=>({default:(await Vv(()=>import("./SharedConversationPage-DmcJdyZj.js"),__vite__mapDeps([4,1]))).SharedConversationPage}));function K_(){return m.jsx(Cw,{children:m.jsx(v.Suspense,{fallback:m.jsx(Z_,{}),children:m.jsxs(tw,{children:[m.jsx(Al,{path:"/shared/tasks/:shareId",element:m.jsx(Q_,{})}),m.jsxs(Al,{element:m.jsx(rE,{children:m.jsx(X_,{})}),children:[m.jsx(Al,{path:"/",element:m.jsx(Uv,{})}),m.jsx(Al,{path:"/nodes",element:m.jsx(Pg,{to:"/",replace:!0})}),m.jsx(Al,{path:"/tasks",element:m.jsx(Pg,{to:"/",replace:!0})}),m.jsx(Al,{path:"/tasks/:id",element:m.jsx(Uv,{})})]})]})})})}function Z_(){return m.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function P_(n){return m.jsx(RC,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...n})}e2.createRoot(document.getElementById("root")).render(m.jsx(v.StrictMode,{children:m.jsxs(H_,{children:[m.jsx(K_,{}),m.jsx(P_,{})]})}));export{Vv as $,jE as A,Qn as B,uf as C,$3 as D,S_ as E,LE as F,x_ as G,RA as H,Ax as I,yt as J,V3 as K,Wb as L,Es as M,lj as N,Ns as O,q3 as P,Wd as Q,zs as R,Cr as S,G3 as T,Ls as U,Bs as V,Hs as W,y0 as X,Us as Y,qs as Z,Vs as _,OC as a,W_ as a$,e3 as a0,xy as a1,p5 as a2,m3 as a3,v0 as a4,zo as a5,AE as a6,f3 as a7,h3 as a8,d3 as a9,E3 as aA,l3 as aB,n3 as aC,wy as aD,a3 as aE,r3 as aF,qw as aG,p_ as aH,F_ as aI,Kn as aJ,Fv as aK,I_ as aL,u0 as aM,ej as aN,J3 as aO,Z3 as aP,P3 as aQ,F3 as aR,I3 as aS,g3 as aT,X3 as aU,y_ as aV,N3 as aW,S3 as aX,w3 as aY,x3 as aZ,b3 as a_,FE as aa,VE as ab,W3 as ac,p0 as ad,R_ as ae,L0 as af,kE as ag,JN as ah,rj as ai,v_ as aj,oj as ak,Q3 as al,K3 as am,Rx as an,nj as ao,tj as ap,aj as aq,ef as ar,C3 as as,T3 as at,p3 as au,Jw as av,Qw as aw,H3 as ax,B3 as ay,tE as az,fe as b,t3 as b0,J_ as b1,o3 as b2,O3 as b3,j3 as b4,_3 as b5,R3 as b6,A3 as b7,M3 as b8,EE as b9,Bv as ba,z3 as bb,k3 as bc,D3 as bd,KE as be,L3 as bf,Y3 as bg,U3 as bh,Ye as c,z0 as d,u3 as e,Vw as f,s3 as g,i3 as h,SE as i,m as j,c3 as k,y3 as l,jb as m,Lf as n,Ob as o,Uf as p,f0 as q,v as r,Xs as s,wt as t,g_ as u,tN as v,v3 as w,f5 as x,by as y,Sy as z};
|