meshy-node 0.7.10 → 0.7.12

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.
@@ -0,0 +1,321 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-Buhvr58K.js","assets/DashboardShared-B06oRGIL.js","assets/play-DBL83S4p.js","assets/DashboardPage-i714dDoR.css","assets/SharedConversationPage-DA0lmaQJ.js"])))=>i.map(i=>d[i]);
2
+ function Sw(n,l){for(var o=0;o<l.length;o++){const i=l[o];if(typeof i!="string"&&!Array.isArray(i)){for(const c in i)if(c!=="default"&&!(c in n)){const d=Object.getOwnPropertyDescriptor(i,c);d&&Object.defineProperty(n,c,d.get?d:{enumerable:!0,get:()=>i[c]})}}}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 c of document.querySelectorAll('link[rel="modulepreload"]'))i(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&i(m)}).observe(document,{childList:!0,subtree:!0});function o(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(c){if(c.ep)return;c.ep=!0;const d=o(c);fetch(c.href,d)}})();function i0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ed={exports:{}},ko={};/**
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 Zg;function ww(){if(Zg)return ko;Zg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function o(i,c,d){var m=null;if(d!==void 0&&(m=""+d),c.key!==void 0&&(m=""+c.key),"key"in c){d={};for(var h in c)h!=="key"&&(d[h]=c[h])}else d=c;return c=d.ref,{$$typeof:n,type:i,key:m,ref:c!==void 0?c:null,props:d}}return ko.Fragment=l,ko.jsx=o,ko.jsxs=o,ko}var Ig;function Ew(){return Ig||(Ig=1,Ed.exports=ww()),Ed.exports}var f=Ew(),Nd={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 Fg;function Nw(){if(Fg)return Ce;Fg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),w=Symbol.iterator;function N(j){return j===null||typeof j!="object"?null:(j=w&&j[w]||j["@@iterator"],typeof j=="function"?j:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function A(j,G,K){this.props=j,this.context=G,this.refs=C,this.updater=K||T}A.prototype.isReactComponent={},A.prototype.setState=function(j,G){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,G,"setState")},A.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function _(){}_.prototype=A.prototype;function M(j,G,K){this.props=j,this.context=G,this.refs=C,this.updater=K||T}var k=M.prototype=new _;k.constructor=M,E(k,A.prototype),k.isPureReactComponent=!0;var Y=Array.isArray;function X(){}var V={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function ne(j,G,K){var W=K.ref;return{$$typeof:n,type:j,key:G,ref:W!==void 0?W:null,props:K}}function se(j,G){return ne(j.type,G,j.props)}function me(j){return typeof j=="object"&&j!==null&&j.$$typeof===n}function ce(j){var G={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(K){return G[K]})}var ue=/\/+/g;function fe(j,G){return typeof j=="object"&&j!==null&&j.key!=null?ce(""+j.key):G.toString(36)}function re(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(X,X):(j.status="pending",j.then(function(G){j.status==="pending"&&(j.status="fulfilled",j.value=G)},function(G){j.status==="pending"&&(j.status="rejected",j.reason=G)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function O(j,G,K,W,ee){var oe=typeof j;(oe==="undefined"||oe==="boolean")&&(j=null);var te=!1;if(j===null)te=!0;else switch(oe){case"bigint":case"string":case"number":te=!0;break;case"object":switch(j.$$typeof){case n:case l:te=!0;break;case x:return te=j._init,O(te(j._payload),G,K,W,ee)}}if(te)return ee=ee(j),te=W===""?"."+fe(j,0):W,Y(ee)?(K="",te!=null&&(K=te.replace(ue,"$&/")+"/"),O(ee,G,K,"",function(be){return be})):ee!=null&&(me(ee)&&(ee=se(ee,K+(ee.key==null||j&&j.key===ee.key?"":(""+ee.key).replace(ue,"$&/")+"/")+te)),G.push(ee)),1;te=0;var ie=W===""?".":W+":";if(Y(j))for(var J=0;J<j.length;J++)W=j[J],oe=ie+fe(W,J),te+=O(W,G,K,oe,ee);else if(J=N(j),typeof J=="function")for(j=J.call(j),J=0;!(W=j.next()).done;)W=W.value,oe=ie+fe(W,J++),te+=O(W,G,K,oe,ee);else if(oe==="object"){if(typeof j.then=="function")return O(re(j),G,K,W,ee);throw G=String(j),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return te}function $(j,G,K){if(j==null)return j;var W=[],ee=0;return O(j,W,"","",function(oe){return G.call(K,oe,ee++)}),W}function F(j){if(j._status===-1){var G=j._result;G=G(),G.then(function(K){(j._status===0||j._status===-1)&&(j._status=1,j._result=K)},function(K){(j._status===0||j._status===-1)&&(j._status=2,j._result=K)}),j._status===-1&&(j._status=0,j._result=G)}if(j._status===1)return j._result.default;throw j._result}var de=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},Q={map:$,forEach:function(j,G,K){$(j,function(){G.apply(this,arguments)},K)},count:function(j){var G=0;return $(j,function(){G++}),G},toArray:function(j){return $(j,function(G){return G})||[]},only:function(j){if(!me(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return Ce.Activity=g,Ce.Children=Q,Ce.Component=A,Ce.Fragment=o,Ce.Profiler=c,Ce.PureComponent=M,Ce.StrictMode=i,Ce.Suspense=y,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(j){return V.H.useMemoCache(j)}},Ce.cache=function(j){return function(){return j.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(j,G,K){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var W=E({},j.props),ee=j.key;if(G!=null)for(oe in G.key!==void 0&&(ee=""+G.key),G)!H.call(G,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&G.ref===void 0||(W[oe]=G[oe]);var oe=arguments.length-2;if(oe===1)W.children=K;else if(1<oe){for(var te=Array(oe),ie=0;ie<oe;ie++)te[ie]=arguments[ie+2];W.children=te}return ne(j.type,ee,W)},Ce.createContext=function(j){return j={$$typeof:m,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:d,_context:j},j},Ce.createElement=function(j,G,K){var W,ee={},oe=null;if(G!=null)for(W in G.key!==void 0&&(oe=""+G.key),G)H.call(G,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ee[W]=G[W]);var te=arguments.length-2;if(te===1)ee.children=K;else if(1<te){for(var ie=Array(te),J=0;J<te;J++)ie[J]=arguments[J+2];ee.children=ie}if(j&&j.defaultProps)for(W in te=j.defaultProps,te)ee[W]===void 0&&(ee[W]=te[W]);return ne(j,oe,ee)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(j){return{$$typeof:h,render:j}},Ce.isValidElement=me,Ce.lazy=function(j){return{$$typeof:x,_payload:{_status:-1,_result:j},_init:F}},Ce.memo=function(j,G){return{$$typeof:p,type:j,compare:G===void 0?null:G}},Ce.startTransition=function(j){var G=V.T,K={};V.T=K;try{var W=j(),ee=V.S;ee!==null&&ee(K,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(X,de)}catch(oe){de(oe)}finally{G!==null&&K.types!==null&&(G.types=K.types),V.T=G}},Ce.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},Ce.use=function(j){return V.H.use(j)},Ce.useActionState=function(j,G,K){return V.H.useActionState(j,G,K)},Ce.useCallback=function(j,G){return V.H.useCallback(j,G)},Ce.useContext=function(j){return V.H.useContext(j)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(j,G){return V.H.useDeferredValue(j,G)},Ce.useEffect=function(j,G){return V.H.useEffect(j,G)},Ce.useEffectEvent=function(j){return V.H.useEffectEvent(j)},Ce.useId=function(){return V.H.useId()},Ce.useImperativeHandle=function(j,G,K){return V.H.useImperativeHandle(j,G,K)},Ce.useInsertionEffect=function(j,G){return V.H.useInsertionEffect(j,G)},Ce.useLayoutEffect=function(j,G){return V.H.useLayoutEffect(j,G)},Ce.useMemo=function(j,G){return V.H.useMemo(j,G)},Ce.useOptimistic=function(j,G){return V.H.useOptimistic(j,G)},Ce.useReducer=function(j,G,K){return V.H.useReducer(j,G,K)},Ce.useRef=function(j){return V.H.useRef(j)},Ce.useState=function(j){return V.H.useState(j)},Ce.useSyncExternalStore=function(j,G,K){return V.H.useSyncExternalStore(j,G,K)},Ce.useTransition=function(){return V.H.useTransition()},Ce.version="19.2.4",Ce}var Jg;function vf(){return Jg||(Jg=1,Nd.exports=Nw()),Nd.exports}var v=vf();const ae=i0(v),yf=Sw({__proto__:null,default:ae},[v]);var Td={exports:{}},zo={},Cd={exports:{}},Ad={};/**
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 Wg;function Tw(){return Wg||(Wg=1,(function(n){function l(O,$){var F=O.length;O.push($);e:for(;0<F;){var de=F-1>>>1,Q=O[de];if(0<c(Q,$))O[de]=$,O[F]=Q,F=de;else break e}}function o(O){return O.length===0?null:O[0]}function i(O){if(O.length===0)return null;var $=O[0],F=O.pop();if(F!==$){O[0]=F;e:for(var de=0,Q=O.length,j=Q>>>1;de<j;){var G=2*(de+1)-1,K=O[G],W=G+1,ee=O[W];if(0>c(K,F))W<Q&&0>c(ee,K)?(O[de]=ee,O[W]=F,de=W):(O[de]=K,O[G]=F,de=G);else if(W<Q&&0>c(ee,F))O[de]=ee,O[W]=F,de=W;else break e}}return $}function c(O,$){var F=O.sortIndex-$.sortIndex;return F!==0?F:O.id-$.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 m=Date,h=m.now();n.unstable_now=function(){return m.now()-h}}var y=[],p=[],x=1,g=null,w=3,N=!1,T=!1,E=!1,C=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function k(O){for(var $=o(p);$!==null;){if($.callback===null)i(p);else if($.startTime<=O)i(p),$.sortIndex=$.expirationTime,l(y,$);else break;$=o(p)}}function Y(O){if(E=!1,k(O),!T)if(o(y)!==null)T=!0,X||(X=!0,ce());else{var $=o(p);$!==null&&re(Y,$.startTime-O)}}var X=!1,V=-1,H=5,ne=-1;function se(){return C?!0:!(n.unstable_now()-ne<H)}function me(){if(C=!1,X){var O=n.unstable_now();ne=O;var $=!0;try{e:{T=!1,E&&(E=!1,_(V),V=-1),N=!0;var F=w;try{t:{for(k(O),g=o(y);g!==null&&!(g.expirationTime>O&&se());){var de=g.callback;if(typeof de=="function"){g.callback=null,w=g.priorityLevel;var Q=de(g.expirationTime<=O);if(O=n.unstable_now(),typeof Q=="function"){g.callback=Q,k(O),$=!0;break t}g===o(y)&&i(y),k(O)}else i(y);g=o(y)}if(g!==null)$=!0;else{var j=o(p);j!==null&&re(Y,j.startTime-O),$=!1}}break e}finally{g=null,w=F,N=!1}$=void 0}}finally{$?ce():X=!1}}}var ce;if(typeof M=="function")ce=function(){M(me)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,fe=ue.port2;ue.port1.onmessage=me,ce=function(){fe.postMessage(null)}}else ce=function(){A(me,0)};function re(O,$){V=A(function(){O(n.unstable_now())},$)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(O){switch(w){case 1:case 2:case 3:var $=3;break;default:$=w}var F=w;w=$;try{return O()}finally{w=F}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(O,$){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var F=w;w=O;try{return $()}finally{w=F}},n.unstable_scheduleCallback=function(O,$,F){var de=n.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?de+F:de):F=de,O){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=F+Q,O={id:x++,callback:$,priorityLevel:O,startTime:F,expirationTime:Q,sortIndex:-1},F>de?(O.sortIndex=F,l(p,O),o(y)===null&&O===o(p)&&(E?(_(V),V=-1):E=!0,re(Y,F-de))):(O.sortIndex=Q,l(y,O),T||N||(T=!0,X||(X=!0,ce()))),O},n.unstable_shouldYield=se,n.unstable_wrapCallback=function(O){var $=w;return function(){var F=w;w=$;try{return O.apply(this,arguments)}finally{w=F}}}})(Ad)),Ad}var ev;function Cw(){return ev||(ev=1,Cd.exports=Tw()),Cd.exports}var Rd={exports:{}},Dt={};/**
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 tv;function Aw(){if(tv)return Dt;tv=1;var n=vf();function l(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(l(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(y,p,x){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:g==null?null:""+g,children:y,containerInfo:p,implementation:x}}var m=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Dt.createPortal=function(y,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return d(y,p,null,x)},Dt.flushSync=function(y){var p=m.T,x=i.p;try{if(m.T=null,i.p=2,y)return y()}finally{m.T=p,i.p=x,i.d.f()}},Dt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(y,p))},Dt.prefetchDNS=function(y){typeof y=="string"&&i.d.D(y)},Dt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var x=p.as,g=h(x,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,N=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?i.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:w,fetchPriority:N}):x==="script"&&i.d.X(y,{crossOrigin:g,integrity:w,fetchPriority:N,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Dt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=h(p.as,p.crossOrigin);i.d.M(y,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(y)},Dt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,g=h(x,p.crossOrigin);i.d.L(y,x,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Dt.preloadModule=function(y,p){if(typeof y=="string")if(p){var x=h(p.as,p.crossOrigin);i.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(y)},Dt.requestFormReset=function(y){i.d.r(y)},Dt.unstable_batchedUpdates=function(y,p){return y(p)},Dt.useFormState=function(y,p,x){return m.H.useFormState(y,p,x)},Dt.useFormStatus=function(){return m.H.useHostTransitionStatus()},Dt.version="19.2.4",Dt}var nv;function s0(){if(nv)return Rd.exports;nv=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(),Rd.exports=Aw(),Rd.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 av;function Rw(){if(av)return zo;av=1;var n=Cw(),l=vf(),o=s0();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 c(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 m(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 p(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 u=s.alternate;if(u===null){if(r=s.return,r!==null){a=r;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===a)return y(s),e;if(u===r)return y(s),t;u=u.sibling}throw Error(i(188))}if(a.return!==r.return)a=s,r=u;else{for(var b=!1,S=s.child;S;){if(S===a){b=!0,a=s,r=u;break}if(S===r){b=!0,r=s,a=u;break}S=S.sibling}if(!b){for(S=u.child;S;){if(S===a){b=!0,a=u,r=s;break}if(S===r){b=!0,r=u,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 g=Object.assign,w=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),M=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),me=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=me&&e[me]||e["@@iterator"],typeof e=="function"?e:null)}var ue=Symbol.for("react.client.reference");function fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case A:return"Profiler";case C:return"StrictMode";case Y:return"Suspense";case X:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case M:return e.displayName||"Context";case _: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 V:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case H:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}var re=Array.isArray,O=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},de=[],Q=-1;function j(e){return{current:e}}function G(e){0>Q||(e.current=de[Q],de[Q]=null,Q--)}function K(e,t){Q++,de[Q]=e.current,e.current=t}var W=j(null),ee=j(null),oe=j(null),te=j(null);function ie(e,t){switch(K(oe,t),K(ee,e),K(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?yg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=yg(t),e=bg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(W),K(W,e)}function J(){G(W),G(ee),G(oe)}function be(e){e.memoizedState!==null&&K(te,e);var t=W.current,a=bg(t,e.type);t!==a&&(K(ee,e),K(W,a))}function ye(e){ee.current===e&&(G(W),G(ee)),te.current===e&&(G(te),jo._currentValue=F)}var Se,Ve;function Le(e){if(Se===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||"",Ve=-1<a.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+Se+e+Ve}var je=!1;function ft(e,t){if(!e||je)return"";je=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(q){var B=q}Reflect.construct(e,[],I)}else{try{I.call()}catch(q){B=q}e.call(I.prototype)}}else{try{throw Error()}catch(q){B=q}(I=e())&&typeof I.catch=="function"&&I.catch(function(){})}}catch(q){if(q&&B&&typeof q.stack=="string")return[q.stack,B.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 u=r.DetermineComponentFrameRoot(),b=u[0],S=u[1];if(b&&S){var R=b.split(`
45
+ `),U=S.split(`
46
+ `);for(s=r=0;r<R.length&&!R[r].includes("DetermineComponentFrameRoot");)r++;for(;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;if(r===R.length||s===U.length)for(r=R.length-1,s=U.length-1;1<=r&&0<=s&&R[r]!==U[s];)s--;for(;1<=r&&0<=s;r--,s--)if(R[r]!==U[s]){if(r!==1||s!==1)do if(r--,s--,0>s||R[r]!==U[s]){var P=`
47
+ `+R[r].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=r&&0<=s);break}}}finally{je=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Le(a):""}function ot(e,t){switch(e.tag){case 26:case 27:case 5:return Le(e.type);case 16:return Le("Lazy");case 13:return e.child!==t&&t!==null?Le("Suspense Fallback"):Le("Suspense");case 19:return Le("SuspenseList");case 0:case 15:return ft(e.type,!1);case 11:return ft(e.type.render,!1);case 1:return ft(e.type,!0);case 31:return Le("Activity");default:return""}}function zt(e){try{var t="",a=null;do t+=ot(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
48
+ Error generating stack: `+r.message+`
49
+ `+r.stack}}var mt=Object.prototype.hasOwnProperty,ll=n.unstable_scheduleCallback,rl=n.unstable_cancelCallback,St=n.unstable_shouldYield,Sn=n.unstable_requestPaint,xe=n.unstable_now,et=n.unstable_getCurrentPriorityLevel,Xe=n.unstable_ImmediatePriority,Tt=n.unstable_UserBlockingPriority,It=n.unstable_NormalPriority,ol=n.unstable_LowPriority,sn=n.unstable_IdlePriority,ei=n.log,xa=n.unstable_setDisableYieldValue,il=null,Lt=null;function wn(e){if(typeof ei=="function"&&xa(e),Lt&&typeof Lt.setStrictMode=="function")try{Lt.setStrictMode(il,e)}catch{}}var Mt=Math.clz32?Math.clz32:On,fc=Math.log,qr=Math.LN2;function On(e){return e>>>=0,e===0?32:31-(fc(e)/qr|0)|0}var Ll=256,Ul=262144,sl=4194304;function Dn(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 Te(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var s=0,u=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=r&134217727;return S!==0?(r=S&~u,r!==0?s=Dn(r):(b&=S,b!==0?s=Dn(b):a||(a=S&~e,a!==0&&(s=Dn(a))))):(S=r&~u,S!==0?s=Dn(S):b!==0?s=Dn(b):a||(a=r&~e,a!==0&&(s=Dn(a)))),s===0?0:t!==0&&t!==s&&(t&u)===0&&(u=s&-s,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:s}function at(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function wt(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 Ot(){var e=sl;return sl<<=1,(sl&62914560)===0&&(sl=4194304),e}function Sa(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function it(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Bt(e,t,a,r,s,u){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,R=e.expirationTimes,U=e.hiddenUpdates;for(a=b&~a;0<a;){var P=31-Mt(a),I=1<<P;S[P]=0,R[P]=-1;var B=U[P];if(B!==null)for(U[P]=null,P=0;P<B.length;P++){var q=B[P];q!==null&&(q.lane&=-536870913)}a&=~I}r!==0&&cl(e,r,0),u!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=u&~(b&~t))}function cl(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Mt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function Ht(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-Mt(a),s=1<<r;s&t|e[r]&t&&(e[r]|=t),a&=~s}}function Vt(e,t){var a=t&-t;return a=(a&42)!==0?1:Bl(a),(a&(e.suspendedLanes|t))!==0?0:a}function Bl(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 En(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function mc(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:Yg(e.type))}function lm(e,t){var a=$.p;try{return $.p=e,t()}finally{$.p=a}}var wa=Math.random().toString(36).slice(2),Ct="__reactFiber$"+wa,$t="__reactProps$"+wa,Hl="__reactContainer$"+wa,hc="__reactEvents$"+wa,u1="__reactListeners$"+wa,d1="__reactHandles$"+wa,rm="__reactResources$"+wa,Gr="__reactMarker$"+wa;function pc(e){delete e[Ct],delete e[$t],delete e[hc],delete e[u1],delete e[d1]}function Vl(e){var t=e[Ct];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Hl]||a[Ct]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Cg(e);e!==null;){if(a=e[Ct])return a;e=Cg(e)}return t}e=a,a=e.parentNode}return null}function $l(e){if(e=e[Ct]||e[Hl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Yl(e){var t=e[rm];return t||(t=e[rm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Et(e){e[Gr]=!0}var om=new Set,im={};function ul(e,t){ql(e,t),ql(e+"Capture",t)}function ql(e,t){for(im[e]=t,e=0;e<t.length;e++)om.add(t[e])}var f1=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]*$"),sm={},cm={};function m1(e){return mt.call(cm,e)?!0:mt.call(sm,e)?!1:f1.test(e)?cm[e]=!0:(sm[e]=!0,!1)}function ti(e,t,a){if(m1(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 ni(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 cn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function um(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h1(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,u=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(b){a=""+b,u.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 gc(e){if(!e._valueTracker){var t=um(e)?"checked":"value";e._valueTracker=h1(e,t,""+e[t])}}function dm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=um(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function ai(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 p1=/[\n"\\]/g;function un(e){return e.replace(p1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vc(e,t,a,r,s,u,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=""+cn(t)):e.value!==""+cn(t)&&(e.value=""+cn(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?yc(e,b,cn(t)):a!=null?yc(e,b,cn(a)):r!=null&&e.removeAttribute("value"),s==null&&u!=null&&(e.defaultChecked=!!u),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+cn(S):e.removeAttribute("name")}function fm(e,t,a,r,s,u,b,S){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){gc(e);return}a=a!=null?""+cn(a):"",t=t!=null?""+cn(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),gc(e)}function yc(e,t,a){t==="number"&&ai(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Gl(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=""+cn(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 mm(e,t,a){if(t!=null&&(t=""+cn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+cn(a):""}function hm(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(i(92));if(re(r)){if(1<r.length)throw Error(i(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=cn(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),gc(e)}function Pl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var g1=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 pm(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||g1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function gm(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&&pm(e,s,r)}else for(var u in t)t.hasOwnProperty(u)&&pm(e,u,t[u])}function bc(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 v1=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"]]),y1=/^[\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 li(e){return y1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Fn(){}var xc=null;function Sc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xl=null,Kl=null;function vm(e){var t=$l(e);if(t&&(e=t.stateNode)){var a=e[$t]||null;e:switch(e=t.stateNode,t.type){case"input":if(vc(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="'+un(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var s=r[$t]||null;if(!s)throw Error(i(90));vc(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&&dm(r)}break e;case"textarea":mm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Gl(e,!!a.multiple,t,!1)}}}var wc=!1;function ym(e,t,a){if(wc)return e(t,a);wc=!0;try{var r=e(t);return r}finally{if(wc=!1,(Xl!==null||Kl!==null)&&(Pi(),Xl&&(t=Xl,e=Kl,Kl=Xl=null,vm(t),e)))for(t=0;t<e.length;t++)vm(e[t])}}function Xr(e,t){var a=e.stateNode;if(a===null)return null;var r=a[$t]||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"),Ec=!1;if(Jn)try{var Kr={};Object.defineProperty(Kr,"passive",{get:function(){Ec=!0}}),window.addEventListener("test",Kr,Kr),window.removeEventListener("test",Kr,Kr)}catch{Ec=!1}var Ea=null,Nc=null,ri=null;function bm(){if(ri)return ri;var e,t=Nc,a=t.length,r,s="value"in Ea?Ea.value:Ea.textContent,u=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[u-r];r++);return ri=s.slice(e,1<r?1-r:void 0)}function oi(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 ii(){return!0}function xm(){return!1}function Yt(e){function t(a,r,s,u,b){this._reactName=a,this._targetInst=s,this.type=r,this.nativeEvent=u,this.target=b,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(a=e[S],this[S]=a?a(u):u[S]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ii:xm,this.isPropagationStopped=xm,this}return g(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=ii)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ii)},persist:function(){},isPersistent:ii}),t}var dl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},si=Yt(dl),Qr=g({},dl,{view:0,detail:0}),b1=Yt(Qr),Tc,Cc,Zr,ci=g({},Qr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rc,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!==Zr&&(Zr&&e.type==="mousemove"?(Tc=e.screenX-Zr.screenX,Cc=e.screenY-Zr.screenY):Cc=Tc=0,Zr=e),Tc)},movementY:function(e){return"movementY"in e?e.movementY:Cc}}),Sm=Yt(ci),x1=g({},ci,{dataTransfer:0}),S1=Yt(x1),w1=g({},Qr,{relatedTarget:0}),Ac=Yt(w1),E1=g({},dl,{animationName:0,elapsedTime:0,pseudoElement:0}),N1=Yt(E1),T1=g({},dl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),C1=Yt(T1),A1=g({},dl,{data:0}),wm=Yt(A1),R1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_1={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"},j1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=j1[e])?!!t[e]:!1}function Rc(){return M1}var O1=g({},Qr,{key:function(e){if(e.key){var t=R1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rc,charCode:function(e){return e.type==="keypress"?oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),D1=Yt(O1),k1=g({},ci,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Em=Yt(k1),z1=g({},Qr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rc}),L1=Yt(z1),U1=g({},dl,{propertyName:0,elapsedTime:0,pseudoElement:0}),B1=Yt(U1),H1=g({},ci,{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}),V1=Yt(H1),$1=g({},dl,{newState:0,oldState:0}),Y1=Yt($1),q1=[9,13,27,32],_c=Jn&&"CompositionEvent"in window,Ir=null;Jn&&"documentMode"in document&&(Ir=document.documentMode);var G1=Jn&&"TextEvent"in window&&!Ir,Nm=Jn&&(!_c||Ir&&8<Ir&&11>=Ir),Tm=" ",Cm=!1;function Am(e,t){switch(e){case"keyup":return q1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rm(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 Rm(t);case"keypress":return t.which!==32?null:(Cm=!0,Tm);case"textInput":return e=t.data,e===Tm&&Cm?null:e;default:return null}}function X1(e,t){if(Ql)return e==="compositionend"||!_c&&Am(e,t)?(e=bm(),ri=Nc=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 Nm&&t.locale!=="ko"?null:t.data;default:return null}}var K1={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 _m(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!K1[e.type]:t==="textarea"}function jm(e,t,a,r){Xl?Kl?Kl.push(r):Kl=[r]:Xl=r,t=Ji(t,"onChange"),0<t.length&&(a=new si("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Fr=null,Jr=null;function Q1(e){fg(e,0)}function ui(e){var t=Pr(e);if(dm(t))return e}function Mm(e,t){if(e==="change")return t}var Om=!1;if(Jn){var jc;if(Jn){var Mc="oninput"in document;if(!Mc){var Dm=document.createElement("div");Dm.setAttribute("oninput","return;"),Mc=typeof Dm.oninput=="function"}jc=Mc}else jc=!1;Om=jc&&(!document.documentMode||9<document.documentMode)}function km(){Fr&&(Fr.detachEvent("onpropertychange",zm),Jr=Fr=null)}function zm(e){if(e.propertyName==="value"&&ui(Jr)){var t=[];jm(t,Jr,e,Sc(e)),ym(Q1,t)}}function Z1(e,t,a){e==="focusin"?(km(),Fr=t,Jr=a,Fr.attachEvent("onpropertychange",zm)):e==="focusout"&&km()}function I1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ui(Jr)}function F1(e,t){if(e==="click")return ui(t)}function J1(e,t){if(e==="input"||e==="change")return ui(t)}function W1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ft=typeof Object.is=="function"?Object.is:W1;function Wr(e,t){if(Ft(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(!mt.call(t,s)||!Ft(e[s],t[s]))return!1}return!0}function Lm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Um(e,t){var a=Lm(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=Lm(a)}}function Bm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ai(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=ai(e.document)}return t}function Oc(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 eS=Jn&&"documentMode"in document&&11>=document.documentMode,Zl=null,Dc=null,eo=null,kc=!1;function Vm(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;kc||Zl==null||Zl!==ai(r)||(r=Zl,"selectionStart"in r&&Oc(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}),eo&&Wr(eo,r)||(eo=r,r=Ji(Dc,"onSelect"),0<r.length&&(t=new si("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Zl)))}function fl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Il={animationend:fl("Animation","AnimationEnd"),animationiteration:fl("Animation","AnimationIteration"),animationstart:fl("Animation","AnimationStart"),transitionrun:fl("Transition","TransitionRun"),transitionstart:fl("Transition","TransitionStart"),transitioncancel:fl("Transition","TransitionCancel"),transitionend:fl("Transition","TransitionEnd")},zc={},$m={};Jn&&($m=document.createElement("div").style,"AnimationEvent"in window||(delete Il.animationend.animation,delete Il.animationiteration.animation,delete Il.animationstart.animation),"TransitionEvent"in window||delete Il.transitionend.transition);function ml(e){if(zc[e])return zc[e];if(!Il[e])return e;var t=Il[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in $m)return zc[e]=t[a];return e}var Ym=ml("animationend"),qm=ml("animationiteration"),Gm=ml("animationstart"),tS=ml("transitionrun"),nS=ml("transitionstart"),aS=ml("transitioncancel"),Pm=ml("transitionend"),Xm=new Map,Lc="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(" ");Lc.push("scrollEnd");function Nn(e,t){Xm.set(e,t),ul(t,[e])}var di=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},dn=[],Fl=0,Uc=0;function fi(){for(var e=Fl,t=Uc=Fl=0;t<e;){var a=dn[t];dn[t++]=null;var r=dn[t];dn[t++]=null;var s=dn[t];dn[t++]=null;var u=dn[t];if(dn[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}u!==0&&Km(a,s,u)}}function mi(e,t,a,r){dn[Fl++]=e,dn[Fl++]=t,dn[Fl++]=a,dn[Fl++]=r,Uc|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Bc(e,t,a,r){return mi(e,t,a,r),hi(e)}function hl(e,t){return mi(e,null,null,t),hi(e)}function Km(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var s=!1,u=e.return;u!==null;)u.childLanes|=a,r=u.alternate,r!==null&&(r.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(s=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,s&&t!==null&&(s=31-Mt(a),e=u.hiddenUpdates,r=e[s],r===null?e[s]=[t]:r.push(t),t.lane=a|536870912),u):null}function hi(e){if(50<Eo)throw Eo=0,Ku=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Jl={};function lS(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 Jt(e,t,a,r){return new lS(e,t,a,r)}function Hc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wn(e,t){var a=e.alternate;return a===null?(a=Jt(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 Qm(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 pi(e,t,a,r,s,u){var b=0;if(r=e,typeof e=="function")Hc(e)&&(b=1);else if(typeof e=="string")b=cw(e,a,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ne:return e=Jt(31,a,t,s),e.elementType=ne,e.lanes=u,e;case E:return pl(a.children,s,u,t);case C:b=8,s|=24;break;case A:return e=Jt(12,a,t,s|2),e.elementType=A,e.lanes=u,e;case Y:return e=Jt(13,a,t,s),e.elementType=Y,e.lanes=u,e;case X:return e=Jt(19,a,t,s),e.elementType=X,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:b=10;break e;case _:b=9;break e;case k:b=11;break e;case V:b=14;break e;case H:b=16,r=null;break e}b=29,a=Error(i(130,e===null?"null":typeof e,"")),r=null}return t=Jt(b,a,t,s),t.elementType=e,t.type=r,t.lanes=u,t}function pl(e,t,a,r){return e=Jt(7,e,r,t),e.lanes=a,e}function Vc(e,t,a){return e=Jt(6,e,null,t),e.lanes=a,e}function Zm(e){var t=Jt(18,null,null,0);return t.stateNode=e,t}function $c(e,t,a){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Im=new WeakMap;function fn(e,t){if(typeof e=="object"&&e!==null){var a=Im.get(e);return a!==void 0?a:(t={value:e,source:t,stack:zt(t)},Im.set(e,t),t)}return{value:e,source:t,stack:zt(t)}}var Wl=[],er=0,gi=null,to=0,mn=[],hn=0,Na=null,kn=1,zn="";function ea(e,t){Wl[er++]=to,Wl[er++]=gi,gi=e,to=t}function Fm(e,t,a){mn[hn++]=kn,mn[hn++]=zn,mn[hn++]=Na,Na=e;var r=kn;e=zn;var s=32-Mt(r)-1;r&=~(1<<s),a+=1;var u=32-Mt(t)+s;if(30<u){var b=s-s%5;u=(r&(1<<b)-1).toString(32),r>>=b,s-=b,kn=1<<32-Mt(t)+s|a<<s|r,zn=u+e}else kn=1<<u|a<<s|r,zn=e}function Yc(e){e.return!==null&&(ea(e,1),Fm(e,1,0))}function qc(e){for(;e===gi;)gi=Wl[--er],Wl[er]=null,to=Wl[--er],Wl[er]=null;for(;e===Na;)Na=mn[--hn],mn[hn]=null,zn=mn[--hn],mn[hn]=null,kn=mn[--hn],mn[hn]=null}function Jm(e,t){mn[hn++]=kn,mn[hn++]=zn,mn[hn++]=Na,kn=t.id,zn=t.overflow,Na=e}var At=null,tt=null,Ue=!1,Ta=null,pn=!1,Gc=Error(i(519));function Ca(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw no(fn(t,e)),Gc}function Wm(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[Ct]=e,t[$t]=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<To.length;a++)Oe(To[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),fm(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),hm(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||gg(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||Ca(e,!0)}function eh(e){for(At=e.return;At;)switch(At.tag){case 5:case 31:case 13:pn=!1;return;case 27:case 3:pn=!0;return;default:At=At.return}}function tr(e){if(e!==At)return!1;if(!Ue)return eh(e),Ue=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||sd(e.type,e.memoizedProps)),a=!a),a&&tt&&Ca(e),eh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));tt=Tg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));tt=Tg(e)}else t===27?(t=tt,Va(e.type)?(e=md,md=null,tt=e):tt=t):tt=At?vn(e.stateNode.nextSibling):null;return!0}function gl(){tt=At=null,Ue=!1}function Pc(){var e=Ta;return e!==null&&(Xt===null?Xt=e:Xt.push.apply(Xt,e),Ta=null),e}function no(e){Ta===null?Ta=[e]:Ta.push(e)}var Xc=j(null),vl=null,ta=null;function Aa(e,t,a){K(Xc,t._currentValue),t._currentValue=a}function na(e){e._currentValue=Xc.current,G(Xc)}function Kc(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 Qc(e,t,a,r){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var u=s.dependencies;if(u!==null){var b=s.child;u=u.firstContext;e:for(;u!==null;){var S=u;u=s;for(var R=0;R<t.length;R++)if(S.context===t[R]){u.lanes|=a,S=u.alternate,S!==null&&(S.lanes|=a),Kc(u.return,a,e),r||(b=null);break e}u=S.next}}else if(s.tag===18){if(b=s.return,b===null)throw Error(i(341));b.lanes|=a,u=b.alternate,u!==null&&(u.lanes|=a),Kc(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 nr(e,t,a,r){e=null;for(var s=t,u=!1;s!==null;){if(!u){if((s.flags&524288)!==0)u=!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;Ft(s.pendingProps.value,b.value)||(e!==null?e.push(S):e=[S])}}else if(s===te.current){if(b=s.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(jo):e=[jo])}s=s.return}e!==null&&Qc(t,e,a,r),t.flags|=262144}function vi(e){for(e=e.firstContext;e!==null;){if(!Ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function yl(e){vl=e,ta=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Rt(e){return th(vl,e)}function yi(e,t){return vl===null&&yl(e),th(e,t)}function th(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 rS=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()})}},oS=n.unstable_scheduleCallback,iS=n.unstable_NormalPriority,ht={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zc(){return{controller:new rS,data:new Map,refCount:0}}function ao(e){e.refCount--,e.refCount===0&&oS(iS,function(){e.controller.abort()})}var lo=null,Ic=0,ar=0,lr=null;function sS(e,t){if(lo===null){var a=lo=[];Ic=0,ar=Wu(),lr={status:"pending",value:void 0,then:function(r){a.push(r)}}}return Ic++,t.then(nh,nh),t}function nh(){if(--Ic===0&&lo!==null){lr!==null&&(lr.status="fulfilled");var e=lo;lo=null,ar=0,lr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function cS(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 ah=O.S;O.S=function(e,t){Vp=xe(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&sS(e,t),ah!==null&&ah(e,t)};var bl=j(null);function Fc(){var e=bl.current;return e!==null?e:Ie.pooledCache}function bi(e,t){t===null?K(bl,bl.current):K(bl,t.pool)}function lh(){var e=Fc();return e===null?null:{parent:ht._currentValue,pool:e}}var rr=Error(i(460)),Jc=Error(i(474)),xi=Error(i(542)),Si={then:function(){}};function rh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function oh(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,sh(e),e;default:if(typeof t.status=="string")t.then(Fn,Fn);else{if(e=Ie,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,sh(e),e}throw Sl=t,rr}}function xl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Sl=a,rr):a}}var Sl=null;function ih(){if(Sl===null)throw Error(i(459));var e=Sl;return Sl=null,e}function sh(e){if(e===rr||e===xi)throw Error(i(483))}var or=null,ro=0;function wi(e){var t=ro;return ro+=1,or===null&&(or=[]),oh(or,e,t)}function oo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ei(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 ch(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 u(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=Vc(L,z.mode,Z),D.return=z,D):(D=s(D,L),D.return=z,D)}function R(z,D,L,Z){var we=L.type;return we===E?P(z,D,L.props.children,Z,L.key):D!==null&&(D.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===H&&xl(we)===D.type)?(D=s(D,L.props),oo(D,L),D.return=z,D):(D=pi(L.type,L.key,L.props,null,z.mode,Z),oo(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=$c(L,z.mode,Z),D.return=z,D):(D=s(D,L.children||[]),D.return=z,D)}function P(z,D,L,Z,we){return D===null||D.tag!==7?(D=pl(L,z.mode,Z,we),D.return=z,D):(D=s(D,L),D.return=z,D)}function I(z,D,L){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Vc(""+D,z.mode,L),D.return=z,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case N:return L=pi(D.type,D.key,D.props,null,z.mode,L),oo(L,D),L.return=z,L;case T:return D=$c(D,z.mode,L),D.return=z,D;case H:return D=xl(D),I(z,D,L)}if(re(D)||ce(D))return D=pl(D,z.mode,L,null),D.return=z,D;if(typeof D.then=="function")return I(z,wi(D),L);if(D.$$typeof===M)return I(z,yi(z,D),L);Ei(z,D)}return null}function B(z,D,L,Z){var we=D!==null?D.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return we!==null?null:S(z,D,""+L,Z);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case N:return L.key===we?R(z,D,L,Z):null;case T:return L.key===we?U(z,D,L,Z):null;case H:return L=xl(L),B(z,D,L,Z)}if(re(L)||ce(L))return we!==null?null:P(z,D,L,Z,null);if(typeof L.then=="function")return B(z,D,wi(L),Z);if(L.$$typeof===M)return B(z,D,yi(z,L),Z);Ei(z,L)}return null}function q(z,D,L,Z,we){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return z=z.get(L)||null,S(D,z,""+Z,we);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case N:return z=z.get(Z.key===null?L:Z.key)||null,R(D,z,Z,we);case T:return z=z.get(Z.key===null?L:Z.key)||null,U(D,z,Z,we);case H:return Z=xl(Z),q(z,D,L,Z,we)}if(re(Z)||ce(Z))return z=z.get(L)||null,P(D,z,Z,we,null);if(typeof Z.then=="function")return q(z,D,L,wi(Z),we);if(Z.$$typeof===M)return q(z,D,L,yi(D,Z),we);Ei(D,Z)}return null}function he(z,D,L,Z){for(var we=null,$e=null,ve=D,Re=D=0,ze=null;ve!==null&&Re<L.length;Re++){ve.index>Re?(ze=ve,ve=null):ze=ve.sibling;var Ye=B(z,ve,L[Re],Z);if(Ye===null){ve===null&&(ve=ze);break}e&&ve&&Ye.alternate===null&&t(z,ve),D=u(Ye,D,Re),$e===null?we=Ye:$e.sibling=Ye,$e=Ye,ve=ze}if(Re===L.length)return a(z,ve),Ue&&ea(z,Re),we;if(ve===null){for(;Re<L.length;Re++)ve=I(z,L[Re],Z),ve!==null&&(D=u(ve,D,Re),$e===null?we=ve:$e.sibling=ve,$e=ve);return Ue&&ea(z,Re),we}for(ve=r(ve);Re<L.length;Re++)ze=q(ve,z,Re,L[Re],Z),ze!==null&&(e&&ze.alternate!==null&&ve.delete(ze.key===null?Re:ze.key),D=u(ze,D,Re),$e===null?we=ze:$e.sibling=ze,$e=ze);return e&&ve.forEach(function(Pa){return t(z,Pa)}),Ue&&ea(z,Re),we}function Ee(z,D,L,Z){if(L==null)throw Error(i(151));for(var we=null,$e=null,ve=D,Re=D=0,ze=null,Ye=L.next();ve!==null&&!Ye.done;Re++,Ye=L.next()){ve.index>Re?(ze=ve,ve=null):ze=ve.sibling;var Pa=B(z,ve,Ye.value,Z);if(Pa===null){ve===null&&(ve=ze);break}e&&ve&&Pa.alternate===null&&t(z,ve),D=u(Pa,D,Re),$e===null?we=Pa:$e.sibling=Pa,$e=Pa,ve=ze}if(Ye.done)return a(z,ve),Ue&&ea(z,Re),we;if(ve===null){for(;!Ye.done;Re++,Ye=L.next())Ye=I(z,Ye.value,Z),Ye!==null&&(D=u(Ye,D,Re),$e===null?we=Ye:$e.sibling=Ye,$e=Ye);return Ue&&ea(z,Re),we}for(ve=r(ve);!Ye.done;Re++,Ye=L.next())Ye=q(ve,z,Re,Ye.value,Z),Ye!==null&&(e&&Ye.alternate!==null&&ve.delete(Ye.key===null?Re:Ye.key),D=u(Ye,D,Re),$e===null?we=Ye:$e.sibling=Ye,$e=Ye);return e&&ve.forEach(function(xw){return t(z,xw)}),Ue&&ea(z,Re),we}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 N:e:{for(var we=L.key;D!==null;){if(D.key===we){if(we=L.type,we===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===we||typeof we=="object"&&we!==null&&we.$$typeof===H&&xl(we)===D.type){a(z,D.sibling),Z=s(D,L.props),oo(Z,L),Z.return=z,z=Z;break e}a(z,D);break}else t(z,D);D=D.sibling}L.type===E?(Z=pl(L.props.children,z.mode,Z,L.key),Z.return=z,z=Z):(Z=pi(L.type,L.key,L.props,null,z.mode,Z),oo(Z,L),Z.return=z,z=Z)}return b(z);case T:e:{for(we=L.key;D!==null;){if(D.key===we)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=$c(L,z.mode,Z),Z.return=z,z=Z}return b(z);case H:return L=xl(L),Ze(z,D,L,Z)}if(re(L))return he(z,D,L,Z);if(ce(L)){if(we=ce(L),typeof we!="function")throw Error(i(150));return L=we.call(L),Ee(z,D,L,Z)}if(typeof L.then=="function")return Ze(z,D,wi(L),Z);if(L.$$typeof===M)return Ze(z,D,yi(z,L),Z);Ei(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=Vc(L,z.mode,Z),Z.return=z,z=Z),b(z)):a(z,D)}return function(z,D,L,Z){try{ro=0;var we=Ze(z,D,L,Z);return or=null,we}catch(ve){if(ve===rr||ve===xi)throw ve;var $e=Jt(29,ve,null,z.mode);return $e.lanes=Z,$e.return=z,$e}finally{}}}var wl=ch(!0),uh=ch(!1),Ra=!1;function Wc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function eu(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=hi(e),Km(e,null,a),t}return mi(e,r,t,a),hi(e)}function io(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,Ht(e,a)}}function tu(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var s=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?s=u=b:u=u.next=b,a=a.next}while(a!==null);u===null?s=u=t:u=u.next=t}else s=u=t;a={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:u,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 nu=!1;function so(){if(nu){var e=lr;if(e!==null)throw e}}function co(e,t,a,r){nu=!1;var s=e.updateQueue;Ra=!1;var u=s.firstBaseUpdate,b=s.lastBaseUpdate,S=s.shared.pending;if(S!==null){s.shared.pending=null;var R=S,U=R.next;R.next=null,b===null?u=U:b.next=U,b=R;var P=e.alternate;P!==null&&(P=P.updateQueue,S=P.lastBaseUpdate,S!==b&&(S===null?P.firstBaseUpdate=U:S.next=U,P.lastBaseUpdate=R))}if(u!==null){var I=s.baseState;b=0,P=U=R=null,S=u;do{var B=S.lane&-536870913,q=B!==S.lane;if(q?(ke&B)===B:(r&B)===B){B!==0&&B===ar&&(nu=!0),P!==null&&(P=P.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var he=e,Ee=S;B=t;var Ze=a;switch(Ee.tag){case 1:if(he=Ee.payload,typeof he=="function"){I=he.call(Ze,I,B);break e}I=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=Ee.payload,B=typeof he=="function"?he.call(Ze,I,B):he,B==null)break e;I=g({},I,B);break e;case 2:Ra=!0}}B=S.callback,B!==null&&(e.flags|=64,q&&(e.flags|=8192),q=s.callbacks,q===null?s.callbacks=[B]:q.push(B))}else q={lane:B,tag:S.tag,payload:S.payload,callback:S.callback,next:null},P===null?(U=P=q,R=I):P=P.next=q,b|=B;if(S=S.next,S===null){if(S=s.shared.pending,S===null)break;q=S,S=q.next,q.next=null,s.lastBaseUpdate=q,s.shared.pending=null}}while(!0);P===null&&(R=I),s.baseState=R,s.firstBaseUpdate=U,s.lastBaseUpdate=P,u===null&&(s.shared.lanes=0),za|=b,e.lanes=b,e.memoizedState=I}}function dh(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function fh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)dh(a[e],t)}var ir=j(null),Ni=j(0);function mh(e,t){e=da,K(Ni,e),K(ir,t),da=e|t.baseLanes}function au(){K(Ni,da),K(ir,ir.current)}function lu(){da=Ni.current,G(ir),G(Ni)}var Wt=j(null),gn=null;function Ma(e){var t=e.alternate;K(ut,ut.current&1),K(Wt,e),gn===null&&(t===null||ir.current!==null||t.memoizedState!==null)&&(gn=e)}function ru(e){K(ut,ut.current),K(Wt,e),gn===null&&(gn=e)}function hh(e){e.tag===22?(K(ut,ut.current),K(Wt,e),gn===null&&(gn=e)):Oa()}function Oa(){K(ut,ut.current),K(Wt,Wt.current)}function en(e){G(Wt),gn===e&&(gn=null),G(ut)}var ut=j(0);function Ti(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||dd(a)||fd(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,Ae=null,Ke=null,pt=null,Ci=!1,sr=!1,El=!1,Ai=0,uo=0,cr=null,uS=0;function st(){throw Error(i(321))}function ou(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ft(e[a],t[a]))return!1;return!0}function iu(e,t,a,r,s,u){return aa=u,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Fh:wu,El=!1,u=a(r,s),El=!1,sr&&(u=gh(t,a,r,s)),ph(e),u}function ph(e){O.H=ho;var t=Ke!==null&&Ke.next!==null;if(aa=0,pt=Ke=Ae=null,Ci=!1,uo=0,cr=null,t)throw Error(i(300));e===null||gt||(e=e.dependencies,e!==null&&vi(e)&&(gt=!0))}function gh(e,t,a,r){Ae=e;var s=0;do{if(sr&&(cr=null),uo=0,sr=!1,25<=s)throw Error(i(301));if(s+=1,pt=Ke=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}O.H=Jh,u=t(a,r)}while(sr);return u}function dS(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?fo(t):t,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(Ae.flags|=1024),t}function su(){var e=Ai!==0;return Ai=0,e}function cu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function uu(e){if(Ci){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ci=!1}aa=0,pt=Ke=Ae=null,sr=!1,uo=Ai=0,cr=null}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?Ae.memoizedState=pt=e:pt=pt.next=e,pt}function dt(){if(Ke===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=pt===null?Ae.memoizedState:pt.next;if(t!==null)pt=t,Ke=e;else{if(e===null)throw Ae.alternate===null?Error(i(467)):Error(i(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},pt===null?Ae.memoizedState=pt=e:pt=pt.next=e}return pt}function Ri(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fo(e){var t=uo;return uo+=1,cr===null&&(cr=[]),e=oh(cr,e,t),t=Ae,(pt===null?t.memoizedState:pt.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Fh:wu),e}function _i(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fo(e);if(e.$$typeof===M)return Rt(e)}throw Error(i(438,String(e)))}function du(e){var t=null,a=Ae.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=Ae.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=Ri(),Ae.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]=se;return t.index++,a}function la(e,t){return typeof t=="function"?t(e):t}function ji(e){var t=dt();return fu(t,Ke,e)}function fu(e,t,a){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=a;var s=e.baseQueue,u=r.pending;if(u!==null){if(s!==null){var b=s.next;s.next=u.next,u.next=b}t.baseQueue=s=u,r.pending=null}if(u=e.baseState,s===null)e.memoizedState=u;else{t=s.next;var S=b=null,R=null,U=t,P=!1;do{var I=U.lane&-536870913;if(I!==U.lane?(ke&I)===I:(aa&I)===I){var B=U.revertLane;if(B===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),I===ar&&(P=!0);else if((aa&B)===B){U=U.next,B===ar&&(P=!0);continue}else I={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},R===null?(S=R=I,b=u):R=R.next=I,Ae.lanes|=B,za|=B;I=U.action,El&&a(u,I),u=U.hasEagerState?U.eagerState:a(u,I)}else B={lane:I,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},R===null?(S=R=B,b=u):R=R.next=B,Ae.lanes|=I,za|=I;U=U.next}while(U!==null&&U!==t);if(R===null?b=u:R.next=S,!Ft(u,e.memoizedState)&&(gt=!0,P&&(a=lr,a!==null)))throw a;e.memoizedState=u,e.baseState=b,e.baseQueue=R,r.lastRenderedState=u}return s===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function mu(e){var t=dt(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var r=a.dispatch,s=a.pending,u=t.memoizedState;if(s!==null){a.pending=null;var b=s=s.next;do u=e(u,b.action),b=b.next;while(b!==s);Ft(u,t.memoizedState)||(gt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,r]}function vh(e,t,a){var r=Ae,s=dt(),u=Ue;if(u){if(a===void 0)throw Error(i(407));a=a()}else a=t();var b=!Ft((Ke||s).memoizedState,a);if(b&&(s.memoizedState=a,gt=!0),s=s.queue,gu(xh.bind(null,r,s,e),[e]),s.getSnapshot!==t||b||pt!==null&&pt.memoizedState.tag&1){if(r.flags|=2048,ur(9,{destroy:void 0},bh.bind(null,r,s,a,t),null),Ie===null)throw Error(i(349));u||(aa&127)!==0||yh(r,t,a)}return a}function yh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ae.updateQueue,t===null?(t=Ri(),Ae.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function bh(e,t,a,r){t.value=a,t.getSnapshot=r,Sh(t)&&wh(e)}function xh(e,t,a){return a(function(){Sh(t)&&wh(e)})}function Sh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ft(e,a)}catch{return!0}}function wh(e){var t=hl(e,2);t!==null&&Kt(t,e,2)}function hu(e){var t=Ut();if(typeof e=="function"){var a=e;if(e=a(),El){wn(!0);try{a()}finally{wn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:e},t}function Eh(e,t,a,r){return e.baseState=a,fu(e,Ke,typeof r=="function"?r:la)}function fS(e,t,a,r,s){if(Di(e))throw Error(i(485));if(e=t.action,e!==null){var u={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){u.listeners.push(b)}};O.T!==null?a(!0):u.isTransition=!1,r(u),a=t.pending,a===null?(u.next=t.pending=u,Nh(t,u)):(u.next=a.next,t.pending=a.next=u)}}function Nh(e,t){var a=t.action,r=t.payload,s=e.state;if(t.isTransition){var u=O.T,b={};O.T=b;try{var S=a(s,r),R=O.S;R!==null&&R(b,S),Th(e,t,S)}catch(U){pu(e,t,U)}finally{u!==null&&b.types!==null&&(u.types=b.types),O.T=u}}else try{u=a(s,r),Th(e,t,u)}catch(U){pu(e,t,U)}}function Th(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){Ch(e,t,r)},function(r){return pu(e,t,r)}):Ch(e,t,a)}function Ch(e,t,a){t.status="fulfilled",t.value=a,Ah(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Nh(e,a)))}function pu(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,Ah(t),t=t.next;while(t!==r)}e.action=null}function Ah(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Rh(e,t){return t}function _h(e,t){if(Ue){var a=Ie.formState;if(a!==null){e:{var r=Ae;if(Ue){if(tt){t:{for(var s=tt,u=pn;s.nodeType!==8;){if(!u){s=null;break t}if(s=vn(s.nextSibling),s===null){s=null;break t}}u=s.data,s=u==="F!"||u==="F"?s:null}if(s){tt=vn(s.nextSibling),r=s.data==="F!";break e}}Ca(r)}r=!1}r&&(t=a[0])}}return a=Ut(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rh,lastRenderedState:t},a.queue=r,a=Qh.bind(null,Ae,r),r.dispatch=a,r=hu(!1),u=Su.bind(null,Ae,!1,r.queue),r=Ut(),s={state:t,dispatch:null,action:e,pending:null},r.queue=s,a=fS.bind(null,Ae,s,u,a),s.dispatch=a,r.memoizedState=e,[t,a,!1]}function jh(e){var t=dt();return Mh(t,Ke,e)}function Mh(e,t,a){if(t=fu(e,t,Rh)[0],e=ji(la)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=fo(t)}catch(b){throw b===rr?xi:b}else r=t;t=dt();var s=t.queue,u=s.dispatch;return a!==t.memoizedState&&(Ae.flags|=2048,ur(9,{destroy:void 0},mS.bind(null,s,a),null)),[r,u,e]}function mS(e,t){e.action=t}function Oh(e){var t=dt(),a=Ke;if(a!==null)return Mh(t,a,e);dt(),t=t.memoizedState,a=dt();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function ur(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=Ri(),Ae.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 Dh(){return dt().memoizedState}function Mi(e,t,a,r){var s=Ut();Ae.flags|=e,s.memoizedState=ur(1|t,{destroy:void 0},a,r===void 0?null:r)}function Oi(e,t,a,r){var s=dt();r=r===void 0?null:r;var u=s.memoizedState.inst;Ke!==null&&r!==null&&ou(r,Ke.memoizedState.deps)?s.memoizedState=ur(t,u,a,r):(Ae.flags|=e,s.memoizedState=ur(1|t,u,a,r))}function kh(e,t){Mi(8390656,8,e,t)}function gu(e,t){Oi(2048,8,e,t)}function hS(e){Ae.flags|=4;var t=Ae.updateQueue;if(t===null)t=Ri(),Ae.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function zh(e){var t=dt().memoizedState;return hS({ref:t,nextImpl:e}),function(){if((qe&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Lh(e,t){return Oi(4,2,e,t)}function Uh(e,t){return Oi(4,4,e,t)}function Bh(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 Hh(e,t,a){a=a!=null?a.concat([e]):null,Oi(4,4,Bh.bind(null,t,e),a)}function vu(){}function Vh(e,t){var a=dt();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&ou(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function $h(e,t){var a=dt();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&ou(t,r[1]))return r[0];if(r=e(),El){wn(!0);try{e()}finally{wn(!1)}}return a.memoizedState=[r,t],r}function yu(e,t,a){return a===void 0||(aa&1073741824)!==0&&(ke&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Yp(),Ae.lanes|=e,za|=e,a)}function Yh(e,t,a,r){return Ft(a,t)?a:ir.current!==null?(e=yu(e,a,r),Ft(e,t)||(gt=!0),e):(aa&42)===0||(aa&1073741824)!==0&&(ke&261930)===0?(gt=!0,e.memoizedState=a):(e=Yp(),Ae.lanes|=e,za|=e,t)}function qh(e,t,a,r,s){var u=$.p;$.p=u!==0&&8>u?u:8;var b=O.T,S={};O.T=S,Su(e,!1,t,a);try{var R=s(),U=O.S;if(U!==null&&U(S,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var P=cS(R,r);mo(e,t,P,an(e))}else mo(e,t,r,an(e))}catch(I){mo(e,t,{then:function(){},status:"rejected",reason:I},an())}finally{$.p=u,b!==null&&S.types!==null&&(b.types=S.types),O.T=b}}function pS(){}function bu(e,t,a,r){if(e.tag!==5)throw Error(i(476));var s=Gh(e).queue;qh(e,s,t,F,a===null?pS:function(){return Ph(e),a(r)})}function Gh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:F},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 Ph(e){var t=Gh(e);t.next===null&&(t=e.alternate.memoizedState),mo(e,t.next.queue,{},an())}function xu(){return Rt(jo)}function Xh(){return dt().memoizedState}function Kh(){return dt().memoizedState}function gS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=an();e=_a(a);var r=ja(t,e,a);r!==null&&(Kt(r,t,a),io(r,t,a)),t={cache:Zc()},e.payload=t;return}t=t.return}}function vS(e,t,a){var r=an();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Di(e)?Zh(t,a):(a=Bc(e,t,a,r),a!==null&&(Kt(a,e,r),Ih(a,t,r)))}function Qh(e,t,a){var r=an();mo(e,t,a,r)}function mo(e,t,a,r){var s={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Di(e))Zh(t,s);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var b=t.lastRenderedState,S=u(b,a);if(s.hasEagerState=!0,s.eagerState=S,Ft(S,b))return mi(e,t,s,0),Ie===null&&fi(),!1}catch{}finally{}if(a=Bc(e,t,s,r),a!==null)return Kt(a,e,r),Ih(a,t,r),!0}return!1}function Su(e,t,a,r){if(r={lane:2,revertLane:Wu(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Di(e)){if(t)throw Error(i(479))}else t=Bc(e,a,r,2),t!==null&&Kt(t,e,2)}function Di(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function Zh(e,t){sr=Ci=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Ih(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Ht(e,a)}}var ho={readContext:Rt,use:_i,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st};ho.useEffectEvent=st;var Fh={readContext:Rt,use:_i,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:kh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Mi(4194308,4,Bh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){Mi(4,2,e,t)},useMemo:function(e,t){var a=Ut();t=t===void 0?null:t;var r=e();if(El){wn(!0);try{e()}finally{wn(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=Ut();if(a!==void 0){var s=a(t);if(El){wn(!0);try{a(t)}finally{wn(!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=vS.bind(null,Ae,e),[r.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:function(e){e=hu(e);var t=e.queue,a=Qh.bind(null,Ae,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:vu,useDeferredValue:function(e,t){var a=Ut();return yu(a,e,t)},useTransition:function(){var e=hu(!1);return e=qh.bind(null,Ae,e.queue,!0,!1),Ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=Ae,s=Ut();if(Ue){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Ie===null)throw Error(i(349));(ke&127)!==0||yh(r,t,a)}s.memoizedState=a;var u={value:a,getSnapshot:t};return s.queue=u,kh(xh.bind(null,r,u,e),[e]),r.flags|=2048,ur(9,{destroy:void 0},bh.bind(null,r,u,a,t),null),a},useId:function(){var e=Ut(),t=Ie.identifierPrefix;if(Ue){var a=zn,r=kn;a=(r&~(1<<32-Mt(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ai++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=uS++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:xu,useFormState:_h,useActionState:_h,useOptimistic:function(e){var t=Ut();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Su.bind(null,Ae,!0,a),a.dispatch=t,[e,t]},useMemoCache:du,useCacheRefresh:function(){return Ut().memoizedState=gS.bind(null,Ae)},useEffectEvent:function(e){var t=Ut(),a={impl:e};return t.memoizedState=a,function(){if((qe&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},wu={readContext:Rt,use:_i,useCallback:Vh,useContext:Rt,useEffect:gu,useImperativeHandle:Hh,useInsertionEffect:Lh,useLayoutEffect:Uh,useMemo:$h,useReducer:ji,useRef:Dh,useState:function(){return ji(la)},useDebugValue:vu,useDeferredValue:function(e,t){var a=dt();return Yh(a,Ke.memoizedState,e,t)},useTransition:function(){var e=ji(la)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:fo(e),t]},useSyncExternalStore:vh,useId:Xh,useHostTransitionStatus:xu,useFormState:jh,useActionState:jh,useOptimistic:function(e,t){var a=dt();return Eh(a,Ke,e,t)},useMemoCache:du,useCacheRefresh:Kh};wu.useEffectEvent=zh;var Jh={readContext:Rt,use:_i,useCallback:Vh,useContext:Rt,useEffect:gu,useImperativeHandle:Hh,useInsertionEffect:Lh,useLayoutEffect:Uh,useMemo:$h,useReducer:mu,useRef:Dh,useState:function(){return mu(la)},useDebugValue:vu,useDeferredValue:function(e,t){var a=dt();return Ke===null?yu(a,e,t):Yh(a,Ke.memoizedState,e,t)},useTransition:function(){var e=mu(la)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:fo(e),t]},useSyncExternalStore:vh,useId:Xh,useHostTransitionStatus:xu,useFormState:Oh,useActionState:Oh,useOptimistic:function(e,t){var a=dt();return Ke!==null?Eh(a,Ke,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:du,useCacheRefresh:Kh};Jh.useEffectEvent=zh;function Eu(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Nu={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=an(),s=_a(r);s.payload=t,a!=null&&(s.callback=a),t=ja(e,s,r),t!==null&&(Kt(t,e,r),io(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=an(),s=_a(r);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=ja(e,s,r),t!==null&&(Kt(t,e,r),io(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=an(),r=_a(a);r.tag=2,t!=null&&(r.callback=t),t=ja(e,r,a),t!==null&&(Kt(t,e,a),io(t,e,a))}};function Wh(e,t,a,r,s,u,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,b):t.prototype&&t.prototype.isPureReactComponent?!Wr(a,r)||!Wr(s,u):!0}function ep(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&&Nu.enqueueReplaceState(t,t.state,null)}function Nl(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=g({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function tp(e){di(e)}function np(e){console.error(e)}function ap(e){di(e)}function ki(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function lp(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 Tu(e,t,a){return a=_a(a),a.tag=3,a.payload={element:null},a.callback=function(){ki(e,t)},a}function rp(e){return e=_a(e),e.tag=3,e}function op(e,t,a,r){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var u=r.value;e.payload=function(){return s(u)},e.callback=function(){lp(t,a,r)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){lp(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 yS(e,t,a,r,s){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&nr(t,a,s,!0),a=Wt.current,a!==null){switch(a.tag){case 31:case 13:return gn===null?Xi():a.alternate===null&&ct===0&&(ct=3),a.flags&=-257,a.flags|=65536,a.lanes=s,r===Si?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Iu(e,r,s)),!1;case 22:return a.flags|=65536,r===Si?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)),Iu(e,r,s)),!1}throw Error(i(435,a.tag))}return Iu(e,r,s),Xi(),!1}if(Ue)return t=Wt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,r!==Gc&&(e=Error(i(422),{cause:r}),no(fn(e,a)))):(r!==Gc&&(t=Error(i(423),{cause:r}),no(fn(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,r=fn(r,a),s=Tu(e.stateNode,r,s),tu(e,s),ct!==4&&(ct=2)),!1;var u=Error(i(520),{cause:r});if(u=fn(u,a),wo===null?wo=[u]:wo.push(u),ct!==4&&(ct=2),t===null)return!0;r=fn(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=Tu(a.stateNode,r,e),tu(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(La===null||!La.has(u))))return a.flags|=65536,s&=-s,a.lanes|=s,s=rp(s),op(s,e,a,r),tu(a,s),!1}a=a.return}while(a!==null);return!1}var Cu=Error(i(461)),gt=!1;function _t(e,t,a,r){t.child=e===null?uh(t,null,a,r):wl(t,e.child,a,r)}function ip(e,t,a,r,s){a=a.render;var u=t.ref;if("ref"in r){var b={};for(var S in r)S!=="ref"&&(b[S]=r[S])}else b=r;return yl(t),r=iu(e,t,a,b,u,s),S=su(),e!==null&&!gt?(cu(e,t,s),ra(e,t,s)):(Ue&&S&&Yc(t),t.flags|=1,_t(e,t,r,s),t.child)}function sp(e,t,a,r,s){if(e===null){var u=a.type;return typeof u=="function"&&!Hc(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,cp(e,t,u,r,s)):(e=pi(a.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!ku(e,s)){var b=u.memoizedProps;if(a=a.compare,a=a!==null?a:Wr,a(b,r)&&e.ref===t.ref)return ra(e,t,s)}return t.flags|=1,e=Wn(u,r),e.ref=t.ref,e.return=t,t.child=e}function cp(e,t,a,r,s){if(e!==null){var u=e.memoizedProps;if(Wr(u,r)&&e.ref===t.ref)if(gt=!1,t.pendingProps=r=u,ku(e,s))(e.flags&131072)!==0&&(gt=!0);else return t.lanes=e.lanes,ra(e,t,s)}return Au(e,t,a,r,s)}function up(e,t,a,r){var s=r.children,u=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(u=u!==null?u.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&~u}else r=0,t.child=null;return dp(e,t,u,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bi(t,u!==null?u.cachePool:null),u!==null?mh(t,u):au(),hh(t);else return r=t.lanes=536870912,dp(e,t,u!==null?u.baseLanes|a:a,a,r)}else u!==null?(bi(t,u.cachePool),mh(t,u),Oa(),t.memoizedState=null):(e!==null&&bi(t,null),au(),Oa());return _t(e,t,s,a),t.child}function po(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dp(e,t,a,r,s){var u=Fc();return u=u===null?null:{parent:ht._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&bi(t,null),au(),hh(t),e!==null&&nr(e,t,r,!0),t.childLanes=s,null}function zi(e,t){return t=Ui({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fp(e,t,a){return wl(t,e.child,null,a),e=zi(t,t.pendingProps),e.flags|=2,en(t),t.memoizedState=null,e}function bS(e,t,a){var r=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ue){if(r.mode==="hidden")return e=zi(t,r),t.lanes=536870912,po(null,e);if(ru(t),(e=tt)?(e=Ng(e,pn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Na!==null?{id:kn,overflow:zn}:null,retryLane:536870912,hydrationErrors:null},a=Zm(e),a.return=t,t.child=a,At=t,tt=null)):e=null,e===null)throw Ca(t);return t.lanes=536870912,null}return zi(t,r)}var u=e.memoizedState;if(u!==null){var b=u.dehydrated;if(ru(t),s)if(t.flags&256)t.flags&=-257,t=fp(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(gt||nr(e,t,a,!1),s=(a&e.childLanes)!==0,gt||s){if(r=Ie,r!==null&&(b=Vt(r,a),b!==0&&b!==u.retryLane))throw u.retryLane=b,hl(e,b),Kt(r,e,b),Cu;Xi(),t=fp(e,t,a)}else e=u.treeContext,tt=vn(b.nextSibling),At=t,Ue=!0,Ta=null,pn=!1,e!==null&&Jm(t,e),t=zi(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 Li(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 Au(e,t,a,r,s){return yl(t),a=iu(e,t,a,r,void 0,s),r=su(),e!==null&&!gt?(cu(e,t,s),ra(e,t,s)):(Ue&&r&&Yc(t),t.flags|=1,_t(e,t,a,s),t.child)}function mp(e,t,a,r,s,u){return yl(t),t.updateQueue=null,a=gh(t,r,a,s),ph(e),r=su(),e!==null&&!gt?(cu(e,t,u),ra(e,t,u)):(Ue&&r&&Yc(t),t.flags|=1,_t(e,t,a,u),t.child)}function hp(e,t,a,r,s){if(yl(t),t.stateNode===null){var u=Jl,b=a.contextType;typeof b=="object"&&b!==null&&(u=Rt(b)),u=new a(r,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Nu,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=r,u.state=t.memoizedState,u.refs={},Wc(t),b=a.contextType,u.context=typeof b=="object"&&b!==null?Rt(b):Jl,u.state=t.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(Eu(t,a,b,r),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(b=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),b!==u.state&&Nu.enqueueReplaceState(u,u.state,null),co(t,r,u,s),so(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){u=t.stateNode;var S=t.memoizedProps,R=Nl(a,S);u.props=R;var U=u.context,P=a.contextType;b=Jl,typeof P=="object"&&P!==null&&(b=Rt(P));var I=a.getDerivedStateFromProps;P=typeof I=="function"||typeof u.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,P||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(S||U!==b)&&ep(t,u,r,b),Ra=!1;var B=t.memoizedState;u.state=B,co(t,r,u,s),so(),U=t.memoizedState,S||B!==U||Ra?(typeof I=="function"&&(Eu(t,a,I,r),U=t.memoizedState),(R=Ra||Wh(t,a,R,r,B,U,b))?(P||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=U),u.props=r,u.state=U,u.context=b,r=R):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,eu(e,t),b=t.memoizedProps,P=Nl(a,b),u.props=P,I=t.pendingProps,B=u.context,U=a.contextType,R=Jl,typeof U=="object"&&U!==null&&(R=Rt(U)),S=a.getDerivedStateFromProps,(U=typeof S=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b!==I||B!==R)&&ep(t,u,r,R),Ra=!1,B=t.memoizedState,u.state=B,co(t,r,u,s),so();var q=t.memoizedState;b!==I||B!==q||Ra||e!==null&&e.dependencies!==null&&vi(e.dependencies)?(typeof S=="function"&&(Eu(t,a,S,r),q=t.memoizedState),(P=Ra||Wh(t,a,P,r,B,q,R)||e!==null&&e.dependencies!==null&&vi(e.dependencies))?(U||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,q,R),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,q,R)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||b===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=q),u.props=r,u.state=q,u.context=R,r=P):(typeof u.componentDidUpdate!="function"||b===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),r=!1)}return u=r,Li(e,t),r=(t.flags&128)!==0,u||r?(u=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&r?(t.child=wl(t,e.child,null,s),t.child=wl(t,null,a,s)):_t(e,t,a,s),t.memoizedState=u.state,e=t.child):e=ra(e,t,s),e}function pp(e,t,a,r){return gl(),t.flags|=256,_t(e,t,a,r),t.child}var Ru={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _u(e){return{baseLanes:e,cachePool:lh()}}function ju(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=nn),e}function gp(e,t,a){var r=t.pendingProps,s=!1,u=(t.flags&128)!==0,b;if((b=u)||(b=e!==null&&e.memoizedState===null?!1:(ut.current&2)!==0),b&&(s=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ue){if(s?Ma(t):Oa(),(e=tt)?(e=Ng(e,pn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Na!==null?{id:kn,overflow:zn}:null,retryLane:536870912,hydrationErrors:null},a=Zm(e),a.return=t,t.child=a,At=t,tt=null)):e=null,e===null)throw Ca(t);return fd(e)?t.lanes=32:t.lanes=536870912,null}var S=r.children;return r=r.fallback,s?(Oa(),s=t.mode,S=Ui({mode:"hidden",children:S},s),r=pl(r,s,a,null),S.return=t,r.return=t,S.sibling=r,t.child=S,r=t.child,r.memoizedState=_u(a),r.childLanes=ju(e,b,a),t.memoizedState=Ru,po(null,r)):(Ma(t),Mu(t,S))}var R=e.memoizedState;if(R!==null&&(S=R.dehydrated,S!==null)){if(u)t.flags&256?(Ma(t),t.flags&=-257,t=Ou(e,t,a)):t.memoizedState!==null?(Oa(),t.child=e.child,t.flags|=128,t=null):(Oa(),S=r.fallback,s=t.mode,r=Ui({mode:"visible",children:r.children},s),S=pl(S,s,a,null),S.flags|=2,r.return=t,S.return=t,r.sibling=S,t.child=r,wl(t,e.child,null,a),r=t.child,r.memoizedState=_u(a),r.childLanes=ju(e,b,a),t.memoizedState=Ru,t=po(null,r));else if(Ma(t),fd(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var U=b.dgst;b=U,r=Error(i(419)),r.stack="",r.digest=b,no({value:r,source:null,stack:null}),t=Ou(e,t,a)}else if(gt||nr(e,t,a,!1),b=(a&e.childLanes)!==0,gt||b){if(b=Ie,b!==null&&(r=Vt(b,a),r!==0&&r!==R.retryLane))throw R.retryLane=r,hl(e,r),Kt(b,e,r),Cu;dd(S)||Xi(),t=Ou(e,t,a)}else dd(S)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,tt=vn(S.nextSibling),At=t,Ue=!0,Ta=null,pn=!1,e!==null&&Jm(t,e),t=Mu(t,r.children),t.flags|=4096);return t}return s?(Oa(),S=r.fallback,s=t.mode,R=e.child,U=R.sibling,r=Wn(R,{mode:"hidden",children:r.children}),r.subtreeFlags=R.subtreeFlags&65011712,U!==null?S=Wn(U,S):(S=pl(S,s,a,null),S.flags|=2),S.return=t,r.return=t,r.sibling=S,t.child=r,po(null,r),r=t.child,S=e.child.memoizedState,S===null?S=_u(a):(s=S.cachePool,s!==null?(R=ht._currentValue,s=s.parent!==R?{parent:R,pool:R}:s):s=lh(),S={baseLanes:S.baseLanes|a,cachePool:s}),r.memoizedState=S,r.childLanes=ju(e,b,a),t.memoizedState=Ru,po(e.child,r)):(Ma(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 Mu(e,t){return t=Ui({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ui(e,t){return e=Jt(22,e,null,t),e.lanes=0,e}function Ou(e,t,a){return wl(t,e.child,null,a),e=Mu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vp(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Kc(e.return,t,a)}function Du(e,t,a,r,s,u){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:s,treeForkCount:u}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=r,b.tail=a,b.tailMode=s,b.treeForkCount=u)}function yp(e,t,a){var r=t.pendingProps,s=r.revealOrder,u=r.tail;r=r.children;var b=ut.current,S=(b&2)!==0;if(S?(b=b&1|2,t.flags|=128):b&=1,K(ut,b),_t(e,t,r,a),r=Ue?to:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vp(e,a,t);else if(e.tag===19)vp(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&&Ti(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),Du(t,!1,s,a,u,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&&Ti(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}Du(t,!0,a,null,u,r);break;case"together":Du(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(nr(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 ku(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&vi(e)))}function xS(e,t,a){switch(t.tag){case 3:ie(t,t.stateNode.containerInfo),Aa(t,ht,e.memoizedState.cache),gl();break;case 27:case 5:be(t);break;case 4:ie(t,t.stateNode.containerInfo);break;case 10:Aa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ru(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Ma(t),t.flags|=128,null):(a&t.child.childLanes)!==0?gp(e,t,a):(Ma(t),e=ra(e,t,a),e!==null?e.sibling:null);Ma(t);break;case 19:var s=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(nr(e,t,a,!1),r=(a&t.childLanes)!==0),s){if(r)return yp(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),K(ut,ut.current),r)break;return null;case 22:return t.lanes=0,up(e,t,a,t.pendingProps);case 24:Aa(t,ht,e.memoizedState.cache)}return ra(e,t,a)}function bp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)gt=!0;else{if(!ku(e,a)&&(t.flags&128)===0)return gt=!1,xS(e,t,a);gt=(e.flags&131072)!==0}else gt=!1,Ue&&(t.flags&1048576)!==0&&Fm(t,to,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=xl(t.elementType),t.type=e,typeof e=="function")Hc(e)?(r=Nl(e,r),t.tag=1,t=hp(null,t,e,r,a)):(t.tag=0,t=Au(null,t,e,r,a));else{if(e!=null){var s=e.$$typeof;if(s===k){t.tag=11,t=ip(null,t,e,r,a);break e}else if(s===V){t.tag=14,t=sp(null,t,e,r,a);break e}}throw t=fe(e)||e,Error(i(306,t,""))}}return t;case 0:return Au(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,s=Nl(r,t.pendingProps),hp(e,t,r,s,a);case 3:e:{if(ie(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var u=t.memoizedState;s=u.element,eu(e,t),co(t,r,null,a);var b=t.memoizedState;if(r=b.cache,Aa(t,ht,r),r!==u.cache&&Qc(t,[ht],a,!0),so(),r=b.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=pp(e,t,r,a);break e}else if(r!==s){s=fn(Error(i(424)),t),no(s),t=pp(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(tt=vn(e.firstChild),At=t,Ue=!0,Ta=null,pn=!0,a=uh(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(gl(),r===s){t=ra(e,t,a);break e}_t(e,t,r,a)}t=t.child}return t;case 26:return Li(e,t),e===null?(a=jg(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ue||(a=t.type,e=t.pendingProps,r=Wi(oe.current).createElement(a),r[Ct]=t,r[$t]=e,jt(r,a,e),Et(r),t.stateNode=r):t.memoizedState=jg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return be(t),e===null&&Ue&&(r=t.stateNode=Ag(t.type,t.pendingProps,oe.current),At=t,pn=!0,s=tt,Va(t.type)?(md=s,tt=vn(r.firstChild)):tt=s),_t(e,t,t.pendingProps.children,a),Li(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ue&&((s=r=tt)&&(r=IS(r,t.type,t.pendingProps,pn),r!==null?(t.stateNode=r,At=t,tt=vn(r.firstChild),pn=!1,s=!0):s=!1),s||Ca(t)),be(t),s=t.type,u=t.pendingProps,b=e!==null?e.memoizedProps:null,r=u.children,sd(s,u)?r=null:b!==null&&sd(s,b)&&(t.flags|=32),t.memoizedState!==null&&(s=iu(e,t,dS,null,null,a),jo._currentValue=s),Li(e,t),_t(e,t,r,a),t.child;case 6:return e===null&&Ue&&((e=a=tt)&&(a=FS(a,t.pendingProps,pn),a!==null?(t.stateNode=a,At=t,tt=null,e=!0):e=!1),e||Ca(t)),null;case 13:return gp(e,t,a);case 4:return ie(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wl(t,null,r,a):_t(e,t,r,a),t.child;case 11:return ip(e,t,t.type,t.pendingProps,a);case 7:return _t(e,t,t.pendingProps,a),t.child;case 8:return _t(e,t,t.pendingProps.children,a),t.child;case 12:return _t(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,Aa(t,t.type,r.value),_t(e,t,r.children,a),t.child;case 9:return s=t.type._context,r=t.pendingProps.children,yl(t),s=Rt(s),r=r(s),t.flags|=1,_t(e,t,r,a),t.child;case 14:return sp(e,t,t.type,t.pendingProps,a);case 15:return cp(e,t,t.type,t.pendingProps,a);case 19:return yp(e,t,a);case 31:return bS(e,t,a);case 22:return up(e,t,a,t.pendingProps);case 24:return yl(t),r=Rt(ht),e===null?(s=Fc(),s===null&&(s=Ie,u=Zc(),s.pooledCache=u,u.refCount++,u!==null&&(s.pooledCacheLanes|=a),s=u),t.memoizedState={parent:r,cache:s},Wc(t),Aa(t,ht,s)):((e.lanes&a)!==0&&(eu(e,t),co(t,null,null,a),so()),s=e.memoizedState,u=t.memoizedState,s.parent!==r?(s={parent:r,cache:r},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Aa(t,ht,r)):(r=u.cache,Aa(t,ht,r),r!==s.cache&&Qc(t,[ht],a,!0))),_t(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 zu(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(Xp())e.flags|=8192;else throw Sl=Si,Jc}else e.flags&=-16777217}function xp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!zg(t))if(Xp())e.flags|=8192;else throw Sl=Si,Jc}function Bi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ot():536870912,e.lanes|=t,hr|=t)}function go(e,t){if(!Ue)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 nt(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 SS(e,t,a){var r=t.pendingProps;switch(qc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(t),null;case 1:return nt(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),na(ht),J(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(tr(t)?oa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Pc())),nt(t),null;case 26:var s=t.type,u=t.memoizedState;return e===null?(oa(t),u!==null?(nt(t),xp(t,u)):(nt(t),zu(t,s,null,r,a))):u?u!==e.memoizedState?(oa(t),nt(t),xp(t,u)):(nt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&oa(t),nt(t),zu(t,s,e,r,a)),null;case 27:if(ye(t),a=oe.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 nt(t),null}e=W.current,tr(t)?Wm(t):(e=Ag(s,r,a),t.stateNode=e,oa(t))}return nt(t),null;case 5:if(ye(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 nt(t),null}if(u=W.current,tr(t))Wm(t);else{var b=Wi(oe.current);switch(u){case 1:u=b.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:u=b.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":u=b.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":u=b.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":u=b.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof r.is=="string"?b.createElement("select",{is:r.is}):b.createElement("select"),r.multiple?u.multiple=!0:r.size&&(u.size=r.size);break;default:u=typeof r.is=="string"?b.createElement(s,{is:r.is}):b.createElement(s)}}u[Ct]=t,u[$t]=r;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)u.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=u;e:switch(jt(u,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 nt(t),zu(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=oe.current,tr(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,s=At,s!==null)switch(s.tag){case 27:case 5:r=s.memoizedProps}e[Ct]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||gg(e.nodeValue,a)),e||Ca(t,!0)}else e=Wi(e).createTextNode(r),e[Ct]=t,t.stateNode=e}return nt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=tr(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[Ct]=t}else gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;nt(t),e=!1}else a=Pc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(en(t),t):(en(t),null);if((t.flags&128)!==0)throw Error(i(558))}return nt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=tr(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[Ct]=t}else gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;nt(t),s=!1}else s=Pc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(en(t),t):(en(t),null)}return en(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),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==s&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Bi(t,t.updateQueue),nt(t),null);case 4:return J(),e===null&&ad(t.stateNode.containerInfo),nt(t),null;case 10:return na(t.type),nt(t),null;case 19:if(G(ut),r=t.memoizedState,r===null)return nt(t),null;if(s=(t.flags&128)!==0,u=r.rendering,u===null)if(s)go(r,!1);else{if(ct!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Ti(e),u!==null){for(t.flags|=128,go(r,!1),e=u.updateQueue,t.updateQueue=e,Bi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Qm(a,e),a=a.sibling;return K(ut,ut.current&1|2),Ue&&ea(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&xe()>qi&&(t.flags|=128,s=!0,go(r,!1),t.lanes=4194304)}else{if(!s)if(e=Ti(u),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Bi(t,e),go(r,!0),r.tail===null&&r.tailMode==="hidden"&&!u.alternate&&!Ue)return nt(t),null}else 2*xe()-r.renderingStartTime>qi&&a!==536870912&&(t.flags|=128,s=!0,go(r,!1),t.lanes=4194304);r.isBackwards?(u.sibling=t.child,t.child=u):(e=r.last,e!==null?e.sibling=u:t.child=u,r.last=u)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=xe(),e.sibling=null,a=ut.current,K(ut,s?a&1|2:a&1),Ue&&ea(t,r.treeForkCount),e):(nt(t),null);case 22:case 23:return en(t),lu(),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&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),a=t.updateQueue,a!==null&&Bi(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&&G(bl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),na(ht),nt(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function wS(e,t){switch(qc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return na(ht),J(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ye(t),null;case 31:if(t.memoizedState!==null){if(en(t),t.alternate===null)throw Error(i(340));gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(en(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(ut),null;case 4:return J(),null;case 10:return na(t.type),null;case 22:case 23:return en(t),lu(),e!==null&&G(bl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return na(ht),null;case 25:return null;default:return null}}function Sp(e,t){switch(qc(t),t.tag){case 3:na(ht),J();break;case 26:case 27:case 5:ye(t);break;case 4:J();break;case 31:t.memoizedState!==null&&en(t);break;case 13:en(t);break;case 19:G(ut);break;case 10:na(t.type);break;case 22:case 23:en(t),lu(),e!==null&&G(bl);break;case 24:na(ht)}}function vo(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 u=a.create,b=a.inst;r=u(),b.destroy=r}a=a.next}while(a!==s)}}catch(S){Pe(t,t.return,S)}}function Da(e,t,a){try{var r=t.updateQueue,s=r!==null?r.lastEffect:null;if(s!==null){var u=s.next;r=u;do{if((r.tag&e)===e){var b=r.inst,S=b.destroy;if(S!==void 0){b.destroy=void 0,s=t;var R=a,U=S;try{U()}catch(P){Pe(s,R,P)}}}r=r.next}while(r!==u)}}catch(P){Pe(t,t.return,P)}}function wp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{fh(t,a)}catch(r){Pe(e,e.return,r)}}}function Ep(e,t,a){a.props=Nl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){Pe(e,t,r)}}function yo(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){Pe(e,t,s)}}function Ln(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(s){Pe(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){Pe(e,t,s)}else a.current=null}function Np(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){Pe(e,e.return,s)}}function Lu(e,t,a){try{var r=e.stateNode;GS(r,e.type,a,t),r[$t]=t}catch(s){Pe(e,e.return,s)}}function Tp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Va(e.type)||e.tag===4}function Uu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tp(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 Bu(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(Bu(e,t,a),e=e.sibling;e!==null;)Bu(e,t,a),e=e.sibling}function Hi(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(Hi(e,t,a),e=e.sibling;e!==null;)Hi(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]);jt(t,r,a),t[Ct]=e,t[$t]=a}catch(u){Pe(e,e.return,u)}}var ia=!1,vt=!1,Hu=!1,Ap=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function ES(e,t){if(e=e.containerInfo,od=os,e=Hm(e),Oc(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,u=r.focusNode;r=r.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var b=0,S=-1,R=-1,U=0,P=0,I=e,B=null;t:for(;;){for(var q;I!==a||s!==0&&I.nodeType!==3||(S=b+s),I!==u||r!==0&&I.nodeType!==3||(R=b+r),I.nodeType===3&&(b+=I.nodeValue.length),(q=I.firstChild)!==null;)B=I,I=q;for(;;){if(I===e)break t;if(B===a&&++U===s&&(S=b),B===u&&++P===r&&(R=b),(q=I.nextSibling)!==null)break;I=B,B=I.parentNode}I=q}a=S===-1||R===-1?null:{start:S,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(id={focusedElem:e,selectionRange:a},os=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){switch(t=Nt,u=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&&u!==null){e=void 0,a=t,s=u.memoizedProps,u=u.memoizedState,r=a.stateNode;try{var he=Nl(a.type,s);e=r.getSnapshotBeforeUpdate(he,u),r.__reactInternalSnapshotBeforeUpdate=e}catch(Ee){Pe(a,a.return,Ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)ud(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ud(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,Nt=e;break}Nt=t.return}}function Rp(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:ca(e,a),r&4&&vo(5,a);break;case 1:if(ca(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(b){Pe(a,a.return,b)}else{var s=Nl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Pe(a,a.return,b)}}r&64&&wp(a),r&512&&yo(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{fh(e,t)}catch(b){Pe(a,a.return,b)}}break;case 27:t===null&&r&4&&Cp(a);case 26:case 5:ca(e,a),t===null&&r&4&&Np(a),r&512&&yo(a,a.return);break;case 12:ca(e,a);break;case 31:ca(e,a),r&4&&Mp(e,a);break;case 13:ca(e,a),r&4&&Op(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=OS.bind(null,a),JS(e,a))));break;case 22:if(r=a.memoizedState!==null||ia,!r){t=t!==null&&t.memoizedState!==null||vt,s=ia;var u=vt;ia=r,(vt=t)&&!u?ua(e,a,(a.subtreeFlags&8772)!==0):ca(e,a),ia=s,vt=u}break;case 30:break;default:ca(e,a)}}function _p(e){var t=e.alternate;t!==null&&(e.alternate=null,_p(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&pc(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 lt=null,qt=!1;function sa(e,t,a){for(a=a.child;a!==null;)jp(e,t,a),a=a.sibling}function jp(e,t,a){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(il,a)}catch{}switch(a.tag){case 26:vt||Ln(a,t),sa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:vt||Ln(a,t);var r=lt,s=qt;Va(a.type)&&(lt=a.stateNode,qt=!1),sa(e,t,a),Ao(a.stateNode),lt=r,qt=s;break;case 5:vt||Ln(a,t);case 6:if(r=lt,s=qt,lt=null,sa(e,t,a),lt=r,qt=s,lt!==null)if(qt)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(a.stateNode)}catch(u){Pe(a,t,u)}else try{lt.removeChild(a.stateNode)}catch(u){Pe(a,t,u)}break;case 18:lt!==null&&(qt?(e=lt,wg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),wr(e)):wg(lt,a.stateNode));break;case 4:r=lt,s=qt,lt=a.stateNode.containerInfo,qt=!0,sa(e,t,a),lt=r,qt=s;break;case 0:case 11:case 14:case 15:Da(2,a,t),vt||Da(4,a,t),sa(e,t,a);break;case 1:vt||(Ln(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&Ep(a,t,r)),sa(e,t,a);break;case 21:sa(e,t,a);break;case 22:vt=(r=vt)||a.memoizedState!==null,sa(e,t,a),vt=r;break;default:sa(e,t,a)}}function Mp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{wr(e)}catch(a){Pe(t,t.return,a)}}}function Op(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{wr(e)}catch(a){Pe(t,t.return,a)}}function NS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ap),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ap),t;default:throw Error(i(435,e.tag))}}function Vi(e,t){var a=NS(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var s=DS.bind(null,e,r);r.then(s,s)}})}function Gt(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var s=a[r],u=e,b=t,S=b;e:for(;S!==null;){switch(S.tag){case 27:if(Va(S.type)){lt=S.stateNode,qt=!1;break e}break;case 5:lt=S.stateNode,qt=!1;break e;case 3:case 4:lt=S.stateNode.containerInfo,qt=!0;break e}S=S.return}if(lt===null)throw Error(i(160));jp(u,b,s),lt=null,qt=!1,u=s.alternate,u!==null&&(u.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Dp(t,e),t=t.sibling}var Tn=null;function Dp(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Gt(t,e),Pt(e),r&4&&(Da(3,e,e.return),vo(3,e),Da(5,e,e.return));break;case 1:Gt(t,e),Pt(e),r&512&&(vt||a===null||Ln(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=Tn;if(Gt(t,e),Pt(e),r&512&&(vt||a===null||Ln(a,a.return)),r&4){var u=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":u=s.getElementsByTagName("title")[0],(!u||u[Gr]||u[Ct]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=s.createElement(r),s.head.insertBefore(u,s.querySelector("head > title"))),jt(u,r,a),u[Ct]=e,Et(u),r=u;break e;case"link":var b=Dg("link","href",s).get(r+(a.href||""));if(b){for(var S=0;S<b.length;S++)if(u=b[S],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){b.splice(S,1);break t}}u=s.createElement(r),jt(u,r,a),s.head.appendChild(u);break;case"meta":if(b=Dg("meta","content",s).get(r+(a.content||""))){for(S=0;S<b.length;S++)if(u=b[S],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){b.splice(S,1);break t}}u=s.createElement(r),jt(u,r,a),s.head.appendChild(u);break;default:throw Error(i(468,r))}u[Ct]=e,Et(u),r=u}e.stateNode=r}else kg(s,e.type,e.stateNode);else e.stateNode=Og(s,r,e.memoizedProps);else u!==r?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,r===null?kg(s,e.type,e.stateNode):Og(s,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Lu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Gt(t,e),Pt(e),r&512&&(vt||a===null||Ln(a,a.return)),a!==null&&r&4&&Lu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Gt(t,e),Pt(e),r&512&&(vt||a===null||Ln(a,a.return)),e.flags&32){s=e.stateNode;try{Pl(s,"")}catch(he){Pe(e,e.return,he)}}r&4&&e.stateNode!=null&&(s=e.memoizedProps,Lu(e,s,a!==null?a.memoizedProps:s)),r&1024&&(Hu=!0);break;case 6:if(Gt(t,e),Pt(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(he){Pe(e,e.return,he)}}break;case 3:if(ns=null,s=Tn,Tn=es(t.containerInfo),Gt(t,e),Tn=s,Pt(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{wr(t.containerInfo)}catch(he){Pe(e,e.return,he)}Hu&&(Hu=!1,kp(e));break;case 4:r=Tn,Tn=es(e.stateNode.containerInfo),Gt(t,e),Pt(e),Tn=r;break;case 12:Gt(t,e),Pt(e);break;case 31:Gt(t,e),Pt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Vi(e,r)));break;case 13:Gt(t,e),Pt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Yi=xe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Vi(e,r)));break;case 22:s=e.memoizedState!==null;var R=a!==null&&a.memoizedState!==null,U=ia,P=vt;if(ia=U||s,vt=P||R,Gt(t,e),vt=P,ia=U,Pt(e),r&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||R||ia||vt||Tl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){R=a=t;try{if(u=R.stateNode,s)b=u.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=R.stateNode;var I=R.memoizedProps.style,B=I!=null&&I.hasOwnProperty("display")?I.display:null;S.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(he){Pe(R,R.return,he)}}}else if(t.tag===6){if(a===null){R=t;try{R.stateNode.nodeValue=s?"":R.memoizedProps}catch(he){Pe(R,R.return,he)}}}else if(t.tag===18){if(a===null){R=t;try{var q=R.stateNode;s?Eg(q,!0):Eg(R.stateNode,!1)}catch(he){Pe(R,R.return,he)}}}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,Vi(e,a))));break;case 19:Gt(t,e),Pt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Vi(e,r)));break;case 30:break;case 21:break;default:Gt(t,e),Pt(e)}}function Pt(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(Tp(r)){a=r;break}r=r.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var s=a.stateNode,u=Uu(e);Hi(e,u,s);break;case 5:var b=a.stateNode;a.flags&32&&(Pl(b,""),a.flags&=-33);var S=Uu(e);Hi(e,S,b);break;case 3:case 4:var R=a.stateNode.containerInfo,U=Uu(e);Bu(e,U,R);break;default:throw Error(i(161))}}catch(P){Pe(e,e.return,P)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;kp(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;)Rp(e,t.alternate,t),t=t.sibling}function Tl(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),Tl(t);break;case 1:Ln(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Ep(t,t.return,a),Tl(t);break;case 27:Ao(t.stateNode);case 26:case 5:Ln(t,t.return),Tl(t);break;case 22:t.memoizedState===null&&Tl(t);break;case 30:Tl(t);break;default:Tl(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,u=t,b=u.flags;switch(u.tag){case 0:case 11:case 15:ua(s,u,a),vo(4,u);break;case 1:if(ua(s,u,a),r=u,s=r.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(U){Pe(r,r.return,U)}if(r=u,s=r.updateQueue,s!==null){var S=r.stateNode;try{var R=s.shared.hiddenCallbacks;if(R!==null)for(s.shared.hiddenCallbacks=null,s=0;s<R.length;s++)dh(R[s],S)}catch(U){Pe(r,r.return,U)}}a&&b&64&&wp(u),yo(u,u.return);break;case 27:Cp(u);case 26:case 5:ua(s,u,a),a&&r===null&&b&4&&Np(u),yo(u,u.return);break;case 12:ua(s,u,a);break;case 31:ua(s,u,a),a&&b&4&&Mp(s,u);break;case 13:ua(s,u,a),a&&b&4&&Op(s,u);break;case 22:u.memoizedState===null&&ua(s,u,a),yo(u,u.return);break;case 30:break;default:ua(s,u,a)}t=t.sibling}}function Vu(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&&ao(a))}function $u(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ao(e))}function Cn(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zp(e,t,a,r),t=t.sibling}function zp(e,t,a,r){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Cn(e,t,a,r),s&2048&&vo(9,t);break;case 1:Cn(e,t,a,r);break;case 3:Cn(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&&ao(e)));break;case 12:if(s&2048){Cn(e,t,a,r),e=t.stateNode;try{var u=t.memoizedProps,b=u.id,S=u.onPostCommit;typeof S=="function"&&S(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){Pe(t,t.return,R)}}else Cn(e,t,a,r);break;case 31:Cn(e,t,a,r);break;case 13:Cn(e,t,a,r);break;case 23:break;case 22:u=t.stateNode,b=t.alternate,t.memoizedState!==null?u._visibility&2?Cn(e,t,a,r):bo(e,t):u._visibility&2?Cn(e,t,a,r):(u._visibility|=2,dr(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Vu(b,t);break;case 24:Cn(e,t,a,r),s&2048&&$u(t.alternate,t);break;default:Cn(e,t,a,r)}}function dr(e,t,a,r,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,b=t,S=a,R=r,U=b.flags;switch(b.tag){case 0:case 11:case 15:dr(u,b,S,R,s),vo(8,b);break;case 23:break;case 22:var P=b.stateNode;b.memoizedState!==null?P._visibility&2?dr(u,b,S,R,s):bo(u,b):(P._visibility|=2,dr(u,b,S,R,s)),s&&U&2048&&Vu(b.alternate,b);break;case 24:dr(u,b,S,R,s),s&&U&2048&&$u(b.alternate,b);break;default:dr(u,b,S,R,s)}t=t.sibling}}function bo(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:bo(a,r),s&2048&&Vu(r.alternate,r);break;case 24:bo(a,r),s&2048&&$u(r.alternate,r);break;default:bo(a,r)}t=t.sibling}}var xo=8192;function fr(e,t,a){if(e.subtreeFlags&xo)for(e=e.child;e!==null;)Lp(e,t,a),e=e.sibling}function Lp(e,t,a){switch(e.tag){case 26:fr(e,t,a),e.flags&xo&&e.memoizedState!==null&&uw(a,Tn,e.memoizedState,e.memoizedProps);break;case 5:fr(e,t,a);break;case 3:case 4:var r=Tn;Tn=es(e.stateNode.containerInfo),fr(e,t,a),Tn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=xo,xo=16777216,fr(e,t,a),xo=r):fr(e,t,a));break;default:fr(e,t,a)}}function Up(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 So(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];Nt=r,Hp(r,e)}Up(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bp(e),e=e.sibling}function Bp(e){switch(e.tag){case 0:case 11:case 15:So(e),e.flags&2048&&Da(9,e,e.return);break;case 3:So(e);break;case 12:So(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,$i(e)):So(e);break;default:So(e)}}function $i(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];Nt=r,Hp(r,e)}Up(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Da(8,t,t.return),$i(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,$i(t));break;default:$i(t)}e=e.sibling}}function Hp(e,t){for(;Nt!==null;){var a=Nt;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:ao(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,Nt=r;else e:for(a=e;Nt!==null;){r=Nt;var s=r.sibling,u=r.return;if(_p(r),r===a){Nt=null;break e}if(s!==null){s.return=u,Nt=s;break e}Nt=u}}}var TS={getCacheForType:function(e){var t=Rt(ht),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Rt(ht).controller.signal}},CS=typeof WeakMap=="function"?WeakMap:Map,qe=0,Ie=null,Me=null,ke=0,Ge=0,tn=null,ka=!1,mr=!1,Yu=!1,da=0,ct=0,za=0,Cl=0,qu=0,nn=0,hr=0,wo=null,Xt=null,Gu=!1,Yi=0,Vp=0,qi=1/0,Gi=null,La=null,yt=0,Ua=null,pr=null,fa=0,Pu=0,Xu=null,$p=null,Eo=0,Ku=null;function an(){return(qe&2)!==0&&ke!==0?ke&-ke:O.T!==null?Wu():mc()}function Yp(){if(nn===0)if((ke&536870912)===0||Ue){var e=Ul;Ul<<=1,(Ul&3932160)===0&&(Ul=262144),nn=e}else nn=536870912;return e=Wt.current,e!==null&&(e.flags|=32),nn}function Kt(e,t,a){(e===Ie&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(gr(e,0),Ba(e,ke,nn,!1)),it(e,a),((qe&2)===0||e!==Ie)&&(e===Ie&&((qe&2)===0&&(Cl|=a),ct===4&&Ba(e,ke,nn,!1)),Un(e))}function qp(e,t,a){if((qe&6)!==0)throw Error(i(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||at(e,t),s=r?_S(e,t):Zu(e,t,!0),u=r;do{if(s===0){mr&&!r&&Ba(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!AS(a)){s=Zu(e,t,!1),u=!1;continue}if(s===2){if(u=t,e.errorRecoveryDisabledLanes&u)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=wo;var R=S.current.memoizedState.isDehydrated;if(R&&(gr(S,b).flags|=256),b=Zu(S,b,!1),b!==2){if(Yu&&!R){S.errorRecoveryDisabledLanes|=u,Cl|=u,s=4;break e}u=Xt,Xt=s,u!==null&&(Xt===null?Xt=u:Xt.push.apply(Xt,u))}s=b}if(u=!1,s!==2)continue}}if(s===1){gr(e,0),Ba(e,t,0,!0);break}e:{switch(r=e,u=s,u){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Ba(r,t,nn,!ka);break e;case 2:Xt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(s=Yi+300-xe(),10<s)){if(Ba(r,t,nn,!ka),Te(r,0,!0)!==0)break e;fa=t,r.timeoutHandle=xg(Gp.bind(null,r,a,Xt,Gi,Gu,t,nn,Cl,hr,ka,u,"Throttled",-0,0),s);break e}Gp(r,a,Xt,Gi,Gu,t,nn,Cl,hr,ka,u,null,-0,0)}}break}while(!0);Un(e)}function Gp(e,t,a,r,s,u,b,S,R,U,P,I,B,q){if(e.timeoutHandle=-1,I=t.subtreeFlags,I&8192||(I&16785408)===16785408){I={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Fn},Lp(t,u,I);var he=(u&62914560)===u?Yi-xe():(u&4194048)===u?Vp-xe():0;if(he=dw(I,he),he!==null){fa=u,e.cancelPendingCommit=he(Jp.bind(null,e,t,u,a,r,s,b,S,R,P,I,null,B,q)),Ba(e,u,b,!U);return}}Jp(e,t,u,a,r,s,b,S,R)}function AS(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],u=s.getSnapshot;s=s.value;try{if(!Ft(u(),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&=~qu,t&=~Cl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var s=t;0<s;){var u=31-Mt(s),b=1<<u;r[u]=-1,s&=~b}a!==0&&cl(e,a,t)}function Pi(){return(qe&6)===0?(No(0),!1):!0}function Qu(){if(Me!==null){if(Ge===0)var e=Me.return;else e=Me,ta=vl=null,uu(e),or=null,ro=0,e=Me;for(;e!==null;)Sp(e.alternate,e),e=e.return;Me=null}}function gr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,KS(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),fa=0,Qu(),Ie=e,Me=a=Wn(e.current,null),ke=t,Ge=0,tn=null,ka=!1,mr=at(e,t),Yu=!1,hr=nn=qu=Cl=za=ct=0,Xt=wo=null,Gu=!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-Mt(r),u=1<<s;t|=e[s],r&=~u}return da=t,fi(),a}function Pp(e,t){Ae=null,O.H=ho,t===rr||t===xi?(t=ih(),Ge=3):t===Jc?(t=ih(),Ge=4):Ge=t===Cu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,tn=t,Me===null&&(ct=1,ki(e,fn(t,e.current)))}function Xp(){var e=Wt.current;return e===null?!0:(ke&4194048)===ke?gn===null:(ke&62914560)===ke||(ke&536870912)!==0?e===gn:!1}function Kp(){var e=O.H;return O.H=ho,e===null?ho:e}function Qp(){var e=O.A;return O.A=TS,e}function Xi(){ct=4,ka||(ke&4194048)!==ke&&Wt.current!==null||(mr=!0),(za&134217727)===0&&(Cl&134217727)===0||Ie===null||Ba(Ie,ke,nn,!1)}function Zu(e,t,a){var r=qe;qe|=2;var s=Kp(),u=Qp();(Ie!==e||ke!==t)&&(Gi=null,gr(e,t)),t=!1;var b=ct;e:do try{if(Ge!==0&&Me!==null){var S=Me,R=tn;switch(Ge){case 8:Qu(),b=6;break e;case 3:case 2:case 9:case 6:Wt.current===null&&(t=!0);var U=Ge;if(Ge=0,tn=null,vr(e,S,R,U),a&&mr){b=0;break e}break;default:U=Ge,Ge=0,tn=null,vr(e,S,R,U)}}RS(),b=ct;break}catch(P){Pp(e,P)}while(!0);return t&&e.shellSuspendCounter++,ta=vl=null,qe=r,O.H=s,O.A=u,Me===null&&(Ie=null,ke=0,fi()),b}function RS(){for(;Me!==null;)Zp(Me)}function _S(e,t){var a=qe;qe|=2;var r=Kp(),s=Qp();Ie!==e||ke!==t?(Gi=null,qi=xe()+500,gr(e,t)):mr=at(e,t);e:do try{if(Ge!==0&&Me!==null){t=Me;var u=tn;t:switch(Ge){case 1:Ge=0,tn=null,vr(e,t,u,1);break;case 2:case 9:if(rh(u)){Ge=0,tn=null,Ip(t);break}t=function(){Ge!==2&&Ge!==9||Ie!==e||(Ge=7),Un(e)},u.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:rh(u)?(Ge=0,tn=null,Ip(t)):(Ge=0,tn=null,vr(e,t,u,7));break;case 5:var b=null;switch(Me.tag){case 26:b=Me.memoizedState;case 5:case 27:var S=Me;if(b?zg(b):S.stateNode.complete){Ge=0,tn=null;var R=S.sibling;if(R!==null)Me=R;else{var U=S.return;U!==null?(Me=U,Ki(U)):Me=null}break t}}Ge=0,tn=null,vr(e,t,u,5);break;case 6:Ge=0,tn=null,vr(e,t,u,6);break;case 8:Qu(),ct=6;break e;default:throw Error(i(462))}}jS();break}catch(P){Pp(e,P)}while(!0);return ta=vl=null,O.H=r,O.A=s,qe=a,Me!==null?0:(Ie=null,ke=0,fi(),ct)}function jS(){for(;Me!==null&&!St();)Zp(Me)}function Zp(e){var t=bp(e.alternate,e,da);e.memoizedProps=e.pendingProps,t===null?Ki(e):Me=t}function Ip(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=mp(a,t,t.pendingProps,t.type,void 0,ke);break;case 11:t=mp(a,t,t.pendingProps,t.type.render,t.ref,ke);break;case 5:uu(t);default:Sp(a,t),t=Me=Qm(t,da),t=bp(a,t,da)}e.memoizedProps=e.pendingProps,t===null?Ki(e):Me=t}function vr(e,t,a,r){ta=vl=null,uu(t),or=null,ro=0;var s=t.return;try{if(yS(e,s,t,a,ke)){ct=1,ki(e,fn(a,e.current)),Me=null;return}}catch(u){if(s!==null)throw Me=s,u;ct=1,ki(e,fn(a,e.current)),Me=null;return}t.flags&32768?(Ue||r===1?e=!0:mr||(ke&536870912)!==0?e=!1:(ka=e=!0,(r===2||r===9||r===3||r===6)&&(r=Wt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Fp(t,e)):Ki(t)}function Ki(e){var t=e;do{if((t.flags&32768)!==0){Fp(t,ka);return}e=t.return;var a=SS(t.alternate,t,da);if(a!==null){Me=a;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);ct===0&&(ct=5)}function Fp(e,t){do{var a=wS(e.alternate,e);if(a!==null){a.flags&=32767,Me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Me=e;return}Me=e=a}while(e!==null);ct=6,Me=null}function Jp(e,t,a,r,s,u,b,S,R){e.cancelPendingCommit=null;do Qi();while(yt!==0);if((qe&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(u=t.lanes|t.childLanes,u|=Uc,Bt(e,a,u,b,S,R),e===Ie&&(Me=Ie=null,ke=0),pr=t,Ua=e,fa=a,Pu=u,Xu=s,$p=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,kS(It,function(){return ag(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=O.T,O.T=null,s=$.p,$.p=2,b=qe,qe|=4;try{ES(e,t,a)}finally{qe=b,$.p=s,O.T=r}}yt=1,Wp(),eg(),tg()}}function Wp(){if(yt===1){yt=0;var e=Ua,t=pr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var r=$.p;$.p=2;var s=qe;qe|=4;try{Dp(t,e);var u=id,b=Hm(e.containerInfo),S=u.focusedElem,R=u.selectionRange;if(b!==S&&S&&S.ownerDocument&&Bm(S.ownerDocument.documentElement,S)){if(R!==null&&Oc(S)){var U=R.start,P=R.end;if(P===void 0&&(P=U),"selectionStart"in S)S.selectionStart=U,S.selectionEnd=Math.min(P,S.value.length);else{var I=S.ownerDocument||document,B=I&&I.defaultView||window;if(B.getSelection){var q=B.getSelection(),he=S.textContent.length,Ee=Math.min(R.start,he),Ze=R.end===void 0?Ee:Math.min(R.end,he);!q.extend&&Ee>Ze&&(b=Ze,Ze=Ee,Ee=b);var z=Um(S,Ee),D=Um(S,Ze);if(z&&D&&(q.rangeCount!==1||q.anchorNode!==z.node||q.anchorOffset!==z.offset||q.focusNode!==D.node||q.focusOffset!==D.offset)){var L=I.createRange();L.setStart(z.node,z.offset),q.removeAllRanges(),Ee>Ze?(q.addRange(L),q.extend(D.node,D.offset)):(L.setEnd(D.node,D.offset),q.addRange(L))}}}}for(I=[],q=S;q=q.parentNode;)q.nodeType===1&&I.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<I.length;S++){var Z=I[S];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}os=!!od,id=od=null}finally{qe=s,$.p=r,O.T=a}}e.current=t,yt=2}}function eg(){if(yt===2){yt=0;var e=Ua,t=pr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var r=$.p;$.p=2;var s=qe;qe|=4;try{Rp(e,t.alternate,t)}finally{qe=s,$.p=r,O.T=a}}yt=3}}function tg(){if(yt===4||yt===3){yt=0,Sn();var e=Ua,t=pr,a=fa,r=$p;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?yt=5:(yt=0,pr=Ua=null,ng(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(La=null),En(a),t=t.stateNode,Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot(il,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=O.T,s=$.p,$.p=2,O.T=null;try{for(var u=e.onRecoverableError,b=0;b<r.length;b++){var S=r[b];u(S.value,{componentStack:S.stack})}}finally{O.T=t,$.p=s}}(fa&3)!==0&&Qi(),Un(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===Ku?Eo++:(Eo=0,Ku=e):Eo=0,No(0)}}function ng(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ao(t)))}function Qi(){return Wp(),eg(),tg(),ag()}function ag(){if(yt!==5)return!1;var e=Ua,t=Pu;Pu=0;var a=En(fa),r=O.T,s=$.p;try{$.p=32>a?32:a,O.T=null,a=Xu,Xu=null;var u=Ua,b=fa;if(yt=0,pr=Ua=null,fa=0,(qe&6)!==0)throw Error(i(331));var S=qe;if(qe|=4,Bp(u.current),zp(u,u.current,b,a),qe=S,No(0,!1),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(il,u)}catch{}return!0}finally{$.p=s,O.T=r,ng(e,t)}}function lg(e,t,a){t=fn(a,t),t=Tu(e.stateNode,t,2),e=ja(e,t,2),e!==null&&(it(e,2),Un(e))}function Pe(e,t,a){if(e.tag===3)lg(e,e,a);else for(;t!==null;){if(t.tag===3){lg(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=fn(a,e),a=rp(2),r=ja(t,a,2),r!==null&&(op(a,r,t,e),it(r,2),Un(r));break}}t=t.return}}function Iu(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new CS;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)||(Yu=!0,s.add(a),e=MS.bind(null,e,t,a),t.then(e,e))}function MS(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ie===e&&(ke&a)===a&&(ct===4||ct===3&&(ke&62914560)===ke&&300>xe()-Yi?(qe&2)===0&&gr(e,0):qu|=a,hr===ke&&(hr=0)),Un(e)}function rg(e,t){t===0&&(t=Ot()),e=hl(e,t),e!==null&&(it(e,t),Un(e))}function OS(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),rg(e,a)}function DS(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),rg(e,a)}function kS(e,t){return ll(e,t)}var Zi=null,yr=null,Fu=!1,Ii=!1,Ju=!1,Ha=0;function Un(e){e!==yr&&e.next===null&&(yr===null?Zi=yr=e:yr=yr.next=e),Ii=!0,Fu||(Fu=!0,LS())}function No(e,t){if(!Ju&&Ii){Ju=!0;do for(var a=!1,r=Zi;r!==null;){if(e!==0){var s=r.pendingLanes;if(s===0)var u=0;else{var b=r.suspendedLanes,S=r.pingedLanes;u=(1<<31-Mt(42|e)+1)-1,u&=s&~(b&~S),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,cg(r,u))}else u=ke,u=Te(r,r===Ie?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(u&3)===0||at(r,u)||(a=!0,cg(r,u));r=r.next}while(a);Ju=!1}}function zS(){og()}function og(){Ii=Fu=!1;var e=0;Ha!==0&&XS()&&(e=Ha);for(var t=xe(),a=null,r=Zi;r!==null;){var s=r.next,u=ig(r,t);u===0?(r.next=null,a===null?Zi=s:a.next=s,s===null&&(yr=a)):(a=r,(e!==0||(u&3)!==0)&&(Ii=!0)),r=s}yt!==0&&yt!==5||No(e),Ha!==0&&(Ha=0)}function ig(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var b=31-Mt(u),S=1<<b,R=s[b];R===-1?((S&a)===0||(S&r)!==0)&&(s[b]=wt(S,t)):R<=t&&(e.expiredLanes|=S),u&=~S}if(t=Ie,a=ke,a=Te(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&&rl(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||at(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&rl(r),En(a)){case 2:case 8:a=Tt;break;case 32:a=It;break;case 268435456:a=sn;break;default:a=It}return r=sg.bind(null,e),a=ll(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&rl(r),e.callbackPriority=2,e.callbackNode=null,2}function sg(e,t){if(yt!==0&&yt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Qi()&&e.callbackNode!==a)return null;var r=ke;return r=Te(e,e===Ie?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(qp(e,r,t),ig(e,xe()),e.callbackNode!=null&&e.callbackNode===a?sg.bind(null,e):null)}function cg(e,t){if(Qi())return null;qp(e,t,!0)}function LS(){QS(function(){(qe&6)!==0?ll(Xe,zS):og()})}function Wu(){if(Ha===0){var e=ar;e===0&&(e=Ll,Ll<<=1,(Ll&261888)===0&&(Ll=256)),Ha=e}return Ha}function ug(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:li(""+e)}function dg(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 US(e,t,a,r,s){if(t==="submit"&&a&&a.stateNode===s){var u=ug((s[$t]||null).action),b=r.submitter;b&&(t=(t=b[$t]||null)?ug(t.formAction):b.getAttribute("formAction"),t!==null&&(u=t,b=null));var S=new si("action","action",null,r,s);e.push({event:S,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ha!==0){var R=b?dg(s,b):new FormData(s);bu(a,{pending:!0,data:R,method:s.method,action:u},null,R)}}else typeof u=="function"&&(S.preventDefault(),R=b?dg(s,b):new FormData(s),bu(a,{pending:!0,data:R,method:s.method,action:u},u,R))},currentTarget:s}]})}}for(var ed=0;ed<Lc.length;ed++){var td=Lc[ed],BS=td.toLowerCase(),HS=td[0].toUpperCase()+td.slice(1);Nn(BS,"on"+HS)}Nn(Ym,"onAnimationEnd"),Nn(qm,"onAnimationIteration"),Nn(Gm,"onAnimationStart"),Nn("dblclick","onDoubleClick"),Nn("focusin","onFocus"),Nn("focusout","onBlur"),Nn(tS,"onTransitionRun"),Nn(nS,"onTransitionStart"),Nn(aS,"onTransitionCancel"),Nn(Pm,"onTransitionEnd"),ql("onMouseEnter",["mouseout","mouseover"]),ql("onMouseLeave",["mouseout","mouseover"]),ql("onPointerEnter",["pointerout","pointerover"]),ql("onPointerLeave",["pointerout","pointerover"]),ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var To="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(" "),VS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(To));function fg(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 u=void 0;if(t)for(var b=r.length-1;0<=b;b--){var S=r[b],R=S.instance,U=S.currentTarget;if(S=S.listener,R!==u&&s.isPropagationStopped())break e;u=S,s.currentTarget=U;try{u(s)}catch(P){di(P)}s.currentTarget=null,u=R}else for(b=0;b<r.length;b++){if(S=r[b],R=S.instance,U=S.currentTarget,S=S.listener,R!==u&&s.isPropagationStopped())break e;u=S,s.currentTarget=U;try{u(s)}catch(P){di(P)}s.currentTarget=null,u=R}}}}function Oe(e,t){var a=t[hc];a===void 0&&(a=t[hc]=new Set);var r=e+"__bubble";a.has(r)||(mg(t,e,2,!1),a.add(r))}function nd(e,t,a){var r=0;t&&(r|=4),mg(a,e,r,t)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function ad(e){if(!e[Fi]){e[Fi]=!0,om.forEach(function(a){a!=="selectionchange"&&(VS.has(a)||nd(a,!1,e),nd(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fi]||(t[Fi]=!0,nd("selectionchange",!1,t))}}function mg(e,t,a,r){switch(Yg(t)){case 2:var s=hw;break;case 8:s=pw;break;default:s=yd}a=s.bind(null,t,a,e),s=void 0,!Ec||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 ld(e,t,a,r,s){var u=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 R=b.tag;if((R===3||R===4)&&b.stateNode.containerInfo===s)return;b=b.return}for(;S!==null;){if(b=Vl(S),b===null)return;if(R=b.tag,R===5||R===6||R===26||R===27){r=u=b;continue e}S=S.parentNode}}r=r.return}ym(function(){var U=u,P=Sc(a),I=[];e:{var B=Xm.get(e);if(B!==void 0){var q=si,he=e;switch(e){case"keypress":if(oi(a)===0)break e;case"keydown":case"keyup":q=D1;break;case"focusin":he="focus",q=Ac;break;case"focusout":he="blur",q=Ac;break;case"beforeblur":case"afterblur":q=Ac;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":q=Sm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=S1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=L1;break;case Ym:case qm:case Gm:q=N1;break;case Pm:q=B1;break;case"scroll":case"scrollend":q=b1;break;case"wheel":q=V1;break;case"copy":case"cut":case"paste":q=C1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=Em;break;case"toggle":case"beforetoggle":q=Y1}var Ee=(t&4)!==0,Ze=!Ee&&(e==="scroll"||e==="scrollend"),z=Ee?B!==null?B+"Capture":null:B;Ee=[];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=Xr(D,z),Z!=null&&Ee.push(Co(D,Z,L))),Ze)break;D=D.return}0<Ee.length&&(B=new q(B,he,null,a,P),I.push({event:B,listeners:Ee}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",B&&a!==xc&&(he=a.relatedTarget||a.fromElement)&&(Vl(he)||he[Hl]))break e;if((q||B)&&(B=P.window===P?P:(B=P.ownerDocument)?B.defaultView||B.parentWindow:window,q?(he=a.relatedTarget||a.toElement,q=U,he=he?Vl(he):null,he!==null&&(Ze=d(he),Ee=he.tag,he!==Ze||Ee!==5&&Ee!==27&&Ee!==6)&&(he=null)):(q=null,he=U),q!==he)){if(Ee=Sm,Z="onMouseLeave",z="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(Ee=Em,Z="onPointerLeave",z="onPointerEnter",D="pointer"),Ze=q==null?B:Pr(q),L=he==null?B:Pr(he),B=new Ee(Z,D+"leave",q,a,P),B.target=Ze,B.relatedTarget=L,Z=null,Vl(P)===U&&(Ee=new Ee(z,D+"enter",he,a,P),Ee.target=L,Ee.relatedTarget=Ze,Z=Ee),Ze=Z,q&&he)t:{for(Ee=$S,z=q,D=he,L=0,Z=z;Z;Z=Ee(Z))L++;Z=0;for(var we=D;we;we=Ee(we))Z++;for(;0<L-Z;)z=Ee(z),L--;for(;0<Z-L;)D=Ee(D),Z--;for(;L--;){if(z===D||D!==null&&z===D.alternate){Ee=z;break t}z=Ee(z),D=Ee(D)}Ee=null}else Ee=null;q!==null&&hg(I,B,q,Ee,!1),he!==null&&Ze!==null&&hg(I,Ze,he,Ee,!0)}}e:{if(B=U?Pr(U):window,q=B.nodeName&&B.nodeName.toLowerCase(),q==="select"||q==="input"&&B.type==="file")var $e=Mm;else if(_m(B))if(Om)$e=J1;else{$e=I1;var ve=Z1}else q=B.nodeName,!q||q.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?U&&bc(U.elementType)&&($e=Mm):$e=F1;if($e&&($e=$e(e,U))){jm(I,$e,a,P);break e}ve&&ve(e,B,U),e==="focusout"&&U&&B.type==="number"&&U.memoizedProps.value!=null&&yc(B,"number",B.value)}switch(ve=U?Pr(U):window,e){case"focusin":(_m(ve)||ve.contentEditable==="true")&&(Zl=ve,Dc=U,eo=null);break;case"focusout":eo=Dc=Zl=null;break;case"mousedown":kc=!0;break;case"contextmenu":case"mouseup":case"dragend":kc=!1,Vm(I,a,P);break;case"selectionchange":if(eS)break;case"keydown":case"keyup":Vm(I,a,P)}var Re;if(_c)e:{switch(e){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else Ql?Am(e,a)&&(ze="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ze="onCompositionStart");ze&&(Nm&&a.locale!=="ko"&&(Ql||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&Ql&&(Re=bm()):(Ea=P,Nc="value"in Ea?Ea.value:Ea.textContent,Ql=!0)),ve=Ji(U,ze),0<ve.length&&(ze=new wm(ze,e,null,a,P),I.push({event:ze,listeners:ve}),Re?ze.data=Re:(Re=Rm(a),Re!==null&&(ze.data=Re)))),(Re=G1?P1(e,a):X1(e,a))&&(ze=Ji(U,"onBeforeInput"),0<ze.length&&(ve=new wm("onBeforeInput","beforeinput",null,a,P),I.push({event:ve,listeners:ze}),ve.data=Re)),US(I,e,U,a,P)}fg(I,t)})}function Co(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ji(e,t){for(var a=t+"Capture",r=[];e!==null;){var s=e,u=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||u===null||(s=Xr(e,a),s!=null&&r.unshift(Co(e,s,u)),s=Xr(e,t),s!=null&&r.push(Co(e,s,u))),e.tag===3)return r;e=e.return}return[]}function $S(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function hg(e,t,a,r,s){for(var u=t._reactName,b=[];a!==null&&a!==r;){var S=a,R=S.alternate,U=S.stateNode;if(S=S.tag,R!==null&&R===r)break;S!==5&&S!==26&&S!==27||U===null||(R=U,s?(U=Xr(a,u),U!=null&&b.unshift(Co(a,U,R))):s||(U=Xr(a,u),U!=null&&b.push(Co(a,U,R)))),a=a.return}b.length!==0&&e.push({event:t,listeners:b})}var YS=/\r\n?/g,qS=/\u0000|\uFFFD/g;function pg(e){return(typeof e=="string"?e:""+e).replace(YS,`
50
+ `).replace(qS,"")}function gg(e,t){return t=pg(t),pg(e)===t}function Qe(e,t,a,r,s,u){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Pl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Pl(e,""+r);break;case"className":ni(e,"class",r);break;case"tabIndex":ni(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ni(e,a,r);break;case"style":gm(e,r,u);break;case"data":if(t!=="object"){ni(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=li(""+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 u=="function"&&(a==="formAction"?(t!=="input"&&Qe(e,t,"name",s.name,s,null),Qe(e,t,"formEncType",s.formEncType,s,null),Qe(e,t,"formMethod",s.formMethod,s,null),Qe(e,t,"formTarget",s.formTarget,s,null)):(Qe(e,t,"encType",s.encType,s,null),Qe(e,t,"method",s.method,s,null),Qe(e,t,"target",s.target,s,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=li(""+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=li(""+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),ti(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":ti(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=v1.get(a)||a,ti(e,a,r))}}function rd(e,t,a,r,s,u){switch(a){case"style":gm(e,r,u);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"?Pl(e,r):(typeof r=="number"||typeof r=="bigint")&&Pl(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(!im.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),u=e[$t]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,s),typeof r=="function")){typeof u!="function"&&u!==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,""):ti(e,a,r)}}}function jt(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,u;for(u in a)if(a.hasOwnProperty(u)){var b=a[u];if(b!=null)switch(u){case"src":r=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Qe(e,t,u,b,a,null)}}s&&Qe(e,t,"srcSet",a.srcSet,a,null),r&&Qe(e,t,"src",a.src,a,null);return;case"input":Oe("invalid",e);var S=u=b=s=null,R=null,U=null;for(r in a)if(a.hasOwnProperty(r)){var P=a[r];if(P!=null)switch(r){case"name":s=P;break;case"type":b=P;break;case"checked":R=P;break;case"defaultChecked":U=P;break;case"value":u=P;break;case"defaultValue":S=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(i(137,t));break;default:Qe(e,t,r,P,a,null)}}fm(e,u,S,R,U,b,s,!1);return;case"select":Oe("invalid",e),r=b=u=null;for(s in a)if(a.hasOwnProperty(s)&&(S=a[s],S!=null))switch(s){case"value":u=S;break;case"defaultValue":b=S;break;case"multiple":r=S;default:Qe(e,t,s,S,a,null)}t=u,a=b,e.multiple=!!r,t!=null?Gl(e,!!r,t,!1):a!=null&&Gl(e,!!r,a,!0);return;case"textarea":Oe("invalid",e),u=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":u=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(i(91));break;default:Qe(e,t,b,S,a,null)}hm(e,r,s,u);return;case"option":for(R in a)if(a.hasOwnProperty(R)&&(r=a[R],r!=null))switch(R){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Qe(e,t,R,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<To.length;r++)Oe(To[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:Qe(e,t,U,r,a,null)}return;default:if(bc(t)){for(P in a)a.hasOwnProperty(P)&&(r=a[P],r!==void 0&&rd(e,t,P,r,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(r=a[S],r!=null&&Qe(e,t,S,r,a,null))}function GS(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,u=null,b=null,S=null,R=null,U=null,P=null;for(q in a){var I=a[q];if(a.hasOwnProperty(q)&&I!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":R=I;default:r.hasOwnProperty(q)||Qe(e,t,q,null,r,I)}}for(var B in r){var q=r[B];if(I=a[B],r.hasOwnProperty(B)&&(q!=null||I!=null))switch(B){case"type":u=q;break;case"name":s=q;break;case"checked":U=q;break;case"defaultChecked":P=q;break;case"value":b=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(i(137,t));break;default:q!==I&&Qe(e,t,B,q,r,I)}}vc(e,b,S,R,U,P,u,s);return;case"select":q=b=S=B=null;for(u in a)if(R=a[u],a.hasOwnProperty(u)&&R!=null)switch(u){case"value":break;case"multiple":q=R;default:r.hasOwnProperty(u)||Qe(e,t,u,null,r,R)}for(s in r)if(u=r[s],R=a[s],r.hasOwnProperty(s)&&(u!=null||R!=null))switch(s){case"value":B=u;break;case"defaultValue":S=u;break;case"multiple":b=u;default:u!==R&&Qe(e,t,s,u,r,R)}t=S,a=b,r=q,B!=null?Gl(e,!!a,B,!1):!!r!=!!a&&(t!=null?Gl(e,!!a,t,!0):Gl(e,!!a,a?[]:"",!1));return;case"textarea":q=B=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:Qe(e,t,S,null,r,s)}for(b in r)if(s=r[b],u=a[b],r.hasOwnProperty(b)&&(s!=null||u!=null))switch(b){case"value":B=s;break;case"defaultValue":q=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(i(91));break;default:s!==u&&Qe(e,t,b,s,r,u)}mm(e,B,q);return;case"option":for(var he in a)if(B=a[he],a.hasOwnProperty(he)&&B!=null&&!r.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Qe(e,t,he,null,r,B)}for(R in r)if(B=r[R],q=a[R],r.hasOwnProperty(R)&&B!==q&&(B!=null||q!=null))switch(R){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Qe(e,t,R,B,r,q)}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 Ee in a)B=a[Ee],a.hasOwnProperty(Ee)&&B!=null&&!r.hasOwnProperty(Ee)&&Qe(e,t,Ee,null,r,B);for(U in r)if(B=r[U],q=a[U],r.hasOwnProperty(U)&&B!==q&&(B!=null||q!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(i(137,t));break;default:Qe(e,t,U,B,r,q)}return;default:if(bc(t)){for(var Ze in a)B=a[Ze],a.hasOwnProperty(Ze)&&B!==void 0&&!r.hasOwnProperty(Ze)&&rd(e,t,Ze,void 0,r,B);for(P in r)B=r[P],q=a[P],!r.hasOwnProperty(P)||B===q||B===void 0&&q===void 0||rd(e,t,P,B,r,q);return}}for(var z in a)B=a[z],a.hasOwnProperty(z)&&B!=null&&!r.hasOwnProperty(z)&&Qe(e,t,z,null,r,B);for(I in r)B=r[I],q=a[I],!r.hasOwnProperty(I)||B===q||B==null&&q==null||Qe(e,t,I,B,r,q)}function vg(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],u=s.transferSize,b=s.initiatorType,S=s.duration;if(u&&S&&vg(b)){for(b=0,S=s.responseEnd,r+=1;r<a.length;r++){var R=a[r],U=R.startTime;if(U>S)break;var P=R.transferSize,I=R.initiatorType;P&&vg(I)&&(R=R.responseEnd,b+=P*(R<S?1:(S-U)/(R-U)))}if(--r,t+=8*(u+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 od=null,id=null;function Wi(e){return e.nodeType===9?e:e.ownerDocument}function yg(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 bg(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 sd(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 cd=null;function XS(){var e=window.event;return e&&e.type==="popstate"?e===cd?!1:(cd=e,!0):(cd=null,!1)}var xg=typeof setTimeout=="function"?setTimeout:void 0,KS=typeof clearTimeout=="function"?clearTimeout:void 0,Sg=typeof Promise=="function"?Promise:void 0,QS=typeof queueMicrotask=="function"?queueMicrotask:typeof Sg<"u"?function(e){return Sg.resolve(null).then(e).catch(ZS)}:xg;function ZS(e){setTimeout(function(){throw e})}function Va(e){return e==="head"}function wg(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),wr(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")Ao(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ao(a);for(var u=a.firstChild;u;){var b=u.nextSibling,S=u.nodeName;u[Gr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=b}}else a==="body"&&Ao(e.ownerDocument.body);a=s}while(a);wr(t)}function Eg(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 ud(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":ud(a),pc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function IS(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[Gr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==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(u=e.getAttribute("src"),(u!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=vn(e.nextSibling),e===null)break}return null}function FS(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=vn(e.nextSibling),e===null))return null;return e}function Ng(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=vn(e.nextSibling),e===null))return null;return e}function dd(e){return e.data==="$?"||e.data==="$~"}function fd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function JS(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 vn(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 md=null;function Tg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return vn(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 Ag(e,t,a){switch(t=Wi(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 Ao(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);pc(e)}var yn=new Map,Rg=new Set;function es(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ma=$.d;$.d={f:WS,r:ew,D:tw,C:nw,L:aw,m:lw,X:ow,S:rw,M:iw};function WS(){var e=ma.f(),t=Pi();return e||t}function ew(e){var t=$l(e);t!==null&&t.tag===5&&t.type==="form"?Ph(t):ma.r(e)}var br=typeof document>"u"?null:document;function _g(e,t,a){var r=br;if(r&&typeof t=="string"&&t){var s=un(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),Rg.has(s)||(Rg.add(s),e={rel:e,crossOrigin:a,href:t},r.querySelector(s)===null&&(t=r.createElement("link"),jt(t,"link",e),Et(t),r.head.appendChild(t)))}}function tw(e){ma.D(e),_g("dns-prefetch",e,null)}function nw(e,t){ma.C(e,t),_g("preconnect",e,t)}function aw(e,t,a){ma.L(e,t,a);var r=br;if(r&&e&&t){var s='link[rel="preload"][as="'+un(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+un(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+un(a.imageSizes)+'"]')):s+='[href="'+un(e)+'"]';var u=s;switch(t){case"style":u=xr(e);break;case"script":u=Sr(e)}yn.has(u)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),yn.set(u,e),r.querySelector(s)!==null||t==="style"&&r.querySelector(Ro(u))||t==="script"&&r.querySelector(_o(u))||(t=r.createElement("link"),jt(t,"link",e),Et(t),r.head.appendChild(t)))}}function lw(e,t){ma.m(e,t);var a=br;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+un(r)+'"][href="'+un(e)+'"]',u=s;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Sr(e)}if(!yn.has(u)&&(e=g({rel:"modulepreload",href:e},t),yn.set(u,e),a.querySelector(s)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(_o(u)))return}r=a.createElement("link"),jt(r,"link",e),Et(r),a.head.appendChild(r)}}}function rw(e,t,a){ma.S(e,t,a);var r=br;if(r&&e){var s=Yl(r).hoistableStyles,u=xr(e);t=t||"default";var b=s.get(u);if(!b){var S={loading:0,preload:null};if(b=r.querySelector(Ro(u)))S.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=yn.get(u))&&hd(e,a);var R=b=r.createElement("link");Et(R),jt(R,"link",e),R._p=new Promise(function(U,P){R.onload=U,R.onerror=P}),R.addEventListener("load",function(){S.loading|=1}),R.addEventListener("error",function(){S.loading|=2}),S.loading|=4,ts(b,t,r)}b={type:"stylesheet",instance:b,count:1,state:S},s.set(u,b)}}}function ow(e,t){ma.X(e,t);var a=br;if(a&&e){var r=Yl(a).hoistableScripts,s=Sr(e),u=r.get(s);u||(u=a.querySelector(_o(s)),u||(e=g({src:e,async:!0},t),(t=yn.get(s))&&pd(e,t),u=a.createElement("script"),Et(u),jt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(s,u))}}function iw(e,t){ma.M(e,t);var a=br;if(a&&e){var r=Yl(a).hoistableScripts,s=Sr(e),u=r.get(s);u||(u=a.querySelector(_o(s)),u||(e=g({src:e,async:!0,type:"module"},t),(t=yn.get(s))&&pd(e,t),u=a.createElement("script"),Et(u),jt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(s,u))}}function jg(e,t,a,r){var s=(s=oe.current)?es(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=xr(a.href),a=Yl(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=xr(a.href);var u=Yl(s).hoistableStyles,b=u.get(e);if(b||(s=s.ownerDocument||s,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,b),(u=s.querySelector(Ro(e)))&&!u._p&&(b.instance=u,b.state.loading=5),yn.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},yn.set(e,a),u||sw(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=Sr(a),a=Yl(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 xr(e){return'href="'+un(e)+'"'}function Ro(e){return'link[rel="stylesheet"]['+e+"]"}function Mg(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function sw(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}),jt(t,"link",a),Et(t),e.head.appendChild(t))}function Sr(e){return'[src="'+un(e)+'"]'}function _o(e){return"script[async]"+e}function Og(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+un(a.href)+'"]');if(r)return t.instance=r,Et(r),r;var s=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Et(r),jt(r,"style",s),ts(r,a.precedence,e),t.instance=r;case"stylesheet":s=xr(a.href);var u=e.querySelector(Ro(s));if(u)return t.state.loading|=4,t.instance=u,Et(u),u;r=Mg(a),(s=yn.get(s))&&hd(r,s),u=(e.ownerDocument||e).createElement("link"),Et(u);var b=u;return b._p=new Promise(function(S,R){b.onload=S,b.onerror=R}),jt(u,"link",r),t.state.loading|=4,ts(u,a.precedence,e),t.instance=u;case"script":return u=Sr(a.src),(s=e.querySelector(_o(u)))?(t.instance=s,Et(s),s):(r=a,(s=yn.get(u))&&(r=g({},a),pd(r,s)),e=e.ownerDocument||e,s=e.createElement("script"),Et(s),jt(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,ts(r,a.precedence,e));return t.instance}function ts(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=r.length?r[r.length-1]:null,u=s,b=0;b<r.length;b++){var S=r[b];if(S.dataset.precedence===t)u=S;else if(u!==s)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function hd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function pd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ns=null;function Dg(e,t,a){if(ns===null){var r=new Map,s=ns=new Map;s.set(a,r)}else s=ns,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 u=a[s];if(!(u[Gr]||u[Ct]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var b=u.getAttribute(t)||"";b=e+b;var S=r.get(b);S?S.push(u):r.set(b,[u])}}return r}function kg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function cw(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 zg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function uw(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=xr(r.href),u=t.querySelector(Ro(s));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=as.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,Et(u);return}u=t.ownerDocument||t,r=Mg(r),(s=yn.get(s))&&hd(r,s),u=u.createElement("link"),Et(u);var b=u;b._p=new Promise(function(S,R){b.onload=S,b.onerror=R}),jt(u,"link",r),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=as.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var gd=0;function dw(e,t){return e.stylesheets&&e.count===0&&rs(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&rs(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&gd===0&&(gd=62500*PS());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&rs(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>gd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(s)}}:null}function as(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ls=null;function rs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ls=new Map,t.forEach(fw,e),ls=null,as.call(e))}function fw(e,t){if(!(t.state.loading&4)){var a=ls.get(e);if(a)var r=a.get(null);else{a=new Map,ls.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<s.length;u++){var b=s[u];(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"),u=a.get(b)||r,u===r&&a.set(null,s),a.set(b,s),this.count++,r=as.bind(this),s.addEventListener("load",r),s.addEventListener("error",r),u?u.parentNode.insertBefore(s,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var jo={$$typeof:M,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function mw(e,t,a,r,s,u,b,S,R){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=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=u,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Lg(e,t,a,r,s,u,b,S,R,U,P,I){return e=new mw(e,t,a,b,R,U,P,I,S),t=1,u===!0&&(t|=24),u=Jt(3,null,null,t),e.current=u,u.stateNode=e,t=Zc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:r,isDehydrated:a,cache:t},Wc(u),e}function Ug(e){return e?(e=Jl,e):Jl}function Bg(e,t,a,r,s,u){s=Ug(s),r.context===null?r.context=s:r.pendingContext=s,r=_a(t),r.payload={element:a},u=u===void 0?null:u,u!==null&&(r.callback=u),a=ja(e,r,t),a!==null&&(Kt(a,e,t),io(a,e,t))}function Hg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function vd(e,t){Hg(e,t),(e=e.alternate)&&Hg(e,t)}function Vg(e){if(e.tag===13||e.tag===31){var t=hl(e,67108864);t!==null&&Kt(t,e,67108864),vd(e,67108864)}}function $g(e){if(e.tag===13||e.tag===31){var t=an();t=Bl(t);var a=hl(e,t);a!==null&&Kt(a,e,t),vd(e,t)}}var os=!0;function hw(e,t,a,r){var s=O.T;O.T=null;var u=$.p;try{$.p=2,yd(e,t,a,r)}finally{$.p=u,O.T=s}}function pw(e,t,a,r){var s=O.T;O.T=null;var u=$.p;try{$.p=8,yd(e,t,a,r)}finally{$.p=u,O.T=s}}function yd(e,t,a,r){if(os){var s=bd(r);if(s===null)ld(e,t,r,is,a),qg(e,r);else if(vw(s,e,t,a,r))r.stopPropagation();else if(qg(e,r),t&4&&-1<gw.indexOf(e)){for(;s!==null;){var u=$l(s);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var b=Dn(u.pendingLanes);if(b!==0){var S=u;for(S.pendingLanes|=2,S.entangledLanes|=2;b;){var R=1<<31-Mt(b);S.entanglements[1]|=R,b&=~R}Un(u),(qe&6)===0&&(qi=xe()+500,No(0))}}break;case 31:case 13:S=hl(u,2),S!==null&&Kt(S,u,2),Pi(),vd(u,2)}if(u=bd(r),u===null&&ld(e,t,r,is,a),u===s)break;s=u}s!==null&&r.stopPropagation()}else ld(e,t,r,null,a)}}function bd(e){return e=Sc(e),xd(e)}var is=null;function xd(e){if(is=null,e=Vl(e),e!==null){var t=d(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=m(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 is=e,null}function Yg(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(et()){case Xe:return 2;case Tt:return 8;case It:case ol:return 32;case sn:return 268435456;default:return 32}default:return 32}}var Sd=!1,$a=null,Ya=null,qa=null,Mo=new Map,Oo=new Map,Ga=[],gw="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 qg(e,t){switch(e){case"focusin":case"focusout":$a=null;break;case"dragenter":case"dragleave":Ya=null;break;case"mouseover":case"mouseout":qa=null;break;case"pointerover":case"pointerout":Mo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oo.delete(t.pointerId)}}function Do(e,t,a,r,s,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:u,targetContainers:[s]},t!==null&&(t=$l(t),t!==null&&Vg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function vw(e,t,a,r,s){switch(t){case"focusin":return $a=Do($a,e,t,a,r,s),!0;case"dragenter":return Ya=Do(Ya,e,t,a,r,s),!0;case"mouseover":return qa=Do(qa,e,t,a,r,s),!0;case"pointerover":var u=s.pointerId;return Mo.set(u,Do(Mo.get(u)||null,e,t,a,r,s)),!0;case"gotpointercapture":return u=s.pointerId,Oo.set(u,Do(Oo.get(u)||null,e,t,a,r,s)),!0}return!1}function Gg(e){var t=Vl(e.target);if(t!==null){var a=d(t);if(a!==null){if(t=a.tag,t===13){if(t=m(a),t!==null){e.blockedOn=t,lm(e.priority,function(){$g(a)});return}}else if(t===31){if(t=h(a),t!==null){e.blockedOn=t,lm(e.priority,function(){$g(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 ss(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=bd(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);xc=r,a.target.dispatchEvent(r),xc=null}else return t=$l(a),t!==null&&Vg(t),e.blockedOn=a,!1;t.shift()}return!0}function Pg(e,t,a){ss(e)&&a.delete(t)}function yw(){Sd=!1,$a!==null&&ss($a)&&($a=null),Ya!==null&&ss(Ya)&&(Ya=null),qa!==null&&ss(qa)&&(qa=null),Mo.forEach(Pg),Oo.forEach(Pg)}function cs(e,t){e.blockedOn===t&&(e.blockedOn=null,Sd||(Sd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,yw)))}var us=null;function Xg(e){us!==e&&(us=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){us===e&&(us=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(xd(r||a)===null)continue;break}var u=$l(a);u!==null&&(e.splice(t,3),t-=3,bu(u,{pending:!0,data:s,method:a.method,action:r},r,s))}}))}function wr(e){function t(R){return cs(R,e)}$a!==null&&cs($a,e),Ya!==null&&cs(Ya,e),qa!==null&&cs(qa,e),Mo.forEach(t),Oo.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);)Gg(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],u=a[r+1],b=s[$t]||null;if(typeof u=="function")b||Xg(a);else if(b){var S=null;if(u&&u.hasAttribute("formAction")){if(s=u,b=u[$t]||null)S=b.formAction;else if(xd(s)!==null)continue}else S=b.action;typeof S=="function"?a[r+1]=S:(a.splice(r,3),r-=3),Xg(a)}}}function Kg(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.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 u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.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 wd(e){this._internalRoot=e}ds.prototype.render=wd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,r=an();Bg(a,r,e,t,null,null)},ds.prototype.unmount=wd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bg(e.current,2,null,e,null,null),Pi(),t[Hl]=null}};function ds(e){this._internalRoot=e}ds.prototype.unstable_scheduleHydration=function(e){if(e){var t=mc();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&&Gg(e)}};var Qg=l.version;if(Qg!=="19.2.4")throw Error(i(527,Qg,"19.2.4"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var bw={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fs.isDisabled&&fs.supportsFiber)try{il=fs.inject(bw),Lt=fs}catch{}}return zo.createRoot=function(e,t){if(!c(e))throw Error(i(299));var a=!1,r="",s=tp,u=np,b=ap;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&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=Lg(e,1,!1,null,null,a,r,null,s,u,b,Kg),e[Hl]=t.current,ad(e),new wd(t)},zo.hydrateRoot=function(e,t,a){if(!c(e))throw Error(i(299));var r=!1,s="",u=tp,b=np,S=ap,R=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(R=a.formState)),t=Lg(e,1,!0,t,a??null,r,s,R,u,b,S,Kg),t.context=Ug(null),a=t.current,r=an(),r=Bl(r),s=_a(r),s.callback=null,ja(a,s,r),a=r,t.current.lanes=a,it(t,a),Un(t),e[Hl]=t.current,ad(e),new ds(t)},zo.version="19.2.4",zo}var lv;function _w(){if(lv)return Td.exports;lv=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(),Td.exports=Rw(),Td.exports}var jw=_w();const Mw="modulepreload",Ow=function(n){return"/"+n},rv={},c0=function(l,o,i){let c=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(x=>Promise.resolve(x).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};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"));c=m(o.map(p=>{if(p=Ow(p),p in rv)return;rv[p]=!0;const x=p.endsWith(".css"),g=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const w=document.createElement("link");if(w.rel=x?"stylesheet":Mw,x||(w.as="script"),w.crossOrigin="",w.href=p,y&&w.setAttribute("nonce",y),document.head.appendChild(w),x)return new Promise((N,T)=>{w.addEventListener("load",N),w.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=m,window.dispatchEvent(h),!h.defaultPrevented)throw m}return c.then(m=>{for(const h of m||[])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 ov="popstate";function iv(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function Dw(n={}){function l(i,c){var p;let d=(p=c.state)==null?void 0:p.masked,{pathname:m,search:h,hash:y}=d||i.location;return Id("",{pathname:m,search:h,hash:y},c.state&&c.state.usr||null,c.state&&c.state.key||"default",d?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function o(i,c){return typeof c=="string"?c:Po(c)}return zw(l,o,null,n)}function rt(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function Rn(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function kw(){return Math.random().toString(36).substring(2,10)}function sv(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 Id(n,l,o=null,i,c){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?Lr(l):l,state:o,key:l&&l.key||i||kw(),unstable_mask:c}}function Po({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 Lr(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 zw(n,l,o,i={}){let{window:c=document.defaultView,v5Compat:d=!1}=i,m=c.history,h="POP",y=null,p=x();p==null&&(p=0,m.replaceState({...m.state,idx:p},""));function x(){return(m.state||{idx:null}).idx}function g(){h="POP";let C=x(),A=C==null?null:C-p;p=C,y&&y({action:h,location:E.location,delta:A})}function w(C,A){h="PUSH";let _=iv(C)?C:Id(E.location,C,A);p=x()+1;let M=sv(_,p),k=E.createHref(_.unstable_mask||_);try{m.pushState(M,"",k)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;c.location.assign(k)}d&&y&&y({action:h,location:E.location,delta:1})}function N(C,A){h="REPLACE";let _=iv(C)?C:Id(E.location,C,A);p=x();let M=sv(_,p),k=E.createHref(_.unstable_mask||_);m.replaceState(M,"",k),d&&y&&y({action:h,location:E.location,delta:0})}function T(C){return Lw(C)}let E={get action(){return h},get location(){return n(c,m)},listen(C){if(y)throw new Error("A history only accepts one active listener");return c.addEventListener(ov,g),y=C,()=>{c.removeEventListener(ov,g),y=null}},createHref(C){return l(c,C)},createURL:T,encodeLocation(C){let A=T(C);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:w,replace:N,go(C){return m.go(C)}};return E}function Lw(n,l=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),rt(o,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:Po(n);return i=i.replace(/ $/,"%20"),!l&&i.startsWith("//")&&(i=o+i),new URL(i,o)}function u0(n,l,o="/"){return Uw(n,l,o,!1)}function Uw(n,l,o,i){let c=typeof l=="string"?Lr(l):l,d=pa(c.pathname||"/",o);if(d==null)return null;let m=d0(n);Bw(m);let h=null;for(let y=0;h==null&&y<m.length;++y){let p=Zw(d);h=Kw(m[y],p,i)}return h}function d0(n,l=[],o=[],i="",c=!1){let d=(m,h,y=c,p)=>{let x={relativePath:p===void 0?m.path||"":p,caseSensitive:m.caseSensitive===!0,childrenIndex:h,route:m};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(i)&&y)return;rt(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 g=Xn([i,x.relativePath]),w=o.concat(x);m.children&&m.children.length>0&&(rt(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),d0(m.children,l,w,g,y)),!(m.path==null&&!m.index)&&l.push({path:g,score:Pw(g,m.index),routesMeta:w})};return n.forEach((m,h)=>{var y;if(m.path===""||!((y=m.path)!=null&&y.includes("?")))d(m,h);else for(let p of f0(m.path))d(m,h,!0,p)}),l}function f0(n){let l=n.split("/");if(l.length===0)return[];let[o,...i]=l,c=o.endsWith("?"),d=o.replace(/\?$/,"");if(i.length===0)return c?[d,""]:[d];let m=f0(i.join("/")),h=[];return h.push(...m.map(y=>y===""?d:[d,y].join("/"))),c&&h.push(...m),h.map(y=>n.startsWith("/")&&y===""?"/":y)}function Bw(n){n.sort((l,o)=>l.score!==o.score?o.score-l.score:Xw(l.routesMeta.map(i=>i.childrenIndex),o.routesMeta.map(i=>i.childrenIndex)))}var Hw=/^:[\w-]+$/,Vw=3,$w=2,Yw=1,qw=10,Gw=-2,cv=n=>n==="*";function Pw(n,l){let o=n.split("/"),i=o.length;return o.some(cv)&&(i+=Gw),l&&(i+=$w),o.filter(c=>!cv(c)).reduce((c,d)=>c+(Hw.test(d)?Vw:d===""?Yw:qw),i)}function Xw(n,l){return n.length===l.length&&n.slice(0,-1).every((i,c)=>i===l[c])?n[n.length-1]-l[l.length-1]:0}function Kw(n,l,o=!1){let{routesMeta:i}=n,c={},d="/",m=[];for(let h=0;h<i.length;++h){let y=i[h],p=h===i.length-1,x=d==="/"?l:l.slice(d.length)||"/",g=Ms({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},x),w=y.route;if(!g&&p&&o&&!i[i.length-1].route.index&&(g=Ms({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},x)),!g)return null;Object.assign(c,g.params),m.push({params:c,pathname:Xn([d,g.pathname]),pathnameBase:Ww(Xn([d,g.pathnameBase])),route:w}),g.pathnameBase!=="/"&&(d=Xn([d,g.pathnameBase]))}return m}function Ms(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[o,i]=Qw(n.path,n.caseSensitive,n.end),c=l.match(o);if(!c)return null;let d=c[0],m=d.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:i.reduce((p,{paramName:x,isOptional:g},w)=>{if(x==="*"){let T=h[w]||"";m=d.slice(0,d.length-T.length).replace(/(.)\/+$/,"$1")}const N=h[w];return g&&!N?p[x]=void 0:p[x]=(N||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:m,pattern:n}}function Qw(n,l=!1,o=!0){Rn(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=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,h,y,p,x)=>{if(i.push({paramName:h,isOptional:y!=null}),y){let g=x.charAt(p+m.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(i.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,l?void 0:"i"),i]}function Zw(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Rn(!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 Iw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Fw(n,l="/"){let{pathname:o,search:i="",hash:c=""}=typeof n=="string"?Lr(n):n,d;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?d=uv(o.substring(1),"/"):d=uv(o,l)):d=l,{pathname:d,search:e2(i),hash:t2(c)}}function uv(n,l){let o=l.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?o.length>1&&o.pop():c!=="."&&o.push(c)}),o.length>1?o.join("/"):"/"}function _d(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 Jw(n){return n.filter((l,o)=>o===0||l.route.path&&l.route.path.length>0)}function bf(n){let l=Jw(n);return l.map((o,i)=>i===l.length-1?o.pathname:o.pathnameBase)}function Fs(n,l,o,i=!1){let c;typeof n=="string"?c=Lr(n):(c={...n},rt(!c.pathname||!c.pathname.includes("?"),_d("?","pathname","search",c)),rt(!c.pathname||!c.pathname.includes("#"),_d("#","pathname","hash",c)),rt(!c.search||!c.search.includes("#"),_d("#","search","hash",c)));let d=n===""||c.pathname==="",m=d?"/":c.pathname,h;if(m==null)h=o;else{let g=l.length-1;if(!i&&m.startsWith("..")){let w=m.split("/");for(;w[0]==="..";)w.shift(),g-=1;c.pathname=w.join("/")}h=g>=0?l[g]:"/"}let y=Fw(c,h),p=m&&m!=="/"&&m.endsWith("/"),x=(d||m===".")&&o.endsWith("/");return!y.pathname.endsWith("/")&&(p||x)&&(y.pathname+="/"),y}var Xn=n=>n.join("/").replace(/\/\/+/g,"/"),Ww=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),e2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,t2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,n2=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 a2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function l2(n){return n.map(l=>l.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var m0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function h0(n,l){let o=n;if(typeof o!="string"||!Iw.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let i=o,c=!1;if(m0)try{let d=new URL(window.location.href),m=o.startsWith("//")?new URL(d.protocol+o):new URL(o),h=pa(m.pathname,l);m.origin===d.origin&&h!=null?o=h+m.search+m.hash:c=!0}catch{Rn(!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:c,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var p0=["POST","PUT","PATCH","DELETE"];new Set(p0);var r2=["GET",...p0];new Set(r2);var Ur=v.createContext(null);Ur.displayName="DataRouter";var Js=v.createContext(null);Js.displayName="DataRouterState";var o2=v.createContext(!1),g0=v.createContext({isTransitioning:!1});g0.displayName="ViewTransition";var i2=v.createContext(new Map);i2.displayName="Fetchers";var s2=v.createContext(null);s2.displayName="Await";var on=v.createContext(null);on.displayName="Navigation";var Zo=v.createContext(null);Zo.displayName="Location";var xn=v.createContext({outlet:null,matches:[],isDataRoute:!1});xn.displayName="Route";var xf=v.createContext(null);xf.displayName="RouteError";var v0="REACT_ROUTER_ERROR",c2="REDIRECT",u2="ROUTE_ERROR_RESPONSE";function d2(n){if(n.startsWith(`${v0}:${c2}:{`))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 f2(n){if(n.startsWith(`${v0}:${u2}:{`))try{let l=JSON.parse(n.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new n2(l.status,l.statusText,l.data)}catch{}}function m2(n,{relative:l}={}){rt(Br(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:i}=v.useContext(on),{hash:c,pathname:d,search:m}=Io(n,{relative:l}),h=d;return o!=="/"&&(h=d==="/"?o:Xn([o,d])),i.createHref({pathname:h,search:m,hash:c})}function Br(){return v.useContext(Zo)!=null}function Qn(){return rt(Br(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Zo).location}var y0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function b0(n){v.useContext(on).static||v.useLayoutEffect(n)}function x0(){let{isDataRoute:n}=v.useContext(xn);return n?A2():h2()}function h2(){rt(Br(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(Ur),{basename:l,navigator:o}=v.useContext(on),{matches:i}=v.useContext(xn),{pathname:c}=Qn(),d=JSON.stringify(bf(i)),m=v.useRef(!1);return b0(()=>{m.current=!0}),v.useCallback((y,p={})=>{if(Rn(m.current,y0),!m.current)return;if(typeof y=="number"){o.go(y);return}let x=Fs(y,JSON.parse(d),c,p.relative==="path");n==null&&l!=="/"&&(x.pathname=x.pathname==="/"?l:Xn([l,x.pathname])),(p.replace?o.replace:o.push)(x,p.state,p)},[l,o,d,c,n])}var S0=v.createContext(null);function ij(){return v.useContext(S0)}function p2(n){let l=v.useContext(xn).outlet;return v.useMemo(()=>l&&v.createElement(S0.Provider,{value:n},l),[l,n])}function sj(){let{matches:n}=v.useContext(xn),l=n[n.length-1];return l?l.params:{}}function Io(n,{relative:l}={}){let{matches:o}=v.useContext(xn),{pathname:i}=Qn(),c=JSON.stringify(bf(o));return v.useMemo(()=>Fs(n,JSON.parse(c),i,l==="path"),[n,c,i,l])}function g2(n,l){return w0(n,l)}function w0(n,l,o){var C;rt(Br(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=v.useContext(on),{matches:c}=v.useContext(xn),d=c[c.length-1],m=d?d.params:{},h=d?d.pathname:"/",y=d?d.pathnameBase:"/",p=d&&d.route;{let A=p&&p.path||"";N0(h,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
60
+
61
+ Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let x=Qn(),g;if(l){let A=typeof l=="string"?Lr(l):l;rt(y==="/"||((C=A.pathname)==null?void 0:C.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 "${A.pathname}" was given in the \`location\` prop.`),g=A}else g=x;let w=g.pathname||"/",N=w;if(y!=="/"){let A=y.replace(/^\//,"").split("/");N="/"+w.replace(/^\//,"").split("/").slice(A.length).join("/")}let T=u0(n,{pathname:N});Rn(p||T!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Rn(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.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=S2(T&&T.map(A=>Object.assign({},A,{params:Object.assign({},m,A.params),pathname:Xn([y,i.encodeLocation?i.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?y:Xn([y,i.encodeLocation?i.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),c,o);return l&&E?v.createElement(Zo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},E):E}function v2(){let n=C2(),l=a2(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)",c={padding:"0.5rem",backgroundColor:i},d={padding:"2px 4px",backgroundColor:i},m=null;return console.error("Error handled by React Router default ErrorBoundary:",n),m=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:c},o):null,m)}var y2=v.createElement(v2,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=f2(n.digest);o&&(n=o)}let l=n!==void 0?v.createElement(xn.Provider,{value:this.props.routeContext},v.createElement(xf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?v.createElement(b2,{error:n},l):l}};E0.contextType=o2;var jd=new WeakMap;function b2({children:n,error:l}){let{basename:o}=v.useContext(on);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let i=d2(l.digest);if(i){let c=jd.get(l);if(c)throw c;let d=h0(i.location,o);if(m0&&!jd.get(l))if(d.isExternal||i.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:i.replace}));throw jd.set(l,m),m}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return n}function x2({routeContext:n,match:l,children:o}){let i=v.useContext(Ur);return i&&i.static&&i.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=l.route.id),v.createElement(xn.Provider,{value:n},o)}function S2(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 c=n,d=i==null?void 0:i.errors;if(d!=null){let x=c.findIndex(g=>g.route.id&&(d==null?void 0:d[g.route.id])!==void 0);rt(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),c=c.slice(0,Math.min(c.length,x+1))}let m=!1,h=-1;if(o&&i){m=i.renderFallback;for(let x=0;x<c.length;x++){let g=c[x];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=x),g.route.id){let{loaderData:w,errors:N}=i,T=g.route.loader&&!w.hasOwnProperty(g.route.id)&&(!N||N[g.route.id]===void 0);if(g.route.lazy||T){o.isStatic&&(m=!0),h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}}let y=o==null?void 0:o.onError,p=i&&y?(x,g)=>{var w,N;y(x,{location:i.location,params:((N=(w=i.matches)==null?void 0:w[0])==null?void 0:N.params)??{},unstable_pattern:l2(i.matches),errorInfo:g})}:void 0;return c.reduceRight((x,g,w)=>{let N,T=!1,E=null,C=null;i&&(N=d&&g.route.id?d[g.route.id]:void 0,E=g.route.errorElement||y2,m&&(h<0&&w===0?(N0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,C=null):h===w&&(T=!0,C=g.route.hydrateFallbackElement||null)));let A=l.concat(c.slice(0,w+1)),_=()=>{let M;return N?M=E:T?M=C:g.route.Component?M=v.createElement(g.route.Component,null):g.route.element?M=g.route.element:M=x,v.createElement(x2,{match:g,routeContext:{outlet:x,matches:A,isDataRoute:i!=null},children:M})};return i&&(g.route.ErrorBoundary||g.route.errorElement||w===0)?v.createElement(E0,{location:i.location,revalidation:i.revalidation,component:E,error:N,children:_(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):_()},null)}function Sf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function w2(n){let l=v.useContext(Ur);return rt(l,Sf(n)),l}function E2(n){let l=v.useContext(Js);return rt(l,Sf(n)),l}function N2(n){let l=v.useContext(xn);return rt(l,Sf(n)),l}function wf(n){let l=N2(n),o=l.matches[l.matches.length-1];return rt(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function T2(){return wf("useRouteId")}function C2(){var i;let n=v.useContext(xf),l=E2("useRouteError"),o=wf("useRouteError");return n!==void 0?n:(i=l.errors)==null?void 0:i[o]}function A2(){let{router:n}=w2("useNavigate"),l=wf("useNavigate"),o=v.useRef(!1);return b0(()=>{o.current=!0}),v.useCallback(async(c,d={})=>{Rn(o.current,y0),o.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:l,...d}))},[n,l])}var dv={};function N0(n,l,o){!l&&!dv[n]&&(dv[n]=!0,Rn(!1,o))}v.memo(R2);function R2({routes:n,future:l,state:o,isStatic:i,onError:c}){return w0(n,void 0,{state:o,isStatic:i,onError:c})}function fv({to:n,replace:l,state:o,relative:i}){rt(Br(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=v.useContext(on);Rn(!c,"<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(xn),{pathname:m}=Qn(),h=x0(),y=Fs(n,bf(d),m,i==="path"),p=JSON.stringify(y);return v.useEffect(()=>{h(JSON.parse(p),{replace:l,state:o,relative:i})},[h,p,i,l,o]),null}function _2(n){return p2(n.context)}function jl(n){rt(!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 j2({basename:n="/",children:l=null,location:o,navigationType:i="POP",navigator:c,static:d=!1,unstable_useTransitions:m}){rt(!Br(),"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:c,static:d,unstable_useTransitions:m,future:{}}),[h,c,d,m]);typeof o=="string"&&(o=Lr(o));let{pathname:p="/",search:x="",hash:g="",state:w=null,key:N="default",unstable_mask:T}=o,E=v.useMemo(()=>{let C=pa(p,h);return C==null?null:{location:{pathname:C,search:x,hash:g,state:w,key:N,unstable_mask:T},navigationType:i}},[h,p,x,g,w,N,i,T]);return Rn(E!=null,`<Router basename="${h}"> is not able to match the URL "${p}${x}${g}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:v.createElement(on.Provider,{value:y},v.createElement(Zo.Provider,{children:l,value:E}))}function M2({children:n,location:l}){return g2(Fd(n),l)}function Fd(n,l=[]){let o=[];return v.Children.forEach(n,(i,c)=>{if(!v.isValidElement(i))return;let d=[...l,c];if(i.type===v.Fragment){o.push.apply(o,Fd(i.props.children,d));return}rt(i.type===jl,`[${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>`),rt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let m={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&&(m.children=Fd(i.props.children,d)),o.push(m)}),o}var Ns="get",Ts="application/x-www-form-urlencoded";function Ws(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function O2(n){return Ws(n)&&n.tagName.toLowerCase()==="button"}function D2(n){return Ws(n)&&n.tagName.toLowerCase()==="form"}function k2(n){return Ws(n)&&n.tagName.toLowerCase()==="input"}function z2(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function L2(n,l){return n.button===0&&(!l||l==="_self")&&!z2(n)}var ms=null;function U2(){if(ms===null)try{new FormData(document.createElement("form"),0),ms=!1}catch{ms=!0}return ms}var B2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Md(n){return n!=null&&!B2.has(n)?(Rn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ts}"`),null):n}function H2(n,l){let o,i,c,d,m;if(D2(n)){let h=n.getAttribute("action");i=h?pa(h,l):null,o=n.getAttribute("method")||Ns,c=Md(n.getAttribute("enctype"))||Ts,d=new FormData(n)}else if(O2(n)||k2(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")||Ns,c=Md(n.getAttribute("formenctype"))||Md(h.getAttribute("enctype"))||Ts,d=new FormData(h,n),!U2()){let{name:p,type:x,value:g}=n;if(x==="image"){let w=p?`${p}.`:"";d.append(`${w}x`,"0"),d.append(`${w}y`,"0")}else p&&d.append(p,g)}}else{if(Ws(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Ns,i=null,c=Ts,m=n}return d&&c==="text/plain"&&(m=d,d=void 0),{action:i,method:o.toLowerCase(),encType:c,formData:d,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ef(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function V2(n,l,o,i){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return o?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${i}`:c.pathname=`${c.pathname}.${i}`:c.pathname==="/"?c.pathname=`_root.${i}`:l&&pa(c.pathname,l)==="/"?c.pathname=`${l.replace(/\/$/,"")}/_root.${i}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${i}`,c}async function $2(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 Y2(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 q2(n,l,o){let i=await Promise.all(n.map(async c=>{let d=l.routes[c.route.id];if(d){let m=await $2(d,o);return m.links?m.links():[]}return[]}));return K2(i.flat(1).filter(Y2).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function mv(n,l,o,i,c,d){let m=(y,p)=>o[p]?y.route.id!==o[p].route.id:!0,h=(y,p)=>{var x;return o[p].pathname!==y.pathname||((x=o[p].route.path)==null?void 0:x.endsWith("*"))&&o[p].params["*"]!==y.params["*"]};return d==="assets"?l.filter((y,p)=>m(y,p)||h(y,p)):d==="data"?l.filter((y,p)=>{var g;let x=i.routes[y.route.id];if(!x||!x.hasLoader)return!1;if(m(y,p)||h(y,p))return!0;if(y.route.shouldRevalidate){let w=y.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((g=o[0])==null?void 0:g.params)||{},nextUrl:new URL(n,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function G2(n,l,{includeHydrateFallback:o}={}){return P2(n.map(i=>{let c=l.routes[i.route.id];if(!c)return[];let d=[c.module];return c.clientActionModule&&(d=d.concat(c.clientActionModule)),c.clientLoaderModule&&(d=d.concat(c.clientLoaderModule)),o&&c.hydrateFallbackModule&&(d=d.concat(c.hydrateFallbackModule)),c.imports&&(d=d.concat(c.imports)),d}).flat(1))}function P2(n){return[...new Set(n)]}function X2(n){let l={},o=Object.keys(n).sort();for(let i of o)l[i]=n[i];return l}function K2(n,l){let o=new Set;return new Set(l),n.reduce((i,c)=>{let d=JSON.stringify(X2(c));return o.has(d)||(o.add(d),i.push({key:d,link:c})),i},[])}function T0(){let n=v.useContext(Ur);return Ef(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function Q2(){let n=v.useContext(Js);return Ef(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Nf=v.createContext(void 0);Nf.displayName="FrameworkContext";function C0(){let n=v.useContext(Nf);return Ef(n,"You must render this element inside a <HydratedRouter> element"),n}function Z2(n,l){let o=v.useContext(Nf),[i,c]=v.useState(!1),[d,m]=v.useState(!1),{onFocus:h,onBlur:y,onMouseEnter:p,onMouseLeave:x,onTouchStart:g}=l,w=v.useRef(null);v.useEffect(()=>{if(n==="render"&&m(!0),n==="viewport"){let E=A=>{A.forEach(_=>{m(_.isIntersecting)})},C=new IntersectionObserver(E,{threshold:.5});return w.current&&C.observe(w.current),()=>{C.disconnect()}}},[n]),v.useEffect(()=>{if(i){let E=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(E)}}},[i]);let N=()=>{c(!0)},T=()=>{c(!1),m(!1)};return o?n!=="intent"?[d,w,{}]:[d,w,{onFocus:Lo(h,N),onBlur:Lo(y,T),onMouseEnter:Lo(p,N),onMouseLeave:Lo(x,T),onTouchStart:Lo(g,N)}]:[!1,w,{}]}function Lo(n,l){return o=>{n&&n(o),o.defaultPrevented||l(o)}}function I2({page:n,...l}){let{router:o}=T0(),i=v.useMemo(()=>u0(o.routes,n,o.basename),[o.routes,n,o.basename]);return i?v.createElement(J2,{page:n,matches:i,...l}):null}function F2(n){let{manifest:l,routeModules:o}=C0(),[i,c]=v.useState([]);return v.useEffect(()=>{let d=!1;return q2(n,l,o).then(m=>{d||c(m)}),()=>{d=!0}},[n,l,o]),i}function J2({page:n,matches:l,...o}){let i=Qn(),{future:c,manifest:d,routeModules:m}=C0(),{basename:h}=T0(),{loaderData:y,matches:p}=Q2(),x=v.useMemo(()=>mv(n,l,p,d,i,"data"),[n,l,p,d,i]),g=v.useMemo(()=>mv(n,l,p,d,i,"assets"),[n,l,p,d,i]),w=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,C=!1;if(l.forEach(_=>{var k;let M=d.routes[_.route.id];!M||!M.hasLoader||(!x.some(Y=>Y.route.id===_.route.id)&&_.route.id in y&&((k=m[_.route.id])!=null&&k.shouldRevalidate)||M.hasClientLoader?C=!0:E.add(_.route.id))}),E.size===0)return[];let A=V2(n,h,c.unstable_trailingSlashAwareDataRequests,"data");return C&&E.size>0&&A.searchParams.set("_routes",l.filter(_=>E.has(_.route.id)).map(_=>_.route.id).join(",")),[A.pathname+A.search]},[h,c.unstable_trailingSlashAwareDataRequests,y,i,d,x,l,n,m]),N=v.useMemo(()=>G2(g,d),[g,d]),T=F2(g);return v.createElement(v.Fragment,null,w.map(E=>v.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...o})),N.map(E=>v.createElement("link",{key:E,rel:"modulepreload",href:E,...o})),T.map(({key:E,link:C})=>v.createElement("link",{key:E,nonce:o.nonce,...C,crossOrigin:C.crossOrigin??o.crossOrigin})))}function W2(...n){return l=>{n.forEach(o=>{typeof o=="function"?o(l):o!=null&&(o.current=l)})}}var eE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{eE&&(window.__reactRouterVersion="7.13.2")}catch{}function tE({basename:n,children:l,unstable_useTransitions:o,window:i}){let c=v.useRef();c.current==null&&(c.current=Dw({window:i,v5Compat:!0}));let d=c.current,[m,h]=v.useState({action:d.action,location:d.location}),y=v.useCallback(p=>{o===!1?h(p):v.startTransition(()=>h(p))},[o]);return v.useLayoutEffect(()=>d.listen(y),[d,y]),v.createElement(j2,{basename:n,children:l,location:m.location,navigationType:m.action,navigator:d,unstable_useTransitions:o})}var A0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,R0=v.forwardRef(function({onClick:l,discover:o="render",prefetch:i="none",relative:c,reloadDocument:d,replace:m,unstable_mask:h,state:y,target:p,to:x,preventScrollReset:g,viewTransition:w,unstable_defaultShouldRevalidate:N,...T},E){let{basename:C,navigator:A,unstable_useTransitions:_}=v.useContext(on),M=typeof x=="string"&&A0.test(x),k=h0(x,C);x=k.to;let Y=m2(x,{relative:c}),X=Qn(),V=null;if(h){let re=Fs(h,[],X.unstable_mask?X.unstable_mask.pathname:"/",!0);C!=="/"&&(re.pathname=re.pathname==="/"?C:Xn([C,re.pathname])),V=A.createHref(re)}let[H,ne,se]=Z2(i,T),me=lE(x,{replace:m,unstable_mask:h,state:y,target:p,preventScrollReset:g,relative:c,viewTransition:w,unstable_defaultShouldRevalidate:N,unstable_useTransitions:_});function ce(re){l&&l(re),re.defaultPrevented||me(re)}let ue=!(k.isExternal||d),fe=v.createElement("a",{...T,...se,href:(ue?V:void 0)||k.absoluteURL||Y,onClick:ue?ce:l,ref:W2(E,ne),target:p,"data-discover":!M&&o==="render"?"true":void 0});return H&&!M?v.createElement(v.Fragment,null,fe,v.createElement(I2,{page:Y})):fe});R0.displayName="Link";var Jd=v.forwardRef(function({"aria-current":l="page",caseSensitive:o=!1,className:i="",end:c=!1,style:d,to:m,viewTransition:h,children:y,...p},x){let g=Io(m,{relative:p.relative}),w=Qn(),N=v.useContext(Js),{navigator:T,basename:E}=v.useContext(on),C=N!=null&&cE(g)&&h===!0,A=T.encodeLocation?T.encodeLocation(g).pathname:g.pathname,_=w.pathname,M=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;o||(_=_.toLowerCase(),M=M?M.toLowerCase():null,A=A.toLowerCase()),M&&E&&(M=pa(M,E)||M);const k=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let Y=_===A||!c&&_.startsWith(A)&&_.charAt(k)==="/",X=M!=null&&(M===A||!c&&M.startsWith(A)&&M.charAt(A.length)==="/"),V={isActive:Y,isPending:X,isTransitioning:C},H=Y?l:void 0,ne;typeof i=="function"?ne=i(V):ne=[i,Y?"active":null,X?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let se=typeof d=="function"?d(V):d;return v.createElement(R0,{...p,"aria-current":H,className:ne,ref:x,style:se,to:m,viewTransition:h},typeof y=="function"?y(V):y)});Jd.displayName="NavLink";var nE=v.forwardRef(({discover:n="render",fetcherKey:l,navigate:o,reloadDocument:i,replace:c,state:d,method:m=Ns,action:h,onSubmit:y,relative:p,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:w,...N},T)=>{let{unstable_useTransitions:E}=v.useContext(on),C=iE(),A=sE(h,{relative:p}),_=m.toLowerCase()==="get"?"get":"post",M=typeof h=="string"&&A0.test(h),k=Y=>{if(y&&y(Y),Y.defaultPrevented)return;Y.preventDefault();let X=Y.nativeEvent.submitter,V=(X==null?void 0:X.getAttribute("formmethod"))||m,H=()=>C(X||Y.currentTarget,{fetcherKey:l,method:V,navigate:o,replace:c,state:d,relative:p,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:w});E&&o!==!1?v.startTransition(()=>H()):H()};return v.createElement("form",{ref:T,method:_,action:A,onSubmit:i?y:k,...N,"data-discover":!M&&n==="render"?"true":void 0})});nE.displayName="Form";function aE(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _0(n){let l=v.useContext(Ur);return rt(l,aE(n)),l}function lE(n,{target:l,replace:o,unstable_mask:i,state:c,preventScrollReset:d,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:y,unstable_useTransitions:p}={}){let x=x0(),g=Qn(),w=Io(n,{relative:m});return v.useCallback(N=>{if(L2(N,l)){N.preventDefault();let T=o!==void 0?o:Po(g)===Po(w),E=()=>x(n,{replace:T,unstable_mask:i,state:c,preventScrollReset:d,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:y});p?v.startTransition(()=>E()):E()}},[g,x,w,o,i,c,l,n,d,m,h,y,p])}var rE=0,oE=()=>`__${String(++rE)}__`;function iE(){let{router:n}=_0("useSubmit"),{basename:l}=v.useContext(on),o=T2(),i=n.fetch,c=n.navigate;return v.useCallback(async(d,m={})=>{let{action:h,method:y,encType:p,formData:x,body:g}=H2(d,l);if(m.navigate===!1){let w=m.fetcherKey||oE();await i(w,o,m.action||h,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:x,body:g,formMethod:m.method||y,formEncType:m.encType||p,flushSync:m.flushSync})}else await c(m.action||h,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:x,body:g,formMethod:m.method||y,formEncType:m.encType||p,replace:m.replace,state:m.state,fromRouteId:o,flushSync:m.flushSync,viewTransition:m.viewTransition})},[i,c,l,o])}function sE(n,{relative:l}={}){let{basename:o}=v.useContext(on),i=v.useContext(xn);rt(i,"useFormAction must be used inside a RouteContext");let[c]=i.matches.slice(-1),d={...Io(n||".",{relative:l})},m=Qn();if(n==null){d.search=m.search;let h=new URLSearchParams(d.search),y=h.getAll("index");if(y.some(x=>x==="")){h.delete("index"),y.filter(g=>g).forEach(g=>h.append("index",g));let x=h.toString();d.search=x?`?${x}`:""}}return(!n||n===".")&&c.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(d.pathname=d.pathname==="/"?o:Xn([o,d.pathname])),Po(d)}function cE(n,{relative:l}={}){let o=v.useContext(g0);rt(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=_0("useViewTransitionState"),c=Io(n,{relative:l});if(!o.isTransitioning)return!1;let d=pa(o.currentLocation.pathname,i)||o.currentLocation.pathname,m=pa(o.nextLocation.pathname,i)||o.nextLocation.pathname;return Ms(c.pathname,m)!=null||Ms(c.pathname,d)!=null}var Fo=s0();const j0=i0(Fo),uE="/api";function dE(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 Ne(n,l){const o=await fetch(`${uE}${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(dE(i,`HTTP ${o.status}`))}return o.json()}function fE(){return Ne("/system/info")}function cj(n){return Ne("/system/transport",{method:"POST",body:JSON.stringify({type:n})})}function M0(n){return Ne("/system/runtime/restart",{method:"POST",body:JSON.stringify(n)})}function mE(){return Ne("/system/runtime/stop",{method:"POST"})}function hE(){return Ne("/cluster/state")}function uj(){return Ne("/cluster/promote",{method:"POST"})}function dj(n){return Ne("/cluster/connect",{method:"POST",body:JSON.stringify(n)})}function fj(){return Ne("/cluster/disconnect",{method:"POST"})}function pE(n){return Ne(`/node-operations/${n}`)}async function gE(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 Ne(`/node-operations${o?`?${o}`:""}`)).operations}function vE(n,l){return Ne(`/nodes/${n}/agents/${l}/upgrade`,{method:"POST"})}function yE(n,l){return Ne(`/nodes/${n}/runtime/restart`,{method:"POST",body:JSON.stringify(l)})}async function mj(){return(await Ne("/devboxes")).devboxes}function hj(n,l){return Ne(`/nodes/${n}/devbox/configure`,{method:"POST",body:JSON.stringify({devbox:l})})}function pj(n){return Ne(`/nodes/${n}/devbox/status`)}function gj(n){return Ne(`/nodes/${n}/devbox/start`,{method:"POST"})}function vj(n,l){return Ne(`/nodes/${n}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:l})})}function yj(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 Ne(`/nodes/${n}/workdir/tree${i?`?${i}`:""}`)}function bj(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 Ne(`/nodes/${n}/workdir/branch${i?`?${i}`:""}`)}function xj(n,l){const o=new URLSearchParams;return o.set("agent",l.agent),o.set("limit",String(Math.min(Math.max(1,l.limit),100))),Ne(`/nodes/${n}/native-sessions?${o.toString()}`)}function Sj(n,l){return Ne(`/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 wj(n,l){return Ne(`/nodes/${n}/terminal/sessions`,{method:"POST",body:JSON.stringify(l)})}function Ej(n){return Ne(`/nodes/${n}/terminal/sessions`)}function Nj(n,l){return Ne(`/nodes/${n}/terminal/sessions/${l}`)}function Tj(n,l){return Ne(`/nodes/${n}/terminal/sessions/${l}/stop`,{method:"POST"})}async function Cj(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 i=Math.min(Math.max(1,n.limit),100);l.set("limit",String(i))}if(n!=null&&n.offset&&l.set("offset",String(n.offset)),n!=null&&n.projectPath&&l.set("projectPath",n.projectPath),n!=null&&n.cursor&&l.set("cursor",n.cursor),(n==null?void 0:n.completedLimitPerProject)!==void 0){const i=Math.min(Math.max(1,n.completedLimitPerProject),100);l.set("completedLimitPerProject",String(i))}const o=l.toString();return Ne(`/tasks${o?`?${o}`:""}`)}function Aj(n){return Ne(`/tasks/${n}`)}function Rj(n){return Ne("/tasks",{method:"POST",body:JSON.stringify(n)})}function _j(n){return Ne("/tasks/import-session",{method:"POST",body:JSON.stringify(n)})}function jj(n){return Ne("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:n})})}function Mj(n){return Ne("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:n})})}function Oj(n){return Ne(`/tasks/${n}/cancel`,{method:"POST"})}function Dj(n){return Ne(`/tasks/${n}/retry`,{method:"POST"})}function kj(n,l){return Ne(`/tasks/${n}/logs`)}function zj(n,l){return Ne(`/tasks/${n}/message`,{method:"POST",body:JSON.stringify({content:l})})}function Lj(n,l){return Ne(`/tasks/${n}/queued-messages/${encodeURIComponent(l)}`,{method:"DELETE"})}function Uj(n,l){return Ne(`/tasks/${n}/share`,{method:"POST",body:JSON.stringify(l)})}function Bj(n){return Ne(`/tasks/${n}/share`,{method:"DELETE"})}function Hj(n){return Ne(`/shared/conversations/${encodeURIComponent(n)}`)}function Vj(n,l){return Ne(`/shared/conversations/${encodeURIComponent(n)}/logs`)}function $j(n){return Ne(`/shared/conversations/${encodeURIComponent(n)}/output`)}function Yj(n,l="."){return Ne(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(l)}`)}function qj(n,l){return Ne(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(l)}`)}function Gj(n,l){return Ne(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(l?{path:l}:{})})}function bE(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}function Pj(n){return Ne(`/tasks/${n}/output`)}function Xj(n,l="."){return Ne(`/tasks/${n}/output/tree?path=${encodeURIComponent(l)}`)}function Kj(n,l){return Ne(`/tasks/${n}/output/content?path=${encodeURIComponent(l)}`)}function Qj(n,l){return Ne(`/tasks/${n}/output/preview-sessions`,{method:"POST",body:JSON.stringify(bE(l))})}function Zj(n){return Ne(`/tasks/${n}/output/diff`)}function xE({hasStarted:n,enabled:l}){return l&&!n}function SE(n,l,o=!0){const i=v.useRef(n),c=v.useRef(!1);v.useEffect(()=>{i.current=n},[n]),v.useEffect(()=>{if(!o)return;const d=()=>i.current();xE({hasStarted:c.current,enabled:o})&&(c.current=!0,d());const m=setInterval(d,l);return()=>clearInterval(m)},[l,o])}let wE=0;function EE(n=50){const[l,o]=v.useState([]),[i,c]=v.useState(!1),d=v.useRef(null),m=v.useRef(0),h=v.useRef(new Map);v.useEffect(()=>{const x=new EventSource("/api/events");d.current=x,x.onopen=()=>c(!0),x.onerror=()=>c(!1);const g=["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 g)x.addEventListener(w,N=>{const T={id:String(++wE),type:w,data:JSON.parse(N.data),timestamp:Date.now()};o(E=>[T,...E].slice(0,n));for(const[,{pattern:E,callback:C}]of h.current)w.startsWith(E)&&C(T)});return()=>{x.close(),d.current=null,c(!1)}},[n]);const y=v.useCallback((x,g)=>{const w=++m.current;return h.current.set(w,{pattern:x,callback:g}),()=>{h.current.delete(w)}},[]),p=v.useCallback(()=>o([]),[]);return{events:l,connected:i,subscribe:y,clearEvents:p}}const NE=1e4,TE=6e4,CE=NE,AE=250,RE=new Set(["node.joined","node.left","task.created","task.assigned","task.deleted"]),_E=new Set(["task.created","task.assigned","task.status","task.deleted"]);function jE(n){return n?TE:CE}function Ij(n){return RE.has(n)}function ME(n){return _E.has(n)}function OE(n,l){if(!l)return!0;const o=n.leaderId,i=n.term,c=n.nodeCount;return typeof o!="string"&&o!==null||typeof i!="number"||typeof c!="number"?!0:l.leaderId!==o||l.term!==i||l.nodeCount!==c}function DE(n,l,o){if(n==="node.joined"||n==="node.left"||n!=="node.status")return!0;const i=l.nodeId,c=l.status;return typeof i!="string"||typeof c!="string"?!0:o.get(i)!==c}function Fj(n,l){const o=l.taskId,i=l.status;if(typeof o!="string"||typeof i!="string")return n;let c=!1;const d=n.map(m=>{if(m.id!==o)return m;c=!0;const h="result"in l?l.result:i==="completed"?null:m.result,y="error"in l?l.error:i==="completed"?null:m.error;return{...m,status:i,result:h,error:y}});return c?d:n}const O0=v.createContext(null);function kE({children:n}){const[l,o]=v.useState(null),[i,c]=v.useState(null),[d,m]=v.useState(!0),[h,y]=v.useState(null),p=v.useRef(null),x=v.useRef(null),g=v.useRef(new Map),{events:w,connected:N,subscribe:T}=EE(),E=v.useCallback(async()=>{var A;try{const[_,M]=await Promise.all([hE(),fE()]),k=_,Y=M.nodeId??M.id,X=k.nodes??[],V=X.find(se=>se.id===Y)??{id:Y,name:M.name,endpoint:M.endpoint,role:M.role,status:M.status,capabilities:M.capabilities,joinedAt:M.joinedAt,lastHeartbeat:M.lastHeartbeat},H=k.leaderId?X.find(se=>se.id===k.leaderId)??null:null,ne={leader:H?{id:H.id,name:H.name,endpoint:H.endpoint,...H.dashboardOrigin?{dashboardOrigin:H.dashboardOrigin}:{}}:null,term:k.term??0,nodes:X,self:V,taskSummary:k.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}};x.current={leaderId:((A=ne.leader)==null?void 0:A.id)??null,term:ne.term,nodeCount:ne.nodes.length},g.current=new Map(ne.nodes.map(se=>[se.id,se.status])),g.current.set(ne.self.id,ne.self.status),o(ne),c(M),y(null)}catch(_){y(_ instanceof Error?_.message:"Failed to fetch cluster state")}finally{m(!1)}},[]),C=v.useCallback(()=>{p.current===null&&(p.current=window.setTimeout(()=>{p.current=null,E()},AE))},[E]);return SE(E,jE(N)),v.useEffect(()=>()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},[]),v.useEffect(()=>{const A=[T("cluster",_=>{OE(_.data,x.current)&&C()}),T("election",C),T("node",_=>{DE(_.type,_.data,g.current)&&C()}),T("transport",C),T("task",_=>{ME(_.type)&&C()})];return()=>A.forEach(_=>_())},[T,C]),f.jsx(O0.Provider,{value:{cluster:l,systemInfo:i,events:w,sseConnected:N,subscribe:T,refresh:E,loading:d,error:h},children:n})}function D0(){const n=v.useContext(O0);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 k0=(...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 zE=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 LE=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 hv=n=>{const l=LE(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 Od={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 UE=n=>{for(const l in n)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1},BE=v.createContext({}),HE=()=>v.useContext(BE),VE=v.forwardRef(({color:n,size:l,strokeWidth:o,absoluteStrokeWidth:i,className:c="",children:d,iconNode:m,...h},y)=>{const{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:g=!1,color:w="currentColor",className:N=""}=HE()??{},T=i??g?Number(o??x)*24/Number(l??p):o??x;return v.createElement("svg",{ref:y,...Od,width:l??p??Od.width,height:l??p??Od.height,stroke:n??w,strokeWidth:T,className:k0("lucide",N,c),...!d&&!UE(h)&&{"aria-hidden":"true"},...h},[...m.map(([E,C])=>v.createElement(E,C)),...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 Be=(n,l)=>{const o=v.forwardRef(({className:i,...c},d)=>v.createElement(VE,{ref:d,iconNode:l,className:k0(`lucide-${zE(hv(n))}`,`lucide-${n}`,i),...c}));return o.displayName=hv(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 $E=[["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"}]],Os=Be("activity",$E);/**
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 YE=[["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"}]],qE=Be("book-open",YE);/**
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 GE=[["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"}]],z0=Be("bot",GE);/**
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 PE=[["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"}]],XE=Be("cable",PE);/**
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 KE=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ds=Be("check",KE);/**
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 QE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xo=Be("chevron-down",QE);/**
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 ZE=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Wd=Be("chevron-right",ZE);/**
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 IE=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],FE=Be("chevron-up",IE);/**
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 JE=[["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"}]],hs=Be("circle-alert",JE);/**
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 WE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],$o=Be("circle-check",WE);/**
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 eN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],pv=Be("circle-dot",eN);/**
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 tN=[["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"}]],nN=Be("circle-x",tN);/**
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 aN=[["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"}]],lN=Be("copy",aN);/**
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 rN=[["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"}]],oN=Be("cpu",rN);/**
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 iN=[["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"}]],sN=Be("external-link",iN);/**
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 cN=[["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"}]],uN=Be("folder-tree",cN);/**
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 dN=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],fN=Be("folder",dN);/**
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 mN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],hN=Be("info",mN);/**
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 pN=[["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"}]],gN=Be("monitor-cog",pN);/**
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 vN=[["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"}]],L0=Be("monitor",vN);/**
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 yN=[["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"}]],U0=Be("moon",yN);/**
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 bN=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],xN=Be("network",bN);/**
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 SN=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],wN=Be("power",SN);/**
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 EN=[["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"}]],NN=Be("radio",EN);/**
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 TN=[["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"}]],B0=Be("refresh-cw",TN);/**
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 CN=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],gv=Be("rocket",CN);/**
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 AN=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],RN=Be("search",AN);/**
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 _N=[["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"}]],H0=Be("server",_N);/**
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 jN=[["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"}]],MN=Be("settings",jN);/**
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 ON=[["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"}]],DN=Be("shield",ON);/**
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 kN=[["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"}]],zN=Be("sparkles",kN);/**
252
+ * @license lucide-react v1.7.0 - ISC
253
+ *
254
+ * This source code is licensed under the ISC license.
255
+ * See the LICENSE file in the root directory of this source tree.
256
+ */const LN=[["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"}]],V0=Be("sun",LN);/**
257
+ * @license lucide-react v1.7.0 - ISC
258
+ *
259
+ * This source code is licensed under the ISC license.
260
+ * See the LICENSE file in the root directory of this source tree.
261
+ */const UN=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],$0=Be("terminal",UN);/**
262
+ * @license lucide-react v1.7.0 - ISC
263
+ *
264
+ * This source code is licensed under the ISC license.
265
+ * See the LICENSE file in the root directory of this source tree.
266
+ */const BN=[["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"}]],HN=Be("wifi-off",BN);/**
267
+ * @license lucide-react v1.7.0 - ISC
268
+ *
269
+ * This source code is licensed under the ISC license.
270
+ * See the LICENSE file in the root directory of this source tree.
271
+ */const VN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Y0=Be("x",VN);function q0(n){var l,o,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(l=0;l<c;l++)n[l]&&(o=q0(n[l]))&&(i&&(i+=" "),i+=o)}else for(o in n)n[o]&&(i&&(i+=" "),i+=o);return i}function G0(){for(var n,l,o=0,i="",c=arguments.length;o<c;o++)(n=arguments[o])&&(l=q0(n))&&(i&&(i+=" "),i+=l);return i}const $N=(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},YN=(n,l)=>({classGroupId:n,validator:l}),P0=(n=new Map,l=null,o)=>({nextPart:n,validators:l,classGroupId:o}),ks="-",vv=[],qN="arbitrary..",GN=n=>{const l=XN(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return PN(m);const h=m.split(ks),y=h[0]===""&&h.length>1?1:0;return X0(h,y,l)},getConflictingClassGroupIds:(m,h)=>{if(h){const y=i[m],p=o[m];return y?p?$N(p,y):y:p||vv}return o[m]||vv}}},X0=(n,l,o)=>{if(n.length-l===0)return o.classGroupId;const c=n[l],d=o.nextPart.get(c);if(d){const p=X0(n,l+1,d);if(p)return p}const m=o.validators;if(m===null)return;const h=l===0?n.join(ks):n.slice(l).join(ks),y=m.length;for(let p=0;p<y;p++){const x=m[p];if(x.validator(h))return x.classGroupId}},PN=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?qN+i:void 0})(),XN=n=>{const{theme:l,classGroups:o}=n;return KN(o,l)},KN=(n,l)=>{const o=P0();for(const i in n){const c=n[i];Tf(c,o,i,l)}return o},Tf=(n,l,o,i)=>{const c=n.length;for(let d=0;d<c;d++){const m=n[d];QN(m,l,o,i)}},QN=(n,l,o,i)=>{if(typeof n=="string"){ZN(n,l,o);return}if(typeof n=="function"){IN(n,l,o,i);return}FN(n,l,o,i)},ZN=(n,l,o)=>{const i=n===""?l:K0(l,n);i.classGroupId=o},IN=(n,l,o,i)=>{if(JN(n)){Tf(n(i),l,o,i);return}l.validators===null&&(l.validators=[]),l.validators.push(YN(o,n))},FN=(n,l,o,i)=>{const c=Object.entries(n),d=c.length;for(let m=0;m<d;m++){const[h,y]=c[m];Tf(y,K0(l,h),o,i)}},K0=(n,l)=>{let o=n;const i=l.split(ks),c=i.length;for(let d=0;d<c;d++){const m=i[d];let h=o.nextPart.get(m);h||(h=P0(),o.nextPart.set(m,h)),o=h}return o},JN=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,WN=n=>{if(n<1)return{get:()=>{},set:()=>{}};let l=0,o=Object.create(null),i=Object.create(null);const c=(d,m)=>{o[d]=m,l++,l>n&&(l=0,i=o,o=Object.create(null))};return{get(d){let m=o[d];if(m!==void 0)return m;if((m=i[d])!==void 0)return c(d,m),m},set(d,m){d in o?o[d]=m:c(d,m)}}},ef="!",yv=":",eT=[],bv=(n,l,o,i,c)=>({modifiers:n,hasImportantModifier:l,baseClassName:o,maybePostfixModifierPosition:i,isExternal:c}),tT=n=>{const{prefix:l,experimentalParseClassName:o}=n;let i=c=>{const d=[];let m=0,h=0,y=0,p;const x=c.length;for(let E=0;E<x;E++){const C=c[E];if(m===0&&h===0){if(C===yv){d.push(c.slice(y,E)),y=E+1;continue}if(C==="/"){p=E;continue}}C==="["?m++:C==="]"?m--:C==="("?h++:C===")"&&h--}const g=d.length===0?c:c.slice(y);let w=g,N=!1;g.endsWith(ef)?(w=g.slice(0,-1),N=!0):g.startsWith(ef)&&(w=g.slice(1),N=!0);const T=p&&p>y?p-y:void 0;return bv(d,N,w,T)};if(l){const c=l+yv,d=i;i=m=>m.startsWith(c)?d(m.slice(c.length)):bv(eT,!1,m,void 0,!0)}if(o){const c=i;i=d=>o({className:d,parseClassName:c})}return i},nT=n=>{const l=new Map;return n.orderSensitiveModifiers.forEach((o,i)=>{l.set(o,1e6+i)}),o=>{const i=[];let c=[];for(let d=0;d<o.length;d++){const m=o[d],h=m[0]==="[",y=l.has(m);h||y?(c.length>0&&(c.sort(),i.push(...c),c=[]),i.push(m)):c.push(m)}return c.length>0&&(c.sort(),i.push(...c)),i}},aT=n=>({cache:WN(n.cacheSize),parseClassName:tT(n),sortModifiers:nT(n),...GN(n)}),lT=/\s+/,rT=(n,l)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:c,sortModifiers:d}=l,m=[],h=n.trim().split(lT);let y="";for(let p=h.length-1;p>=0;p-=1){const x=h[p],{isExternal:g,modifiers:w,hasImportantModifier:N,baseClassName:T,maybePostfixModifierPosition:E}=o(x);if(g){y=x+(y.length>0?" "+y:y);continue}let C=!!E,A=i(C?T.substring(0,E):T);if(!A){if(!C){y=x+(y.length>0?" "+y:y);continue}if(A=i(T),!A){y=x+(y.length>0?" "+y:y);continue}C=!1}const _=w.length===0?"":w.length===1?w[0]:d(w).join(":"),M=N?_+ef:_,k=M+A;if(m.indexOf(k)>-1)continue;m.push(k);const Y=c(A,C);for(let X=0;X<Y.length;++X){const V=Y[X];m.push(M+V)}y=x+(y.length>0?" "+y:y)}return y},oT=(...n)=>{let l=0,o,i,c="";for(;l<n.length;)(o=n[l++])&&(i=Q0(o))&&(c&&(c+=" "),c+=i);return c},Q0=n=>{if(typeof n=="string")return n;let l,o="";for(let i=0;i<n.length;i++)n[i]&&(l=Q0(n[i]))&&(o&&(o+=" "),o+=l);return o},iT=(n,...l)=>{let o,i,c,d;const m=y=>{const p=l.reduce((x,g)=>g(x),n());return o=aT(p),i=o.cache.get,c=o.cache.set,d=h,h(y)},h=y=>{const p=i(y);if(p)return p;const x=rT(y,o);return c(y,x),x};return d=m,(...y)=>d(oT(...y))},sT=[],bt=n=>{const l=o=>o[n]||sT;return l.isThemeGetter=!0,l},Z0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,I0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,cT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,uT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dT=/\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$/,fT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xa=n=>cT.test(n),_e=n=>!!n&&!Number.isNaN(Number(n)),Ka=n=>!!n&&Number.isInteger(Number(n)),Dd=n=>n.endsWith("%")&&_e(n.slice(0,-1)),ha=n=>uT.test(n),F0=()=>!0,pT=n=>dT.test(n)&&!fT.test(n),Cf=()=>!1,gT=n=>mT.test(n),vT=n=>hT.test(n),yT=n=>!pe(n)&&!ge(n),bT=n=>el(n,ey,Cf),pe=n=>Z0.test(n),Al=n=>el(n,ty,pT),xv=n=>el(n,AT,_e),xT=n=>el(n,ay,F0),ST=n=>el(n,ny,Cf),Sv=n=>el(n,J0,Cf),wT=n=>el(n,W0,vT),ps=n=>el(n,ly,gT),ge=n=>I0.test(n),Uo=n=>zl(n,ty),ET=n=>zl(n,ny),wv=n=>zl(n,J0),NT=n=>zl(n,ey),TT=n=>zl(n,W0),gs=n=>zl(n,ly,!0),CT=n=>zl(n,ay,!0),el=(n,l,o)=>{const i=Z0.exec(n);return i?i[1]?l(i[1]):o(i[2]):!1},zl=(n,l,o=!1)=>{const i=I0.exec(n);return i?i[1]?l(i[1]):o:!1},J0=n=>n==="position"||n==="percentage",W0=n=>n==="image"||n==="url",ey=n=>n==="length"||n==="size"||n==="bg-size",ty=n=>n==="length",AT=n=>n==="number",ny=n=>n==="family-name",ay=n=>n==="number"||n==="weight",ly=n=>n==="shadow",RT=()=>{const n=bt("color"),l=bt("font"),o=bt("text"),i=bt("font-weight"),c=bt("tracking"),d=bt("leading"),m=bt("breakpoint"),h=bt("container"),y=bt("spacing"),p=bt("radius"),x=bt("shadow"),g=bt("inset-shadow"),w=bt("text-shadow"),N=bt("drop-shadow"),T=bt("blur"),E=bt("perspective"),C=bt("aspect"),A=bt("ease"),_=bt("animate"),M=()=>["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"],Y=()=>[...k(),ge,pe],X=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],H=()=>[ge,pe,y],ne=()=>[Xa,"full","auto",...H()],se=()=>[Ka,"none","subgrid",ge,pe],me=()=>["auto",{span:["full",Ka,ge,pe]},Ka,ge,pe],ce=()=>[Ka,"auto",ge,pe],ue=()=>["auto","min","max","fr",ge,pe],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...H()],$=()=>[Xa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],F=()=>[Xa,"screen","full","dvw","lvw","svw","min","max","fit",...H()],de=()=>[Xa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...H()],Q=()=>[n,ge,pe],j=()=>[...k(),wv,Sv,{position:[ge,pe]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",NT,bT,{size:[ge,pe]}],W=()=>[Dd,Uo,Al],ee=()=>["","none","full",p,ge,pe],oe=()=>["",_e,Uo,Al],te=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[_e,Dd,wv,Sv],be=()=>["","none",T,ge,pe],ye=()=>["none",_e,ge,pe],Se=()=>["none",_e,ge,pe],Ve=()=>[_e,ge,pe],Le=()=>[Xa,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ha],breakpoint:[ha],color:[F0],container:[ha],"drop-shadow":[ha],ease:["in","out","in-out"],font:[yT],"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",Xa,pe,ge,C]}],container:["container"],columns:[{columns:[_e,pe,ge,h]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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:Y()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ne()}],"inset-x":[{"inset-x":ne()}],"inset-y":[{"inset-y":ne()}],start:[{"inset-s":ne(),start:ne()}],end:[{"inset-e":ne(),end:ne()}],"inset-bs":[{"inset-bs":ne()}],"inset-be":[{"inset-be":ne()}],top:[{top:ne()}],right:[{right:ne()}],bottom:[{bottom:ne()}],left:[{left:ne()}],visibility:["visible","invisible","collapse"],z:[{z:[Ka,"auto",ge,pe]}],basis:[{basis:[Xa,"full","auto",h,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Xa,"auto","initial","none",pe]}],grow:[{grow:["",_e,ge,pe]}],shrink:[{shrink:["",_e,ge,pe]}],order:[{order:[Ka,"first","last","none",ge,pe]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:me()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:me()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pbs:[{pbs:H()}],pbe:[{pbe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...de()]}],"min-block-size":[{"min-block":["auto",...de()]}],"max-block-size":[{"max-block":["none",...de()]}],w:[{w:[h,"screen",...$()]}],"min-w":[{"min-w":[h,"screen","none",...$()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[m]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",o,Uo,Al]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,CT,xT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Dd,pe]}],"font-family":[{font:[ET,ST,l]}],"font-features":[{"font-features":[pe]}],"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:[c,ge,pe]}],"line-clamp":[{"line-clamp":[_e,"none",ge,xv]}],leading:[{leading:[d,...H()]}],"list-image":[{"list-image":["none",ge,pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",ge,Al]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[_e,"auto",ge,pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,pe]}],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",ge,pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ka,ge,pe],radial:["",ge,pe],conic:[Ka,ge,pe]},TT,wT]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-bs":[{"border-bs":Q()}],"border-color-be":[{"border-be":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,ge,pe]}],"outline-w":[{outline:["",_e,Uo,Al]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",x,gs,ps]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",g,gs,ps]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[_e,Al]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",w,gs,ps]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[_e,ge,pe]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"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":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[ge,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"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":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,pe]}],filter:[{filter:["","none",ge,pe]}],blur:[{blur:be()}],brightness:[{brightness:[_e,ge,pe]}],contrast:[{contrast:[_e,ge,pe]}],"drop-shadow":[{"drop-shadow":["","none",N,gs,ps]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",_e,ge,pe]}],"hue-rotate":[{"hue-rotate":[_e,ge,pe]}],invert:[{invert:["",_e,ge,pe]}],saturate:[{saturate:[_e,ge,pe]}],sepia:[{sepia:["",_e,ge,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,pe]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[_e,ge,pe]}],"backdrop-contrast":[{"backdrop-contrast":[_e,ge,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,ge,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,ge,pe]}],"backdrop-invert":[{"backdrop-invert":["",_e,ge,pe]}],"backdrop-opacity":[{"backdrop-opacity":[_e,ge,pe]}],"backdrop-saturate":[{"backdrop-saturate":[_e,ge,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,ge,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",ge,pe]}],ease:[{ease:["linear","initial",A,ge,pe]}],delay:[{delay:[_e,ge,pe]}],animate:[{animate:["none",_,ge,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ge,pe]}],"perspective-origin":[{"perspective-origin":Y()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":["scale-3d"],skew:[{skew:Ve()}],"skew-x":[{"skew-x":Ve()}],"skew-y":[{"skew-y":Ve()}],transform:[{transform:[ge,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:Y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Le()}],"translate-x":[{"translate-x":Le()}],"translate-y":[{"translate-y":Le()}],"translate-z":[{"translate-z":Le()}],"translate-none":["translate-none"],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"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",ge,pe]}],"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":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mbs":[{"scroll-mbs":H()}],"scroll-mbe":[{"scroll-mbe":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pbs":[{"scroll-pbs":H()}],"scroll-pbe":[{"scroll-pbe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",ge,pe]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[_e,Uo,Al,xv]}],stroke:[{stroke:["none",...Q()]}],"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"]}},_T=iT(RT);function le(...n){return _T(G0(n))}function jT(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 MT=n=>{switch(n){case"success":return kT;case"info":return LT;case"warning":return zT;case"error":return UT;default:return null}},OT=Array(12).fill(0),DT=({visible:n,className:l})=>ae.createElement("div",{className:["sonner-loading-wrapper",l].filter(Boolean).join(" "),"data-visible":n},ae.createElement("div",{className:"sonner-spinner"},OT.map((o,i)=>ae.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),kT=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),zT=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ae.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"})),LT=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),UT=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),BT=ae.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"},ae.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ae.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),HT=()=>{const[n,l]=ae.useState(document.hidden);return ae.useEffect(()=>{const o=()=>{l(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),n};let tf=1;class VT{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,...c}=l,d=typeof(l==null?void 0:l.id)=="number"||((o=l.id)==null?void 0:o.length)>0?l.id:tf++,m=this.toasts.find(y=>y.id===d),h=l.dismissible===void 0?!0:l.dismissible;return this.dismissedToasts.has(d)&&this.dismissedToasts.delete(d),m?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,...c,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 c=Promise.resolve(l instanceof Function?l():l);let d=i!==void 0,m;const h=c.then(async p=>{if(m=["resolve",p],ae.isValidElement(p))d=!1,this.create({id:i,type:"default",message:p});else if(YT(p)&&!p.ok){d=!1;const g=typeof o.error=="function"?await o.error(`HTTP error! status: ${p.status}`):o.error,w=typeof o.description=="function"?await o.description(`HTTP error! status: ${p.status}`):o.description,T=typeof g=="object"&&!ae.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:w,...T})}else if(p instanceof Error){d=!1;const g=typeof o.error=="function"?await o.error(p):o.error,w=typeof o.description=="function"?await o.description(p):o.description,T=typeof g=="object"&&!ae.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:w,...T})}else if(o.success!==void 0){d=!1;const g=typeof o.success=="function"?await o.success(p):o.success,w=typeof o.description=="function"?await o.description(p):o.description,T=typeof g=="object"&&!ae.isValidElement(g)?g:{message:g};this.create({id:i,type:"success",description:w,...T})}}).catch(async p=>{if(m=["reject",p],o.error!==void 0){d=!1;const x=typeof o.error=="function"?await o.error(p):o.error,g=typeof o.description=="function"?await o.description(p):o.description,N=typeof x=="object"&&!ae.isValidElement(x)?x:{message:x};this.create({id:i,type:"error",description:g,...N})}}).finally(()=>{d&&(this.dismiss(i),i=void 0),o.finally==null||o.finally.call(o)}),y=()=>new Promise((p,x)=>h.then(()=>m[0]==="reject"?x(m[1]):p(m[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)||tf++;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 Zt=new VT,$T=(n,l)=>{const o=(l==null?void 0:l.id)||tf++;return Zt.addToast({title:n,...l,id:o}),o},YT=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",qT=$T,GT=()=>Zt.toasts,PT=()=>Zt.getActiveToasts(),Fe=Object.assign(qT,{success:Zt.success,info:Zt.info,warning:Zt.warning,error:Zt.error,custom:Zt.custom,message:Zt.message,promise:Zt.promise,dismiss:Zt.dismiss,loading:Zt.loading},{getHistory:GT,getToasts:PT});jT("[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 vs(n){return n.label!==void 0}const XT=3,KT="24px",QT="16px",Ev=4e3,ZT=356,IT=14,FT=45,JT=200;function Bn(...n){return n.filter(Boolean).join(" ")}function WT(n){const[l,o]=n.split("-"),i=[];return l&&i.push(l),o&&i.push(o),i}const eC=n=>{var l,o,i,c,d,m,h,y,p;const{invert:x,toast:g,unstyled:w,interacting:N,setHeights:T,visibleToasts:E,heights:C,index:A,toasts:_,expanded:M,removeToast:k,defaultRichColors:Y,closeButton:X,style:V,cancelButtonStyle:H,actionButtonStyle:ne,className:se="",descriptionClassName:me="",duration:ce,position:ue,gap:fe,expandByDefault:re,classNames:O,icons:$,closeButtonAriaLabel:F="Close toast"}=n,[de,Q]=ae.useState(null),[j,G]=ae.useState(null),[K,W]=ae.useState(!1),[ee,oe]=ae.useState(!1),[te,ie]=ae.useState(!1),[J,be]=ae.useState(!1),[ye,Se]=ae.useState(!1),[Ve,Le]=ae.useState(0),[je,ft]=ae.useState(0),ot=ae.useRef(g.duration||ce||Ev),zt=ae.useRef(null),mt=ae.useRef(null),ll=A===0,rl=A+1<=E,St=g.type,Sn=g.dismissible!==!1,xe=g.className||"",et=g.descriptionClassName||"",Xe=ae.useMemo(()=>C.findIndex(Te=>Te.toastId===g.id)||0,[C,g.id]),Tt=ae.useMemo(()=>{var Te;return(Te=g.closeButton)!=null?Te:X},[g.closeButton,X]),It=ae.useMemo(()=>g.duration||ce||Ev,[g.duration,ce]),ol=ae.useRef(0),sn=ae.useRef(0),ei=ae.useRef(0),xa=ae.useRef(null),[il,Lt]=ue.split("-"),wn=ae.useMemo(()=>C.reduce((Te,at,wt)=>wt>=Xe?Te:Te+at.height,0),[C,Xe]),Mt=HT(),fc=g.invert||x,qr=St==="loading";sn.current=ae.useMemo(()=>Xe*fe+wn,[Xe,wn]),ae.useEffect(()=>{ot.current=It},[It]),ae.useEffect(()=>{W(!0)},[]),ae.useEffect(()=>{const Te=mt.current;if(Te){const at=Te.getBoundingClientRect().height;return ft(at),T(wt=>[{toastId:g.id,height:at,position:g.position},...wt]),()=>T(wt=>wt.filter(Ot=>Ot.toastId!==g.id))}},[T,g.id]),ae.useLayoutEffect(()=>{if(!K)return;const Te=mt.current,at=Te.style.height;Te.style.height="auto";const wt=Te.getBoundingClientRect().height;Te.style.height=at,ft(wt),T(Ot=>Ot.find(it=>it.toastId===g.id)?Ot.map(it=>it.toastId===g.id?{...it,height:wt}:it):[{toastId:g.id,height:wt,position:g.position},...Ot])},[K,g.title,g.description,T,g.id,g.jsx,g.action,g.cancel]);const On=ae.useCallback(()=>{oe(!0),Le(sn.current),T(Te=>Te.filter(at=>at.toastId!==g.id)),setTimeout(()=>{k(g)},JT)},[g,k,T,sn]);ae.useEffect(()=>{if(g.promise&&St==="loading"||g.duration===1/0||g.type==="loading")return;let Te;return M||N||Mt?(()=>{if(ei.current<ol.current){const Ot=new Date().getTime()-ol.current;ot.current=ot.current-Ot}ei.current=new Date().getTime()})():(()=>{ot.current!==1/0&&(ol.current=new Date().getTime(),Te=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),On()},ot.current))})(),()=>clearTimeout(Te)},[M,N,g,St,Mt,On]),ae.useEffect(()=>{g.delete&&(On(),g.onDismiss==null||g.onDismiss.call(g,g))},[On,g.delete]);function Ll(){var Te;if($!=null&&$.loading){var at;return ae.createElement("div",{className:Bn(O==null?void 0:O.loader,g==null||(at=g.classNames)==null?void 0:at.loader,"sonner-loader"),"data-visible":St==="loading"},$.loading)}return ae.createElement(DT,{className:Bn(O==null?void 0:O.loader,g==null||(Te=g.classNames)==null?void 0:Te.loader),visible:St==="loading"})}const Ul=g.icon||($==null?void 0:$[St])||MT(St);var sl,Dn;return ae.createElement("li",{tabIndex:0,ref:mt,className:Bn(se,xe,O==null?void 0:O.toast,g==null||(l=g.classNames)==null?void 0:l.toast,O==null?void 0:O.default,O==null?void 0:O[St],g==null||(o=g.classNames)==null?void 0:o[St]),"data-sonner-toast":"","data-rich-colors":(sl=g.richColors)!=null?sl:Y,"data-styled":!(g.jsx||g.unstyled||w),"data-mounted":K,"data-promise":!!g.promise,"data-swiped":ye,"data-removed":ee,"data-visible":rl,"data-y-position":il,"data-x-position":Lt,"data-index":A,"data-front":ll,"data-swiping":te,"data-dismissible":Sn,"data-type":St,"data-invert":fc,"data-swipe-out":J,"data-swipe-direction":j,"data-expanded":!!(M||re&&K),"data-testid":g.testId,style:{"--index":A,"--toasts-before":A,"--z-index":_.length-A,"--offset":`${ee?Ve:sn.current}px`,"--initial-height":re?"auto":`${je}px`,...V,...g.style},onDragEnd:()=>{ie(!1),Q(null),xa.current=null},onPointerDown:Te=>{Te.button!==2&&(qr||!Sn||(zt.current=new Date,Le(sn.current),Te.target.setPointerCapture(Te.pointerId),Te.target.tagName!=="BUTTON"&&(ie(!0),xa.current={x:Te.clientX,y:Te.clientY})))},onPointerUp:()=>{var Te,at,wt;if(J||!Sn)return;xa.current=null;const Ot=Number(((Te=mt.current)==null?void 0:Te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Sa=Number(((at=mt.current)==null?void 0:at.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),it=new Date().getTime()-((wt=zt.current)==null?void 0:wt.getTime()),Bt=de==="x"?Ot:Sa,cl=Math.abs(Bt)/it;if(Math.abs(Bt)>=FT||cl>.11){Le(sn.current),g.onDismiss==null||g.onDismiss.call(g,g),G(de==="x"?Ot>0?"right":"left":Sa>0?"down":"up"),On(),be(!0);return}else{var Ht,Vt;(Ht=mt.current)==null||Ht.style.setProperty("--swipe-amount-x","0px"),(Vt=mt.current)==null||Vt.style.setProperty("--swipe-amount-y","0px")}Se(!1),ie(!1),Q(null)},onPointerMove:Te=>{var at,wt,Ot;if(!xa.current||!Sn||((at=window.getSelection())==null?void 0:at.toString().length)>0)return;const it=Te.clientY-xa.current.y,Bt=Te.clientX-xa.current.x;var cl;const Ht=(cl=n.swipeDirections)!=null?cl:WT(ue);!de&&(Math.abs(Bt)>1||Math.abs(it)>1)&&Q(Math.abs(Bt)>Math.abs(it)?"x":"y");let Vt={x:0,y:0};const Bl=En=>1/(1.5+Math.abs(En)/20);if(de==="y"){if(Ht.includes("top")||Ht.includes("bottom"))if(Ht.includes("top")&&it<0||Ht.includes("bottom")&&it>0)Vt.y=it;else{const En=it*Bl(it);Vt.y=Math.abs(En)<Math.abs(it)?En:it}}else if(de==="x"&&(Ht.includes("left")||Ht.includes("right")))if(Ht.includes("left")&&Bt<0||Ht.includes("right")&&Bt>0)Vt.x=Bt;else{const En=Bt*Bl(Bt);Vt.x=Math.abs(En)<Math.abs(Bt)?En:Bt}(Math.abs(Vt.x)>0||Math.abs(Vt.y)>0)&&Se(!0),(wt=mt.current)==null||wt.style.setProperty("--swipe-amount-x",`${Vt.x}px`),(Ot=mt.current)==null||Ot.style.setProperty("--swipe-amount-y",`${Vt.y}px`)}},Tt&&!g.jsx&&St!=="loading"?ae.createElement("button",{"aria-label":F,"data-disabled":qr,"data-close-button":!0,onClick:qr||!Sn?()=>{}:()=>{On(),g.onDismiss==null||g.onDismiss.call(g,g)},className:Bn(O==null?void 0:O.closeButton,g==null||(i=g.classNames)==null?void 0:i.closeButton)},(Dn=$==null?void 0:$.close)!=null?Dn:BT):null,(St||g.icon||g.promise)&&g.icon!==null&&(($==null?void 0:$[St])!==null||g.icon)?ae.createElement("div",{"data-icon":"",className:Bn(O==null?void 0:O.icon,g==null||(c=g.classNames)==null?void 0:c.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||Ll():null,g.type!=="loading"?Ul:null):null,ae.createElement("div",{"data-content":"",className:Bn(O==null?void 0:O.content,g==null||(d=g.classNames)==null?void 0:d.content)},ae.createElement("div",{"data-title":"",className:Bn(O==null?void 0:O.title,g==null||(m=g.classNames)==null?void 0:m.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?ae.createElement("div",{"data-description":"",className:Bn(me,et,O==null?void 0:O.description,g==null||(h=g.classNames)==null?void 0:h.description)},typeof g.description=="function"?g.description():g.description):null),ae.isValidElement(g.cancel)?g.cancel:g.cancel&&vs(g.cancel)?ae.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||H,onClick:Te=>{vs(g.cancel)&&Sn&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,Te),On())},className:Bn(O==null?void 0:O.cancelButton,g==null||(y=g.classNames)==null?void 0:y.cancelButton)},g.cancel.label):null,ae.isValidElement(g.action)?g.action:g.action&&vs(g.action)?ae.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||ne,onClick:Te=>{vs(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,Te),!Te.defaultPrevented&&On())},className:Bn(O==null?void 0:O.actionButton,g==null||(p=g.classNames)==null?void 0:p.actionButton)},g.action.label):null)};function Nv(){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,c)=>{const d=c===1,m=d?"--mobile-offset":"--offset",h=d?QT:KT;function y(p){["top","right","bottom","left"].forEach(x=>{o[`${m}-${x}`]=typeof p=="number"?`${p}px`:p})}typeof i=="number"||typeof i=="string"?y(i):typeof i=="object"?["top","right","bottom","left"].forEach(p=>{i[p]===void 0?o[`${m}-${p}`]=h:o[`${m}-${p}`]=typeof i[p]=="number"?`${i[p]}px`:i[p]}):y(h)}),o}const nC=ae.forwardRef(function(l,o){const{id:i,invert:c,position:d="bottom-right",hotkey:m=["altKey","KeyT"],expand:h,closeButton:y,className:p,offset:x,mobileOffset:g,theme:w="light",richColors:N,duration:T,style:E,visibleToasts:C=XT,toastOptions:A,dir:_=Nv(),gap:M=IT,icons:k,containerAriaLabel:Y="Notifications"}=l,[X,V]=ae.useState([]),H=ae.useMemo(()=>i?X.filter(K=>K.toasterId===i):X.filter(K=>!K.toasterId),[X,i]),ne=ae.useMemo(()=>Array.from(new Set([d].concat(H.filter(K=>K.position).map(K=>K.position)))),[H,d]),[se,me]=ae.useState([]),[ce,ue]=ae.useState(!1),[fe,re]=ae.useState(!1),[O,$]=ae.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),F=ae.useRef(null),de=m.join("+").replace(/Key/g,"").replace(/Digit/g,""),Q=ae.useRef(null),j=ae.useRef(!1),G=ae.useCallback(K=>{V(W=>{var ee;return(ee=W.find(oe=>oe.id===K.id))!=null&&ee.delete||Zt.dismiss(K.id),W.filter(({id:oe})=>oe!==K.id)})},[]);return ae.useEffect(()=>Zt.subscribe(K=>{if(K.dismiss){requestAnimationFrame(()=>{V(W=>W.map(ee=>ee.id===K.id?{...ee,delete:!0}:ee))});return}setTimeout(()=>{j0.flushSync(()=>{V(W=>{const ee=W.findIndex(oe=>oe.id===K.id);return ee!==-1?[...W.slice(0,ee),{...W[ee],...K},...W.slice(ee+1)]:[K,...W]})})})}),[X]),ae.useEffect(()=>{if(w!=="system"){$(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;const K=window.matchMedia("(prefers-color-scheme: dark)");try{K.addEventListener("change",({matches:W})=>{$(W?"dark":"light")})}catch{K.addListener(({matches:ee})=>{try{$(ee?"dark":"light")}catch(oe){console.error(oe)}})}},[w]),ae.useEffect(()=>{X.length<=1&&ue(!1)},[X]),ae.useEffect(()=>{const K=W=>{var ee;if(m.every(ie=>W[ie]||W.code===ie)){var te;ue(!0),(te=F.current)==null||te.focus()}W.code==="Escape"&&(document.activeElement===F.current||(ee=F.current)!=null&&ee.contains(document.activeElement))&&ue(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[m]),ae.useEffect(()=>{if(F.current)return()=>{Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null,j.current=!1)}},[F.current]),ae.createElement("section",{ref:o,"aria-label":`${Y} ${de}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ne.map((K,W)=>{var ee;const[oe,te]=K.split("-");return H.length?ae.createElement("ol",{key:K,dir:_==="auto"?Nv():_,tabIndex:-1,ref:F,className:p,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":oe,"data-x-position":te,style:{"--front-toast-height":`${((ee=se[0])==null?void 0:ee.height)||0}px`,"--width":`${ZT}px`,"--gap":`${M}px`,...E,...tC(x,g)},onBlur:ie=>{j.current&&!ie.currentTarget.contains(ie.relatedTarget)&&(j.current=!1,Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null))},onFocus:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||j.current||(j.current=!0,Q.current=ie.relatedTarget)},onMouseEnter:()=>ue(!0),onMouseMove:()=>ue(!0),onMouseLeave:()=>{fe||ue(!1)},onDragEnd:()=>ue(!1),onPointerDown:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||re(!0)},onPointerUp:()=>re(!1)},H.filter(ie=>!ie.position&&W===0||ie.position===K).map((ie,J)=>{var be,ye;return ae.createElement(eC,{key:ie.id,icons:k,index:J,toast:ie,defaultRichColors:N,duration:(be=A==null?void 0:A.duration)!=null?be:T,className:A==null?void 0:A.className,descriptionClassName:A==null?void 0:A.descriptionClassName,invert:c,visibleToasts:C,closeButton:(ye=A==null?void 0:A.closeButton)!=null?ye:y,interacting:fe,position:K,style:A==null?void 0:A.style,unstyled:A==null?void 0:A.unstyled,classNames:A==null?void 0:A.classNames,cancelButtonStyle:A==null?void 0:A.cancelButtonStyle,actionButtonStyle:A==null?void 0:A.actionButtonStyle,closeButtonAriaLabel:A==null?void 0:A.closeButtonAriaLabel,removeToast:G,toasts:H.filter(Se=>Se.position==ie.position),heights:se.filter(Se=>Se.position==ie.position),setHeights:me,expandByDefault:h,gap:M,expanded:ce,swipeDirections:l.swipeDirections})})):null}))}),Tv=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Cv=G0,ry=(n,l)=>o=>{var i;if((l==null?void 0:l.variants)==null)return Cv(n,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:c,defaultVariants:d}=l,m=Object.keys(c).map(p=>{const x=o==null?void 0:o[p],g=d==null?void 0:d[p];if(x===null)return null;const w=Tv(x)||Tv(g);return c[p][w]}),h=o&&Object.entries(o).reduce((p,x)=>{let[g,w]=x;return w===void 0||(p[g]=w),p},{}),y=l==null||(i=l.compoundVariants)===null||i===void 0?void 0:i.reduce((p,x)=>{let{class:g,className:w,...N}=x;return Object.entries(N).every(T=>{let[E,C]=T;return Array.isArray(C)?C.includes({...d,...h}[E]):{...d,...h}[E]===C})?[...p,g,w]:p},[]);return Cv(n,m,y,o==null?void 0:o.class,o==null?void 0:o.className)},aC=ry("inline-flex items-center rounded-sm 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 xt({className:n,variant:l,...o}){return f.jsx("div",{className:le(aC({variant:l}),n),...o})}const Hn=v.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:le("rounded-lg border bg-card text-card-foreground shadow-sm",n),...l}));Hn.displayName="Card";const Vn=v.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:le("flex flex-col space-y-1.5 p-6",n),...l}));Vn.displayName="CardHeader";const $n=v.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:le("text-2xl font-semibold leading-none tracking-tight",n),...l}));$n.displayName="CardTitle";const Yn=v.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:le("text-sm text-muted-foreground",n),...l}));Yn.displayName="CardDescription";const qn=v.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:le("p-6 pt-0",n),...l}));qn.displayName="CardContent";const lC=v.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:le("flex items-center p-6 pt-0",n),...l}));lC.displayName="CardFooter";function Av(n,l){if(typeof n=="function")return n(l);n!=null&&(n.current=l)}function Af(...n){return l=>{let o=!1;const i=n.map(c=>{const d=Av(c,l);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let c=0;c<i.length;c++){const d=i[c];typeof d=="function"?d():Av(n[c],null)}}}}function We(...n){return v.useCallback(Af(...n),n)}var rC=Symbol.for("react.lazy"),zs=yf[" use ".trim().toString()];function oC(n){return typeof n=="object"&&n!==null&&"then"in n}function oy(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===rC&&"_payload"in n&&oC(n._payload)}function iC(n){const l=cC(n),o=v.forwardRef((i,c)=>{let{children:d,...m}=i;oy(d)&&typeof zs=="function"&&(d=zs(d._payload));const h=v.Children.toArray(d),y=h.find(dC);if(y){const p=y.props.children,x=h.map(g=>g===y?v.Children.count(p)>1?v.Children.only(null):v.isValidElement(p)?p.props.children:null:g);return f.jsx(l,{...m,ref:c,children:v.isValidElement(p)?v.cloneElement(p,void 0,x):null})}return f.jsx(l,{...m,ref:c,children:d})});return o.displayName=`${n}.Slot`,o}var sC=iC("Slot");function cC(n){const l=v.forwardRef((o,i)=>{let{children:c,...d}=o;if(oy(c)&&typeof zs=="function"&&(c=zs(c._payload)),v.isValidElement(c)){const m=mC(c),h=fC(d,c.props);return c.type!==v.Fragment&&(h.ref=i?Af(i,m):m),v.cloneElement(c,h)}return v.Children.count(c)>1?v.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var uC=Symbol("radix.slottable");function dC(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===uC}function fC(n,l){const o={...l};for(const i in l){const c=n[i],d=l[i];/^on[A-Z]/.test(i)?c&&d?o[i]=(...h)=>{const y=d(...h);return c(...h),y}:c&&(o[i]=c):i==="style"?o[i]={...c,...d}:i==="className"&&(o[i]=[c,d].filter(Boolean).join(" "))}return{...n,...o}}function mC(n){var i,c;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=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}const Rf=ry("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-sm 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-sm px-3",lg:"h-11 rounded-lg px-8",icon:"h-10 w-10 rounded-sm"}},defaultVariants:{variant:"default",size:"default"}}),bn=v.forwardRef(({className:n,variant:l,size:o,asChild:i=!1,...c},d)=>{const m=i?sC:"button";return f.jsx(m,{className:le(Rf({variant:l,size:o,className:n})),ref:d,...c})});bn.displayName="Button";function De(n,l,{checkForDefaultPrevented:o=!0}={}){return function(c){if(n==null||n(c),o===!1||!c.defaultPrevented)return l==null?void 0:l(c)}}function hC(n,l){const o=v.createContext(l),i=d=>{const{children:m,...h}=d,y=v.useMemo(()=>h,Object.values(h));return f.jsx(o.Provider,{value:y,children:m})};i.displayName=n+"Provider";function c(d){const m=v.useContext(o);if(m)return m;if(l!==void 0)return l;throw new Error(`\`${d}\` must be used within \`${n}\``)}return[i,c]}function tl(n,l=[]){let o=[];function i(d,m){const h=v.createContext(m),y=o.length;o=[...o,m];const p=g=>{var A;const{scope:w,children:N,...T}=g,E=((A=w==null?void 0:w[n])==null?void 0:A[y])||h,C=v.useMemo(()=>T,Object.values(T));return f.jsx(E.Provider,{value:C,children:N})};p.displayName=d+"Provider";function x(g,w){var E;const N=((E=w==null?void 0:w[n])==null?void 0:E[y])||h,T=v.useContext(N);if(T)return T;if(m!==void 0)return m;throw new Error(`\`${g}\` must be used within \`${d}\``)}return[p,x]}const c=()=>{const d=o.map(m=>v.createContext(m));return function(h){const y=(h==null?void 0:h[n])||d;return v.useMemo(()=>({[`__scope${n}`]:{...h,[n]:y}}),[h,y])}};return c.scopeName=n,[i,pC(c,...l)]}function pC(...n){const l=n[0];if(n.length===1)return l;const o=()=>{const i=n.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(d){const m=i.reduce((h,{useScope:y,scopeName:p})=>{const g=y(d)[`__scope${p}`];return{...h,...g}},{});return v.useMemo(()=>({[`__scope${l.scopeName}`]:m}),[m])}};return o.scopeName=l.scopeName,o}var kt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},gC=yf[" useId ".trim().toString()]||(()=>{}),vC=0;function Za(n){const[l,o]=v.useState(gC());return kt(()=>{o(i=>i??String(vC++))},[n]),l?`radix-${l}`:""}var yC=yf[" useInsertionEffect ".trim().toString()]||kt;function Dr({prop:n,defaultProp:l,onChange:o=()=>{},caller:i}){const[c,d,m]=bC({defaultProp:l,onChange:o}),h=n!==void 0,y=h?n:c;{const x=v.useRef(n!==void 0);v.useEffect(()=>{const g=x.current;g!==h&&console.warn(`${i} is changing from ${g?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=h},[h,i])}const p=v.useCallback(x=>{var g;if(h){const w=xC(x)?x(n):x;w!==n&&((g=m.current)==null||g.call(m,w))}else d(x)},[h,n,d,m]);return[y,p]}function bC({defaultProp:n,onChange:l}){const[o,i]=v.useState(n),c=v.useRef(o),d=v.useRef(l);return yC(()=>{d.current=l},[l]),v.useEffect(()=>{var m;c.current!==o&&((m=d.current)==null||m.call(d,o),c.current=o)},[o,c]),[o,i,d]}function xC(n){return typeof n=="function"}function Ko(n){const l=SC(n),o=v.forwardRef((i,c)=>{const{children:d,...m}=i,h=v.Children.toArray(d),y=h.find(EC);if(y){const p=y.props.children,x=h.map(g=>g===y?v.Children.count(p)>1?v.Children.only(null):v.isValidElement(p)?p.props.children:null:g);return f.jsx(l,{...m,ref:c,children:v.isValidElement(p)?v.cloneElement(p,void 0,x):null})}return f.jsx(l,{...m,ref:c,children:d})});return o.displayName=`${n}.Slot`,o}function SC(n){const l=v.forwardRef((o,i)=>{const{children:c,...d}=o;if(v.isValidElement(c)){const m=TC(c),h=NC(d,c.props);return c.type!==v.Fragment&&(h.ref=i?Af(i,m):m),v.cloneElement(c,h)}return v.Children.count(c)>1?v.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var iy=Symbol("radix.slottable");function wC(n){const l=({children:o})=>f.jsx(f.Fragment,{children:o});return l.displayName=`${n}.Slottable`,l.__radixId=iy,l}function EC(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===iy}function NC(n,l){const o={...l};for(const i in l){const c=n[i],d=l[i];/^on[A-Z]/.test(i)?c&&d?o[i]=(...h)=>{const y=d(...h);return c(...h),y}:c&&(o[i]=c):i==="style"?o[i]={...c,...d}:i==="className"&&(o[i]=[c,d].filter(Boolean).join(" "))}return{...n,...o}}function TC(n){var i,c;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=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var CC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],He=CC.reduce((n,l)=>{const o=Ko(`Primitive.${l}`),i=v.forwardRef((c,d)=>{const{asChild:m,...h}=c,y=m?o:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(y,{...h,ref:d})});return i.displayName=`Primitive.${l}`,{...n,[l]:i}},{});function AC(n,l){n&&Fo.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 RC(n,l=globalThis==null?void 0:globalThis.document){const o=Fa(n);v.useEffect(()=>{const i=c=>{c.key==="Escape"&&o(c)};return l.addEventListener("keydown",i,{capture:!0}),()=>l.removeEventListener("keydown",i,{capture:!0})},[o,l])}var _C="DismissableLayer",nf="dismissableLayer.update",jC="dismissableLayer.pointerDownOutside",MC="dismissableLayer.focusOutside",Rv,sy=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_f=v.forwardRef((n,l)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:m,onDismiss:h,...y}=n,p=v.useContext(sy),[x,g]=v.useState(null),w=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=v.useState({}),T=We(l,V=>g(V)),E=Array.from(p.layers),[C]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),A=E.indexOf(C),_=x?E.indexOf(x):-1,M=p.layersWithOutsidePointerEventsDisabled.size>0,k=_>=A,Y=kC(V=>{const H=V.target,ne=[...p.branches].some(se=>se.contains(H));!k||ne||(c==null||c(V),m==null||m(V),V.defaultPrevented||h==null||h())},w),X=zC(V=>{const H=V.target;[...p.branches].some(se=>se.contains(H))||(d==null||d(V),m==null||m(V),V.defaultPrevented||h==null||h())},w);return RC(V=>{_===p.layers.size-1&&(i==null||i(V),!V.defaultPrevented&&h&&(V.preventDefault(),h()))},w),v.useEffect(()=>{if(x)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Rv=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),_v(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Rv)}},[x,w,o,p]),v.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),_v())},[x,p]),v.useEffect(()=>{const V=()=>N({});return document.addEventListener(nf,V),()=>document.removeEventListener(nf,V)},[]),f.jsx(He.div,{...y,ref:T,style:{pointerEvents:M?k?"auto":"none":void 0,...n.style},onFocusCapture:De(n.onFocusCapture,X.onFocusCapture),onBlurCapture:De(n.onBlurCapture,X.onBlurCapture),onPointerDownCapture:De(n.onPointerDownCapture,Y.onPointerDownCapture)})});_f.displayName=_C;var OC="DismissableLayerBranch",DC=v.forwardRef((n,l)=>{const o=v.useContext(sy),i=v.useRef(null),c=We(l,i);return v.useEffect(()=>{const d=i.current;if(d)return o.branches.add(d),()=>{o.branches.delete(d)}},[o.branches]),f.jsx(He.div,{...n,ref:c})});DC.displayName=OC;function kC(n,l=globalThis==null?void 0:globalThis.document){const o=Fa(n),i=v.useRef(!1),c=v.useRef(()=>{});return v.useEffect(()=>{const d=h=>{if(h.target&&!i.current){let y=function(){cy(jC,o,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(l.removeEventListener("click",c.current),c.current=y,l.addEventListener("click",c.current,{once:!0})):y()}else l.removeEventListener("click",c.current);i.current=!1},m=window.setTimeout(()=>{l.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(m),l.removeEventListener("pointerdown",d),l.removeEventListener("click",c.current)}},[l,o]),{onPointerDownCapture:()=>i.current=!0}}function zC(n,l=globalThis==null?void 0:globalThis.document){const o=Fa(n),i=v.useRef(!1);return v.useEffect(()=>{const c=d=>{d.target&&!i.current&&cy(MC,o,{originalEvent:d},{discrete:!1})};return l.addEventListener("focusin",c),()=>l.removeEventListener("focusin",c)},[l,o]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function _v(){const n=new CustomEvent(nf);document.dispatchEvent(n)}function cy(n,l,o,{discrete:i}){const c=o.originalEvent.target,d=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});l&&c.addEventListener(n,l,{once:!0}),i?AC(c,d):c.dispatchEvent(d)}var kd="focusScope.autoFocusOnMount",zd="focusScope.autoFocusOnUnmount",jv={bubbles:!1,cancelable:!0},LC="FocusScope",jf=v.forwardRef((n,l)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...m}=n,[h,y]=v.useState(null),p=Fa(c),x=Fa(d),g=v.useRef(null),w=We(l,E=>y(E)),N=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let E=function(M){if(N.paused||!h)return;const k=M.target;h.contains(k)?g.current=k:Qa(g.current,{select:!0})},C=function(M){if(N.paused||!h)return;const k=M.relatedTarget;k!==null&&(h.contains(k)||Qa(g.current,{select:!0}))},A=function(M){if(document.activeElement===document.body)for(const Y of M)Y.removedNodes.length>0&&Qa(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",C);const _=new MutationObserver(A);return h&&_.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",C),_.disconnect()}}},[i,h,N.paused]),v.useEffect(()=>{if(h){Ov.add(N);const E=document.activeElement;if(!h.contains(E)){const A=new CustomEvent(kd,jv);h.addEventListener(kd,p),h.dispatchEvent(A),A.defaultPrevented||(UC(YC(uy(h)),{select:!0}),document.activeElement===E&&Qa(h))}return()=>{h.removeEventListener(kd,p),setTimeout(()=>{const A=new CustomEvent(zd,jv);h.addEventListener(zd,x),h.dispatchEvent(A),A.defaultPrevented||Qa(E??document.body,{select:!0}),h.removeEventListener(zd,x),Ov.remove(N)},0)}}},[h,p,x,N]);const T=v.useCallback(E=>{if(!o&&!i||N.paused)return;const C=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,A=document.activeElement;if(C&&A){const _=E.currentTarget,[M,k]=BC(_);M&&k?!E.shiftKey&&A===k?(E.preventDefault(),o&&Qa(M,{select:!0})):E.shiftKey&&A===M&&(E.preventDefault(),o&&Qa(k,{select:!0})):A===_&&E.preventDefault()}},[o,i,N.paused]);return f.jsx(He.div,{tabIndex:-1,...m,ref:w,onKeyDown:T})});jf.displayName=LC;function UC(n,{select:l=!1}={}){const o=document.activeElement;for(const i of n)if(Qa(i,{select:l}),document.activeElement!==o)return}function BC(n){const l=uy(n),o=Mv(l,n),i=Mv(l.reverse(),n);return[o,i]}function uy(n){const l=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const c=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||c?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(!HC(o,{upTo:l}))return o}function HC(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 VC(n){return n instanceof HTMLInputElement&&"select"in n}function Qa(n,{select:l=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&VC(n)&&l&&n.select()}}var Ov=$C();function $C(){let n=[];return{add(l){const o=n[0];l!==o&&(o==null||o.pause()),n=Dv(n,l),n.unshift(l)},remove(l){var o;n=Dv(n,l),(o=n[0])==null||o.resume()}}}function Dv(n,l){const o=[...n],i=o.indexOf(l);return i!==-1&&o.splice(i,1),o}function YC(n){return n.filter(l=>l.tagName!=="A")}var qC="Portal",Mf=v.forwardRef((n,l)=>{var h;const{container:o,...i}=n,[c,d]=v.useState(!1);kt(()=>d(!0),[]);const m=o||c&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return m?j0.createPortal(f.jsx(He.div,{...i,ref:l}),m):null});Mf.displayName=qC;function GC(n,l){return v.useReducer((o,i)=>l[o][i]??o,n)}var Hr=n=>{const{present:l,children:o}=n,i=PC(l),c=typeof o=="function"?o({present:i.isPresent}):v.Children.only(o),d=We(i.ref,XC(c));return typeof o=="function"||i.isPresent?v.cloneElement(c,{ref:d}):null};Hr.displayName="Presence";function PC(n){const[l,o]=v.useState(),i=v.useRef(null),c=v.useRef(n),d=v.useRef("none"),m=n?"mounted":"unmounted",[h,y]=GC(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=ys(i.current);d.current=h==="mounted"?p:"none"},[h]),kt(()=>{const p=i.current,x=c.current;if(x!==n){const w=d.current,N=ys(p);n?y("MOUNT"):N==="none"||(p==null?void 0:p.display)==="none"?y("UNMOUNT"):y(x&&w!==N?"ANIMATION_OUT":"UNMOUNT"),c.current=n}},[n,y]),kt(()=>{if(l){let p;const x=l.ownerDocument.defaultView??window,g=N=>{const E=ys(i.current).includes(CSS.escape(N.animationName));if(N.target===l&&E&&(y("ANIMATION_END"),!c.current)){const C=l.style.animationFillMode;l.style.animationFillMode="forwards",p=x.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=C)})}},w=N=>{N.target===l&&(d.current=ys(i.current))};return l.addEventListener("animationstart",w),l.addEventListener("animationcancel",g),l.addEventListener("animationend",g),()=>{x.clearTimeout(p),l.removeEventListener("animationstart",w),l.removeEventListener("animationcancel",g),l.removeEventListener("animationend",g)}}else y("ANIMATION_END")},[l,y]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:v.useCallback(p=>{i.current=p?getComputedStyle(p):null,o(p)},[])}}function ys(n){return(n==null?void 0:n.animationName)||"none"}function XC(n){var i,c;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=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var Ld=0;function dy(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??kv()),document.body.insertAdjacentElement("beforeend",n[1]??kv()),Ld++,()=>{Ld===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),Ld--}},[])}function kv(){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 Gn=function(){return Gn=Object.assign||function(l){for(var o,i=1,c=arguments.length;i<c;i++){o=arguments[i];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(l[d]=o[d])}return l},Gn.apply(this,arguments)};function fy(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 c=0,i=Object.getOwnPropertySymbols(n);c<i.length;c++)l.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(n,i[c])&&(o[i[c]]=n[i[c]]);return o}function KC(n,l,o){if(o||arguments.length===2)for(var i=0,c=l.length,d;i<c;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 Cs="right-scroll-bar-position",As="width-before-scroll-bar",QC="with-scroll-bars-hidden",ZC="--removed-body-scroll-bar-size";function Ud(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function IC(n,l){var o=v.useState(function(){return{value:n,callback:l,facade:{get current(){return o.value},set current(i){var c=o.value;c!==i&&(o.value=i,o.callback(i,c))}}}})[0];return o.callback=l,o.facade}var FC=typeof window<"u"?v.useLayoutEffect:v.useEffect,zv=new WeakMap;function JC(n,l){var o=IC(null,function(i){return n.forEach(function(c){return Ud(c,i)})});return FC(function(){var i=zv.get(o);if(i){var c=new Set(i),d=new Set(n),m=o.current;c.forEach(function(h){d.has(h)||Ud(h,null)}),d.forEach(function(h){c.has(h)||Ud(h,m)})}zv.set(o,n)},[n]),o}function WC(n){return n}function e5(n,l){l===void 0&&(l=WC);var o=[],i=!1,c={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 m=l(d,i);return o.push(m),function(){o=o.filter(function(h){return h!==m})}},assignSyncMedium:function(d){for(i=!0;o.length;){var m=o;o=[],m.forEach(d)}o={push:function(h){return d(h)},filter:function(){return o}}},assignMedium:function(d){i=!0;var m=[];if(o.length){var h=o;o=[],h.forEach(d),m=o}var y=function(){var x=m;m=[],x.forEach(d)},p=function(){return Promise.resolve().then(y)};p(),o={push:function(x){m.push(x),p()},filter:function(x){return m=m.filter(x),o}}}};return c}function t5(n){n===void 0&&(n={});var l=e5(null);return l.options=Gn({async:!0,ssr:!1},n),l}var my=function(n){var l=n.sideCar,o=fy(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,Gn({},o))};my.isSideCarExport=!0;function n5(n,l){return n.useMedium(l),my}var hy=t5(),Bd=function(){},ec=v.forwardRef(function(n,l){var o=v.useRef(null),i=v.useState({onScrollCapture:Bd,onWheelCapture:Bd,onTouchMoveCapture:Bd}),c=i[0],d=i[1],m=n.forwardProps,h=n.children,y=n.className,p=n.removeScrollBar,x=n.enabled,g=n.shards,w=n.sideCar,N=n.noRelative,T=n.noIsolation,E=n.inert,C=n.allowPinchZoom,A=n.as,_=A===void 0?"div":A,M=n.gapMode,k=fy(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Y=w,X=JC([o,l]),V=Gn(Gn({},k),c);return v.createElement(v.Fragment,null,x&&v.createElement(Y,{sideCar:hy,removeScrollBar:p,shards:g,noRelative:N,noIsolation:T,inert:E,setCallbacks:d,allowPinchZoom:!!C,lockRef:o,gapMode:M}),m?v.cloneElement(v.Children.only(h),Gn(Gn({},V),{ref:X})):v.createElement(_,Gn({},V,{className:y,ref:X}),h))});ec.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ec.classNames={fullWidth:As,zeroRight:Cs};var a5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function l5(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=a5();return l&&n.setAttribute("nonce",l),n}function r5(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function o5(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var i5=function(){var n=0,l=null;return{add:function(o){n==0&&(l=l5())&&(r5(l,o),o5(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},s5=function(){var n=i5();return function(l,o){v.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&o])}},py=function(){var n=s5(),l=function(o){var i=o.styles,c=o.dynamic;return n(i,c),null};return l},c5={left:0,top:0,right:0,gap:0},Hd=function(n){return parseInt(n||"",10)||0},u5=function(n){var l=window.getComputedStyle(document.body),o=l[n==="padding"?"paddingLeft":"marginLeft"],i=l[n==="padding"?"paddingTop":"marginTop"],c=l[n==="padding"?"paddingRight":"marginRight"];return[Hd(o),Hd(i),Hd(c)]},d5=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return c5;var l=u5(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])}},f5=py(),jr="data-scroll-locked",m5=function(n,l,o,i){var c=n.left,d=n.top,m=n.right,h=n.gap;return o===void 0&&(o="margin"),`
272
+ .`.concat(QC,` {
273
+ overflow: hidden `).concat(i,`;
274
+ padding-right: `).concat(h,"px ").concat(i,`;
275
+ }
276
+ body[`).concat(jr,`] {
277
+ overflow: hidden `).concat(i,`;
278
+ overscroll-behavior: contain;
279
+ `).concat([l&&"position: relative ".concat(i,";"),o==="margin"&&`
280
+ padding-left: `.concat(c,`px;
281
+ padding-top: `).concat(d,`px;
282
+ padding-right: `).concat(m,`px;
283
+ margin-left:0;
284
+ margin-top:0;
285
+ margin-right: `).concat(h,"px ").concat(i,`;
286
+ `),o==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
287
+ }
288
+
289
+ .`).concat(Cs,` {
290
+ right: `).concat(h,"px ").concat(i,`;
291
+ }
292
+
293
+ .`).concat(As,` {
294
+ margin-right: `).concat(h,"px ").concat(i,`;
295
+ }
296
+
297
+ .`).concat(Cs," .").concat(Cs,` {
298
+ right: 0 `).concat(i,`;
299
+ }
300
+
301
+ .`).concat(As," .").concat(As,` {
302
+ margin-right: 0 `).concat(i,`;
303
+ }
304
+
305
+ body[`).concat(jr,`] {
306
+ `).concat(ZC,": ").concat(h,`px;
307
+ }
308
+ `)},Lv=function(){var n=parseInt(document.body.getAttribute(jr)||"0",10);return isFinite(n)?n:0},h5=function(){v.useEffect(function(){return document.body.setAttribute(jr,(Lv()+1).toString()),function(){var n=Lv()-1;n<=0?document.body.removeAttribute(jr):document.body.setAttribute(jr,n.toString())}},[])},p5=function(n){var l=n.noRelative,o=n.noImportant,i=n.gapMode,c=i===void 0?"margin":i;h5();var d=v.useMemo(function(){return d5(c)},[c]);return v.createElement(f5,{styles:m5(d,!l,c,o?"":"!important")})},af=!1;if(typeof window<"u")try{var bs=Object.defineProperty({},"passive",{get:function(){return af=!0,!0}});window.addEventListener("test",bs,bs),window.removeEventListener("test",bs,bs)}catch{af=!1}var Er=af?{passive:!1}:!1,g5=function(n){return n.tagName==="TEXTAREA"},gy=function(n,l){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[l]!=="hidden"&&!(o.overflowY===o.overflowX&&!g5(n)&&o[l]==="visible")},v5=function(n){return gy(n,"overflowY")},y5=function(n){return gy(n,"overflowX")},Uv=function(n,l){var o=l.ownerDocument,i=l;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var c=vy(n,i);if(c){var d=yy(n,i),m=d[1],h=d[2];if(m>h)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},b5=function(n){var l=n.scrollTop,o=n.scrollHeight,i=n.clientHeight;return[l,o,i]},x5=function(n){var l=n.scrollLeft,o=n.scrollWidth,i=n.clientWidth;return[l,o,i]},vy=function(n,l){return n==="v"?v5(l):y5(l)},yy=function(n,l){return n==="v"?b5(l):x5(l)},S5=function(n,l){return n==="h"&&l==="rtl"?-1:1},w5=function(n,l,o,i,c){var d=S5(n,window.getComputedStyle(l).direction),m=d*i,h=o.target,y=l.contains(h),p=!1,x=m>0,g=0,w=0;do{if(!h)break;var N=yy(n,h),T=N[0],E=N[1],C=N[2],A=E-C-d*T;(T||A)&&vy(n,h)&&(g+=A,w+=T);var _=h.parentNode;h=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!y&&h!==document.body||y&&(l.contains(h)||l===h));return(x&&Math.abs(g)<1||!x&&Math.abs(w)<1)&&(p=!0),p},xs=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Bv=function(n){return[n.deltaX,n.deltaY]},Hv=function(n){return n&&"current"in n?n.current:n},E5=function(n,l){return n[0]===l[0]&&n[1]===l[1]},N5=function(n){return`
309
+ .block-interactivity-`.concat(n,` {pointer-events: none;}
310
+ .allow-interactivity-`).concat(n,` {pointer-events: all;}
311
+ `)},T5=0,Nr=[];function C5(n){var l=v.useRef([]),o=v.useRef([0,0]),i=v.useRef(),c=v.useState(T5++)[0],d=v.useState(py)[0],m=v.useRef(n);v.useEffect(function(){m.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(c));var E=KC([n.lockRef.current],(n.shards||[]).map(Hv),!0).filter(Boolean);return E.forEach(function(C){return C.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),E.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(c))})}}},[n.inert,n.lockRef.current,n.shards]);var h=v.useCallback(function(E,C){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!m.current.allowPinchZoom;var A=xs(E),_=o.current,M="deltaX"in E?E.deltaX:_[0]-A[0],k="deltaY"in E?E.deltaY:_[1]-A[1],Y,X=E.target,V=Math.abs(M)>Math.abs(k)?"h":"v";if("touches"in E&&V==="h"&&X.type==="range")return!1;var H=window.getSelection(),ne=H&&H.anchorNode,se=ne?ne===X||ne.contains(X):!1;if(se)return!1;var me=Uv(V,X);if(!me)return!0;if(me?Y=V:(Y=V==="v"?"h":"v",me=Uv(V,X)),!me)return!1;if(!i.current&&"changedTouches"in E&&(M||k)&&(i.current=Y),!Y)return!0;var ce=i.current||Y;return w5(ce,C,E,ce==="h"?M:k)},[]),y=v.useCallback(function(E){var C=E;if(!(!Nr.length||Nr[Nr.length-1]!==d)){var A="deltaY"in C?Bv(C):xs(C),_=l.current.filter(function(Y){return Y.name===C.type&&(Y.target===C.target||C.target===Y.shadowParent)&&E5(Y.delta,A)})[0];if(_&&_.should){C.cancelable&&C.preventDefault();return}if(!_){var M=(m.current.shards||[]).map(Hv).filter(Boolean).filter(function(Y){return Y.contains(C.target)}),k=M.length>0?h(C,M[0]):!m.current.noIsolation;k&&C.cancelable&&C.preventDefault()}}},[]),p=v.useCallback(function(E,C,A,_){var M={name:E,delta:C,target:A,should:_,shadowParent:A5(A)};l.current.push(M),setTimeout(function(){l.current=l.current.filter(function(k){return k!==M})},1)},[]),x=v.useCallback(function(E){o.current=xs(E),i.current=void 0},[]),g=v.useCallback(function(E){p(E.type,Bv(E),E.target,h(E,n.lockRef.current))},[]),w=v.useCallback(function(E){p(E.type,xs(E),E.target,h(E,n.lockRef.current))},[]);v.useEffect(function(){return Nr.push(d),n.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:w}),document.addEventListener("wheel",y,Er),document.addEventListener("touchmove",y,Er),document.addEventListener("touchstart",x,Er),function(){Nr=Nr.filter(function(E){return E!==d}),document.removeEventListener("wheel",y,Er),document.removeEventListener("touchmove",y,Er),document.removeEventListener("touchstart",x,Er)}},[]);var N=n.removeScrollBar,T=n.inert;return v.createElement(v.Fragment,null,T?v.createElement(d,{styles:N5(c)}):null,N?v.createElement(p5,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function A5(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const R5=n5(hy,C5);var Of=v.forwardRef(function(n,l){return v.createElement(ec,Gn({},n,{ref:l,sideCar:R5}))});Of.classNames=ec.classNames;var _5=function(n){if(typeof document>"u")return null;var l=Array.isArray(n)?n[0]:n;return l.ownerDocument.body},Tr=new WeakMap,Ss=new WeakMap,ws={},Vd=0,by=function(n){return n&&(n.host||by(n.parentNode))},j5=function(n,l){return l.map(function(o){if(n.contains(o))return o;var i=by(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})},M5=function(n,l,o,i){var c=j5(l,Array.isArray(n)?n:[n]);ws[o]||(ws[o]=new WeakMap);var d=ws[o],m=[],h=new Set,y=new Set(c),p=function(g){!g||h.has(g)||(h.add(g),p(g.parentNode))};c.forEach(p);var x=function(g){!g||y.has(g)||Array.prototype.forEach.call(g.children,function(w){if(h.has(w))x(w);else try{var N=w.getAttribute(i),T=N!==null&&N!=="false",E=(Tr.get(w)||0)+1,C=(d.get(w)||0)+1;Tr.set(w,E),d.set(w,C),m.push(w),E===1&&T&&Ss.set(w,!0),C===1&&w.setAttribute(o,"true"),T||w.setAttribute(i,"true")}catch(A){console.error("aria-hidden: cannot operate on ",w,A)}})};return x(l),h.clear(),Vd++,function(){m.forEach(function(g){var w=Tr.get(g)-1,N=d.get(g)-1;Tr.set(g,w),d.set(g,N),w||(Ss.has(g)||g.removeAttribute(i),Ss.delete(g)),N||g.removeAttribute(o)}),Vd--,Vd||(Tr=new WeakMap,Tr=new WeakMap,Ss=new WeakMap,ws={})}},xy=function(n,l,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),c=_5(n);return c?(i.push.apply(i,Array.from(c.querySelectorAll("[aria-live], script"))),M5(i,c,o,"aria-hidden")):function(){return null}},tc="Dialog",[Sy,wy]=tl(tc),[O5,Mn]=Sy(tc),Ey=n=>{const{__scopeDialog:l,children:o,open:i,defaultOpen:c,onOpenChange:d,modal:m=!0}=n,h=v.useRef(null),y=v.useRef(null),[p,x]=Dr({prop:i,defaultProp:c??!1,onChange:d,caller:tc});return f.jsx(O5,{scope:l,triggerRef:h,contentRef:y,contentId:Za(),titleId:Za(),descriptionId:Za(),open:p,onOpenChange:x,onOpenToggle:v.useCallback(()=>x(g=>!g),[x]),modal:m,children:o})};Ey.displayName=tc;var Ny="DialogTrigger",Ty=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,c=Mn(Ny,o),d=We(l,c.triggerRef);return f.jsx(He.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":zf(c.open),...i,ref:d,onClick:De(n.onClick,c.onOpenToggle)})});Ty.displayName=Ny;var Df="DialogPortal",[D5,Cy]=Sy(Df,{forceMount:void 0}),Ay=n=>{const{__scopeDialog:l,forceMount:o,children:i,container:c}=n,d=Mn(Df,l);return f.jsx(D5,{scope:l,forceMount:o,children:v.Children.map(i,m=>f.jsx(Hr,{present:o||d.open,children:f.jsx(Mf,{asChild:!0,container:c,children:m})}))})};Ay.displayName=Df;var Ls="DialogOverlay",Ry=v.forwardRef((n,l)=>{const o=Cy(Ls,n.__scopeDialog),{forceMount:i=o.forceMount,...c}=n,d=Mn(Ls,n.__scopeDialog);return d.modal?f.jsx(Hr,{present:i||d.open,children:f.jsx(z5,{...c,ref:l})}):null});Ry.displayName=Ls;var k5=Ko("DialogOverlay.RemoveScroll"),z5=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,c=Mn(Ls,o);return f.jsx(Of,{as:k5,allowPinchZoom:!0,shards:[c.contentRef],children:f.jsx(He.div,{"data-state":zf(c.open),...i,ref:l,style:{pointerEvents:"auto",...i.style}})})}),Ml="DialogContent",_y=v.forwardRef((n,l)=>{const o=Cy(Ml,n.__scopeDialog),{forceMount:i=o.forceMount,...c}=n,d=Mn(Ml,n.__scopeDialog);return f.jsx(Hr,{present:i||d.open,children:d.modal?f.jsx(L5,{...c,ref:l}):f.jsx(U5,{...c,ref:l})})});_y.displayName=Ml;var L5=v.forwardRef((n,l)=>{const o=Mn(Ml,n.__scopeDialog),i=v.useRef(null),c=We(l,o.contentRef,i);return v.useEffect(()=>{const d=i.current;if(d)return xy(d)},[]),f.jsx(jy,{...n,ref:c,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:De(n.onCloseAutoFocus,d=>{var m;d.preventDefault(),(m=o.triggerRef.current)==null||m.focus()}),onPointerDownOutside:De(n.onPointerDownOutside,d=>{const m=d.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0;(m.button===2||h)&&d.preventDefault()}),onFocusOutside:De(n.onFocusOutside,d=>d.preventDefault())})}),U5=v.forwardRef((n,l)=>{const o=Mn(Ml,n.__scopeDialog),i=v.useRef(!1),c=v.useRef(!1);return f.jsx(jy,{...n,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var m,h;(m=n.onCloseAutoFocus)==null||m.call(n,d),d.defaultPrevented||(i.current||(h=o.triggerRef.current)==null||h.focus(),d.preventDefault()),i.current=!1,c.current=!1},onInteractOutside:d=>{var y,p;(y=n.onInteractOutside)==null||y.call(n,d),d.defaultPrevented||(i.current=!0,d.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=d.target;((p=o.triggerRef.current)==null?void 0:p.contains(m))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&c.current&&d.preventDefault()}})}),jy=v.forwardRef((n,l)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:c,onCloseAutoFocus:d,...m}=n,h=Mn(Ml,o),y=v.useRef(null),p=We(l,y);return dy(),f.jsxs(f.Fragment,{children:[f.jsx(jf,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:c,onUnmountAutoFocus:d,children:f.jsx(_f,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":zf(h.open),...m,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(H5,{titleId:h.titleId}),f.jsx($5,{contentRef:y,descriptionId:h.descriptionId})]})]})}),kf="DialogTitle",My=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,c=Mn(kf,o);return f.jsx(He.h2,{id:c.titleId,...i,ref:l})});My.displayName=kf;var Oy="DialogDescription",Dy=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,c=Mn(Oy,o);return f.jsx(He.p,{id:c.descriptionId,...i,ref:l})});Dy.displayName=Oy;var ky="DialogClose",zy=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,c=Mn(ky,o);return f.jsx(He.button,{type:"button",...i,ref:l,onClick:De(n.onClick,()=>c.onOpenChange(!1))})});zy.displayName=ky;function zf(n){return n?"open":"closed"}var Ly="DialogTitleWarning",[B5,Uy]=hC(Ly,{contentName:Ml,titleName:kf,docsSlug:"dialog"}),H5=({titleId:n})=>{const l=Uy(Ly),o=`\`${l.contentName}\` requires a \`${l.titleName}\` for the component to be accessible for screen reader users.
312
+
313
+ If you want to hide the \`${l.titleName}\`, you can wrap it with our VisuallyHidden component.
314
+
315
+ 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},V5="DialogDescriptionWarning",$5=({contentRef:n,descriptionId:l})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Uy(V5).contentName}}.`;return v.useEffect(()=>{var d;const c=(d=n.current)==null?void 0:d.getAttribute("aria-describedby");l&&c&&(document.getElementById(l)||console.warn(i))},[i,n,l]),null},By=Ey,Hy=Ty,Vy=Ay,Lf=Ry,Uf=_y,Bf=My,Hf=Dy,nc=zy;const Y5=By,q5=Hy,G5=Vy,Jj=nc,$y=v.forwardRef(({className:n,...l},o)=>f.jsx(Lf,{ref:o,className:le("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...l}));$y.displayName=Lf.displayName;const Yy=v.forwardRef(({className:n,children:l,...o},i)=>f.jsxs(G5,{children:[f.jsx($y,{}),f.jsxs(Uf,{ref:i,className:le("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-xl 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,f.jsxs(nc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[f.jsx(Y0,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Yy.displayName=Uf.displayName;const qy=({className:n,...l})=>f.jsx("div",{className:le("flex flex-col space-y-1.5 text-center sm:text-left",n),...l});qy.displayName="DialogHeader";const P5=({className:n,...l})=>f.jsx("div",{className:le("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...l});P5.displayName="DialogFooter";const Gy=v.forwardRef(({className:n,...l},o)=>f.jsx(Bf,{ref:o,className:le("text-lg font-semibold leading-none tracking-tight",n),...l}));Gy.displayName=Bf.displayName;const Py=v.forwardRef(({className:n,...l},o)=>f.jsx(Hf,{ref:o,className:le("text-sm text-muted-foreground",n),...l}));Py.displayName=Hf.displayName;function X5({children:n,open:l,onOpenChange:o,showTrigger:i=!0}){const[c,d]=v.useState(!1),m=l??c,h=v.useCallback(y=>{l===void 0&&d(y),o==null||o(y)},[l,o]);return f.jsxs(Y5,{open:m,onOpenChange:h,children:[i&&f.jsx(q5,{asChild:!0,children:f.jsx(bn,{variant:"ghost",size:"icon","aria-label":"Settings",title:"Settings",className:"h-8 w-8 rounded-sm text-muted-foreground hover:bg-muted/50 hover:text-foreground",children:f.jsx(MN,{className:"h-4 w-4"})})}),f.jsxs(Yy,{className:"settings-dialog-content grid h-[min(78vh,38rem)] max-h-[78vh] max-w-[min(86vw,50rem)] grid-rows-[auto_minmax(0,1fr)] gap-0 overflow-hidden rounded-xl border-border/70 bg-background/96 p-0 shadow-[0_40px_120px_-56px_rgba(15,23,42,0.75)] backdrop-blur-xl",children:[f.jsxs(qy,{className:"shrink-0 border-b border-border/60 px-3 py-1.5 sm:px-3.5",children:[f.jsxs(Gy,{className:"flex items-center gap-1.5 text-[11px]",children:[f.jsx(gN,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),f.jsx(Py,{className:"text-[10px]",children:"Session diagnostics, access configuration, and build metadata for the current Meshy node."})]}),f.jsx("div",{className:"min-h-0 overflow-y-auto px-2.5 pb-2 pt-0 sm:px-3 sm:pb-2.5",children:n})]})]})}function Vv(n,[l,o]){return Math.min(o,Math.max(l,n))}function Xy(n){const l=n+"CollectionProvider",[o,i]=tl(l),[c,d]=o(l,{collectionRef:{current:null},itemMap:new Map}),m=E=>{const{scope:C,children:A}=E,_=ae.useRef(null),M=ae.useRef(new Map).current;return f.jsx(c,{scope:C,itemMap:M,collectionRef:_,children:A})};m.displayName=l;const h=n+"CollectionSlot",y=Ko(h),p=ae.forwardRef((E,C)=>{const{scope:A,children:_}=E,M=d(h,A),k=We(C,M.collectionRef);return f.jsx(y,{ref:k,children:_})});p.displayName=h;const x=n+"CollectionItemSlot",g="data-radix-collection-item",w=Ko(x),N=ae.forwardRef((E,C)=>{const{scope:A,children:_,...M}=E,k=ae.useRef(null),Y=We(C,k),X=d(x,A);return ae.useEffect(()=>(X.itemMap.set(k,{ref:k,...M}),()=>void X.itemMap.delete(k))),f.jsx(w,{[g]:"",ref:Y,children:_})});N.displayName=x;function T(E){const C=d(n+"CollectionConsumer",E);return ae.useCallback(()=>{const _=C.collectionRef.current;if(!_)return[];const M=Array.from(_.querySelectorAll(`[${g}]`));return Array.from(C.itemMap.values()).sort((X,V)=>M.indexOf(X.ref.current)-M.indexOf(V.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:m,Slot:p,ItemSlot:N},T,i]}var K5=v.createContext(void 0);function Vf(n){const l=v.useContext(K5);return n||l||"ltr"}const Q5=["top","right","bottom","left"],Ja=Math.min,ln=Math.max,Us=Math.round,Es=Math.floor,Kn=n=>({x:n,y:n}),Z5={left:"right",right:"left",bottom:"top",top:"bottom"};function lf(n,l,o){return ln(n,Ja(l,o))}function ga(n,l){return typeof n=="function"?n(l):n}function va(n){return n.split("-")[0]}function Vr(n){return n.split("-")[1]}function $f(n){return n==="x"?"y":"x"}function Yf(n){return n==="y"?"height":"width"}function Pn(n){const l=n[0];return l==="t"||l==="b"?"y":"x"}function qf(n){return $f(Pn(n))}function I5(n,l,o){o===void 0&&(o=!1);const i=Vr(n),c=qf(n),d=Yf(c);let m=c==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return l.reference[d]>l.floating[d]&&(m=Bs(m)),[m,Bs(m)]}function F5(n){const l=Bs(n);return[rf(n),l,rf(l)]}function rf(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const $v=["left","right"],Yv=["right","left"],J5=["top","bottom"],W5=["bottom","top"];function eA(n,l,o){switch(n){case"top":case"bottom":return o?l?Yv:$v:l?$v:Yv;case"left":case"right":return l?J5:W5;default:return[]}}function tA(n,l,o,i){const c=Vr(n);let d=eA(va(n),o==="start",i);return c&&(d=d.map(m=>m+"-"+c),l&&(d=d.concat(d.map(rf)))),d}function Bs(n){const l=va(n);return Z5[l]+n.slice(l.length)}function nA(n){return{top:0,right:0,bottom:0,left:0,...n}}function Ky(n){return typeof n!="number"?nA(n):{top:n,right:n,bottom:n,left:n}}function Hs(n){const{x:l,y:o,width:i,height:c}=n;return{width:i,height:c,top:o,left:l,right:l+i,bottom:o+c,x:l,y:o}}function qv(n,l,o){let{reference:i,floating:c}=n;const d=Pn(l),m=qf(l),h=Yf(m),y=va(l),p=d==="y",x=i.x+i.width/2-c.width/2,g=i.y+i.height/2-c.height/2,w=i[h]/2-c[h]/2;let N;switch(y){case"top":N={x,y:i.y-c.height};break;case"bottom":N={x,y:i.y+i.height};break;case"right":N={x:i.x+i.width,y:g};break;case"left":N={x:i.x-c.width,y:g};break;default:N={x:i.x,y:i.y}}switch(Vr(l)){case"start":N[m]-=w*(o&&p?-1:1);break;case"end":N[m]+=w*(o&&p?-1:1);break}return N}async function aA(n,l){var o;l===void 0&&(l={});const{x:i,y:c,platform:d,rects:m,elements:h,strategy:y}=n,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:g="floating",altBoundary:w=!1,padding:N=0}=ga(l,n),T=Ky(N),C=h[w?g==="floating"?"reference":"floating":g],A=Hs(await d.getClippingRect({element:(o=await(d.isElement==null?void 0:d.isElement(C)))==null||o?C:C.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(h.floating)),boundary:p,rootBoundary:x,strategy:y})),_=g==="floating"?{x:i,y:c,width:m.floating.width,height:m.floating.height}:m.reference,M=await(d.getOffsetParent==null?void 0:d.getOffsetParent(h.floating)),k=await(d.isElement==null?void 0:d.isElement(M))?await(d.getScale==null?void 0:d.getScale(M))||{x:1,y:1}:{x:1,y:1},Y=Hs(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:_,offsetParent:M,strategy:y}):_);return{top:(A.top-Y.top+T.top)/k.y,bottom:(Y.bottom-A.bottom+T.bottom)/k.y,left:(A.left-Y.left+T.left)/k.x,right:(Y.right-A.right+T.right)/k.x}}const lA=50,rA=async(n,l,o)=>{const{placement:i="bottom",strategy:c="absolute",middleware:d=[],platform:m}=o,h=m.detectOverflow?m:{...m,detectOverflow:aA},y=await(m.isRTL==null?void 0:m.isRTL(l));let p=await m.getElementRects({reference:n,floating:l,strategy:c}),{x,y:g}=qv(p,i,y),w=i,N=0;const T={};for(let E=0;E<d.length;E++){const C=d[E];if(!C)continue;const{name:A,fn:_}=C,{x:M,y:k,data:Y,reset:X}=await _({x,y:g,initialPlacement:i,placement:w,strategy:c,middlewareData:T,rects:p,platform:h,elements:{reference:n,floating:l}});x=M??x,g=k??g,T[A]={...T[A],...Y},X&&N<lA&&(N++,typeof X=="object"&&(X.placement&&(w=X.placement),X.rects&&(p=X.rects===!0?await m.getElementRects({reference:n,floating:l,strategy:c}):X.rects),{x,y:g}=qv(p,w,y)),E=-1)}return{x,y:g,placement:w,strategy:c,middlewareData:T}},oA=n=>({name:"arrow",options:n,async fn(l){const{x:o,y:i,placement:c,rects:d,platform:m,elements:h,middlewareData:y}=l,{element:p,padding:x=0}=ga(n,l)||{};if(p==null)return{};const g=Ky(x),w={x:o,y:i},N=qf(c),T=Yf(N),E=await m.getDimensions(p),C=N==="y",A=C?"top":"left",_=C?"bottom":"right",M=C?"clientHeight":"clientWidth",k=d.reference[T]+d.reference[N]-w[N]-d.floating[T],Y=w[N]-d.reference[N],X=await(m.getOffsetParent==null?void 0:m.getOffsetParent(p));let V=X?X[M]:0;(!V||!await(m.isElement==null?void 0:m.isElement(X)))&&(V=h.floating[M]||d.floating[T]);const H=k/2-Y/2,ne=V/2-E[T]/2-1,se=Ja(g[A],ne),me=Ja(g[_],ne),ce=se,ue=V-E[T]-me,fe=V/2-E[T]/2+H,re=lf(ce,fe,ue),O=!y.arrow&&Vr(c)!=null&&fe!==re&&d.reference[T]/2-(fe<ce?se:me)-E[T]/2<0,$=O?fe<ce?fe-ce:fe-ue:0;return{[N]:w[N]+$,data:{[N]:re,centerOffset:fe-re-$,...O&&{alignmentOffset:$}},reset:O}}}),iA=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var o,i;const{placement:c,middlewareData:d,rects:m,initialPlacement:h,platform:y,elements:p}=l,{mainAxis:x=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:E=!0,...C}=ga(n,l);if((o=d.arrow)!=null&&o.alignmentOffset)return{};const A=va(c),_=Pn(h),M=va(h)===h,k=await(y.isRTL==null?void 0:y.isRTL(p.floating)),Y=w||(M||!E?[Bs(h)]:F5(h)),X=T!=="none";!w&&X&&Y.push(...tA(h,E,T,k));const V=[h,...Y],H=await y.detectOverflow(l,C),ne=[];let se=((i=d.flip)==null?void 0:i.overflows)||[];if(x&&ne.push(H[A]),g){const fe=I5(c,m,k);ne.push(H[fe[0]],H[fe[1]])}if(se=[...se,{placement:c,overflows:ne}],!ne.every(fe=>fe<=0)){var me,ce;const fe=(((me=d.flip)==null?void 0:me.index)||0)+1,re=V[fe];if(re&&(!(g==="alignment"?_!==Pn(re):!1)||se.every(F=>Pn(F.placement)===_?F.overflows[0]>0:!0)))return{data:{index:fe,overflows:se},reset:{placement:re}};let O=(ce=se.filter($=>$.overflows[0]<=0).sort(($,F)=>$.overflows[1]-F.overflows[1])[0])==null?void 0:ce.placement;if(!O)switch(N){case"bestFit":{var ue;const $=(ue=se.filter(F=>{if(X){const de=Pn(F.placement);return de===_||de==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(de=>de>0).reduce((de,Q)=>de+Q,0)]).sort((F,de)=>F[1]-de[1])[0])==null?void 0:ue[0];$&&(O=$);break}case"initialPlacement":O=h;break}if(c!==O)return{reset:{placement:O}}}return{}}}};function Gv(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function Pv(n){return Q5.some(l=>n[l]>=0)}const sA=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:o,platform:i}=l,{strategy:c="referenceHidden",...d}=ga(n,l);switch(c){case"referenceHidden":{const m=await i.detectOverflow(l,{...d,elementContext:"reference"}),h=Gv(m,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Pv(h)}}}case"escaped":{const m=await i.detectOverflow(l,{...d,altBoundary:!0}),h=Gv(m,o.floating);return{data:{escapedOffsets:h,escaped:Pv(h)}}}default:return{}}}}},Qy=new Set(["left","top"]);async function cA(n,l){const{placement:o,platform:i,elements:c}=n,d=await(i.isRTL==null?void 0:i.isRTL(c.floating)),m=va(o),h=Vr(o),y=Pn(o)==="y",p=Qy.has(m)?-1:1,x=d&&y?-1:1,g=ga(l,n);let{mainAxis:w,crossAxis:N,alignmentAxis:T}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return h&&typeof T=="number"&&(N=h==="end"?T*-1:T),y?{x:N*x,y:w*p}:{x:w*p,y:N*x}}const uA=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var o,i;const{x:c,y:d,placement:m,middlewareData:h}=l,y=await cA(l,n);return m===((o=h.offset)==null?void 0:o.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:c+y.x,y:d+y.y,data:{...y,placement:m}}}}},dA=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:o,y:i,placement:c,platform:d}=l,{mainAxis:m=!0,crossAxis:h=!1,limiter:y={fn:A=>{let{x:_,y:M}=A;return{x:_,y:M}}},...p}=ga(n,l),x={x:o,y:i},g=await d.detectOverflow(l,p),w=Pn(va(c)),N=$f(w);let T=x[N],E=x[w];if(m){const A=N==="y"?"top":"left",_=N==="y"?"bottom":"right",M=T+g[A],k=T-g[_];T=lf(M,T,k)}if(h){const A=w==="y"?"top":"left",_=w==="y"?"bottom":"right",M=E+g[A],k=E-g[_];E=lf(M,E,k)}const C=y.fn({...l,[N]:T,[w]:E});return{...C,data:{x:C.x-o,y:C.y-i,enabled:{[N]:m,[w]:h}}}}}},fA=function(n){return n===void 0&&(n={}),{options:n,fn(l){const{x:o,y:i,placement:c,rects:d,middlewareData:m}=l,{offset:h=0,mainAxis:y=!0,crossAxis:p=!0}=ga(n,l),x={x:o,y:i},g=Pn(c),w=$f(g);let N=x[w],T=x[g];const E=ga(h,l),C=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(y){const M=w==="y"?"height":"width",k=d.reference[w]-d.floating[M]+C.mainAxis,Y=d.reference[w]+d.reference[M]-C.mainAxis;N<k?N=k:N>Y&&(N=Y)}if(p){var A,_;const M=w==="y"?"width":"height",k=Qy.has(va(c)),Y=d.reference[g]-d.floating[M]+(k&&((A=m.offset)==null?void 0:A[g])||0)+(k?0:C.crossAxis),X=d.reference[g]+d.reference[M]+(k?0:((_=m.offset)==null?void 0:_[g])||0)-(k?C.crossAxis:0);T<Y?T=Y:T>X&&(T=X)}return{[w]:N,[g]:T}}}},mA=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(l){var o,i;const{placement:c,rects:d,platform:m,elements:h}=l,{apply:y=()=>{},...p}=ga(n,l),x=await m.detectOverflow(l,p),g=va(c),w=Vr(c),N=Pn(c)==="y",{width:T,height:E}=d.floating;let C,A;g==="top"||g==="bottom"?(C=g,A=w===(await(m.isRTL==null?void 0:m.isRTL(h.floating))?"start":"end")?"left":"right"):(A=g,C=w==="end"?"top":"bottom");const _=E-x.top-x.bottom,M=T-x.left-x.right,k=Ja(E-x[C],_),Y=Ja(T-x[A],M),X=!l.middlewareData.shift;let V=k,H=Y;if((o=l.middlewareData.shift)!=null&&o.enabled.x&&(H=M),(i=l.middlewareData.shift)!=null&&i.enabled.y&&(V=_),X&&!w){const se=ln(x.left,0),me=ln(x.right,0),ce=ln(x.top,0),ue=ln(x.bottom,0);N?H=T-2*(se!==0||me!==0?se+me:ln(x.left,x.right)):V=E-2*(ce!==0||ue!==0?ce+ue:ln(x.top,x.bottom))}await y({...l,availableWidth:H,availableHeight:V});const ne=await m.getDimensions(h.floating);return T!==ne.width||E!==ne.height?{reset:{rects:!0}}:{}}}};function ac(){return typeof window<"u"}function $r(n){return Zy(n)?(n.nodeName||"").toLowerCase():"#document"}function rn(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function Zn(n){var l;return(l=(Zy(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function Zy(n){return ac()?n instanceof Node||n instanceof rn(n).Node:!1}function _n(n){return ac()?n instanceof Element||n instanceof rn(n).Element:!1}function ya(n){return ac()?n instanceof HTMLElement||n instanceof rn(n).HTMLElement:!1}function Xv(n){return!ac()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof rn(n).ShadowRoot}function Jo(n){const{overflow:l,overflowX:o,overflowY:i,display:c}=jn(n);return/auto|scroll|overlay|hidden|clip/.test(l+i+o)&&c!=="inline"&&c!=="contents"}function hA(n){return/^(table|td|th)$/.test($r(n))}function lc(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const pA=/transform|translate|scale|rotate|perspective|filter/,gA=/paint|layout|strict|content/,Rl=n=>!!n&&n!=="none";let $d;function Gf(n){const l=_n(n)?jn(n):n;return Rl(l.transform)||Rl(l.translate)||Rl(l.scale)||Rl(l.rotate)||Rl(l.perspective)||!Pf()&&(Rl(l.backdropFilter)||Rl(l.filter))||pA.test(l.willChange||"")||gA.test(l.contain||"")}function vA(n){let l=Wa(n);for(;ya(l)&&!kr(l);){if(Gf(l))return l;if(lc(l))return null;l=Wa(l)}return null}function Pf(){return $d==null&&($d=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),$d}function kr(n){return/^(html|body|#document)$/.test($r(n))}function jn(n){return rn(n).getComputedStyle(n)}function rc(n){return _n(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Wa(n){if($r(n)==="html")return n;const l=n.assignedSlot||n.parentNode||Xv(n)&&n.host||Zn(n);return Xv(l)?l.host:l}function Iy(n){const l=Wa(n);return kr(l)?n.ownerDocument?n.ownerDocument.body:n.body:ya(l)&&Jo(l)?l:Iy(l)}function Qo(n,l,o){var i;l===void 0&&(l=[]),o===void 0&&(o=!0);const c=Iy(n),d=c===((i=n.ownerDocument)==null?void 0:i.body),m=rn(c);if(d){const h=of(m);return l.concat(m,m.visualViewport||[],Jo(c)?c:[],h&&o?Qo(h):[])}else return l.concat(c,Qo(c,[],o))}function of(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Fy(n){const l=jn(n);let o=parseFloat(l.width)||0,i=parseFloat(l.height)||0;const c=ya(n),d=c?n.offsetWidth:o,m=c?n.offsetHeight:i,h=Us(o)!==d||Us(i)!==m;return h&&(o=d,i=m),{width:o,height:i,$:h}}function Xf(n){return _n(n)?n:n.contextElement}function Mr(n){const l=Xf(n);if(!ya(l))return Kn(1);const o=l.getBoundingClientRect(),{width:i,height:c,$:d}=Fy(l);let m=(d?Us(o.width):o.width)/i,h=(d?Us(o.height):o.height)/c;return(!m||!Number.isFinite(m))&&(m=1),(!h||!Number.isFinite(h))&&(h=1),{x:m,y:h}}const yA=Kn(0);function Jy(n){const l=rn(n);return!Pf()||!l.visualViewport?yA:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function bA(n,l,o){return l===void 0&&(l=!1),!o||l&&o!==rn(n)?!1:l}function Ol(n,l,o,i){l===void 0&&(l=!1),o===void 0&&(o=!1);const c=n.getBoundingClientRect(),d=Xf(n);let m=Kn(1);l&&(i?_n(i)&&(m=Mr(i)):m=Mr(n));const h=bA(d,o,i)?Jy(d):Kn(0);let y=(c.left+h.x)/m.x,p=(c.top+h.y)/m.y,x=c.width/m.x,g=c.height/m.y;if(d){const w=rn(d),N=i&&_n(i)?rn(i):i;let T=w,E=of(T);for(;E&&i&&N!==T;){const C=Mr(E),A=E.getBoundingClientRect(),_=jn(E),M=A.left+(E.clientLeft+parseFloat(_.paddingLeft))*C.x,k=A.top+(E.clientTop+parseFloat(_.paddingTop))*C.y;y*=C.x,p*=C.y,x*=C.x,g*=C.y,y+=M,p+=k,T=rn(E),E=of(T)}}return Hs({width:x,height:g,x:y,y:p})}function oc(n,l){const o=rc(n).scrollLeft;return l?l.left+o:Ol(Zn(n)).left+o}function Wy(n,l){const o=n.getBoundingClientRect(),i=o.left+l.scrollLeft-oc(n,o),c=o.top+l.scrollTop;return{x:i,y:c}}function xA(n){let{elements:l,rect:o,offsetParent:i,strategy:c}=n;const d=c==="fixed",m=Zn(i),h=l?lc(l.floating):!1;if(i===m||h&&d)return o;let y={scrollLeft:0,scrollTop:0},p=Kn(1);const x=Kn(0),g=ya(i);if((g||!g&&!d)&&(($r(i)!=="body"||Jo(m))&&(y=rc(i)),g)){const N=Ol(i);p=Mr(i),x.x=N.x+i.clientLeft,x.y=N.y+i.clientTop}const w=m&&!g&&!d?Wy(m,y):Kn(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-y.scrollLeft*p.x+x.x+w.x,y:o.y*p.y-y.scrollTop*p.y+x.y+w.y}}function SA(n){return Array.from(n.getClientRects())}function wA(n){const l=Zn(n),o=rc(n),i=n.ownerDocument.body,c=ln(l.scrollWidth,l.clientWidth,i.scrollWidth,i.clientWidth),d=ln(l.scrollHeight,l.clientHeight,i.scrollHeight,i.clientHeight);let m=-o.scrollLeft+oc(n);const h=-o.scrollTop;return jn(i).direction==="rtl"&&(m+=ln(l.clientWidth,i.clientWidth)-c),{width:c,height:d,x:m,y:h}}const Kv=25;function EA(n,l){const o=rn(n),i=Zn(n),c=o.visualViewport;let d=i.clientWidth,m=i.clientHeight,h=0,y=0;if(c){d=c.width,m=c.height;const x=Pf();(!x||x&&l==="fixed")&&(h=c.offsetLeft,y=c.offsetTop)}const p=oc(i);if(p<=0){const x=i.ownerDocument,g=x.body,w=getComputedStyle(g),N=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,T=Math.abs(i.clientWidth-g.clientWidth-N);T<=Kv&&(d-=T)}else p<=Kv&&(d+=p);return{width:d,height:m,x:h,y}}function NA(n,l){const o=Ol(n,!0,l==="fixed"),i=o.top+n.clientTop,c=o.left+n.clientLeft,d=ya(n)?Mr(n):Kn(1),m=n.clientWidth*d.x,h=n.clientHeight*d.y,y=c*d.x,p=i*d.y;return{width:m,height:h,x:y,y:p}}function Qv(n,l,o){let i;if(l==="viewport")i=EA(n,o);else if(l==="document")i=wA(Zn(n));else if(_n(l))i=NA(l,o);else{const c=Jy(n);i={x:l.x-c.x,y:l.y-c.y,width:l.width,height:l.height}}return Hs(i)}function eb(n,l){const o=Wa(n);return o===l||!_n(o)||kr(o)?!1:jn(o).position==="fixed"||eb(o,l)}function TA(n,l){const o=l.get(n);if(o)return o;let i=Qo(n,[],!1).filter(h=>_n(h)&&$r(h)!=="body"),c=null;const d=jn(n).position==="fixed";let m=d?Wa(n):n;for(;_n(m)&&!kr(m);){const h=jn(m),y=Gf(m);!y&&h.position==="fixed"&&(c=null),(d?!y&&!c:!y&&h.position==="static"&&!!c&&(c.position==="absolute"||c.position==="fixed")||Jo(m)&&!y&&eb(n,m))?i=i.filter(x=>x!==m):c=h,m=Wa(m)}return l.set(n,i),i}function CA(n){let{element:l,boundary:o,rootBoundary:i,strategy:c}=n;const m=[...o==="clippingAncestors"?lc(l)?[]:TA(l,this._c):[].concat(o),i],h=Qv(l,m[0],c);let y=h.top,p=h.right,x=h.bottom,g=h.left;for(let w=1;w<m.length;w++){const N=Qv(l,m[w],c);y=ln(N.top,y),p=Ja(N.right,p),x=Ja(N.bottom,x),g=ln(N.left,g)}return{width:p-g,height:x-y,x:g,y}}function AA(n){const{width:l,height:o}=Fy(n);return{width:l,height:o}}function RA(n,l,o){const i=ya(l),c=Zn(l),d=o==="fixed",m=Ol(n,!0,d,l);let h={scrollLeft:0,scrollTop:0};const y=Kn(0);function p(){y.x=oc(c)}if(i||!i&&!d)if(($r(l)!=="body"||Jo(c))&&(h=rc(l)),i){const N=Ol(l,!0,d,l);y.x=N.x+l.clientLeft,y.y=N.y+l.clientTop}else c&&p();d&&!i&&c&&p();const x=c&&!i&&!d?Wy(c,h):Kn(0),g=m.left+h.scrollLeft-y.x-x.x,w=m.top+h.scrollTop-y.y-x.y;return{x:g,y:w,width:m.width,height:m.height}}function Yd(n){return jn(n).position==="static"}function Zv(n,l){if(!ya(n)||jn(n).position==="fixed")return null;if(l)return l(n);let o=n.offsetParent;return Zn(n)===o&&(o=o.ownerDocument.body),o}function tb(n,l){const o=rn(n);if(lc(n))return o;if(!ya(n)){let c=Wa(n);for(;c&&!kr(c);){if(_n(c)&&!Yd(c))return c;c=Wa(c)}return o}let i=Zv(n,l);for(;i&&hA(i)&&Yd(i);)i=Zv(i,l);return i&&kr(i)&&Yd(i)&&!Gf(i)?o:i||vA(n)||o}const _A=async function(n){const l=this.getOffsetParent||tb,o=this.getDimensions,i=await o(n.floating);return{reference:RA(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function jA(n){return jn(n).direction==="rtl"}const MA={convertOffsetParentRelativeRectToViewportRelativeRect:xA,getDocumentElement:Zn,getClippingRect:CA,getOffsetParent:tb,getElementRects:_A,getClientRects:SA,getDimensions:AA,getScale:Mr,isElement:_n,isRTL:jA};function nb(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function OA(n,l){let o=null,i;const c=Zn(n);function d(){var h;clearTimeout(i),(h=o)==null||h.disconnect(),o=null}function m(h,y){h===void 0&&(h=!1),y===void 0&&(y=1),d();const p=n.getBoundingClientRect(),{left:x,top:g,width:w,height:N}=p;if(h||l(),!w||!N)return;const T=Es(g),E=Es(c.clientWidth-(x+w)),C=Es(c.clientHeight-(g+N)),A=Es(x),M={rootMargin:-T+"px "+-E+"px "+-C+"px "+-A+"px",threshold:ln(0,Ja(1,y))||1};let k=!0;function Y(X){const V=X[0].intersectionRatio;if(V!==y){if(!k)return m();V?m(!1,V):i=setTimeout(()=>{m(!1,1e-7)},1e3)}V===1&&!nb(p,n.getBoundingClientRect())&&m(),k=!1}try{o=new IntersectionObserver(Y,{...M,root:c.ownerDocument})}catch{o=new IntersectionObserver(Y,M)}o.observe(n)}return m(!0),d}function DA(n,l,o,i){i===void 0&&(i={});const{ancestorScroll:c=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:y=!1}=i,p=Xf(n),x=c||d?[...p?Qo(p):[],...l?Qo(l):[]]:[];x.forEach(A=>{c&&A.addEventListener("scroll",o,{passive:!0}),d&&A.addEventListener("resize",o)});const g=p&&h?OA(p,o):null;let w=-1,N=null;m&&(N=new ResizeObserver(A=>{let[_]=A;_&&_.target===p&&N&&l&&(N.unobserve(l),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var M;(M=N)==null||M.observe(l)})),o()}),p&&!y&&N.observe(p),l&&N.observe(l));let T,E=y?Ol(n):null;y&&C();function C(){const A=Ol(n);E&&!nb(E,A)&&o(),E=A,T=requestAnimationFrame(C)}return o(),()=>{var A;x.forEach(_=>{c&&_.removeEventListener("scroll",o),d&&_.removeEventListener("resize",o)}),g==null||g(),(A=N)==null||A.disconnect(),N=null,y&&cancelAnimationFrame(T)}}const kA=uA,zA=dA,LA=iA,UA=mA,BA=sA,Iv=oA,HA=fA,VA=(n,l,o)=>{const i=new Map,c={platform:MA,...o},d={...c.platform,_c:i};return rA(n,l,{...c,platform:d})};var $A=typeof document<"u",YA=function(){},Rs=$A?v.useLayoutEffect:YA;function Vs(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,c;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(!Vs(n[i],l[i]))return!1;return!0}if(c=Object.keys(n),o=c.length,o!==Object.keys(l).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(l,c[i]))return!1;for(i=o;i--!==0;){const d=c[i];if(!(d==="_owner"&&n.$$typeof)&&!Vs(n[d],l[d]))return!1}return!0}return n!==n&&l!==l}function ab(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Fv(n,l){const o=ab(n);return Math.round(l*o)/o}function qd(n){const l=v.useRef(n);return Rs(()=>{l.current=n}),l}function qA(n){n===void 0&&(n={});const{placement:l="bottom",strategy:o="absolute",middleware:i=[],platform:c,elements:{reference:d,floating:m}={},transform:h=!0,whileElementsMounted:y,open:p}=n,[x,g]=v.useState({x:0,y:0,strategy:o,placement:l,middlewareData:{},isPositioned:!1}),[w,N]=v.useState(i);Vs(w,i)||N(i);const[T,E]=v.useState(null),[C,A]=v.useState(null),_=v.useCallback(F=>{F!==X.current&&(X.current=F,E(F))},[]),M=v.useCallback(F=>{F!==V.current&&(V.current=F,A(F))},[]),k=d||T,Y=m||C,X=v.useRef(null),V=v.useRef(null),H=v.useRef(x),ne=y!=null,se=qd(y),me=qd(c),ce=qd(p),ue=v.useCallback(()=>{if(!X.current||!V.current)return;const F={placement:l,strategy:o,middleware:w};me.current&&(F.platform=me.current),VA(X.current,V.current,F).then(de=>{const Q={...de,isPositioned:ce.current!==!1};fe.current&&!Vs(H.current,Q)&&(H.current=Q,Fo.flushSync(()=>{g(Q)}))})},[w,l,o,me,ce]);Rs(()=>{p===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,g(F=>({...F,isPositioned:!1})))},[p]);const fe=v.useRef(!1);Rs(()=>(fe.current=!0,()=>{fe.current=!1}),[]),Rs(()=>{if(k&&(X.current=k),Y&&(V.current=Y),k&&Y){if(se.current)return se.current(k,Y,ue);ue()}},[k,Y,ue,se,ne]);const re=v.useMemo(()=>({reference:X,floating:V,setReference:_,setFloating:M}),[_,M]),O=v.useMemo(()=>({reference:k,floating:Y}),[k,Y]),$=v.useMemo(()=>{const F={position:o,left:0,top:0};if(!O.floating)return F;const de=Fv(O.floating,x.x),Q=Fv(O.floating,x.y);return h?{...F,transform:"translate("+de+"px, "+Q+"px)",...ab(O.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:de,top:Q}},[o,h,O.floating,x.x,x.y]);return v.useMemo(()=>({...x,update:ue,refs:re,elements:O,floatingStyles:$}),[x,ue,re,O,$])}const GA=n=>{function l(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:i,padding:c}=typeof n=="function"?n(o):n;return i&&l(i)?i.current!=null?Iv({element:i.current,padding:c}).fn(o):{}:i?Iv({element:i,padding:c}).fn(o):{}}}},PA=(n,l)=>{const o=kA(n);return{name:o.name,fn:o.fn,options:[n,l]}},XA=(n,l)=>{const o=zA(n);return{name:o.name,fn:o.fn,options:[n,l]}},KA=(n,l)=>({fn:HA(n).fn,options:[n,l]}),QA=(n,l)=>{const o=LA(n);return{name:o.name,fn:o.fn,options:[n,l]}},ZA=(n,l)=>{const o=UA(n);return{name:o.name,fn:o.fn,options:[n,l]}},IA=(n,l)=>{const o=BA(n);return{name:o.name,fn:o.fn,options:[n,l]}},FA=(n,l)=>{const o=GA(n);return{name:o.name,fn:o.fn,options:[n,l]}};var JA="Arrow",lb=v.forwardRef((n,l)=>{const{children:o,width:i=10,height:c=5,...d}=n;return f.jsx(He.svg,{...d,ref:l,width:i,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?o:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});lb.displayName=JA;var WA=lb;function rb(n){const[l,o]=v.useState(void 0);return kt(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const d=c[0];let m,h;if("borderBoxSize"in d){const y=d.borderBoxSize,p=Array.isArray(y)?y[0]:y;m=p.inlineSize,h=p.blockSize}else m=n.offsetWidth,h=n.offsetHeight;o({width:m,height:h})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else o(void 0)},[n]),l}var Kf="Popper",[ob,ib]=tl(Kf),[eR,sb]=ob(Kf),cb=n=>{const{__scopePopper:l,children:o}=n,[i,c]=v.useState(null);return f.jsx(eR,{scope:l,anchor:i,onAnchorChange:c,children:o})};cb.displayName=Kf;var ub="PopperAnchor",db=v.forwardRef((n,l)=>{const{__scopePopper:o,virtualRef:i,...c}=n,d=sb(ub,o),m=v.useRef(null),h=We(l,m),y=v.useRef(null);return v.useEffect(()=>{const p=y.current;y.current=(i==null?void 0:i.current)||m.current,p!==y.current&&d.onAnchorChange(y.current)}),i?null:f.jsx(He.div,{...c,ref:h})});db.displayName=ub;var Qf="PopperContent",[tR,nR]=ob(Qf),fb=v.forwardRef((n,l)=>{var te,ie,J,be,ye,Se;const{__scopePopper:o,side:i="bottom",sideOffset:c=0,align:d="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:y=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:g="partial",hideWhenDetached:w=!1,updatePositionStrategy:N="optimized",onPlaced:T,...E}=n,C=sb(Qf,o),[A,_]=v.useState(null),M=We(l,Ve=>_(Ve)),[k,Y]=v.useState(null),X=rb(k),V=(X==null?void 0:X.width)??0,H=(X==null?void 0:X.height)??0,ne=i+(d!=="center"?"-"+d:""),se=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},me=Array.isArray(p)?p:[p],ce=me.length>0,ue={padding:se,boundary:me.filter(lR),altBoundary:ce},{refs:fe,floatingStyles:re,placement:O,isPositioned:$,middlewareData:F}=qA({strategy:"fixed",placement:ne,whileElementsMounted:(...Ve)=>DA(...Ve,{animationFrame:N==="always"}),elements:{reference:C.anchor},middleware:[PA({mainAxis:c+H,alignmentAxis:m}),y&&XA({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?KA():void 0,...ue}),y&&QA({...ue}),ZA({...ue,apply:({elements:Ve,rects:Le,availableWidth:je,availableHeight:ft})=>{const{width:ot,height:zt}=Le.reference,mt=Ve.floating.style;mt.setProperty("--radix-popper-available-width",`${je}px`),mt.setProperty("--radix-popper-available-height",`${ft}px`),mt.setProperty("--radix-popper-anchor-width",`${ot}px`),mt.setProperty("--radix-popper-anchor-height",`${zt}px`)}}),k&&FA({element:k,padding:h}),rR({arrowWidth:V,arrowHeight:H}),w&&IA({strategy:"referenceHidden",...ue})]}),[de,Q]=pb(O),j=Fa(T);kt(()=>{$&&(j==null||j())},[$,j]);const G=(te=F.arrow)==null?void 0:te.x,K=(ie=F.arrow)==null?void 0:ie.y,W=((J=F.arrow)==null?void 0:J.centerOffset)!==0,[ee,oe]=v.useState();return kt(()=>{A&&oe(window.getComputedStyle(A).zIndex)},[A]),f.jsx("div",{ref:fe.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:$?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(be=F.transformOrigin)==null?void 0:be.x,(ye=F.transformOrigin)==null?void 0:ye.y].join(" "),...((Se=F.hide)==null?void 0:Se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:f.jsx(tR,{scope:o,placedSide:de,onArrowChange:Y,arrowX:G,arrowY:K,shouldHideArrow:W,children:f.jsx(He.div,{"data-side":de,"data-align":Q,...E,ref:M,style:{...E.style,animation:$?void 0:"none"}})})})});fb.displayName=Qf;var mb="PopperArrow",aR={top:"bottom",right:"left",bottom:"top",left:"right"},hb=v.forwardRef(function(l,o){const{__scopePopper:i,...c}=l,d=nR(mb,i),m=aR[d.placedSide];return f.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[m]: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:f.jsx(WA,{...c,ref:o,style:{...c.style,display:"block"}})})});hb.displayName=mb;function lR(n){return n!==null}var rR=n=>({name:"transformOrigin",options:n,fn(l){var C,A,_;const{placement:o,rects:i,middlewareData:c}=l,m=((C=c.arrow)==null?void 0:C.centerOffset)!==0,h=m?0:n.arrowWidth,y=m?0:n.arrowHeight,[p,x]=pb(o),g={start:"0%",center:"50%",end:"100%"}[x],w=(((A=c.arrow)==null?void 0:A.x)??0)+h/2,N=(((_=c.arrow)==null?void 0:_.y)??0)+y/2;let T="",E="";return p==="bottom"?(T=m?g:`${w}px`,E=`${-y}px`):p==="top"?(T=m?g:`${w}px`,E=`${i.floating.height+y}px`):p==="right"?(T=`${-y}px`,E=m?g:`${N}px`):p==="left"&&(T=`${i.floating.width+y}px`,E=m?g:`${N}px`),{data:{x:T,y:E}}}});function pb(n){const[l,o="center"]=n.split("-");return[l,o]}var oR=cb,iR=db,sR=fb,cR=hb;function gb(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 vb=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"}),uR="VisuallyHidden",dR=v.forwardRef((n,l)=>f.jsx(He.span,{...n,ref:l,style:{...vb,...n.style}}));dR.displayName=uR;var fR=[" ","Enter","ArrowUp","ArrowDown"],mR=[" ","Enter"],Dl="Select",[ic,sc,hR]=Xy(Dl),[Yr]=tl(Dl,[hR,ib]),cc=ib(),[pR,nl]=Yr(Dl),[gR,vR]=Yr(Dl),yb=n=>{const{__scopeSelect:l,children:o,open:i,defaultOpen:c,onOpenChange:d,value:m,defaultValue:h,onValueChange:y,dir:p,name:x,autoComplete:g,disabled:w,required:N,form:T}=n,E=cc(l),[C,A]=v.useState(null),[_,M]=v.useState(null),[k,Y]=v.useState(!1),X=Vf(p),[V,H]=Dr({prop:i,defaultProp:c??!1,onChange:d,caller:Dl}),[ne,se]=Dr({prop:m,defaultProp:h,onChange:y,caller:Dl}),me=v.useRef(null),ce=C?T||!!C.closest("form"):!0,[ue,fe]=v.useState(new Set),re=Array.from(ue).map(O=>O.props.value).join(";");return f.jsx(oR,{...E,children:f.jsxs(pR,{required:N,scope:l,trigger:C,onTriggerChange:A,valueNode:_,onValueNodeChange:M,valueNodeHasChildren:k,onValueNodeHasChildrenChange:Y,contentId:Za(),value:ne,onValueChange:se,open:V,onOpenChange:H,dir:X,triggerPointerDownPosRef:me,disabled:w,children:[f.jsx(ic.Provider,{scope:l,children:f.jsx(gR,{scope:n.__scopeSelect,onNativeOptionAdd:v.useCallback(O=>{fe($=>new Set($).add(O))},[]),onNativeOptionRemove:v.useCallback(O=>{fe($=>{const F=new Set($);return F.delete(O),F})},[]),children:o})}),ce?f.jsxs(Yb,{"aria-hidden":!0,required:N,tabIndex:-1,name:x,autoComplete:g,value:ne,onChange:O=>se(O.target.value),disabled:w,form:T,children:[ne===void 0?f.jsx("option",{value:""}):null,Array.from(ue)]},re):null]})})};yb.displayName=Dl;var bb="SelectTrigger",xb=v.forwardRef((n,l)=>{const{__scopeSelect:o,disabled:i=!1,...c}=n,d=cc(o),m=nl(bb,o),h=m.disabled||i,y=We(l,m.onTriggerChange),p=sc(o),x=v.useRef("touch"),[g,w,N]=Gb(E=>{const C=p().filter(M=>!M.disabled),A=C.find(M=>M.value===m.value),_=Pb(C,E,A);_!==void 0&&m.onValueChange(_.value)}),T=E=>{h||(m.onOpenChange(!0),N()),E&&(m.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return f.jsx(iR,{asChild:!0,...d,children:f.jsx(He.button,{type:"button",role:"combobox","aria-controls":m.contentId,"aria-expanded":m.open,"aria-required":m.required,"aria-autocomplete":"none",dir:m.dir,"data-state":m.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":qb(m.value)?"":void 0,...c,ref:y,onClick:De(c.onClick,E=>{E.currentTarget.focus(),x.current!=="mouse"&&T(E)}),onPointerDown:De(c.onPointerDown,E=>{x.current=E.pointerType;const C=E.target;C.hasPointerCapture(E.pointerId)&&C.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(T(E),E.preventDefault())}),onKeyDown:De(c.onKeyDown,E=>{const C=g.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&w(E.key),!(C&&E.key===" ")&&fR.includes(E.key)&&(T(),E.preventDefault())})})})});xb.displayName=bb;var Sb="SelectValue",wb=v.forwardRef((n,l)=>{const{__scopeSelect:o,className:i,style:c,children:d,placeholder:m="",...h}=n,y=nl(Sb,o),{onValueNodeHasChildrenChange:p}=y,x=d!==void 0,g=We(l,y.onValueNodeChange);return kt(()=>{p(x)},[p,x]),f.jsx(He.span,{...h,ref:g,style:{pointerEvents:"none"},children:qb(y.value)?f.jsx(f.Fragment,{children:m}):d})});wb.displayName=Sb;var yR="SelectIcon",Eb=v.forwardRef((n,l)=>{const{__scopeSelect:o,children:i,...c}=n;return f.jsx(He.span,{"aria-hidden":!0,...c,ref:l,children:i||"▼"})});Eb.displayName=yR;var bR="SelectPortal",Nb=n=>f.jsx(Mf,{asChild:!0,...n});Nb.displayName=bR;var kl="SelectContent",Tb=v.forwardRef((n,l)=>{const o=nl(kl,n.__scopeSelect),[i,c]=v.useState();if(kt(()=>{c(new DocumentFragment)},[]),!o.open){const d=i;return d?Fo.createPortal(f.jsx(Cb,{scope:n.__scopeSelect,children:f.jsx(ic.Slot,{scope:n.__scopeSelect,children:f.jsx("div",{children:n.children})})}),d):null}return f.jsx(Ab,{...n,ref:l})});Tb.displayName=kl;var An=10,[Cb,al]=Yr(kl),xR="SelectContentImpl",SR=Ko("SelectContent.RemoveScroll"),Ab=v.forwardRef((n,l)=>{const{__scopeSelect:o,position:i="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:d,onPointerDownOutside:m,side:h,sideOffset:y,align:p,alignOffset:x,arrowPadding:g,collisionBoundary:w,collisionPadding:N,sticky:T,hideWhenDetached:E,avoidCollisions:C,...A}=n,_=nl(kl,o),[M,k]=v.useState(null),[Y,X]=v.useState(null),V=We(l,te=>k(te)),[H,ne]=v.useState(null),[se,me]=v.useState(null),ce=sc(o),[ue,fe]=v.useState(!1),re=v.useRef(!1);v.useEffect(()=>{if(M)return xy(M)},[M]),dy();const O=v.useCallback(te=>{const[ie,...J]=ce().map(Se=>Se.ref.current),[be]=J.slice(-1),ye=document.activeElement;for(const Se of te)if(Se===ye||(Se==null||Se.scrollIntoView({block:"nearest"}),Se===ie&&Y&&(Y.scrollTop=0),Se===be&&Y&&(Y.scrollTop=Y.scrollHeight),Se==null||Se.focus(),document.activeElement!==ye))return},[ce,Y]),$=v.useCallback(()=>O([H,M]),[O,H,M]);v.useEffect(()=>{ue&&$()},[ue,$]);const{onOpenChange:F,triggerPointerDownPosRef:de}=_;v.useEffect(()=>{if(M){let te={x:0,y:0};const ie=be=>{var ye,Se;te={x:Math.abs(Math.round(be.pageX)-(((ye=de.current)==null?void 0:ye.x)??0)),y:Math.abs(Math.round(be.pageY)-(((Se=de.current)==null?void 0:Se.y)??0))}},J=be=>{te.x<=10&&te.y<=10?be.preventDefault():M.contains(be.target)||F(!1),document.removeEventListener("pointermove",ie),de.current=null};return de.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",J,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",J,{capture:!0})}}},[M,F,de]),v.useEffect(()=>{const te=()=>F(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[F]);const[Q,j]=Gb(te=>{const ie=ce().filter(ye=>!ye.disabled),J=ie.find(ye=>ye.ref.current===document.activeElement),be=Pb(ie,te,J);be&&setTimeout(()=>be.ref.current.focus())}),G=v.useCallback((te,ie,J)=>{const be=!re.current&&!J;(_.value!==void 0&&_.value===ie||be)&&(ne(te),be&&(re.current=!0))},[_.value]),K=v.useCallback(()=>M==null?void 0:M.focus(),[M]),W=v.useCallback((te,ie,J)=>{const be=!re.current&&!J;(_.value!==void 0&&_.value===ie||be)&&me(te)},[_.value]),ee=i==="popper"?sf:Rb,oe=ee===sf?{side:h,sideOffset:y,align:p,alignOffset:x,arrowPadding:g,collisionBoundary:w,collisionPadding:N,sticky:T,hideWhenDetached:E,avoidCollisions:C}:{};return f.jsx(Cb,{scope:o,content:M,viewport:Y,onViewportChange:X,itemRefCallback:G,selectedItem:H,onItemLeave:K,itemTextRefCallback:W,focusSelectedItem:$,selectedItemText:se,position:i,isPositioned:ue,searchRef:Q,children:f.jsx(Of,{as:SR,allowPinchZoom:!0,children:f.jsx(jf,{asChild:!0,trapped:_.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:De(c,te=>{var ie;(ie=_.trigger)==null||ie.focus({preventScroll:!0}),te.preventDefault()}),children:f.jsx(_f,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:f.jsx(ee,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:te=>te.preventDefault(),...A,...oe,onPlaced:()=>fe(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:De(A.onKeyDown,te=>{const ie=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!ie&&te.key.length===1&&j(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let be=ce().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(te.key)&&(be=be.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const ye=te.target,Se=be.indexOf(ye);be=be.slice(Se+1)}setTimeout(()=>O(be)),te.preventDefault()}})})})})})})});Ab.displayName=xR;var wR="SelectItemAlignedPosition",Rb=v.forwardRef((n,l)=>{const{__scopeSelect:o,onPlaced:i,...c}=n,d=nl(kl,o),m=al(kl,o),[h,y]=v.useState(null),[p,x]=v.useState(null),g=We(l,V=>x(V)),w=sc(o),N=v.useRef(!1),T=v.useRef(!0),{viewport:E,selectedItem:C,selectedItemText:A,focusSelectedItem:_}=m,M=v.useCallback(()=>{if(d.trigger&&d.valueNode&&h&&p&&E&&C&&A){const V=d.trigger.getBoundingClientRect(),H=p.getBoundingClientRect(),ne=d.valueNode.getBoundingClientRect(),se=A.getBoundingClientRect();if(d.dir!=="rtl"){const ye=se.left-H.left,Se=ne.left-ye,Ve=V.left-Se,Le=V.width+Ve,je=Math.max(Le,H.width),ft=window.innerWidth-An,ot=Vv(Se,[An,Math.max(An,ft-je)]);h.style.minWidth=Le+"px",h.style.left=ot+"px"}else{const ye=H.right-se.right,Se=window.innerWidth-ne.right-ye,Ve=window.innerWidth-V.right-Se,Le=V.width+Ve,je=Math.max(Le,H.width),ft=window.innerWidth-An,ot=Vv(Se,[An,Math.max(An,ft-je)]);h.style.minWidth=Le+"px",h.style.right=ot+"px"}const me=w(),ce=window.innerHeight-An*2,ue=E.scrollHeight,fe=window.getComputedStyle(p),re=parseInt(fe.borderTopWidth,10),O=parseInt(fe.paddingTop,10),$=parseInt(fe.borderBottomWidth,10),F=parseInt(fe.paddingBottom,10),de=re+O+ue+F+$,Q=Math.min(C.offsetHeight*5,de),j=window.getComputedStyle(E),G=parseInt(j.paddingTop,10),K=parseInt(j.paddingBottom,10),W=V.top+V.height/2-An,ee=ce-W,oe=C.offsetHeight/2,te=C.offsetTop+oe,ie=re+O+te,J=de-ie;if(ie<=W){const ye=me.length>0&&C===me[me.length-1].ref.current;h.style.bottom="0px";const Se=p.clientHeight-E.offsetTop-E.offsetHeight,Ve=Math.max(ee,oe+(ye?K:0)+Se+$),Le=ie+Ve;h.style.height=Le+"px"}else{const ye=me.length>0&&C===me[0].ref.current;h.style.top="0px";const Ve=Math.max(W,re+E.offsetTop+(ye?G:0)+oe)+J;h.style.height=Ve+"px",E.scrollTop=ie-W+E.offsetTop}h.style.margin=`${An}px 0`,h.style.minHeight=Q+"px",h.style.maxHeight=ce+"px",i==null||i(),requestAnimationFrame(()=>N.current=!0)}},[w,d.trigger,d.valueNode,h,p,E,C,A,d.dir,i]);kt(()=>M(),[M]);const[k,Y]=v.useState();kt(()=>{p&&Y(window.getComputedStyle(p).zIndex)},[p]);const X=v.useCallback(V=>{V&&T.current===!0&&(M(),_==null||_(),T.current=!1)},[M,_]);return f.jsx(NR,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:N,onScrollButtonChange:X,children:f.jsx("div",{ref:y,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:f.jsx(He.div,{...c,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});Rb.displayName=wR;var ER="SelectPopperPosition",sf=v.forwardRef((n,l)=>{const{__scopeSelect:o,align:i="start",collisionPadding:c=An,...d}=n,m=cc(o);return f.jsx(sR,{...m,...d,ref:l,align:i,collisionPadding:c,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)"}})});sf.displayName=ER;var[NR,Zf]=Yr(kl,{}),cf="SelectViewport",_b=v.forwardRef((n,l)=>{const{__scopeSelect:o,nonce:i,...c}=n,d=al(cf,o),m=Zf(cf,o),h=We(l,d.onViewportChange),y=v.useRef(0);return f.jsxs(f.Fragment,{children:[f.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}),f.jsx(ic.Slot,{scope:o,children:f.jsx(He.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:De(c.onScroll,p=>{const x=p.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:w}=m;if(w!=null&&w.current&&g){const N=Math.abs(y.current-x.scrollTop);if(N>0){const T=window.innerHeight-An*2,E=parseFloat(g.style.minHeight),C=parseFloat(g.style.height),A=Math.max(E,C);if(A<T){const _=A+N,M=Math.min(T,_),k=_-M;g.style.height=M+"px",g.style.bottom==="0px"&&(x.scrollTop=k>0?k:0,g.style.justifyContent="flex-end")}}}y.current=x.scrollTop})})})]})});_b.displayName=cf;var jb="SelectGroup",[TR,CR]=Yr(jb),AR=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,c=Za();return f.jsx(TR,{scope:o,id:c,children:f.jsx(He.div,{role:"group","aria-labelledby":c,...i,ref:l})})});AR.displayName=jb;var Mb="SelectLabel",Ob=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,c=CR(Mb,o);return f.jsx(He.div,{id:c.id,...i,ref:l})});Ob.displayName=Mb;var $s="SelectItem",[RR,Db]=Yr($s),kb=v.forwardRef((n,l)=>{const{__scopeSelect:o,value:i,disabled:c=!1,textValue:d,...m}=n,h=nl($s,o),y=al($s,o),p=h.value===i,[x,g]=v.useState(d??""),[w,N]=v.useState(!1),T=We(l,_=>{var M;return(M=y.itemRefCallback)==null?void 0:M.call(y,_,i,c)}),E=Za(),C=v.useRef("touch"),A=()=>{c||(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 f.jsx(RR,{scope:o,value:i,disabled:c,textId:E,isSelected:p,onItemTextChange:v.useCallback(_=>{g(M=>M||((_==null?void 0:_.textContent)??"").trim())},[]),children:f.jsx(ic.ItemSlot,{scope:o,value:i,disabled:c,textValue:x,children:f.jsx(He.div,{role:"option","aria-labelledby":E,"data-highlighted":w?"":void 0,"aria-selected":p&&w,"data-state":p?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...m,ref:T,onFocus:De(m.onFocus,()=>N(!0)),onBlur:De(m.onBlur,()=>N(!1)),onClick:De(m.onClick,()=>{C.current!=="mouse"&&A()}),onPointerUp:De(m.onPointerUp,()=>{C.current==="mouse"&&A()}),onPointerDown:De(m.onPointerDown,_=>{C.current=_.pointerType}),onPointerMove:De(m.onPointerMove,_=>{var M;C.current=_.pointerType,c?(M=y.onItemLeave)==null||M.call(y):C.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:De(m.onPointerLeave,_=>{var M;_.currentTarget===document.activeElement&&((M=y.onItemLeave)==null||M.call(y))}),onKeyDown:De(m.onKeyDown,_=>{var k;((k=y.searchRef)==null?void 0:k.current)!==""&&_.key===" "||(mR.includes(_.key)&&A(),_.key===" "&&_.preventDefault())})})})})});kb.displayName=$s;var Yo="SelectItemText",zb=v.forwardRef((n,l)=>{const{__scopeSelect:o,className:i,style:c,...d}=n,m=nl(Yo,o),h=al(Yo,o),y=Db(Yo,o),p=vR(Yo,o),[x,g]=v.useState(null),w=We(l,A=>g(A),y.onItemTextChange,A=>{var _;return(_=h.itemTextRefCallback)==null?void 0:_.call(h,A,y.value,y.disabled)}),N=x==null?void 0:x.textContent,T=v.useMemo(()=>f.jsx("option",{value:y.value,disabled:y.disabled,children:N},y.value),[y.disabled,y.value,N]),{onNativeOptionAdd:E,onNativeOptionRemove:C}=p;return kt(()=>(E(T),()=>C(T)),[E,C,T]),f.jsxs(f.Fragment,{children:[f.jsx(He.span,{id:y.textId,...d,ref:w}),y.isSelected&&m.valueNode&&!m.valueNodeHasChildren?Fo.createPortal(d.children,m.valueNode):null]})});zb.displayName=Yo;var Lb="SelectItemIndicator",Ub=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n;return Db(Lb,o).isSelected?f.jsx(He.span,{"aria-hidden":!0,...i,ref:l}):null});Ub.displayName=Lb;var uf="SelectScrollUpButton",Bb=v.forwardRef((n,l)=>{const o=al(uf,n.__scopeSelect),i=Zf(uf,n.__scopeSelect),[c,d]=v.useState(!1),m=We(l,i.onScrollButtonChange);return kt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=y.scrollTop>0;d(p)};const y=o.viewport;return h(),y.addEventListener("scroll",h),()=>y.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?f.jsx(Vb,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:y}=o;h&&y&&(h.scrollTop=h.scrollTop-y.offsetHeight)}}):null});Bb.displayName=uf;var df="SelectScrollDownButton",Hb=v.forwardRef((n,l)=>{const o=al(df,n.__scopeSelect),i=Zf(df,n.__scopeSelect),[c,d]=v.useState(!1),m=We(l,i.onScrollButtonChange);return kt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=y.scrollHeight-y.clientHeight,x=Math.ceil(y.scrollTop)<p;d(x)};const y=o.viewport;return h(),y.addEventListener("scroll",h),()=>y.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?f.jsx(Vb,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:y}=o;h&&y&&(h.scrollTop=h.scrollTop+y.offsetHeight)}}):null});Hb.displayName=df;var Vb=v.forwardRef((n,l)=>{const{__scopeSelect:o,onAutoScroll:i,...c}=n,d=al("SelectScrollButton",o),m=v.useRef(null),h=sc(o),y=v.useCallback(()=>{m.current!==null&&(window.clearInterval(m.current),m.current=null)},[]);return v.useEffect(()=>()=>y(),[y]),kt(()=>{var x;const p=h().find(g=>g.ref.current===document.activeElement);(x=p==null?void 0:p.ref.current)==null||x.scrollIntoView({block:"nearest"})},[h]),f.jsx(He.div,{"aria-hidden":!0,...c,ref:l,style:{flexShrink:0,...c.style},onPointerDown:De(c.onPointerDown,()=>{m.current===null&&(m.current=window.setInterval(i,50))}),onPointerMove:De(c.onPointerMove,()=>{var p;(p=d.onItemLeave)==null||p.call(d),m.current===null&&(m.current=window.setInterval(i,50))}),onPointerLeave:De(c.onPointerLeave,()=>{y()})})}),_R="SelectSeparator",$b=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n;return f.jsx(He.div,{"aria-hidden":!0,...i,ref:l})});$b.displayName=_R;var ff="SelectArrow",jR=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,c=cc(o),d=nl(ff,o),m=al(ff,o);return d.open&&m.position==="popper"?f.jsx(cR,{...c,...i,ref:l}):null});jR.displayName=ff;var MR="SelectBubbleInput",Yb=v.forwardRef(({__scopeSelect:n,value:l,...o},i)=>{const c=v.useRef(null),d=We(i,c),m=gb(l);return v.useEffect(()=>{const h=c.current;if(!h)return;const y=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(y,"value").set;if(m!==l&&x){const g=new Event("change",{bubbles:!0});x.call(h,l),h.dispatchEvent(g)}},[m,l]),f.jsx(He.select,{...o,style:{...vb,...o.style},ref:d,defaultValue:l})});Yb.displayName=MR;function qb(n){return n===""||n===void 0}function Gb(n){const l=Fa(n),o=v.useRef(""),i=v.useRef(0),c=v.useCallback(m=>{const h=o.current+m;l(h),(function y(p){o.current=p,window.clearTimeout(i.current),p!==""&&(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,c,d]}function Pb(n,l,o){const c=l.length>1&&Array.from(l).every(p=>p===l[0])?l[0]:l,d=o?n.indexOf(o):-1;let m=OR(n,Math.max(d,0));c.length===1&&(m=m.filter(p=>p!==o));const y=m.find(p=>p.textValue.toLowerCase().startsWith(c.toLowerCase()));return y!==o?y:void 0}function OR(n,l){return n.map((o,i)=>n[(l+i)%n.length])}var DR=yb,Xb=xb,kR=wb,zR=Eb,LR=Nb,Kb=Tb,UR=_b,Qb=Ob,Zb=kb,BR=zb,HR=Ub,Ib=Bb,Fb=Hb,Jb=$b;const Wb=DR,ex=kR,If=v.forwardRef(({className:n,children:l,...o},i)=>f.jsxs(Xb,{ref:i,className:le("flex h-10 w-full items-center justify-between rounded-sm 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,f.jsx(zR,{asChild:!0,children:f.jsx(Xo,{className:"h-4 w-4 opacity-50"})})]}));If.displayName=Xb.displayName;const tx=v.forwardRef(({className:n,...l},o)=>f.jsx(Ib,{ref:o,className:le("flex cursor-default items-center justify-center py-1",n),...l,children:f.jsx(FE,{className:"h-4 w-4"})}));tx.displayName=Ib.displayName;const nx=v.forwardRef(({className:n,...l},o)=>f.jsx(Fb,{ref:o,className:le("flex cursor-default items-center justify-center py-1",n),...l,children:f.jsx(Xo,{className:"h-4 w-4"})}));nx.displayName=Fb.displayName;const Ff=v.forwardRef(({className:n,children:l,position:o="popper",...i},c)=>f.jsx(LR,{children:f.jsxs(Kb,{ref:c,className:le("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-lg 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:[f.jsx(tx,{}),f.jsx(UR,{className:le("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l}),f.jsx(nx,{})]})}));Ff.displayName=Kb.displayName;const VR=v.forwardRef(({className:n,...l},o)=>f.jsx(Qb,{ref:o,className:le("py-1.5 pl-8 pr-2 text-sm font-semibold",n),...l}));VR.displayName=Qb.displayName;const _r=v.forwardRef(({className:n,children:l,...o},i)=>f.jsxs(Zb,{ref:i,className:le("relative flex w-full cursor-default select-none items-center rounded-sm 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:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(HR,{children:f.jsx(Ds,{className:"h-4 w-4"})})}),f.jsx(BR,{children:l})]}));_r.displayName=Zb.displayName;const $R=v.forwardRef(({className:n,...l},o)=>f.jsx(Jb,{ref:o,className:le("-mx-1 my-1 h-px bg-muted",n),...l}));$R.displayName=Jb.displayName;var Gd="rovingFocusGroup.onEntryFocus",YR={bubbles:!1,cancelable:!0},Wo="RovingFocusGroup",[mf,ax,qR]=Xy(Wo),[GR,lx]=tl(Wo,[qR]),[PR,XR]=GR(Wo),rx=v.forwardRef((n,l)=>f.jsx(mf.Provider,{scope:n.__scopeRovingFocusGroup,children:f.jsx(mf.Slot,{scope:n.__scopeRovingFocusGroup,children:f.jsx(KR,{...n,ref:l})})}));rx.displayName=Wo;var KR=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:c=!1,dir:d,currentTabStopId:m,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:y,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...g}=n,w=v.useRef(null),N=We(l,w),T=Vf(d),[E,C]=Dr({prop:m,defaultProp:h??null,onChange:y,caller:Wo}),[A,_]=v.useState(!1),M=Fa(p),k=ax(o),Y=v.useRef(!1),[X,V]=v.useState(0);return v.useEffect(()=>{const H=w.current;if(H)return H.addEventListener(Gd,M),()=>H.removeEventListener(Gd,M)},[M]),f.jsx(PR,{scope:o,orientation:i,dir:T,loop:c,currentTabStopId:E,onItemFocus:v.useCallback(H=>C(H),[C]),onItemShiftTab:v.useCallback(()=>_(!0),[]),onFocusableItemAdd:v.useCallback(()=>V(H=>H+1),[]),onFocusableItemRemove:v.useCallback(()=>V(H=>H-1),[]),children:f.jsx(He.div,{tabIndex:A||X===0?-1:0,"data-orientation":i,...g,ref:N,style:{outline:"none",...n.style},onMouseDown:De(n.onMouseDown,()=>{Y.current=!0}),onFocus:De(n.onFocus,H=>{const ne=!Y.current;if(H.target===H.currentTarget&&ne&&!A){const se=new CustomEvent(Gd,YR);if(H.currentTarget.dispatchEvent(se),!se.defaultPrevented){const me=k().filter(O=>O.focusable),ce=me.find(O=>O.active),ue=me.find(O=>O.id===E),re=[ce,ue,...me].filter(Boolean).map(O=>O.ref.current);sx(re,x)}}Y.current=!1}),onBlur:De(n.onBlur,()=>_(!1))})})}),ox="RovingFocusGroupItem",ix=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:c=!1,tabStopId:d,children:m,...h}=n,y=Za(),p=d||y,x=XR(ox,o),g=x.currentTabStopId===p,w=ax(o),{onFocusableItemAdd:N,onFocusableItemRemove:T,currentTabStopId:E}=x;return v.useEffect(()=>{if(i)return N(),()=>T()},[i,N,T]),f.jsx(mf.ItemSlot,{scope:o,id:p,focusable:i,active:c,children:f.jsx(He.span,{tabIndex:g?0:-1,"data-orientation":x.orientation,...h,ref:l,onMouseDown:De(n.onMouseDown,C=>{i?x.onItemFocus(p):C.preventDefault()}),onFocus:De(n.onFocus,()=>x.onItemFocus(p)),onKeyDown:De(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){x.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const A=IR(C,x.orientation,x.dir);if(A!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let M=w().filter(k=>k.focusable).map(k=>k.ref.current);if(A==="last")M.reverse();else if(A==="prev"||A==="next"){A==="prev"&&M.reverse();const k=M.indexOf(C.currentTarget);M=x.loop?FR(M,k+1):M.slice(k+1)}setTimeout(()=>sx(M))}}),children:typeof m=="function"?m({isCurrentTabStop:g,hasTabStop:E!=null}):m})})});ix.displayName=ox;var QR={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ZR(n,l){return l!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function IR(n,l,o){const i=ZR(n.key,o);if(!(l==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(l==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return QR[i]}function sx(n,l=!1){const o=document.activeElement;for(const i of n)if(i===o||(i.focus({preventScroll:l}),document.activeElement!==o))return}function FR(n,l){return n.map((o,i)=>n[(l+i)%n.length])}var JR=rx,WR=ix,uc="Tabs",[e_]=tl(uc,[lx]),cx=lx(),[t_,Jf]=e_(uc),ux=v.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,onValueChange:c,defaultValue:d,orientation:m="horizontal",dir:h,activationMode:y="automatic",...p}=n,x=Vf(h),[g,w]=Dr({prop:i,onChange:c,defaultProp:d??"",caller:uc});return f.jsx(t_,{scope:o,baseId:Za(),value:g,onValueChange:w,orientation:m,dir:x,activationMode:y,children:f.jsx(He.div,{dir:x,"data-orientation":m,...p,ref:l})})});ux.displayName=uc;var dx="TabsList",fx=v.forwardRef((n,l)=>{const{__scopeTabs:o,loop:i=!0,...c}=n,d=Jf(dx,o),m=cx(o);return f.jsx(JR,{asChild:!0,...m,orientation:d.orientation,dir:d.dir,loop:i,children:f.jsx(He.div,{role:"tablist","aria-orientation":d.orientation,...c,ref:l})})});fx.displayName=dx;var mx="TabsTrigger",hx=v.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,disabled:c=!1,...d}=n,m=Jf(mx,o),h=cx(o),y=vx(m.baseId,i),p=yx(m.baseId,i),x=i===m.value;return f.jsx(WR,{asChild:!0,...h,focusable:!c,active:x,children:f.jsx(He.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":p,"data-state":x?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:y,...d,ref:l,onMouseDown:De(n.onMouseDown,g=>{!c&&g.button===0&&g.ctrlKey===!1?m.onValueChange(i):g.preventDefault()}),onKeyDown:De(n.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&m.onValueChange(i)}),onFocus:De(n.onFocus,()=>{const g=m.activationMode!=="manual";!x&&!c&&g&&m.onValueChange(i)})})})});hx.displayName=mx;var px="TabsContent",gx=v.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,forceMount:c,children:d,...m}=n,h=Jf(px,o),y=vx(h.baseId,i),p=yx(h.baseId,i),x=i===h.value,g=v.useRef(x);return v.useEffect(()=>{const w=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(w)},[]),f.jsx(Hr,{present:c||x,children:({present:w})=>f.jsx(He.div,{"data-state":x?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":y,hidden:!w,id:p,tabIndex:0,...m,ref:l,style:{...n.style,animationDuration:g.current?"0s":void 0},children:w&&d})})});gx.displayName=px;function vx(n,l){return`${n}-trigger-${l}`}function yx(n,l){return`${n}-content-${l}`}var n_=ux,bx=fx,xx=hx,Sx=gx;const a_=n_,wx=v.forwardRef(({className:n,...l},o)=>f.jsx(bx,{ref:o,className:le("inline-flex h-10 items-center justify-center rounded-lg bg-muted/72 p-1 text-muted-foreground shadow-inner shadow-background/40",n),...l}));wx.displayName=bx.displayName;const _s=v.forwardRef(({className:n,...l},o)=>f.jsx(xx,{ref:o,className:le("inline-flex items-center justify-center whitespace-nowrap rounded-sm 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)]",n),...l}));_s.displayName=xx.displayName;const Ys=v.forwardRef(({className:n,...l},o)=>f.jsx(Sx,{ref:o,className:le("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}));Ys.displayName=Sx.displayName;var Ex="AlertDialog",[l_]=tl(Ex,[wy]),ba=wy(),Nx=n=>{const{__scopeAlertDialog:l,...o}=n,i=ba(l);return f.jsx(By,{...i,...o,modal:!0})};Nx.displayName=Ex;var r_="AlertDialogTrigger",Tx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,c=ba(o);return f.jsx(Hy,{...c,...i,ref:l})});Tx.displayName=r_;var o_="AlertDialogPortal",Cx=n=>{const{__scopeAlertDialog:l,...o}=n,i=ba(l);return f.jsx(Vy,{...i,...o})};Cx.displayName=o_;var i_="AlertDialogOverlay",Ax=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,c=ba(o);return f.jsx(Lf,{...c,...i,ref:l})});Ax.displayName=i_;var Or="AlertDialogContent",[s_,c_]=l_(Or),u_=wC("AlertDialogContent"),Rx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,children:i,...c}=n,d=ba(o),m=v.useRef(null),h=We(l,m),y=v.useRef(null);return f.jsx(B5,{contentName:Or,titleName:_x,docsSlug:"alert-dialog",children:f.jsx(s_,{scope:o,cancelRef:y,children:f.jsxs(Uf,{role:"alertdialog",...d,...c,ref:h,onOpenAutoFocus:De(c.onOpenAutoFocus,p=>{var x;p.preventDefault(),(x=y.current)==null||x.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[f.jsx(u_,{children:i}),f.jsx(f_,{contentRef:m})]})})})});Rx.displayName=Or;var _x="AlertDialogTitle",jx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,c=ba(o);return f.jsx(Bf,{...c,...i,ref:l})});jx.displayName=_x;var Mx="AlertDialogDescription",Ox=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,c=ba(o);return f.jsx(Hf,{...c,...i,ref:l})});Ox.displayName=Mx;var d_="AlertDialogAction",Dx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,c=ba(o);return f.jsx(nc,{...c,...i,ref:l})});Dx.displayName=d_;var kx="AlertDialogCancel",zx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,{cancelRef:c}=c_(kx,o),d=ba(o),m=We(l,c);return f.jsx(nc,{...d,...i,ref:m})});zx.displayName=kx;var f_=({contentRef:n})=>{const l=`\`${Or}\` requires a description for the component to be accessible for screen reader users.
316
+
317
+ You can add a description to the \`${Or}\` by passing a \`${Mx}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
318
+
319
+ 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 \`${Or}\`. 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.
320
+
321
+ 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},m_=Nx,h_=Tx,p_=Cx,Lx=Ax,Ux=Rx,Bx=Dx,Hx=zx,Vx=jx,$x=Ox;const hf=m_,pf=h_,g_=p_,Yx=v.forwardRef(({className:n,...l},o)=>f.jsx(Lx,{className:le("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...l,ref:o}));Yx.displayName=Lx.displayName;const qs=v.forwardRef(({className:n,...l},o)=>f.jsxs(g_,{children:[f.jsx(Yx,{}),f.jsx(Ux,{ref:o,className:le("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-xl 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})]}));qs.displayName=Ux.displayName;const Gs=({className:n,...l})=>f.jsx("div",{className:le("flex flex-col space-y-2 text-center sm:text-left",n),...l});Gs.displayName="AlertDialogHeader";const Ps=({className:n,...l})=>f.jsx("div",{className:le("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...l});Ps.displayName="AlertDialogFooter";const Xs=v.forwardRef(({className:n,...l},o)=>f.jsx(Vx,{ref:o,className:le("text-lg font-semibold",n),...l}));Xs.displayName=Vx.displayName;const Ks=v.forwardRef(({className:n,...l},o)=>f.jsx($x,{ref:o,className:le("text-sm text-muted-foreground",n),...l}));Ks.displayName=$x.displayName;const Qs=v.forwardRef(({className:n,...l},o)=>f.jsx(Bx,{ref:o,className:le(Rf(),n),...l}));Qs.displayName=Bx.displayName;const Zs=v.forwardRef(({className:n,...l},o)=>f.jsx(Hx,{ref:o,className:le(Rf({variant:"outline"}),"mt-2 sm:mt-0",n),...l}));Zs.displayName=Hx.displayName;const v_={online:"bg-green-500",busy:"bg-yellow-500",offline:"bg-red-500"};function y_({status:n}){return f.jsxs("span",{className:"relative inline-flex h-2.5 w-2.5",children:[n==="online"&&f.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-green-500 opacity-30"}),f.jsx("span",{className:le("relative inline-flex h-2.5 w-2.5 rounded-full",v_[n])})]})}function b_({role:n,size:l="default"}){return f.jsx(xt,{variant:n==="leader"?"default":"secondary",className:le(l==="compact"?"px-1.5 py-0 text-[9px] leading-4":"text-[11px]"),children:n})}const qx={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 Wj({status:n,size:l="default"}){const o=qx[n],i=l==="compact"?"gap-0.5 px-1 py-0 text-[8px] leading-3 [&>span]:h-[3px] [&>span]:w-[3px]":"gap-1 px-1.5 py-0 text-[10px] leading-4 [&>span]:h-[5px] [&>span]:w-[5px]";return f.jsxs(xt,{variant:o.variant,className:le("rounded-sm font-medium shadow-none",i,o.className),children:[f.jsx("span",{className:le("rounded-full",o.dotClass)}),n]})}function eM({status:n,isNative:l=!1,size:o="default",className:i}){const c=qx[n],d=[n,l?"native":null].filter(Boolean).join(", "),m=o==="compact"?"h-1.5 w-1.5":"h-2 w-2";return f.jsxs("span",{className:le("inline-flex shrink-0 items-center gap-1",i),title:d,"aria-label":d,children:[f.jsx("span",{className:le("rounded-full",m,c.dotClass),title:n}),l&&f.jsx("span",{className:le("rounded-full bg-sky-500",m),title:"native"})]})}const x_={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function tM({priority:n}){const l=x_[n];return f.jsx(xt,{variant:l.variant,className:"rounded-sm px-1.5 py-0 text-[10px] leading-4 shadow-none",children:l.label})}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 Cr({label:n,value:l,mono:o=!1}){return f.jsxs("div",{className:"min-w-0 rounded-lg border border-border/60 bg-background/65 px-2.5 py-1.5",children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:n}),f.jsx("div",{className:o?"mt-0.5 break-all font-mono text-[11px] text-foreground":"mt-0.5 break-all text-[11px] text-foreground",children:l})]})}function w_({formatDateTime:n,viewInfo:l}){var i,c,d,m,h,y,p,x;const o=S_(l.packages);return f.jsxs(Ys,{value:"about","data-about-layout":"compact",className:"mt-0 space-y-2",children:[f.jsxs(Hn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(Vn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs($n,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(qE,{className:"h-3.5 w-3.5 text-primary"}),"Repository & runtime"]}),f.jsx(Yn,{className:"text-[10px]",children:"Build source and runtime identity for this node."})]}),f.jsxs(qn,{className:"space-y-2 px-3 pb-2.5",children:[(i=l.repository)!=null&&i.url?f.jsxs("a",{href:l.repository.url,target:"_blank",rel:"noreferrer",className:"group flex min-w-0 items-center justify-between gap-2 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:[f.jsx("span",{className:"truncate font-mono text-[10px]",children:l.repository.url}),f.jsx(sN,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]}):f.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."}),f.jsxs("div",{className:"grid gap-1.5 sm:grid-cols-2 lg:grid-cols-3",children:[f.jsx(Cr,{label:"Branch",value:((c=l.repository)==null?void 0:c.branch)??"Unavailable",mono:!!((d=l.repository)!=null&&d.branch)}),f.jsx(Cr,{label:"Commit",value:((m=l.repository)==null?void 0:m.commit)??"Unavailable",mono:!!((h=l.repository)!=null&&h.commit)}),f.jsx(Cr,{label:"Runtime",value:`${l.packageName??"meshy"} ${l.version}`,mono:!0}),f.jsx(Cr,{label:"Node.js",value:((y=l.runtime)==null?void 0:y.nodeVersion)??"Unavailable",mono:!!((p=l.runtime)!=null&&p.nodeVersion)}),f.jsx(Cr,{label:"PID",value:l.runtime?String(l.runtime.pid):"Unavailable",mono:!!l.runtime}),f.jsx(Cr,{label:"Started",value:n((x=l.runtime)==null?void 0:x.startedAt)})]})]})]}),f.jsxs(Hn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(Vn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs($n,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(hN,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),f.jsx(Yn,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),f.jsx(qn,{"data-package-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:o.map(g=>{var w,N;return f.jsxs("div",{className:"grid gap-1.5 rounded-lg border border-border/60 bg-background/65 px-2.5 py-1.5 sm:grid-cols-[9rem_minmax(0,1fr)_auto] sm:items-center",children:[f.jsx("div",{className:"text-[11px] font-medium text-foreground",children:g.label}),f.jsx("div",{className:"min-w-0 truncate text-[10px] text-muted-foreground",children:(w=g.value)==null?void 0:w.name}),f.jsx(xt,{variant:"outline",className:"w-fit rounded-sm border-border/70 bg-background/60 font-mono text-[10px]",children:(N=g.value)==null?void 0:N.version})]},g.key)})})]})]})}var dc="Checkbox",[E_]=tl(dc),[N_,Wf]=E_(dc);function T_(n){const{__scopeCheckbox:l,checked:o,children:i,defaultChecked:c,disabled:d,form:m,name:h,onCheckedChange:y,required:p,value:x="on",internal_do_not_use_render:g}=n,[w,N]=Dr({prop:o,defaultProp:c??!1,onChange:y,caller:dc}),[T,E]=v.useState(null),[C,A]=v.useState(null),_=v.useRef(!1),M=T?!!m||!!T.closest("form"):!0,k={checked:w,disabled:d,setChecked:N,control:T,setControl:E,name:h,form:m,value:x,hasConsumerStoppedPropagationRef:_,required:p,defaultChecked:Ia(c)?!1:c,isFormControl:M,bubbleInput:C,setBubbleInput:A};return f.jsx(N_,{scope:l,...k,children:C_(g)?g(k):i})}var Gx="CheckboxTrigger",Px=v.forwardRef(({__scopeCheckbox:n,onKeyDown:l,onClick:o,...i},c)=>{const{control:d,value:m,disabled:h,checked:y,required:p,setControl:x,setChecked:g,hasConsumerStoppedPropagationRef:w,isFormControl:N,bubbleInput:T}=Wf(Gx,n),E=We(c,x),C=v.useRef(y);return v.useEffect(()=>{const A=d==null?void 0:d.form;if(A){const _=()=>g(C.current);return A.addEventListener("reset",_),()=>A.removeEventListener("reset",_)}},[d,g]),f.jsx(He.button,{type:"button",role:"checkbox","aria-checked":Ia(y)?"mixed":y,"aria-required":p,"data-state":Ix(y),"data-disabled":h?"":void 0,disabled:h,value:m,...i,ref:E,onKeyDown:De(l,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:De(o,A=>{g(_=>Ia(_)?!0:!_),T&&N&&(w.current=A.isPropagationStopped(),w.current||A.stopPropagation())})})});Px.displayName=Gx;var em=v.forwardRef((n,l)=>{const{__scopeCheckbox:o,name:i,checked:c,defaultChecked:d,required:m,disabled:h,value:y,onCheckedChange:p,form:x,...g}=n;return f.jsx(T_,{__scopeCheckbox:o,checked:c,defaultChecked:d,disabled:h,required:m,onCheckedChange:p,name:i,form:x,value:y,internal_do_not_use_render:({isFormControl:w})=>f.jsxs(f.Fragment,{children:[f.jsx(Px,{...g,ref:l,__scopeCheckbox:o}),w&&f.jsx(Zx,{__scopeCheckbox:o})]})})});em.displayName=dc;var Xx="CheckboxIndicator",Kx=v.forwardRef((n,l)=>{const{__scopeCheckbox:o,forceMount:i,...c}=n,d=Wf(Xx,o);return f.jsx(Hr,{present:i||Ia(d.checked)||d.checked===!0,children:f.jsx(He.span,{"data-state":Ix(d.checked),"data-disabled":d.disabled?"":void 0,...c,ref:l,style:{pointerEvents:"none",...n.style}})})});Kx.displayName=Xx;var Qx="CheckboxBubbleInput",Zx=v.forwardRef(({__scopeCheckbox:n,...l},o)=>{const{control:i,hasConsumerStoppedPropagationRef:c,checked:d,defaultChecked:m,required:h,disabled:y,name:p,value:x,form:g,bubbleInput:w,setBubbleInput:N}=Wf(Qx,n),T=We(o,N),E=gb(d),C=rb(i);v.useEffect(()=>{const _=w;if(!_)return;const M=window.HTMLInputElement.prototype,Y=Object.getOwnPropertyDescriptor(M,"checked").set,X=!c.current;if(E!==d&&Y){const V=new Event("click",{bubbles:X});_.indeterminate=Ia(d),Y.call(_,Ia(d)?!1:d),_.dispatchEvent(V)}},[w,E,d,c]);const A=v.useRef(Ia(d)?!1:d);return f.jsx(He.input,{type:"checkbox","aria-hidden":!0,defaultChecked:m??A.current,required:h,disabled:y,name:p,value:x,form:g,...l,tabIndex:-1,ref:T,style:{...l.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Zx.displayName=Qx;function C_(n){return typeof n=="function"}function Ia(n){return n==="indeterminate"}function Ix(n){return Ia(n)?"indeterminate":n?"checked":"unchecked"}const Fx=v.forwardRef(({className:n,...l},o)=>f.jsx(em,{ref:o,className:le("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:f.jsx(Kx,{className:le("flex items-center justify-center text-current"),children:f.jsx(Ds,{className:"h-3.5 w-3.5"})})}));Fx.displayName=em.displayName;const tm=v.forwardRef(({className:n,type:l,...o},i)=>f.jsx("input",{type:l,className:le("flex h-10 w-full rounded-sm 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}));tm.displayName="Input";const Jv=["queued","running"];function A_(n){return n.map(l=>`${l.id}:${l.name}`).join("\0")}function R_(n){return n==="claude"||n==="codex"||n==="copilot"}function Jx(n){var o;if(n.kind!=="agent.upgrade")return null;const l=(o=n.payload)==null?void 0:o.agent;return R_(l)?`${n.nodeId}:${l}`:null}function __(n){return n.status==="succeeded"||n.status==="failed"}async function Wx(n,l={}){const o=l.getOperation??pE,i=l.pollIntervalMs??2e3,c=l.timeoutMs??24e4,d=Date.now()+c;let m=n;for(;!__(m)&&Date.now()<d;)await M_(i),m=await o(n.id);return m}async function j_(n,l=gE){const o=new Set(n),i=await Promise.all(Jv.map(d=>l({kind:"agent.upgrade",status:d}))),c=new Map;for(const d of i.flat()){if(!Jv.includes(d.status)||o.size>0&&!o.has(d.nodeId))continue;const m=Jx(d);if(!m)continue;const h=c.get(m);(!h||d.updatedAt>h.updatedAt)&&c.set(m,d)}return c}function M_(n){return new Promise(l=>setTimeout(l,n))}const O_=1500,D_=1e3,k_=9e4;async function e1(n={}){const l=n.fetchHealth??z_,o=n.initialDelayMs??O_,i=n.pollIntervalMs??D_,c=n.previousPid,d=n.reload??(()=>window.location.reload()),m=n.sleep??U_,h=n.timeoutMs??k_,y=Date.now()+h;let p=!1;for(o>0&&await m(o);Date.now()<=y;){const x=L_(await l());if(!x.ok){p=!0,await m(i);continue}if(c===void 0||x.pid!==void 0&&x.pid!==c||p)return d(),!0;await m(i)}return!1}async function z_(){try{const n=await fetch("/api/system/health",{cache:"no-store"}),l=await n.json().catch(()=>null),o=l&&typeof l=="object"&&typeof l.pid=="number"?l.pid:void 0;return{ok:n.ok,pid:o}}catch{return!1}}function L_(n){return typeof n=="boolean"?{ok:n}:n}function U_(n){return new Promise(l=>window.setTimeout(l,n))}function B_(n,l=!0){return l?(n==null?void 0:n.restartMode)==="development"?"Restart dev runtime":n!=null&&n.updateAvailable?"Restart to update":"Restart runtime":n!=null&&n.updateAvailable?"Restart follower to update":"Restart follower"}function H_({checkedLabel:n,disableAuthDefault:l,endpoint:o,isLiveLocalNode:i,nodeId:c,nodeName:d,onRefresh:m,pid:h,transportType:y,update:p,workDir:x}){const g=B_(p,i),[w,N]=v.useState(null),[T,E]=v.useState(()=>Wv({disableAuthDefault:l,endpoint:o,nodeName:d,transportType:y,workDir:x})),[C,A]=v.useState(!1),[_,M]=v.useState(!1),[k,Y]=v.useState(!1);v.useEffect(()=>{E(Wv({disableAuthDefault:l,endpoint:o,nodeName:d,transportType:y,workDir:x}))},[l,o,d,y,x]);async function X(){if(!c||C||_)return;const se=p.updateAvailable?"update":"restart",me=Y_(T);if(T.port.trim()&&(me==null?void 0:me.port)===void 0){Fe.error("Runtime restart port must be a positive integer");return}const ce=me?{reason:se,startArgs:me}:{reason:se};A(!0);try{if(i){const O=await M0(ce);N({...O,pid:O.pid??h,status:"accepted"}),Fe.info(`Restarting ${d} from a detached helper. PID ${O.pid??h??"unknown"} will not stay attached to the original terminal window; follow ${O.logPath} for launch output.`),e1({previousPid:O.pid??h}).then($=>{$||(A(!1),Fe.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout. Refresh the page after the node finishes starting."))}).catch($=>{A(!1),Fe.error($ instanceof Error?$.message:"Runtime restart recovery failed")});return}const ue=await yE(c,ce);N({operationId:ue.id,pid:h,status:ue.status}),Fe.info(`Restart requested on ${d}. Operation ${Pd(ue.id)} will hand off to a detached process, so the new runtime will not stay attached to the original terminal window.`);const fe=await Wx(ue,{timeoutMs:6e4}),re=$_(fe);N({command:re==null?void 0:re.command,logPath:re==null?void 0:re.logPath,mode:re==null?void 0:re.mode,operationId:fe.id,pid:(re==null?void 0:re.pid)??h,status:fe.status}),fe.status==="succeeded"?(await(m==null?void 0:m()),Fe.success(`Restart handoff accepted on ${d}. Follow ${(re==null?void 0:re.logPath)??"the node restart log"} for launch output.`)):fe.status==="failed"?Fe.error(fe.error??`Restart failed on ${d}`):Fe.info(`Restart operation ${Pd(fe.id)} is still ${fe.status}. More details will update after the node reports back.`),A(!1)}catch(ue){A(!1),Fe.error(ue instanceof Error?ue.message:"Runtime restart failed")}}async function V(){if(!(!i||C||_)){M(!0);try{const se=await mE();Fe.info(`Stopping Meshy process ${se.pid}`)}catch(se){M(!1),Fe.error(se instanceof Error?se.message:"Runtime stop failed")}}}const H=C?"restarting":_?"stopping":(w==null?void 0:w.status)??"idle",ne=p.restartMode==="development";return f.jsxs("div",{className:"rounded-xl border border-border/70 bg-background/70 overflow-hidden",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2 border-b border-border/50",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Os,{className:"h-3.5 w-3.5 text-primary shrink-0"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-[11px] font-semibold text-foreground leading-tight",children:"Runtime"}),f.jsx("div",{className:"text-[10px] text-muted-foreground leading-tight",children:ne?"Development launcher":`Latest ${p.latestVersion??"—"}`})]})]}),f.jsx("div",{className:"flex items-center gap-1.5",children:f.jsx(xt,{variant:p.updateAvailable?"default":"outline",className:"rounded-full border-border/70 bg-background/60 font-mono text-[10px] px-2 py-0.5",children:ne?"dev":p.updateAvailable?`→ ${p.latestVersion}`:"current"})})]}),f.jsxs("div",{className:"grid grid-cols-2 divide-x divide-border/50 border-b border-border/50",children:[f.jsxs("div",{className:"px-3 py-1.5",children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:"PID"}),f.jsx("div",{className:"mt-0.5 font-mono text-[11px] text-foreground",children:h??"—"})]}),f.jsxs("div",{className:"px-3 py-1.5",children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:"Status"}),f.jsx("div",{className:"mt-0.5 text-[11px] text-foreground capitalize",children:H})]})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2",children:[f.jsxs("div",{className:"text-[10px] text-muted-foreground",children:["Checked ",n]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[i&&f.jsxs(hf,{children:[f.jsx(pf,{asChild:!0,children:f.jsxs(bn,{type:"button",size:"sm",variant:"ghost",disabled:C||_,className:"h-7 rounded-lg px-2 text-[11px] text-muted-foreground hover:text-destructive hover:bg-destructive/10",children:[f.jsx(wN,{className:le("mr-1 h-3.5 w-3.5",_&&"animate-pulse")}),_?"Stopping":"Stop"]})}),f.jsxs(qs,{className:"max-w-[22rem] rounded-xl gap-2 p-4",children:[f.jsxs(Gs,{className:"space-y-1",children:[f.jsx(Xs,{className:"text-sm",children:"Stop runtime?"}),f.jsx(Ks,{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."})]}),f.jsxs(Ps,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Zs,{className:"h-7 rounded-lg px-2 text-[11px]",children:"Cancel"}),f.jsx(Qs,{className:"h-7 rounded-lg px-2 text-[11px] bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:()=>void V(),children:"Stop runtime"})]})]})]}),f.jsxs(hf,{children:[f.jsx(pf,{asChild:!0,children:f.jsxs(bn,{type:"button",size:"sm",variant:p.updateAvailable?"default":"outline",disabled:!c||C||_,className:"h-7 rounded-lg px-2 text-[11px]",children:[f.jsx(B0,{className:le("mr-1 h-3.5 w-3.5",C&&"animate-spin")}),C?"Restarting…":g]})}),f.jsxs(qs,{className:"max-w-[28rem] gap-3 rounded-xl p-4",children:[f.jsxs(Gs,{className:"space-y-1",children:[f.jsxs(Xs,{className:"text-sm",children:[g,"?"]}),f.jsxs(Ks,{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."]})]}),f.jsx(V_,{value:T,onChange:E}),f.jsxs(Ps,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Zs,{className:"h-7 rounded-lg px-2 text-[11px]",children:"Cancel"}),f.jsx(Qs,{className:"h-7 rounded-lg px-2 text-[11px]",onClick:()=>void X(),children:g})]})]})]})]})]}),f.jsxs("div",{className:"border-t border-border/50",children:[f.jsxs("button",{type:"button",onClick:()=>Y(se=>!se),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:[f.jsxs("span",{className:"flex items-center gap-1.5",children:[f.jsx($0,{className:"h-3 w-3"}),"Restart details"]}),f.jsx(Xo,{className:le("h-3 w-3 transition-transform duration-150",k&&"rotate-180")})]}),k&&f.jsxs("div",{className:"border-t border-border/50 bg-muted/20 px-3 py-2 space-y-1",children:[f.jsx(_l,{label:"Current PID",value:h===void 0?"—":String(h),mono:h!==void 0}),f.jsx(_l,{label:"Restart PID",value:(w==null?void 0:w.pid)===void 0?"Pending":String(w.pid),mono:(w==null?void 0:w.pid)!==void 0}),f.jsx(_l,{label:"Operation",value:w!=null&&w.operationId?Pd(w.operationId):"Local direct request",mono:!!(w!=null&&w.operationId)}),f.jsx(_l,{label:"Status",value:(w==null?void 0:w.status)??(C?"requested":"idle")}),f.jsx(_l,{label:"Launcher",value:(w==null?void 0:w.command)??"Available after restart",mono:!!(w!=null&&w.command)}),f.jsx(_l,{label:"Log",value:(w==null?void 0:w.logPath)??"Available after restart",mono:!!(w!=null&&w.logPath)}),f.jsx(_l,{label:"Terminal",value:"New process is detached from original terminal"})]})]}),p.detail&&f.jsx("div",{className:"border-t border-border/50 px-3 py-1.5 text-[10px] text-muted-foreground bg-muted/20",children:p.detail})]})}function V_({onChange:n,value:l}){const o=(i,c)=>{n({...l,[i]:c})};return f.jsxs("div",{className:"rounded-lg border border-border/70 bg-muted/30 p-3 space-y-3",children:[f.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-muted-foreground",children:"Startup arguments"}),f.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[f.jsx(Bo,{label:"HTTP port",value:l.port,onChange:i=>o("port",i),inputMode:"numeric"}),f.jsx(Bo,{label:"Node name",value:l.name,onChange:i=>o("name",i)}),f.jsx(Bo,{label:"Join endpoint",value:l.join,onChange:i=>o("join",i),className:"sm:col-span-2"}),f.jsxs("div",{className:"space-y-1",children:[f.jsx("label",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:"Transport"}),f.jsxs(Wb,{value:l.transport,onValueChange:i=>o("transport",t1(i)),children:[f.jsx(If,{className:"h-7 rounded-md border-border/70 bg-background/70 px-2 text-[10px]",children:f.jsx(ex,{placeholder:"Transport"})}),f.jsxs(Ff,{children:[f.jsx(_r,{className:"py-1 text-[11px]",value:"inherit",children:"current / default"}),f.jsx(_r,{className:"py-1 text-[11px]",value:"direct",children:"direct"}),f.jsx(_r,{className:"py-1 text-[11px]",value:"devtunnel",children:"devtunnel"}),f.jsx(_r,{className:"py-1 text-[11px]",value:"tailscale",children:"tailscale"})]})]})]}),f.jsx(Bo,{label:"Working directory",value:l.workDir,onChange:i=>o("workDir",i)}),f.jsx(Bo,{label:"Config path",value:l.config,onChange:i=>o("config",i),className:"sm:col-span-2"}),f.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:[f.jsx(Fx,{className:"h-3.5 w-3.5",checked:l.disableAuth,onCheckedChange:i=>n({...l,disableAuth:i===!0,disableAuthKnown:!0})}),"Disable auth"]})]})]})}function Bo({className:n,inputMode:l,label:o,onChange:i,value:c}){return f.jsxs("label",{className:le("space-y-1",n),children:[f.jsx("span",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:o}),f.jsx(tm,{className:"h-7 rounded-md px-2 text-[10px]",inputMode:l,value:c,onChange:d=>i(d.target.value)})]})}function _l({label:n,value:l,mono:o=!1}){return f.jsxs("div",{className:"flex items-start justify-between gap-3 text-[10px]",children:[f.jsx("span",{className:"shrink-0 uppercase tracking-[0.14em] text-muted-foreground",children:n}),f.jsx("span",{className:le("break-all text-right text-foreground",o&&"font-mono"),children:l})]})}function $_(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 Wv(n){return{port:q_(n.endpoint),name:n.nodeName,join:"",transport:t1(n.transportType),workDir:n.workDir??"",config:"",disableAuth:n.disableAuthDefault===!0,disableAuthKnown:n.disableAuthDefault!==void 0}}function Y_(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 t1(n){return n==="direct"||n==="devtunnel"||n==="tailscale"?n:"inherit"}function q_(n){if(!n)return"";try{return new URL(n).port||""}catch{return""}}function Pd(n){return n.length<=8?n:n.slice(0,8)}function Ho({formatDateTime:n,name:l,status:o,statusVariant:i}){return f.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:[f.jsxs("div",{children:[f.jsx("div",{className:"text-[11px] font-medium text-foreground",children:l}),f.jsx("div",{className:"text-[10px] text-muted-foreground",children:n(o==null?void 0:o.checkedAt)})]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[typeof(o==null?void 0:o.authenticated)=="boolean"&&f.jsx(xt,{variant:o.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:o.authenticated?"auth ok":"auth required"}),f.jsx(xt,{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 Qt(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 G_(n){const l=Math.max(0,Math.floor(n)),o=Math.floor(l/86400),i=Math.floor(l%86400/3600),c=Math.floor(l%3600/60);return o>0?`${o}d ${i}h`:i>0?`${i}h ${c}m`:`${c}m`}function e0(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 Rr(n){return n==="ok"?"default":n==="missing"||n==="install-failed"||n==="login-failed"?"destructive":n==="not-authenticated"||n==="unsupported-platform"?"outline":"secondary"}function P_(n){return n.available?f.jsxs(xt,{className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[f.jsx($o,{className:"h-3 w-3"}),"Available"]}):f.jsxs(xt,{variant:"destructive",className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[f.jsx(nN,{className:"h-3 w-3"}),"Unavailable"]})}function X_(n){return n.update?n.update.updateAvailable?f.jsxs(xt,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Update ",n.update.latestVersion]}):f.jsx(xt,{variant:"secondary",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:"Up to date"}):null}function K_(n){return n.available?null:n.metadataStatus??null}function Q_(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 Z_(n){if(n.error)return n.error;const l=n.result;return(l==null?void 0:l.detail)??null}function Je({label:n,value:l,mono:o=!1}){return f.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:[f.jsx("span",{className:"shrink-0 text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:n}),f.jsx("span",{className:le("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:l})]})}function Vo({label:n,value:l,mono:o=!1,className:i}){return f.jsxs("div",{className:le("min-w-0 space-y-0.5",i),children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:n}),f.jsx("div",{className:le("truncate text-[11px] text-foreground",o&&"font-mono",n==="Path"&&"break-all whitespace-normal"),children:l})]})}function I_({agent:n,nodeName:l,activeOperation:o,onUpgrade:i}){var y,p;const c=((y=n.update)==null?void 0:y.updateAvailable)===!0,d=X_(n),m=!!o,h=K_(n);return f.jsxs("div",{className:"rounded-lg border border-border/60 bg-background/65 px-3 py-2.5 transition-colors hover:bg-background/85",children:[f.jsxs("div",{className:"grid gap-3 lg:grid-cols-[12rem_minmax(0,1fr)_auto] lg:items-start",children:[f.jsxs("div",{className:"min-w-0 space-y-1.5",children:[f.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-semibold text-foreground",children:[f.jsx(z0,{className:"h-3.5 w-3.5 shrink-0 text-primary"}),f.jsx("span",{className:"truncate",children:n.label})]}),f.jsxs("div",{className:"truncate text-[10px] text-muted-foreground",children:["Command: ",f.jsx("span",{className:"font-mono text-[10px]",children:n.command})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[P_(n),h&&f.jsx(xt,{variant:Rr(h),className:"rounded-full px-2 py-0 text-[10px] uppercase tracking-[0.14em]",children:h})]})]}),f.jsxs("div",{className:"grid min-w-0 gap-x-4 gap-y-1.5 sm:grid-cols-2",children:[f.jsx(Vo,{label:"Version",value:n.version??"Unavailable",mono:!!n.version}),n.update&&f.jsx(Vo,{label:"Latest",value:n.update.latestVersion??"Unavailable",mono:!!n.update.latestVersion}),f.jsx(Vo,{label:"Checked",value:Qt(n.checkedAt)}),n.update&&f.jsx(Vo,{label:"Update check",value:Qt(n.update.checkedAt)}),f.jsx(Vo,{label:"Path",value:n.path??"Not on PATH",mono:!!n.path,className:"sm:col-span-2"})]}),f.jsx("div",{className:"flex items-start justify-start lg:justify-end",children:o?f.jsxs(xt,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Upgrade ",o.status]}):c?f.jsxs(hf,{children:[f.jsx(pf,{asChild:!0,children:f.jsx("button",{type:"button",disabled:m,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})}),f.jsxs(qs,{children:[f.jsxs(Gs,{children:[f.jsxs(Xs,{children:["Upgrade ",n.label,"?"]}),f.jsxs(Ks,{children:["This runs ",Q_(n)," on ",l,". Remote nodes execute the command on the remote machine."]})]}),f.jsxs(Ps,{children:[f.jsx(Zs,{children:"Cancel"}),f.jsx(Qs,{onClick:()=>i(n),children:"Upgrade"})]})]})]}):d})]}),((p=n.update)==null?void 0:p.detail)&&f.jsx("div",{className:"mt-2 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:n.update.detail}),n.detail&&f.jsx("div",{className:"mt-2 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:n.detail})]})}function F_(n,l){var o;return(o=n==null?void 0:n.nodes)!=null&&o.length?n.nodes:l?[l]:[]}function J_(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 W_(n,l){return n.id===l?`${n.name} (this node)`:`${n.name} (${n.role})`}function e3(n){return n==="claude"?"Claude Code":n==="copilot"?"Copilot CLI":"Codex"}function t3(n){var o;const l=(o=n.payload)==null?void 0:o.agent;return l==="claude"||l==="codex"||l==="copilot"?l:null}function n3({cluster:n,systemInfo:l,sseConnected:o,initialSelectedNodeId:i,onRefresh:c}){var ne,se,me,ce,ue,fe,re,O,$,F,de,Q,j,G,K,W,ee,oe,te,ie;const d=v.useMemo(()=>F_(n,l),[n,l]),[m,h]=v.useState(()=>{var J;return i??(l==null?void 0:l.nodeId)??((J=n==null?void 0:n.self)==null?void 0:J.id)??""}),[y,p]=v.useState(()=>new Map),x=v.useRef(new Set),g=v.useRef(new Set),w=(n==null?void 0:n.self)??l??d[0]??null,N=d.find(J=>J.id===m)??w,T=N?J_(N,l):null,E=!!(l&&N&&N.id===l.nodeId),C=E||!!(N!=null&&N.settingsSnapshot),A=T==null?void 0:T.runtimeUpdate,_=((ne=T==null?void 0:T.startupRequirements)==null?void 0:ne.components)??(T==null?void 0:T.components)??{},M=v.useMemo(()=>d.map(J=>J.id),[d]),k=M.join("\0"),Y=A_(d),X=v.useMemo(()=>new Map(d.map(J=>[J.id,J.name])),[Y]);v.useEffect(()=>{i&&M.includes(i)&&h(i)},[i,k]);const V=v.useCallback(async(J,be)=>{const ye=Jx(J);if(!ye||x.current.has(J.id))return;const Se=t3(J),Ve=(be==null?void 0:be.agentLabel)??(Se?e3(Se):"Agent"),Le=(be==null?void 0:be.nodeName)??X.get(J.nodeId)??J.nodeId;x.current.add(J.id),p(je=>new Map(je).set(ye,J));try{const je=await Wx(J);if(je.status==="succeeded")await(c==null?void 0:c()),g.current.has(je.id)||(Fe.success(`${Ve} upgrade finished on ${Le}`),g.current.add(je.id));else if(je.status==="failed")g.current.has(je.id)||(Fe.error(Z_(je)??`${Ve} upgrade failed`),g.current.add(je.id));else{p(ft=>new Map(ft).set(ye,je)),Fe.info(`${Ve} upgrade is still ${je.status} on ${Le}`);return}p(ft=>{const ot=new Map(ft),zt=ot.get(ye);return(!zt||zt.id===je.id)&&ot.delete(ye),ot})}catch(je){p(ft=>{const ot=new Map(ft),zt=ot.get(ye);return(!zt||zt.id===J.id)&&ot.delete(ye),ot}),Fe.error(je instanceof Error?je.message:`${Ve} upgrade failed`)}finally{x.current.delete(J.id)}},[c,X]);v.useEffect(()=>{if(M.length===0)return;let J=!1;async function be(){let ye;try{ye=await j_(M)}catch{return}if(!J){p(Se=>{const Ve=new Map(Se);for(const[Le,je]of ye)Ve.set(Le,je);return Ve});for(const Se of ye.values())V(Se)}}return be(),()=>{J=!0}},[V,k]);async function H(J){if(N)try{const be=await vE(N.id,J.id);Fe.info(`${J.label} upgrade started on ${N.name}`),await V(be,{agentLabel:J.label,nodeName:N.name})}catch(be){Fe.error(be instanceof Error?be.message:`${J.label} upgrade failed`)}}return!N||!T?f.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..."}):f.jsxs("div",{className:"space-y-3",children:[f.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&&f.jsxs(xt,{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 ",Qt((se=N.settingsSnapshot)==null?void 0:se.collectedAt)]}),f.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-end md:justify-between",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[f.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:[f.jsx(y_,{status:N.status}),f.jsx("span",{className:"font-medium text-foreground",children:N.name})]}),f.jsx(b_,{role:N.role}),f.jsx(xt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:N.transportType??T.transportType??"direct"}),f.jsx(xt,{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"})]}),f.jsxs("div",{children:[f.jsx("div",{className:"text-[10px] uppercase tracking-[0.34em] text-muted-foreground",children:"Session"}),f.jsx("h3",{className:"mt-0.5 text-sm font-semibold tracking-tight text-foreground",children:"Node runtime"}),f.jsx("p",{className:"mt-0.5 text-[11px] text-muted-foreground",children:"Runtime environment, connectivity, and build metadata."})]}),d.length>1&&f.jsxs("div",{className:"w-48 space-y-1.5",children:[f.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Inspect node"}),f.jsxs(Wb,{value:N.id,onValueChange:h,children:[f.jsx(If,{className:"h-7 rounded-lg border-border/70 bg-background/70 text-[11px]",children:f.jsx(ex,{placeholder:"Choose a node"})}),f.jsx(Ff,{className:"settings-node-select-content rounded-lg text-[10px] leading-4",children:d.map(J=>f.jsx(_r,{value:J.id,className:"settings-node-select-item py-1 pl-6 pr-2 text-[10px] leading-4 [&>span]:left-1.5 [&_svg]:h-3 [&_svg]:w-3",children:W_(J,l==null?void 0:l.nodeId)},J.id))})]})]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsxs(xt,{variant:o?"default":"outline",className:"gap-1 rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:[f.jsx(NN,{className:"h-3 w-3"}),o?"Live link":"Reconnecting"]}),f.jsxs(xt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:["Uptime ",G_(T.uptime)]})]})]})]}),!C&&f.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."}),f.jsxs(a_,{defaultValue:"session",className:"space-y-2",children:[f.jsxs(wx,{className:"h-auto flex-wrap rounded-xl border border-border/60 bg-muted/40 p-0.5",children:[f.jsx(_s,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),f.jsx(_s,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),f.jsx(_s,{value:"about",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"About"})]}),f.jsxs(Ys,{value:"session",className:"mt-0 grid gap-2 xl:grid-cols-[1.15fr_0.85fr]",children:[f.jsxs(Hn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(Vn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs($n,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(H0,{className:"h-3.5 w-3.5 text-primary"}),"Selected node"]}),f.jsx(Yn,{className:"text-[10px]",children:"Cluster role, identity, and node-scoped runtime state."})]}),f.jsxs(qn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(Je,{label:"Node ID",value:T.nodeId,mono:!0}),f.jsx(Je,{label:"Status",value:N.status}),f.jsx(Je,{label:"Role",value:N.role}),f.jsx(Je,{label:"Endpoint",value:N.endpoint,mono:!0}),f.jsx(Je,{label:"Joined",value:Qt(N.joinedAt)}),f.jsx(Je,{label:"Heartbeat",value:Qt(N.lastHeartbeat)}),f.jsx(Je,{label:"Capabilities",value:N.capabilities.length>0?N.capabilities.join(", "):"None"})]})]}),f.jsxs(Hn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(Vn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs($n,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(oN,{className:"h-3.5 w-3.5 text-primary"}),"OS info"]}),f.jsx(Yn,{className:"text-[10px]",children:"Host and resource details reported by the current process."})]}),f.jsxs(qn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(Je,{label:"Host",value:((me=T.os)==null?void 0:me.hostname)??"Unavailable"}),f.jsx(Je,{label:"Platform",value:T.os?`${T.os.platform} ${T.os.release}`:"Unavailable"}),f.jsx(Je,{label:"Arch",value:((ce=T.os)==null?void 0:ce.arch)??"Unavailable"}),f.jsx(Je,{label:"CPU",value:((ue=T.os)==null?void 0:ue.cpuModel)??"Unavailable"}),f.jsx(Je,{label:"Cores",value:String(((fe=T.os)==null?void 0:fe.cpuCount)??"Unavailable")}),f.jsx(Je,{label:"Memory",value:T.os?`${e0(T.os.freeMemoryBytes)} free / ${e0(T.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),A&&f.jsx("div",{className:"xl:col-span-2",children:f.jsx(H_,{checkedLabel:Qt(A.checkedAt),disableAuthDefault:((re=T.auth)==null?void 0:re.enabled)===void 0?void 0:T.auth.enabled===!1,endpoint:N.endpoint,isLiveLocalNode:E,nodeId:N.id,nodeName:N.name,onRefresh:c,pid:(O=T.runtime)==null?void 0:O.pid,transportType:N.transportType,update:A,workDir:(($=T.runtime)==null?void 0:$.workDir)??N.workDir})}),f.jsxs(Hn,{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:[f.jsxs(Vn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs($n,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(z0,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),f.jsx(Yn,{className:"text-[10px]",children:E?"Live command availability for runtime agents on this node.":"Most recent agent availability snapshot synced from this node."})]}),f.jsx(qn,{"data-agent-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:(T.agents??[]).map(J=>f.jsx(I_,{agent:J,nodeName:N.name,activeOperation:y.get(`${N.id}:${J.id}`),onUpgrade:H},J.id))})]})]}),f.jsxs(Ys,{value:"access",className:"mt-0 grid gap-2 xl:grid-cols-2",children:[f.jsxs(Hn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(Vn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs($n,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(XE,{className:"h-3.5 w-3.5 text-primary"}),"Access surface"]}),f.jsx(Yn,{className:"text-[10px]",children:"How this node is exposed to the dashboard and other peers."})]}),f.jsxs(qn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(Je,{label:"Transport",value:N.transportType??T.transportType??"direct"}),f.jsx(Je,{label:"Node URL",value:N.endpoint,mono:!0}),f.jsx(Je,{label:"Node tunnel",value:N.devtunnelEndpoint??"Disabled",mono:!!N.devtunnelEndpoint}),f.jsx(Je,{label:"Dashboard URL",value:N.dashboardOrigin??T.localDashboardOrigin??"Unavailable",mono:!!(N.dashboardOrigin||T.localDashboardOrigin)}),f.jsx(Je,{label:"Local dashboard",value:T.localDashboardOrigin??"Unavailable",mono:!!T.localDashboardOrigin})]})]}),f.jsxs(Hn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(Vn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs($n,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(DN,{className:"h-3.5 w-3.5 text-primary"}),"Auth"]}),f.jsx(Yn,{className:"text-[10px]",children:"Current bearer-auth and trusted access posture."})]}),f.jsxs(qn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(Je,{label:"Enabled",value:(F=T.auth)!=null&&F.enabled?"Yes":"No"}),f.jsx(Je,{label:"Same tenant",value:(de=T.auth)!=null&&de.allowSameTenant?"Allowed":"Off"}),f.jsx(Je,{label:"Allowed users",value:(Q=T.auth)!=null&&Q.allowedUsers.length?T.auth.allowedUsers.join(", "):"None"})]})]}),f.jsxs(Hn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(Vn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs($n,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(uN,{className:"h-3.5 w-3.5 text-primary"}),"Paths"]}),f.jsx(Yn,{className:"text-[10px]",children:"Workspace and runtime paths currently used by this node."})]}),f.jsxs(qn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(Je,{label:"Work dir",value:((j=T.runtime)==null?void 0:j.workDir)??T.workDir??"Unavailable",mono:!!(((G=T.runtime)==null?void 0:G.workDir)??T.workDir)}),f.jsx(Je,{label:"Storage",value:((K=T.runtime)==null?void 0:K.storagePath)??"Unavailable",mono:!!((W=T.runtime)!=null&&W.storagePath)}),f.jsx(Je,{label:"Process cwd",value:((ee=T.runtime)==null?void 0:ee.cwd)??"Unavailable",mono:!!((oe=T.runtime)!=null&&oe.cwd)}),f.jsx(Je,{label:"Started",value:Qt((te=T.runtime)==null?void 0:te.startedAt)}),f.jsx(Je,{label:"PID",value:T.runtime?String(T.runtime.pid):"Unavailable",mono:!!T.runtime})]})]}),f.jsxs(Hn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(Vn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs($n,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(Os,{className:"h-3.5 w-3.5 text-primary"}),"Startup checks"]}),f.jsx(Yn,{className:"text-[10px]",children:"Dependency preflight snapshot persisted during node startup."})]}),f.jsxs(qn,{className:"space-y-3 px-3 pb-2.5",children:[f.jsxs("div",{className:"rounded-xl border border-border/60 bg-background/70 px-3 py-2",children:[f.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Last checked"}),f.jsx("div",{className:"mt-0.5 text-[11px] text-foreground",children:Qt((ie=T.startupRequirements)==null?void 0:ie.lastCheckedAt)})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(Ho,{formatDateTime:Qt,name:"Azure CLI",status:_.az,statusVariant:Rr}),f.jsx(Ho,{formatDateTime:Qt,name:"DevTunnel",status:_.devtunnel,statusVariant:Rr}),f.jsx(Ho,{formatDateTime:Qt,name:"Claude Code",status:_.claude,statusVariant:Rr}),f.jsx(Ho,{formatDateTime:Qt,name:"Codex",status:_.codex,statusVariant:Rr}),f.jsx(Ho,{formatDateTime:Qt,name:"Copilot CLI",status:_.copilot,statusVariant:Rr})]})]})]})]}),f.jsx(w_,{formatDateTime:Qt,viewInfo:T})]})]})}function a3({initialSelectedNodeId:n,open:l,onOpenChange:o,showTrigger:i=!0}={}){const{cluster:c,systemInfo:d,sseConnected:m,refresh:h}=D0();return f.jsx(X5,{open:l,onOpenChange:o,showTrigger:i,children:f.jsx(n3,{cluster:c,systemInfo:d,sseConnected:m,initialSelectedNodeId:n,onRefresh:h})})}const nM="codex",aM="bypass",l3=[{value:"codex",label:"Codex",supportsFollowUp:!0},{value:"claudecode",label:"Claude Code",supportsFollowUp:!0},{value:"copilot",label:"Copilot",supportsFollowUp:!0},{value:"mars",label:"mars",disabled:!0,description:"coming soon"},{value:"eureka",label:"eureka",disabled:!0,description:"coming soon"}],lM=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],rM=new Set(l3.filter(n=>n.supportsFollowUp).map(n=>n.value)),oM=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],iM=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],r3=new Set(["pending","assigned"]),o3=new Set(["running"]),i3=new Set(["completed","failed","cancelled"]),sM=10;function cM(n,l){switch(l){case"running":return o3.has(n.status);case"waiting":return r3.has(n.status);case"closed":return i3.has(n.status);case"shared":return!!n.activeShare;case"archived":return n.status==="archived";case"active":default:return n.status!=="archived"}}function uM(n,l){if(l==="all")return!0;const o=n.conversationKind==="nativeSession";return l==="native"?o:!o}function dM(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 s3(n,l,o){if(!n)return"unassigned";const i=l==null?void 0:l.find(c=>c.id===n);return(i==null?void 0:i.name)??o??n.slice(0,8)}function fM(n,l,o){return s3(n,l,o).toLowerCase()}function mM(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 hM(n,l){return[...n].sort((o,i)=>o.id===l?-1:i.id===l?1:o.name.localeCompare(i.name))}function pM(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 gM(n){return n==="default workspace"?n:n.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??n}function vM(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 yM(n){return new Date(n).toLocaleString()}function bM(n){const l=Math.floor(n/1e3),o=Math.floor(l/3600),i=Math.floor(l%3600/60),c=l%60;return`${String(o).padStart(2,"0")}:${String(i).padStart(2,"0")}:${String(c).padStart(2,"0")}`}async function c3(n,l="Copied to clipboard"){var o,i,c;try{if((i=(o=globalThis.navigator)==null?void 0:o.clipboard)!=null&&i.writeText)return await globalThis.navigator.clipboard.writeText(n),Fe.success(l),!0;const d=globalThis.document,m=(c=d==null?void 0:d.execCommand)==null?void 0:c.bind(d);if(!(d!=null&&d.body)||typeof d.createElement!="function"||typeof m!="function")throw new Error("Clipboard access is unavailable");const h=d.createElement("textarea"),y=d.activeElement,p=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=m("copy");if(d.body.removeChild(h),p==null||p.focus(),!x)throw new Error("Clipboard access is unavailable");return Fe.success(l),!0}catch(d){return Fe.error(d instanceof Error?d.message:"Failed to copy"),!1}}const u3="default workspace";function js(n){const l=n.replace(/\\/g,"/");return l==="/"||/^[A-Za-z]:\/$/.test(l)?l:l.replace(/\/+$/g,"")||l}function d3(n){const l=n.replace(/\\/g,"/");return l.startsWith("/")||l.startsWith("//")||/^[A-Za-z]:\//.test(l)}function f3(n,l){const o=js(n),i=l.replace(/\\/g,"/").replace(/^\/+|\/+$/g,"");return!i||i==="."?o:o==="/"||/^[A-Za-z]:\/$/.test(o)?`${o}${i}`:`${o}/${i}`}function m3(n,l){var d,m,h;const o=(d=n.effectiveProjectPath)==null?void 0:d.trim();if(o)return js(o);const i=(m=n.project)==null?void 0:m.trim();if(!i)return u3;if(d3(i)||!n.assignedTo)return js(i);const c=(h=l==null?void 0:l.get(n.assignedTo))==null?void 0:h.trim();return c?f3(c,i):js(i)}function xM(n,l,o,i){const c=new Map;for(const m of n){const h=m.assignedTo??null,y=h??"__unassigned__",p=h?l.get(h)??m.assignedNodeName??h.slice(0,8):"Unassigned",x=m3(m,i);c.has(y)||c.set(y,{nodeId:h,nodeName:p,dirMap:new Map});const g=c.get(y);g.dirMap.has(x)||g.dirMap.set(x,[]),g.dirMap.get(x).push(m)}const d=Array.from(c.values()).map(({nodeId:m,nodeName:h,dirMap:y})=>{const p=Array.from(y.entries()).map(([x,g])=>({path:x,tasks:g})).sort((x,g)=>g.tasks.length-x.tasks.length||x.path.localeCompare(g.path));return{nodeId:m,nodeName:h,dirs:p}});return d.sort((m,h)=>{if(o){if(m.nodeId===o)return-1;if(h.nodeId===o)return 1}return m.nodeId===null?1:h.nodeId===null?-1:m.nodeName.localeCompare(h.nodeName)}),d}const h3={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"},p3={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 g3(n){return n.split(".")[0]??"unknown"}function v3(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function Ar(n,l){return(l==null?void 0:l.get(n))??n}function n1(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`${Ar(o.nodeId,l)} left (${o.reason})`;case"node.status":return`${Ar(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 ${Ar(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 ${Ar(i==null?void 0:i.nodeId,l)}`;case"transport.changed":return`${Ar(o.nodeId,l)} transport switched to ${o.transportType}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${Ar(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 y3(n){return JSON.stringify(n,null,2)}function b3({events:n,maxHeight:l="400px",nodeNameById:o,onDismiss:i,density:c="default"}){if(n.length===0)return null;const d=c==="compact";return f.jsx("div",{className:"overflow-y-auto pr-1",style:{maxHeight:l},children:f.jsx("div",{className:"space-y-1.5",children:n.map(m=>{const h=g3(m.type);return f.jsx("div",{className:le("transition-colors hover:bg-muted/30",d?"rounded-sm px-1 py-0.5":"rounded-lg px-1.5 py-1"),children:f.jsxs("div",{className:"space-y-1",children:[f.jsxs("div",{className:"flex items-start justify-between gap-1.5",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[f.jsx("div",{className:le("font-mono text-muted-foreground",d?"text-[8px]":"text-[9px]"),children:v3(m.timestamp)}),d?f.jsx("span",{className:le("max-w-[8.5rem] truncate text-[7px] font-medium uppercase tracking-[0.08em] text-muted-foreground/70",p3[h]),children:m.type}):f.jsx(xt,{variant:"outline",className:le("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",h3[h]),children:m.type})]}),f.jsxs("div",{className:le("flex shrink-0 items-center",d?"gap-px":"gap-0.5"),children:[f.jsx(bn,{type:"button",variant:"ghost",size:"icon",className:le("rounded-sm text-muted-foreground hover:text-foreground",d?"h-3.5 w-3.5 p-0 opacity-65 hover:bg-muted/40 hover:opacity-100 [&_svg]:size-2.5":"h-5 w-5"),onClick:()=>void c3(y3(m),"Event copied"),"aria-label":`Copy ${m.type} event`,title:"Copy event",children:f.jsx(lN,{className:d?"h-2.5 w-2.5":"h-3 w-3"})}),i&&f.jsx(bn,{type:"button",variant:"ghost",size:"icon",className:le("rounded-sm text-muted-foreground hover:text-foreground",d?"h-3.5 w-3.5 p-0 opacity-65 hover:bg-muted/40 hover:opacity-100 [&_svg]:size-2.5":"h-5 w-5"),onClick:()=>i(m.id),"aria-label":`Dismiss ${m.type} event`,title:"Dismiss event",children:f.jsx(Y0,{className:d?"h-2.5 w-2.5":"h-3 w-3"})})]})]}),f.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:n1(m,o)})]})},m.id)})})})}const x3=["node.","election.","transport."],S3="cluster.state";function w3(n){return n.type==="node.status"?!1:x3.some(l=>n.type.startsWith(l))}function E3(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function N3(n,l){return n?{time:E3(n.timestamp),text:n1(n,l)}:null}function T3(n){return n.transportType==="devtunnel"||!!n.devtunnelEndpoint}function C3(n){if(n.length===0)return"No node tunnel";const l=n.filter(c=>c.status==="offline").length;if(l>0)return`${l} offline`;const o=n.filter(c=>{var d;return((d=c.devtunnelHealth)==null?void 0:d.status)==="failed"}).length;if(o>0)return`${o} failed`;const i=n.filter(c=>{var d;return c.status!=="offline"&&((d=c.devtunnelHealth)==null?void 0:d.status)!=="healthy"}).length;return i>0?`${i} checking`:"Healthy"}function A3(n,l){var c;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=((c=n.devtunnelHealth)==null?void 0:c.status)??"checking";return{label:o,status:i}}function R3(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 _3(n,l){return{label:(l==null?void 0:l.get(n.id))??n.name??n.id,status:n.status}}function j3({connected:n,events:l,nodes:o=[],currentNode:i=null,nodeNameById:c,desktopUpdate:d=null,defaultOpen:m=!1,defaultActionMenuOpen:h=!1,onDesktopUpdate:y,onReload:p,onRestart:x}){const[g,w]=v.useState(m),[N,T]=v.useState(h),[E,C]=v.useState(!0),[A,_]=v.useState(new Set),[M,k]=v.useState(!1),[Y,X]=v.useState(!1),V=v.useRef(null),H=v.useRef(null),ne=v.useMemo(()=>l.filter(xe=>w3(xe)&&!A.has(xe.id)),[l,A]),se=v.useMemo(()=>l.find(xe=>xe.type===S3)??ne[0],[l,ne]),me=v.useMemo(()=>N3(se,c),[se,c]),ce=v.useMemo(()=>{const xe=new Map(o.map(et=>[et.id,et]));return i&&xe.set(i.id,i),Array.from(xe.values())},[i,o]),ue=v.useMemo(()=>ce.filter(T3),[ce]),fe=ue.some(xe=>{var et;return xe.status==="offline"||((et=xe.devtunnelHealth)==null?void 0:et.status)==="failed"}),re=ce.some(xe=>xe.status==="offline"),O=ce.some(xe=>xe.status==="busy"),$=ce.length>0,F=(i==null?void 0:i.name)??"offline",de=(i==null?void 0:i.role)==="leader"?"Leader":(i==null?void 0:i.role)==="follower"?"Follower":"Node",Q=d!==null,j=!!(Q&&(d!=null&&d.updateAvailable)&&d.latestVersion),G=(d==null?void 0:d.latestVersion)??null,K=!!(Q&&!j&&!G&&(d!=null&&d.detail)),W=M?"Relaunching runtime...":"Relaunch to apply update",ee=Y?"Downloading and installing desktop update...":j&&G?`Available version ${G}`:K?(d==null?void 0:d.detail)??"Desktop update unavailable":"Desktop is current",oe=!!p,te=oe,ie=Q||!!x,J=Q||!!x||oe,be=ie?Q?"Update":"Relaunch":"Reload",ye=ie?Q?ee:W:"Reload dashboard page",Se=ie?Q?Y:M:!1,Ve=ie?Q?Se||!j||!y:Se:!1,Le=Q?j&&G?`Install desktop update ${G}`:K?"Desktop update unavailable":"Desktop is current":ie?M?"Relaunching runtime":"Relaunch runtime":"Reload dashboard page";function je(){H.current&&(clearTimeout(H.current),H.current=null)}function ft(){je(),w(!0)}function ot(){je(),H.current=setTimeout(()=>{w(!1),H.current=null},180)}function zt(){je()}function mt(){je(),T(!1),w(!1)}async function ll(){if(!(!x||M)){k(!0);try{await x()}finally{k(!1)}}}async function rl(){if(!(!j||!y||Y)){X(!0);try{await y()}finally{X(!1)}}}async function St(){if(!ie){await Sn();return}if(Q){await rl();return}await ll()}async function Sn(){p&&(T(!1),await p())}return v.useEffect(()=>()=>{je()},[]),v.useEffect(()=>{_(xe=>{if(xe.size===0)return xe;const et=new Set(l.map(Tt=>Tt.id)),Xe=new Set(Array.from(xe).filter(Tt=>et.has(Tt)));return Xe.size===xe.size?xe:Xe})},[l]),v.useEffect(()=>{g||T(!1)},[g]),v.useEffect(()=>{if(!g)return;const xe=Xe=>{var Tt;(Tt=V.current)!=null&&Tt.contains(Xe.target)||(je(),T(!1),w(!1))},et=Xe=>{Xe.key==="Escape"&&(je(),T(!1),w(!1))};return document.addEventListener("pointerdown",xe),document.addEventListener("keydown",et),()=>{document.removeEventListener("pointerdown",xe),document.removeEventListener("keydown",et)}},[g]),f.jsxs("div",{ref:V,className:"relative",children:[f.jsxs("button",{type:"button","aria-label":n?"Cluster link connected":"Cluster link reconnecting","aria-expanded":g,"aria-haspopup":"dialog",onClick:()=>w(xe=>!xe),onMouseEnter:ft,onMouseLeave:ot,className:le("flex h-8 max-w-[18rem] items-center gap-1.5 rounded-sm px-2 text-[10px] transition-all sm:gap-2 sm:px-2.5 sm:text-[11px]",n?"bg-muted/40 text-muted-foreground hover:bg-muted/60 hover:text-foreground":"bg-destructive/8 text-destructive hover:bg-destructive/12",g&&(n?"bg-muted/60 text-foreground":"bg-destructive/12")),title:n?"Cluster link connected":"Cluster link reconnecting",children:[f.jsxs("span",{className:le("relative flex h-2 w-2 shrink-0"),children:[n&&f.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-emerald-400 opacity-60"}),f.jsx("span",{className:le("relative inline-flex h-2 w-2 rounded-full",n?"bg-emerald-500":"bg-destructive")})]}),f.jsxs("span",{className:"hidden min-w-0 items-center gap-2 sm:flex",children:[f.jsx("span",{className:"truncate font-medium text-foreground",children:F}),f.jsx("span",{className:le("shrink-0 rounded border px-1 py-px text-[8px] font-semibold uppercase tracking-[0.1em]",n?"border-emerald-500/25 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:de})]})]}),g&&f.jsxs("div",{role:"dialog","aria-label":"Live link connection events",onMouseEnter:zt,onMouseLeave:mt,className:"absolute right-0 top-[calc(100%+0.4rem)] z-50 w-[18rem] max-w-[calc(100vw-1.5rem)] overflow-hidden rounded-lg 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:[f.jsx("div",{className:"border-b border-border/60 bg-muted/25 px-2.5 py-1.5",children:f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex items-center gap-1.5",children:[n?f.jsx(Os,{className:"h-3 w-3 text-emerald-500"}):f.jsx(HN,{className:"h-3 w-3 text-destructive"}),f.jsx("span",{className:"text-[10px] font-semibold text-foreground",children:"Live link"}),f.jsx("span",{className:"text-[9px] text-muted-foreground",children:n?"· SSE connected":"· reconnecting"})]}),f.jsx("div",{className:le("rounded-sm 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"})]})}),f.jsxs("div",{className:"grid grid-cols-2 border-b border-border/60",children:[f.jsxs("div",{className:"border-r border-border/60 px-2.5 py-1.5",children:[f.jsx("div",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Events"}),f.jsx("div",{className:"mt-0.5 text-base font-semibold tracking-tight text-foreground",children:ne.length})]}),f.jsxs("div",{className:"min-w-0 px-2.5 py-1.5",children:[f.jsx("div",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Latest"}),me?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"mt-0.5 truncate text-[9px] leading-snug text-foreground/80",children:me.text}),f.jsx("div",{className:"font-mono text-[8px] text-muted-foreground/60",children:me.time})]}):f.jsx("div",{className:"mt-0.5 text-[8px] text-muted-foreground/50",children:"—"})]})]}),f.jsxs("div",{className:"border-b border-border/60 px-2.5 py-1.5",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[re?f.jsx(hs,{className:"h-3 w-3 shrink-0 text-destructive"}):O?f.jsx(Os,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx($o,{className:le("h-3 w-3 shrink-0",$?"text-emerald-500":"text-muted-foreground")}),f.jsx("span",{className:"text-[9px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Node health"})]}),f.jsx("span",{className:le("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",re?"border-destructive/30 bg-destructive/10 text-destructive":O?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":$?"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:R3(ce)})]}),ce.length>0&&f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:ce.map(xe=>{const{label:et,status:Xe}=_3(xe,c),Tt=Xe==="offline",It=Xe==="busy";return f.jsxs("div",{"aria-label":`${et} ${Xe}`,className:le("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",Tt?"bg-destructive/6":It?"bg-amber-500/6":"bg-emerald-500/5"),title:`${et} ${Xe}`,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:et}),Tt?f.jsx(hs,{className:"h-3 w-3 shrink-0 text-destructive"}):It?f.jsx(pv,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx($o,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},xe.id)})})]}),ue.length>0&&f.jsxs("div",{className:"border-b border-border/60 px-2.5 py-1.5",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[fe?f.jsx(hs,{className:"h-3 w-3 shrink-0 text-destructive"}):f.jsx($o,{className:"h-3 w-3 shrink-0 text-emerald-500"}),f.jsx("span",{className:"text-[9px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"DevTunnel"})]}),f.jsx("span",{className:le("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",fe?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"),children:C3(ue)})]}),f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:ue.map(xe=>{var sn;const{label:et,status:Xe}=A3(xe,c),Tt=Xe==="failed"||Xe==="offline",It=Xe!=="healthy"&&Xe!=="failed"&&Xe!=="offline",ol=(sn=xe.devtunnelHealth)!=null&&sn.reason?`${et} ${Xe}: ${xe.devtunnelHealth.reason}`:`${et} ${Xe}`;return f.jsxs("div",{"aria-label":`${et} ${Xe}`,className:le("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",Tt?"bg-destructive/6":It?"bg-muted/30":"bg-emerald-500/5"),title:ol,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:et}),Tt?f.jsx(hs,{className:"h-3 w-3 shrink-0 text-destructive"}):It?f.jsx(pv,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):f.jsx($o,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},xe.id)})})]}),f.jsxs("div",{children:[f.jsxs("button",{type:"button",onClick:()=>C(xe=>!xe),className:"flex w-full items-center justify-between px-2.5 py-1.5 text-left hover:bg-muted/30",children:[f.jsxs("span",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:["Notifications ",ne.length>0&&`(${ne.length})`]}),E?f.jsx(Xo,{className:"h-3 w-3 text-muted-foreground"}):f.jsx(Wd,{className:"h-3 w-3 text-muted-foreground"})]}),E&&f.jsx("div",{className:"px-2 pb-2",children:f.jsx(b3,{events:ne,maxHeight:"12rem",density:"compact",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:c,onDismiss:xe=>_(et=>new Set(et).add(xe))})})]}),Q&&(d==null?void 0:d.detail)&&f.jsxs("div",{className:"flex items-center gap-1.5 border-t border-border/60 px-2.5 py-1 text-[8px] text-muted-foreground",children:[f.jsx("span",{className:"shrink-0 font-medium uppercase tracking-[0.12em]",children:"Desktop update"}),f.jsx("span",{className:"truncate",title:d.detail,children:d.detail})]}),f.jsxs("div",{className:"flex items-center justify-between gap-1 border-t border-border/60 px-2.5 py-1",children:[f.jsx("div",{children:J&&f.jsxs("div",{className:"group/restart relative flex items-center",children:[f.jsxs("div",{className:"flex items-center overflow-hidden rounded-sm border border-border/50",children:[f.jsxs(bn,{type:"button",variant:"ghost",size:"sm",className:le("h-5 rounded-none border-0 px-1.5 text-[9px] font-medium hover:text-foreground [&_svg]:size-2.5",j?"bg-primary/12 text-primary hover:bg-primary/18":"bg-background/45 text-muted-foreground hover:bg-emerald-500/10"),onClick:()=>void St(),disabled:Ve,"aria-label":Le,"aria-describedby":"live-link-restart-hint",title:ye,children:[f.jsx(gv,{className:le("h-2.5 w-2.5",Se&&"animate-pulse")}),f.jsx("span",{children:be})]}),te&&f.jsx(bn,{type:"button",variant:"ghost",size:"sm",className:le("h-5 rounded-none border-l border-border/50 px-1 text-[9px] hover:text-foreground [&_svg]:size-2.5",j?"bg-primary/12 text-primary hover:bg-primary/18":"bg-background/45 text-muted-foreground hover:bg-emerald-500/10"),onClick:()=>T(xe=>!xe),"aria-label":"Open live link actions","aria-expanded":N,title:"Live link actions",children:f.jsx(Xo,{className:"h-2.5 w-2.5"})})]}),te&&N&&f.jsxs("div",{className:"absolute bottom-[calc(100%+0.25rem)] left-0 z-20 min-w-28 overflow-hidden rounded-md border border-border/70 bg-background text-[9px] shadow-lg",children:[f.jsxs("button",{type:"button",className:"flex w-full items-center gap-1.5 px-2 py-1 text-left text-muted-foreground hover:bg-muted/55 hover:text-foreground disabled:opacity-45 disabled:hover:bg-transparent disabled:hover:text-muted-foreground",onClick:()=>void St(),disabled:Ve,"aria-label":Le,children:[f.jsx(gv,{className:le("h-2.5 w-2.5",Se&&"animate-pulse")}),f.jsx("span",{children:be})]}),f.jsxs("button",{type:"button",className:"flex w-full items-center gap-1.5 border-t border-border/50 px-2 py-1 text-left text-muted-foreground hover:bg-muted/55 hover:text-foreground",onClick:()=>void Sn(),"aria-label":"Reload dashboard page",children:[f.jsx(B0,{className:"h-2.5 w-2.5"}),f.jsx("span",{children:"Reload"})]})]}),f.jsx("span",{id:"live-link-restart-hint",role:"tooltip",className:"pointer-events-none absolute left-6 top-1/2 z-10 -translate-y-1/2 whitespace-nowrap rounded-sm border border-border/70 bg-background px-1.5 py-0.5 text-[8px] text-muted-foreground opacity-0 shadow-sm transition-opacity group-hover/restart:opacity-100 group-focus-within/restart:opacity-100",children:ye})]})}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(bn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>_(new Set(l.map(xe=>xe.id))),disabled:ne.length===0,title:"Dismiss all notifications",children:"Dismiss all"}),f.jsx(bn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>w(!1),children:"Close"})]})]})]})]})}const t0="dark",zr="fluent",M3="clean",Xd="meshy-layout-default-migrated-to-compact",gf="true",O3="compact",D3=new Set(["airy","clean","fluent"]);function k3(n){return n!==null&&D3.has(n)}function nm(n){return n===O3?"fluent":k3(n)?n:null}function z3(n,l){const o=nm(n);return o===M3&&l!==gf?zr:o??zr}const Is="symphony",a1="default",L3=new Set(["light","dark","system"]),U3=new Set(["porcelain","warm","finsight","edge","symphony"]),l1=v.createContext(null);function B3(n){const l=new URLSearchParams(n).get("theme");return r1(l)?l:null}function H3(n){const l=new URLSearchParams(n).get("palette");return am(l)}function V3(n){const l=new URLSearchParams(n).get("layout");return nm(l)}function $3(){if(typeof document>"u")return null;const n=document.documentElement;return{theme:n.classList.contains("dark")?"dark":"light",palette:am(n.getAttribute("data-palette"))??Is,layout:nm(n.getAttribute("data-layout"))??zr}}function SM(n,l=$3()){if(!l)return n;try{const o=/^[a-z][a-z\d+\-.]*:/i.test(n),i=typeof window<"u"?window.location.href:"http://localhost",c=new URL(n,i);return c.searchParams.set("theme",l.theme),c.searchParams.set("palette",l.palette),c.searchParams.set("layout",l.layout),o?c.toString():`${c.pathname}${c.search}${c.hash}`}catch{return n}}function Y3({children:n}){const[l,o]=v.useState(()=>typeof window<"u"?B3(window.location.search)??P3(localStorage.getItem("meshy-theme"))??t0:t0),[i,c]=v.useState(()=>typeof window<"u"?H3(window.location.search)??X3(localStorage.getItem("meshy-palette"))??Is:Is),[d,m]=v.useState(()=>{if(typeof window<"u"){const h=V3(window.location.search);if(h)return localStorage.setItem(Xd,gf),h;const y=z3(localStorage.getItem("meshy-layout"),localStorage.getItem(Xd));return localStorage.setItem(Xd,gf),y}return zr});return v.useEffect(()=>{const h=document.documentElement,y=p=>{if(p==="system"){const x=window.matchMedia("(prefers-color-scheme: dark)").matches;h.classList.toggle("dark",x)}else h.classList.toggle("dark",p==="dark")};if(y(l),localStorage.setItem("meshy-theme",l),l==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)"),x=()=>y("system");return p.addEventListener("change",x),()=>p.removeEventListener("change",x)}},[l]),v.useEffect(()=>{document.documentElement.setAttribute("data-palette",i),localStorage.setItem("meshy-palette",i)},[i]),v.useEffect(()=>{const h=document.documentElement;d===zr?h.removeAttribute("data-layout"):h.setAttribute("data-layout",d),localStorage.setItem("meshy-layout",d)},[d]),f.jsx(l1.Provider,{value:{theme:l,setTheme:o,palette:i,setPalette:c,layout:d,setLayout:m},children:n})}function q3(){const n=v.useContext(l1);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}function r1(n){return n!==null&&L3.has(n)}function G3(n){return n!==null&&U3.has(n)}function P3(n){return r1(n)?n:null}function am(n){return n===a1?"porcelain":G3(n)?n:null}function X3(n){return n===a1?null:am(n)}const K3=[{value:"light",label:"Light",icon:V0},{value:"dark",label:"Dark",icon:U0},{value:"system",label:"System",icon:L0}],o1=[{value:"finsight",label:"FinSight",hint:"Cool sage green"},{value:"porcelain",label:"Porcelain",hint:"Blue workspace"},{value:"warm",label:"Warm",hint:"Cream + amber"},{value:"edge",label:"Edge",hint:"Rounded violet panels"},{value:"symphony",label:"Symphony",hint:"Near-black rose accent"}],i1=[{value:"airy",label:"Airy",hint:"Gradients, blur, spacious"},{value:"clean",label:"Clean",hint:"Flat, borders, high density"},{value:"fluent",label:"Fluent",hint:"Compact neutral"}];function Q3(){const{theme:n,setTheme:l,palette:o,setPalette:i,layout:c,setLayout:d}=q3(),[m,h]=v.useState(!1),y=v.useRef(null),p=v.useRef(null),x=n==="dark"?U0:n==="light"?V0:L0,g=()=>{y.current&&(clearTimeout(y.current),y.current=null)},w=()=>{g(),y.current=setTimeout(()=>h(!1),180)};return v.useEffect(()=>{if(!m)return;const N=T=>{p.current&&!p.current.contains(T.target)&&h(!1)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[m]),v.useEffect(()=>()=>g(),[]),f.jsxs("div",{ref:p,className:"relative",onMouseEnter:()=>{g(),h(!0)},onMouseLeave:w,children:[f.jsx(bn,{variant:"ghost",size:"icon",onClick:()=>h(N=>!N),className:le("h-8 w-8 rounded-sm",o!==Is||c!==zr?"text-primary":"text-muted-foreground hover:bg-muted/50 hover:text-foreground"),title:"Appearance","aria-haspopup":"menu","aria-expanded":m,children:f.jsx(x,{className:"h-4 w-4"})}),m&&f.jsxs("div",{role:"menu",className:"fixed left-2 right-2 top-[4.25rem] z-50 w-auto max-w-none rounded-lg border border-border/70 bg-popover/95 p-2.5 text-popover-foreground shadow-[0_28px_90px_-34px_rgba(0,0,0,0.45)] backdrop-blur-xl sm:absolute sm:left-auto sm:right-0 sm:top-[calc(100%+6px)] sm:w-[28rem] sm:max-w-[28rem]",children:[f.jsxs("div",{className:"mb-2.5 flex items-end justify-between gap-3",children:[f.jsxs("div",{children:[f.jsx("div",{className:"text-[9px] font-semibold uppercase tracking-[0.2em] text-muted-foreground",children:"Appearance"}),f.jsxs("div",{className:"text-[11px] font-medium text-foreground",children:[Z3(c)," / ",I3(o)]})]}),f.jsx("div",{className:"rounded-sm border border-border/60 bg-background/70 px-2 py-0.5 text-[9px] font-medium capitalize text-muted-foreground",children:n})]}),f.jsx("div",{className:"px-0.5 pb-1 text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Theme"}),f.jsx("div",{className:"mb-2.5 grid grid-cols-3 gap-1 rounded-sm bg-muted/35 p-1",children:K3.map(({value:N,label:T,icon:E})=>{const C=n===N;return f.jsxs("button",{type:"button",onClick:()=>l(N),role:"menuitemradio","aria-checked":C,className:le("flex min-h-[2.5rem] flex-col items-center justify-center gap-0.5 rounded-sm border px-2 py-1.5 text-[10px] font-medium transition-colors",C?"border-primary/55 bg-background text-primary shadow-sm":"border-transparent text-muted-foreground hover:border-border/70 hover:bg-background/80 hover:text-foreground"),children:[f.jsx(E,{className:"h-3.5 w-3.5"}),T]},N)})}),f.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[f.jsxs("div",{children:[f.jsx("div",{className:"px-0.5 pb-1 text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Layout"}),f.jsx("div",{className:"space-y-1",children:i1.map(({value:N,label:T,hint:E})=>{const C=c===N;return f.jsxs("button",{type:"button",onClick:()=>d(N),role:"menuitemradio","aria-checked":C,className:le("flex min-h-[2.75rem] w-full items-center gap-2 rounded-sm border px-2 py-1.5 text-left transition-colors",C?"border-primary/55 bg-primary/10":"border-border/45 bg-background/45 hover:border-border hover:bg-muted/55"),children:[f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:le("text-[11px] font-medium leading-tight",C?"text-primary":"text-foreground"),children:T}),f.jsx("div",{className:"mt-0.5 text-[9px] leading-tight text-muted-foreground",children:E})]}),C&&f.jsx(Ds,{className:"h-3 w-3 text-primary"})]},N)})})]}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-1.5 px-0.5 pb-1 text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:[f.jsx(zN,{className:"h-2.5 w-2.5"}),"Palette"]}),f.jsx("div",{className:"space-y-1",children:o1.map(({value:N,label:T,hint:E})=>{const C=o===N;return f.jsxs("button",{type:"button",onClick:()=>i(N),role:"menuitemradio","aria-checked":C,className:le("flex min-h-[2.75rem] w-full items-center gap-2 rounded-sm border px-2 py-1.5 text-left transition-colors",C?"border-primary/55 bg-primary/10":"border-border/45 bg-background/45 hover:border-border hover:bg-muted/55"),children:[f.jsx(F3,{value:N}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:le("text-[11px] font-medium leading-tight",C?"text-primary":"text-foreground"),children:T}),f.jsx("div",{className:"mt-0.5 text-[9px] leading-tight text-muted-foreground",children:E})]}),C&&f.jsx(Ds,{className:"h-3 w-3 text-primary"})]},N)})})]})]})]})]})}function Z3(n){var l;return((l=i1.find(o=>o.value===n))==null?void 0:l.label)??n}function I3(n){var l;return((l=o1.find(o=>o.value===n))==null?void 0:l.label)??n}function F3({value:n}){const l={porcelain:["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%)"],edge:["hsl(265 75% 55%)","hsl(260 12% 98%)","hsl(285 70% 65%)"],symphony:["hsl(348 100% 71%)","hsl(0 0% 6%)","hsl(240 2% 9%)"]},[o,i,c]=l[n];return f.jsxs("div",{className:le("flex h-6 w-6 shrink-0 overflow-hidden border border-border/60 shadow-sm","rounded-sm"),children:[f.jsx("div",{className:"h-full w-1/3",style:{background:o}}),f.jsx("div",{className:"h-full w-1/3",style:{background:i}}),f.jsx("div",{className:"h-full w-1/3",style:{background:c}})]})}const qo={tasks:{defaultSize:20,min:16,max:36,wheelStep:1},operations:{defaultSize:20,min:18,max:38,wheelStep:1},terminal:{defaultSize:18,min:10,max:30,wheelStep:1}},s1="meshy-dashboard-panel-state-v2",c1="meshy-dashboard-terminal-open-v1";function wM({operationsOpen:n}){return{layout:{desktopTasksOpen:!0,operationsOpen:n},sizes:{tasks:qo.tasks.defaultSize,operations:qo.operations.defaultSize,terminal:qo.terminal.defaultSize}}}function Kd(n){return typeof n=="object"&&n!==null}function n0(n,l){return typeof n=="boolean"?n:l}function Qd(n,l,o){return typeof l=="number"&&Number.isFinite(l)?Go(n,l):o}function Go(n,l){const o=qo[n];return Math.min(o.max,Math.max(o.min,l))}function EM(n,l){if(!n)return l;try{const o=n.getItem(s1);if(!o)return l;const i=JSON.parse(o);if(!Kd(i))return l;const c=Kd(i.layout)?i.layout:{},d=Kd(i.sizes)?i.sizes:{};return{layout:{desktopTasksOpen:n0(c.desktopTasksOpen,l.layout.desktopTasksOpen),operationsOpen:n0(c.operationsOpen,l.layout.operationsOpen)},sizes:{tasks:Qd("tasks",d.tasks,l.sizes.tasks),operations:Qd("operations",d.operations,l.sizes.operations),terminal:Qd("terminal",d.terminal,l.sizes.terminal)}}}catch{return l}}function NM(n,l){if(n)try{n.setItem(s1,JSON.stringify(l))}catch{}}function J3(n,l){if(!n)return l;try{const o=n.getItem(c1);return o==="true"?!0:o==="false"?!1:l}catch{return l}}function W3(n,l){if(n)try{n.setItem(c1,String(l))}catch{}}function a0(){var n;try{return((n=globalThis.window)==null?void 0:n.localStorage)??globalThis.localStorage??null}catch{return null}}function TM(n){return`${Number(n.toFixed(2))}rem`}function CM(n,l,o,i,c,d,m){const h=Number.isFinite(m)&&m>0?m:16;return n==="tasks"?Go(n,l+(c-o)/h):n==="operations"?Go(n,l+(o-c)/h):Go(n,l+(i-d)/h)}function AM(n,l,o){const i=o===0?0:o>0?-1:1;return Go(n,l+i*qo[n].wheelStep)}function Zd(){var n,l;return typeof window>"u"?null:((l=(n=window.__TAURI__)==null?void 0:n.core)==null?void 0:l.invoke)??null}function l0(n){return{currentVersion:null,latestVersion:null,updateAvailable:!1,checkedAt:new Date().toISOString(),releaseUrl:null,assetName:null,installable:!1,detail:n}}function r0(n,l){if(n instanceof Error&&n.message.trim())return n.message;if(typeof n=="string"&&n.trim())return n;if(n&&typeof n=="object"&&"message"in n){const o=n.message;if(typeof o=="string"&&o.trim())return o}return l}function ej(n){return n.openedRelease?"Opened the latest Meshy release page.":n.installMethod==="tauri-updater"?"Installing desktop update. Meshy will relaunch to finish updating.":(n.assetName??"desktop update").toLowerCase().endsWith(".dmg")?"Downloaded desktop update. Open the DMG and drag Meshy to Applications to finish updating.":"Downloaded desktop update. Follow the installer to finish updating."}function tj(){const{cluster:n,events:l,sseConnected:o,systemInfo:i}=D0(),c=Qn(),[d,m]=v.useState(()=>J3(a0(),!1)),[h,y]=v.useState(""),[p,x]=v.useState(null),[g,w]=v.useState(null),N=!!Zd(),T=N?"max-w-none":"max-w-[1760px]",E=c.pathname==="/"||/^\/tasks\/[^/]+$/.test(c.pathname),C=v.useMemo(()=>{const k=new Map;for(const Y of(n==null?void 0:n.nodes)??[])k.set(Y.id,Y.name);return n!=null&&n.self&&k.set(n.self.id,n.self.name),k},[n==null?void 0:n.nodes,n==null?void 0:n.self]),A=v.useCallback(k=>{m(Y=>typeof k=="function"?k(Y):k)},[]);v.useEffect(()=>{W3(a0(),d)},[d]),v.useEffect(()=>{const k=Zd();if(!k){w(null);return}let Y=!1;return w(l0("Checking desktop update...")),k("check_desktop_update").then(X=>{Y||w(X)}).catch(X=>{Y||w(l0(r0(X,"Desktop update check failed")))}),()=>{Y=!0}},[i==null?void 0:i.version]);async function _(){try{const k=await M0({reason:"restart"});Fe.info(`Restarting runtime. Follow ${k.logPath} for launch output.`),await e1({previousPid:k.pid})||Fe.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout.")}catch(k){Fe.error(k instanceof Error?k.message:"Runtime restart failed")}}async function M(){const k=Zd();if(!k){Fe.error("Desktop updater is not available in this window");return}try{Fe.info("Downloading desktop update...");const Y=await k("install_desktop_update");Fe.info(ej(Y))}catch(Y){Fe.error(r0(Y,"Desktop update failed"))}}return f.jsxs("div",{className:"relative h-full overflow-hidden bg-background text-foreground",children:[f.jsx("div",{className:"mesh-grid pointer-events-none absolute inset-0"}),f.jsxs("div",{className:"relative z-10 flex h-full min-h-0 flex-col",children:[f.jsx("header",{className:"relative z-50 shrink-0 px-2 py-2",children:f.jsxs("div",{className:le("dashboard-panel dashboard-panel-muted animate-panel-settle mx-auto flex items-center gap-0 rounded-lg px-3 py-2",T),children:[f.jsx("div",{className:"flex shrink-0 items-center gap-3 pr-3",children:f.jsxs(Jd,{to:"/","aria-label":"Meshy home",className:"flex items-center gap-2",children:[f.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-sm border border-primary/20 bg-primary/10 text-primary shadow-sm",children:f.jsx(xN,{className:"h-3.5 w-3.5"})}),f.jsxs("div",{className:"hidden min-w-0 items-baseline gap-1.5 sm:flex",children:[f.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.24em] text-muted-foreground",children:"MESHY"}),f.jsx("span",{className:"truncate text-[13px] font-semibold tracking-tight text-foreground",children:"Workspace"})]})]})}),f.jsx("div",{className:"mx-0 hidden h-4 w-px shrink-0 bg-border/50 md:block"}),E&&f.jsxs("div",{className:"hidden min-w-0 flex-1 items-center px-3 md:flex",children:[p&&f.jsxs("nav",{"aria-label":"Current task location",className:"flex min-w-0 max-w-[38rem] items-center gap-1 rounded-sm bg-background/55 px-2 py-1 text-[10px] text-muted-foreground",children:[f.jsxs("button",{type:"button",onClick:()=>y(p.nodeName),className:"flex min-w-0 items-center gap-1 rounded-sm px-1 py-0.5 hover:bg-muted/60 hover:text-foreground",title:`Filter by ${p.nodeName}`,children:[f.jsx(H0,{className:"h-3 w-3 shrink-0 text-primary/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.nodeName})]}),f.jsx(Wd,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsxs("button",{type:"button",onClick:()=>y(p.projectLabel),className:"flex min-w-0 items-center gap-1 rounded-sm px-1 py-0.5 hover:bg-muted/60 hover:text-foreground",title:p.projectPath,children:[f.jsx(fN,{className:"h-3 w-3 shrink-0 text-muted-foreground/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.projectLabel})]}),f.jsx(Wd,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsx(Jd,{to:`/tasks/${p.taskId}`,className:"min-w-0 truncate px-1 font-medium text-foreground/85 hover:text-foreground",title:p.taskTitle,children:p.taskTitle})]}),f.jsxs("div",{className:"relative ml-auto w-[18rem] max-w-[28rem]",children:[f.jsx(RN,{className:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground/60"}),f.jsx(tm,{"aria-label":"Search tasks",value:h,onChange:k=>y(k.target.value),placeholder:"Search tasks, nodes, workspaces",className:"h-8 rounded-sm border-0 bg-background/62 pl-8 pr-2 text-[11px] shadow-none focus-visible:ring-0 focus-visible:ring-offset-0"})]})]}),f.jsx("div",{className:"mx-0 hidden h-4 w-px shrink-0 bg-border/50 md:block"}),f.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-1.5 pl-3 sm:gap-2 md:ml-0",children:[E&&f.jsx(bn,{variant:"ghost",size:"icon",onClick:()=>A(k=>!k),"aria-label":d?"Close terminal":"Open terminal",title:d?"Close terminal":"Open terminal",className:le("h-8 w-8 rounded-sm text-muted-foreground hover:bg-muted/50 hover:text-foreground",d&&"bg-primary/8 text-primary"),children:f.jsx($0,{className:"h-4 w-4"})}),f.jsx(a3,{}),f.jsx(Q3,{}),f.jsx("div",{className:"mx-0 h-4 w-px shrink-0 bg-border/50"}),f.jsx(j3,{connected:o,events:l,nodes:(n==null?void 0:n.nodes)??[],currentNode:(n==null?void 0:n.self)??null,nodeNameById:C,desktopUpdate:g,onDesktopUpdate:g!=null&&g.updateAvailable?M:void 0,onReload:N?()=>window.location.reload():void 0,onRestart:_})]})]})}),f.jsx("main",{className:le("min-h-0 flex-1 px-2 pb-2",E?"overflow-hidden":"overflow-y-auto"),children:f.jsx("div",{className:le("mx-auto h-full min-h-0",T),children:f.jsx(_2,{context:{terminalOpen:d,setTerminalOpen:A,headerSearchQuery:h,setHeaderSearchQuery:y,setHeaderTaskContext:x}})})})]})]})}const o0=v.lazy(async()=>({default:(await c0(()=>import("./DashboardPage-Buhvr58K.js").then(l=>l.D),__vite__mapDeps([0,1,2,3]))).DashboardPage})),nj=v.lazy(async()=>({default:(await c0(()=>import("./SharedConversationPage-DA0lmaQJ.js"),__vite__mapDeps([4,1]))).SharedConversationPage}));function aj(){return f.jsx(tE,{children:f.jsx(v.Suspense,{fallback:f.jsx(lj,{}),children:f.jsxs(M2,{children:[f.jsx(jl,{path:"/shared/tasks/:shareId",element:f.jsx(nj,{})}),f.jsxs(jl,{element:f.jsx(kE,{children:f.jsx(tj,{})}),children:[f.jsx(jl,{path:"/",element:f.jsx(o0,{})}),f.jsx(jl,{path:"/nodes",element:f.jsx(fv,{to:"/",replace:!0})}),f.jsx(jl,{path:"/tasks",element:f.jsx(fv,{to:"/",replace:!0})}),f.jsx(jl,{path:"/tasks/:id",element:f.jsx(o0,{})})]})]})})})}function lj(){return f.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function rj(n){const l=n??(typeof window>"u"?void 0:window);l!=null&&l.__TAURI__&&l.addEventListener("contextmenu",o=>{o.preventDefault()})}function oj(n){return f.jsx(nC,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...n})}rj();jw.createRoot(document.getElementById("root")).render(f.jsx(v.StrictMode,{children:f.jsxs(Y3,{children:[f.jsx(aj,{}),f.jsx(oj,{})]})}));export{Ks as $,Yy as A,bn as B,Ds as C,aM as D,Gy as E,uN as F,SM as G,lN as H,tm as I,c3 as J,s3 as K,z0 as L,a_ as M,eM as N,wx as O,tM as P,_s as Q,xt as R,H0 as S,lM as T,yM as U,Ys as V,hf as W,Y0 as X,qs as Y,Gs as Z,Xs as _,iC as a,mM as a$,Ps as a0,Zs as a1,Qs as a2,c0 as a3,dj as a4,qy as a5,P5 as a6,Nj as a7,$0 as a8,$o as a9,a0 as aA,NM as aB,AM as aC,TM as aD,CM as aE,Cj as aF,AE as aG,SE as aH,Fj as aI,Ij as aJ,jE as aK,kj as aL,pj as aM,mj as aN,Py as aO,hj as aP,gj as aQ,gE as aR,a3 as aS,zj as aT,Lj as aU,sj as aV,Qn as aW,x0 as aX,ij as aY,D0 as aZ,pM as a_,nN as aa,Ej as ab,Tj as ac,wj as ad,MN as ae,gN as af,hM as ag,NN as ah,b3 as ai,y_ as aj,sN as ak,b_ as al,bM as am,r3 as an,xM as ao,oM as ap,iM as aq,Fx as ar,gM as as,vM as at,pf as au,sM as av,Uj as aw,Bj as ax,EM as ay,wM as az,le as b,cM as b0,uM as b1,fM as b2,dM as b3,Aj as b4,rM as b5,o3 as b6,Oj as b7,Dj as b8,Mj as b9,jj as ba,uj as bb,fj as bc,cj as bd,vj as be,Wj as bf,qj as bg,Yj as bh,$j as bi,Hj as bj,Vj as bk,Gj as bl,l3 as bm,i0 as bn,FE as bo,Kj as bp,Xj as bq,Pj as br,B0 as bs,Qj as bt,Jj as bu,Zj as bv,Be as c,ry as d,Sj as e,pE as f,bj as g,yj as h,fN as i,f as j,Wd as k,_r as l,xj as m,_j as n,Wb as o,If as p,ex as q,v as r,Ff as s,Fe as t,RN as u,Xo as v,zN as w,nM as x,Rj as y,Y5 as z};