meshy-node 0.9.7 → 0.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dashboard/assets/DashboardPage-DbD4Z2U0.js +154 -0
- package/dashboard/assets/{DashboardShared-CtD601bB.js → DashboardShared-1UhBYL1-.js} +32 -42
- package/dashboard/assets/DiffTab-BygUE807.js +23 -0
- package/dashboard/assets/{FilesTab-B_30Lp2l.js → FilesTab-C67Dnkts.js} +1 -1
- package/dashboard/assets/{MarkdownPreviewFrame-hB6tBCB8.js → MarkdownPreviewFrame-CH3rgET1.js} +1 -1
- package/dashboard/assets/{PreviewTab-BBaAgEyn.js → PreviewTab-C5m4cFxf.js} +2 -2
- package/dashboard/assets/SharedConversationPage-CtQLabVf.js +2 -0
- package/dashboard/assets/{file-B8vnmnf2.js → file-Ef280xPz.js} +1 -1
- package/dashboard/assets/index-C7-ljTCx.js +341 -0
- package/dashboard/assets/index-CcOCgrkm.css +1 -0
- package/dashboard/index.html +2 -2
- package/main.cjs +706 -611
- package/package.json +1 -1
- package/runtime-metadata.json +4 -4
- package/dashboard/assets/DashboardPage-D21dWlmw.js +0 -164
- package/dashboard/assets/DiffTab-D1I57xJM.js +0 -18
- package/dashboard/assets/SharedConversationPage-DpJKqW_3.js +0 -2
- package/dashboard/assets/index-9hU42hur.js +0 -316
- package/dashboard/assets/index-DQIXvvgG.css +0 -1
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-DbD4Z2U0.js","assets/DashboardShared-1UhBYL1-.js","assets/MarkdownPreviewFrame-CH3rgET1.js","assets/PreviewTab-C5m4cFxf.js","assets/DashboardPage-i714dDoR.css","assets/SharedConversationPage-CtQLabVf.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Rw=Object.defineProperty;var Cw=(n,r,o)=>r in n?Rw(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o;var ot=(n,r,o)=>Cw(n,typeof r!="symbol"?r+"":r,o);function Aw(n,r){for(var o=0;o<r.length;o++){const s=r[o];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in n)){const u=Object.getOwnPropertyDescriptor(s,c);u&&Object.defineProperty(n,c,u.get?u:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const u of c)if(u.type==="childList")for(const m of u.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&s(m)}).observe(document,{childList:!0,subtree:!0});function o(c){const u={};return c.integrity&&(u.integrity=c.integrity),c.referrerPolicy&&(u.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?u.credentials="include":c.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(c){if(c.ep)return;c.ep=!0;const u=o(c);fetch(c.href,u)}})();function f0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Nd={exports:{}},Ol={};/**
|
|
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 Qg;function kw(){if(Qg)return Ol;Qg=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(s,c,u){var m=null;if(u!==void 0&&(m=""+u),c.key!==void 0&&(m=""+c.key),"key"in c){u={};for(var h in c)h!=="key"&&(u[h]=c[h])}else u=c;return c=u.ref,{$$typeof:n,type:s,key:m,ref:c!==void 0?c:null,props:u}}return Ol.Fragment=r,Ol.jsx=o,Ol.jsxs=o,Ol}var Kg;function jw(){return Kg||(Kg=1,Nd.exports=kw()),Nd.exports}var f=jw(),Td={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 Zg;function _w(){if(Zg)return Ce;Zg=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=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"),b=Symbol.for("react.lazy"),g=Symbol.iterator;function S(C){return C===null||typeof C!="object"?null:(C=g&&C[g]||C["@@iterator"],typeof C=="function"?C:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,E={};function R(C,V,F){this.props=C,this.context=V,this.refs=E,this.updater=F||N}R.prototype.isReactComponent={},R.prototype.setState=function(C,V){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,V,"setState")},R.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function A(){}A.prototype=R.prototype;function j(C,V,F){this.props=C,this.context=V,this.refs=E,this.updater=F||N}var _=j.prototype=new A;_.constructor=j,T(_,R.prototype),_.isPureReactComponent=!0;var U=Array.isArray,z={H:null,A:null,T:null,S:null,V:null},Y=Object.prototype.hasOwnProperty;function G(C,V,F,I,W,se){return F=se.ref,{$$typeof:n,type:C,key:V,ref:F!==void 0?F:null,props:se}}function P(C,V){return G(C.type,V,void 0,void 0,void 0,C.props)}function ee(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function oe(C){var V={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(F){return V[F]})}var fe=/\/+/g;function ue(C,V){return typeof C=="object"&&C!==null&&C.key!=null?oe(""+C.key):V.toString(36)}function ie(){}function me(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(ie,ie):(C.status="pending",C.then(function(V){C.status==="pending"&&(C.status="fulfilled",C.value=V)},function(V){C.status==="pending"&&(C.status="rejected",C.reason=V)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function ae(C,V,F,I,W){var se=typeof C;(se==="undefined"||se==="boolean")&&(C=null);var re=!1;if(C===null)re=!0;else switch(se){case"bigint":case"string":case"number":re=!0;break;case"object":switch(C.$$typeof){case n:case r:re=!0;break;case b:return re=C._init,ae(re(C._payload),V,F,I,W)}}if(re)return W=W(C),re=I===""?"."+ue(C,0):I,U(W)?(F="",re!=null&&(F=re.replace(fe,"$&/")+"/"),ae(W,V,F,"",function(J){return J})):W!=null&&(ee(W)&&(W=P(W,F+(W.key==null||C&&C.key===W.key?"":(""+W.key).replace(fe,"$&/")+"/")+re)),V.push(W)),1;re=0;var ce=I===""?".":I+":";if(U(C))for(var le=0;le<C.length;le++)I=C[le],se=ce+ue(I,le),re+=ae(I,V,F,se,W);else if(le=S(C),typeof le=="function")for(C=le.call(C),le=0;!(I=C.next()).done;)I=I.value,se=ce+ue(I,le++),re+=ae(I,V,F,se,W);else if(se==="object"){if(typeof C.then=="function")return ae(me(C),V,F,I,W);throw V=String(C),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return re}function M(C,V,F){if(C==null)return C;var I=[],W=0;return ae(C,I,"","",function(se){return V.call(F,se,W++)}),I}function q(C){if(C._status===-1){var V=C._result;V=V(),V.then(function(F){(C._status===0||C._status===-1)&&(C._status=1,C._result=F)},function(F){(C._status===0||C._status===-1)&&(C._status=2,C._result=F)}),C._status===-1&&(C._status=0,C._result=V)}if(C._status===1)return C._result.default;throw C._result}var K=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function de(){}return Ce.Children={map:M,forEach:function(C,V,F){M(C,function(){V.apply(this,arguments)},F)},count:function(C){var V=0;return M(C,function(){V++}),V},toArray:function(C){return M(C,function(V){return V})||[]},only:function(C){if(!ee(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},Ce.Component=R,Ce.Fragment=o,Ce.Profiler=c,Ce.PureComponent=j,Ce.StrictMode=s,Ce.Suspense=y,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(C){return z.H.useMemoCache(C)}},Ce.cache=function(C){return function(){return C.apply(null,arguments)}},Ce.cloneElement=function(C,V,F){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var I=T({},C.props),W=C.key,se=void 0;if(V!=null)for(re in V.ref!==void 0&&(se=void 0),V.key!==void 0&&(W=""+V.key),V)!Y.call(V,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&V.ref===void 0||(I[re]=V[re]);var re=arguments.length-2;if(re===1)I.children=F;else if(1<re){for(var ce=Array(re),le=0;le<re;le++)ce[le]=arguments[le+2];I.children=ce}return G(C.type,W,void 0,void 0,se,I)},Ce.createContext=function(C){return C={$$typeof:m,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:u,_context:C},C},Ce.createElement=function(C,V,F){var I,W={},se=null;if(V!=null)for(I in V.key!==void 0&&(se=""+V.key),V)Y.call(V,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(W[I]=V[I]);var re=arguments.length-2;if(re===1)W.children=F;else if(1<re){for(var ce=Array(re),le=0;le<re;le++)ce[le]=arguments[le+2];W.children=ce}if(C&&C.defaultProps)for(I in re=C.defaultProps,re)W[I]===void 0&&(W[I]=re[I]);return G(C,se,void 0,void 0,null,W)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(C){return{$$typeof:h,render:C}},Ce.isValidElement=ee,Ce.lazy=function(C){return{$$typeof:b,_payload:{_status:-1,_result:C},_init:q}},Ce.memo=function(C,V){return{$$typeof:p,type:C,compare:V===void 0?null:V}},Ce.startTransition=function(C){var V=z.T,F={};z.T=F;try{var I=C(),W=z.S;W!==null&&W(F,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(de,K)}catch(se){K(se)}finally{z.T=V}},Ce.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},Ce.use=function(C){return z.H.use(C)},Ce.useActionState=function(C,V,F){return z.H.useActionState(C,V,F)},Ce.useCallback=function(C,V){return z.H.useCallback(C,V)},Ce.useContext=function(C){return z.H.useContext(C)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(C,V){return z.H.useDeferredValue(C,V)},Ce.useEffect=function(C,V,F){var I=z.H;if(typeof F=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return I.useEffect(C,V)},Ce.useId=function(){return z.H.useId()},Ce.useImperativeHandle=function(C,V,F){return z.H.useImperativeHandle(C,V,F)},Ce.useInsertionEffect=function(C,V){return z.H.useInsertionEffect(C,V)},Ce.useLayoutEffect=function(C,V){return z.H.useLayoutEffect(C,V)},Ce.useMemo=function(C,V){return z.H.useMemo(C,V)},Ce.useOptimistic=function(C,V){return z.H.useOptimistic(C,V)},Ce.useReducer=function(C,V,F){return z.H.useReducer(C,V,F)},Ce.useRef=function(C){return z.H.useRef(C)},Ce.useState=function(C){return z.H.useState(C)},Ce.useSyncExternalStore=function(C,V,F){return z.H.useSyncExternalStore(C,V,F)},Ce.useTransition=function(){return z.H.useTransition()},Ce.version="19.1.0",Ce}var Fg;function Ef(){return Fg||(Fg=1,Td.exports=_w()),Td.exports}var v=Ef();const te=f0(v),Nf=Aw({__proto__:null,default:te},[v]);var Rd={exports:{}},Dl={},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 Mw(){return Wg||(Wg=1,(function(n){function r(M,q){var K=M.length;M.push(q);e:for(;0<K;){var de=K-1>>>1,C=M[de];if(0<c(C,q))M[de]=q,M[K]=C,K=de;else break e}}function o(M){return M.length===0?null:M[0]}function s(M){if(M.length===0)return null;var q=M[0],K=M.pop();if(K!==q){M[0]=K;e:for(var de=0,C=M.length,V=C>>>1;de<V;){var F=2*(de+1)-1,I=M[F],W=F+1,se=M[W];if(0>c(I,K))W<C&&0>c(se,I)?(M[de]=se,M[W]=K,de=W):(M[de]=I,M[F]=K,de=F);else if(W<C&&0>c(se,K))M[de]=se,M[W]=K,de=W;else break e}}return q}function c(M,q){var K=M.sortIndex-q.sortIndex;return K!==0?K:M.id-q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var m=Date,h=m.now();n.unstable_now=function(){return m.now()-h}}var y=[],p=[],b=1,g=null,S=3,N=!1,T=!1,E=!1,R=!1,A=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function U(M){for(var q=o(p);q!==null;){if(q.callback===null)s(p);else if(q.startTime<=M)s(p),q.sortIndex=q.expirationTime,r(y,q);else break;q=o(p)}}function z(M){if(E=!1,U(M),!T)if(o(y)!==null)T=!0,Y||(Y=!0,ue());else{var q=o(p);q!==null&&ae(z,q.startTime-M)}}var Y=!1,G=-1,P=5,ee=-1;function oe(){return R?!0:!(n.unstable_now()-ee<P)}function fe(){if(R=!1,Y){var M=n.unstable_now();ee=M;var q=!0;try{e:{T=!1,E&&(E=!1,j(G),G=-1),N=!0;var K=S;try{t:{for(U(M),g=o(y);g!==null&&!(g.expirationTime>M&&oe());){var de=g.callback;if(typeof de=="function"){g.callback=null,S=g.priorityLevel;var C=de(g.expirationTime<=M);if(M=n.unstable_now(),typeof C=="function"){g.callback=C,U(M),q=!0;break t}g===o(y)&&s(y),U(M)}else s(y);g=o(y)}if(g!==null)q=!0;else{var V=o(p);V!==null&&ae(z,V.startTime-M),q=!1}}break e}finally{g=null,S=K,N=!1}q=void 0}}finally{q?ue():Y=!1}}}var ue;if(typeof _=="function")ue=function(){_(fe)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,me=ie.port2;ie.port1.onmessage=fe,ue=function(){me.postMessage(null)}}else ue=function(){A(fe,0)};function ae(M,q){G=A(function(){M(n.unstable_now())},q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(M){M.callback=null},n.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<M?Math.floor(1e3/M):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(M){switch(S){case 1:case 2:case 3:var q=3;break;default:q=S}var K=S;S=q;try{return M()}finally{S=K}},n.unstable_requestPaint=function(){R=!0},n.unstable_runWithPriority=function(M,q){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var K=S;S=M;try{return q()}finally{S=K}},n.unstable_scheduleCallback=function(M,q,K){var de=n.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?de+K:de):K=de,M){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=K+C,M={id:b++,callback:q,priorityLevel:M,startTime:K,expirationTime:C,sortIndex:-1},K>de?(M.sortIndex=K,r(p,M),o(y)===null&&M===o(p)&&(E?(j(G),G=-1):E=!0,ae(z,K-de))):(M.sortIndex=C,r(y,M),T||N||(T=!0,Y||(Y=!0,ue()))),M},n.unstable_shouldYield=oe,n.unstable_wrapCallback=function(M){var q=S;return function(){var K=S;S=q;try{return M.apply(this,arguments)}finally{S=K}}}})(Ad)),Ad}var Jg;function Ow(){return Jg||(Jg=1,Cd.exports=Mw()),Cd.exports}var kd={exports:{}},zt={};/**
|
|
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 ev;function Dw(){if(ev)return zt;ev=1;var n=Ef();function r(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}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 s={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function u(y,p,b){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:b}}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 zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,zt.createPortal=function(y,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return u(y,p,null,b)},zt.flushSync=function(y){var p=m.T,b=s.p;try{if(m.T=null,s.p=2,y)return y()}finally{m.T=p,s.p=b,s.d.f()}},zt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(y,p))},zt.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},zt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var b=p.as,g=h(b,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,N=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?s.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:S,fetchPriority:N}):b==="script"&&s.d.X(y,{crossOrigin:g,integrity:S,fetchPriority:N,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},zt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=h(p.as,p.crossOrigin);s.d.M(y,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(y)},zt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,g=h(b,p.crossOrigin);s.d.L(y,b,{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})}},zt.preloadModule=function(y,p){if(typeof y=="string")if(p){var b=h(p.as,p.crossOrigin);s.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(y)},zt.requestFormReset=function(y){s.d.r(y)},zt.unstable_batchedUpdates=function(y,p){return y(p)},zt.useFormState=function(y,p,b){return m.H.useFormState(y,p,b)},zt.useFormStatus=function(){return m.H.useHostTransitionStatus()},zt.version="19.1.0",zt}var tv;function m0(){if(tv)return kd.exports;tv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),kd.exports=Dw(),kd.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 nv;function zw(){if(nv)return Dl;nv=1;var n=Ow(),r=Ef(),o=m0();function s(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 u(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(u(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var i=a.return;if(i===null)break;var d=i.alternate;if(d===null){if(l=i.return,l!==null){a=l;continue}break}if(i.child===d.child){for(d=i.child;d;){if(d===a)return h(i),e;if(d===l)return h(i),t;d=d.sibling}throw Error(s(188))}if(a.return!==l.return)a=i,l=d;else{for(var x=!1,w=i.child;w;){if(w===a){x=!0,a=i,l=d;break}if(w===l){x=!0,l=i,a=d;break}w=w.sibling}if(!x){for(w=d.child;w;){if(w===a){x=!0,a=d,l=i;break}if(w===l){x=!0,l=d,a=i;break}w=w.sibling}if(!x)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,g=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),j=Symbol.for("react.consumer"),_=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),oe=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function ue(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Symbol.for("react.client.reference");function me(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case R:return"Profiler";case E:return"StrictMode";case z:return"Suspense";case Y:return"SuspenseList";case ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case _:return(e.displayName||"Context")+".Provider";case j:return(e._context.displayName||"Context")+".Consumer";case U:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return t=e.displayName||null,t!==null?t:me(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}var ae=Array.isArray,M=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},de=[],C=-1;function V(e){return{current:e}}function F(e){0>C||(e.current=de[C],de[C]=null,C--)}function I(e,t){C++,de[C]=e.current,e.current=t}var W=V(null),se=V(null),re=V(null),ce=V(null);function le(e,t){switch(I(re,t),I(se,e),I(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?wg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=wg(t),e=Eg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(W),I(W,e)}function J(){F(W),F(se),F(re)}function ve(e){e.memoizedState!==null&&I(ce,e);var t=W.current,a=Eg(t,e.type);t!==a&&(I(se,e),I(W,a))}function ye(e){se.current===e&&(F(W),F(se)),ce.current===e&&(F(ce),Al._currentValue=K)}var Se=Object.prototype.hasOwnProperty,Be=n.unstable_scheduleCallback,$e=n.unstable_cancelCallback,Ge=n.unstable_shouldYield,vt=n.unstable_requestPaint,_e=n.unstable_now,Ht=n.unstable_getCurrentPriorityLevel,yt=n.unstable_ImmediatePriority,Rr=n.unstable_UserBlockingPriority,ha=n.unstable_NormalPriority,kt=n.unstable_LowPriority,pn=n.unstable_IdlePriority,Lo=n.log,Cr=n.unstable_setDisableYieldValue,It=null,be=null;function Pe(e){if(typeof Lo=="function"&&Cr(e),be&&typeof be.setStrictMode=="function")try{be.setStrictMode(It,e)}catch{}}var Me=Math.clz32?Math.clz32:Rn,it=Math.log,Tn=Math.LN2;function Rn(e){return e>>>=0,e===0?32:31-(it(e)/Tn|0)|0}var Gn=256,Ar=4194304;function Cn(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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 Za(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var i=0,d=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var w=l&134217727;return w!==0?(l=w&~d,l!==0?i=Cn(l):(x&=w,x!==0?i=Cn(x):a||(a=w&~e,a!==0&&(i=Cn(a))))):(w=l&~d,w!==0?i=Cn(w):x!==0?i=Cn(x):a||(a=l&~e,a!==0&&(i=Cn(a)))),i===0?0:t!==0&&t!==i&&(t&d)===0&&(d=i&-i,a=t&-t,d>=a||d===32&&(a&4194048)!==0)?t:i}function Fa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Uo(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 gn(){var e=Gn;return Gn<<=1,(Gn&4194048)===0&&(Gn=256),e}function ns(){var e=Ar;return Ar<<=1,(Ar&62914560)===0&&(Ar=4194304),e}function Bo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function pa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function as(e,t,a,l,i,d){var x=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 w=e.entanglements,k=e.expirationTimes,B=e.hiddenUpdates;for(a=x&~a;0<a;){var X=31-Me(a),Z=1<<X;w[X]=0,k[X]=-1;var H=B[X];if(H!==null)for(B[X]=null,X=0;X<H.length;X++){var $=H[X];$!==null&&($.lane&=-536870913)}a&=~Z}l!==0&&Re(e,l,0),d!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=d&~(x&~t))}function Re(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Me(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function ct(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Me(a),i=1<<l;i&t|e[l]&t&&(e[l]|=t),a&=~i}}function ht(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 jt(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Wa(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:qg(e.type))}function bt(e,t){var a=q.p;try{return q.p=e,t()}finally{q.p=a}}var ut=Math.random().toString(36).slice(2),dt="__reactFiber$"+ut,We="__reactProps$"+ut,Nt="__reactContainer$"+ut,kr="__reactEvents$"+ut,In="__reactListeners$"+ut,cm="__reactHandles$"+ut,um="__reactResources$"+ut,Ho="__reactMarker$"+ut;function vc(e){delete e[dt],delete e[We],delete e[kr],delete e[In],delete e[cm]}function jr(e){var t=e[dt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Nt]||a[dt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Cg(e);e!==null;){if(a=e[dt])return a;e=Cg(e)}return t}e=a,a=e.parentNode}return null}function _r(e){if(e=e[dt]||e[Nt]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function $o(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Mr(e){var t=e[um];return t||(t=e[um]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Tt(e){e[Ho]=!0}var dm=new Set,fm={};function Ja(e,t){Or(e,t),Or(e+"Capture",t)}function Or(e,t){for(fm[e]=t,e=0;e<t.length;e++)dm.add(t[e])}var y1=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]*$"),mm={},hm={};function b1(e){return Se.call(hm,e)?!0:Se.call(mm,e)?!1:y1.test(e)?hm[e]=!0:(mm[e]=!0,!1)}function rs(e,t,a){if(b1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function os(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 Xn(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}var yc,pm;function Dr(e){if(yc===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);yc=t&&t[1]||"",pm=-1<a.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+yc+e+pm}var bc=!1;function xc(e,t){if(!e||bc)return"";bc=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch($){var H=$}Reflect.construct(e,[],Z)}else{try{Z.call()}catch($){H=$}e.call(Z.prototype)}}else{try{throw Error()}catch($){H=$}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch($){if($&&H&&typeof $.stack=="string")return[$.stack,H.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=l.DetermineComponentFrameRoot(),x=d[0],w=d[1];if(x&&w){var k=x.split(`
|
|
45
|
+
`),B=w.split(`
|
|
46
|
+
`);for(i=l=0;l<k.length&&!k[l].includes("DetermineComponentFrameRoot");)l++;for(;i<B.length&&!B[i].includes("DetermineComponentFrameRoot");)i++;if(l===k.length||i===B.length)for(l=k.length-1,i=B.length-1;1<=l&&0<=i&&k[l]!==B[i];)i--;for(;1<=l&&0<=i;l--,i--)if(k[l]!==B[i]){if(l!==1||i!==1)do if(l--,i--,0>i||k[l]!==B[i]){var X=`
|
|
47
|
+
`+k[l].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=l&&0<=i);break}}}finally{bc=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Dr(a):""}function x1(e){switch(e.tag){case 26:case 27:case 5:return Dr(e.type);case 16:return Dr("Lazy");case 13:return Dr("Suspense");case 19:return Dr("SuspenseList");case 0:case 15:return xc(e.type,!1);case 11:return xc(e.type.render,!1);case 1:return xc(e.type,!0);case 31:return Dr("Activity");default:return""}}function gm(e){try{var t="";do t+=x1(e),e=e.return;while(e);return t}catch(a){return`
|
|
48
|
+
Error generating stack: `+a.message+`
|
|
49
|
+
`+a.stack}}function rn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function S1(e){var t=vm(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,d=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(x){l=""+x,d.call(this,x)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ls(e){e._valueTracker||(e._valueTracker=S1(e))}function ym(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=vm(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function ss(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 w1=/[\n"\\]/g;function on(e){return e.replace(w1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Sc(e,t,a,l,i,d,x,w){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+rn(t)):e.value!==""+rn(t)&&(e.value=""+rn(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?wc(e,x,rn(t)):a!=null?wc(e,x,rn(a)):l!=null&&e.removeAttribute("value"),i==null&&d!=null&&(e.defaultChecked=!!d),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+rn(w):e.removeAttribute("name")}function bm(e,t,a,l,i,d,x,w){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||t!=null))return;a=a!=null?""+rn(a):"",t=t!=null?""+rn(t):a,w||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=w?e.checked:!!l,e.defaultChecked=!!l,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x)}function wc(e,t,a){t==="number"&&ss(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function zr(e,t,a,l){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&l&&(e[a].defaultSelected=!0)}else{for(a=""+rn(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function xm(e,t,a){if(t!=null&&(t=""+rn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+rn(a):""}function Sm(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(ae(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=rn(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Lr(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var E1=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 wm(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||E1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Em(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&a[i]!==l&&wm(e,i,l)}else for(var d in t)t.hasOwnProperty(d)&&wm(e,d,t[d])}function Ec(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 N1=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"]]),T1=/^[\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 is(e){return T1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Nc=null;function Tc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ur=null,Br=null;function Nm(e){var t=_r(e);if(t&&(e=t.stateNode)){var a=e[We]||null;e:switch(e=t.stateNode,t.type){case"input":if(Sc(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="'+on(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var i=l[We]||null;if(!i)throw Error(s(90));Sc(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&ym(l)}break e;case"textarea":xm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&zr(e,!!a.multiple,t,!1)}}}var Rc=!1;function Tm(e,t,a){if(Rc)return e(t,a);Rc=!0;try{var l=e(t);return l}finally{if(Rc=!1,(Ur!==null||Br!==null)&&(Xs(),Ur&&(t=Ur,e=Br,Br=Ur=null,Nm(t),e)))for(t=0;t<e.length;t++)Nm(e[t])}}function Po(e,t){var a=e.stateNode;if(a===null)return null;var l=a[We]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var Qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cc=!1;if(Qn)try{var qo={};Object.defineProperty(qo,"passive",{get:function(){Cc=!0}}),window.addEventListener("test",qo,qo),window.removeEventListener("test",qo,qo)}catch{Cc=!1}var ga=null,Ac=null,cs=null;function Rm(){if(cs)return cs;var e,t=Ac,a=t.length,l,i="value"in ga?ga.value:ga.textContent,d=i.length;for(e=0;e<a&&t[e]===i[e];e++);var x=a-e;for(l=1;l<=x&&t[a-l]===i[d-l];l++);return cs=i.slice(e,1<l?1-l:void 0)}function us(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 ds(){return!0}function Cm(){return!1}function $t(e){function t(a,l,i,d,x){this._reactName=a,this._targetInst=i,this.type=l,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(a=e[w],this[w]=a?a(d):d[w]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?ds:Cm,this.isPropagationStopped=Cm,this}return b(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=ds)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ds)},persist:function(){},isPersistent:ds}),t}var er={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fs=$t(er),Vo=b({},er,{view:0,detail:0}),R1=$t(Vo),kc,jc,Yo,ms=b({},Vo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mc,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!==Yo&&(Yo&&e.type==="mousemove"?(kc=e.screenX-Yo.screenX,jc=e.screenY-Yo.screenY):jc=kc=0,Yo=e),kc)},movementY:function(e){return"movementY"in e?e.movementY:jc}}),Am=$t(ms),C1=b({},ms,{dataTransfer:0}),A1=$t(C1),k1=b({},Vo,{relatedTarget:0}),_c=$t(k1),j1=b({},er,{animationName:0,elapsedTime:0,pseudoElement:0}),_1=$t(j1),M1=b({},er,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),O1=$t(M1),D1=b({},er,{data:0}),km=$t(D1),z1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},L1={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"},U1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=U1[e])?!!t[e]:!1}function Mc(){return B1}var H1=b({},Vo,{key:function(e){if(e.key){var t=z1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=us(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?L1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mc,charCode:function(e){return e.type==="keypress"?us(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?us(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$1=$t(H1),P1=b({},ms,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jm=$t(P1),q1=b({},Vo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mc}),V1=$t(q1),Y1=b({},er,{propertyName:0,elapsedTime:0,pseudoElement:0}),G1=$t(Y1),I1=b({},ms,{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}),X1=$t(I1),Q1=b({},er,{newState:0,oldState:0}),K1=$t(Q1),Z1=[9,13,27,32],Oc=Qn&&"CompositionEvent"in window,Go=null;Qn&&"documentMode"in document&&(Go=document.documentMode);var F1=Qn&&"TextEvent"in window&&!Go,_m=Qn&&(!Oc||Go&&8<Go&&11>=Go),Mm=" ",Om=!1;function Dm(e,t){switch(e){case"keyup":return Z1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hr=!1;function W1(e,t){switch(e){case"compositionend":return zm(t);case"keypress":return t.which!==32?null:(Om=!0,Mm);case"textInput":return e=t.data,e===Mm&&Om?null:e;default:return null}}function J1(e,t){if(Hr)return e==="compositionend"||!Oc&&Dm(e,t)?(e=Rm(),cs=Ac=ga=null,Hr=!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 _m&&t.locale!=="ko"?null:t.data;default:return null}}var eS={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 Lm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!eS[e.type]:t==="textarea"}function Um(e,t,a,l){Ur?Br?Br.push(l):Br=[l]:Ur=l,t=Js(t,"onChange"),0<t.length&&(a=new fs("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Io=null,Xo=null;function tS(e){vg(e,0)}function hs(e){var t=$o(e);if(ym(t))return e}function Bm(e,t){if(e==="change")return t}var Hm=!1;if(Qn){var Dc;if(Qn){var zc="oninput"in document;if(!zc){var $m=document.createElement("div");$m.setAttribute("oninput","return;"),zc=typeof $m.oninput=="function"}Dc=zc}else Dc=!1;Hm=Dc&&(!document.documentMode||9<document.documentMode)}function Pm(){Io&&(Io.detachEvent("onpropertychange",qm),Xo=Io=null)}function qm(e){if(e.propertyName==="value"&&hs(Xo)){var t=[];Um(t,Xo,e,Tc(e)),Tm(tS,t)}}function nS(e,t,a){e==="focusin"?(Pm(),Io=t,Xo=a,Io.attachEvent("onpropertychange",qm)):e==="focusout"&&Pm()}function aS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hs(Xo)}function rS(e,t){if(e==="click")return hs(t)}function oS(e,t){if(e==="input"||e==="change")return hs(t)}function lS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xt=typeof Object.is=="function"?Object.is:lS;function Qo(e,t){if(Xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var i=a[l];if(!Se.call(t,i)||!Xt(e[i],t[i]))return!1}return!0}function Vm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ym(e,t){var a=Vm(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Vm(a)}}function Gm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Im(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ss(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=ss(e.document)}return t}function Lc(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 sS=Qn&&"documentMode"in document&&11>=document.documentMode,$r=null,Uc=null,Ko=null,Bc=!1;function Xm(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Bc||$r==null||$r!==ss(l)||(l=$r,"selectionStart"in l&&Lc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ko&&Qo(Ko,l)||(Ko=l,l=Js(Uc,"onSelect"),0<l.length&&(t=new fs("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=$r)))}function tr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Pr={animationend:tr("Animation","AnimationEnd"),animationiteration:tr("Animation","AnimationIteration"),animationstart:tr("Animation","AnimationStart"),transitionrun:tr("Transition","TransitionRun"),transitionstart:tr("Transition","TransitionStart"),transitioncancel:tr("Transition","TransitionCancel"),transitionend:tr("Transition","TransitionEnd")},Hc={},Qm={};Qn&&(Qm=document.createElement("div").style,"AnimationEvent"in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),"TransitionEvent"in window||delete Pr.transitionend.transition);function nr(e){if(Hc[e])return Hc[e];if(!Pr[e])return e;var t=Pr[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Qm)return Hc[e]=t[a];return e}var Km=nr("animationend"),Zm=nr("animationiteration"),Fm=nr("animationstart"),iS=nr("transitionrun"),cS=nr("transitionstart"),uS=nr("transitioncancel"),Wm=nr("transitionend"),Jm=new Map,$c="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(" ");$c.push("scrollEnd");function vn(e,t){Jm.set(e,t),Ja(t,[e])}var eh=new WeakMap;function ln(e,t){if(typeof e=="object"&&e!==null){var a=eh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:gm(t)},eh.set(e,t),t)}return{value:e,source:t,stack:gm(t)}}var sn=[],qr=0,Pc=0;function ps(){for(var e=qr,t=Pc=qr=0;t<e;){var a=sn[t];sn[t++]=null;var l=sn[t];sn[t++]=null;var i=sn[t];sn[t++]=null;var d=sn[t];if(sn[t++]=null,l!==null&&i!==null){var x=l.pending;x===null?i.next=i:(i.next=x.next,x.next=i),l.pending=i}d!==0&&th(a,i,d)}}function gs(e,t,a,l){sn[qr++]=e,sn[qr++]=t,sn[qr++]=a,sn[qr++]=l,Pc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function qc(e,t,a,l){return gs(e,t,a,l),vs(e)}function Vr(e,t){return gs(e,null,null,t),vs(e)}function th(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var i=!1,d=e.return;d!==null;)d.childLanes|=a,l=d.alternate,l!==null&&(l.childLanes|=a),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(i=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,i&&t!==null&&(i=31-Me(a),e=d.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=a|536870912),d):null}function vs(e){if(50<xl)throw xl=0,Qu=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Yr={};function dS(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(e,t,a,l){return new dS(e,t,a,l)}function Vc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kn(e,t){var a=e.alternate;return a===null?(a=Qt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function nh(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 ys(e,t,a,l,i,d){var x=0;if(l=e,typeof e=="function")Vc(e)&&(x=1);else if(typeof e=="string")x=mw(e,a,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ee:return e=Qt(31,a,t,i),e.elementType=ee,e.lanes=d,e;case T:return ar(a.children,i,d,t);case E:x=8,i|=24;break;case R:return e=Qt(12,a,t,i|2),e.elementType=R,e.lanes=d,e;case z:return e=Qt(13,a,t,i),e.elementType=z,e.lanes=d,e;case Y:return e=Qt(19,a,t,i),e.elementType=Y,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A:case _:x=10;break e;case j:x=9;break e;case U:x=11;break e;case G:x=14;break e;case P:x=16,l=null;break e}x=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Qt(x,a,t,i),t.elementType=e,t.type=l,t.lanes=d,t}function ar(e,t,a,l){return e=Qt(7,e,l,t),e.lanes=a,e}function Yc(e,t,a){return e=Qt(6,e,null,t),e.lanes=a,e}function Gc(e,t,a){return t=Qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Gr=[],Ir=0,bs=null,xs=0,cn=[],un=0,rr=null,Zn=1,Fn="";function or(e,t){Gr[Ir++]=xs,Gr[Ir++]=bs,bs=e,xs=t}function ah(e,t,a){cn[un++]=Zn,cn[un++]=Fn,cn[un++]=rr,rr=e;var l=Zn;e=Fn;var i=32-Me(l)-1;l&=~(1<<i),a+=1;var d=32-Me(t)+i;if(30<d){var x=i-i%5;d=(l&(1<<x)-1).toString(32),l>>=x,i-=x,Zn=1<<32-Me(t)+i|a<<i|l,Fn=d+e}else Zn=1<<d|a<<i|l,Fn=e}function Ic(e){e.return!==null&&(or(e,1),ah(e,1,0))}function Xc(e){for(;e===bs;)bs=Gr[--Ir],Gr[Ir]=null,xs=Gr[--Ir],Gr[Ir]=null;for(;e===rr;)rr=cn[--un],cn[un]=null,Fn=cn[--un],cn[un]=null,Zn=cn[--un],cn[un]=null}var Ut=null,lt=null,Ye=!1,lr=null,An=!1,Qc=Error(s(519));function sr(e){var t=Error(s(418,""));throw Wo(ln(t,e)),Qc}function rh(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[dt]=e,t[We]=l,a){case"dialog":ze("cancel",t),ze("close",t);break;case"iframe":case"object":case"embed":ze("load",t);break;case"video":case"audio":for(a=0;a<wl.length;a++)ze(wl[a],t);break;case"source":ze("error",t);break;case"img":case"image":case"link":ze("error",t),ze("load",t);break;case"details":ze("toggle",t);break;case"input":ze("invalid",t),bm(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),ls(t);break;case"select":ze("invalid",t);break;case"textarea":ze("invalid",t),Sm(t,l.value,l.defaultValue,l.children),ls(t)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Sg(t.textContent,a)?(l.popover!=null&&(ze("beforetoggle",t),ze("toggle",t)),l.onScroll!=null&&ze("scroll",t),l.onScrollEnd!=null&&ze("scrollend",t),l.onClick!=null&&(t.onclick=ei),t=!0):t=!1,t||sr(e)}function oh(e){for(Ut=e.return;Ut;)switch(Ut.tag){case 5:case 13:An=!1;return;case 27:case 3:An=!0;return;default:Ut=Ut.return}}function Zo(e){if(e!==Ut)return!1;if(!Ye)return oh(e),Ye=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ud(e.type,e.memoizedProps)),a=!a),a&<&&sr(e),oh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){lt=bn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}lt=null}}else t===27?(t=lt,Ma(e.type)?(e=hd,hd=null,lt=e):lt=t):lt=Ut?bn(e.stateNode.nextSibling):null;return!0}function Fo(){lt=Ut=null,Ye=!1}function lh(){var e=lr;return e!==null&&(Vt===null?Vt=e:Vt.push.apply(Vt,e),lr=null),e}function Wo(e){lr===null?lr=[e]:lr.push(e)}var Kc=V(null),ir=null,Wn=null;function va(e,t,a){I(Kc,t._currentValue),t._currentValue=a}function Jn(e){e._currentValue=Kc.current,F(Kc)}function Zc(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Fc(e,t,a,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var d=i.dependencies;if(d!==null){var x=i.child;d=d.firstContext;e:for(;d!==null;){var w=d;d=i;for(var k=0;k<t.length;k++)if(w.context===t[k]){d.lanes|=a,w=d.alternate,w!==null&&(w.lanes|=a),Zc(d.return,a,e),l||(x=null);break e}d=w.next}}else if(i.tag===18){if(x=i.return,x===null)throw Error(s(341));x.lanes|=a,d=x.alternate,d!==null&&(d.lanes|=a),Zc(x,a,e),x=null}else x=i.child;if(x!==null)x.return=i;else for(x=i;x!==null;){if(x===e){x=null;break}if(i=x.sibling,i!==null){i.return=x.return,x=i;break}x=x.return}i=x}}function Jo(e,t,a,l){e=null;for(var i=t,d=!1;i!==null;){if(!d){if((i.flags&524288)!==0)d=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var x=i.alternate;if(x===null)throw Error(s(387));if(x=x.memoizedProps,x!==null){var w=i.type;Xt(i.pendingProps.value,x.value)||(e!==null?e.push(w):e=[w])}}else if(i===ce.current){if(x=i.alternate,x===null)throw Error(s(387));x.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Al):e=[Al])}i=i.return}e!==null&&Fc(t,e,a,l),t.flags|=262144}function Ss(e){for(e=e.firstContext;e!==null;){if(!Xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function cr(e){ir=e,Wn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Dt(e){return sh(ir,e)}function ws(e,t){return ir===null&&cr(e),sh(e,t)}function sh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Wn===null){if(e===null)throw Error(s(308));Wn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wn=Wn.next=t;return a}var fS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},mS=n.unstable_scheduleCallback,hS=n.unstable_NormalPriority,xt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wc(){return{controller:new fS,data:new Map,refCount:0}}function el(e){e.refCount--,e.refCount===0&&mS(hS,function(){e.controller.abort()})}var tl=null,Jc=0,Xr=0,Qr=null;function pS(e,t){if(tl===null){var a=tl=[];Jc=0,Xr=td(),Qr={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Jc++,t.then(ih,ih),t}function ih(){if(--Jc===0&&tl!==null){Qr!==null&&(Qr.status="fulfilled");var e=tl;tl=null,Xr=0,Qr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function gS(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var ch=M.S;M.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&pS(e,t),ch!==null&&ch(e,t)};var ur=V(null);function eu(){var e=ur.current;return e!==null?e:Je.pooledCache}function Es(e,t){t===null?I(ur,ur.current):I(ur,t.pool)}function uh(){var e=eu();return e===null?null:{parent:xt._currentValue,pool:e}}var nl=Error(s(460)),dh=Error(s(474)),Ns=Error(s(542)),tu={then:function(){}};function fh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ts(){}function mh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ts,Ts),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ph(e),e;default:if(typeof t.status=="string")t.then(Ts,Ts);else{if(e=Je,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ph(e),e}throw al=t,nl}}var al=null;function hh(){if(al===null)throw Error(s(459));var e=al;return al=null,e}function ph(e){if(e===nl||e===Ns)throw Error(s(483))}var ya=!1;function nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function au(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 ba(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ie&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=vs(e),th(e,null,a),t}return gs(e,l,t,a),vs(e)}function rl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,ct(e,a)}}function ru(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,d=null;if(a=a.firstBaseUpdate,a!==null){do{var x={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?i=d=x:d=d.next=x,a=a.next}while(a!==null);d===null?i=d=t:d=d.next=t}else i=d=t;a={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:d,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var ou=!1;function ol(){if(ou){var e=Qr;if(e!==null)throw e}}function ll(e,t,a,l){ou=!1;var i=e.updateQueue;ya=!1;var d=i.firstBaseUpdate,x=i.lastBaseUpdate,w=i.shared.pending;if(w!==null){i.shared.pending=null;var k=w,B=k.next;k.next=null,x===null?d=B:x.next=B,x=k;var X=e.alternate;X!==null&&(X=X.updateQueue,w=X.lastBaseUpdate,w!==x&&(w===null?X.firstBaseUpdate=B:w.next=B,X.lastBaseUpdate=k))}if(d!==null){var Z=i.baseState;x=0,X=B=k=null,w=d;do{var H=w.lane&-536870913,$=H!==w.lane;if($?(He&H)===H:(l&H)===H){H!==0&&H===Xr&&(ou=!0),X!==null&&(X=X.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var Te=e,Ee=w;H=t;var Ze=a;switch(Ee.tag){case 1:if(Te=Ee.payload,typeof Te=="function"){Z=Te.call(Ze,Z,H);break e}Z=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=Ee.payload,H=typeof Te=="function"?Te.call(Ze,Z,H):Te,H==null)break e;Z=b({},Z,H);break e;case 2:ya=!0}}H=w.callback,H!==null&&(e.flags|=64,$&&(e.flags|=8192),$=i.callbacks,$===null?i.callbacks=[H]:$.push(H))}else $={lane:H,tag:w.tag,payload:w.payload,callback:w.callback,next:null},X===null?(B=X=$,k=Z):X=X.next=$,x|=H;if(w=w.next,w===null){if(w=i.shared.pending,w===null)break;$=w,w=$.next,$.next=null,i.lastBaseUpdate=$,i.shared.pending=null}}while(!0);X===null&&(k=Z),i.baseState=k,i.firstBaseUpdate=B,i.lastBaseUpdate=X,d===null&&(i.shared.lanes=0),Aa|=x,e.lanes=x,e.memoizedState=Z}}function gh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function vh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)gh(a[e],t)}var Kr=V(null),Rs=V(0);function yh(e,t){e=la,I(Rs,e),I(Kr,t),la=e|t.baseLanes}function lu(){I(Rs,la),I(Kr,Kr.current)}function su(){la=Rs.current,F(Kr),F(Rs)}var Sa=0,Ae=null,Qe=null,pt=null,Cs=!1,Zr=!1,dr=!1,As=0,sl=0,Fr=null,vS=0;function ft(){throw Error(s(321))}function iu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Xt(e[a],t[a]))return!1;return!0}function cu(e,t,a,l,i,d){return Sa=d,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?tp:np,dr=!1,d=a(l,i),dr=!1,Zr&&(d=xh(t,a,l,i)),bh(e),d}function bh(e){M.H=Ds;var t=Qe!==null&&Qe.next!==null;if(Sa=0,pt=Qe=Ae=null,Cs=!1,sl=0,Fr=null,t)throw Error(s(300));e===null||Rt||(e=e.dependencies,e!==null&&Ss(e)&&(Rt=!0))}function xh(e,t,a,l){Ae=e;var i=0;do{if(Zr&&(Fr=null),sl=0,Zr=!1,25<=i)throw Error(s(301));if(i+=1,pt=Qe=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}M.H=NS,d=t(a,l)}while(Zr);return d}function yS(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?il(t):t,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(Ae.flags|=1024),t}function uu(){var e=As!==0;return As=0,e}function du(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function fu(e){if(Cs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Cs=!1}Sa=0,pt=Qe=Ae=null,Zr=!1,sl=As=0,Fr=null}function Pt(){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 gt(){if(Qe===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=pt===null?Ae.memoizedState:pt.next;if(t!==null)pt=t,Qe=e;else{if(e===null)throw Ae.alternate===null?Error(s(467)):Error(s(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},pt===null?Ae.memoizedState=pt=e:pt=pt.next=e}return pt}function mu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function il(e){var t=sl;return sl+=1,Fr===null&&(Fr=[]),e=mh(Fr,e,t),t=Ae,(pt===null?t.memoizedState:pt.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?tp:np),e}function ks(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return il(e);if(e.$$typeof===_)return Dt(e)}throw Error(s(438,String(e)))}function hu(e){var t=null,a=Ae.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=Ae.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=mu(),Ae.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=oe;return t.index++,a}function ea(e,t){return typeof t=="function"?t(e):t}function js(e){var t=gt();return pu(t,Qe,e)}function pu(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var i=e.baseQueue,d=l.pending;if(d!==null){if(i!==null){var x=i.next;i.next=d.next,d.next=x}t.baseQueue=i=d,l.pending=null}if(d=e.baseState,i===null)e.memoizedState=d;else{t=i.next;var w=x=null,k=null,B=t,X=!1;do{var Z=B.lane&-536870913;if(Z!==B.lane?(He&Z)===Z:(Sa&Z)===Z){var H=B.revertLane;if(H===0)k!==null&&(k=k.next={lane:0,revertLane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),Z===Xr&&(X=!0);else if((Sa&H)===H){B=B.next,H===Xr&&(X=!0);continue}else Z={lane:0,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},k===null?(w=k=Z,x=d):k=k.next=Z,Ae.lanes|=H,Aa|=H;Z=B.action,dr&&a(d,Z),d=B.hasEagerState?B.eagerState:a(d,Z)}else H={lane:Z,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},k===null?(w=k=H,x=d):k=k.next=H,Ae.lanes|=Z,Aa|=Z;B=B.next}while(B!==null&&B!==t);if(k===null?x=d:k.next=w,!Xt(d,e.memoizedState)&&(Rt=!0,X&&(a=Qr,a!==null)))throw a;e.memoizedState=d,e.baseState=x,e.baseQueue=k,l.lastRenderedState=d}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function gu(e){var t=gt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,i=a.pending,d=t.memoizedState;if(i!==null){a.pending=null;var x=i=i.next;do d=e(d,x.action),x=x.next;while(x!==i);Xt(d,t.memoizedState)||(Rt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),a.lastRenderedState=d}return[d,l]}function Sh(e,t,a){var l=Ae,i=gt(),d=Ye;if(d){if(a===void 0)throw Error(s(407));a=a()}else a=t();var x=!Xt((Qe||i).memoizedState,a);x&&(i.memoizedState=a,Rt=!0),i=i.queue;var w=Nh.bind(null,l,i,e);if(cl(2048,8,w,[e]),i.getSnapshot!==t||x||pt!==null&&pt.memoizedState.tag&1){if(l.flags|=2048,Wr(9,_s(),Eh.bind(null,l,i,a,t),null),Je===null)throw Error(s(349));d||(Sa&124)!==0||wh(l,t,a)}return a}function wh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ae.updateQueue,t===null?(t=mu(),Ae.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Eh(e,t,a,l){t.value=a,t.getSnapshot=l,Th(t)&&Rh(e)}function Nh(e,t,a){return a(function(){Th(t)&&Rh(e)})}function Th(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Xt(e,a)}catch{return!0}}function Rh(e){var t=Vr(e,2);t!==null&&Jt(t,e,2)}function vu(e){var t=Pt();if(typeof e=="function"){var a=e;if(e=a(),dr){Pe(!0);try{a()}finally{Pe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:e},t}function Ch(e,t,a,l){return e.baseState=a,pu(e,Qe,typeof l=="function"?l:ea)}function bS(e,t,a,l,i){if(Os(e))throw Error(s(485));if(e=t.action,e!==null){var d={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){d.listeners.push(x)}};M.T!==null?a(!0):d.isTransition=!1,l(d),a=t.pending,a===null?(d.next=t.pending=d,Ah(t,d)):(d.next=a.next,t.pending=a.next=d)}}function Ah(e,t){var a=t.action,l=t.payload,i=e.state;if(t.isTransition){var d=M.T,x={};M.T=x;try{var w=a(i,l),k=M.S;k!==null&&k(x,w),kh(e,t,w)}catch(B){yu(e,t,B)}finally{M.T=d}}else try{d=a(i,l),kh(e,t,d)}catch(B){yu(e,t,B)}}function kh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){jh(e,t,l)},function(l){return yu(e,t,l)}):jh(e,t,a)}function jh(e,t,a){t.status="fulfilled",t.value=a,_h(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Ah(e,a)))}function yu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,_h(t),t=t.next;while(t!==l)}e.action=null}function _h(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Mh(e,t){return t}function Oh(e,t){if(Ye){var a=Je.formState;if(a!==null){e:{var l=Ae;if(Ye){if(lt){t:{for(var i=lt,d=An;i.nodeType!==8;){if(!d){i=null;break t}if(i=bn(i.nextSibling),i===null){i=null;break t}}d=i.data,i=d==="F!"||d==="F"?i:null}if(i){lt=bn(i.nextSibling),l=i.data==="F!";break e}}sr(l)}l=!1}l&&(t=a[0])}}return a=Pt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mh,lastRenderedState:t},a.queue=l,a=Wh.bind(null,Ae,l),l.dispatch=a,l=vu(!1),d=Eu.bind(null,Ae,!1,l.queue),l=Pt(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,a=bS.bind(null,Ae,i,d,a),i.dispatch=a,l.memoizedState=e,[t,a,!1]}function Dh(e){var t=gt();return zh(t,Qe,e)}function zh(e,t,a){if(t=pu(e,t,Mh)[0],e=js(ea)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=il(t)}catch(x){throw x===nl?Ns:x}else l=t;t=gt();var i=t.queue,d=i.dispatch;return a!==t.memoizedState&&(Ae.flags|=2048,Wr(9,_s(),xS.bind(null,i,a),null)),[l,d,e]}function xS(e,t){e.action=t}function Lh(e){var t=gt(),a=Qe;if(a!==null)return zh(t,a,e);gt(),t=t.memoizedState,a=gt();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Wr(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=mu(),Ae.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function _s(){return{destroy:void 0,resource:void 0}}function Uh(){return gt().memoizedState}function Ms(e,t,a,l){var i=Pt();l=l===void 0?null:l,Ae.flags|=e,i.memoizedState=Wr(1|t,_s(),a,l)}function cl(e,t,a,l){var i=gt();l=l===void 0?null:l;var d=i.memoizedState.inst;Qe!==null&&l!==null&&iu(l,Qe.memoizedState.deps)?i.memoizedState=Wr(t,d,a,l):(Ae.flags|=e,i.memoizedState=Wr(1|t,d,a,l))}function Bh(e,t){Ms(8390656,8,e,t)}function Hh(e,t){cl(2048,8,e,t)}function $h(e,t){return cl(4,2,e,t)}function Ph(e,t){return cl(4,4,e,t)}function qh(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 Vh(e,t,a){a=a!=null?a.concat([e]):null,cl(4,4,qh.bind(null,t,e),a)}function bu(){}function Yh(e,t){var a=gt();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&iu(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Gh(e,t){var a=gt();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&iu(t,l[1]))return l[0];if(l=e(),dr){Pe(!0);try{e()}finally{Pe(!1)}}return a.memoizedState=[l,t],l}function xu(e,t,a){return a===void 0||(Sa&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=Qp(),Ae.lanes|=e,Aa|=e,a)}function Ih(e,t,a,l){return Xt(a,t)?a:Kr.current!==null?(e=xu(e,a,l),Xt(e,t)||(Rt=!0),e):(Sa&42)===0?(Rt=!0,e.memoizedState=a):(e=Qp(),Ae.lanes|=e,Aa|=e,t)}function Xh(e,t,a,l,i){var d=q.p;q.p=d!==0&&8>d?d:8;var x=M.T,w={};M.T=w,Eu(e,!1,t,a);try{var k=i(),B=M.S;if(B!==null&&B(w,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var X=gS(k,l);ul(e,t,X,Wt(e))}else ul(e,t,l,Wt(e))}catch(Z){ul(e,t,{then:function(){},status:"rejected",reason:Z},Wt())}finally{q.p=d,M.T=x}}function SS(){}function Su(e,t,a,l){if(e.tag!==5)throw Error(s(476));var i=Qh(e).queue;Xh(e,i,t,K,a===null?SS:function(){return Kh(e),a(l)})}function Qh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:K},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Kh(e){var t=Qh(e).next.queue;ul(e,t,{},Wt())}function wu(){return Dt(Al)}function Zh(){return gt().memoizedState}function Fh(){return gt().memoizedState}function wS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Wt();e=ba(a);var l=xa(t,e,a);l!==null&&(Jt(l,t,a),rl(l,t,a)),t={cache:Wc()},e.payload=t;return}t=t.return}}function ES(e,t,a){var l=Wt();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Os(e)?Jh(t,a):(a=qc(e,t,a,l),a!==null&&(Jt(a,e,l),ep(a,t,l)))}function Wh(e,t,a){var l=Wt();ul(e,t,a,l)}function ul(e,t,a,l){var i={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Os(e))Jh(t,i);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var x=t.lastRenderedState,w=d(x,a);if(i.hasEagerState=!0,i.eagerState=w,Xt(w,x))return gs(e,t,i,0),Je===null&&ps(),!1}catch{}finally{}if(a=qc(e,t,i,l),a!==null)return Jt(a,e,l),ep(a,t,l),!0}return!1}function Eu(e,t,a,l){if(l={lane:2,revertLane:td(),action:l,hasEagerState:!1,eagerState:null,next:null},Os(e)){if(t)throw Error(s(479))}else t=qc(e,a,l,2),t!==null&&Jt(t,e,2)}function Os(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function Jh(e,t){Zr=Cs=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function ep(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,ct(e,a)}}var Ds={readContext:Dt,use:ks,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useLayoutEffect:ft,useInsertionEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useSyncExternalStore:ft,useId:ft,useHostTransitionStatus:ft,useFormState:ft,useActionState:ft,useOptimistic:ft,useMemoCache:ft,useCacheRefresh:ft},tp={readContext:Dt,use:ks,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:Bh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ms(4194308,4,qh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ms(4194308,4,e,t)},useInsertionEffect:function(e,t){Ms(4,2,e,t)},useMemo:function(e,t){var a=Pt();t=t===void 0?null:t;var l=e();if(dr){Pe(!0);try{e()}finally{Pe(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Pt();if(a!==void 0){var i=a(t);if(dr){Pe(!0);try{a(t)}finally{Pe(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=ES.bind(null,Ae,e),[l.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:function(e){e=vu(e);var t=e.queue,a=Wh.bind(null,Ae,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:bu,useDeferredValue:function(e,t){var a=Pt();return xu(a,e,t)},useTransition:function(){var e=vu(!1);return e=Xh.bind(null,Ae,e.queue,!0,!1),Pt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=Ae,i=Pt();if(Ye){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Je===null)throw Error(s(349));(He&124)!==0||wh(l,t,a)}i.memoizedState=a;var d={value:a,getSnapshot:t};return i.queue=d,Bh(Nh.bind(null,l,d,e),[e]),l.flags|=2048,Wr(9,_s(),Eh.bind(null,l,d,a,t),null),a},useId:function(){var e=Pt(),t=Je.identifierPrefix;if(Ye){var a=Fn,l=Zn;a=(l&~(1<<32-Me(l)-1)).toString(32)+a,t="«"+t+"R"+a,a=As++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=vS++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:wu,useFormState:Oh,useActionState:Oh,useOptimistic:function(e){var t=Pt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Eu.bind(null,Ae,!0,a),a.dispatch=t,[e,t]},useMemoCache:hu,useCacheRefresh:function(){return Pt().memoizedState=wS.bind(null,Ae)}},np={readContext:Dt,use:ks,useCallback:Yh,useContext:Dt,useEffect:Hh,useImperativeHandle:Vh,useInsertionEffect:$h,useLayoutEffect:Ph,useMemo:Gh,useReducer:js,useRef:Uh,useState:function(){return js(ea)},useDebugValue:bu,useDeferredValue:function(e,t){var a=gt();return Ih(a,Qe.memoizedState,e,t)},useTransition:function(){var e=js(ea)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:il(e),t]},useSyncExternalStore:Sh,useId:Zh,useHostTransitionStatus:wu,useFormState:Dh,useActionState:Dh,useOptimistic:function(e,t){var a=gt();return Ch(a,Qe,e,t)},useMemoCache:hu,useCacheRefresh:Fh},NS={readContext:Dt,use:ks,useCallback:Yh,useContext:Dt,useEffect:Hh,useImperativeHandle:Vh,useInsertionEffect:$h,useLayoutEffect:Ph,useMemo:Gh,useReducer:gu,useRef:Uh,useState:function(){return gu(ea)},useDebugValue:bu,useDeferredValue:function(e,t){var a=gt();return Qe===null?xu(a,e,t):Ih(a,Qe.memoizedState,e,t)},useTransition:function(){var e=gu(ea)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:il(e),t]},useSyncExternalStore:Sh,useId:Zh,useHostTransitionStatus:wu,useFormState:Lh,useActionState:Lh,useOptimistic:function(e,t){var a=gt();return Qe!==null?Ch(a,Qe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:hu,useCacheRefresh:Fh},Jr=null,dl=0;function zs(e){var t=dl;return dl+=1,Jr===null&&(Jr=[]),mh(Jr,e,t)}function fl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ls(e,t){throw t.$$typeof===g?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ap(e){var t=e._init;return t(e._payload)}function rp(e){function t(D,O){if(e){var L=D.deletions;L===null?(D.deletions=[O],D.flags|=16):L.push(O)}}function a(D,O){if(!e)return null;for(;O!==null;)t(D,O),O=O.sibling;return null}function l(D){for(var O=new Map;D!==null;)D.key!==null?O.set(D.key,D):O.set(D.index,D),D=D.sibling;return O}function i(D,O){return D=Kn(D,O),D.index=0,D.sibling=null,D}function d(D,O,L){return D.index=L,e?(L=D.alternate,L!==null?(L=L.index,L<O?(D.flags|=67108866,O):L):(D.flags|=67108866,O)):(D.flags|=1048576,O)}function x(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function w(D,O,L,Q){return O===null||O.tag!==6?(O=Yc(L,D.mode,Q),O.return=D,O):(O=i(O,L),O.return=D,O)}function k(D,O,L,Q){var he=L.type;return he===T?X(D,O,L.props.children,Q,L.key):O!==null&&(O.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===P&&ap(he)===O.type)?(O=i(O,L.props),fl(O,L),O.return=D,O):(O=ys(L.type,L.key,L.props,null,D.mode,Q),fl(O,L),O.return=D,O)}function B(D,O,L,Q){return O===null||O.tag!==4||O.stateNode.containerInfo!==L.containerInfo||O.stateNode.implementation!==L.implementation?(O=Gc(L,D.mode,Q),O.return=D,O):(O=i(O,L.children||[]),O.return=D,O)}function X(D,O,L,Q,he){return O===null||O.tag!==7?(O=ar(L,D.mode,Q,he),O.return=D,O):(O=i(O,L),O.return=D,O)}function Z(D,O,L){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Yc(""+O,D.mode,L),O.return=D,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return L=ys(O.type,O.key,O.props,null,D.mode,L),fl(L,O),L.return=D,L;case N:return O=Gc(O,D.mode,L),O.return=D,O;case P:var Q=O._init;return O=Q(O._payload),Z(D,O,L)}if(ae(O)||ue(O))return O=ar(O,D.mode,L,null),O.return=D,O;if(typeof O.then=="function")return Z(D,zs(O),L);if(O.$$typeof===_)return Z(D,ws(D,O),L);Ls(D,O)}return null}function H(D,O,L,Q){var he=O!==null?O.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return he!==null?null:w(D,O,""+L,Q);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case S:return L.key===he?k(D,O,L,Q):null;case N:return L.key===he?B(D,O,L,Q):null;case P:return he=L._init,L=he(L._payload),H(D,O,L,Q)}if(ae(L)||ue(L))return he!==null?null:X(D,O,L,Q,null);if(typeof L.then=="function")return H(D,O,zs(L),Q);if(L.$$typeof===_)return H(D,O,ws(D,L),Q);Ls(D,L)}return null}function $(D,O,L,Q,he){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return D=D.get(L)||null,w(O,D,""+Q,he);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case S:return D=D.get(Q.key===null?L:Q.key)||null,k(O,D,Q,he);case N:return D=D.get(Q.key===null?L:Q.key)||null,B(O,D,Q,he);case P:var Oe=Q._init;return Q=Oe(Q._payload),$(D,O,L,Q,he)}if(ae(Q)||ue(Q))return D=D.get(L)||null,X(O,D,Q,he,null);if(typeof Q.then=="function")return $(D,O,L,zs(Q),he);if(Q.$$typeof===_)return $(D,O,L,ws(O,Q),he);Ls(O,Q)}return null}function Te(D,O,L,Q){for(var he=null,Oe=null,xe=O,Ne=O=0,At=null;xe!==null&&Ne<L.length;Ne++){xe.index>Ne?(At=xe,xe=null):At=xe.sibling;var qe=H(D,xe,L[Ne],Q);if(qe===null){xe===null&&(xe=At);break}e&&xe&&qe.alternate===null&&t(D,xe),O=d(qe,O,Ne),Oe===null?he=qe:Oe.sibling=qe,Oe=qe,xe=At}if(Ne===L.length)return a(D,xe),Ye&&or(D,Ne),he;if(xe===null){for(;Ne<L.length;Ne++)xe=Z(D,L[Ne],Q),xe!==null&&(O=d(xe,O,Ne),Oe===null?he=xe:Oe.sibling=xe,Oe=xe);return Ye&&or(D,Ne),he}for(xe=l(xe);Ne<L.length;Ne++)At=$(xe,D,Ne,L[Ne],Q),At!==null&&(e&&At.alternate!==null&&xe.delete(At.key===null?Ne:At.key),O=d(At,O,Ne),Oe===null?he=At:Oe.sibling=At,Oe=At);return e&&xe.forEach(function(Ua){return t(D,Ua)}),Ye&&or(D,Ne),he}function Ee(D,O,L,Q){if(L==null)throw Error(s(151));for(var he=null,Oe=null,xe=O,Ne=O=0,At=null,qe=L.next();xe!==null&&!qe.done;Ne++,qe=L.next()){xe.index>Ne?(At=xe,xe=null):At=xe.sibling;var Ua=H(D,xe,qe.value,Q);if(Ua===null){xe===null&&(xe=At);break}e&&xe&&Ua.alternate===null&&t(D,xe),O=d(Ua,O,Ne),Oe===null?he=Ua:Oe.sibling=Ua,Oe=Ua,xe=At}if(qe.done)return a(D,xe),Ye&&or(D,Ne),he;if(xe===null){for(;!qe.done;Ne++,qe=L.next())qe=Z(D,qe.value,Q),qe!==null&&(O=d(qe,O,Ne),Oe===null?he=qe:Oe.sibling=qe,Oe=qe);return Ye&&or(D,Ne),he}for(xe=l(xe);!qe.done;Ne++,qe=L.next())qe=$(xe,D,Ne,qe.value,Q),qe!==null&&(e&&qe.alternate!==null&&xe.delete(qe.key===null?Ne:qe.key),O=d(qe,O,Ne),Oe===null?he=qe:Oe.sibling=qe,Oe=qe);return e&&xe.forEach(function(Tw){return t(D,Tw)}),Ye&&or(D,Ne),he}function Ze(D,O,L,Q){if(typeof L=="object"&&L!==null&&L.type===T&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case S:e:{for(var he=L.key;O!==null;){if(O.key===he){if(he=L.type,he===T){if(O.tag===7){a(D,O.sibling),Q=i(O,L.props.children),Q.return=D,D=Q;break e}}else if(O.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===P&&ap(he)===O.type){a(D,O.sibling),Q=i(O,L.props),fl(Q,L),Q.return=D,D=Q;break e}a(D,O);break}else t(D,O);O=O.sibling}L.type===T?(Q=ar(L.props.children,D.mode,Q,L.key),Q.return=D,D=Q):(Q=ys(L.type,L.key,L.props,null,D.mode,Q),fl(Q,L),Q.return=D,D=Q)}return x(D);case N:e:{for(he=L.key;O!==null;){if(O.key===he)if(O.tag===4&&O.stateNode.containerInfo===L.containerInfo&&O.stateNode.implementation===L.implementation){a(D,O.sibling),Q=i(O,L.children||[]),Q.return=D,D=Q;break e}else{a(D,O);break}else t(D,O);O=O.sibling}Q=Gc(L,D.mode,Q),Q.return=D,D=Q}return x(D);case P:return he=L._init,L=he(L._payload),Ze(D,O,L,Q)}if(ae(L))return Te(D,O,L,Q);if(ue(L)){if(he=ue(L),typeof he!="function")throw Error(s(150));return L=he.call(L),Ee(D,O,L,Q)}if(typeof L.then=="function")return Ze(D,O,zs(L),Q);if(L.$$typeof===_)return Ze(D,O,ws(D,L),Q);Ls(D,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,O!==null&&O.tag===6?(a(D,O.sibling),Q=i(O,L),Q.return=D,D=Q):(a(D,O),Q=Yc(L,D.mode,Q),Q.return=D,D=Q),x(D)):a(D,O)}return function(D,O,L,Q){try{dl=0;var he=Ze(D,O,L,Q);return Jr=null,he}catch(xe){if(xe===nl||xe===Ns)throw xe;var Oe=Qt(29,xe,null,D.mode);return Oe.lanes=Q,Oe.return=D,Oe}finally{}}}var eo=rp(!0),op=rp(!1),dn=V(null),kn=null;function wa(e){var t=e.alternate;I(St,St.current&1),I(dn,e),kn===null&&(t===null||Kr.current!==null||t.memoizedState!==null)&&(kn=e)}function lp(e){if(e.tag===22){if(I(St,St.current),I(dn,e),kn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(kn=e)}}else Ea()}function Ea(){I(St,St.current),I(dn,dn.current)}function ta(e){F(dn),kn===e&&(kn=null),F(St)}var St=V(0);function Us(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||md(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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}function Nu(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Tu={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Wt(),i=ba(l);i.payload=t,a!=null&&(i.callback=a),t=xa(e,i,l),t!==null&&(Jt(t,e,l),rl(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Wt(),i=ba(l);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=xa(e,i,l),t!==null&&(Jt(t,e,l),rl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Wt(),l=ba(a);l.tag=2,t!=null&&(l.callback=t),t=xa(e,l,a),t!==null&&(Jt(t,e,a),rl(t,e,a))}};function sp(e,t,a,l,i,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,x):t.prototype&&t.prototype.isPureReactComponent?!Qo(a,l)||!Qo(i,d):!0}function ip(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Tu.enqueueReplaceState(t,t.state,null)}function fr(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}var Bs=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)};function cp(e){Bs(e)}function up(e){console.error(e)}function dp(e){Bs(e)}function Hs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function fp(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Ru(e,t,a){return a=ba(a),a.tag=3,a.payload={element:null},a.callback=function(){Hs(e,t)},a}function mp(e){return e=ba(e),e.tag=3,e}function hp(e,t,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var d=l.value;e.payload=function(){return i(d)},e.callback=function(){fp(t,a,l)}}var x=a.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){fp(t,a,l),typeof i!="function"&&(ka===null?ka=new Set([this]):ka.add(this));var w=l.stack;this.componentDidCatch(l.value,{componentStack:w!==null?w:""})})}function TS(e,t,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Jo(t,a,i,!0),a=dn.current,a!==null){switch(a.tag){case 13:return kn===null?Zu():a.alternate===null&&st===0&&(st=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===tu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Wu(e,l,i)),!1;case 22:return a.flags|=65536,l===tu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Wu(e,l,i)),!1}throw Error(s(435,a.tag))}return Wu(e,l,i),Zu(),!1}if(Ye)return t=dn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==Qc&&(e=Error(s(422),{cause:l}),Wo(ln(e,a)))):(l!==Qc&&(t=Error(s(423),{cause:l}),Wo(ln(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=ln(l,a),i=Ru(e.stateNode,l,i),ru(e,i),st!==4&&(st=2)),!1;var d=Error(s(520),{cause:l});if(d=ln(d,a),bl===null?bl=[d]:bl.push(d),st!==4&&(st=2),t===null)return!0;l=ln(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Ru(a.stateNode,l,e),ru(a,e),!1;case 1:if(t=a.type,d=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ka===null||!ka.has(d))))return a.flags|=65536,i&=-i,a.lanes|=i,i=mp(i),hp(i,e,a,l),ru(a,i),!1}a=a.return}while(a!==null);return!1}var pp=Error(s(461)),Rt=!1;function _t(e,t,a,l){t.child=e===null?op(t,null,a,l):eo(t,e.child,a,l)}function gp(e,t,a,l,i){a=a.render;var d=t.ref;if("ref"in l){var x={};for(var w in l)w!=="ref"&&(x[w]=l[w])}else x=l;return cr(t),l=cu(e,t,a,x,d,i),w=uu(),e!==null&&!Rt?(du(e,t,i),na(e,t,i)):(Ye&&w&&Ic(t),t.flags|=1,_t(e,t,l,i),t.child)}function vp(e,t,a,l,i){if(e===null){var d=a.type;return typeof d=="function"&&!Vc(d)&&d.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=d,yp(e,t,d,l,i)):(e=ys(a.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Du(e,i)){var x=d.memoizedProps;if(a=a.compare,a=a!==null?a:Qo,a(x,l)&&e.ref===t.ref)return na(e,t,i)}return t.flags|=1,e=Kn(d,l),e.ref=t.ref,e.return=t,t.child=e}function yp(e,t,a,l,i){if(e!==null){var d=e.memoizedProps;if(Qo(d,l)&&e.ref===t.ref)if(Rt=!1,t.pendingProps=l=d,Du(e,i))(e.flags&131072)!==0&&(Rt=!0);else return t.lanes=e.lanes,na(e,t,i)}return Cu(e,t,a,l,i)}function bp(e,t,a){var l=t.pendingProps,i=l.children,d=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=d!==null?d.baseLanes|a:a,e!==null){for(i=t.child=e.child,d=0;i!==null;)d=d|i.lanes|i.childLanes,i=i.sibling;t.childLanes=d&~l}else t.childLanes=0,t.child=null;return xp(e,t,l,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Es(t,d!==null?d.cachePool:null),d!==null?yh(t,d):lu(),lp(t);else return t.lanes=t.childLanes=536870912,xp(e,t,d!==null?d.baseLanes|a:a,a)}else d!==null?(Es(t,d.cachePool),yh(t,d),Ea(),t.memoizedState=null):(e!==null&&Es(t,null),lu(),Ea());return _t(e,t,i,a),t.child}function xp(e,t,a,l){var i=eu();return i=i===null?null:{parent:xt._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&Es(t,null),lu(),lp(t),e!==null&&Jo(e,t,l,!0),null}function $s(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(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Cu(e,t,a,l,i){return cr(t),a=cu(e,t,a,l,void 0,i),l=uu(),e!==null&&!Rt?(du(e,t,i),na(e,t,i)):(Ye&&l&&Ic(t),t.flags|=1,_t(e,t,a,i),t.child)}function Sp(e,t,a,l,i,d){return cr(t),t.updateQueue=null,a=xh(t,l,a,i),bh(e),l=uu(),e!==null&&!Rt?(du(e,t,d),na(e,t,d)):(Ye&&l&&Ic(t),t.flags|=1,_t(e,t,a,d),t.child)}function wp(e,t,a,l,i){if(cr(t),t.stateNode===null){var d=Yr,x=a.contextType;typeof x=="object"&&x!==null&&(d=Dt(x)),d=new a(l,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Tu,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=l,d.state=t.memoizedState,d.refs={},nu(t),x=a.contextType,d.context=typeof x=="object"&&x!==null?Dt(x):Yr,d.state=t.memoizedState,x=a.getDerivedStateFromProps,typeof x=="function"&&(Nu(t,a,x,l),d.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(x=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),x!==d.state&&Tu.enqueueReplaceState(d,d.state,null),ll(t,l,d,i),ol(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){d=t.stateNode;var w=t.memoizedProps,k=fr(a,w);d.props=k;var B=d.context,X=a.contextType;x=Yr,typeof X=="object"&&X!==null&&(x=Dt(X));var Z=a.getDerivedStateFromProps;X=typeof Z=="function"||typeof d.getSnapshotBeforeUpdate=="function",w=t.pendingProps!==w,X||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(w||B!==x)&&ip(t,d,l,x),ya=!1;var H=t.memoizedState;d.state=H,ll(t,l,d,i),ol(),B=t.memoizedState,w||H!==B||ya?(typeof Z=="function"&&(Nu(t,a,Z,l),B=t.memoizedState),(k=ya||sp(t,a,k,l,H,B,x))?(X||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=B),d.props=l,d.state=B,d.context=x,l=k):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{d=t.stateNode,au(e,t),x=t.memoizedProps,X=fr(a,x),d.props=X,Z=t.pendingProps,H=d.context,B=a.contextType,k=Yr,typeof B=="object"&&B!==null&&(k=Dt(B)),w=a.getDerivedStateFromProps,(B=typeof w=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x!==Z||H!==k)&&ip(t,d,l,k),ya=!1,H=t.memoizedState,d.state=H,ll(t,l,d,i),ol();var $=t.memoizedState;x!==Z||H!==$||ya||e!==null&&e.dependencies!==null&&Ss(e.dependencies)?(typeof w=="function"&&(Nu(t,a,w,l),$=t.memoizedState),(X=ya||sp(t,a,X,l,H,$,k)||e!==null&&e.dependencies!==null&&Ss(e.dependencies))?(B||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,$,k),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,$,k)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=$),d.props=l,d.state=$,d.context=k,l=X):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),l=!1)}return d=l,$s(e,t),l=(t.flags&128)!==0,d||l?(d=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&l?(t.child=eo(t,e.child,null,i),t.child=eo(t,null,a,i)):_t(e,t,a,i),t.memoizedState=d.state,e=t.child):e=na(e,t,i),e}function Ep(e,t,a,l){return Fo(),t.flags|=256,_t(e,t,a,l),t.child}var Au={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ku(e){return{baseLanes:e,cachePool:uh()}}function ju(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=fn),e}function Np(e,t,a){var l=t.pendingProps,i=!1,d=(t.flags&128)!==0,x;if((x=d)||(x=e!==null&&e.memoizedState===null?!1:(St.current&2)!==0),x&&(i=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ye){if(i?wa(t):Ea(),Ye){var w=lt,k;if(k=w){e:{for(k=w,w=An;k.nodeType!==8;){if(!w){w=null;break e}if(k=bn(k.nextSibling),k===null){w=null;break e}}w=k}w!==null?(t.memoizedState={dehydrated:w,treeContext:rr!==null?{id:Zn,overflow:Fn}:null,retryLane:536870912,hydrationErrors:null},k=Qt(18,null,null,0),k.stateNode=w,k.return=t,t.child=k,Ut=t,lt=null,k=!0):k=!1}k||sr(t)}if(w=t.memoizedState,w!==null&&(w=w.dehydrated,w!==null))return md(w)?t.lanes=32:t.lanes=536870912,null;ta(t)}return w=l.children,l=l.fallback,i?(Ea(),i=t.mode,w=Ps({mode:"hidden",children:w},i),l=ar(l,i,a,null),w.return=t,l.return=t,w.sibling=l,t.child=w,i=t.child,i.memoizedState=ku(a),i.childLanes=ju(e,x,a),t.memoizedState=Au,l):(wa(t),_u(t,w))}if(k=e.memoizedState,k!==null&&(w=k.dehydrated,w!==null)){if(d)t.flags&256?(wa(t),t.flags&=-257,t=Mu(e,t,a)):t.memoizedState!==null?(Ea(),t.child=e.child,t.flags|=128,t=null):(Ea(),i=l.fallback,w=t.mode,l=Ps({mode:"visible",children:l.children},w),i=ar(i,w,a,null),i.flags|=2,l.return=t,i.return=t,l.sibling=i,t.child=l,eo(t,e.child,null,a),l=t.child,l.memoizedState=ku(a),l.childLanes=ju(e,x,a),t.memoizedState=Au,t=i);else if(wa(t),md(w)){if(x=w.nextSibling&&w.nextSibling.dataset,x)var B=x.dgst;x=B,l=Error(s(419)),l.stack="",l.digest=x,Wo({value:l,source:null,stack:null}),t=Mu(e,t,a)}else if(Rt||Jo(e,t,a,!1),x=(a&e.childLanes)!==0,Rt||x){if(x=Je,x!==null&&(l=a&-a,l=(l&42)!==0?1:ht(l),l=(l&(x.suspendedLanes|a))!==0?0:l,l!==0&&l!==k.retryLane))throw k.retryLane=l,Vr(e,l),Jt(x,e,l),pp;w.data==="$?"||Zu(),t=Mu(e,t,a)}else w.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=k.treeContext,lt=bn(w.nextSibling),Ut=t,Ye=!0,lr=null,An=!1,e!==null&&(cn[un++]=Zn,cn[un++]=Fn,cn[un++]=rr,Zn=e.id,Fn=e.overflow,rr=t),t=_u(t,l.children),t.flags|=4096);return t}return i?(Ea(),i=l.fallback,w=t.mode,k=e.child,B=k.sibling,l=Kn(k,{mode:"hidden",children:l.children}),l.subtreeFlags=k.subtreeFlags&65011712,B!==null?i=Kn(B,i):(i=ar(i,w,a,null),i.flags|=2),i.return=t,l.return=t,l.sibling=i,t.child=l,l=i,i=t.child,w=e.child.memoizedState,w===null?w=ku(a):(k=w.cachePool,k!==null?(B=xt._currentValue,k=k.parent!==B?{parent:B,pool:B}:k):k=uh(),w={baseLanes:w.baseLanes|a,cachePool:k}),i.memoizedState=w,i.childLanes=ju(e,x,a),t.memoizedState=Au,l):(wa(t),a=e.child,e=a.sibling,a=Kn(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=a,t.memoizedState=null,a)}function _u(e,t){return t=Ps({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ps(e,t){return e=Qt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Mu(e,t,a){return eo(t,e.child,null,a),e=_u(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Tp(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Zc(e.return,t,a)}function Ou(e,t,a,l,i){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=a,d.tailMode=i)}function Rp(e,t,a){var l=t.pendingProps,i=l.revealOrder,d=l.tail;if(_t(e,t,l.children,a),l=St.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Tp(e,a,t);else if(e.tag===19)Tp(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}l&=1}switch(I(St,l),i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&Us(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),Ou(t,!1,i,a,d);break;case"backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Us(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}Ou(t,!0,a,null,d);break;case"together":Ou(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function na(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Aa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Jo(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=Kn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Kn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Du(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ss(e)))}function RS(e,t,a){switch(t.tag){case 3:le(t,t.stateNode.containerInfo),va(t,xt,e.memoizedState.cache),Fo();break;case 27:case 5:ve(t);break;case 4:le(t,t.stateNode.containerInfo);break;case 10:va(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(wa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Np(e,t,a):(wa(t),e=na(e,t,a),e!==null?e.sibling:null);wa(t);break;case 19:var i=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Jo(e,t,a,!1),l=(a&t.childLanes)!==0),i){if(l)return Rp(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),I(St,St.current),l)break;return null;case 22:case 23:return t.lanes=0,bp(e,t,a);case 24:va(t,xt,e.memoizedState.cache)}return na(e,t,a)}function Cp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Rt=!0;else{if(!Du(e,a)&&(t.flags&128)===0)return Rt=!1,RS(e,t,a);Rt=(e.flags&131072)!==0}else Rt=!1,Ye&&(t.flags&1048576)!==0&&ah(t,xs,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,i=l._init;if(l=i(l._payload),t.type=l,typeof l=="function")Vc(l)?(e=fr(l,e),t.tag=1,t=wp(null,t,l,e,a)):(t.tag=0,t=Cu(null,t,l,e,a));else{if(l!=null){if(i=l.$$typeof,i===U){t.tag=11,t=gp(null,t,l,e,a);break e}else if(i===G){t.tag=14,t=vp(null,t,l,e,a);break e}}throw t=me(l)||l,Error(s(306,t,""))}}return t;case 0:return Cu(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,i=fr(l,t.pendingProps),wp(e,t,l,i,a);case 3:e:{if(le(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var d=t.memoizedState;i=d.element,au(e,t),ll(t,l,null,a);var x=t.memoizedState;if(l=x.cache,va(t,xt,l),l!==d.cache&&Fc(t,[xt],a,!0),ol(),l=x.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Ep(e,t,l,a);break e}else if(l!==i){i=ln(Error(s(424)),t),Wo(i),t=Ep(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(lt=bn(e.firstChild),Ut=t,Ye=!0,lr=null,An=!0,a=op(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Fo(),l===i){t=na(e,t,a);break e}_t(e,t,l,a)}t=t.child}return t;case 26:return $s(e,t),e===null?(a=_g(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ye||(a=t.type,e=t.pendingProps,l=ti(re.current).createElement(a),l[dt]=t,l[We]=e,Ot(l,a,e),Tt(l),t.stateNode=l):t.memoizedState=_g(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ve(t),e===null&&Ye&&(l=t.stateNode=Ag(t.type,t.pendingProps,re.current),Ut=t,An=!0,i=lt,Ma(t.type)?(hd=i,lt=bn(l.firstChild)):lt=i),_t(e,t,t.pendingProps.children,a),$s(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ye&&((i=l=lt)&&(l=ew(l,t.type,t.pendingProps,An),l!==null?(t.stateNode=l,Ut=t,lt=bn(l.firstChild),An=!1,i=!0):i=!1),i||sr(t)),ve(t),i=t.type,d=t.pendingProps,x=e!==null?e.memoizedProps:null,l=d.children,ud(i,d)?l=null:x!==null&&ud(i,x)&&(t.flags|=32),t.memoizedState!==null&&(i=cu(e,t,yS,null,null,a),Al._currentValue=i),$s(e,t),_t(e,t,l,a),t.child;case 6:return e===null&&Ye&&((e=a=lt)&&(a=tw(a,t.pendingProps,An),a!==null?(t.stateNode=a,Ut=t,lt=null,e=!0):e=!1),e||sr(t)),null;case 13:return Np(e,t,a);case 4:return le(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=eo(t,null,l,a):_t(e,t,l,a),t.child;case 11:return gp(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 l=t.pendingProps,va(t,t.type,l.value),_t(e,t,l.children,a),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,cr(t),i=Dt(i),l=l(i),t.flags|=1,_t(e,t,l,a),t.child;case 14:return vp(e,t,t.type,t.pendingProps,a);case 15:return yp(e,t,t.type,t.pendingProps,a);case 19:return Rp(e,t,a);case 31:return l=t.pendingProps,a=t.mode,l={mode:l.mode,children:l.children},e===null?(a=Ps(l,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=Kn(e.child,l),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return bp(e,t,a);case 24:return cr(t),l=Dt(xt),e===null?(i=eu(),i===null&&(i=Je,d=Wc(),i.pooledCache=d,d.refCount++,d!==null&&(i.pooledCacheLanes|=a),i=d),t.memoizedState={parent:l,cache:i},nu(t),va(t,xt,i)):((e.lanes&a)!==0&&(au(e,t),ll(t,null,null,a),ol()),i=e.memoizedState,d=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),va(t,xt,l)):(l=d.cache,va(t,xt,l),l!==i.cache&&Fc(t,[xt],a,!0))),_t(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function aa(e){e.flags|=4}function Ap(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Lg(t)){if(t=dn.current,t!==null&&((He&4194048)===He?kn!==null:(He&62914560)!==He&&(He&536870912)===0||t!==kn))throw al=tu,dh;e.flags|=8192}}function qs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ns():536870912,e.lanes|=t,ro|=t)}function ml(e,t){if(!Ye)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function rt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function CS(e,t,a){var l=t.pendingProps;switch(Xc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(t),null;case 1:return rt(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Jn(xt),J(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Zo(t)?aa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,lh())),rt(t),null;case 26:return a=t.memoizedState,e===null?(aa(t),a!==null?(rt(t),Ap(t,a)):(rt(t),t.flags&=-16777217)):a?a!==e.memoizedState?(aa(t),rt(t),Ap(t,a)):(rt(t),t.flags&=-16777217):(e.memoizedProps!==l&&aa(t),rt(t),t.flags&=-16777217),null;case 27:ye(t),a=re.current;var i=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&aa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return rt(t),null}e=W.current,Zo(t)?rh(t):(e=Ag(i,l,a),t.stateNode=e,aa(t))}return rt(t),null;case 5:if(ye(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&aa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return rt(t),null}if(e=W.current,Zo(t))rh(t);else{switch(i=ti(re.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?i.createElement("select",{is:l.is}):i.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?i.createElement(a,{is:l.is}):i.createElement(a)}}e[dt]=t,e[We]=l;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(Ot(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&aa(t)}}return rt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&aa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=re.current,Zo(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,i=Ut,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[dt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Sg(e.nodeValue,a)),e||sr(t)}else e=ti(e).createTextNode(l),e[dt]=t,t.stateNode=e}return rt(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Zo(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));i[dt]=t}else Fo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;rt(t),i=!1}else i=lh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(ta(t),t):(ta(t),null)}if(ta(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool);var d=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==i&&(l.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),qs(t,t.updateQueue),rt(t),null;case 4:return J(),e===null&&od(t.stateNode.containerInfo),rt(t),null;case 10:return Jn(t.type),rt(t),null;case 19:if(F(St),i=t.memoizedState,i===null)return rt(t),null;if(l=(t.flags&128)!==0,d=i.rendering,d===null)if(l)ml(i,!1);else{if(st!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Us(e),d!==null){for(t.flags|=128,ml(i,!1),e=d.updateQueue,t.updateQueue=e,qs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)nh(a,e),a=a.sibling;return I(St,St.current&1|2),t.child}e=e.sibling}i.tail!==null&&_e()>Gs&&(t.flags|=128,l=!0,ml(i,!1),t.lanes=4194304)}else{if(!l)if(e=Us(d),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,qs(t,e),ml(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Ye)return rt(t),null}else 2*_e()-i.renderingStartTime>Gs&&a!==536870912&&(t.flags|=128,l=!0,ml(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(e=i.last,e!==null?e.sibling=d:t.child=d,i.last=d)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_e(),t.sibling=null,e=St.current,I(St,l?e&1|2:e&1),t):(rt(t),null);case 22:case 23:return ta(t),su(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),a=t.updateQueue,a!==null&&qs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&F(ur),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Jn(xt),rt(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function AS(e,t){switch(Xc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jn(xt),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 13:if(ta(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Fo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(St),null;case 4:return J(),null;case 10:return Jn(t.type),null;case 22:case 23:return ta(t),su(),e!==null&&F(ur),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Jn(xt),null;case 25:return null;default:return null}}function kp(e,t){switch(Xc(t),t.tag){case 3:Jn(xt),J();break;case 26:case 27:case 5:ye(t);break;case 4:J();break;case 13:ta(t);break;case 19:F(St);break;case 10:Jn(t.type);break;case 22:case 23:ta(t),su(),e!==null&&F(ur);break;case 24:Jn(xt)}}function hl(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){l=void 0;var d=a.create,x=a.inst;l=d(),x.destroy=l}a=a.next}while(a!==i)}}catch(w){Fe(t,t.return,w)}}function Na(e,t,a){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var d=i.next;l=d;do{if((l.tag&e)===e){var x=l.inst,w=x.destroy;if(w!==void 0){x.destroy=void 0,i=t;var k=a,B=w;try{B()}catch(X){Fe(i,k,X)}}}l=l.next}while(l!==d)}}catch(X){Fe(t,t.return,X)}}function jp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{vh(t,a)}catch(l){Fe(e,e.return,l)}}}function _p(e,t,a){a.props=fr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Fe(e,t,l)}}function pl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(i){Fe(e,t,i)}}function jn(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Fe(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Fe(e,t,i)}else a.current=null}function Mp(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(i){Fe(e,e.return,i)}}function zu(e,t,a){try{var l=e.stateNode;KS(l,e.type,a,t),l[We]=t}catch(i){Fe(e,e.return,i)}}function Op(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ma(e.type)||e.tag===4}function Lu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Op(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ma(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Uu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ei));else if(l!==4&&(l===27&&Ma(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Uu(e,t,a),e=e.sibling;e!==null;)Uu(e,t,a),e=e.sibling}function Vs(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ma(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Vs(e,t,a),e=e.sibling;e!==null;)Vs(e,t,a),e=e.sibling}function Dp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ot(t,l,a),t[dt]=e,t[We]=a}catch(d){Fe(e,e.return,d)}}var ra=!1,mt=!1,Bu=!1,zp=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function kS(e,t){if(e=e.containerInfo,id=si,e=Im(e),Lc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var x=0,w=-1,k=-1,B=0,X=0,Z=e,H=null;t:for(;;){for(var $;Z!==a||i!==0&&Z.nodeType!==3||(w=x+i),Z!==d||l!==0&&Z.nodeType!==3||(k=x+l),Z.nodeType===3&&(x+=Z.nodeValue.length),($=Z.firstChild)!==null;)H=Z,Z=$;for(;;){if(Z===e)break t;if(H===a&&++B===i&&(w=x),H===d&&++X===l&&(k=x),($=Z.nextSibling)!==null)break;Z=H,H=Z.parentNode}Z=$}a=w===-1||k===-1?null:{start:w,end:k}}else a=null}a=a||{start:0,end:0}}else a=null;for(cd={focusedElem:e,selectionRange:a},si=!1,Ct=t;Ct!==null;)if(t=Ct,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Ct=e;else for(;Ct!==null;){switch(t=Ct,d=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,a=t,i=d.memoizedProps,d=d.memoizedState,l=a.stateNode;try{var Te=fr(a.type,i,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(Te,d),l.__reactInternalSnapshotBeforeUpdate=e}catch(Ee){Fe(a,a.return,Ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)fd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":fd(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Ct=e;break}Ct=t.return}}function Lp(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Ta(e,a),l&4&&hl(5,a);break;case 1:if(Ta(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(x){Fe(a,a.return,x)}else{var i=fr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Fe(a,a.return,x)}}l&64&&jp(a),l&512&&pl(a,a.return);break;case 3:if(Ta(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{vh(e,t)}catch(x){Fe(a,a.return,x)}}break;case 27:t===null&&l&4&&Dp(a);case 26:case 5:Ta(e,a),t===null&&l&4&&Mp(a),l&512&&pl(a,a.return);break;case 12:Ta(e,a);break;case 13:Ta(e,a),l&4&&Hp(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=BS.bind(null,a),nw(e,a))));break;case 22:if(l=a.memoizedState!==null||ra,!l){t=t!==null&&t.memoizedState!==null||mt,i=ra;var d=mt;ra=l,(mt=t)&&!d?Ra(e,a,(a.subtreeFlags&8772)!==0):Ta(e,a),ra=i,mt=d}break;case 30:break;default:Ta(e,a)}}function Up(e){var t=e.alternate;t!==null&&(e.alternate=null,Up(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vc(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 nt=null,qt=!1;function oa(e,t,a){for(a=a.child;a!==null;)Bp(e,t,a),a=a.sibling}function Bp(e,t,a){if(be&&typeof be.onCommitFiberUnmount=="function")try{be.onCommitFiberUnmount(It,a)}catch{}switch(a.tag){case 26:mt||jn(a,t),oa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:mt||jn(a,t);var l=nt,i=qt;Ma(a.type)&&(nt=a.stateNode,qt=!1),oa(e,t,a),Nl(a.stateNode),nt=l,qt=i;break;case 5:mt||jn(a,t);case 6:if(l=nt,i=qt,nt=null,oa(e,t,a),nt=l,qt=i,nt!==null)if(qt)try{(nt.nodeType===9?nt.body:nt.nodeName==="HTML"?nt.ownerDocument.body:nt).removeChild(a.stateNode)}catch(d){Fe(a,t,d)}else try{nt.removeChild(a.stateNode)}catch(d){Fe(a,t,d)}break;case 18:nt!==null&&(qt?(e=nt,Rg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ml(e)):Rg(nt,a.stateNode));break;case 4:l=nt,i=qt,nt=a.stateNode.containerInfo,qt=!0,oa(e,t,a),nt=l,qt=i;break;case 0:case 11:case 14:case 15:mt||Na(2,a,t),mt||Na(4,a,t),oa(e,t,a);break;case 1:mt||(jn(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&_p(a,t,l)),oa(e,t,a);break;case 21:oa(e,t,a);break;case 22:mt=(l=mt)||a.memoizedState!==null,oa(e,t,a),mt=l;break;default:oa(e,t,a)}}function Hp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ml(e)}catch(a){Fe(t,t.return,a)}}function jS(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new zp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new zp),t;default:throw Error(s(435,e.tag))}}function Hu(e,t){var a=jS(e);t.forEach(function(l){var i=HS.bind(null,e,l);a.has(l)||(a.add(l),l.then(i,i))})}function Kt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],d=e,x=t,w=x;e:for(;w!==null;){switch(w.tag){case 27:if(Ma(w.type)){nt=w.stateNode,qt=!1;break e}break;case 5:nt=w.stateNode,qt=!1;break e;case 3:case 4:nt=w.stateNode.containerInfo,qt=!0;break e}w=w.return}if(nt===null)throw Error(s(160));Bp(d,x,i),nt=null,qt=!1,d=i.alternate,d!==null&&(d.return=null),i.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)$p(t,e),t=t.sibling}var yn=null;function $p(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Kt(t,e),Zt(e),l&4&&(Na(3,e,e.return),hl(3,e),Na(5,e,e.return));break;case 1:Kt(t,e),Zt(e),l&512&&(mt||a===null||jn(a,a.return)),l&64&&ra&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var i=yn;if(Kt(t,e),Zt(e),l&512&&(mt||a===null||jn(a,a.return)),l&4){var d=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":d=i.getElementsByTagName("title")[0],(!d||d[Ho]||d[dt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=i.createElement(l),i.head.insertBefore(d,i.querySelector("head > title"))),Ot(d,l,a),d[dt]=e,Tt(d),l=d;break e;case"link":var x=Dg("link","href",i).get(l+(a.href||""));if(x){for(var w=0;w<x.length;w++)if(d=x[w],d.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&d.getAttribute("rel")===(a.rel==null?null:a.rel)&&d.getAttribute("title")===(a.title==null?null:a.title)&&d.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){x.splice(w,1);break t}}d=i.createElement(l),Ot(d,l,a),i.head.appendChild(d);break;case"meta":if(x=Dg("meta","content",i).get(l+(a.content||""))){for(w=0;w<x.length;w++)if(d=x[w],d.getAttribute("content")===(a.content==null?null:""+a.content)&&d.getAttribute("name")===(a.name==null?null:a.name)&&d.getAttribute("property")===(a.property==null?null:a.property)&&d.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&d.getAttribute("charset")===(a.charSet==null?null:a.charSet)){x.splice(w,1);break t}}d=i.createElement(l),Ot(d,l,a),i.head.appendChild(d);break;default:throw Error(s(468,l))}d[dt]=e,Tt(d),l=d}e.stateNode=l}else zg(i,e.type,e.stateNode);else e.stateNode=Og(i,l,e.memoizedProps);else d!==l?(d===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):d.count--,l===null?zg(i,e.type,e.stateNode):Og(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&zu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Kt(t,e),Zt(e),l&512&&(mt||a===null||jn(a,a.return)),a!==null&&l&4&&zu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Kt(t,e),Zt(e),l&512&&(mt||a===null||jn(a,a.return)),e.flags&32){i=e.stateNode;try{Lr(i,"")}catch($){Fe(e,e.return,$)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,zu(e,i,a!==null?a.memoizedProps:i)),l&1024&&(Bu=!0);break;case 6:if(Kt(t,e),Zt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch($){Fe(e,e.return,$)}}break;case 3:if(ri=null,i=yn,yn=ni(t.containerInfo),Kt(t,e),yn=i,Zt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ml(t.containerInfo)}catch($){Fe(e,e.return,$)}Bu&&(Bu=!1,Pp(e));break;case 4:l=yn,yn=ni(e.stateNode.containerInfo),Kt(t,e),Zt(e),yn=l;break;case 12:Kt(t,e),Zt(e);break;case 13:Kt(t,e),Zt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Gu=_e()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Hu(e,l)));break;case 22:i=e.memoizedState!==null;var k=a!==null&&a.memoizedState!==null,B=ra,X=mt;if(ra=B||i,mt=X||k,Kt(t,e),mt=X,ra=B,Zt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||k||ra||mt||mr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){k=a=t;try{if(d=k.stateNode,i)x=d.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{w=k.stateNode;var Z=k.memoizedProps.style,H=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;w.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch($){Fe(k,k.return,$)}}}else if(t.tag===6){if(a===null){k=t;try{k.stateNode.nodeValue=i?"":k.memoizedProps}catch($){Fe(k,k.return,$)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Hu(e,a))));break;case 19:Kt(t,e),Zt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Hu(e,l)));break;case 30:break;case 21:break;default:Kt(t,e),Zt(e)}}function Zt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Op(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var i=a.stateNode,d=Lu(e);Vs(e,d,i);break;case 5:var x=a.stateNode;a.flags&32&&(Lr(x,""),a.flags&=-33);var w=Lu(e);Vs(e,w,x);break;case 3:case 4:var k=a.stateNode.containerInfo,B=Lu(e);Uu(e,B,k);break;default:throw Error(s(161))}}catch(X){Fe(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Pp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ta(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Lp(e,t.alternate,t),t=t.sibling}function mr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Na(4,t,t.return),mr(t);break;case 1:jn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&_p(t,t.return,a),mr(t);break;case 27:Nl(t.stateNode);case 26:case 5:jn(t,t.return),mr(t);break;case 22:t.memoizedState===null&&mr(t);break;case 30:mr(t);break;default:mr(t)}e=e.sibling}}function Ra(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,d=t,x=d.flags;switch(d.tag){case 0:case 11:case 15:Ra(i,d,a),hl(4,d);break;case 1:if(Ra(i,d,a),l=d,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(B){Fe(l,l.return,B)}if(l=d,i=l.updateQueue,i!==null){var w=l.stateNode;try{var k=i.shared.hiddenCallbacks;if(k!==null)for(i.shared.hiddenCallbacks=null,i=0;i<k.length;i++)gh(k[i],w)}catch(B){Fe(l,l.return,B)}}a&&x&64&&jp(d),pl(d,d.return);break;case 27:Dp(d);case 26:case 5:Ra(i,d,a),a&&l===null&&x&4&&Mp(d),pl(d,d.return);break;case 12:Ra(i,d,a);break;case 13:Ra(i,d,a),a&&x&4&&Hp(i,d);break;case 22:d.memoizedState===null&&Ra(i,d,a),pl(d,d.return);break;case 30:break;default:Ra(i,d,a)}t=t.sibling}}function $u(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&&el(a))}function Pu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&el(e))}function _n(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qp(e,t,a,l),t=t.sibling}function qp(e,t,a,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:_n(e,t,a,l),i&2048&&hl(9,t);break;case 1:_n(e,t,a,l);break;case 3:_n(e,t,a,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&el(e)));break;case 12:if(i&2048){_n(e,t,a,l),e=t.stateNode;try{var d=t.memoizedProps,x=d.id,w=d.onPostCommit;typeof w=="function"&&w(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(k){Fe(t,t.return,k)}}else _n(e,t,a,l);break;case 13:_n(e,t,a,l);break;case 23:break;case 22:d=t.stateNode,x=t.alternate,t.memoizedState!==null?d._visibility&2?_n(e,t,a,l):gl(e,t):d._visibility&2?_n(e,t,a,l):(d._visibility|=2,to(e,t,a,l,(t.subtreeFlags&10256)!==0)),i&2048&&$u(x,t);break;case 24:_n(e,t,a,l),i&2048&&Pu(t.alternate,t);break;default:_n(e,t,a,l)}}function to(e,t,a,l,i){for(i=i&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var d=e,x=t,w=a,k=l,B=x.flags;switch(x.tag){case 0:case 11:case 15:to(d,x,w,k,i),hl(8,x);break;case 23:break;case 22:var X=x.stateNode;x.memoizedState!==null?X._visibility&2?to(d,x,w,k,i):gl(d,x):(X._visibility|=2,to(d,x,w,k,i)),i&&B&2048&&$u(x.alternate,x);break;case 24:to(d,x,w,k,i),i&&B&2048&&Pu(x.alternate,x);break;default:to(d,x,w,k,i)}t=t.sibling}}function gl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,i=l.flags;switch(l.tag){case 22:gl(a,l),i&2048&&$u(l.alternate,l);break;case 24:gl(a,l),i&2048&&Pu(l.alternate,l);break;default:gl(a,l)}t=t.sibling}}var vl=8192;function no(e){if(e.subtreeFlags&vl)for(e=e.child;e!==null;)Vp(e),e=e.sibling}function Vp(e){switch(e.tag){case 26:no(e),e.flags&vl&&e.memoizedState!==null&&pw(yn,e.memoizedState,e.memoizedProps);break;case 5:no(e);break;case 3:case 4:var t=yn;yn=ni(e.stateNode.containerInfo),no(e),yn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=vl,vl=16777216,no(e),vl=t):no(e));break;default:no(e)}}function Yp(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 yl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ct=l,Ip(l,e)}Yp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Gp(e),e=e.sibling}function Gp(e){switch(e.tag){case 0:case 11:case 15:yl(e),e.flags&2048&&Na(9,e,e.return);break;case 3:yl(e);break;case 12:yl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ys(e)):yl(e);break;default:yl(e)}}function Ys(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ct=l,Ip(l,e)}Yp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Na(8,t,t.return),Ys(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ys(t));break;default:Ys(t)}e=e.sibling}}function Ip(e,t){for(;Ct!==null;){var a=Ct;switch(a.tag){case 0:case 11:case 15:Na(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:el(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Ct=l;else e:for(a=e;Ct!==null;){l=Ct;var i=l.sibling,d=l.return;if(Up(l),l===a){Ct=null;break e}if(i!==null){i.return=d,Ct=i;break e}Ct=d}}}var _S={getCacheForType:function(e){var t=Dt(xt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},MS=typeof WeakMap=="function"?WeakMap:Map,Ie=0,Je=null,De=null,He=0,Xe=0,Ft=null,Ca=!1,ao=!1,qu=!1,la=0,st=0,Aa=0,hr=0,Vu=0,fn=0,ro=0,bl=null,Vt=null,Yu=!1,Gu=0,Gs=1/0,Is=null,ka=null,Mt=0,ja=null,oo=null,lo=0,Iu=0,Xu=null,Xp=null,xl=0,Qu=null;function Wt(){if((Ie&2)!==0&&He!==0)return He&-He;if(M.T!==null){var e=Xr;return e!==0?e:td()}return Wa()}function Qp(){fn===0&&(fn=(He&536870912)===0||Ye?gn():536870912);var e=dn.current;return e!==null&&(e.flags|=32),fn}function Jt(e,t,a){(e===Je&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)&&(so(e,0),_a(e,He,fn,!1)),pa(e,a),((Ie&2)===0||e!==Je)&&(e===Je&&((Ie&2)===0&&(hr|=a),st===4&&_a(e,He,fn,!1)),Mn(e))}function Kp(e,t,a){if((Ie&6)!==0)throw Error(s(327));var l=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Fa(e,t),i=l?zS(e,t):Fu(e,t,!0),d=l;do{if(i===0){ao&&!l&&_a(e,t,0,!1);break}else{if(a=e.current.alternate,d&&!OS(a)){i=Fu(e,t,!1),d=!1;continue}if(i===2){if(d=t,e.errorRecoveryDisabledLanes&d)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var w=e;i=bl;var k=w.current.memoizedState.isDehydrated;if(k&&(so(w,x).flags|=256),x=Fu(w,x,!1),x!==2){if(qu&&!k){w.errorRecoveryDisabledLanes|=d,hr|=d,i=4;break e}d=Vt,Vt=i,d!==null&&(Vt===null?Vt=d:Vt.push.apply(Vt,d))}i=x}if(d=!1,i!==2)continue}}if(i===1){so(e,0),_a(e,t,0,!0);break}e:{switch(l=e,d=i,d){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:_a(l,t,fn,!Ca);break e;case 2:Vt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=Gu+300-_e(),10<i)){if(_a(l,t,fn,!Ca),Za(l,0,!0)!==0)break e;l.timeoutHandle=Ng(Zp.bind(null,l,a,Vt,Is,Yu,t,fn,hr,ro,Ca,d,2,-0,0),i);break e}Zp(l,a,Vt,Is,Yu,t,fn,hr,ro,Ca,d,0,-0,0)}}break}while(!0);Mn(e)}function Zp(e,t,a,l,i,d,x,w,k,B,X,Z,H,$){if(e.timeoutHandle=-1,Z=t.subtreeFlags,(Z&8192||(Z&16785408)===16785408)&&(Cl={stylesheets:null,count:0,unsuspend:hw},Vp(t),Z=gw(),Z!==null)){e.cancelPendingCommit=Z(ag.bind(null,e,t,d,a,l,i,x,w,k,X,1,H,$)),_a(e,d,x,!B);return}ag(e,t,d,a,l,i,x,w,k)}function OS(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var i=a[l],d=i.getSnapshot;i=i.value;try{if(!Xt(d(),i))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 _a(e,t,a,l){t&=~Vu,t&=~hr,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var d=31-Me(i),x=1<<d;l[d]=-1,i&=~x}a!==0&&Re(e,a,t)}function Xs(){return(Ie&6)===0?(Sl(0),!1):!0}function Ku(){if(De!==null){if(Xe===0)var e=De.return;else e=De,Wn=ir=null,fu(e),Jr=null,dl=0,e=De;for(;e!==null;)kp(e.alternate,e),e=e.return;De=null}}function so(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,FS(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ku(),Je=e,De=a=Kn(e.current,null),He=t,Xe=0,Ft=null,Ca=!1,ao=Fa(e,t),qu=!1,ro=fn=Vu=hr=Aa=st=0,Vt=bl=null,Yu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-Me(l),d=1<<i;t|=e[i],l&=~d}return la=t,ps(),a}function Fp(e,t){Ae=null,M.H=Ds,t===nl||t===Ns?(t=hh(),Xe=3):t===dh?(t=hh(),Xe=4):Xe=t===pp?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ft=t,De===null&&(st=1,Hs(e,ln(t,e.current)))}function Wp(){var e=M.H;return M.H=Ds,e===null?Ds:e}function Jp(){var e=M.A;return M.A=_S,e}function Zu(){st=4,Ca||(He&4194048)!==He&&dn.current!==null||(ao=!0),(Aa&134217727)===0&&(hr&134217727)===0||Je===null||_a(Je,He,fn,!1)}function Fu(e,t,a){var l=Ie;Ie|=2;var i=Wp(),d=Jp();(Je!==e||He!==t)&&(Is=null,so(e,t)),t=!1;var x=st;e:do try{if(Xe!==0&&De!==null){var w=De,k=Ft;switch(Xe){case 8:Ku(),x=6;break e;case 3:case 2:case 9:case 6:dn.current===null&&(t=!0);var B=Xe;if(Xe=0,Ft=null,io(e,w,k,B),a&&ao){x=0;break e}break;default:B=Xe,Xe=0,Ft=null,io(e,w,k,B)}}DS(),x=st;break}catch(X){Fp(e,X)}while(!0);return t&&e.shellSuspendCounter++,Wn=ir=null,Ie=l,M.H=i,M.A=d,De===null&&(Je=null,He=0,ps()),x}function DS(){for(;De!==null;)eg(De)}function zS(e,t){var a=Ie;Ie|=2;var l=Wp(),i=Jp();Je!==e||He!==t?(Is=null,Gs=_e()+500,so(e,t)):ao=Fa(e,t);e:do try{if(Xe!==0&&De!==null){t=De;var d=Ft;t:switch(Xe){case 1:Xe=0,Ft=null,io(e,t,d,1);break;case 2:case 9:if(fh(d)){Xe=0,Ft=null,tg(t);break}t=function(){Xe!==2&&Xe!==9||Je!==e||(Xe=7),Mn(e)},d.then(t,t);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:fh(d)?(Xe=0,Ft=null,tg(t)):(Xe=0,Ft=null,io(e,t,d,7));break;case 5:var x=null;switch(De.tag){case 26:x=De.memoizedState;case 5:case 27:var w=De;if(!x||Lg(x)){Xe=0,Ft=null;var k=w.sibling;if(k!==null)De=k;else{var B=w.return;B!==null?(De=B,Qs(B)):De=null}break t}}Xe=0,Ft=null,io(e,t,d,5);break;case 6:Xe=0,Ft=null,io(e,t,d,6);break;case 8:Ku(),st=6;break e;default:throw Error(s(462))}}LS();break}catch(X){Fp(e,X)}while(!0);return Wn=ir=null,M.H=l,M.A=i,Ie=a,De!==null?0:(Je=null,He=0,ps(),st)}function LS(){for(;De!==null&&!Ge();)eg(De)}function eg(e){var t=Cp(e.alternate,e,la);e.memoizedProps=e.pendingProps,t===null?Qs(e):De=t}function tg(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Sp(a,t,t.pendingProps,t.type,void 0,He);break;case 11:t=Sp(a,t,t.pendingProps,t.type.render,t.ref,He);break;case 5:fu(t);default:kp(a,t),t=De=nh(t,la),t=Cp(a,t,la)}e.memoizedProps=e.pendingProps,t===null?Qs(e):De=t}function io(e,t,a,l){Wn=ir=null,fu(t),Jr=null,dl=0;var i=t.return;try{if(TS(e,i,t,a,He)){st=1,Hs(e,ln(a,e.current)),De=null;return}}catch(d){if(i!==null)throw De=i,d;st=1,Hs(e,ln(a,e.current)),De=null;return}t.flags&32768?(Ye||l===1?e=!0:ao||(He&536870912)!==0?e=!1:(Ca=e=!0,(l===2||l===9||l===3||l===6)&&(l=dn.current,l!==null&&l.tag===13&&(l.flags|=16384))),ng(t,e)):Qs(t)}function Qs(e){var t=e;do{if((t.flags&32768)!==0){ng(t,Ca);return}e=t.return;var a=CS(t.alternate,t,la);if(a!==null){De=a;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);st===0&&(st=5)}function ng(e,t){do{var a=AS(e.alternate,e);if(a!==null){a.flags&=32767,De=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){De=e;return}De=e=a}while(e!==null);st=6,De=null}function ag(e,t,a,l,i,d,x,w,k){e.cancelPendingCommit=null;do Ks();while(Mt!==0);if((Ie&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(d=t.lanes|t.childLanes,d|=Pc,as(e,a,d,x,w,k),e===Je&&(De=Je=null,He=0),oo=t,ja=e,lo=a,Iu=d,Xu=i,Xp=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,$S(ha,function(){return ig(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null,i=q.p,q.p=2,x=Ie,Ie|=4;try{kS(e,t,a)}finally{Ie=x,q.p=i,M.T=l}}Mt=1,rg(),og(),lg()}}function rg(){if(Mt===1){Mt=0;var e=ja,t=oo,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var l=q.p;q.p=2;var i=Ie;Ie|=4;try{$p(t,e);var d=cd,x=Im(e.containerInfo),w=d.focusedElem,k=d.selectionRange;if(x!==w&&w&&w.ownerDocument&&Gm(w.ownerDocument.documentElement,w)){if(k!==null&&Lc(w)){var B=k.start,X=k.end;if(X===void 0&&(X=B),"selectionStart"in w)w.selectionStart=B,w.selectionEnd=Math.min(X,w.value.length);else{var Z=w.ownerDocument||document,H=Z&&Z.defaultView||window;if(H.getSelection){var $=H.getSelection(),Te=w.textContent.length,Ee=Math.min(k.start,Te),Ze=k.end===void 0?Ee:Math.min(k.end,Te);!$.extend&&Ee>Ze&&(x=Ze,Ze=Ee,Ee=x);var D=Ym(w,Ee),O=Ym(w,Ze);if(D&&O&&($.rangeCount!==1||$.anchorNode!==D.node||$.anchorOffset!==D.offset||$.focusNode!==O.node||$.focusOffset!==O.offset)){var L=Z.createRange();L.setStart(D.node,D.offset),$.removeAllRanges(),Ee>Ze?($.addRange(L),$.extend(O.node,O.offset)):(L.setEnd(O.node,O.offset),$.addRange(L))}}}}for(Z=[],$=w;$=$.parentNode;)$.nodeType===1&&Z.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<Z.length;w++){var Q=Z[w];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}si=!!id,cd=id=null}finally{Ie=i,q.p=l,M.T=a}}e.current=t,Mt=2}}function og(){if(Mt===2){Mt=0;var e=ja,t=oo,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var l=q.p;q.p=2;var i=Ie;Ie|=4;try{Lp(e,t.alternate,t)}finally{Ie=i,q.p=l,M.T=a}}Mt=3}}function lg(){if(Mt===4||Mt===3){Mt=0,vt();var e=ja,t=oo,a=lo,l=Xp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Mt=5:(Mt=0,oo=ja=null,sg(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ka=null),jt(a),t=t.stateNode,be&&typeof be.onCommitFiberRoot=="function")try{be.onCommitFiberRoot(It,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=M.T,i=q.p,q.p=2,M.T=null;try{for(var d=e.onRecoverableError,x=0;x<l.length;x++){var w=l[x];d(w.value,{componentStack:w.stack})}}finally{M.T=t,q.p=i}}(lo&3)!==0&&Ks(),Mn(e),i=e.pendingLanes,(a&4194090)!==0&&(i&42)!==0?e===Qu?xl++:(xl=0,Qu=e):xl=0,Sl(0)}}function sg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,el(t)))}function Ks(e){return rg(),og(),lg(),ig()}function ig(){if(Mt!==5)return!1;var e=ja,t=Iu;Iu=0;var a=jt(lo),l=M.T,i=q.p;try{q.p=32>a?32:a,M.T=null,a=Xu,Xu=null;var d=ja,x=lo;if(Mt=0,oo=ja=null,lo=0,(Ie&6)!==0)throw Error(s(331));var w=Ie;if(Ie|=4,Gp(d.current),qp(d,d.current,x,a),Ie=w,Sl(0,!1),be&&typeof be.onPostCommitFiberRoot=="function")try{be.onPostCommitFiberRoot(It,d)}catch{}return!0}finally{q.p=i,M.T=l,sg(e,t)}}function cg(e,t,a){t=ln(a,t),t=Ru(e.stateNode,t,2),e=xa(e,t,2),e!==null&&(pa(e,2),Mn(e))}function Fe(e,t,a){if(e.tag===3)cg(e,e,a);else for(;t!==null;){if(t.tag===3){cg(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ka===null||!ka.has(l))){e=ln(a,e),a=mp(2),l=xa(t,a,2),l!==null&&(hp(a,l,t,e),pa(l,2),Mn(l));break}}t=t.return}}function Wu(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new MS;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(a)||(qu=!0,i.add(a),e=US.bind(null,e,t,a),t.then(e,e))}function US(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Je===e&&(He&a)===a&&(st===4||st===3&&(He&62914560)===He&&300>_e()-Gu?(Ie&2)===0&&so(e,0):Vu|=a,ro===He&&(ro=0)),Mn(e)}function ug(e,t){t===0&&(t=ns()),e=Vr(e,t),e!==null&&(pa(e,t),Mn(e))}function BS(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),ug(e,a)}function HS(e,t){var a=0;switch(e.tag){case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),ug(e,a)}function $S(e,t){return Be(e,t)}var Zs=null,co=null,Ju=!1,Fs=!1,ed=!1,pr=0;function Mn(e){e!==co&&e.next===null&&(co===null?Zs=co=e:co=co.next=e),Fs=!0,Ju||(Ju=!0,qS())}function Sl(e,t){if(!ed&&Fs){ed=!0;do for(var a=!1,l=Zs;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var d=0;else{var x=l.suspendedLanes,w=l.pingedLanes;d=(1<<31-Me(42|e)+1)-1,d&=i&~(x&~w),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,hg(l,d))}else d=He,d=Za(l,l===Je?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||Fa(l,d)||(a=!0,hg(l,d));l=l.next}while(a);ed=!1}}function PS(){dg()}function dg(){Fs=Ju=!1;var e=0;pr!==0&&(ZS()&&(e=pr),pr=0);for(var t=_e(),a=null,l=Zs;l!==null;){var i=l.next,d=fg(l,t);d===0?(l.next=null,a===null?Zs=i:a.next=i,i===null&&(co=a)):(a=l,(e!==0||(d&3)!==0)&&(Fs=!0)),l=i}Sl(e)}function fg(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var x=31-Me(d),w=1<<x,k=i[x];k===-1?((w&a)===0||(w&l)!==0)&&(i[x]=Uo(w,t)):k<=t&&(e.expiredLanes|=w),d&=~w}if(t=Je,a=He,a=Za(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&$e(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Fa(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&$e(l),jt(a)){case 2:case 8:a=Rr;break;case 32:a=ha;break;case 268435456:a=pn;break;default:a=ha}return l=mg.bind(null,e),a=Be(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&$e(l),e.callbackPriority=2,e.callbackNode=null,2}function mg(e,t){if(Mt!==0&&Mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ks()&&e.callbackNode!==a)return null;var l=He;return l=Za(e,e===Je?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Kp(e,l,t),fg(e,_e()),e.callbackNode!=null&&e.callbackNode===a?mg.bind(null,e):null)}function hg(e,t){if(Ks())return null;Kp(e,t,!0)}function qS(){WS(function(){(Ie&6)!==0?Be(yt,PS):dg()})}function td(){return pr===0&&(pr=gn()),pr}function pg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:is(""+e)}function gg(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 VS(e,t,a,l,i){if(t==="submit"&&a&&a.stateNode===i){var d=pg((i[We]||null).action),x=l.submitter;x&&(t=(t=x[We]||null)?pg(t.formAction):x.getAttribute("formAction"),t!==null&&(d=t,x=null));var w=new fs("action","action",null,l,i);e.push({event:w,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(pr!==0){var k=x?gg(i,x):new FormData(i);Su(a,{pending:!0,data:k,method:i.method,action:d},null,k)}}else typeof d=="function"&&(w.preventDefault(),k=x?gg(i,x):new FormData(i),Su(a,{pending:!0,data:k,method:i.method,action:d},d,k))},currentTarget:i}]})}}for(var nd=0;nd<$c.length;nd++){var ad=$c[nd],YS=ad.toLowerCase(),GS=ad[0].toUpperCase()+ad.slice(1);vn(YS,"on"+GS)}vn(Km,"onAnimationEnd"),vn(Zm,"onAnimationIteration"),vn(Fm,"onAnimationStart"),vn("dblclick","onDoubleClick"),vn("focusin","onFocus"),vn("focusout","onBlur"),vn(iS,"onTransitionRun"),vn(cS,"onTransitionStart"),vn(uS,"onTransitionCancel"),vn(Wm,"onTransitionEnd"),Or("onMouseEnter",["mouseout","mouseover"]),Or("onMouseLeave",["mouseout","mouseover"]),Or("onPointerEnter",["pointerout","pointerover"]),Or("onPointerLeave",["pointerout","pointerover"]),Ja("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ja("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ja("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ja("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ja("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ja("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wl="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(" "),IS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wl));function vg(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],i=l.event;l=l.listeners;e:{var d=void 0;if(t)for(var x=l.length-1;0<=x;x--){var w=l[x],k=w.instance,B=w.currentTarget;if(w=w.listener,k!==d&&i.isPropagationStopped())break e;d=w,i.currentTarget=B;try{d(i)}catch(X){Bs(X)}i.currentTarget=null,d=k}else for(x=0;x<l.length;x++){if(w=l[x],k=w.instance,B=w.currentTarget,w=w.listener,k!==d&&i.isPropagationStopped())break e;d=w,i.currentTarget=B;try{d(i)}catch(X){Bs(X)}i.currentTarget=null,d=k}}}}function ze(e,t){var a=t[kr];a===void 0&&(a=t[kr]=new Set);var l=e+"__bubble";a.has(l)||(yg(t,e,2,!1),a.add(l))}function rd(e,t,a){var l=0;t&&(l|=4),yg(a,e,l,t)}var Ws="_reactListening"+Math.random().toString(36).slice(2);function od(e){if(!e[Ws]){e[Ws]=!0,dm.forEach(function(a){a!=="selectionchange"&&(IS.has(a)||rd(a,!1,e),rd(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ws]||(t[Ws]=!0,rd("selectionchange",!1,t))}}function yg(e,t,a,l){switch(qg(t)){case 2:var i=bw;break;case 8:i=xw;break;default:i=bd}a=i.bind(null,t,a,e),i=void 0,!Cc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function ld(e,t,a,l,i){var d=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var x=l.tag;if(x===3||x===4){var w=l.stateNode.containerInfo;if(w===i)break;if(x===4)for(x=l.return;x!==null;){var k=x.tag;if((k===3||k===4)&&x.stateNode.containerInfo===i)return;x=x.return}for(;w!==null;){if(x=jr(w),x===null)return;if(k=x.tag,k===5||k===6||k===26||k===27){l=d=x;continue e}w=w.parentNode}}l=l.return}Tm(function(){var B=d,X=Tc(a),Z=[];e:{var H=Jm.get(e);if(H!==void 0){var $=fs,Te=e;switch(e){case"keypress":if(us(a)===0)break e;case"keydown":case"keyup":$=$1;break;case"focusin":Te="focus",$=_c;break;case"focusout":Te="blur",$=_c;break;case"beforeblur":case"afterblur":$=_c;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":$=Am;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=A1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=V1;break;case Km:case Zm:case Fm:$=_1;break;case Wm:$=G1;break;case"scroll":case"scrollend":$=R1;break;case"wheel":$=X1;break;case"copy":case"cut":case"paste":$=O1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=jm;break;case"toggle":case"beforetoggle":$=K1}var Ee=(t&4)!==0,Ze=!Ee&&(e==="scroll"||e==="scrollend"),D=Ee?H!==null?H+"Capture":null:H;Ee=[];for(var O=B,L;O!==null;){var Q=O;if(L=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||L===null||D===null||(Q=Po(O,D),Q!=null&&Ee.push(El(O,Q,L))),Ze)break;O=O.return}0<Ee.length&&(H=new $(H,Te,null,a,X),Z.push({event:H,listeners:Ee}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",H&&a!==Nc&&(Te=a.relatedTarget||a.fromElement)&&(jr(Te)||Te[Nt]))break e;if(($||H)&&(H=X.window===X?X:(H=X.ownerDocument)?H.defaultView||H.parentWindow:window,$?(Te=a.relatedTarget||a.toElement,$=B,Te=Te?jr(Te):null,Te!==null&&(Ze=u(Te),Ee=Te.tag,Te!==Ze||Ee!==5&&Ee!==27&&Ee!==6)&&(Te=null)):($=null,Te=B),$!==Te)){if(Ee=Am,Q="onMouseLeave",D="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Ee=jm,Q="onPointerLeave",D="onPointerEnter",O="pointer"),Ze=$==null?H:$o($),L=Te==null?H:$o(Te),H=new Ee(Q,O+"leave",$,a,X),H.target=Ze,H.relatedTarget=L,Q=null,jr(X)===B&&(Ee=new Ee(D,O+"enter",Te,a,X),Ee.target=L,Ee.relatedTarget=Ze,Q=Ee),Ze=Q,$&&Te)t:{for(Ee=$,D=Te,O=0,L=Ee;L;L=uo(L))O++;for(L=0,Q=D;Q;Q=uo(Q))L++;for(;0<O-L;)Ee=uo(Ee),O--;for(;0<L-O;)D=uo(D),L--;for(;O--;){if(Ee===D||D!==null&&Ee===D.alternate)break t;Ee=uo(Ee),D=uo(D)}Ee=null}else Ee=null;$!==null&&bg(Z,H,$,Ee,!1),Te!==null&&Ze!==null&&bg(Z,Ze,Te,Ee,!0)}}e:{if(H=B?$o(B):window,$=H.nodeName&&H.nodeName.toLowerCase(),$==="select"||$==="input"&&H.type==="file")var he=Bm;else if(Lm(H))if(Hm)he=oS;else{he=aS;var Oe=nS}else $=H.nodeName,!$||$.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?B&&Ec(B.elementType)&&(he=Bm):he=rS;if(he&&(he=he(e,B))){Um(Z,he,a,X);break e}Oe&&Oe(e,H,B),e==="focusout"&&B&&H.type==="number"&&B.memoizedProps.value!=null&&wc(H,"number",H.value)}switch(Oe=B?$o(B):window,e){case"focusin":(Lm(Oe)||Oe.contentEditable==="true")&&($r=Oe,Uc=B,Ko=null);break;case"focusout":Ko=Uc=$r=null;break;case"mousedown":Bc=!0;break;case"contextmenu":case"mouseup":case"dragend":Bc=!1,Xm(Z,a,X);break;case"selectionchange":if(sS)break;case"keydown":case"keyup":Xm(Z,a,X)}var xe;if(Oc)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else Hr?Dm(e,a)&&(Ne="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ne="onCompositionStart");Ne&&(_m&&a.locale!=="ko"&&(Hr||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&Hr&&(xe=Rm()):(ga=X,Ac="value"in ga?ga.value:ga.textContent,Hr=!0)),Oe=Js(B,Ne),0<Oe.length&&(Ne=new km(Ne,e,null,a,X),Z.push({event:Ne,listeners:Oe}),xe?Ne.data=xe:(xe=zm(a),xe!==null&&(Ne.data=xe)))),(xe=F1?W1(e,a):J1(e,a))&&(Ne=Js(B,"onBeforeInput"),0<Ne.length&&(Oe=new km("onBeforeInput","beforeinput",null,a,X),Z.push({event:Oe,listeners:Ne}),Oe.data=xe)),VS(Z,e,B,a,X)}vg(Z,t)})}function El(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Js(e,t){for(var a=t+"Capture",l=[];e!==null;){var i=e,d=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||d===null||(i=Po(e,a),i!=null&&l.unshift(El(e,i,d)),i=Po(e,t),i!=null&&l.push(El(e,i,d))),e.tag===3)return l;e=e.return}return[]}function uo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bg(e,t,a,l,i){for(var d=t._reactName,x=[];a!==null&&a!==l;){var w=a,k=w.alternate,B=w.stateNode;if(w=w.tag,k!==null&&k===l)break;w!==5&&w!==26&&w!==27||B===null||(k=B,i?(B=Po(a,d),B!=null&&x.unshift(El(a,B,k))):i||(B=Po(a,d),B!=null&&x.push(El(a,B,k)))),a=a.return}x.length!==0&&e.push({event:t,listeners:x})}var XS=/\r\n?/g,QS=/\u0000|\uFFFD/g;function xg(e){return(typeof e=="string"?e:""+e).replace(XS,`
|
|
50
|
+
`).replace(QS,"")}function Sg(e,t){return t=xg(t),xg(e)===t}function ei(){}function Ke(e,t,a,l,i,d){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Lr(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Lr(e,""+l);break;case"className":os(e,"class",l);break;case"tabIndex":os(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":os(e,a,l);break;case"style":Em(e,l,d);break;case"data":if(t!=="object"){os(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=is(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(a==="formAction"?(t!=="input"&&Ke(e,t,"name",i.name,i,null),Ke(e,t,"formEncType",i.formEncType,i,null),Ke(e,t,"formMethod",i.formMethod,i,null),Ke(e,t,"formTarget",i.formTarget,i,null)):(Ke(e,t,"encType",i.encType,i,null),Ke(e,t,"method",i.method,i,null),Ke(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=is(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ei);break;case"onScroll":l!=null&&ze("scroll",e);break;case"onScrollEnd":l!=null&&ze("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=is(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":ze("beforetoggle",e),ze("toggle",e),rs(e,"popover",l);break;case"xlinkActuate":Xn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Xn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Xn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Xn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Xn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Xn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":rs(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=N1.get(a)||a,rs(e,a,l))}}function sd(e,t,a,l,i,d){switch(a){case"style":Em(e,l,d);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Lr(e,l):(typeof l=="number"||typeof l=="bigint")&&Lr(e,""+l);break;case"onScroll":l!=null&&ze("scroll",e);break;case"onScrollEnd":l!=null&&ze("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ei);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fm.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),d=e[We]||null,d=d!=null?d[a]:null,typeof d=="function"&&e.removeEventListener(t,d,i),typeof l=="function")){typeof d!="function"&&d!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,i);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):rs(e,a,l)}}}function Ot(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",e),ze("load",e);var l=!1,i=!1,d;for(d in a)if(a.hasOwnProperty(d)){var x=a[d];if(x!=null)switch(d){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ke(e,t,d,x,a,null)}}i&&Ke(e,t,"srcSet",a.srcSet,a,null),l&&Ke(e,t,"src",a.src,a,null);return;case"input":ze("invalid",e);var w=d=x=i=null,k=null,B=null;for(l in a)if(a.hasOwnProperty(l)){var X=a[l];if(X!=null)switch(l){case"name":i=X;break;case"type":x=X;break;case"checked":k=X;break;case"defaultChecked":B=X;break;case"value":d=X;break;case"defaultValue":w=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(s(137,t));break;default:Ke(e,t,l,X,a,null)}}bm(e,d,w,k,B,x,i,!1),ls(e);return;case"select":ze("invalid",e),l=x=d=null;for(i in a)if(a.hasOwnProperty(i)&&(w=a[i],w!=null))switch(i){case"value":d=w;break;case"defaultValue":x=w;break;case"multiple":l=w;default:Ke(e,t,i,w,a,null)}t=d,a=x,e.multiple=!!l,t!=null?zr(e,!!l,t,!1):a!=null&&zr(e,!!l,a,!0);return;case"textarea":ze("invalid",e),d=i=l=null;for(x in a)if(a.hasOwnProperty(x)&&(w=a[x],w!=null))switch(x){case"value":l=w;break;case"defaultValue":i=w;break;case"children":d=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(s(91));break;default:Ke(e,t,x,w,a,null)}Sm(e,l,i,d),ls(e);return;case"option":for(k in a)if(a.hasOwnProperty(k)&&(l=a[k],l!=null))switch(k){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ke(e,t,k,l,a,null)}return;case"dialog":ze("beforetoggle",e),ze("toggle",e),ze("cancel",e),ze("close",e);break;case"iframe":case"object":ze("load",e);break;case"video":case"audio":for(l=0;l<wl.length;l++)ze(wl[l],e);break;case"image":ze("error",e),ze("load",e);break;case"details":ze("toggle",e);break;case"embed":case"source":case"link":ze("error",e),ze("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(B in a)if(a.hasOwnProperty(B)&&(l=a[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ke(e,t,B,l,a,null)}return;default:if(Ec(t)){for(X in a)a.hasOwnProperty(X)&&(l=a[X],l!==void 0&&sd(e,t,X,l,a,void 0));return}}for(w in a)a.hasOwnProperty(w)&&(l=a[w],l!=null&&Ke(e,t,w,l,a,null))}function KS(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,d=null,x=null,w=null,k=null,B=null,X=null;for($ in a){var Z=a[$];if(a.hasOwnProperty($)&&Z!=null)switch($){case"checked":break;case"value":break;case"defaultValue":k=Z;default:l.hasOwnProperty($)||Ke(e,t,$,null,l,Z)}}for(var H in l){var $=l[H];if(Z=a[H],l.hasOwnProperty(H)&&($!=null||Z!=null))switch(H){case"type":d=$;break;case"name":i=$;break;case"checked":B=$;break;case"defaultChecked":X=$;break;case"value":x=$;break;case"defaultValue":w=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(s(137,t));break;default:$!==Z&&Ke(e,t,H,$,l,Z)}}Sc(e,x,w,k,B,X,d,i);return;case"select":$=x=w=H=null;for(d in a)if(k=a[d],a.hasOwnProperty(d)&&k!=null)switch(d){case"value":break;case"multiple":$=k;default:l.hasOwnProperty(d)||Ke(e,t,d,null,l,k)}for(i in l)if(d=l[i],k=a[i],l.hasOwnProperty(i)&&(d!=null||k!=null))switch(i){case"value":H=d;break;case"defaultValue":w=d;break;case"multiple":x=d;default:d!==k&&Ke(e,t,i,d,l,k)}t=w,a=x,l=$,H!=null?zr(e,!!a,H,!1):!!l!=!!a&&(t!=null?zr(e,!!a,t,!0):zr(e,!!a,a?[]:"",!1));return;case"textarea":$=H=null;for(w in a)if(i=a[w],a.hasOwnProperty(w)&&i!=null&&!l.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ke(e,t,w,null,l,i)}for(x in l)if(i=l[x],d=a[x],l.hasOwnProperty(x)&&(i!=null||d!=null))switch(x){case"value":H=i;break;case"defaultValue":$=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(s(91));break;default:i!==d&&Ke(e,t,x,i,l,d)}xm(e,H,$);return;case"option":for(var Te in a)if(H=a[Te],a.hasOwnProperty(Te)&&H!=null&&!l.hasOwnProperty(Te))switch(Te){case"selected":e.selected=!1;break;default:Ke(e,t,Te,null,l,H)}for(k in l)if(H=l[k],$=a[k],l.hasOwnProperty(k)&&H!==$&&(H!=null||$!=null))switch(k){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Ke(e,t,k,H,l,$)}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)H=a[Ee],a.hasOwnProperty(Ee)&&H!=null&&!l.hasOwnProperty(Ee)&&Ke(e,t,Ee,null,l,H);for(B in l)if(H=l[B],$=a[B],l.hasOwnProperty(B)&&H!==$&&(H!=null||$!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:Ke(e,t,B,H,l,$)}return;default:if(Ec(t)){for(var Ze in a)H=a[Ze],a.hasOwnProperty(Ze)&&H!==void 0&&!l.hasOwnProperty(Ze)&&sd(e,t,Ze,void 0,l,H);for(X in l)H=l[X],$=a[X],!l.hasOwnProperty(X)||H===$||H===void 0&&$===void 0||sd(e,t,X,H,l,$);return}}for(var D in a)H=a[D],a.hasOwnProperty(D)&&H!=null&&!l.hasOwnProperty(D)&&Ke(e,t,D,null,l,H);for(Z in l)H=l[Z],$=a[Z],!l.hasOwnProperty(Z)||H===$||H==null&&$==null||Ke(e,t,Z,H,l,$)}var id=null,cd=null;function ti(e){return e.nodeType===9?e:e.ownerDocument}function wg(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 Eg(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 ud(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 dd=null;function ZS(){var e=window.event;return e&&e.type==="popstate"?e===dd?!1:(dd=e,!0):(dd=null,!1)}var Ng=typeof setTimeout=="function"?setTimeout:void 0,FS=typeof clearTimeout=="function"?clearTimeout:void 0,Tg=typeof Promise=="function"?Promise:void 0,WS=typeof queueMicrotask=="function"?queueMicrotask:typeof Tg<"u"?function(e){return Tg.resolve(null).then(e).catch(JS)}:Ng;function JS(e){setTimeout(function(){throw e})}function Ma(e){return e==="head"}function Rg(e,t){var a=t,l=0,i=0;do{var d=a.nextSibling;if(e.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"){if(0<l&&8>l){a=l;var x=e.ownerDocument;if(a&1&&Nl(x.documentElement),a&2&&Nl(x.body),a&4)for(a=x.head,Nl(a),x=a.firstChild;x;){var w=x.nextSibling,k=x.nodeName;x[Ho]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&x.rel.toLowerCase()==="stylesheet"||a.removeChild(x),x=w}}if(i===0){e.removeChild(d),Ml(t);return}i--}else a==="$"||a==="$?"||a==="$!"?i++:l=a.charCodeAt(0)-48;else l=0;a=d}while(a);Ml(t)}function fd(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":fd(a),vc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function ew(e,t,a,l){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Ho])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=bn(e.nextSibling),e===null)break}return null}function tw(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=bn(e.nextSibling),e===null))return null;return e}function md(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function nw(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function bn(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==="F!"||t==="F")break;if(t==="/$")return null}}return e}var hd=null;function Cg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function Ag(e,t,a){switch(t=ti(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Nl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vc(e)}var mn=new Map,kg=new Set;function ni(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sa=q.d;q.d={f:aw,r:rw,D:ow,C:lw,L:sw,m:iw,X:uw,S:cw,M:dw};function aw(){var e=sa.f(),t=Xs();return e||t}function rw(e){var t=_r(e);t!==null&&t.tag===5&&t.type==="form"?Kh(t):sa.r(e)}var fo=typeof document>"u"?null:document;function jg(e,t,a){var l=fo;if(l&&typeof t=="string"&&t){var i=on(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),kg.has(i)||(kg.add(i),e={rel:e,crossOrigin:a,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),Ot(t,"link",e),Tt(t),l.head.appendChild(t)))}}function ow(e){sa.D(e),jg("dns-prefetch",e,null)}function lw(e,t){sa.C(e,t),jg("preconnect",e,t)}function sw(e,t,a){sa.L(e,t,a);var l=fo;if(l&&e&&t){var i='link[rel="preload"][as="'+on(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+on(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+on(a.imageSizes)+'"]')):i+='[href="'+on(e)+'"]';var d=i;switch(t){case"style":d=mo(e);break;case"script":d=ho(e)}mn.has(d)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),mn.set(d,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(Tl(d))||t==="script"&&l.querySelector(Rl(d))||(t=l.createElement("link"),Ot(t,"link",e),Tt(t),l.head.appendChild(t)))}}function iw(e,t){sa.m(e,t);var a=fo;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+on(l)+'"][href="'+on(e)+'"]',d=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=ho(e)}if(!mn.has(d)&&(e=b({rel:"modulepreload",href:e},t),mn.set(d,e),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Rl(d)))return}l=a.createElement("link"),Ot(l,"link",e),Tt(l),a.head.appendChild(l)}}}function cw(e,t,a){sa.S(e,t,a);var l=fo;if(l&&e){var i=Mr(l).hoistableStyles,d=mo(e);t=t||"default";var x=i.get(d);if(!x){var w={loading:0,preload:null};if(x=l.querySelector(Tl(d)))w.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=mn.get(d))&&pd(e,a);var k=x=l.createElement("link");Tt(k),Ot(k,"link",e),k._p=new Promise(function(B,X){k.onload=B,k.onerror=X}),k.addEventListener("load",function(){w.loading|=1}),k.addEventListener("error",function(){w.loading|=2}),w.loading|=4,ai(x,t,l)}x={type:"stylesheet",instance:x,count:1,state:w},i.set(d,x)}}}function uw(e,t){sa.X(e,t);var a=fo;if(a&&e){var l=Mr(a).hoistableScripts,i=ho(e),d=l.get(i);d||(d=a.querySelector(Rl(i)),d||(e=b({src:e,async:!0},t),(t=mn.get(i))&&gd(e,t),d=a.createElement("script"),Tt(d),Ot(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(i,d))}}function dw(e,t){sa.M(e,t);var a=fo;if(a&&e){var l=Mr(a).hoistableScripts,i=ho(e),d=l.get(i);d||(d=a.querySelector(Rl(i)),d||(e=b({src:e,async:!0,type:"module"},t),(t=mn.get(i))&&gd(e,t),d=a.createElement("script"),Tt(d),Ot(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(i,d))}}function _g(e,t,a,l){var i=(i=re.current)?ni(i):null;if(!i)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=mo(a.href),a=Mr(i).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=mo(a.href);var d=Mr(i).hoistableStyles,x=d.get(e);if(x||(i=i.ownerDocument||i,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,x),(d=i.querySelector(Tl(e)))&&!d._p&&(x.instance=d,x.state.loading=5),mn.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},mn.set(e,a),d||fw(i,e,a,x.state))),t&&l===null)throw Error(s(528,""));return x}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ho(a),a=Mr(i).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function mo(e){return'href="'+on(e)+'"'}function Tl(e){return'link[rel="stylesheet"]['+e+"]"}function Mg(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function fw(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Ot(t,"link",a),Tt(t),e.head.appendChild(t))}function ho(e){return'[src="'+on(e)+'"]'}function Rl(e){return"script[async]"+e}function Og(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+on(a.href)+'"]');if(l)return t.instance=l,Tt(l),l;var i=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Tt(l),Ot(l,"style",i),ai(l,a.precedence,e),t.instance=l;case"stylesheet":i=mo(a.href);var d=e.querySelector(Tl(i));if(d)return t.state.loading|=4,t.instance=d,Tt(d),d;l=Mg(a),(i=mn.get(i))&&pd(l,i),d=(e.ownerDocument||e).createElement("link"),Tt(d);var x=d;return x._p=new Promise(function(w,k){x.onload=w,x.onerror=k}),Ot(d,"link",l),t.state.loading|=4,ai(d,a.precedence,e),t.instance=d;case"script":return d=ho(a.src),(i=e.querySelector(Rl(d)))?(t.instance=i,Tt(i),i):(l=a,(i=mn.get(d))&&(l=b({},a),gd(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),Tt(i),Ot(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ai(l,a.precedence,e));return t.instance}function ai(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,d=i,x=0;x<l.length;x++){var w=l[x];if(w.dataset.precedence===t)d=w;else if(d!==i)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function pd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function gd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ri=null;function Dg(e,t,a){if(ri===null){var l=new Map,i=ri=new Map;i.set(a,l)}else i=ri,l=i.get(a),l||(l=new Map,i.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var d=a[i];if(!(d[Ho]||d[dt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var x=d.getAttribute(t)||"";x=e+x;var w=l.get(x);w?w.push(d):l.set(x,[d])}}return l}function zg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function mw(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 Lg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Cl=null;function hw(){}function pw(e,t,a){if(Cl===null)throw Error(s(475));var l=Cl;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var i=mo(a.href),d=e.querySelector(Tl(i));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=oi.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=d,Tt(d);return}d=e.ownerDocument||e,a=Mg(a),(i=mn.get(i))&&pd(a,i),d=d.createElement("link"),Tt(d);var x=d;x._p=new Promise(function(w,k){x.onload=w,x.onerror=k}),Ot(d,"link",a),t.instance=d}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=oi.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function gw(){if(Cl===null)throw Error(s(475));var e=Cl;return e.stylesheets&&e.count===0&&vd(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&vd(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function oi(){if(this.count--,this.count===0){if(this.stylesheets)vd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var li=null;function vd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,li=new Map,t.forEach(vw,e),li=null,oi.call(e))}function vw(e,t){if(!(t.state.loading&4)){var a=li.get(e);if(a)var l=a.get(null);else{a=new Map,li.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<i.length;d++){var x=i[d];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(a.set(x.dataset.precedence,x),l=x)}l&&a.set(null,l)}i=t.instance,x=i.getAttribute("data-precedence"),d=a.get(x)||l,d===l&&a.set(null,i),a.set(x,i),this.count++,l=oi.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),d?d.parentNode.insertBefore(i,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Al={$$typeof:_,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function yw(e,t,a,l,i,d,x,w){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=Bo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bo(0),this.hiddenUpdates=Bo(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=d,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function Ug(e,t,a,l,i,d,x,w,k,B,X,Z){return e=new yw(e,t,a,x,w,k,B,Z),t=1,d===!0&&(t|=24),d=Qt(3,null,null,t),e.current=d,d.stateNode=e,t=Wc(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:l,isDehydrated:a,cache:t},nu(d),e}function Bg(e){return e?(e=Yr,e):Yr}function Hg(e,t,a,l,i,d){i=Bg(i),l.context===null?l.context=i:l.pendingContext=i,l=ba(t),l.payload={element:a},d=d===void 0?null:d,d!==null&&(l.callback=d),a=xa(e,l,t),a!==null&&(Jt(a,e,t),rl(a,e,t))}function $g(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function yd(e,t){$g(e,t),(e=e.alternate)&&$g(e,t)}function Pg(e){if(e.tag===13){var t=Vr(e,67108864);t!==null&&Jt(t,e,67108864),yd(e,67108864)}}var si=!0;function bw(e,t,a,l){var i=M.T;M.T=null;var d=q.p;try{q.p=2,bd(e,t,a,l)}finally{q.p=d,M.T=i}}function xw(e,t,a,l){var i=M.T;M.T=null;var d=q.p;try{q.p=8,bd(e,t,a,l)}finally{q.p=d,M.T=i}}function bd(e,t,a,l){if(si){var i=xd(l);if(i===null)ld(e,t,l,ii,a),Vg(e,l);else if(ww(i,e,t,a,l))l.stopPropagation();else if(Vg(e,l),t&4&&-1<Sw.indexOf(e)){for(;i!==null;){var d=_r(i);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var x=Cn(d.pendingLanes);if(x!==0){var w=d;for(w.pendingLanes|=2,w.entangledLanes|=2;x;){var k=1<<31-Me(x);w.entanglements[1]|=k,x&=~k}Mn(d),(Ie&6)===0&&(Gs=_e()+500,Sl(0))}}break;case 13:w=Vr(d,2),w!==null&&Jt(w,d,2),Xs(),yd(d,2)}if(d=xd(l),d===null&&ld(e,t,l,ii,a),d===i)break;i=d}i!==null&&l.stopPropagation()}else ld(e,t,l,null,a)}}function xd(e){return e=Tc(e),Sd(e)}var ii=null;function Sd(e){if(ii=null,e=jr(e),e!==null){var t=u(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===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ii=e,null}function qg(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(Ht()){case yt:return 2;case Rr:return 8;case ha:case kt:return 32;case pn:return 268435456;default:return 32}default:return 32}}var wd=!1,Oa=null,Da=null,za=null,kl=new Map,jl=new Map,La=[],Sw="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 Vg(e,t){switch(e){case"focusin":case"focusout":Oa=null;break;case"dragenter":case"dragleave":Da=null;break;case"mouseover":case"mouseout":za=null;break;case"pointerover":case"pointerout":kl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jl.delete(t.pointerId)}}function _l(e,t,a,l,i,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:d,targetContainers:[i]},t!==null&&(t=_r(t),t!==null&&Pg(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ww(e,t,a,l,i){switch(t){case"focusin":return Oa=_l(Oa,e,t,a,l,i),!0;case"dragenter":return Da=_l(Da,e,t,a,l,i),!0;case"mouseover":return za=_l(za,e,t,a,l,i),!0;case"pointerover":var d=i.pointerId;return kl.set(d,_l(kl.get(d)||null,e,t,a,l,i)),!0;case"gotpointercapture":return d=i.pointerId,jl.set(d,_l(jl.get(d)||null,e,t,a,l,i)),!0}return!1}function Yg(e){var t=jr(e.target);if(t!==null){var a=u(t);if(a!==null){if(t=a.tag,t===13){if(t=m(a),t!==null){e.blockedOn=t,bt(e.priority,function(){if(a.tag===13){var l=Wt();l=ht(l);var i=Vr(a,l);i!==null&&Jt(i,a,l),yd(a,l)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ci(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=xd(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Nc=l,a.target.dispatchEvent(l),Nc=null}else return t=_r(a),t!==null&&Pg(t),e.blockedOn=a,!1;t.shift()}return!0}function Gg(e,t,a){ci(e)&&a.delete(t)}function Ew(){wd=!1,Oa!==null&&ci(Oa)&&(Oa=null),Da!==null&&ci(Da)&&(Da=null),za!==null&&ci(za)&&(za=null),kl.forEach(Gg),jl.forEach(Gg)}function ui(e,t){e.blockedOn===t&&(e.blockedOn=null,wd||(wd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Ew)))}var di=null;function Ig(e){di!==e&&(di=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){di===e&&(di=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Sd(l||a)===null)continue;break}var d=_r(a);d!==null&&(e.splice(t,3),t-=3,Su(d,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function Ml(e){function t(k){return ui(k,e)}Oa!==null&&ui(Oa,e),Da!==null&&ui(Da,e),za!==null&&ui(za,e),kl.forEach(t),jl.forEach(t);for(var a=0;a<La.length;a++){var l=La[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<La.length&&(a=La[0],a.blockedOn===null);)Yg(a),a.blockedOn===null&&La.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var i=a[l],d=a[l+1],x=i[We]||null;if(typeof d=="function")x||Ig(a);else if(x){var w=null;if(d&&d.hasAttribute("formAction")){if(i=d,x=d[We]||null)w=x.formAction;else if(Sd(i)!==null)continue}else w=x.action;typeof w=="function"?a[l+1]=w:(a.splice(l,3),l-=3),Ig(a)}}}function Ed(e){this._internalRoot=e}fi.prototype.render=Ed.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=Wt();Hg(a,l,e,t,null,null)},fi.prototype.unmount=Ed.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hg(e.current,2,null,e,null,null),Xs(),t[Nt]=null}};function fi(e){this._internalRoot=e}fi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Wa();e={blockedOn:null,target:e,priority:t};for(var a=0;a<La.length&&t!==0&&t<La[a].priority;a++);La.splice(a,0,e),a===0&&Yg(e)}};var Xg=r.version;if(Xg!=="19.1.0")throw Error(s(527,Xg,"19.1.0"));q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(t),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var Nw={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mi.isDisabled&&mi.supportsFiber)try{It=mi.inject(Nw),be=mi}catch{}}return Dl.createRoot=function(e,t){if(!c(e))throw Error(s(299));var a=!1,l="",i=cp,d=up,x=dp,w=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(w=t.unstable_transitionCallbacks)),t=Ug(e,1,!1,null,null,a,l,i,d,x,w,null),e[Nt]=t.current,od(e),new Ed(t)},Dl.hydrateRoot=function(e,t,a){if(!c(e))throw Error(s(299));var l=!1,i="",d=cp,x=up,w=dp,k=null,B=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(x=a.onCaughtError),a.onRecoverableError!==void 0&&(w=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(k=a.unstable_transitionCallbacks),a.formState!==void 0&&(B=a.formState)),t=Ug(e,1,!0,t,a??null,l,i,d,x,w,k,B),t.context=Bg(null),a=t.current,l=Wt(),l=ht(l),i=ba(l),i.callback=null,xa(a,i,l),a=l,t.current.lanes=a,pa(t,a),Mn(t),e[Nt]=t.current,od(e),new fi(t)},Dl.version="19.1.0",Dl}var av;function Lw(){if(av)return Rd.exports;av=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Rd.exports=zw(),Rd.exports}var Uw=Lw();const Bw="modulepreload",Hw=function(n){return"/"+n},rv={},h0=function(r,o,s){let c=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(b=>Promise.resolve(b).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=Hw(p),p in rv)return;rv[p]=!0;const b=p.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const S=document.createElement("link");if(S.rel=b?"stylesheet":Bw,b||(S.as="script"),S.crossOrigin="",S.href=p,y&&S.setAttribute("nonce",y),document.head.appendChild(S),b)return new Promise((N,T)=>{S.addEventListener("load",N),S.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${p}`)))})}))}function u(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"&&u(h.reason);return r().catch(u)})};/**
|
|
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 lv(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function $w(n={}){function r(s,c){var p;let u=(p=c.state)==null?void 0:p.masked,{pathname:m,search:h,hash:y}=u||s.location;return Jd("",{pathname:m,search:h,hash:y},c.state&&c.state.usr||null,c.state&&c.state.key||"default",u?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function o(s,c){return typeof c=="string"?c:Xl(c)}return qw(r,o,null,n)}function at(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function Sn(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function Pw(){return Math.random().toString(36).substring(2,10)}function sv(n,r){return{usr:n.state,key:n.key,idx:r,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Jd(n,r,o=null,s,c){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?Ao(r):r,state:o,key:r&&r.key||s||Pw(),unstable_mask:c}}function Xl({pathname:n="/",search:r="",hash:o=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function Ao(n){let r={};if(n){let o=n.indexOf("#");o>=0&&(r.hash=n.substring(o),n=n.substring(0,o));let s=n.indexOf("?");s>=0&&(r.search=n.substring(s),n=n.substring(0,s)),n&&(r.pathname=n)}return r}function qw(n,r,o,s={}){let{window:c=document.defaultView,v5Compat:u=!1}=s,m=c.history,h="POP",y=null,p=b();p==null&&(p=0,m.replaceState({...m.state,idx:p},""));function b(){return(m.state||{idx:null}).idx}function g(){h="POP";let R=b(),A=R==null?null:R-p;p=R,y&&y({action:h,location:E.location,delta:A})}function S(R,A){h="PUSH";let j=lv(R)?R:Jd(E.location,R,A);p=b()+1;let _=sv(j,p),U=E.createHref(j.unstable_mask||j);try{m.pushState(_,"",U)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;c.location.assign(U)}u&&y&&y({action:h,location:E.location,delta:1})}function N(R,A){h="REPLACE";let j=lv(R)?R:Jd(E.location,R,A);p=b();let _=sv(j,p),U=E.createHref(j.unstable_mask||j);m.replaceState(_,"",U),u&&y&&y({action:h,location:E.location,delta:0})}function T(R){return Vw(R)}let E={get action(){return h},get location(){return n(c,m)},listen(R){if(y)throw new Error("A history only accepts one active listener");return c.addEventListener(ov,g),y=R,()=>{c.removeEventListener(ov,g),y=null}},createHref(R){return r(c,R)},createURL:T,encodeLocation(R){let A=T(R);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:S,replace:N,go(R){return m.go(R)}};return E}function Vw(n,r=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),at(o,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:Xl(n);return s=s.replace(/ $/,"%20"),!r&&s.startsWith("//")&&(s=o+s),new URL(s,o)}function p0(n,r,o="/"){return Yw(n,r,o,!1)}function Yw(n,r,o,s){let c=typeof r=="string"?Ao(r):r,u=ca(c.pathname||"/",o);if(u==null)return null;let m=g0(n);Gw(m);let h=null;for(let y=0;h==null&&y<m.length;++y){let p=n2(u);h=e2(m[y],p,s)}return h}function g0(n,r=[],o=[],s="",c=!1){let u=(m,h,y=c,p)=>{let b={relativePath:p===void 0?m.path||"":p,caseSensitive:m.caseSensitive===!0,childrenIndex:h,route:m};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(s)&&y)return;at(b.relativePath.startsWith(s),`Absolute route path "${b.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(s.length)}let g=Pn([s,b.relativePath]),S=o.concat(b);m.children&&m.children.length>0&&(at(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),g0(m.children,r,S,g,y)),!(m.path==null&&!m.index)&&r.push({path:g,score:Ww(g,m.index),routesMeta:S})};return n.forEach((m,h)=>{var y;if(m.path===""||!((y=m.path)!=null&&y.includes("?")))u(m,h);else for(let p of v0(m.path))u(m,h,!0,p)}),r}function v0(n){let r=n.split("/");if(r.length===0)return[];let[o,...s]=r,c=o.endsWith("?"),u=o.replace(/\?$/,"");if(s.length===0)return c?[u,""]:[u];let m=v0(s.join("/")),h=[];return h.push(...m.map(y=>y===""?u:[u,y].join("/"))),c&&h.push(...m),h.map(y=>n.startsWith("/")&&y===""?"/":y)}function Gw(n){n.sort((r,o)=>r.score!==o.score?o.score-r.score:Jw(r.routesMeta.map(s=>s.childrenIndex),o.routesMeta.map(s=>s.childrenIndex)))}var Iw=/^:[\w-]+$/,Xw=3,Qw=2,Kw=1,Zw=10,Fw=-2,iv=n=>n==="*";function Ww(n,r){let o=n.split("/"),s=o.length;return o.some(iv)&&(s+=Fw),r&&(s+=Qw),o.filter(c=>!iv(c)).reduce((c,u)=>c+(Iw.test(u)?Xw:u===""?Kw:Zw),s)}function Jw(n,r){return n.length===r.length&&n.slice(0,-1).every((s,c)=>s===r[c])?n[n.length-1]-r[r.length-1]:0}function e2(n,r,o=!1){let{routesMeta:s}=n,c={},u="/",m=[];for(let h=0;h<s.length;++h){let y=s[h],p=h===s.length-1,b=u==="/"?r:r.slice(u.length)||"/",g=Oi({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},b),S=y.route;if(!g&&p&&o&&!s[s.length-1].route.index&&(g=Oi({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},b)),!g)return null;Object.assign(c,g.params),m.push({params:c,pathname:Pn([u,g.pathname]),pathnameBase:l2(Pn([u,g.pathnameBase])),route:S}),g.pathnameBase!=="/"&&(u=Pn([u,g.pathnameBase]))}return m}function Oi(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[o,s]=t2(n.path,n.caseSensitive,n.end),c=r.match(o);if(!c)return null;let u=c[0],m=u.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:s.reduce((p,{paramName:b,isOptional:g},S)=>{if(b==="*"){let T=h[S]||"";m=u.slice(0,u.length-T.length).replace(/(.)\/+$/,"$1")}const N=h[S];return g&&!N?p[b]=void 0:p[b]=(N||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:m,pattern:n}}function t2(n,r=!1,o=!0){Sn(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 s=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,h,y,p,b)=>{if(s.push({paramName:h,isOptional:y!=null}),y){let g=b.charAt(p+m.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,r?void 0:"i"),s]}function n2(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Sn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),n}}function ca(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,s=n.charAt(o);return s&&s!=="/"?null:n.slice(o)||"/"}var a2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function r2(n,r="/"){let{pathname:o,search:s="",hash:c=""}=typeof n=="string"?Ao(n):n,u;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?u=cv(o.substring(1),"/"):u=cv(o,r)):u=r,{pathname:u,search:s2(s),hash:i2(c)}}function cv(n,r){let o=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?o.length>1&&o.pop():c!=="."&&o.push(c)}),o.length>1?o.join("/"):"/"}function jd(n,r,o,s){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(s)}]. 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 o2(n){return n.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function Tf(n){let r=o2(n);return r.map((o,s)=>s===r.length-1?o.pathname:o.pathnameBase)}function ec(n,r,o,s=!1){let c;typeof n=="string"?c=Ao(n):(c={...n},at(!c.pathname||!c.pathname.includes("?"),jd("?","pathname","search",c)),at(!c.pathname||!c.pathname.includes("#"),jd("#","pathname","hash",c)),at(!c.search||!c.search.includes("#"),jd("#","search","hash",c)));let u=n===""||c.pathname==="",m=u?"/":c.pathname,h;if(m==null)h=o;else{let g=r.length-1;if(!s&&m.startsWith("..")){let S=m.split("/");for(;S[0]==="..";)S.shift(),g-=1;c.pathname=S.join("/")}h=g>=0?r[g]:"/"}let y=r2(c,h),p=m&&m!=="/"&&m.endsWith("/"),b=(u||m===".")&&o.endsWith("/");return!y.pathname.endsWith("/")&&(p||b)&&(y.pathname+="/"),y}var Pn=n=>n.join("/").replace(/\/\/+/g,"/"),l2=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),s2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,i2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,c2=class{constructor(n,r,o,s=!1){this.status=n,this.statusText=r||"",this.internal=s,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function u2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function d2(n){return n.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var y0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function b0(n,r){let o=n;if(typeof o!="string"||!a2.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let s=o,c=!1;if(y0)try{let u=new URL(window.location.href),m=o.startsWith("//")?new URL(u.protocol+o):new URL(o),h=ca(m.pathname,r);m.origin===u.origin&&h!=null?o=h+m.search+m.hash:c=!0}catch{Sn(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:c,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var x0=["POST","PUT","PATCH","DELETE"];new Set(x0);var f2=["GET",...x0];new Set(f2);var ko=v.createContext(null);ko.displayName="DataRouter";var tc=v.createContext(null);tc.displayName="DataRouterState";var m2=v.createContext(!1),S0=v.createContext({isTransitioning:!1});S0.displayName="ViewTransition";var h2=v.createContext(new Map);h2.displayName="Fetchers";var p2=v.createContext(null);p2.displayName="Await";var an=v.createContext(null);an.displayName="Navigation";var Fl=v.createContext(null);Fl.displayName="Location";var hn=v.createContext({outlet:null,matches:[],isDataRoute:!1});hn.displayName="Route";var Rf=v.createContext(null);Rf.displayName="RouteError";var w0="REACT_ROUTER_ERROR",g2="REDIRECT",v2="ROUTE_ERROR_RESPONSE";function y2(n){if(n.startsWith(`${w0}:${g2}:{`))try{let r=JSON.parse(n.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function b2(n){if(n.startsWith(`${w0}:${v2}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new c2(r.status,r.statusText,r.data)}catch{}}function x2(n,{relative:r}={}){at(jo(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:s}=v.useContext(an),{hash:c,pathname:u,search:m}=Wl(n,{relative:r}),h=u;return o!=="/"&&(h=u==="/"?o:Pn([o,u])),s.createHref({pathname:h,search:m,hash:c})}function jo(){return v.useContext(Fl)!=null}function Vn(){return at(jo(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Fl).location}var E0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function N0(n){v.useContext(an).static||v.useLayoutEffect(n)}function T0(){let{isDataRoute:n}=v.useContext(hn);return n?D2():S2()}function S2(){at(jo(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(ko),{basename:r,navigator:o}=v.useContext(an),{matches:s}=v.useContext(hn),{pathname:c}=Vn(),u=JSON.stringify(Tf(s)),m=v.useRef(!1);return N0(()=>{m.current=!0}),v.useCallback((y,p={})=>{if(Sn(m.current,E0),!m.current)return;if(typeof y=="number"){o.go(y);return}let b=ec(y,JSON.parse(u),c,p.relative==="path");n==null&&r!=="/"&&(b.pathname=b.pathname==="/"?r:Pn([r,b.pathname])),(p.replace?o.replace:o.push)(b,p.state,p)},[r,o,u,c,n])}var R0=v.createContext(null);function Z_(){return v.useContext(R0)}function w2(n){let r=v.useContext(hn).outlet;return v.useMemo(()=>r&&v.createElement(R0.Provider,{value:n},r),[r,n])}function F_(){let{matches:n}=v.useContext(hn),r=n[n.length-1];return r?r.params:{}}function Wl(n,{relative:r}={}){let{matches:o}=v.useContext(hn),{pathname:s}=Vn(),c=JSON.stringify(Tf(o));return v.useMemo(()=>ec(n,JSON.parse(c),s,r==="path"),[n,c,s,r])}function E2(n,r){return C0(n,r)}function C0(n,r,o){var R;at(jo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=v.useContext(an),{matches:c}=v.useContext(hn),u=c[c.length-1],m=u?u.params:{},h=u?u.pathname:"/",y=u?u.pathnameBase:"/",p=u&&u.route;{let A=p&&p.path||"";k0(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 b=Vn(),g;if(r){let A=typeof r=="string"?Ao(r):r;at(y==="/"||((R=A.pathname)==null?void 0:R.startsWith(y)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${A.pathname}" was given in the \`location\` prop.`),g=A}else g=b;let S=g.pathname||"/",N=S;if(y!=="/"){let A=y.replace(/^\//,"").split("/");N="/"+S.replace(/^\//,"").split("/").slice(A.length).join("/")}let T=p0(n,{pathname:N});Sn(p||T!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Sn(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=A2(T&&T.map(A=>Object.assign({},A,{params:Object.assign({},m,A.params),pathname:Pn([y,s.encodeLocation?s.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?y:Pn([y,s.encodeLocation?s.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),c,o);return r&&E?v.createElement(Fl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},E):E}function N2(){let n=O2(),r=u2(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),o=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},u={padding:"2px 4px",backgroundColor:s},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:u},"ErrorBoundary")," or"," ",v.createElement("code",{style:u},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},r),o?v.createElement("pre",{style:c},o):null,m)}var T2=v.createElement(N2,null),A0=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,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){this.props.onError?this.props.onError(n,r):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const o=b2(n.digest);o&&(n=o)}let r=n!==void 0?v.createElement(hn.Provider,{value:this.props.routeContext},v.createElement(Rf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?v.createElement(R2,{error:n},r):r}};A0.contextType=m2;var _d=new WeakMap;function R2({children:n,error:r}){let{basename:o}=v.useContext(an);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let s=y2(r.digest);if(s){let c=_d.get(r);if(c)throw c;let u=b0(s.location,o);if(y0&&!_d.get(r))if(u.isExternal||s.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:s.replace}));throw _d.set(r,m),m}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return n}function C2({routeContext:n,match:r,children:o}){let s=v.useContext(ko);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),v.createElement(hn.Provider,{value:n},o)}function A2(n,r=[],o){let s=o==null?void 0:o.state;if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(r.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let c=n,u=s==null?void 0:s.errors;if(u!=null){let b=c.findIndex(g=>g.route.id&&(u==null?void 0:u[g.route.id])!==void 0);at(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),c=c.slice(0,Math.min(c.length,b+1))}let m=!1,h=-1;if(o&&s){m=s.renderFallback;for(let b=0;b<c.length;b++){let g=c[b];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=b),g.route.id){let{loaderData:S,errors:N}=s,T=g.route.loader&&!S.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=s&&y?(b,g)=>{var S,N;y(b,{location:s.location,params:((N=(S=s.matches)==null?void 0:S[0])==null?void 0:N.params)??{},unstable_pattern:d2(s.matches),errorInfo:g})}:void 0;return c.reduceRight((b,g,S)=>{let N,T=!1,E=null,R=null;s&&(N=u&&g.route.id?u[g.route.id]:void 0,E=g.route.errorElement||T2,m&&(h<0&&S===0?(k0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,R=null):h===S&&(T=!0,R=g.route.hydrateFallbackElement||null)));let A=r.concat(c.slice(0,S+1)),j=()=>{let _;return N?_=E:T?_=R:g.route.Component?_=v.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=b,v.createElement(C2,{match:g,routeContext:{outlet:b,matches:A,isDataRoute:s!=null},children:_})};return s&&(g.route.ErrorBoundary||g.route.errorElement||S===0)?v.createElement(A0,{location:s.location,revalidation:s.revalidation,component:E,error:N,children:j(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):j()},null)}function Cf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function k2(n){let r=v.useContext(ko);return at(r,Cf(n)),r}function j2(n){let r=v.useContext(tc);return at(r,Cf(n)),r}function _2(n){let r=v.useContext(hn);return at(r,Cf(n)),r}function Af(n){let r=_2(n),o=r.matches[r.matches.length-1];return at(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function M2(){return Af("useRouteId")}function O2(){var s;let n=v.useContext(Rf),r=j2("useRouteError"),o=Af("useRouteError");return n!==void 0?n:(s=r.errors)==null?void 0:s[o]}function D2(){let{router:n}=k2("useNavigate"),r=Af("useNavigate"),o=v.useRef(!1);return N0(()=>{o.current=!0}),v.useCallback(async(c,u={})=>{Sn(o.current,E0),o.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:r,...u}))},[n,r])}var uv={};function k0(n,r,o){!r&&!uv[n]&&(uv[n]=!0,Sn(!1,o))}v.memo(z2);function z2({routes:n,future:r,state:o,isStatic:s,onError:c}){return C0(n,void 0,{state:o,isStatic:s,onError:c})}function dv({to:n,replace:r,state:o,relative:s}){at(jo(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=v.useContext(an);Sn(!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:u}=v.useContext(hn),{pathname:m}=Vn(),h=T0(),y=ec(n,Tf(u),m,s==="path"),p=JSON.stringify(y);return v.useEffect(()=>{h(JSON.parse(p),{replace:r,state:o,relative:s})},[h,p,s,r,o]),null}function L2(n){return w2(n.context)}function br(n){at(!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 U2({basename:n="/",children:r=null,location:o,navigationType:s="POP",navigator:c,static:u=!1,unstable_useTransitions:m}){at(!jo(),"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:u,unstable_useTransitions:m,future:{}}),[h,c,u,m]);typeof o=="string"&&(o=Ao(o));let{pathname:p="/",search:b="",hash:g="",state:S=null,key:N="default",unstable_mask:T}=o,E=v.useMemo(()=>{let R=ca(p,h);return R==null?null:{location:{pathname:R,search:b,hash:g,state:S,key:N,unstable_mask:T},navigationType:s}},[h,p,b,g,S,N,s,T]);return Sn(E!=null,`<Router basename="${h}"> is not able to match the URL "${p}${b}${g}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:v.createElement(an.Provider,{value:y},v.createElement(Fl.Provider,{children:r,value:E}))}function B2({children:n,location:r}){return E2(ef(n),r)}function ef(n,r=[]){let o=[];return v.Children.forEach(n,(s,c)=>{if(!v.isValidElement(s))return;let u=[...r,c];if(s.type===v.Fragment){o.push.apply(o,ef(s.props.children,u));return}at(s.type===br,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),at(!s.props.index||!s.props.children,"An index route cannot have child routes.");let m={id:s.props.id||u.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(m.children=ef(s.props.children,u)),o.push(m)}),o}var Ri="get",Ci="application/x-www-form-urlencoded";function nc(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function H2(n){return nc(n)&&n.tagName.toLowerCase()==="button"}function $2(n){return nc(n)&&n.tagName.toLowerCase()==="form"}function P2(n){return nc(n)&&n.tagName.toLowerCase()==="input"}function q2(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function V2(n,r){return n.button===0&&(!r||r==="_self")&&!q2(n)}var hi=null;function Y2(){if(hi===null)try{new FormData(document.createElement("form"),0),hi=!1}catch{hi=!0}return hi}var G2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Md(n){return n!=null&&!G2.has(n)?(Sn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ci}"`),null):n}function I2(n,r){let o,s,c,u,m;if($2(n)){let h=n.getAttribute("action");s=h?ca(h,r):null,o=n.getAttribute("method")||Ri,c=Md(n.getAttribute("enctype"))||Ci,u=new FormData(n)}else if(H2(n)||P2(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(s=y?ca(y,r):null,o=n.getAttribute("formmethod")||h.getAttribute("method")||Ri,c=Md(n.getAttribute("formenctype"))||Md(h.getAttribute("enctype"))||Ci,u=new FormData(h,n),!Y2()){let{name:p,type:b,value:g}=n;if(b==="image"){let S=p?`${p}.`:"";u.append(`${S}x`,"0"),u.append(`${S}y`,"0")}else p&&u.append(p,g)}}else{if(nc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Ri,s=null,c=Ci,m=n}return u&&c==="text/plain"&&(m=u,u=void 0),{action:s,method:o.toLowerCase(),encType:c,formData:u,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function kf(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function X2(n,r,o,s){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}_.${s}`:c.pathname=`${c.pathname}.${s}`:c.pathname==="/"?c.pathname=`_root.${s}`:r&&ca(c.pathname,r)==="/"?c.pathname=`${r.replace(/\/$/,"")}/_root.${s}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${s}`,c}async function Q2(n,r){if(n.id in r)return r[n.id];try{let o=await import(n.module);return r[n.id]=o,o}catch(o){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function K2(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 Z2(n,r,o){let s=await Promise.all(n.map(async c=>{let u=r.routes[c.route.id];if(u){let m=await Q2(u,o);return m.links?m.links():[]}return[]}));return eE(s.flat(1).filter(K2).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function fv(n,r,o,s,c,u){let m=(y,p)=>o[p]?y.route.id!==o[p].route.id:!0,h=(y,p)=>{var b;return o[p].pathname!==y.pathname||((b=o[p].route.path)==null?void 0:b.endsWith("*"))&&o[p].params["*"]!==y.params["*"]};return u==="assets"?r.filter((y,p)=>m(y,p)||h(y,p)):u==="data"?r.filter((y,p)=>{var g;let b=s.routes[y.route.id];if(!b||!b.hasLoader)return!1;if(m(y,p)||h(y,p))return!0;if(y.route.shouldRevalidate){let S=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 S=="boolean")return S}return!0}):[]}function F2(n,r,{includeHydrateFallback:o}={}){return W2(n.map(s=>{let c=r.routes[s.route.id];if(!c)return[];let u=[c.module];return c.clientActionModule&&(u=u.concat(c.clientActionModule)),c.clientLoaderModule&&(u=u.concat(c.clientLoaderModule)),o&&c.hydrateFallbackModule&&(u=u.concat(c.hydrateFallbackModule)),c.imports&&(u=u.concat(c.imports)),u}).flat(1))}function W2(n){return[...new Set(n)]}function J2(n){let r={},o=Object.keys(n).sort();for(let s of o)r[s]=n[s];return r}function eE(n,r){let o=new Set;return new Set(r),n.reduce((s,c)=>{let u=JSON.stringify(J2(c));return o.has(u)||(o.add(u),s.push({key:u,link:c})),s},[])}function j0(){let n=v.useContext(ko);return kf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function tE(){let n=v.useContext(tc);return kf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var jf=v.createContext(void 0);jf.displayName="FrameworkContext";function _0(){let n=v.useContext(jf);return kf(n,"You must render this element inside a <HydratedRouter> element"),n}function nE(n,r){let o=v.useContext(jf),[s,c]=v.useState(!1),[u,m]=v.useState(!1),{onFocus:h,onBlur:y,onMouseEnter:p,onMouseLeave:b,onTouchStart:g}=r,S=v.useRef(null);v.useEffect(()=>{if(n==="render"&&m(!0),n==="viewport"){let E=A=>{A.forEach(j=>{m(j.isIntersecting)})},R=new IntersectionObserver(E,{threshold:.5});return S.current&&R.observe(S.current),()=>{R.disconnect()}}},[n]),v.useEffect(()=>{if(s){let E=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(E)}}},[s]);let N=()=>{c(!0)},T=()=>{c(!1),m(!1)};return o?n!=="intent"?[u,S,{}]:[u,S,{onFocus:zl(h,N),onBlur:zl(y,T),onMouseEnter:zl(p,N),onMouseLeave:zl(b,T),onTouchStart:zl(g,N)}]:[!1,S,{}]}function zl(n,r){return o=>{n&&n(o),o.defaultPrevented||r(o)}}function aE({page:n,...r}){let{router:o}=j0(),s=v.useMemo(()=>p0(o.routes,n,o.basename),[o.routes,n,o.basename]);return s?v.createElement(oE,{page:n,matches:s,...r}):null}function rE(n){let{manifest:r,routeModules:o}=_0(),[s,c]=v.useState([]);return v.useEffect(()=>{let u=!1;return Z2(n,r,o).then(m=>{u||c(m)}),()=>{u=!0}},[n,r,o]),s}function oE({page:n,matches:r,...o}){let s=Vn(),{future:c,manifest:u,routeModules:m}=_0(),{basename:h}=j0(),{loaderData:y,matches:p}=tE(),b=v.useMemo(()=>fv(n,r,p,u,s,"data"),[n,r,p,u,s]),g=v.useMemo(()=>fv(n,r,p,u,s,"assets"),[n,r,p,u,s]),S=v.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let E=new Set,R=!1;if(r.forEach(j=>{var U;let _=u.routes[j.route.id];!_||!_.hasLoader||(!b.some(z=>z.route.id===j.route.id)&&j.route.id in y&&((U=m[j.route.id])!=null&&U.shouldRevalidate)||_.hasClientLoader?R=!0:E.add(j.route.id))}),E.size===0)return[];let A=X2(n,h,c.unstable_trailingSlashAwareDataRequests,"data");return R&&E.size>0&&A.searchParams.set("_routes",r.filter(j=>E.has(j.route.id)).map(j=>j.route.id).join(",")),[A.pathname+A.search]},[h,c.unstable_trailingSlashAwareDataRequests,y,s,u,b,r,n,m]),N=v.useMemo(()=>F2(g,u),[g,u]),T=rE(g);return v.createElement(v.Fragment,null,S.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:R})=>v.createElement("link",{key:E,nonce:o.nonce,...R,crossOrigin:R.crossOrigin??o.crossOrigin})))}function lE(...n){return r=>{n.forEach(o=>{typeof o=="function"?o(r):o!=null&&(o.current=r)})}}var sE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{sE&&(window.__reactRouterVersion="7.13.2")}catch{}function iE({basename:n,children:r,unstable_useTransitions:o,window:s}){let c=v.useRef();c.current==null&&(c.current=$w({window:s,v5Compat:!0}));let u=c.current,[m,h]=v.useState({action:u.action,location:u.location}),y=v.useCallback(p=>{o===!1?h(p):v.startTransition(()=>h(p))},[o]);return v.useLayoutEffect(()=>u.listen(y),[u,y]),v.createElement(U2,{basename:n,children:r,location:m.location,navigationType:m.action,navigator:u,unstable_useTransitions:o})}var M0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,O0=v.forwardRef(function({onClick:r,discover:o="render",prefetch:s="none",relative:c,reloadDocument:u,replace:m,unstable_mask:h,state:y,target:p,to:b,preventScrollReset:g,viewTransition:S,unstable_defaultShouldRevalidate:N,...T},E){let{basename:R,navigator:A,unstable_useTransitions:j}=v.useContext(an),_=typeof b=="string"&&M0.test(b),U=b0(b,R);b=U.to;let z=x2(b,{relative:c}),Y=Vn(),G=null;if(h){let ae=ec(h,[],Y.unstable_mask?Y.unstable_mask.pathname:"/",!0);R!=="/"&&(ae.pathname=ae.pathname==="/"?R:Pn([R,ae.pathname])),G=A.createHref(ae)}let[P,ee,oe]=nE(s,T),fe=dE(b,{replace:m,unstable_mask:h,state:y,target:p,preventScrollReset:g,relative:c,viewTransition:S,unstable_defaultShouldRevalidate:N,unstable_useTransitions:j});function ue(ae){r&&r(ae),ae.defaultPrevented||fe(ae)}let ie=!(U.isExternal||u),me=v.createElement("a",{...T,...oe,href:(ie?G:void 0)||U.absoluteURL||z,onClick:ie?ue:r,ref:lE(E,ee),target:p,"data-discover":!_&&o==="render"?"true":void 0});return P&&!_?v.createElement(v.Fragment,null,me,v.createElement(aE,{page:z})):me});O0.displayName="Link";var tf=v.forwardRef(function({"aria-current":r="page",caseSensitive:o=!1,className:s="",end:c=!1,style:u,to:m,viewTransition:h,children:y,...p},b){let g=Wl(m,{relative:p.relative}),S=Vn(),N=v.useContext(tc),{navigator:T,basename:E}=v.useContext(an),R=N!=null&&gE(g)&&h===!0,A=T.encodeLocation?T.encodeLocation(g).pathname:g.pathname,j=S.pathname,_=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;o||(j=j.toLowerCase(),_=_?_.toLowerCase():null,A=A.toLowerCase()),_&&E&&(_=ca(_,E)||_);const U=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let z=j===A||!c&&j.startsWith(A)&&j.charAt(U)==="/",Y=_!=null&&(_===A||!c&&_.startsWith(A)&&_.charAt(A.length)==="/"),G={isActive:z,isPending:Y,isTransitioning:R},P=z?r:void 0,ee;typeof s=="function"?ee=s(G):ee=[s,z?"active":null,Y?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let oe=typeof u=="function"?u(G):u;return v.createElement(O0,{...p,"aria-current":P,className:ee,ref:b,style:oe,to:m,viewTransition:h},typeof y=="function"?y(G):y)});tf.displayName="NavLink";var cE=v.forwardRef(({discover:n="render",fetcherKey:r,navigate:o,reloadDocument:s,replace:c,state:u,method:m=Ri,action:h,onSubmit:y,relative:p,preventScrollReset:b,viewTransition:g,unstable_defaultShouldRevalidate:S,...N},T)=>{let{unstable_useTransitions:E}=v.useContext(an),R=hE(),A=pE(h,{relative:p}),j=m.toLowerCase()==="get"?"get":"post",_=typeof h=="string"&&M0.test(h),U=z=>{if(y&&y(z),z.defaultPrevented)return;z.preventDefault();let Y=z.nativeEvent.submitter,G=(Y==null?void 0:Y.getAttribute("formmethod"))||m,P=()=>R(Y||z.currentTarget,{fetcherKey:r,method:G,navigate:o,replace:c,state:u,relative:p,preventScrollReset:b,viewTransition:g,unstable_defaultShouldRevalidate:S});E&&o!==!1?v.startTransition(()=>P()):P()};return v.createElement("form",{ref:T,method:j,action:A,onSubmit:s?y:U,...N,"data-discover":!_&&n==="render"?"true":void 0})});cE.displayName="Form";function uE(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function D0(n){let r=v.useContext(ko);return at(r,uE(n)),r}function dE(n,{target:r,replace:o,unstable_mask:s,state:c,preventScrollReset:u,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:y,unstable_useTransitions:p}={}){let b=T0(),g=Vn(),S=Wl(n,{relative:m});return v.useCallback(N=>{if(V2(N,r)){N.preventDefault();let T=o!==void 0?o:Xl(g)===Xl(S),E=()=>b(n,{replace:T,unstable_mask:s,state:c,preventScrollReset:u,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:y});p?v.startTransition(()=>E()):E()}},[g,b,S,o,s,c,r,n,u,m,h,y,p])}var fE=0,mE=()=>`__${String(++fE)}__`;function hE(){let{router:n}=D0("useSubmit"),{basename:r}=v.useContext(an),o=M2(),s=n.fetch,c=n.navigate;return v.useCallback(async(u,m={})=>{let{action:h,method:y,encType:p,formData:b,body:g}=I2(u,r);if(m.navigate===!1){let S=m.fetcherKey||mE();await s(S,o,m.action||h,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,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:b,body:g,formMethod:m.method||y,formEncType:m.encType||p,replace:m.replace,state:m.state,fromRouteId:o,flushSync:m.flushSync,viewTransition:m.viewTransition})},[s,c,r,o])}function pE(n,{relative:r}={}){let{basename:o}=v.useContext(an),s=v.useContext(hn);at(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),u={...Wl(n||".",{relative:r})},m=Vn();if(n==null){u.search=m.search;let h=new URLSearchParams(u.search),y=h.getAll("index");if(y.some(b=>b==="")){h.delete("index"),y.filter(g=>g).forEach(g=>h.append("index",g));let b=h.toString();u.search=b?`?${b}`:""}}return(!n||n===".")&&c.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(u.pathname=u.pathname==="/"?o:Pn([o,u.pathname])),Xl(u)}function gE(n,{relative:r}={}){let o=v.useContext(S0);at(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=D0("useViewTransitionState"),c=Wl(n,{relative:r});if(!o.isTransitioning)return!1;let u=ca(o.currentLocation.pathname,s)||o.currentLocation.pathname,m=ca(o.nextLocation.pathname,s)||o.nextLocation.pathname;return Oi(c.pathname,m)!=null||Oi(c.pathname,u)!=null}var Jl=m0();const z0=f0(Jl),vE="/api",mv="X-Tunnel-Authorization";function yE(n){const r=n.toLowerCase().replace(/\.$/,"");return r==="devtunnels.ms"||r.endsWith(".devtunnels.ms")}function bE(){var r,o;return typeof window>"u"||!yE(window.location.hostname)?void 0:((o=(r=window.__MESHY_RUNTIME_CONFIG__)==null?void 0:r.dashboardTunnelAuthorization)==null?void 0:o.trim())||void 0}function xE(n){const r=new Headers(n==null?void 0:n.headers);(n==null?void 0:n.body)!==void 0&&n.body!==null&&!r.has("Content-Type")&&r.set("Content-Type","application/json");const s=bE();return s&&!r.has(mv)&&r.set(mv,s),r}function SE(n,r){if(typeof n=="string"&&n)return n;if(n&&typeof n=="object"){const o=n,s=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return o.error;if(typeof(s==null?void 0:s.message)=="string"&&s.message)return s.message;if(typeof o.message=="string"&&o.message)return o.message}return r}async function we(n,r){const o=await fetch(`${vE}${n}`,{...r,headers:xE(r)});if(!o.ok){const s=await o.json().catch(()=>o.statusText);throw new Error(SE(s,`HTTP ${o.status}`))}return o.json()}function _o(n,r){return we(n,{...r,cache:"no-store"})}function wE(){return we("/system/info")}function W_(n){return we("/system/transport",{method:"POST",body:JSON.stringify({type:n})})}function L0(n){return we("/system/runtime/restart",{method:"POST",body:JSON.stringify(n)})}function EE(){return we("/system/runtime/stop",{method:"POST"})}function NE(){return we("/cluster/state")}function J_(){return we("/cluster/promote",{method:"POST"})}function e3(n){return we("/cluster/connect",{method:"POST",body:JSON.stringify(n)})}function t3(){return we("/cluster/disconnect",{method:"POST"})}function TE(n){return we(`/node-operations/${n}`)}async function RE(n={}){const r=new URLSearchParams;n.nodeId&&r.set("nodeId",n.nodeId),n.status&&r.set("status",n.status),n.kind&&r.set("kind",n.kind);const o=r.toString();return(await we(`/node-operations${o?`?${o}`:""}`)).operations}function CE(n,r){return we(`/nodes/${n}/agents/${r}/upgrade`,{method:"POST"})}function AE(n,r){return we(`/nodes/${n}/runtime/restart`,{method:"POST",body:JSON.stringify(r)})}async function n3(){return(await we("/devboxes")).devboxes}function a3(n,r){return we(`/nodes/${n}/devbox/configure`,{method:"POST",body:JSON.stringify({devbox:r})})}function r3(n){return we(`/nodes/${n}/devbox/status`)}function o3(n){return we(`/nodes/${n}/devbox/start`,{method:"POST"})}function l3(n,r){return we(`/nodes/${n}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:r})})}function s3(n,r={}){const o=new URLSearchParams;r.path&&o.set("path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),100))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),r.directoriesOnly!==void 0&&o.set("directoriesOnly",String(r.directoriesOnly)),r.allowAbsolute!==void 0&&o.set("allowAbsolute",String(r.allowAbsolute));const s=o.toString();return we(`/nodes/${n}/workdir/tree${s?`?${s}`:""}`)}function i3(n,r={}){const o=new URLSearchParams;r.path&&o.set("path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),20))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),r.allowAbsolute!==void 0&&o.set("allowAbsolute",String(r.allowAbsolute));const s=o.toString();return we(`/nodes/${n}/workdir/branch${s?`?${s}`:""}`)}function c3(n,r){const o=new URLSearchParams;return o.set("agent",r.agent),o.set("limit",String(Math.min(Math.max(1,r.limit),100))),we(`/nodes/${n}/native-sessions?${o.toString()}`)}function u3(n,r){return we(`/nodes/${n}/workdir/branch`,{method:"POST",body:JSON.stringify({path:r.path,branchName:r.branchName,startPoint:r.startPoint,limit:r.limit,offset:r.offset,allowAbsolute:r.allowAbsolute})})}function d3(n,r){return we(`/nodes/${n}/terminal/sessions`,{method:"POST",body:JSON.stringify(r)})}function f3(n){return we(`/nodes/${n}/terminal/sessions`)}function m3(n,r){return we(`/nodes/${n}/terminal/sessions/${r}`)}function h3(n,r){return we(`/nodes/${n}/terminal/sessions/${r}/stop`,{method:"POST"})}function _f(n,r){n.set("scope",r.kind),r.kind==="project"&&n.set("projectPath",r.projectPath)}function p3(n,r){var s;const o=new URLSearchParams;return _f(o,r.scope),(s=r.agents)!=null&&s.length&&o.set("agents",r.agents.join(",")),we(`/nodes/${encodeURIComponent(n)}/capabilities?${o.toString()}`)}function g3(n,r,o){const s=new URLSearchParams;o&&_f(s,o);const c=s.toString();return we(`/nodes/${encodeURIComponent(n)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`)}function v3(n,r,o){const s=new URLSearchParams;o&&_f(s,o);const c=s.toString();return we(`/nodes/${encodeURIComponent(n)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`,{method:"DELETE"})}function y3(n){return we("/capabilities/conflict-check",{method:"POST",body:JSON.stringify(n)})}function b3(n){return we("/capabilities/share",{method:"POST",body:JSON.stringify(n)})}async function x3(n){const r=new URLSearchParams;if(n!=null&&n.status&&r.set("status",n.status),n!=null&&n.assignedTo&&r.set("assignedTo",n.assignedTo),n!=null&&n.priority&&r.set("priority",n.priority),n!=null&&n.limit){const s=Math.min(Math.max(1,n.limit),100);r.set("limit",String(s))}if(n!=null&&n.offset&&r.set("offset",String(n.offset)),n!=null&&n.projectPath&&r.set("projectPath",n.projectPath),n!=null&&n.cursor&&r.set("cursor",n.cursor),(n==null?void 0:n.completedLimitPerProject)!==void 0){const s=Math.min(Math.max(1,n.completedLimitPerProject),100);r.set("completedLimitPerProject",String(s))}const o=r.toString();return we(`/tasks${o?`?${o}`:""}`)}function S3(n){return we(`/tasks/${n}`)}function w3(n){return we("/tasks",{method:"POST",body:JSON.stringify(n)})}function E3(n){return we("/tasks/import-session",{method:"POST",body:JSON.stringify(n)})}function N3(n){return we("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:n})})}function T3(n){return we("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:n})})}function R3(n){return we(`/tasks/${n}/cancel`,{method:"POST"})}function C3(n){return we(`/tasks/${n}/retry`,{method:"POST"})}function A3(n,r){return we(`/tasks/${n}/logs`)}function k3(n,r){return we(`/tasks/${n}/message`,{method:"POST",body:JSON.stringify({content:r})})}function j3(n,r){return we(`/tasks/${n}/queued-messages/${encodeURIComponent(r)}`,{method:"DELETE"})}function _3(n,r){return we(`/tasks/${n}/share`,{method:"POST",body:JSON.stringify(r)})}function M3(n){return we(`/tasks/${n}/share`,{method:"DELETE"})}function O3(n){return _o(`/shared/conversations/${encodeURIComponent(n)}`)}function D3(n,r){return _o(`/shared/conversations/${encodeURIComponent(n)}/logs`)}function z3(n){return _o(`/shared/conversations/${encodeURIComponent(n)}/output`)}function L3(n,r="."){return _o(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}function U3(n,r){return _o(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}function B3(n,r){return _o(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(r?{path:r}:{})})}function U0(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}function H3(n){return we(`/tasks/${n}/output`)}function $3(n,r="."){return we(`/tasks/${n}/output/tree?path=${encodeURIComponent(r)}`)}function P3(n,r){return we(`/tasks/${n}/output/content?path=${encodeURIComponent(r)}`)}function q3(n,r){return we(`/tasks/${n}/output/preview-sessions`,{method:"POST",body:JSON.stringify(U0(r))})}function V3(n,r){return we(`/nodes/${n}/preview-sessions`,{method:"POST",body:JSON.stringify(U0(r))})}function Y3(n){return we(`/tasks/${n}/output/diff`)}function kE({hasStarted:n,enabled:r}){return r&&!n}function jE(n,r,o=!0){const s=v.useRef(n),c=v.useRef(!1);v.useEffect(()=>{s.current=n},[n]),v.useEffect(()=>{if(!o)return;const u=()=>s.current();kE({hasStarted:c.current,enabled:o})&&(c.current=!0,u());const m=setInterval(u,r);return()=>clearInterval(m)},[r,o])}function _E(n){return n?n.replace(/\/+$/,""):""}function ME(n){const r=n??"/api";return r?r.startsWith("/")?r.replace(/\/+$/,""):`/${r.replace(/\/+$/,"")}`:""}function hv(...n){const r=new Headers;for(const o of n){if(!o)continue;new Headers(o).forEach((c,u)=>r.set(u,c))}return r}var OE=class extends Error{constructor(r,o){super(r);ot(this,"status");ot(this,"statusText");ot(this,"code");ot(this,"details");ot(this,"body");this.name="MeshyApiError",this.status=o.status,this.statusText=o.statusText,this.code=o.code,this.details=o.details,this.body=o.body}};function DE(n,r){if(typeof n=="string"&&n)return{message:n};if(n&&typeof n=="object"){const o=n,s=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return{message:o.error};if(typeof(s==null?void 0:s.message)=="string"&&s.message)return{message:s.message,code:s.code,details:s.details};if(typeof o.message=="string"&&o.message)return{message:o.message}}return{message:r}}function Ll(n,r){const o=r.toString();return o?`${n}?${o}`:n}function en(n,r,o){o!==void 0&&n.set(r,String(o))}function pv(n){return n===null||Array.isArray(n)||typeof n=="object"&&n!==null&&!(n instanceof ArrayBuffer)}function zE(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}var LE=class{constructor(n={}){ot(this,"baseUrl");ot(this,"apiPrefix");ot(this,"defaultHeaders");ot(this,"credentials");ot(this,"fetchImpl");ot(this,"config");const r=n.fetchImpl??((o,s)=>globalThis.fetch(o,s));if(!r)throw new Error("MeshyClient requires a fetch implementation");this.fetchImpl=r,this.baseUrl=_E(n.baseUrl),this.apiPrefix=ME(n.apiPrefix),this.defaultHeaders=hv(n.defaultHeaders),this.credentials=n.credentials,this.config=n}buildApiUrl(n){const r=n.startsWith("/")?n:`/${n}`;return`${this.baseUrl}${this.apiPrefix}${r}`}buildApiurl(n){return this.buildApiUrl(n)}async request(n,r={}){var b,g,S,N;const o=r.timeoutMs??this.config.timeoutMs,s=o?new AbortController:null;let c=null;s&&(c=setTimeout(()=>s.abort(),o));const u=await((g=(b=this.config).tokenProvider)==null?void 0:g.call(b)),m=await((N=(S=this.config).headersProvider)==null?void 0:N.call(S)),h=r.credentials??this.config.credentials,y=hv({Accept:"application/json"},pv(r.body)?{"Content-Type":"application/json"}:void 0,this.config.defaultHeaders,m,u?{Authorization:`Bearer ${u}`}:void 0,r.headers),p=pv(r.body)?JSON.stringify(r.body):r.body;try{const T=await this.fetchImpl(this.buildApiUrl(n),{...r,headers:y,body:p,credentials:h,signal:r.signal??(s==null?void 0:s.signal)});if(!T.ok){const E=await T.json().catch(()=>T.statusText),R=DE(E,`HTTP ${T.status}`);throw new OE(R.message,{status:T.status,statusText:T.statusText,code:R.code,details:R.details,body:E})}return T.status===204?void 0:await T.json()}finally{c&&clearTimeout(c)}}getSystemInfo(){return this.request("/system/info")}getSystemMetrics(){return this.request("/system/metrics")}switchTransport(n){return this.request("/system/transport",{method:"POST",body:{type:n}})}restartRuntime(n){return this.request("/system/runtime/restart",{method:"POST",body:n})}stopRuntime(){return this.request("/system/runtime/stop",{method:"POST"})}getClusterState(){return this.request("/cluster/state")}promoteToLeader(){return this.request("/cluster/promote",{method:"POST"})}joinCluster(n){return this.request("/cluster/join",{method:"POST",body:n})}connectToCluster(n){return this.request("/cluster/connect",{method:"POST",body:n})}disconnectFromCluster(){return this.request("/cluster/disconnect",{method:"POST"})}async getNodes(n={}){const r=new URLSearchParams;return en(r,"status",n.status),en(r,"capability",n.capability),(await this.request(Ll("/nodes",r))).nodes}getNode(n){return this.request(`/nodes/${encodeURIComponent(n)}`)}getNodeStatus(n){return this.request(`/nodes/${encodeURIComponent(n)}/status`)}removeNode(n){return this.request(`/nodes/${encodeURIComponent(n)}`,{method:"DELETE"})}leaveCluster(n){return this.request("/cluster/leave",{method:"POST",body:{nodeId:n}})}updateNode(n,r){return this.request(`/nodes/${encodeURIComponent(n)}`,{method:"PATCH",body:r})}toggleNodeDevTunnel(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/devtunnel`,{method:"POST",body:{enabled:r}})}getNodeOperation(n){return this.request(`/node-operations/${encodeURIComponent(n)}`)}async listNodeOperations(n={}){const r=new URLSearchParams;return en(r,"nodeId",n.nodeId),en(r,"status",n.status),en(r,"kind",n.kind),(await this.request(Ll("/node-operations",r))).operations}upgradeNodeAgent(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/agents/${r}/upgrade`,{method:"POST"})}restartNodeRuntime(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/runtime/restart`,{method:"POST",body:r})}getNodeWorkDirTree(n,r={}){const o=new URLSearchParams;return en(o,"path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),100))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),en(o,"directoriesOnly",r.directoriesOnly),en(o,"allowAbsolute",r.allowAbsolute),this.request(Ll(`/nodes/${encodeURIComponent(n)}/workdir/tree`,o))}getNodeWorkDirBranchInfo(n,r={}){const o=new URLSearchParams;return en(o,"path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),20))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),en(o,"allowAbsolute",r.allowAbsolute),this.request(Ll(`/nodes/${encodeURIComponent(n)}/workdir/branch`,o))}createNodeWorkDirBranch(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/workdir/branch`,{method:"POST",body:r})}getNodeNativeSessions(n,r){const o=new URLSearchParams;return o.set("agent",r.agent),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),100))),this.request(`/nodes/${encodeURIComponent(n)}/native-sessions?${o.toString()}`)}startNodeTerminalSession(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/terminal/sessions`,{method:"POST",body:r})}listNodeTerminalSessions(n){return this.request(`/nodes/${encodeURIComponent(n)}/terminal/sessions`)}getNodeTerminalSession(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/terminal/sessions/${encodeURIComponent(r)}`)}stopNodeTerminalSession(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/terminal/sessions/${encodeURIComponent(r)}/stop`,{method:"POST"})}async getTasks(n={}){const r=new URLSearchParams;return en(r,"status",n.status),en(r,"assignedTo",n.assignedTo),en(r,"priority",n.priority),n.limit&&r.set("limit",String(Math.min(Math.max(1,n.limit),100))),n.offset&&r.set("offset",String(n.offset)),(await this.request(Ll("/tasks",r))).tasks}getTask(n){return this.request(`/tasks/${encodeURIComponent(n)}`)}createTask(n){return this.request("/tasks",{method:"POST",body:n})}attachNativeSession(n){return this.request("/tasks/import-session",{method:"POST",body:n})}deleteTask(n){return this.request(`/tasks/${encodeURIComponent(n)}`,{method:"DELETE"})}batchDeleteTasks(n){return this.request("/tasks/batch/delete",{method:"POST",body:{ids:n}})}batchArchiveTasks(n){return this.request("/tasks/batch/archive",{method:"POST",body:{ids:n}})}archiveTask(n){return this.request(`/tasks/${encodeURIComponent(n)}`,{method:"PATCH",body:{status:"archived"}})}cancelTask(n){return this.request(`/tasks/${encodeURIComponent(n)}/cancel`,{method:"POST"})}retryTask(n){return this.request(`/tasks/${encodeURIComponent(n)}/retry`,{method:"POST"})}assignTask(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/assign`,{method:"POST",body:{nodeId:r}})}getTaskLogs(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/logs${r!==void 0?`?after=${r}`:""}`)}sendTaskMessage(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/message`,{method:"POST",body:{content:r}})}createTaskShare(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/share`,{method:"POST",body:r})}deleteTaskShare(n){return this.request(`/tasks/${encodeURIComponent(n)}/share`,{method:"DELETE"})}getSharedConversation(n){return this.request(`/shared/conversations/${encodeURIComponent(n)}`)}getSharedConversationLogs(n,r){return this.request(`/shared/conversations/${encodeURIComponent(n)}/logs${r!==void 0?`?after=${r}`:""}`)}getSharedTaskOutput(n){return this.request(`/shared/conversations/${encodeURIComponent(n)}/output`)}getSharedTaskOutputTree(n,r="."){return this.request(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}getSharedTaskOutputContent(n,r){return this.request(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}createSharedTaskPreviewSession(n,r){return this.request(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:r?{path:r}:{}})}getTaskOutput(n){return this.request(`/tasks/${encodeURIComponent(n)}/output`)}getTaskOutputTree(n,r="."){return this.request(`/tasks/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}getTaskOutputContent(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}createTaskPreviewSession(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:zE(r)})}getTaskOutputDiff(n){return this.request(`/tasks/${encodeURIComponent(n)}/output/diff`)}},UE=new LE,BE=["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"],HE=0,$E=class{constructor(n){ot(this,"client");ot(this,"eventTypes");ot(this,"eventSourceFactory");ot(this,"pollIntervalMs");ot(this,"poll");ot(this,"eventSource",null);ot(this,"pollTimer",null);ot(this,"listeners",new Map);ot(this,"connectionListeners",new Map);ot(this,"listenerId",0);ot(this,"connected",!1);this.client=n.client,this.eventTypes=n.eventTypes??BE,this.eventSourceFactory=n.eventSourceFactory??(PE(n.client)?void 0:VE()),this.pollIntervalMs=n.pollIntervalMs??1e4,this.poll=n.poll}start(){if(!(this.eventSource||this.pollTimer)){if(this.eventSourceFactory){const n=new this.eventSourceFactory(qE(this.client,"/events"),this.client.credentials==="include"?{withCredentials:!0}:void 0);this.eventSource=n,n.onopen=()=>this.setConnected(!0),n.onerror=()=>{this.setConnected(!1),this.startPolling()};for(const r of this.eventTypes)n.addEventListener(r,o=>this.emit({id:String(++HE),type:r,data:JSON.parse(o.data),timestamp:Date.now()}));return}this.startPolling()}}stop(){var n;(n=this.eventSource)==null||n.close(),this.eventSource=null,this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null),this.setConnected(!1)}subscribe(n,r){const o=++this.listenerId;return this.listeners.set(o,{pattern:n,callback:r}),()=>this.listeners.delete(o)}onConnectionChange(n){const r=++this.listenerId;return this.connectionListeners.set(r,n),n(this.connected),()=>this.connectionListeners.delete(r)}isConnected(){return this.connected}emit(n){for(const{pattern:r,callback:o}of this.listeners.values())n.type.startsWith(r)&&o(n)}setConnected(n){if(this.connected!==n){this.connected=n;for(const r of this.connectionListeners.values())r(n)}}startPolling(){!this.poll||this.pollTimer||(this.pollTimer=setInterval(()=>{var n;(n=this.poll)==null||n.call(this).then(()=>this.setConnected(!0)).catch(()=>{this.setConnected(!1)})},this.pollIntervalMs))}};function PE(n){return n.defaultHeaders.has("x-tunnel-authorization")}function qE(n,r){const o=n.buildApiUrl??n.buildApiurl;if(!o)throw new Error("MeshyClient is missing buildApiUrl");return o.call(n,r)}function VE(){return globalThis.EventSource}function YE(n=50){const[r,o]=v.useState([]),[s,c]=v.useState(!1),u=v.useRef(null),m=v.useRef(0),h=v.useRef(new Map);v.useEffect(()=>{const b=new $E({client:UE});u.current=b;const g=b.subscribe("",N=>{const T=N;o(E=>[T,...E].slice(0,n));for(const[,{pattern:E,callback:R}]of h.current)T.type.startsWith(E)&&R(T)}),S=b.onConnectionChange(c);return b.start(),()=>{g(),S(),b.stop(),u.current=null}},[n]);const y=v.useCallback((b,g)=>{const S=++m.current;return h.current.set(S,{pattern:b,callback:g}),()=>{h.current.delete(S)}},[]),p=v.useCallback(()=>o([]),[]);return{events:r,connected:s,subscribe:y,clearEvents:p}}const GE=1e4,IE=6e4,XE=GE,QE=250,KE=new Set(["node.joined","node.left","task.created","task.assigned","task.deleted"]),ZE=new Set(["task.created","task.assigned","task.status","task.deleted"]);function FE(n){return n?IE:XE}function G3(n){return KE.has(n)}function WE(n){return ZE.has(n)}function JE(n,r){if(!r)return!0;const o=n.leaderId,s=n.term,c=n.nodeCount;return typeof o!="string"&&o!==null||typeof s!="number"||typeof c!="number"?!0:r.leaderId!==o||r.term!==s||r.nodeCount!==c}function eN(n,r,o){if(n==="node.joined"||n==="node.left"||n!=="node.status")return!0;const s=r.nodeId,c=r.status;return typeof s!="string"||typeof c!="string"?!0:o.get(s)!==c}function I3(n,r){const o=r.taskId,s=r.status;if(typeof o!="string"||typeof s!="string")return n;let c=!1;const u=n.map(m=>{if(m.id!==o)return m;c=!0;const h="result"in r?r.result:s==="completed"?null:m.result,y="error"in r?r.error:s==="completed"?null:m.error;return{...m,status:s,result:h,error:y}});return c?u:n}function X3(n,r){const o=r.taskId;if(typeof o!="string")return n;const s=n.filter(c=>c.id!==o);return s.length===n.length?n:s}const B0=v.createContext(null);function tN({children:n}){const[r,o]=v.useState(null),[s,c]=v.useState(null),[u,m]=v.useState(!0),[h,y]=v.useState(null),p=v.useRef(null),b=v.useRef(null),g=v.useRef(new Map),{events:S,connected:N,subscribe:T}=YE(),E=v.useCallback(async()=>{var A;try{const[j,_]=await Promise.all([NE(),wE()]),U=j,z=_.nodeId??_.id,Y=U.nodes??[],G=Y.find(oe=>oe.id===z)??{id:z,name:_.name,endpoint:_.endpoint,role:_.role,status:_.status,capabilities:_.capabilities,joinedAt:_.joinedAt,lastHeartbeat:_.lastHeartbeat},P=U.leaderId?Y.find(oe=>oe.id===U.leaderId)??null:null,ee={leader:P?{id:P.id,name:P.name,endpoint:P.endpoint,...P.dashboardOrigin?{dashboardOrigin:P.dashboardOrigin}:{}}:null,term:U.term??0,nodes:Y,self:G,taskSummary:U.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}};b.current={leaderId:((A=ee.leader)==null?void 0:A.id)??null,term:ee.term,nodeCount:ee.nodes.length},g.current=new Map(ee.nodes.map(oe=>[oe.id,oe.status])),g.current.set(ee.self.id,ee.self.status),o(ee),c(_),y(null)}catch(j){y(j instanceof Error?j.message:"Failed to fetch cluster state")}finally{m(!1)}},[]),R=v.useCallback(()=>{p.current===null&&(p.current=window.setTimeout(()=>{p.current=null,E()},QE))},[E]);return jE(E,FE(N)),v.useEffect(()=>()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},[]),v.useEffect(()=>{const A=[T("cluster",j=>{JE(j.data,b.current)&&R()}),T("election",R),T("node",j=>{eN(j.type,j.data,g.current)&&R()}),T("transport",R),T("task",j=>{WE(j.type)&&R()})];return()=>A.forEach(j=>j())},[T,R]),f.jsx(B0.Provider,{value:{cluster:r,systemInfo:s,events:S,sseConnected:N,subscribe:T,refresh:E,loading:u,error:h},children:n})}function H0(){const n=v.useContext(B0);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 $0=(...n)=>n.filter((r,o,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===o).join(" ").trim();/**
|
|
67
|
+
* @license lucide-react v1.7.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const nN=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 aN=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,s)=>s?s.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 gv=n=>{const r=aN(n);return r.charAt(0).toUpperCase()+r.slice(1)};/**
|
|
82
|
+
* @license lucide-react v1.7.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/var 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 rN=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},oN=v.createContext({}),lN=()=>v.useContext(oN),sN=v.forwardRef(({color:n,size:r,strokeWidth:o,absoluteStrokeWidth:s,className:c="",children:u,iconNode:m,...h},y)=>{const{size:p=24,strokeWidth:b=2,absoluteStrokeWidth:g=!1,color:S="currentColor",className:N=""}=lN()??{},T=s??g?Number(o??b)*24/Number(r??p):o??b;return v.createElement("svg",{ref:y,...Od,width:r??p??Od.width,height:r??p??Od.height,stroke:n??S,strokeWidth:T,className:$0("lucide",N,c),...!u&&!rN(h)&&{"aria-hidden":"true"},...h},[...m.map(([E,R])=>v.createElement(E,R)),...Array.isArray(u)?u:[u]])});/**
|
|
92
|
+
* @license lucide-react v1.7.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const je=(n,r)=>{const o=v.forwardRef(({className:s,...c},u)=>v.createElement(sN,{ref:u,iconNode:r,className:$0(`lucide-${nN(gv(n))}`,`lucide-${n}`,s),...c}));return o.displayName=gv(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 iN=[["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"}]],Di=je("activity",iN);/**
|
|
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 cN=[["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"}]],uN=je("book-open",cN);/**
|
|
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 dN=[["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"}]],P0=je("bot",dN);/**
|
|
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 fN=[["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"}]],mN=je("cable",fN);/**
|
|
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 hN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],zi=je("check",hN);/**
|
|
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 pN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ql=je("chevron-down",pN);/**
|
|
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 gN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],nf=je("chevron-right",gN);/**
|
|
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 vN=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],yN=je("chevron-up",vN);/**
|
|
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 bN=[["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"}]],pi=je("circle-alert",bN);/**
|
|
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 xN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Pl=je("circle-check",xN);/**
|
|
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 SN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],vv=je("circle-dot",SN);/**
|
|
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 wN=[["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"}]],EN=je("circle-x",wN);/**
|
|
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 NN=[["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"}]],TN=je("copy",NN);/**
|
|
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"}]],CN=je("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 AN=[["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"}]],kN=je("external-link",AN);/**
|
|
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 jN=[["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"}]],_N=je("folder-tree",jN);/**
|
|
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 MN=[["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"}]],ON=je("folder",MN);/**
|
|
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 DN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],zN=je("info",DN);/**
|
|
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 LN=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],UN=je("loader-circle",LN);/**
|
|
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 BN=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],q0=je("message-square-text",BN);/**
|
|
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 HN=[["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"}]],$N=je("monitor-cog",HN);/**
|
|
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 PN=[["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"}]],V0=je("monitor",PN);/**
|
|
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 qN=[["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"}]],Y0=je("moon",qN);/**
|
|
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 VN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],YN=je("plus",VN);/**
|
|
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 GN=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],IN=je("power",GN);/**
|
|
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 XN=[["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"}]],QN=je("radio",XN);/**
|
|
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 KN=[["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"}]],af=je("refresh-cw",KN);/**
|
|
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 ZN=[["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"}]],yv=je("rocket",ZN);/**
|
|
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 FN=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],WN=je("save",FN);/**
|
|
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 JN=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],eT=je("search",JN);/**
|
|
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 tT=[["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"}]],G0=je("server",tT);/**
|
|
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 nT=[["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"}]],aT=je("settings",nT);/**
|
|
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 rT=[["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"}]],oT=je("shield",rT);/**
|
|
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 lT=[["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"}]],sT=je("sparkles",lT);/**
|
|
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 iT=[["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"}]],I0=je("sun",iT);/**
|
|
272
|
+
* @license lucide-react v1.7.0 - ISC
|
|
273
|
+
*
|
|
274
|
+
* This source code is licensed under the ISC license.
|
|
275
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
+
*/const cT=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],X0=je("terminal",cT);/**
|
|
277
|
+
* @license lucide-react v1.7.0 - ISC
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the ISC license.
|
|
280
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
+
*/const uT=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],dT=je("trash-2",uT);/**
|
|
282
|
+
* @license lucide-react v1.7.0 - ISC
|
|
283
|
+
*
|
|
284
|
+
* This source code is licensed under the ISC license.
|
|
285
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
+
*/const fT=[["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"}]],mT=je("wifi-off",fT);/**
|
|
287
|
+
* @license lucide-react v1.7.0 - ISC
|
|
288
|
+
*
|
|
289
|
+
* This source code is licensed under the ISC license.
|
|
290
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
+
*/const hT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Q0=je("x",hT);function K0(n){var r,o,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(r=0;r<c;r++)n[r]&&(o=K0(n[r]))&&(s&&(s+=" "),s+=o)}else for(o in n)n[o]&&(s&&(s+=" "),s+=o);return s}function Z0(){for(var n,r,o=0,s="",c=arguments.length;o<c;o++)(n=arguments[o])&&(r=K0(n))&&(s&&(s+=" "),s+=r);return s}const pT=(n,r)=>{const o=new Array(n.length+r.length);for(let s=0;s<n.length;s++)o[s]=n[s];for(let s=0;s<r.length;s++)o[n.length+s]=r[s];return o},gT=(n,r)=>({classGroupId:n,validator:r}),F0=(n=new Map,r=null,o)=>({nextPart:n,validators:r,classGroupId:o}),Li="-",bv=[],vT="arbitrary..",yT=n=>{const r=xT(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return bT(m);const h=m.split(Li),y=h[0]===""&&h.length>1?1:0;return W0(h,y,r)},getConflictingClassGroupIds:(m,h)=>{if(h){const y=s[m],p=o[m];return y?p?pT(p,y):y:p||bv}return o[m]||bv}}},W0=(n,r,o)=>{if(n.length-r===0)return o.classGroupId;const c=n[r],u=o.nextPart.get(c);if(u){const p=W0(n,r+1,u);if(p)return p}const m=o.validators;if(m===null)return;const h=r===0?n.join(Li):n.slice(r).join(Li),y=m.length;for(let p=0;p<y;p++){const b=m[p];if(b.validator(h))return b.classGroupId}},bT=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=n.slice(1,-1),o=r.indexOf(":"),s=r.slice(0,o);return s?vT+s:void 0})(),xT=n=>{const{theme:r,classGroups:o}=n;return ST(o,r)},ST=(n,r)=>{const o=F0();for(const s in n){const c=n[s];Mf(c,o,s,r)}return o},Mf=(n,r,o,s)=>{const c=n.length;for(let u=0;u<c;u++){const m=n[u];wT(m,r,o,s)}},wT=(n,r,o,s)=>{if(typeof n=="string"){ET(n,r,o);return}if(typeof n=="function"){NT(n,r,o,s);return}TT(n,r,o,s)},ET=(n,r,o)=>{const s=n===""?r:J0(r,n);s.classGroupId=o},NT=(n,r,o,s)=>{if(RT(n)){Mf(n(s),r,o,s);return}r.validators===null&&(r.validators=[]),r.validators.push(gT(o,n))},TT=(n,r,o,s)=>{const c=Object.entries(n),u=c.length;for(let m=0;m<u;m++){const[h,y]=c[m];Mf(y,J0(r,h),o,s)}},J0=(n,r)=>{let o=n;const s=r.split(Li),c=s.length;for(let u=0;u<c;u++){const m=s[u];let h=o.nextPart.get(m);h||(h=F0(),o.nextPart.set(m,h)),o=h}return o},RT=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,CT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),s=Object.create(null);const c=(u,m)=>{o[u]=m,r++,r>n&&(r=0,s=o,o=Object.create(null))};return{get(u){let m=o[u];if(m!==void 0)return m;if((m=s[u])!==void 0)return c(u,m),m},set(u,m){u in o?o[u]=m:c(u,m)}}},rf="!",xv=":",AT=[],Sv=(n,r,o,s,c)=>({modifiers:n,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:s,isExternal:c}),kT=n=>{const{prefix:r,experimentalParseClassName:o}=n;let s=c=>{const u=[];let m=0,h=0,y=0,p;const b=c.length;for(let E=0;E<b;E++){const R=c[E];if(m===0&&h===0){if(R===xv){u.push(c.slice(y,E)),y=E+1;continue}if(R==="/"){p=E;continue}}R==="["?m++:R==="]"?m--:R==="("?h++:R===")"&&h--}const g=u.length===0?c:c.slice(y);let S=g,N=!1;g.endsWith(rf)?(S=g.slice(0,-1),N=!0):g.startsWith(rf)&&(S=g.slice(1),N=!0);const T=p&&p>y?p-y:void 0;return Sv(u,N,S,T)};if(r){const c=r+xv,u=s;s=m=>m.startsWith(c)?u(m.slice(c.length)):Sv(AT,!1,m,void 0,!0)}if(o){const c=s;s=u=>o({className:u,parseClassName:c})}return s},jT=n=>{const r=new Map;return n.orderSensitiveModifiers.forEach((o,s)=>{r.set(o,1e6+s)}),o=>{const s=[];let c=[];for(let u=0;u<o.length;u++){const m=o[u],h=m[0]==="[",y=r.has(m);h||y?(c.length>0&&(c.sort(),s.push(...c),c=[]),s.push(m)):c.push(m)}return c.length>0&&(c.sort(),s.push(...c)),s}},_T=n=>({cache:CT(n.cacheSize),parseClassName:kT(n),sortModifiers:jT(n),...yT(n)}),MT=/\s+/,OT=(n,r)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:c,sortModifiers:u}=r,m=[],h=n.trim().split(MT);let y="";for(let p=h.length-1;p>=0;p-=1){const b=h[p],{isExternal:g,modifiers:S,hasImportantModifier:N,baseClassName:T,maybePostfixModifierPosition:E}=o(b);if(g){y=b+(y.length>0?" "+y:y);continue}let R=!!E,A=s(R?T.substring(0,E):T);if(!A){if(!R){y=b+(y.length>0?" "+y:y);continue}if(A=s(T),!A){y=b+(y.length>0?" "+y:y);continue}R=!1}const j=S.length===0?"":S.length===1?S[0]:u(S).join(":"),_=N?j+rf:j,U=_+A;if(m.indexOf(U)>-1)continue;m.push(U);const z=c(A,R);for(let Y=0;Y<z.length;++Y){const G=z[Y];m.push(_+G)}y=b+(y.length>0?" "+y:y)}return y},DT=(...n)=>{let r=0,o,s,c="";for(;r<n.length;)(o=n[r++])&&(s=ey(o))&&(c&&(c+=" "),c+=s);return c},ey=n=>{if(typeof n=="string")return n;let r,o="";for(let s=0;s<n.length;s++)n[s]&&(r=ey(n[s]))&&(o&&(o+=" "),o+=r);return o},zT=(n,...r)=>{let o,s,c,u;const m=y=>{const p=r.reduce((b,g)=>g(b),n());return o=_T(p),s=o.cache.get,c=o.cache.set,u=h,h(y)},h=y=>{const p=s(y);if(p)return p;const b=OT(y,o);return c(y,b),b};return u=m,(...y)=>u(DT(...y))},LT=[],wt=n=>{const r=o=>o[n]||LT;return r.isThemeGetter=!0,r},ty=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ny=/^\((?:(\w[\w-]*):)?(.+)\)$/i,UT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,BT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,HT=/\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$/,$T=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,PT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ba=n=>UT.test(n),ke=n=>!!n&&!Number.isNaN(Number(n)),Ha=n=>!!n&&Number.isInteger(Number(n)),Dd=n=>n.endsWith("%")&&ke(n.slice(0,-1)),ia=n=>BT.test(n),ay=()=>!0,VT=n=>HT.test(n)&&!$T.test(n),Of=()=>!1,YT=n=>PT.test(n),GT=n=>qT.test(n),IT=n=>!pe(n)&&!ge(n),XT=n=>Ia(n,ly,Of),pe=n=>ty.test(n),gr=n=>Ia(n,sy,VT),wv=n=>Ia(n,tR,ke),QT=n=>Ia(n,cy,ay),KT=n=>Ia(n,iy,Of),Ev=n=>Ia(n,ry,Of),ZT=n=>Ia(n,oy,GT),gi=n=>Ia(n,uy,YT),ge=n=>ny.test(n),Ul=n=>Tr(n,sy),FT=n=>Tr(n,iy),Nv=n=>Tr(n,ry),WT=n=>Tr(n,ly),JT=n=>Tr(n,oy),vi=n=>Tr(n,uy,!0),eR=n=>Tr(n,cy,!0),Ia=(n,r,o)=>{const s=ty.exec(n);return s?s[1]?r(s[1]):o(s[2]):!1},Tr=(n,r,o=!1)=>{const s=ny.exec(n);return s?s[1]?r(s[1]):o:!1},ry=n=>n==="position"||n==="percentage",oy=n=>n==="image"||n==="url",ly=n=>n==="length"||n==="size"||n==="bg-size",sy=n=>n==="length",tR=n=>n==="number",iy=n=>n==="family-name",cy=n=>n==="number"||n==="weight",uy=n=>n==="shadow",nR=()=>{const n=wt("color"),r=wt("font"),o=wt("text"),s=wt("font-weight"),c=wt("tracking"),u=wt("leading"),m=wt("breakpoint"),h=wt("container"),y=wt("spacing"),p=wt("radius"),b=wt("shadow"),g=wt("inset-shadow"),S=wt("text-shadow"),N=wt("drop-shadow"),T=wt("blur"),E=wt("perspective"),R=wt("aspect"),A=wt("ease"),j=wt("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...U(),ge,pe],Y=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],P=()=>[ge,pe,y],ee=()=>[Ba,"full","auto",...P()],oe=()=>[Ha,"none","subgrid",ge,pe],fe=()=>["auto",{span:["full",Ha,ge,pe]},Ha,ge,pe],ue=()=>[Ha,"auto",ge,pe],ie=()=>["auto","min","max","fr",ge,pe],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...P()],q=()=>[Ba,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],K=()=>[Ba,"screen","full","dvw","lvw","svw","min","max","fit",...P()],de=()=>[Ba,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],C=()=>[n,ge,pe],V=()=>[...U(),Nv,Ev,{position:[ge,pe]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",WT,XT,{size:[ge,pe]}],W=()=>[Dd,Ul,gr],se=()=>["","none","full",p,ge,pe],re=()=>["",ke,Ul,gr],ce=()=>["solid","dashed","dotted","double"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[ke,Dd,Nv,Ev],ve=()=>["","none",T,ge,pe],ye=()=>["none",ke,ge,pe],Se=()=>["none",ke,ge,pe],Be=()=>[ke,ge,pe],$e=()=>[Ba,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ia],breakpoint:[ia],color:[ay],container:[ia],"drop-shadow":[ia],ease:["in","out","in-out"],font:[IT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ia],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ia],shadow:[ia],spacing:["px",ke],text:[ia],"text-shadow":[ia],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ba,pe,ge,R]}],container:["container"],columns:[{columns:[ke,pe,ge,h]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{"inset-s":ee(),start:ee()}],end:[{"inset-e":ee(),end:ee()}],"inset-bs":[{"inset-bs":ee()}],"inset-be":[{"inset-be":ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[Ha,"auto",ge,pe]}],basis:[{basis:[Ba,"full","auto",h,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,Ba,"auto","initial","none",pe]}],grow:[{grow:["",ke,ge,pe]}],shrink:[{shrink:["",ke,ge,pe]}],order:[{order:[Ha,"first","last","none",ge,pe]}],"grid-cols":[{"grid-cols":oe()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":ue()}],"col-end":[{"col-end":ue()}],"grid-rows":[{"grid-rows":oe()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":ue()}],"row-end":[{"row-end":ue()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...K()]}],"min-inline-size":[{"min-inline":["auto",...K()]}],"max-inline-size":[{"max-inline":["none",...K()]}],"block-size":[{block:["auto",...de()]}],"min-block-size":[{"min-block":["auto",...de()]}],"max-block-size":[{"max-block":["none",...de()]}],w:[{w:[h,"screen",...q()]}],"min-w":[{"min-w":[h,"screen","none",...q()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[m]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",o,Ul,gr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,eR,QT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Dd,pe]}],"font-family":[{font:[FT,KT,r]}],"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":[ke,"none",ge,wv]}],leading:[{leading:[u,...P()]}],"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:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",ge,gr]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[ke,"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:P()}],"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:V()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ha,ge,pe],radial:["",ge,pe],conic:[Ha,ge,pe]},JT,ZT]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ce(),"hidden","none"]}],"divide-style":[{divide:[...ce(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,ge,pe]}],"outline-w":[{outline:["",ke,Ul,gr]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",b,vi,gi]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",g,vi,gi]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[ke,gr]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",S,vi,gi]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[ke,ge,pe]}],"mix-blend":[{"mix-blend":[...le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ke]}],"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":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"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":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"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":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"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":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"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":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"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":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"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":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"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":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"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":U()}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"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":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,pe]}],filter:[{filter:["","none",ge,pe]}],blur:[{blur:ve()}],brightness:[{brightness:[ke,ge,pe]}],contrast:[{contrast:[ke,ge,pe]}],"drop-shadow":[{"drop-shadow":["","none",N,vi,gi]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",ke,ge,pe]}],"hue-rotate":[{"hue-rotate":[ke,ge,pe]}],invert:[{invert:["",ke,ge,pe]}],saturate:[{saturate:[ke,ge,pe]}],sepia:[{sepia:["",ke,ge,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,pe]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[ke,ge,pe]}],"backdrop-contrast":[{"backdrop-contrast":[ke,ge,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,ge,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,ge,pe]}],"backdrop-invert":[{"backdrop-invert":["",ke,ge,pe]}],"backdrop-opacity":[{"backdrop-opacity":[ke,ge,pe]}],"backdrop-saturate":[{"backdrop-saturate":[ke,ge,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,ge,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"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:[ke,"initial",ge,pe]}],ease:[{ease:["linear","initial",A,ge,pe]}],delay:[{delay:[ke,ge,pe]}],animate:[{animate:["none",j,ge,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ge,pe]}],"perspective-origin":[{"perspective-origin":z()}],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:Be()}],"skew-x":[{"skew-x":Be()}],"skew-y":[{"skew-y":Be()}],transform:[{transform:[ge,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$e()}],"translate-x":[{"translate-x":$e()}],"translate-y":[{"translate-y":$e()}],"translate-z":[{"translate-z":$e()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",...C()]}],"stroke-w":[{stroke:[ke,Ul,gr,wv]}],stroke:[{stroke:["none",...C()]}],"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"]}},aR=zT(nR);function ne(...n){return aR(Z0(n))}function rR(n){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}const oR=n=>{switch(n){case"success":return iR;case"info":return uR;case"warning":return cR;case"error":return dR;default:return null}},lR=Array(12).fill(0),sR=({visible:n,className:r})=>te.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},te.createElement("div",{className:"sonner-spinner"},lR.map((o,s)=>te.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),iR=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},te.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),cR=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},te.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),uR=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},te.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),dR=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},te.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),fR=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},te.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),te.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),mR=()=>{const[n,r]=te.useState(document.hidden);return te.useEffect(()=>{const o=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),n};let of=1;class hR{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{const o=this.subscribers.indexOf(r);this.subscribers.splice(o,1)}),this.publish=r=>{this.subscribers.forEach(o=>o(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var o;const{message:s,...c}=r,u=typeof(r==null?void 0:r.id)=="number"||((o=r.id)==null?void 0:o.length)>0?r.id:of++,m=this.toasts.find(y=>y.id===u),h=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),m?this.toasts=this.toasts.map(y=>y.id===u?(this.publish({...y,...r,id:u,title:s}),{...y,...r,id:u,dismissible:h,title:s}):y):this.addToast({title:s,...c,dismissible:h,id:u}),u},this.dismiss=r=>(r?(this.dismissedToasts.add(r),requestAnimationFrame(()=>this.subscribers.forEach(o=>o({id:r,dismiss:!0})))):this.toasts.forEach(o=>{this.subscribers.forEach(s=>s({id:o.id,dismiss:!0}))}),r),this.message=(r,o)=>this.create({...o,message:r}),this.error=(r,o)=>this.create({...o,message:r,type:"error"}),this.success=(r,o)=>this.create({...o,type:"success",message:r}),this.info=(r,o)=>this.create({...o,type:"info",message:r}),this.warning=(r,o)=>this.create({...o,type:"warning",message:r}),this.loading=(r,o)=>this.create({...o,type:"loading",message:r}),this.promise=(r,o)=>{if(!o)return;let s;o.loading!==void 0&&(s=this.create({...o,promise:r,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));const c=Promise.resolve(r instanceof Function?r():r);let u=s!==void 0,m;const h=c.then(async p=>{if(m=["resolve",p],te.isValidElement(p))u=!1,this.create({id:s,type:"default",message:p});else if(gR(p)&&!p.ok){u=!1;const g=typeof o.error=="function"?await o.error(`HTTP error! status: ${p.status}`):o.error,S=typeof o.description=="function"?await o.description(`HTTP error! status: ${p.status}`):o.description,T=typeof g=="object"&&!te.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:S,...T})}else if(p instanceof Error){u=!1;const g=typeof o.error=="function"?await o.error(p):o.error,S=typeof o.description=="function"?await o.description(p):o.description,T=typeof g=="object"&&!te.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:S,...T})}else if(o.success!==void 0){u=!1;const g=typeof o.success=="function"?await o.success(p):o.success,S=typeof o.description=="function"?await o.description(p):o.description,T=typeof g=="object"&&!te.isValidElement(g)?g:{message:g};this.create({id:s,type:"success",description:S,...T})}}).catch(async p=>{if(m=["reject",p],o.error!==void 0){u=!1;const b=typeof o.error=="function"?await o.error(p):o.error,g=typeof o.description=="function"?await o.description(p):o.description,N=typeof b=="object"&&!te.isValidElement(b)?b:{message:b};this.create({id:s,type:"error",description:g,...N})}}).finally(()=>{u&&(this.dismiss(s),s=void 0),o.finally==null||o.finally.call(o)}),y=()=>new Promise((p,b)=>h.then(()=>m[0]==="reject"?b(m[1]):p(m[1])).catch(b));return typeof s!="string"&&typeof s!="number"?{unwrap:y}:Object.assign(s,{unwrap:y})},this.custom=(r,o)=>{const s=(o==null?void 0:o.id)||of++;return this.create({jsx:r(s),id:s,...o}),s},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Gt=new hR,pR=(n,r)=>{const o=(r==null?void 0:r.id)||of++;return Gt.addToast({title:n,...r,id:o}),o},gR=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",vR=pR,yR=()=>Gt.toasts,bR=()=>Gt.getActiveToasts(),Ve=Object.assign(vR,{success:Gt.success,info:Gt.info,warning:Gt.warning,error:Gt.error,custom:Gt.custom,message:Gt.message,promise:Gt.promise,dismiss:Gt.dismiss,loading:Gt.loading},{getHistory:yR,getToasts:bR});rR("[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 yi(n){return n.label!==void 0}const xR=3,SR="24px",wR="16px",Tv=4e3,ER=356,NR=14,TR=45,RR=200;function On(...n){return n.filter(Boolean).join(" ")}function CR(n){const[r,o]=n.split("-"),s=[];return r&&s.push(r),o&&s.push(o),s}const AR=n=>{var r,o,s,c,u,m,h,y,p;const{invert:b,toast:g,unstyled:S,interacting:N,setHeights:T,visibleToasts:E,heights:R,index:A,toasts:j,expanded:_,removeToast:U,defaultRichColors:z,closeButton:Y,style:G,cancelButtonStyle:P,actionButtonStyle:ee,className:oe="",descriptionClassName:fe="",duration:ue,position:ie,gap:me,expandByDefault:ae,classNames:M,icons:q,closeButtonAriaLabel:K="Close toast"}=n,[de,C]=te.useState(null),[V,F]=te.useState(null),[I,W]=te.useState(!1),[se,re]=te.useState(!1),[ce,le]=te.useState(!1),[J,ve]=te.useState(!1),[ye,Se]=te.useState(!1),[Be,$e]=te.useState(0),[Ge,vt]=te.useState(0),_e=te.useRef(g.duration||ue||Tv),Ht=te.useRef(null),yt=te.useRef(null),Rr=A===0,ha=A+1<=E,kt=g.type,pn=g.dismissible!==!1,Lo=g.className||"",Cr=g.descriptionClassName||"",It=te.useMemo(()=>R.findIndex(Re=>Re.toastId===g.id)||0,[R,g.id]),be=te.useMemo(()=>{var Re;return(Re=g.closeButton)!=null?Re:Y},[g.closeButton,Y]),Pe=te.useMemo(()=>g.duration||ue||Tv,[g.duration,ue]),Me=te.useRef(0),it=te.useRef(0),Tn=te.useRef(0),Rn=te.useRef(null),[Gn,Ar]=ie.split("-"),Cn=te.useMemo(()=>R.reduce((Re,ct,ht)=>ht>=It?Re:Re+ct.height,0),[R,It]),Za=mR(),Fa=g.invert||b,Uo=kt==="loading";it.current=te.useMemo(()=>It*me+Cn,[It,Cn]),te.useEffect(()=>{_e.current=Pe},[Pe]),te.useEffect(()=>{W(!0)},[]),te.useEffect(()=>{const Re=yt.current;if(Re){const ct=Re.getBoundingClientRect().height;return vt(ct),T(ht=>[{toastId:g.id,height:ct,position:g.position},...ht]),()=>T(ht=>ht.filter(jt=>jt.toastId!==g.id))}},[T,g.id]),te.useLayoutEffect(()=>{if(!I)return;const Re=yt.current,ct=Re.style.height;Re.style.height="auto";const ht=Re.getBoundingClientRect().height;Re.style.height=ct,vt(ht),T(jt=>jt.find(bt=>bt.toastId===g.id)?jt.map(bt=>bt.toastId===g.id?{...bt,height:ht}:bt):[{toastId:g.id,height:ht,position:g.position},...jt])},[I,g.title,g.description,T,g.id,g.jsx,g.action,g.cancel]);const gn=te.useCallback(()=>{re(!0),$e(it.current),T(Re=>Re.filter(ct=>ct.toastId!==g.id)),setTimeout(()=>{U(g)},RR)},[g,U,T,it]);te.useEffect(()=>{if(g.promise&&kt==="loading"||g.duration===1/0||g.type==="loading")return;let Re;return _||N||Za?(()=>{if(Tn.current<Me.current){const jt=new Date().getTime()-Me.current;_e.current=_e.current-jt}Tn.current=new Date().getTime()})():(()=>{_e.current!==1/0&&(Me.current=new Date().getTime(),Re=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),gn()},_e.current))})(),()=>clearTimeout(Re)},[_,N,g,kt,Za,gn]),te.useEffect(()=>{g.delete&&(gn(),g.onDismiss==null||g.onDismiss.call(g,g))},[gn,g.delete]);function ns(){var Re;if(q!=null&&q.loading){var ct;return te.createElement("div",{className:On(M==null?void 0:M.loader,g==null||(ct=g.classNames)==null?void 0:ct.loader,"sonner-loader"),"data-visible":kt==="loading"},q.loading)}return te.createElement(sR,{className:On(M==null?void 0:M.loader,g==null||(Re=g.classNames)==null?void 0:Re.loader),visible:kt==="loading"})}const Bo=g.icon||(q==null?void 0:q[kt])||oR(kt);var pa,as;return te.createElement("li",{tabIndex:0,ref:yt,className:On(oe,Lo,M==null?void 0:M.toast,g==null||(r=g.classNames)==null?void 0:r.toast,M==null?void 0:M.default,M==null?void 0:M[kt],g==null||(o=g.classNames)==null?void 0:o[kt]),"data-sonner-toast":"","data-rich-colors":(pa=g.richColors)!=null?pa:z,"data-styled":!(g.jsx||g.unstyled||S),"data-mounted":I,"data-promise":!!g.promise,"data-swiped":ye,"data-removed":se,"data-visible":ha,"data-y-position":Gn,"data-x-position":Ar,"data-index":A,"data-front":Rr,"data-swiping":ce,"data-dismissible":pn,"data-type":kt,"data-invert":Fa,"data-swipe-out":J,"data-swipe-direction":V,"data-expanded":!!(_||ae&&I),"data-testid":g.testId,style:{"--index":A,"--toasts-before":A,"--z-index":j.length-A,"--offset":`${se?Be:it.current}px`,"--initial-height":ae?"auto":`${Ge}px`,...G,...g.style},onDragEnd:()=>{le(!1),C(null),Rn.current=null},onPointerDown:Re=>{Re.button!==2&&(Uo||!pn||(Ht.current=new Date,$e(it.current),Re.target.setPointerCapture(Re.pointerId),Re.target.tagName!=="BUTTON"&&(le(!0),Rn.current={x:Re.clientX,y:Re.clientY})))},onPointerUp:()=>{var Re,ct,ht;if(J||!pn)return;Rn.current=null;const jt=Number(((Re=yt.current)==null?void 0:Re.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Wa=Number(((ct=yt.current)==null?void 0:ct.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),bt=new Date().getTime()-((ht=Ht.current)==null?void 0:ht.getTime()),ut=de==="x"?jt:Wa,dt=Math.abs(ut)/bt;if(Math.abs(ut)>=TR||dt>.11){$e(it.current),g.onDismiss==null||g.onDismiss.call(g,g),F(de==="x"?jt>0?"right":"left":Wa>0?"down":"up"),gn(),ve(!0);return}else{var We,Nt;(We=yt.current)==null||We.style.setProperty("--swipe-amount-x","0px"),(Nt=yt.current)==null||Nt.style.setProperty("--swipe-amount-y","0px")}Se(!1),le(!1),C(null)},onPointerMove:Re=>{var ct,ht,jt;if(!Rn.current||!pn||((ct=window.getSelection())==null?void 0:ct.toString().length)>0)return;const bt=Re.clientY-Rn.current.y,ut=Re.clientX-Rn.current.x;var dt;const We=(dt=n.swipeDirections)!=null?dt:CR(ie);!de&&(Math.abs(ut)>1||Math.abs(bt)>1)&&C(Math.abs(ut)>Math.abs(bt)?"x":"y");let Nt={x:0,y:0};const kr=In=>1/(1.5+Math.abs(In)/20);if(de==="y"){if(We.includes("top")||We.includes("bottom"))if(We.includes("top")&&bt<0||We.includes("bottom")&&bt>0)Nt.y=bt;else{const In=bt*kr(bt);Nt.y=Math.abs(In)<Math.abs(bt)?In:bt}}else if(de==="x"&&(We.includes("left")||We.includes("right")))if(We.includes("left")&&ut<0||We.includes("right")&&ut>0)Nt.x=ut;else{const In=ut*kr(ut);Nt.x=Math.abs(In)<Math.abs(ut)?In:ut}(Math.abs(Nt.x)>0||Math.abs(Nt.y)>0)&&Se(!0),(ht=yt.current)==null||ht.style.setProperty("--swipe-amount-x",`${Nt.x}px`),(jt=yt.current)==null||jt.style.setProperty("--swipe-amount-y",`${Nt.y}px`)}},be&&!g.jsx&&kt!=="loading"?te.createElement("button",{"aria-label":K,"data-disabled":Uo,"data-close-button":!0,onClick:Uo||!pn?()=>{}:()=>{gn(),g.onDismiss==null||g.onDismiss.call(g,g)},className:On(M==null?void 0:M.closeButton,g==null||(s=g.classNames)==null?void 0:s.closeButton)},(as=q==null?void 0:q.close)!=null?as:fR):null,(kt||g.icon||g.promise)&&g.icon!==null&&((q==null?void 0:q[kt])!==null||g.icon)?te.createElement("div",{"data-icon":"",className:On(M==null?void 0:M.icon,g==null||(c=g.classNames)==null?void 0:c.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||ns():null,g.type!=="loading"?Bo:null):null,te.createElement("div",{"data-content":"",className:On(M==null?void 0:M.content,g==null||(u=g.classNames)==null?void 0:u.content)},te.createElement("div",{"data-title":"",className:On(M==null?void 0:M.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?te.createElement("div",{"data-description":"",className:On(fe,Cr,M==null?void 0:M.description,g==null||(h=g.classNames)==null?void 0:h.description)},typeof g.description=="function"?g.description():g.description):null),te.isValidElement(g.cancel)?g.cancel:g.cancel&&yi(g.cancel)?te.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||P,onClick:Re=>{yi(g.cancel)&&pn&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,Re),gn())},className:On(M==null?void 0:M.cancelButton,g==null||(y=g.classNames)==null?void 0:y.cancelButton)},g.cancel.label):null,te.isValidElement(g.action)?g.action:g.action&&yi(g.action)?te.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||ee,onClick:Re=>{yi(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,Re),!Re.defaultPrevented&&gn())},className:On(M==null?void 0:M.actionButton,g==null||(p=g.classNames)==null?void 0:p.actionButton)},g.action.label):null)};function Rv(){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 kR(n,r){const o={};return[n,r].forEach((s,c)=>{const u=c===1,m=u?"--mobile-offset":"--offset",h=u?wR:SR;function y(p){["top","right","bottom","left"].forEach(b=>{o[`${m}-${b}`]=typeof p=="number"?`${p}px`:p})}typeof s=="number"||typeof s=="string"?y(s):typeof s=="object"?["top","right","bottom","left"].forEach(p=>{s[p]===void 0?o[`${m}-${p}`]=h:o[`${m}-${p}`]=typeof s[p]=="number"?`${s[p]}px`:s[p]}):y(h)}),o}const jR=te.forwardRef(function(r,o){const{id:s,invert:c,position:u="bottom-right",hotkey:m=["altKey","KeyT"],expand:h,closeButton:y,className:p,offset:b,mobileOffset:g,theme:S="light",richColors:N,duration:T,style:E,visibleToasts:R=xR,toastOptions:A,dir:j=Rv(),gap:_=NR,icons:U,containerAriaLabel:z="Notifications"}=r,[Y,G]=te.useState([]),P=te.useMemo(()=>s?Y.filter(I=>I.toasterId===s):Y.filter(I=>!I.toasterId),[Y,s]),ee=te.useMemo(()=>Array.from(new Set([u].concat(P.filter(I=>I.position).map(I=>I.position)))),[P,u]),[oe,fe]=te.useState([]),[ue,ie]=te.useState(!1),[me,ae]=te.useState(!1),[M,q]=te.useState(S!=="system"?S:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=te.useRef(null),de=m.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=te.useRef(null),V=te.useRef(!1),F=te.useCallback(I=>{G(W=>{var se;return(se=W.find(re=>re.id===I.id))!=null&&se.delete||Gt.dismiss(I.id),W.filter(({id:re})=>re!==I.id)})},[]);return te.useEffect(()=>Gt.subscribe(I=>{if(I.dismiss){requestAnimationFrame(()=>{G(W=>W.map(se=>se.id===I.id?{...se,delete:!0}:se))});return}setTimeout(()=>{z0.flushSync(()=>{G(W=>{const se=W.findIndex(re=>re.id===I.id);return se!==-1?[...W.slice(0,se),{...W[se],...I},...W.slice(se+1)]:[I,...W]})})})}),[Y]),te.useEffect(()=>{if(S!=="system"){q(S);return}if(S==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?q("dark"):q("light")),typeof window>"u")return;const I=window.matchMedia("(prefers-color-scheme: dark)");try{I.addEventListener("change",({matches:W})=>{q(W?"dark":"light")})}catch{I.addListener(({matches:se})=>{try{q(se?"dark":"light")}catch(re){console.error(re)}})}},[S]),te.useEffect(()=>{Y.length<=1&&ie(!1)},[Y]),te.useEffect(()=>{const I=W=>{var se;if(m.every(le=>W[le]||W.code===le)){var ce;ie(!0),(ce=K.current)==null||ce.focus()}W.code==="Escape"&&(document.activeElement===K.current||(se=K.current)!=null&&se.contains(document.activeElement))&&ie(!1)};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[m]),te.useEffect(()=>{if(K.current)return()=>{C.current&&(C.current.focus({preventScroll:!0}),C.current=null,V.current=!1)}},[K.current]),te.createElement("section",{ref:o,"aria-label":`${z} ${de}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ee.map((I,W)=>{var se;const[re,ce]=I.split("-");return P.length?te.createElement("ol",{key:I,dir:j==="auto"?Rv():j,tabIndex:-1,ref:K,className:p,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":re,"data-x-position":ce,style:{"--front-toast-height":`${((se=oe[0])==null?void 0:se.height)||0}px`,"--width":`${ER}px`,"--gap":`${_}px`,...E,...kR(b,g)},onBlur:le=>{V.current&&!le.currentTarget.contains(le.relatedTarget)&&(V.current=!1,C.current&&(C.current.focus({preventScroll:!0}),C.current=null))},onFocus:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||V.current||(V.current=!0,C.current=le.relatedTarget)},onMouseEnter:()=>ie(!0),onMouseMove:()=>ie(!0),onMouseLeave:()=>{me||ie(!1)},onDragEnd:()=>ie(!1),onPointerDown:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||ae(!0)},onPointerUp:()=>ae(!1)},P.filter(le=>!le.position&&W===0||le.position===I).map((le,J)=>{var ve,ye;return te.createElement(AR,{key:le.id,icons:U,index:J,toast:le,defaultRichColors:N,duration:(ve=A==null?void 0:A.duration)!=null?ve:T,className:A==null?void 0:A.className,descriptionClassName:A==null?void 0:A.descriptionClassName,invert:c,visibleToasts:R,closeButton:(ye=A==null?void 0:A.closeButton)!=null?ye:y,interacting:me,position:I,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:F,toasts:P.filter(Se=>Se.position==le.position),heights:oe.filter(Se=>Se.position==le.position),setHeights:fe,expandByDefault:h,gap:_,expanded:ue,swipeDirections:r.swipeDirections})})):null}))}),Cv=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Av=Z0,dy=(n,r)=>o=>{var s;if((r==null?void 0:r.variants)==null)return Av(n,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:c,defaultVariants:u}=r,m=Object.keys(c).map(p=>{const b=o==null?void 0:o[p],g=u==null?void 0:u[p];if(b===null)return null;const S=Cv(b)||Cv(g);return c[p][S]}),h=o&&Object.entries(o).reduce((p,b)=>{let[g,S]=b;return S===void 0||(p[g]=S),p},{}),y=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((p,b)=>{let{class:g,className:S,...N}=b;return Object.entries(N).every(T=>{let[E,R]=T;return Array.isArray(R)?R.includes({...u,...h}[E]):{...u,...h}[E]===R})?[...p,g,S]:p},[]);return Av(n,m,y,o==null?void 0:o.class,o==null?void 0:o.className)},_R=dy("inline-flex items-center rounded-sm border px-1.5 py-0 text-[10px] font-semibold leading-4 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 Et({className:n,variant:r,...o}){return f.jsx("div",{className:ne(_R({variant:r}),n),...o})}const Dn=v.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:ne("rounded-sm border border-border/70 bg-card/80 text-card-foreground shadow-none",n),...r}));Dn.displayName="Card";const zn=v.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:ne("flex flex-col space-y-1 p-3",n),...r}));zn.displayName="CardHeader";const Ln=v.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:ne("text-[12px] font-semibold leading-none tracking-tight",n),...r}));Ln.displayName="CardTitle";const Un=v.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:ne("text-[10px] text-muted-foreground",n),...r}));Un.displayName="CardDescription";const Bn=v.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:ne("p-3 pt-0",n),...r}));Bn.displayName="CardContent";const MR=v.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:ne("flex items-center p-3 pt-0",n),...r}));MR.displayName="CardFooter";function kv(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function Df(...n){return r=>{let o=!1;const s=n.map(c=>{const u=kv(c,r);return!o&&typeof u=="function"&&(o=!0),u});if(o)return()=>{for(let c=0;c<s.length;c++){const u=s[c];typeof u=="function"?u():kv(n[c],null)}}}}function tt(...n){return v.useCallback(Df(...n),n)}var OR=Symbol.for("react.lazy"),Ui=Nf[" use ".trim().toString()];function DR(n){return typeof n=="object"&&n!==null&&"then"in n}function fy(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===OR&&"_payload"in n&&DR(n._payload)}function zR(n){const r=UR(n),o=v.forwardRef((s,c)=>{let{children:u,...m}=s;fy(u)&&typeof Ui=="function"&&(u=Ui(u._payload));const h=v.Children.toArray(u),y=h.find(HR);if(y){const p=y.props.children,b=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(r,{...m,ref:c,children:v.isValidElement(p)?v.cloneElement(p,void 0,b):null})}return f.jsx(r,{...m,ref:c,children:u})});return o.displayName=`${n}.Slot`,o}var LR=zR("Slot");function UR(n){const r=v.forwardRef((o,s)=>{let{children:c,...u}=o;if(fy(c)&&typeof Ui=="function"&&(c=Ui(c._payload)),v.isValidElement(c)){const m=PR(c),h=$R(u,c.props);return c.type!==v.Fragment&&(h.ref=s?Df(s,m):m),v.cloneElement(c,h)}return v.Children.count(c)>1?v.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var BR=Symbol("radix.slottable");function HR(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===BR}function $R(n,r){const o={...r};for(const s in r){const c=n[s],u=r[s];/^on[A-Z]/.test(s)?c&&u?o[s]=(...h)=>{const y=u(...h);return c(...h),y}:c&&(o[s]=c):s==="style"?o[s]={...c,...u}:s==="className"&&(o[s]=[c,u].filter(Boolean).join(" "))}return{...n,...o}}function PR(n){var s,c;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}const zf=dy("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-sm text-[11px] 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-8 px-3 py-1.5",sm:"h-7 rounded-sm px-2 text-[10px]",lg:"h-10 rounded-md px-5 text-xs",icon:"h-8 w-8 rounded-sm"}},defaultVariants:{variant:"default",size:"default"}}),Bt=v.forwardRef(({className:n,variant:r,size:o,asChild:s=!1,...c},u)=>{const m=s?LR:"button";return f.jsx(m,{className:ne(zf({variant:r,size:o,className:n})),ref:u,...c})});Bt.displayName="Button";async function qR(n,r={}){try{await we("/telemetry/events",{method:"POST",body:JSON.stringify({name:`feature.${n}`,appType:"browser",dimensions:r})})}catch{}}function Le(n,r,{checkForDefaultPrevented:o=!0}={}){return function(c){if(n==null||n(c),o===!1||!c.defaultPrevented)return r==null?void 0:r(c)}}function VR(n,r){const o=v.createContext(r),s=u=>{const{children:m,...h}=u,y=v.useMemo(()=>h,Object.values(h));return f.jsx(o.Provider,{value:y,children:m})};s.displayName=n+"Provider";function c(u){const m=v.useContext(o);if(m)return m;if(r!==void 0)return r;throw new Error(`\`${u}\` must be used within \`${n}\``)}return[s,c]}function Xa(n,r=[]){let o=[];function s(u,m){const h=v.createContext(m),y=o.length;o=[...o,m];const p=g=>{var A;const{scope:S,children:N,...T}=g,E=((A=S==null?void 0:S[n])==null?void 0:A[y])||h,R=v.useMemo(()=>T,Object.values(T));return f.jsx(E.Provider,{value:R,children:N})};p.displayName=u+"Provider";function b(g,S){var E;const N=((E=S==null?void 0:S[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 \`${u}\``)}return[p,b]}const c=()=>{const u=o.map(m=>v.createContext(m));return function(h){const y=(h==null?void 0:h[n])||u;return v.useMemo(()=>({[`__scope${n}`]:{...h,[n]:y}}),[h,y])}};return c.scopeName=n,[s,YR(c,...r)]}function YR(...n){const r=n[0];if(n.length===1)return r;const o=()=>{const s=n.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(u){const m=s.reduce((h,{useScope:y,scopeName:p})=>{const g=y(u)[`__scope${p}`];return{...h,...g}},{});return v.useMemo(()=>({[`__scope${r.scopeName}`]:m}),[m])}};return o.scopeName=r.scopeName,o}var Lt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},GR=Nf[" useId ".trim().toString()]||(()=>{}),IR=0;function Pa(n){const[r,o]=v.useState(GR());return Lt(()=>{o(s=>s??String(IR++))},[n]),r?`radix-${r}`:""}var XR=Nf[" useInsertionEffect ".trim().toString()]||Lt;function Ro({prop:n,defaultProp:r,onChange:o=()=>{},caller:s}){const[c,u,m]=QR({defaultProp:r,onChange:o}),h=n!==void 0,y=h?n:c;{const b=v.useRef(n!==void 0);v.useEffect(()=>{const g=b.current;g!==h&&console.warn(`${s} 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.`),b.current=h},[h,s])}const p=v.useCallback(b=>{var g;if(h){const S=KR(b)?b(n):b;S!==n&&((g=m.current)==null||g.call(m,S))}else u(b)},[h,n,u,m]);return[y,p]}function QR({defaultProp:n,onChange:r}){const[o,s]=v.useState(n),c=v.useRef(o),u=v.useRef(r);return XR(()=>{u.current=r},[r]),v.useEffect(()=>{var m;c.current!==o&&((m=u.current)==null||m.call(u,o),c.current=o)},[o,c]),[o,s,u]}function KR(n){return typeof n=="function"}function Kl(n){const r=ZR(n),o=v.forwardRef((s,c)=>{const{children:u,...m}=s,h=v.Children.toArray(u),y=h.find(WR);if(y){const p=y.props.children,b=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(r,{...m,ref:c,children:v.isValidElement(p)?v.cloneElement(p,void 0,b):null})}return f.jsx(r,{...m,ref:c,children:u})});return o.displayName=`${n}.Slot`,o}function ZR(n){const r=v.forwardRef((o,s)=>{const{children:c,...u}=o;if(v.isValidElement(c)){const m=eC(c),h=JR(u,c.props);return c.type!==v.Fragment&&(h.ref=s?Df(s,m):m),v.cloneElement(c,h)}return v.Children.count(c)>1?v.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var my=Symbol("radix.slottable");function FR(n){const r=({children:o})=>f.jsx(f.Fragment,{children:o});return r.displayName=`${n}.Slottable`,r.__radixId=my,r}function WR(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===my}function JR(n,r){const o={...r};for(const s in r){const c=n[s],u=r[s];/^on[A-Z]/.test(s)?c&&u?o[s]=(...h)=>{const y=u(...h);return c(...h),y}:c&&(o[s]=c):s==="style"?o[s]={...c,...u}:s==="className"&&(o[s]=[c,u].filter(Boolean).join(" "))}return{...n,...o}}function eC(n){var s,c;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var tC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=tC.reduce((n,r)=>{const o=Kl(`Primitive.${r}`),s=v.forwardRef((c,u)=>{const{asChild:m,...h}=c,y=m?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(y,{...h,ref:u})});return s.displayName=`Primitive.${r}`,{...n,[r]:s}},{});function nC(n,r){n&&Jl.flushSync(()=>n.dispatchEvent(r))}function Va(n){const r=v.useRef(n);return v.useEffect(()=>{r.current=n}),v.useMemo(()=>(...o)=>{var s;return(s=r.current)==null?void 0:s.call(r,...o)},[])}function aC(n,r=globalThis==null?void 0:globalThis.document){const o=Va(n);v.useEffect(()=>{const s=c=>{c.key==="Escape"&&o(c)};return r.addEventListener("keydown",s,{capture:!0}),()=>r.removeEventListener("keydown",s,{capture:!0})},[o,r])}var rC="DismissableLayer",lf="dismissableLayer.update",oC="dismissableLayer.pointerDownOutside",lC="dismissableLayer.focusOutside",jv,hy=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lf=v.forwardRef((n,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:m,onDismiss:h,...y}=n,p=v.useContext(hy),[b,g]=v.useState(null),S=(b==null?void 0:b.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=v.useState({}),T=tt(r,G=>g(G)),E=Array.from(p.layers),[R]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),A=E.indexOf(R),j=b?E.indexOf(b):-1,_=p.layersWithOutsidePointerEventsDisabled.size>0,U=j>=A,z=cC(G=>{const P=G.target,ee=[...p.branches].some(oe=>oe.contains(P));!U||ee||(c==null||c(G),m==null||m(G),G.defaultPrevented||h==null||h())},S),Y=uC(G=>{const P=G.target;[...p.branches].some(oe=>oe.contains(P))||(u==null||u(G),m==null||m(G),G.defaultPrevented||h==null||h())},S);return aC(G=>{j===p.layers.size-1&&(s==null||s(G),!G.defaultPrevented&&h&&(G.preventDefault(),h()))},S),v.useEffect(()=>{if(b)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(jv=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(b)),p.layers.add(b),_v(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=jv)}},[b,S,o,p]),v.useEffect(()=>()=>{b&&(p.layers.delete(b),p.layersWithOutsidePointerEventsDisabled.delete(b),_v())},[b,p]),v.useEffect(()=>{const G=()=>N({});return document.addEventListener(lf,G),()=>document.removeEventListener(lf,G)},[]),f.jsx(Ue.div,{...y,ref:T,style:{pointerEvents:_?U?"auto":"none":void 0,...n.style},onFocusCapture:Le(n.onFocusCapture,Y.onFocusCapture),onBlurCapture:Le(n.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:Le(n.onPointerDownCapture,z.onPointerDownCapture)})});Lf.displayName=rC;var sC="DismissableLayerBranch",iC=v.forwardRef((n,r)=>{const o=v.useContext(hy),s=v.useRef(null),c=tt(r,s);return v.useEffect(()=>{const u=s.current;if(u)return o.branches.add(u),()=>{o.branches.delete(u)}},[o.branches]),f.jsx(Ue.div,{...n,ref:c})});iC.displayName=sC;function cC(n,r=globalThis==null?void 0:globalThis.document){const o=Va(n),s=v.useRef(!1),c=v.useRef(()=>{});return v.useEffect(()=>{const u=h=>{if(h.target&&!s.current){let y=function(){py(oC,o,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(r.removeEventListener("click",c.current),c.current=y,r.addEventListener("click",c.current,{once:!0})):y()}else r.removeEventListener("click",c.current);s.current=!1},m=window.setTimeout(()=>{r.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(m),r.removeEventListener("pointerdown",u),r.removeEventListener("click",c.current)}},[r,o]),{onPointerDownCapture:()=>s.current=!0}}function uC(n,r=globalThis==null?void 0:globalThis.document){const o=Va(n),s=v.useRef(!1);return v.useEffect(()=>{const c=u=>{u.target&&!s.current&&py(lC,o,{originalEvent:u},{discrete:!1})};return r.addEventListener("focusin",c),()=>r.removeEventListener("focusin",c)},[r,o]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function _v(){const n=new CustomEvent(lf);document.dispatchEvent(n)}function py(n,r,o,{discrete:s}){const c=o.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});r&&c.addEventListener(n,r,{once:!0}),s?nC(c,u):c.dispatchEvent(u)}var zd="focusScope.autoFocusOnMount",Ld="focusScope.autoFocusOnUnmount",Mv={bubbles:!1,cancelable:!0},dC="FocusScope",Uf=v.forwardRef((n,r)=>{const{loop:o=!1,trapped:s=!1,onMountAutoFocus:c,onUnmountAutoFocus:u,...m}=n,[h,y]=v.useState(null),p=Va(c),b=Va(u),g=v.useRef(null),S=tt(r,E=>y(E)),N=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(s){let E=function(_){if(N.paused||!h)return;const U=_.target;h.contains(U)?g.current=U:$a(g.current,{select:!0})},R=function(_){if(N.paused||!h)return;const U=_.relatedTarget;U!==null&&(h.contains(U)||$a(g.current,{select:!0}))},A=function(_){if(document.activeElement===document.body)for(const z of _)z.removedNodes.length>0&&$a(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",R);const j=new MutationObserver(A);return h&&j.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",R),j.disconnect()}}},[s,h,N.paused]),v.useEffect(()=>{if(h){Dv.add(N);const E=document.activeElement;if(!h.contains(E)){const A=new CustomEvent(zd,Mv);h.addEventListener(zd,p),h.dispatchEvent(A),A.defaultPrevented||(fC(vC(gy(h)),{select:!0}),document.activeElement===E&&$a(h))}return()=>{h.removeEventListener(zd,p),setTimeout(()=>{const A=new CustomEvent(Ld,Mv);h.addEventListener(Ld,b),h.dispatchEvent(A),A.defaultPrevented||$a(E??document.body,{select:!0}),h.removeEventListener(Ld,b),Dv.remove(N)},0)}}},[h,p,b,N]);const T=v.useCallback(E=>{if(!o&&!s||N.paused)return;const R=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,A=document.activeElement;if(R&&A){const j=E.currentTarget,[_,U]=mC(j);_&&U?!E.shiftKey&&A===U?(E.preventDefault(),o&&$a(_,{select:!0})):E.shiftKey&&A===_&&(E.preventDefault(),o&&$a(U,{select:!0})):A===j&&E.preventDefault()}},[o,s,N.paused]);return f.jsx(Ue.div,{tabIndex:-1,...m,ref:S,onKeyDown:T})});Uf.displayName=dC;function fC(n,{select:r=!1}={}){const o=document.activeElement;for(const s of n)if($a(s,{select:r}),document.activeElement!==o)return}function mC(n){const r=gy(n),o=Ov(r,n),s=Ov(r.reverse(),n);return[o,s]}function gy(n){const r=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const c=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||c?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)r.push(o.currentNode);return r}function Ov(n,r){for(const o of n)if(!hC(o,{upTo:r}))return o}function hC(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function pC(n){return n instanceof HTMLInputElement&&"select"in n}function $a(n,{select:r=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&pC(n)&&r&&n.select()}}var Dv=gC();function gC(){let n=[];return{add(r){const o=n[0];r!==o&&(o==null||o.pause()),n=zv(n,r),n.unshift(r)},remove(r){var o;n=zv(n,r),(o=n[0])==null||o.resume()}}}function zv(n,r){const o=[...n],s=o.indexOf(r);return s!==-1&&o.splice(s,1),o}function vC(n){return n.filter(r=>r.tagName!=="A")}var yC="Portal",Bf=v.forwardRef((n,r)=>{var h;const{container:o,...s}=n,[c,u]=v.useState(!1);Lt(()=>u(!0),[]);const m=o||c&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return m?z0.createPortal(f.jsx(Ue.div,{...s,ref:r}),m):null});Bf.displayName=yC;function bC(n,r){return v.useReducer((o,s)=>r[o][s]??o,n)}var Mo=n=>{const{present:r,children:o}=n,s=xC(r),c=typeof o=="function"?o({present:s.isPresent}):v.Children.only(o),u=tt(s.ref,SC(c));return typeof o=="function"||s.isPresent?v.cloneElement(c,{ref:u}):null};Mo.displayName="Presence";function xC(n){const[r,o]=v.useState(),s=v.useRef(null),c=v.useRef(n),u=v.useRef("none"),m=n?"mounted":"unmounted",[h,y]=bC(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=bi(s.current);u.current=h==="mounted"?p:"none"},[h]),Lt(()=>{const p=s.current,b=c.current;if(b!==n){const S=u.current,N=bi(p);n?y("MOUNT"):N==="none"||(p==null?void 0:p.display)==="none"?y("UNMOUNT"):y(b&&S!==N?"ANIMATION_OUT":"UNMOUNT"),c.current=n}},[n,y]),Lt(()=>{if(r){let p;const b=r.ownerDocument.defaultView??window,g=N=>{const E=bi(s.current).includes(CSS.escape(N.animationName));if(N.target===r&&E&&(y("ANIMATION_END"),!c.current)){const R=r.style.animationFillMode;r.style.animationFillMode="forwards",p=b.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=R)})}},S=N=>{N.target===r&&(u.current=bi(s.current))};return r.addEventListener("animationstart",S),r.addEventListener("animationcancel",g),r.addEventListener("animationend",g),()=>{b.clearTimeout(p),r.removeEventListener("animationstart",S),r.removeEventListener("animationcancel",g),r.removeEventListener("animationend",g)}}else y("ANIMATION_END")},[r,y]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:v.useCallback(p=>{s.current=p?getComputedStyle(p):null,o(p)},[])}}function bi(n){return(n==null?void 0:n.animationName)||"none"}function SC(n){var s,c;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var Ud=0;function vy(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Lv()),document.body.insertAdjacentElement("beforeend",n[1]??Lv()),Ud++,()=>{Ud===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Ud--}},[])}function Lv(){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 Hn=function(){return Hn=Object.assign||function(r){for(var o,s=1,c=arguments.length;s<c;s++){o=arguments[s];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(r[u]=o[u])}return r},Hn.apply(this,arguments)};function yy(n,r){var o={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.indexOf(s)<0&&(o[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(n);c<s.length;c++)r.indexOf(s[c])<0&&Object.prototype.propertyIsEnumerable.call(n,s[c])&&(o[s[c]]=n[s[c]]);return o}function wC(n,r,o){if(o||arguments.length===2)for(var s=0,c=r.length,u;s<c;s++)(u||!(s in r))&&(u||(u=Array.prototype.slice.call(r,0,s)),u[s]=r[s]);return n.concat(u||Array.prototype.slice.call(r))}var Ai="right-scroll-bar-position",ki="width-before-scroll-bar",EC="with-scroll-bars-hidden",NC="--removed-body-scroll-bar-size";function Bd(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function TC(n,r){var o=v.useState(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(s){var c=o.value;c!==s&&(o.value=s,o.callback(s,c))}}}})[0];return o.callback=r,o.facade}var RC=typeof window<"u"?v.useLayoutEffect:v.useEffect,Uv=new WeakMap;function CC(n,r){var o=TC(null,function(s){return n.forEach(function(c){return Bd(c,s)})});return RC(function(){var s=Uv.get(o);if(s){var c=new Set(s),u=new Set(n),m=o.current;c.forEach(function(h){u.has(h)||Bd(h,null)}),u.forEach(function(h){c.has(h)||Bd(h,m)})}Uv.set(o,n)},[n]),o}function AC(n){return n}function kC(n,r){r===void 0&&(r=AC);var o=[],s=!1,c={read:function(){if(s)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(u){var m=r(u,s);return o.push(m),function(){o=o.filter(function(h){return h!==m})}},assignSyncMedium:function(u){for(s=!0;o.length;){var m=o;o=[],m.forEach(u)}o={push:function(h){return u(h)},filter:function(){return o}}},assignMedium:function(u){s=!0;var m=[];if(o.length){var h=o;o=[],h.forEach(u),m=o}var y=function(){var b=m;m=[],b.forEach(u)},p=function(){return Promise.resolve().then(y)};p(),o={push:function(b){m.push(b),p()},filter:function(b){return m=m.filter(b),o}}}};return c}function jC(n){n===void 0&&(n={});var r=kC(null);return r.options=Hn({async:!0,ssr:!1},n),r}var by=function(n){var r=n.sideCar,o=yy(n,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=r.read();if(!s)throw new Error("Sidecar medium not found");return v.createElement(s,Hn({},o))};by.isSideCarExport=!0;function _C(n,r){return n.useMedium(r),by}var xy=jC(),Hd=function(){},ac=v.forwardRef(function(n,r){var o=v.useRef(null),s=v.useState({onScrollCapture:Hd,onWheelCapture:Hd,onTouchMoveCapture:Hd}),c=s[0],u=s[1],m=n.forwardProps,h=n.children,y=n.className,p=n.removeScrollBar,b=n.enabled,g=n.shards,S=n.sideCar,N=n.noRelative,T=n.noIsolation,E=n.inert,R=n.allowPinchZoom,A=n.as,j=A===void 0?"div":A,_=n.gapMode,U=yy(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=S,Y=CC([o,r]),G=Hn(Hn({},U),c);return v.createElement(v.Fragment,null,b&&v.createElement(z,{sideCar:xy,removeScrollBar:p,shards:g,noRelative:N,noIsolation:T,inert:E,setCallbacks:u,allowPinchZoom:!!R,lockRef:o,gapMode:_}),m?v.cloneElement(v.Children.only(h),Hn(Hn({},G),{ref:Y})):v.createElement(j,Hn({},G,{className:y,ref:Y}),h))});ac.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ac.classNames={fullWidth:ki,zeroRight:Ai};var MC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function OC(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=MC();return r&&n.setAttribute("nonce",r),n}function DC(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function zC(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var LC=function(){var n=0,r=null;return{add:function(o){n==0&&(r=OC())&&(DC(r,o),zC(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},UC=function(){var n=LC();return function(r,o){v.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&o])}},Sy=function(){var n=UC(),r=function(o){var s=o.styles,c=o.dynamic;return n(s,c),null};return r},BC={left:0,top:0,right:0,gap:0},$d=function(n){return parseInt(n||"",10)||0},HC=function(n){var r=window.getComputedStyle(document.body),o=r[n==="padding"?"paddingLeft":"marginLeft"],s=r[n==="padding"?"paddingTop":"marginTop"],c=r[n==="padding"?"paddingRight":"marginRight"];return[$d(o),$d(s),$d(c)]},$C=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return BC;var r=HC(n),o=document.documentElement.clientWidth,s=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,s-o+r[2]-r[0])}},PC=Sy(),Eo="data-scroll-locked",qC=function(n,r,o,s){var c=n.left,u=n.top,m=n.right,h=n.gap;return o===void 0&&(o="margin"),`
|
|
292
|
+
.`.concat(EC,` {
|
|
293
|
+
overflow: hidden `).concat(s,`;
|
|
294
|
+
padding-right: `).concat(h,"px ").concat(s,`;
|
|
295
|
+
}
|
|
296
|
+
body[`).concat(Eo,`] {
|
|
297
|
+
overflow: hidden `).concat(s,`;
|
|
298
|
+
overscroll-behavior: contain;
|
|
299
|
+
`).concat([r&&"position: relative ".concat(s,";"),o==="margin"&&`
|
|
300
|
+
padding-left: `.concat(c,`px;
|
|
301
|
+
padding-top: `).concat(u,`px;
|
|
302
|
+
padding-right: `).concat(m,`px;
|
|
303
|
+
margin-left:0;
|
|
304
|
+
margin-top:0;
|
|
305
|
+
margin-right: `).concat(h,"px ").concat(s,`;
|
|
306
|
+
`),o==="padding"&&"padding-right: ".concat(h,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.`).concat(Ai,` {
|
|
310
|
+
right: `).concat(h,"px ").concat(s,`;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.`).concat(ki,` {
|
|
314
|
+
margin-right: `).concat(h,"px ").concat(s,`;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.`).concat(Ai," .").concat(Ai,` {
|
|
318
|
+
right: 0 `).concat(s,`;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.`).concat(ki," .").concat(ki,` {
|
|
322
|
+
margin-right: 0 `).concat(s,`;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
body[`).concat(Eo,`] {
|
|
326
|
+
`).concat(NC,": ").concat(h,`px;
|
|
327
|
+
}
|
|
328
|
+
`)},Bv=function(){var n=parseInt(document.body.getAttribute(Eo)||"0",10);return isFinite(n)?n:0},VC=function(){v.useEffect(function(){return document.body.setAttribute(Eo,(Bv()+1).toString()),function(){var n=Bv()-1;n<=0?document.body.removeAttribute(Eo):document.body.setAttribute(Eo,n.toString())}},[])},YC=function(n){var r=n.noRelative,o=n.noImportant,s=n.gapMode,c=s===void 0?"margin":s;VC();var u=v.useMemo(function(){return $C(c)},[c]);return v.createElement(PC,{styles:qC(u,!r,c,o?"":"!important")})},sf=!1;if(typeof window<"u")try{var xi=Object.defineProperty({},"passive",{get:function(){return sf=!0,!0}});window.addEventListener("test",xi,xi),window.removeEventListener("test",xi,xi)}catch{sf=!1}var po=sf?{passive:!1}:!1,GC=function(n){return n.tagName==="TEXTAREA"},wy=function(n,r){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!GC(n)&&o[r]==="visible")},IC=function(n){return wy(n,"overflowY")},XC=function(n){return wy(n,"overflowX")},Hv=function(n,r){var o=r.ownerDocument,s=r;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var c=Ey(n,s);if(c){var u=Ny(n,s),m=u[1],h=u[2];if(m>h)return!0}s=s.parentNode}while(s&&s!==o.body);return!1},QC=function(n){var r=n.scrollTop,o=n.scrollHeight,s=n.clientHeight;return[r,o,s]},KC=function(n){var r=n.scrollLeft,o=n.scrollWidth,s=n.clientWidth;return[r,o,s]},Ey=function(n,r){return n==="v"?IC(r):XC(r)},Ny=function(n,r){return n==="v"?QC(r):KC(r)},ZC=function(n,r){return n==="h"&&r==="rtl"?-1:1},FC=function(n,r,o,s,c){var u=ZC(n,window.getComputedStyle(r).direction),m=u*s,h=o.target,y=r.contains(h),p=!1,b=m>0,g=0,S=0;do{if(!h)break;var N=Ny(n,h),T=N[0],E=N[1],R=N[2],A=E-R-u*T;(T||A)&&Ey(n,h)&&(g+=A,S+=T);var j=h.parentNode;h=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!y&&h!==document.body||y&&(r.contains(h)||r===h));return(b&&Math.abs(g)<1||!b&&Math.abs(S)<1)&&(p=!0),p},Si=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},$v=function(n){return[n.deltaX,n.deltaY]},Pv=function(n){return n&&"current"in n?n.current:n},WC=function(n,r){return n[0]===r[0]&&n[1]===r[1]},JC=function(n){return`
|
|
329
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
330
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
331
|
+
`)},eA=0,go=[];function tA(n){var r=v.useRef([]),o=v.useRef([0,0]),s=v.useRef(),c=v.useState(eA++)[0],u=v.useState(Sy)[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=wC([n.lockRef.current],(n.shards||[]).map(Pv),!0).filter(Boolean);return E.forEach(function(R){return R.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),E.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(c))})}}},[n.inert,n.lockRef.current,n.shards]);var h=v.useCallback(function(E,R){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!m.current.allowPinchZoom;var A=Si(E),j=o.current,_="deltaX"in E?E.deltaX:j[0]-A[0],U="deltaY"in E?E.deltaY:j[1]-A[1],z,Y=E.target,G=Math.abs(_)>Math.abs(U)?"h":"v";if("touches"in E&&G==="h"&&Y.type==="range")return!1;var P=window.getSelection(),ee=P&&P.anchorNode,oe=ee?ee===Y||ee.contains(Y):!1;if(oe)return!1;var fe=Hv(G,Y);if(!fe)return!0;if(fe?z=G:(z=G==="v"?"h":"v",fe=Hv(G,Y)),!fe)return!1;if(!s.current&&"changedTouches"in E&&(_||U)&&(s.current=z),!z)return!0;var ue=s.current||z;return FC(ue,R,E,ue==="h"?_:U)},[]),y=v.useCallback(function(E){var R=E;if(!(!go.length||go[go.length-1]!==u)){var A="deltaY"in R?$v(R):Si(R),j=r.current.filter(function(z){return z.name===R.type&&(z.target===R.target||R.target===z.shadowParent)&&WC(z.delta,A)})[0];if(j&&j.should){R.cancelable&&R.preventDefault();return}if(!j){var _=(m.current.shards||[]).map(Pv).filter(Boolean).filter(function(z){return z.contains(R.target)}),U=_.length>0?h(R,_[0]):!m.current.noIsolation;U&&R.cancelable&&R.preventDefault()}}},[]),p=v.useCallback(function(E,R,A,j){var _={name:E,delta:R,target:A,should:j,shadowParent:nA(A)};r.current.push(_),setTimeout(function(){r.current=r.current.filter(function(U){return U!==_})},1)},[]),b=v.useCallback(function(E){o.current=Si(E),s.current=void 0},[]),g=v.useCallback(function(E){p(E.type,$v(E),E.target,h(E,n.lockRef.current))},[]),S=v.useCallback(function(E){p(E.type,Si(E),E.target,h(E,n.lockRef.current))},[]);v.useEffect(function(){return go.push(u),n.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:S}),document.addEventListener("wheel",y,po),document.addEventListener("touchmove",y,po),document.addEventListener("touchstart",b,po),function(){go=go.filter(function(E){return E!==u}),document.removeEventListener("wheel",y,po),document.removeEventListener("touchmove",y,po),document.removeEventListener("touchstart",b,po)}},[]);var N=n.removeScrollBar,T=n.inert;return v.createElement(v.Fragment,null,T?v.createElement(u,{styles:JC(c)}):null,N?v.createElement(YC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function nA(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const aA=_C(xy,tA);var Hf=v.forwardRef(function(n,r){return v.createElement(ac,Hn({},n,{ref:r,sideCar:aA}))});Hf.classNames=ac.classNames;var rA=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},vo=new WeakMap,wi=new WeakMap,Ei={},Pd=0,Ty=function(n){return n&&(n.host||Ty(n.parentNode))},oA=function(n,r){return r.map(function(o){if(n.contains(o))return o;var s=Ty(o);return s&&n.contains(s)?s:(console.error("aria-hidden",o,"in not contained inside",n,". Doing nothing"),null)}).filter(function(o){return!!o})},lA=function(n,r,o,s){var c=oA(r,Array.isArray(n)?n:[n]);Ei[o]||(Ei[o]=new WeakMap);var u=Ei[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 b=function(g){!g||y.has(g)||Array.prototype.forEach.call(g.children,function(S){if(h.has(S))b(S);else try{var N=S.getAttribute(s),T=N!==null&&N!=="false",E=(vo.get(S)||0)+1,R=(u.get(S)||0)+1;vo.set(S,E),u.set(S,R),m.push(S),E===1&&T&&wi.set(S,!0),R===1&&S.setAttribute(o,"true"),T||S.setAttribute(s,"true")}catch(A){console.error("aria-hidden: cannot operate on ",S,A)}})};return b(r),h.clear(),Pd++,function(){m.forEach(function(g){var S=vo.get(g)-1,N=u.get(g)-1;vo.set(g,S),u.set(g,N),S||(wi.has(g)||g.removeAttribute(s),wi.delete(g)),N||g.removeAttribute(o)}),Pd--,Pd||(vo=new WeakMap,vo=new WeakMap,wi=new WeakMap,Ei={})}},Ry=function(n,r,o){o===void 0&&(o="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),c=rA(n);return c?(s.push.apply(s,Array.from(c.querySelectorAll("[aria-live], script"))),lA(s,c,o,"aria-hidden")):function(){return null}},rc="Dialog",[Cy,Ay]=Xa(rc),[sA,Nn]=Cy(rc),ky=n=>{const{__scopeDialog:r,children:o,open:s,defaultOpen:c,onOpenChange:u,modal:m=!0}=n,h=v.useRef(null),y=v.useRef(null),[p,b]=Ro({prop:s,defaultProp:c??!1,onChange:u,caller:rc});return f.jsx(sA,{scope:r,triggerRef:h,contentRef:y,contentId:Pa(),titleId:Pa(),descriptionId:Pa(),open:p,onOpenChange:b,onOpenToggle:v.useCallback(()=>b(g=>!g),[b]),modal:m,children:o})};ky.displayName=rc;var jy="DialogTrigger",_y=v.forwardRef((n,r)=>{const{__scopeDialog:o,...s}=n,c=Nn(jy,o),u=tt(r,c.triggerRef);return f.jsx(Ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":qf(c.open),...s,ref:u,onClick:Le(n.onClick,c.onOpenToggle)})});_y.displayName=jy;var $f="DialogPortal",[iA,My]=Cy($f,{forceMount:void 0}),Oy=n=>{const{__scopeDialog:r,forceMount:o,children:s,container:c}=n,u=Nn($f,r);return f.jsx(iA,{scope:r,forceMount:o,children:v.Children.map(s,m=>f.jsx(Mo,{present:o||u.open,children:f.jsx(Bf,{asChild:!0,container:c,children:m})}))})};Oy.displayName=$f;var Bi="DialogOverlay",Dy=v.forwardRef((n,r)=>{const o=My(Bi,n.__scopeDialog),{forceMount:s=o.forceMount,...c}=n,u=Nn(Bi,n.__scopeDialog);return u.modal?f.jsx(Mo,{present:s||u.open,children:f.jsx(uA,{...c,ref:r})}):null});Dy.displayName=Bi;var cA=Kl("DialogOverlay.RemoveScroll"),uA=v.forwardRef((n,r)=>{const{__scopeDialog:o,...s}=n,c=Nn(Bi,o);return f.jsx(Hf,{as:cA,allowPinchZoom:!0,shards:[c.contentRef],children:f.jsx(Ue.div,{"data-state":qf(c.open),...s,ref:r,style:{pointerEvents:"auto",...s.style}})})}),xr="DialogContent",zy=v.forwardRef((n,r)=>{const o=My(xr,n.__scopeDialog),{forceMount:s=o.forceMount,...c}=n,u=Nn(xr,n.__scopeDialog);return f.jsx(Mo,{present:s||u.open,children:u.modal?f.jsx(dA,{...c,ref:r}):f.jsx(fA,{...c,ref:r})})});zy.displayName=xr;var dA=v.forwardRef((n,r)=>{const o=Nn(xr,n.__scopeDialog),s=v.useRef(null),c=tt(r,o.contentRef,s);return v.useEffect(()=>{const u=s.current;if(u)return Ry(u)},[]),f.jsx(Ly,{...n,ref:c,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Le(n.onCloseAutoFocus,u=>{var m;u.preventDefault(),(m=o.triggerRef.current)==null||m.focus()}),onPointerDownOutside:Le(n.onPointerDownOutside,u=>{const m=u.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0;(m.button===2||h)&&u.preventDefault()}),onFocusOutside:Le(n.onFocusOutside,u=>u.preventDefault())})}),fA=v.forwardRef((n,r)=>{const o=Nn(xr,n.__scopeDialog),s=v.useRef(!1),c=v.useRef(!1);return f.jsx(Ly,{...n,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var m,h;(m=n.onCloseAutoFocus)==null||m.call(n,u),u.defaultPrevented||(s.current||(h=o.triggerRef.current)==null||h.focus(),u.preventDefault()),s.current=!1,c.current=!1},onInteractOutside:u=>{var y,p;(y=n.onInteractOutside)==null||y.call(n,u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=u.target;((p=o.triggerRef.current)==null?void 0:p.contains(m))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&c.current&&u.preventDefault()}})}),Ly=v.forwardRef((n,r)=>{const{__scopeDialog:o,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:u,...m}=n,h=Nn(xr,o),y=v.useRef(null),p=tt(r,y);return vy(),f.jsxs(f.Fragment,{children:[f.jsx(Uf,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:c,onUnmountAutoFocus:u,children:f.jsx(Lf,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":qf(h.open),...m,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(hA,{titleId:h.titleId}),f.jsx(gA,{contentRef:y,descriptionId:h.descriptionId})]})]})}),Pf="DialogTitle",Uy=v.forwardRef((n,r)=>{const{__scopeDialog:o,...s}=n,c=Nn(Pf,o);return f.jsx(Ue.h2,{id:c.titleId,...s,ref:r})});Uy.displayName=Pf;var By="DialogDescription",Hy=v.forwardRef((n,r)=>{const{__scopeDialog:o,...s}=n,c=Nn(By,o);return f.jsx(Ue.p,{id:c.descriptionId,...s,ref:r})});Hy.displayName=By;var $y="DialogClose",Py=v.forwardRef((n,r)=>{const{__scopeDialog:o,...s}=n,c=Nn($y,o);return f.jsx(Ue.button,{type:"button",...s,ref:r,onClick:Le(n.onClick,()=>c.onOpenChange(!1))})});Py.displayName=$y;function qf(n){return n?"open":"closed"}var qy="DialogTitleWarning",[mA,Vy]=VR(qy,{contentName:xr,titleName:Pf,docsSlug:"dialog"}),hA=({titleId:n})=>{const r=Vy(qy),o=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
|
|
332
|
+
|
|
333
|
+
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
334
|
+
|
|
335
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return v.useEffect(()=>{n&&(document.getElementById(n)||console.error(o))},[o,n]),null},pA="DialogDescriptionWarning",gA=({contentRef:n,descriptionId:r})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vy(pA).contentName}}.`;return v.useEffect(()=>{var u;const c=(u=n.current)==null?void 0:u.getAttribute("aria-describedby");r&&c&&(document.getElementById(r)||console.warn(s))},[s,n,r]),null},Yy=ky,Gy=_y,Iy=Oy,Vf=Dy,Yf=zy,Gf=Uy,If=Hy,oc=Py;const vA=Yy,yA=Gy,bA=Iy,Q3=oc,Xy=v.forwardRef(({className:n,...r},o)=>f.jsx(Vf,{ref:o,className:ne("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...r}));Xy.displayName=Vf.displayName;const Qy=v.forwardRef(({className:n,children:r,...o},s)=>f.jsxs(bA,{children:[f.jsx(Xy,{}),f.jsxs(Yf,{ref:s,className:ne("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-3 rounded-sm border bg-background p-4 shadow-[0_24px_84px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...o,children:[r,f.jsxs(oc,{className:"absolute right-2.5 top-2.5 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(Q0,{className:"h-3.5 w-3.5"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Qy.displayName=Yf.displayName;const Ky=({className:n,...r})=>f.jsx("div",{className:ne("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});Ky.displayName="DialogHeader";const xA=({className:n,...r})=>f.jsx("div",{className:ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});xA.displayName="DialogFooter";const Zy=v.forwardRef(({className:n,...r},o)=>f.jsx(Gf,{ref:o,className:ne("text-sm font-semibold leading-none tracking-tight",n),...r}));Zy.displayName=Gf.displayName;const Fy=v.forwardRef(({className:n,...r},o)=>f.jsx(If,{ref:o,className:ne("text-[11px] text-muted-foreground",n),...r}));Fy.displayName=If.displayName;function SA({children:n,open:r,onOpenChange:o,showTrigger:s=!0}){const[c,u]=v.useState(!1),m=r??c,h=v.useCallback(y=>{y&&qR("settings.opened",{surface:"settings"}),r===void 0&&u(y),o==null||o(y)},[r,o]);return f.jsxs(vA,{open:m,onOpenChange:h,children:[s&&f.jsx(yA,{asChild:!0,children:f.jsx(Bt,{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(aT,{className:"h-4 w-4"})})}),f.jsxs(Qy,{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-sm border-border/70 bg-background/96 p-0 shadow-[0_28px_90px_-58px_rgba(15,23,42,0.75)] backdrop-blur-xl",children:[f.jsxs(Ky,{className:"shrink-0 border-b border-border/60 px-3 py-1.5 sm:px-3.5",children:[f.jsxs(Zy,{className:"flex items-center gap-1.5 text-[11px]",children:[f.jsx($N,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),f.jsx(Fy,{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 qv(n,[r,o]){return Math.min(o,Math.max(r,n))}function Wy(n){const r=n+"CollectionProvider",[o,s]=Xa(r),[c,u]=o(r,{collectionRef:{current:null},itemMap:new Map}),m=E=>{const{scope:R,children:A}=E,j=te.useRef(null),_=te.useRef(new Map).current;return f.jsx(c,{scope:R,itemMap:_,collectionRef:j,children:A})};m.displayName=r;const h=n+"CollectionSlot",y=Kl(h),p=te.forwardRef((E,R)=>{const{scope:A,children:j}=E,_=u(h,A),U=tt(R,_.collectionRef);return f.jsx(y,{ref:U,children:j})});p.displayName=h;const b=n+"CollectionItemSlot",g="data-radix-collection-item",S=Kl(b),N=te.forwardRef((E,R)=>{const{scope:A,children:j,..._}=E,U=te.useRef(null),z=tt(R,U),Y=u(b,A);return te.useEffect(()=>(Y.itemMap.set(U,{ref:U,..._}),()=>void Y.itemMap.delete(U))),f.jsx(S,{[g]:"",ref:z,children:j})});N.displayName=b;function T(E){const R=u(n+"CollectionConsumer",E);return te.useCallback(()=>{const j=R.collectionRef.current;if(!j)return[];const _=Array.from(j.querySelectorAll(`[${g}]`));return Array.from(R.itemMap.values()).sort((Y,G)=>_.indexOf(Y.ref.current)-_.indexOf(G.ref.current))},[R.collectionRef,R.itemMap])}return[{Provider:m,Slot:p,ItemSlot:N},T,s]}var wA=v.createContext(void 0);function Xf(n){const r=v.useContext(wA);return n||r||"ltr"}const EA=["top","right","bottom","left"],Ya=Math.min,tn=Math.max,Hi=Math.round,Ni=Math.floor,qn=n=>({x:n,y:n}),NA={left:"right",right:"left",bottom:"top",top:"bottom"};function cf(n,r,o){return tn(n,Ya(r,o))}function ua(n,r){return typeof n=="function"?n(r):n}function da(n){return n.split("-")[0]}function Oo(n){return n.split("-")[1]}function Qf(n){return n==="x"?"y":"x"}function Kf(n){return n==="y"?"height":"width"}function $n(n){const r=n[0];return r==="t"||r==="b"?"y":"x"}function Zf(n){return Qf($n(n))}function TA(n,r,o){o===void 0&&(o=!1);const s=Oo(n),c=Zf(n),u=Kf(c);let m=c==="x"?s===(o?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(m=$i(m)),[m,$i(m)]}function RA(n){const r=$i(n);return[uf(n),r,uf(r)]}function uf(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Vv=["left","right"],Yv=["right","left"],CA=["top","bottom"],AA=["bottom","top"];function kA(n,r,o){switch(n){case"top":case"bottom":return o?r?Yv:Vv:r?Vv:Yv;case"left":case"right":return r?CA:AA;default:return[]}}function jA(n,r,o,s){const c=Oo(n);let u=kA(da(n),o==="start",s);return c&&(u=u.map(m=>m+"-"+c),r&&(u=u.concat(u.map(uf)))),u}function $i(n){const r=da(n);return NA[r]+n.slice(r.length)}function _A(n){return{top:0,right:0,bottom:0,left:0,...n}}function Jy(n){return typeof n!="number"?_A(n):{top:n,right:n,bottom:n,left:n}}function Pi(n){const{x:r,y:o,width:s,height:c}=n;return{width:s,height:c,top:o,left:r,right:r+s,bottom:o+c,x:r,y:o}}function Gv(n,r,o){let{reference:s,floating:c}=n;const u=$n(r),m=Zf(r),h=Kf(m),y=da(r),p=u==="y",b=s.x+s.width/2-c.width/2,g=s.y+s.height/2-c.height/2,S=s[h]/2-c[h]/2;let N;switch(y){case"top":N={x:b,y:s.y-c.height};break;case"bottom":N={x:b,y:s.y+s.height};break;case"right":N={x:s.x+s.width,y:g};break;case"left":N={x:s.x-c.width,y:g};break;default:N={x:s.x,y:s.y}}switch(Oo(r)){case"start":N[m]-=S*(o&&p?-1:1);break;case"end":N[m]+=S*(o&&p?-1:1);break}return N}async function MA(n,r){var o;r===void 0&&(r={});const{x:s,y:c,platform:u,rects:m,elements:h,strategy:y}=n,{boundary:p="clippingAncestors",rootBoundary:b="viewport",elementContext:g="floating",altBoundary:S=!1,padding:N=0}=ua(r,n),T=Jy(N),R=h[S?g==="floating"?"reference":"floating":g],A=Pi(await u.getClippingRect({element:(o=await(u.isElement==null?void 0:u.isElement(R)))==null||o?R:R.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:p,rootBoundary:b,strategy:y})),j=g==="floating"?{x:s,y:c,width:m.floating.width,height:m.floating.height}:m.reference,_=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h.floating)),U=await(u.isElement==null?void 0:u.isElement(_))?await(u.getScale==null?void 0:u.getScale(_))||{x:1,y:1}:{x:1,y:1},z=Pi(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:j,offsetParent:_,strategy:y}):j);return{top:(A.top-z.top+T.top)/U.y,bottom:(z.bottom-A.bottom+T.bottom)/U.y,left:(A.left-z.left+T.left)/U.x,right:(z.right-A.right+T.right)/U.x}}const OA=50,DA=async(n,r,o)=>{const{placement:s="bottom",strategy:c="absolute",middleware:u=[],platform:m}=o,h=m.detectOverflow?m:{...m,detectOverflow:MA},y=await(m.isRTL==null?void 0:m.isRTL(r));let p=await m.getElementRects({reference:n,floating:r,strategy:c}),{x:b,y:g}=Gv(p,s,y),S=s,N=0;const T={};for(let E=0;E<u.length;E++){const R=u[E];if(!R)continue;const{name:A,fn:j}=R,{x:_,y:U,data:z,reset:Y}=await j({x:b,y:g,initialPlacement:s,placement:S,strategy:c,middlewareData:T,rects:p,platform:h,elements:{reference:n,floating:r}});b=_??b,g=U??g,T[A]={...T[A],...z},Y&&N<OA&&(N++,typeof Y=="object"&&(Y.placement&&(S=Y.placement),Y.rects&&(p=Y.rects===!0?await m.getElementRects({reference:n,floating:r,strategy:c}):Y.rects),{x:b,y:g}=Gv(p,S,y)),E=-1)}return{x:b,y:g,placement:S,strategy:c,middlewareData:T}},zA=n=>({name:"arrow",options:n,async fn(r){const{x:o,y:s,placement:c,rects:u,platform:m,elements:h,middlewareData:y}=r,{element:p,padding:b=0}=ua(n,r)||{};if(p==null)return{};const g=Jy(b),S={x:o,y:s},N=Zf(c),T=Kf(N),E=await m.getDimensions(p),R=N==="y",A=R?"top":"left",j=R?"bottom":"right",_=R?"clientHeight":"clientWidth",U=u.reference[T]+u.reference[N]-S[N]-u.floating[T],z=S[N]-u.reference[N],Y=await(m.getOffsetParent==null?void 0:m.getOffsetParent(p));let G=Y?Y[_]:0;(!G||!await(m.isElement==null?void 0:m.isElement(Y)))&&(G=h.floating[_]||u.floating[T]);const P=U/2-z/2,ee=G/2-E[T]/2-1,oe=Ya(g[A],ee),fe=Ya(g[j],ee),ue=oe,ie=G-E[T]-fe,me=G/2-E[T]/2+P,ae=cf(ue,me,ie),M=!y.arrow&&Oo(c)!=null&&me!==ae&&u.reference[T]/2-(me<ue?oe:fe)-E[T]/2<0,q=M?me<ue?me-ue:me-ie:0;return{[N]:S[N]+q,data:{[N]:ae,centerOffset:me-ae-q,...M&&{alignmentOffset:q}},reset:M}}}),LA=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var o,s;const{placement:c,middlewareData:u,rects:m,initialPlacement:h,platform:y,elements:p}=r,{mainAxis:b=!0,crossAxis:g=!0,fallbackPlacements:S,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:E=!0,...R}=ua(n,r);if((o=u.arrow)!=null&&o.alignmentOffset)return{};const A=da(c),j=$n(h),_=da(h)===h,U=await(y.isRTL==null?void 0:y.isRTL(p.floating)),z=S||(_||!E?[$i(h)]:RA(h)),Y=T!=="none";!S&&Y&&z.push(...jA(h,E,T,U));const G=[h,...z],P=await y.detectOverflow(r,R),ee=[];let oe=((s=u.flip)==null?void 0:s.overflows)||[];if(b&&ee.push(P[A]),g){const me=TA(c,m,U);ee.push(P[me[0]],P[me[1]])}if(oe=[...oe,{placement:c,overflows:ee}],!ee.every(me=>me<=0)){var fe,ue;const me=(((fe=u.flip)==null?void 0:fe.index)||0)+1,ae=G[me];if(ae&&(!(g==="alignment"?j!==$n(ae):!1)||oe.every(K=>$n(K.placement)===j?K.overflows[0]>0:!0)))return{data:{index:me,overflows:oe},reset:{placement:ae}};let M=(ue=oe.filter(q=>q.overflows[0]<=0).sort((q,K)=>q.overflows[1]-K.overflows[1])[0])==null?void 0:ue.placement;if(!M)switch(N){case"bestFit":{var ie;const q=(ie=oe.filter(K=>{if(Y){const de=$n(K.placement);return de===j||de==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(de=>de>0).reduce((de,C)=>de+C,0)]).sort((K,de)=>K[1]-de[1])[0])==null?void 0:ie[0];q&&(M=q);break}case"initialPlacement":M=h;break}if(c!==M)return{reset:{placement:M}}}return{}}}};function Iv(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function Xv(n){return EA.some(r=>n[r]>=0)}const UA=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:o,platform:s}=r,{strategy:c="referenceHidden",...u}=ua(n,r);switch(c){case"referenceHidden":{const m=await s.detectOverflow(r,{...u,elementContext:"reference"}),h=Iv(m,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Xv(h)}}}case"escaped":{const m=await s.detectOverflow(r,{...u,altBoundary:!0}),h=Iv(m,o.floating);return{data:{escapedOffsets:h,escaped:Xv(h)}}}default:return{}}}}},eb=new Set(["left","top"]);async function BA(n,r){const{placement:o,platform:s,elements:c}=n,u=await(s.isRTL==null?void 0:s.isRTL(c.floating)),m=da(o),h=Oo(o),y=$n(o)==="y",p=eb.has(m)?-1:1,b=u&&y?-1:1,g=ua(r,n);let{mainAxis:S,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*b,y:S*p}:{x:S*p,y:N*b}}const HA=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var o,s;const{x:c,y:u,placement:m,middlewareData:h}=r,y=await BA(r,n);return m===((o=h.offset)==null?void 0:o.placement)&&(s=h.arrow)!=null&&s.alignmentOffset?{}:{x:c+y.x,y:u+y.y,data:{...y,placement:m}}}}},$A=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:o,y:s,placement:c,platform:u}=r,{mainAxis:m=!0,crossAxis:h=!1,limiter:y={fn:A=>{let{x:j,y:_}=A;return{x:j,y:_}}},...p}=ua(n,r),b={x:o,y:s},g=await u.detectOverflow(r,p),S=$n(da(c)),N=Qf(S);let T=b[N],E=b[S];if(m){const A=N==="y"?"top":"left",j=N==="y"?"bottom":"right",_=T+g[A],U=T-g[j];T=cf(_,T,U)}if(h){const A=S==="y"?"top":"left",j=S==="y"?"bottom":"right",_=E+g[A],U=E-g[j];E=cf(_,E,U)}const R=y.fn({...r,[N]:T,[S]:E});return{...R,data:{x:R.x-o,y:R.y-s,enabled:{[N]:m,[S]:h}}}}}},PA=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:o,y:s,placement:c,rects:u,middlewareData:m}=r,{offset:h=0,mainAxis:y=!0,crossAxis:p=!0}=ua(n,r),b={x:o,y:s},g=$n(c),S=Qf(g);let N=b[S],T=b[g];const E=ua(h,r),R=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(y){const _=S==="y"?"height":"width",U=u.reference[S]-u.floating[_]+R.mainAxis,z=u.reference[S]+u.reference[_]-R.mainAxis;N<U?N=U:N>z&&(N=z)}if(p){var A,j;const _=S==="y"?"width":"height",U=eb.has(da(c)),z=u.reference[g]-u.floating[_]+(U&&((A=m.offset)==null?void 0:A[g])||0)+(U?0:R.crossAxis),Y=u.reference[g]+u.reference[_]+(U?0:((j=m.offset)==null?void 0:j[g])||0)-(U?R.crossAxis:0);T<z?T=z:T>Y&&(T=Y)}return{[S]:N,[g]:T}}}},qA=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var o,s;const{placement:c,rects:u,platform:m,elements:h}=r,{apply:y=()=>{},...p}=ua(n,r),b=await m.detectOverflow(r,p),g=da(c),S=Oo(c),N=$n(c)==="y",{width:T,height:E}=u.floating;let R,A;g==="top"||g==="bottom"?(R=g,A=S===(await(m.isRTL==null?void 0:m.isRTL(h.floating))?"start":"end")?"left":"right"):(A=g,R=S==="end"?"top":"bottom");const j=E-b.top-b.bottom,_=T-b.left-b.right,U=Ya(E-b[R],j),z=Ya(T-b[A],_),Y=!r.middlewareData.shift;let G=U,P=z;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&(P=_),(s=r.middlewareData.shift)!=null&&s.enabled.y&&(G=j),Y&&!S){const oe=tn(b.left,0),fe=tn(b.right,0),ue=tn(b.top,0),ie=tn(b.bottom,0);N?P=T-2*(oe!==0||fe!==0?oe+fe:tn(b.left,b.right)):G=E-2*(ue!==0||ie!==0?ue+ie:tn(b.top,b.bottom))}await y({...r,availableWidth:P,availableHeight:G});const ee=await m.getDimensions(h.floating);return T!==ee.width||E!==ee.height?{reset:{rects:!0}}:{}}}};function lc(){return typeof window<"u"}function Do(n){return tb(n)?(n.nodeName||"").toLowerCase():"#document"}function nn(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Yn(n){var r;return(r=(tb(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function tb(n){return lc()?n instanceof Node||n instanceof nn(n).Node:!1}function wn(n){return lc()?n instanceof Element||n instanceof nn(n).Element:!1}function fa(n){return lc()?n instanceof HTMLElement||n instanceof nn(n).HTMLElement:!1}function Qv(n){return!lc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof nn(n).ShadowRoot}function es(n){const{overflow:r,overflowX:o,overflowY:s,display:c}=En(n);return/auto|scroll|overlay|hidden|clip/.test(r+s+o)&&c!=="inline"&&c!=="contents"}function VA(n){return/^(table|td|th)$/.test(Do(n))}function sc(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const YA=/transform|translate|scale|rotate|perspective|filter/,GA=/paint|layout|strict|content/,vr=n=>!!n&&n!=="none";let qd;function Ff(n){const r=wn(n)?En(n):n;return vr(r.transform)||vr(r.translate)||vr(r.scale)||vr(r.rotate)||vr(r.perspective)||!Wf()&&(vr(r.backdropFilter)||vr(r.filter))||YA.test(r.willChange||"")||GA.test(r.contain||"")}function IA(n){let r=Ga(n);for(;fa(r)&&!Co(r);){if(Ff(r))return r;if(sc(r))return null;r=Ga(r)}return null}function Wf(){return qd==null&&(qd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qd}function Co(n){return/^(html|body|#document)$/.test(Do(n))}function En(n){return nn(n).getComputedStyle(n)}function ic(n){return wn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ga(n){if(Do(n)==="html")return n;const r=n.assignedSlot||n.parentNode||Qv(n)&&n.host||Yn(n);return Qv(r)?r.host:r}function nb(n){const r=Ga(n);return Co(r)?n.ownerDocument?n.ownerDocument.body:n.body:fa(r)&&es(r)?r:nb(r)}function Zl(n,r,o){var s;r===void 0&&(r=[]),o===void 0&&(o=!0);const c=nb(n),u=c===((s=n.ownerDocument)==null?void 0:s.body),m=nn(c);if(u){const h=df(m);return r.concat(m,m.visualViewport||[],es(c)?c:[],h&&o?Zl(h):[])}else return r.concat(c,Zl(c,[],o))}function df(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function ab(n){const r=En(n);let o=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const c=fa(n),u=c?n.offsetWidth:o,m=c?n.offsetHeight:s,h=Hi(o)!==u||Hi(s)!==m;return h&&(o=u,s=m),{width:o,height:s,$:h}}function Jf(n){return wn(n)?n:n.contextElement}function No(n){const r=Jf(n);if(!fa(r))return qn(1);const o=r.getBoundingClientRect(),{width:s,height:c,$:u}=ab(r);let m=(u?Hi(o.width):o.width)/s,h=(u?Hi(o.height):o.height)/c;return(!m||!Number.isFinite(m))&&(m=1),(!h||!Number.isFinite(h))&&(h=1),{x:m,y:h}}const XA=qn(0);function rb(n){const r=nn(n);return!Wf()||!r.visualViewport?XA:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function QA(n,r,o){return r===void 0&&(r=!1),!o||r&&o!==nn(n)?!1:r}function Sr(n,r,o,s){r===void 0&&(r=!1),o===void 0&&(o=!1);const c=n.getBoundingClientRect(),u=Jf(n);let m=qn(1);r&&(s?wn(s)&&(m=No(s)):m=No(n));const h=QA(u,o,s)?rb(u):qn(0);let y=(c.left+h.x)/m.x,p=(c.top+h.y)/m.y,b=c.width/m.x,g=c.height/m.y;if(u){const S=nn(u),N=s&&wn(s)?nn(s):s;let T=S,E=df(T);for(;E&&s&&N!==T;){const R=No(E),A=E.getBoundingClientRect(),j=En(E),_=A.left+(E.clientLeft+parseFloat(j.paddingLeft))*R.x,U=A.top+(E.clientTop+parseFloat(j.paddingTop))*R.y;y*=R.x,p*=R.y,b*=R.x,g*=R.y,y+=_,p+=U,T=nn(E),E=df(T)}}return Pi({width:b,height:g,x:y,y:p})}function cc(n,r){const o=ic(n).scrollLeft;return r?r.left+o:Sr(Yn(n)).left+o}function ob(n,r){const o=n.getBoundingClientRect(),s=o.left+r.scrollLeft-cc(n,o),c=o.top+r.scrollTop;return{x:s,y:c}}function KA(n){let{elements:r,rect:o,offsetParent:s,strategy:c}=n;const u=c==="fixed",m=Yn(s),h=r?sc(r.floating):!1;if(s===m||h&&u)return o;let y={scrollLeft:0,scrollTop:0},p=qn(1);const b=qn(0),g=fa(s);if((g||!g&&!u)&&((Do(s)!=="body"||es(m))&&(y=ic(s)),g)){const N=Sr(s);p=No(s),b.x=N.x+s.clientLeft,b.y=N.y+s.clientTop}const S=m&&!g&&!u?ob(m,y):qn(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-y.scrollLeft*p.x+b.x+S.x,y:o.y*p.y-y.scrollTop*p.y+b.y+S.y}}function ZA(n){return Array.from(n.getClientRects())}function FA(n){const r=Yn(n),o=ic(n),s=n.ownerDocument.body,c=tn(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),u=tn(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let m=-o.scrollLeft+cc(n);const h=-o.scrollTop;return En(s).direction==="rtl"&&(m+=tn(r.clientWidth,s.clientWidth)-c),{width:c,height:u,x:m,y:h}}const Kv=25;function WA(n,r){const o=nn(n),s=Yn(n),c=o.visualViewport;let u=s.clientWidth,m=s.clientHeight,h=0,y=0;if(c){u=c.width,m=c.height;const b=Wf();(!b||b&&r==="fixed")&&(h=c.offsetLeft,y=c.offsetTop)}const p=cc(s);if(p<=0){const b=s.ownerDocument,g=b.body,S=getComputedStyle(g),N=b.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,T=Math.abs(s.clientWidth-g.clientWidth-N);T<=Kv&&(u-=T)}else p<=Kv&&(u+=p);return{width:u,height:m,x:h,y}}function JA(n,r){const o=Sr(n,!0,r==="fixed"),s=o.top+n.clientTop,c=o.left+n.clientLeft,u=fa(n)?No(n):qn(1),m=n.clientWidth*u.x,h=n.clientHeight*u.y,y=c*u.x,p=s*u.y;return{width:m,height:h,x:y,y:p}}function Zv(n,r,o){let s;if(r==="viewport")s=WA(n,o);else if(r==="document")s=FA(Yn(n));else if(wn(r))s=JA(r,o);else{const c=rb(n);s={x:r.x-c.x,y:r.y-c.y,width:r.width,height:r.height}}return Pi(s)}function lb(n,r){const o=Ga(n);return o===r||!wn(o)||Co(o)?!1:En(o).position==="fixed"||lb(o,r)}function e5(n,r){const o=r.get(n);if(o)return o;let s=Zl(n,[],!1).filter(h=>wn(h)&&Do(h)!=="body"),c=null;const u=En(n).position==="fixed";let m=u?Ga(n):n;for(;wn(m)&&!Co(m);){const h=En(m),y=Ff(m);!y&&h.position==="fixed"&&(c=null),(u?!y&&!c:!y&&h.position==="static"&&!!c&&(c.position==="absolute"||c.position==="fixed")||es(m)&&!y&&lb(n,m))?s=s.filter(b=>b!==m):c=h,m=Ga(m)}return r.set(n,s),s}function t5(n){let{element:r,boundary:o,rootBoundary:s,strategy:c}=n;const m=[...o==="clippingAncestors"?sc(r)?[]:e5(r,this._c):[].concat(o),s],h=Zv(r,m[0],c);let y=h.top,p=h.right,b=h.bottom,g=h.left;for(let S=1;S<m.length;S++){const N=Zv(r,m[S],c);y=tn(N.top,y),p=Ya(N.right,p),b=Ya(N.bottom,b),g=tn(N.left,g)}return{width:p-g,height:b-y,x:g,y}}function n5(n){const{width:r,height:o}=ab(n);return{width:r,height:o}}function a5(n,r,o){const s=fa(r),c=Yn(r),u=o==="fixed",m=Sr(n,!0,u,r);let h={scrollLeft:0,scrollTop:0};const y=qn(0);function p(){y.x=cc(c)}if(s||!s&&!u)if((Do(r)!=="body"||es(c))&&(h=ic(r)),s){const N=Sr(r,!0,u,r);y.x=N.x+r.clientLeft,y.y=N.y+r.clientTop}else c&&p();u&&!s&&c&&p();const b=c&&!s&&!u?ob(c,h):qn(0),g=m.left+h.scrollLeft-y.x-b.x,S=m.top+h.scrollTop-y.y-b.y;return{x:g,y:S,width:m.width,height:m.height}}function Vd(n){return En(n).position==="static"}function Fv(n,r){if(!fa(n)||En(n).position==="fixed")return null;if(r)return r(n);let o=n.offsetParent;return Yn(n)===o&&(o=o.ownerDocument.body),o}function sb(n,r){const o=nn(n);if(sc(n))return o;if(!fa(n)){let c=Ga(n);for(;c&&!Co(c);){if(wn(c)&&!Vd(c))return c;c=Ga(c)}return o}let s=Fv(n,r);for(;s&&VA(s)&&Vd(s);)s=Fv(s,r);return s&&Co(s)&&Vd(s)&&!Ff(s)?o:s||IA(n)||o}const r5=async function(n){const r=this.getOffsetParent||sb,o=this.getDimensions,s=await o(n.floating);return{reference:a5(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function o5(n){return En(n).direction==="rtl"}const l5={convertOffsetParentRelativeRectToViewportRelativeRect:KA,getDocumentElement:Yn,getClippingRect:t5,getOffsetParent:sb,getElementRects:r5,getClientRects:ZA,getDimensions:n5,getScale:No,isElement:wn,isRTL:o5};function ib(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function s5(n,r){let o=null,s;const c=Yn(n);function u(){var h;clearTimeout(s),(h=o)==null||h.disconnect(),o=null}function m(h,y){h===void 0&&(h=!1),y===void 0&&(y=1),u();const p=n.getBoundingClientRect(),{left:b,top:g,width:S,height:N}=p;if(h||r(),!S||!N)return;const T=Ni(g),E=Ni(c.clientWidth-(b+S)),R=Ni(c.clientHeight-(g+N)),A=Ni(b),_={rootMargin:-T+"px "+-E+"px "+-R+"px "+-A+"px",threshold:tn(0,Ya(1,y))||1};let U=!0;function z(Y){const G=Y[0].intersectionRatio;if(G!==y){if(!U)return m();G?m(!1,G):s=setTimeout(()=>{m(!1,1e-7)},1e3)}G===1&&!ib(p,n.getBoundingClientRect())&&m(),U=!1}try{o=new IntersectionObserver(z,{..._,root:c.ownerDocument})}catch{o=new IntersectionObserver(z,_)}o.observe(n)}return m(!0),u}function i5(n,r,o,s){s===void 0&&(s={});const{ancestorScroll:c=!0,ancestorResize:u=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:y=!1}=s,p=Jf(n),b=c||u?[...p?Zl(p):[],...r?Zl(r):[]]:[];b.forEach(A=>{c&&A.addEventListener("scroll",o,{passive:!0}),u&&A.addEventListener("resize",o)});const g=p&&h?s5(p,o):null;let S=-1,N=null;m&&(N=new ResizeObserver(A=>{let[j]=A;j&&j.target===p&&N&&r&&(N.unobserve(r),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var _;(_=N)==null||_.observe(r)})),o()}),p&&!y&&N.observe(p),r&&N.observe(r));let T,E=y?Sr(n):null;y&&R();function R(){const A=Sr(n);E&&!ib(E,A)&&o(),E=A,T=requestAnimationFrame(R)}return o(),()=>{var A;b.forEach(j=>{c&&j.removeEventListener("scroll",o),u&&j.removeEventListener("resize",o)}),g==null||g(),(A=N)==null||A.disconnect(),N=null,y&&cancelAnimationFrame(T)}}const c5=HA,u5=$A,d5=LA,f5=qA,m5=UA,Wv=zA,h5=PA,p5=(n,r,o)=>{const s=new Map,c={platform:l5,...o},u={...c.platform,_c:s};return DA(n,r,{...c,platform:u})};var g5=typeof document<"u",v5=function(){},ji=g5?v.useLayoutEffect:v5;function qi(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let o,s,c;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==r.length)return!1;for(s=o;s--!==0;)if(!qi(n[s],r[s]))return!1;return!0}if(c=Object.keys(n),o=c.length,o!==Object.keys(r).length)return!1;for(s=o;s--!==0;)if(!{}.hasOwnProperty.call(r,c[s]))return!1;for(s=o;s--!==0;){const u=c[s];if(!(u==="_owner"&&n.$$typeof)&&!qi(n[u],r[u]))return!1}return!0}return n!==n&&r!==r}function cb(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Jv(n,r){const o=cb(n);return Math.round(r*o)/o}function Yd(n){const r=v.useRef(n);return ji(()=>{r.current=n}),r}function y5(n){n===void 0&&(n={});const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:c,elements:{reference:u,floating:m}={},transform:h=!0,whileElementsMounted:y,open:p}=n,[b,g]=v.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[S,N]=v.useState(s);qi(S,s)||N(s);const[T,E]=v.useState(null),[R,A]=v.useState(null),j=v.useCallback(K=>{K!==Y.current&&(Y.current=K,E(K))},[]),_=v.useCallback(K=>{K!==G.current&&(G.current=K,A(K))},[]),U=u||T,z=m||R,Y=v.useRef(null),G=v.useRef(null),P=v.useRef(b),ee=y!=null,oe=Yd(y),fe=Yd(c),ue=Yd(p),ie=v.useCallback(()=>{if(!Y.current||!G.current)return;const K={placement:r,strategy:o,middleware:S};fe.current&&(K.platform=fe.current),p5(Y.current,G.current,K).then(de=>{const C={...de,isPositioned:ue.current!==!1};me.current&&!qi(P.current,C)&&(P.current=C,Jl.flushSync(()=>{g(C)}))})},[S,r,o,fe,ue]);ji(()=>{p===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,g(K=>({...K,isPositioned:!1})))},[p]);const me=v.useRef(!1);ji(()=>(me.current=!0,()=>{me.current=!1}),[]),ji(()=>{if(U&&(Y.current=U),z&&(G.current=z),U&&z){if(oe.current)return oe.current(U,z,ie);ie()}},[U,z,ie,oe,ee]);const ae=v.useMemo(()=>({reference:Y,floating:G,setReference:j,setFloating:_}),[j,_]),M=v.useMemo(()=>({reference:U,floating:z}),[U,z]),q=v.useMemo(()=>{const K={position:o,left:0,top:0};if(!M.floating)return K;const de=Jv(M.floating,b.x),C=Jv(M.floating,b.y);return h?{...K,transform:"translate("+de+"px, "+C+"px)",...cb(M.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:de,top:C}},[o,h,M.floating,b.x,b.y]);return v.useMemo(()=>({...b,update:ie,refs:ae,elements:M,floatingStyles:q}),[b,ie,ae,M,q])}const b5=n=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:s,padding:c}=typeof n=="function"?n(o):n;return s&&r(s)?s.current!=null?Wv({element:s.current,padding:c}).fn(o):{}:s?Wv({element:s,padding:c}).fn(o):{}}}},x5=(n,r)=>{const o=c5(n);return{name:o.name,fn:o.fn,options:[n,r]}},S5=(n,r)=>{const o=u5(n);return{name:o.name,fn:o.fn,options:[n,r]}},w5=(n,r)=>({fn:h5(n).fn,options:[n,r]}),E5=(n,r)=>{const o=d5(n);return{name:o.name,fn:o.fn,options:[n,r]}},N5=(n,r)=>{const o=f5(n);return{name:o.name,fn:o.fn,options:[n,r]}},T5=(n,r)=>{const o=m5(n);return{name:o.name,fn:o.fn,options:[n,r]}},R5=(n,r)=>{const o=b5(n);return{name:o.name,fn:o.fn,options:[n,r]}};var C5="Arrow",ub=v.forwardRef((n,r)=>{const{children:o,width:s=10,height:c=5,...u}=n;return f.jsx(Ue.svg,{...u,ref:r,width:s,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?o:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});ub.displayName=C5;var A5=ub;function db(n){const[r,o]=v.useState(void 0);return Lt(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const u=c[0];let m,h;if("borderBoxSize"in u){const y=u.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 s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else o(void 0)},[n]),r}var em="Popper",[fb,mb]=Xa(em),[k5,hb]=fb(em),pb=n=>{const{__scopePopper:r,children:o}=n,[s,c]=v.useState(null);return f.jsx(k5,{scope:r,anchor:s,onAnchorChange:c,children:o})};pb.displayName=em;var gb="PopperAnchor",vb=v.forwardRef((n,r)=>{const{__scopePopper:o,virtualRef:s,...c}=n,u=hb(gb,o),m=v.useRef(null),h=tt(r,m),y=v.useRef(null);return v.useEffect(()=>{const p=y.current;y.current=(s==null?void 0:s.current)||m.current,p!==y.current&&u.onAnchorChange(y.current)}),s?null:f.jsx(Ue.div,{...c,ref:h})});vb.displayName=gb;var tm="PopperContent",[j5,_5]=fb(tm),yb=v.forwardRef((n,r)=>{var ce,le,J,ve,ye,Se;const{__scopePopper:o,side:s="bottom",sideOffset:c=0,align:u="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:y=!0,collisionBoundary:p=[],collisionPadding:b=0,sticky:g="partial",hideWhenDetached:S=!1,updatePositionStrategy:N="optimized",onPlaced:T,...E}=n,R=hb(tm,o),[A,j]=v.useState(null),_=tt(r,Be=>j(Be)),[U,z]=v.useState(null),Y=db(U),G=(Y==null?void 0:Y.width)??0,P=(Y==null?void 0:Y.height)??0,ee=s+(u!=="center"?"-"+u:""),oe=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},fe=Array.isArray(p)?p:[p],ue=fe.length>0,ie={padding:oe,boundary:fe.filter(O5),altBoundary:ue},{refs:me,floatingStyles:ae,placement:M,isPositioned:q,middlewareData:K}=y5({strategy:"fixed",placement:ee,whileElementsMounted:(...Be)=>i5(...Be,{animationFrame:N==="always"}),elements:{reference:R.anchor},middleware:[x5({mainAxis:c+P,alignmentAxis:m}),y&&S5({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?w5():void 0,...ie}),y&&E5({...ie}),N5({...ie,apply:({elements:Be,rects:$e,availableWidth:Ge,availableHeight:vt})=>{const{width:_e,height:Ht}=$e.reference,yt=Be.floating.style;yt.setProperty("--radix-popper-available-width",`${Ge}px`),yt.setProperty("--radix-popper-available-height",`${vt}px`),yt.setProperty("--radix-popper-anchor-width",`${_e}px`),yt.setProperty("--radix-popper-anchor-height",`${Ht}px`)}}),U&&R5({element:U,padding:h}),D5({arrowWidth:G,arrowHeight:P}),S&&T5({strategy:"referenceHidden",...ie})]}),[de,C]=Sb(M),V=Va(T);Lt(()=>{q&&(V==null||V())},[q,V]);const F=(ce=K.arrow)==null?void 0:ce.x,I=(le=K.arrow)==null?void 0:le.y,W=((J=K.arrow)==null?void 0:J.centerOffset)!==0,[se,re]=v.useState();return Lt(()=>{A&&re(window.getComputedStyle(A).zIndex)},[A]),f.jsx("div",{ref:me.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:q?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[(ve=K.transformOrigin)==null?void 0:ve.x,(ye=K.transformOrigin)==null?void 0:ye.y].join(" "),...((Se=K.hide)==null?void 0:Se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:f.jsx(j5,{scope:o,placedSide:de,onArrowChange:z,arrowX:F,arrowY:I,shouldHideArrow:W,children:f.jsx(Ue.div,{"data-side":de,"data-align":C,...E,ref:_,style:{...E.style,animation:q?void 0:"none"}})})})});yb.displayName=tm;var bb="PopperArrow",M5={top:"bottom",right:"left",bottom:"top",left:"right"},xb=v.forwardRef(function(r,o){const{__scopePopper:s,...c}=r,u=_5(bb,s),m=M5[u.placedSide];return f.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[m]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:f.jsx(A5,{...c,ref:o,style:{...c.style,display:"block"}})})});xb.displayName=bb;function O5(n){return n!==null}var D5=n=>({name:"transformOrigin",options:n,fn(r){var R,A,j;const{placement:o,rects:s,middlewareData:c}=r,m=((R=c.arrow)==null?void 0:R.centerOffset)!==0,h=m?0:n.arrowWidth,y=m?0:n.arrowHeight,[p,b]=Sb(o),g={start:"0%",center:"50%",end:"100%"}[b],S=(((A=c.arrow)==null?void 0:A.x)??0)+h/2,N=(((j=c.arrow)==null?void 0:j.y)??0)+y/2;let T="",E="";return p==="bottom"?(T=m?g:`${S}px`,E=`${-y}px`):p==="top"?(T=m?g:`${S}px`,E=`${s.floating.height+y}px`):p==="right"?(T=`${-y}px`,E=m?g:`${N}px`):p==="left"&&(T=`${s.floating.width+y}px`,E=m?g:`${N}px`),{data:{x:T,y:E}}}});function Sb(n){const[r,o="center"]=n.split("-");return[r,o]}var z5=pb,L5=vb,U5=yb,B5=xb;function wb(n){const r=v.useRef({value:n,previous:n});return v.useMemo(()=>(r.current.value!==n&&(r.current.previous=r.current.value,r.current.value=n),r.current.previous),[n])}var Eb=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"}),H5="VisuallyHidden",$5=v.forwardRef((n,r)=>f.jsx(Ue.span,{...n,ref:r,style:{...Eb,...n.style}}));$5.displayName=H5;var P5=[" ","Enter","ArrowUp","ArrowDown"],q5=[" ","Enter"],wr="Select",[uc,dc,V5]=Wy(wr),[zo]=Xa(wr,[V5,mb]),fc=mb(),[Y5,Qa]=zo(wr),[G5,I5]=zo(wr),Nb=n=>{const{__scopeSelect:r,children:o,open:s,defaultOpen:c,onOpenChange:u,value:m,defaultValue:h,onValueChange:y,dir:p,name:b,autoComplete:g,disabled:S,required:N,form:T}=n,E=fc(r),[R,A]=v.useState(null),[j,_]=v.useState(null),[U,z]=v.useState(!1),Y=Xf(p),[G,P]=Ro({prop:s,defaultProp:c??!1,onChange:u,caller:wr}),[ee,oe]=Ro({prop:m,defaultProp:h,onChange:y,caller:wr}),fe=v.useRef(null),ue=R?T||!!R.closest("form"):!0,[ie,me]=v.useState(new Set),ae=Array.from(ie).map(M=>M.props.value).join(";");return f.jsx(z5,{...E,children:f.jsxs(Y5,{required:N,scope:r,trigger:R,onTriggerChange:A,valueNode:j,onValueNodeChange:_,valueNodeHasChildren:U,onValueNodeHasChildrenChange:z,contentId:Pa(),value:ee,onValueChange:oe,open:G,onOpenChange:P,dir:Y,triggerPointerDownPosRef:fe,disabled:S,children:[f.jsx(uc.Provider,{scope:r,children:f.jsx(G5,{scope:n.__scopeSelect,onNativeOptionAdd:v.useCallback(M=>{me(q=>new Set(q).add(M))},[]),onNativeOptionRemove:v.useCallback(M=>{me(q=>{const K=new Set(q);return K.delete(M),K})},[]),children:o})}),ue?f.jsxs(Qb,{"aria-hidden":!0,required:N,tabIndex:-1,name:b,autoComplete:g,value:ee,onChange:M=>oe(M.target.value),disabled:S,form:T,children:[ee===void 0?f.jsx("option",{value:""}):null,Array.from(ie)]},ae):null]})})};Nb.displayName=wr;var Tb="SelectTrigger",Rb=v.forwardRef((n,r)=>{const{__scopeSelect:o,disabled:s=!1,...c}=n,u=fc(o),m=Qa(Tb,o),h=m.disabled||s,y=tt(r,m.onTriggerChange),p=dc(o),b=v.useRef("touch"),[g,S,N]=Zb(E=>{const R=p().filter(_=>!_.disabled),A=R.find(_=>_.value===m.value),j=Fb(R,E,A);j!==void 0&&m.onValueChange(j.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(L5,{asChild:!0,...u,children:f.jsx(Ue.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":Kb(m.value)?"":void 0,...c,ref:y,onClick:Le(c.onClick,E=>{E.currentTarget.focus(),b.current!=="mouse"&&T(E)}),onPointerDown:Le(c.onPointerDown,E=>{b.current=E.pointerType;const R=E.target;R.hasPointerCapture(E.pointerId)&&R.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(T(E),E.preventDefault())}),onKeyDown:Le(c.onKeyDown,E=>{const R=g.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&S(E.key),!(R&&E.key===" ")&&P5.includes(E.key)&&(T(),E.preventDefault())})})})});Rb.displayName=Tb;var Cb="SelectValue",Ab=v.forwardRef((n,r)=>{const{__scopeSelect:o,className:s,style:c,children:u,placeholder:m="",...h}=n,y=Qa(Cb,o),{onValueNodeHasChildrenChange:p}=y,b=u!==void 0,g=tt(r,y.onValueNodeChange);return Lt(()=>{p(b)},[p,b]),f.jsx(Ue.span,{...h,ref:g,style:{pointerEvents:"none"},children:Kb(y.value)?f.jsx(f.Fragment,{children:m}):u})});Ab.displayName=Cb;var X5="SelectIcon",kb=v.forwardRef((n,r)=>{const{__scopeSelect:o,children:s,...c}=n;return f.jsx(Ue.span,{"aria-hidden":!0,...c,ref:r,children:s||"▼"})});kb.displayName=X5;var Q5="SelectPortal",jb=n=>f.jsx(Bf,{asChild:!0,...n});jb.displayName=Q5;var Er="SelectContent",_b=v.forwardRef((n,r)=>{const o=Qa(Er,n.__scopeSelect),[s,c]=v.useState();if(Lt(()=>{c(new DocumentFragment)},[]),!o.open){const u=s;return u?Jl.createPortal(f.jsx(Mb,{scope:n.__scopeSelect,children:f.jsx(uc.Slot,{scope:n.__scopeSelect,children:f.jsx("div",{children:n.children})})}),u):null}return f.jsx(Ob,{...n,ref:r})});_b.displayName=Er;var xn=10,[Mb,Ka]=zo(Er),K5="SelectContentImpl",Z5=Kl("SelectContent.RemoveScroll"),Ob=v.forwardRef((n,r)=>{const{__scopeSelect:o,position:s="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:u,onPointerDownOutside:m,side:h,sideOffset:y,align:p,alignOffset:b,arrowPadding:g,collisionBoundary:S,collisionPadding:N,sticky:T,hideWhenDetached:E,avoidCollisions:R,...A}=n,j=Qa(Er,o),[_,U]=v.useState(null),[z,Y]=v.useState(null),G=tt(r,ce=>U(ce)),[P,ee]=v.useState(null),[oe,fe]=v.useState(null),ue=dc(o),[ie,me]=v.useState(!1),ae=v.useRef(!1);v.useEffect(()=>{if(_)return Ry(_)},[_]),vy();const M=v.useCallback(ce=>{const[le,...J]=ue().map(Se=>Se.ref.current),[ve]=J.slice(-1),ye=document.activeElement;for(const Se of ce)if(Se===ye||(Se==null||Se.scrollIntoView({block:"nearest"}),Se===le&&z&&(z.scrollTop=0),Se===ve&&z&&(z.scrollTop=z.scrollHeight),Se==null||Se.focus(),document.activeElement!==ye))return},[ue,z]),q=v.useCallback(()=>M([P,_]),[M,P,_]);v.useEffect(()=>{ie&&q()},[ie,q]);const{onOpenChange:K,triggerPointerDownPosRef:de}=j;v.useEffect(()=>{if(_){let ce={x:0,y:0};const le=ve=>{var ye,Se;ce={x:Math.abs(Math.round(ve.pageX)-(((ye=de.current)==null?void 0:ye.x)??0)),y:Math.abs(Math.round(ve.pageY)-(((Se=de.current)==null?void 0:Se.y)??0))}},J=ve=>{ce.x<=10&&ce.y<=10?ve.preventDefault():_.contains(ve.target)||K(!1),document.removeEventListener("pointermove",le),de.current=null};return de.current!==null&&(document.addEventListener("pointermove",le),document.addEventListener("pointerup",J,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",le),document.removeEventListener("pointerup",J,{capture:!0})}}},[_,K,de]),v.useEffect(()=>{const ce=()=>K(!1);return window.addEventListener("blur",ce),window.addEventListener("resize",ce),()=>{window.removeEventListener("blur",ce),window.removeEventListener("resize",ce)}},[K]);const[C,V]=Zb(ce=>{const le=ue().filter(ye=>!ye.disabled),J=le.find(ye=>ye.ref.current===document.activeElement),ve=Fb(le,ce,J);ve&&setTimeout(()=>ve.ref.current.focus())}),F=v.useCallback((ce,le,J)=>{const ve=!ae.current&&!J;(j.value!==void 0&&j.value===le||ve)&&(ee(ce),ve&&(ae.current=!0))},[j.value]),I=v.useCallback(()=>_==null?void 0:_.focus(),[_]),W=v.useCallback((ce,le,J)=>{const ve=!ae.current&&!J;(j.value!==void 0&&j.value===le||ve)&&fe(ce)},[j.value]),se=s==="popper"?ff:Db,re=se===ff?{side:h,sideOffset:y,align:p,alignOffset:b,arrowPadding:g,collisionBoundary:S,collisionPadding:N,sticky:T,hideWhenDetached:E,avoidCollisions:R}:{};return f.jsx(Mb,{scope:o,content:_,viewport:z,onViewportChange:Y,itemRefCallback:F,selectedItem:P,onItemLeave:I,itemTextRefCallback:W,focusSelectedItem:q,selectedItemText:oe,position:s,isPositioned:ie,searchRef:C,children:f.jsx(Hf,{as:Z5,allowPinchZoom:!0,children:f.jsx(Uf,{asChild:!0,trapped:j.open,onMountAutoFocus:ce=>{ce.preventDefault()},onUnmountAutoFocus:Le(c,ce=>{var le;(le=j.trigger)==null||le.focus({preventScroll:!0}),ce.preventDefault()}),children:f.jsx(Lf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:ce=>ce.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:f.jsx(se,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:ce=>ce.preventDefault(),...A,...re,onPlaced:()=>me(!0),ref:G,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:Le(A.onKeyDown,ce=>{const le=ce.ctrlKey||ce.altKey||ce.metaKey;if(ce.key==="Tab"&&ce.preventDefault(),!le&&ce.key.length===1&&V(ce.key),["ArrowUp","ArrowDown","Home","End"].includes(ce.key)){let ve=ue().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(ce.key)&&(ve=ve.slice().reverse()),["ArrowUp","ArrowDown"].includes(ce.key)){const ye=ce.target,Se=ve.indexOf(ye);ve=ve.slice(Se+1)}setTimeout(()=>M(ve)),ce.preventDefault()}})})})})})})});Ob.displayName=K5;var F5="SelectItemAlignedPosition",Db=v.forwardRef((n,r)=>{const{__scopeSelect:o,onPlaced:s,...c}=n,u=Qa(Er,o),m=Ka(Er,o),[h,y]=v.useState(null),[p,b]=v.useState(null),g=tt(r,G=>b(G)),S=dc(o),N=v.useRef(!1),T=v.useRef(!0),{viewport:E,selectedItem:R,selectedItemText:A,focusSelectedItem:j}=m,_=v.useCallback(()=>{if(u.trigger&&u.valueNode&&h&&p&&E&&R&&A){const G=u.trigger.getBoundingClientRect(),P=p.getBoundingClientRect(),ee=u.valueNode.getBoundingClientRect(),oe=A.getBoundingClientRect();if(u.dir!=="rtl"){const ye=oe.left-P.left,Se=ee.left-ye,Be=G.left-Se,$e=G.width+Be,Ge=Math.max($e,P.width),vt=window.innerWidth-xn,_e=qv(Se,[xn,Math.max(xn,vt-Ge)]);h.style.minWidth=$e+"px",h.style.left=_e+"px"}else{const ye=P.right-oe.right,Se=window.innerWidth-ee.right-ye,Be=window.innerWidth-G.right-Se,$e=G.width+Be,Ge=Math.max($e,P.width),vt=window.innerWidth-xn,_e=qv(Se,[xn,Math.max(xn,vt-Ge)]);h.style.minWidth=$e+"px",h.style.right=_e+"px"}const fe=S(),ue=window.innerHeight-xn*2,ie=E.scrollHeight,me=window.getComputedStyle(p),ae=parseInt(me.borderTopWidth,10),M=parseInt(me.paddingTop,10),q=parseInt(me.borderBottomWidth,10),K=parseInt(me.paddingBottom,10),de=ae+M+ie+K+q,C=Math.min(R.offsetHeight*5,de),V=window.getComputedStyle(E),F=parseInt(V.paddingTop,10),I=parseInt(V.paddingBottom,10),W=G.top+G.height/2-xn,se=ue-W,re=R.offsetHeight/2,ce=R.offsetTop+re,le=ae+M+ce,J=de-le;if(le<=W){const ye=fe.length>0&&R===fe[fe.length-1].ref.current;h.style.bottom="0px";const Se=p.clientHeight-E.offsetTop-E.offsetHeight,Be=Math.max(se,re+(ye?I:0)+Se+q),$e=le+Be;h.style.height=$e+"px"}else{const ye=fe.length>0&&R===fe[0].ref.current;h.style.top="0px";const Be=Math.max(W,ae+E.offsetTop+(ye?F:0)+re)+J;h.style.height=Be+"px",E.scrollTop=le-W+E.offsetTop}h.style.margin=`${xn}px 0`,h.style.minHeight=C+"px",h.style.maxHeight=ue+"px",s==null||s(),requestAnimationFrame(()=>N.current=!0)}},[S,u.trigger,u.valueNode,h,p,E,R,A,u.dir,s]);Lt(()=>_(),[_]);const[U,z]=v.useState();Lt(()=>{p&&z(window.getComputedStyle(p).zIndex)},[p]);const Y=v.useCallback(G=>{G&&T.current===!0&&(_(),j==null||j(),T.current=!1)},[_,j]);return f.jsx(J5,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:N,onScrollButtonChange:Y,children:f.jsx("div",{ref:y,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:U},children:f.jsx(Ue.div,{...c,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});Db.displayName=F5;var W5="SelectPopperPosition",ff=v.forwardRef((n,r)=>{const{__scopeSelect:o,align:s="start",collisionPadding:c=xn,...u}=n,m=fc(o);return f.jsx(U5,{...m,...u,ref:r,align:s,collisionPadding:c,style:{boxSizing:"border-box",...u.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)"}})});ff.displayName=W5;var[J5,nm]=zo(Er,{}),mf="SelectViewport",zb=v.forwardRef((n,r)=>{const{__scopeSelect:o,nonce:s,...c}=n,u=Ka(mf,o),m=nm(mf,o),h=tt(r,u.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:s}),f.jsx(uc.Slot,{scope:o,children:f.jsx(Ue.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:Le(c.onScroll,p=>{const b=p.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:S}=m;if(S!=null&&S.current&&g){const N=Math.abs(y.current-b.scrollTop);if(N>0){const T=window.innerHeight-xn*2,E=parseFloat(g.style.minHeight),R=parseFloat(g.style.height),A=Math.max(E,R);if(A<T){const j=A+N,_=Math.min(T,j),U=j-_;g.style.height=_+"px",g.style.bottom==="0px"&&(b.scrollTop=U>0?U:0,g.style.justifyContent="flex-end")}}}y.current=b.scrollTop})})})]})});zb.displayName=mf;var Lb="SelectGroup",[ek,tk]=zo(Lb),nk=v.forwardRef((n,r)=>{const{__scopeSelect:o,...s}=n,c=Pa();return f.jsx(ek,{scope:o,id:c,children:f.jsx(Ue.div,{role:"group","aria-labelledby":c,...s,ref:r})})});nk.displayName=Lb;var Ub="SelectLabel",Bb=v.forwardRef((n,r)=>{const{__scopeSelect:o,...s}=n,c=tk(Ub,o);return f.jsx(Ue.div,{id:c.id,...s,ref:r})});Bb.displayName=Ub;var Vi="SelectItem",[ak,Hb]=zo(Vi),$b=v.forwardRef((n,r)=>{const{__scopeSelect:o,value:s,disabled:c=!1,textValue:u,...m}=n,h=Qa(Vi,o),y=Ka(Vi,o),p=h.value===s,[b,g]=v.useState(u??""),[S,N]=v.useState(!1),T=tt(r,j=>{var _;return(_=y.itemRefCallback)==null?void 0:_.call(y,j,s,c)}),E=Pa(),R=v.useRef("touch"),A=()=>{c||(h.onValueChange(s),h.onOpenChange(!1))};if(s==="")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(ak,{scope:o,value:s,disabled:c,textId:E,isSelected:p,onItemTextChange:v.useCallback(j=>{g(_=>_||((j==null?void 0:j.textContent)??"").trim())},[]),children:f.jsx(uc.ItemSlot,{scope:o,value:s,disabled:c,textValue:b,children:f.jsx(Ue.div,{role:"option","aria-labelledby":E,"data-highlighted":S?"":void 0,"aria-selected":p&&S,"data-state":p?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...m,ref:T,onFocus:Le(m.onFocus,()=>N(!0)),onBlur:Le(m.onBlur,()=>N(!1)),onClick:Le(m.onClick,()=>{R.current!=="mouse"&&A()}),onPointerUp:Le(m.onPointerUp,()=>{R.current==="mouse"&&A()}),onPointerDown:Le(m.onPointerDown,j=>{R.current=j.pointerType}),onPointerMove:Le(m.onPointerMove,j=>{var _;R.current=j.pointerType,c?(_=y.onItemLeave)==null||_.call(y):R.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Le(m.onPointerLeave,j=>{var _;j.currentTarget===document.activeElement&&((_=y.onItemLeave)==null||_.call(y))}),onKeyDown:Le(m.onKeyDown,j=>{var U;((U=y.searchRef)==null?void 0:U.current)!==""&&j.key===" "||(q5.includes(j.key)&&A(),j.key===" "&&j.preventDefault())})})})})});$b.displayName=Vi;var ql="SelectItemText",Pb=v.forwardRef((n,r)=>{const{__scopeSelect:o,className:s,style:c,...u}=n,m=Qa(ql,o),h=Ka(ql,o),y=Hb(ql,o),p=I5(ql,o),[b,g]=v.useState(null),S=tt(r,A=>g(A),y.onItemTextChange,A=>{var j;return(j=h.itemTextRefCallback)==null?void 0:j.call(h,A,y.value,y.disabled)}),N=b==null?void 0:b.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:R}=p;return Lt(()=>(E(T),()=>R(T)),[E,R,T]),f.jsxs(f.Fragment,{children:[f.jsx(Ue.span,{id:y.textId,...u,ref:S}),y.isSelected&&m.valueNode&&!m.valueNodeHasChildren?Jl.createPortal(u.children,m.valueNode):null]})});Pb.displayName=ql;var qb="SelectItemIndicator",Vb=v.forwardRef((n,r)=>{const{__scopeSelect:o,...s}=n;return Hb(qb,o).isSelected?f.jsx(Ue.span,{"aria-hidden":!0,...s,ref:r}):null});Vb.displayName=qb;var hf="SelectScrollUpButton",Yb=v.forwardRef((n,r)=>{const o=Ka(hf,n.__scopeSelect),s=nm(hf,n.__scopeSelect),[c,u]=v.useState(!1),m=tt(r,s.onScrollButtonChange);return Lt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=y.scrollTop>0;u(p)};const y=o.viewport;return h(),y.addEventListener("scroll",h),()=>y.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?f.jsx(Ib,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:y}=o;h&&y&&(h.scrollTop=h.scrollTop-y.offsetHeight)}}):null});Yb.displayName=hf;var pf="SelectScrollDownButton",Gb=v.forwardRef((n,r)=>{const o=Ka(pf,n.__scopeSelect),s=nm(pf,n.__scopeSelect),[c,u]=v.useState(!1),m=tt(r,s.onScrollButtonChange);return Lt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=y.scrollHeight-y.clientHeight,b=Math.ceil(y.scrollTop)<p;u(b)};const y=o.viewport;return h(),y.addEventListener("scroll",h),()=>y.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?f.jsx(Ib,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:y}=o;h&&y&&(h.scrollTop=h.scrollTop+y.offsetHeight)}}):null});Gb.displayName=pf;var Ib=v.forwardRef((n,r)=>{const{__scopeSelect:o,onAutoScroll:s,...c}=n,u=Ka("SelectScrollButton",o),m=v.useRef(null),h=dc(o),y=v.useCallback(()=>{m.current!==null&&(window.clearInterval(m.current),m.current=null)},[]);return v.useEffect(()=>()=>y(),[y]),Lt(()=>{var b;const p=h().find(g=>g.ref.current===document.activeElement);(b=p==null?void 0:p.ref.current)==null||b.scrollIntoView({block:"nearest"})},[h]),f.jsx(Ue.div,{"aria-hidden":!0,...c,ref:r,style:{flexShrink:0,...c.style},onPointerDown:Le(c.onPointerDown,()=>{m.current===null&&(m.current=window.setInterval(s,50))}),onPointerMove:Le(c.onPointerMove,()=>{var p;(p=u.onItemLeave)==null||p.call(u),m.current===null&&(m.current=window.setInterval(s,50))}),onPointerLeave:Le(c.onPointerLeave,()=>{y()})})}),rk="SelectSeparator",Xb=v.forwardRef((n,r)=>{const{__scopeSelect:o,...s}=n;return f.jsx(Ue.div,{"aria-hidden":!0,...s,ref:r})});Xb.displayName=rk;var gf="SelectArrow",ok=v.forwardRef((n,r)=>{const{__scopeSelect:o,...s}=n,c=fc(o),u=Qa(gf,o),m=Ka(gf,o);return u.open&&m.position==="popper"?f.jsx(B5,{...c,...s,ref:r}):null});ok.displayName=gf;var lk="SelectBubbleInput",Qb=v.forwardRef(({__scopeSelect:n,value:r,...o},s)=>{const c=v.useRef(null),u=tt(s,c),m=wb(r);return v.useEffect(()=>{const h=c.current;if(!h)return;const y=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(y,"value").set;if(m!==r&&b){const g=new Event("change",{bubbles:!0});b.call(h,r),h.dispatchEvent(g)}},[m,r]),f.jsx(Ue.select,{...o,style:{...Eb,...o.style},ref:u,defaultValue:r})});Qb.displayName=lk;function Kb(n){return n===""||n===void 0}function Zb(n){const r=Va(n),o=v.useRef(""),s=v.useRef(0),c=v.useCallback(m=>{const h=o.current+m;r(h),(function y(p){o.current=p,window.clearTimeout(s.current),p!==""&&(s.current=window.setTimeout(()=>y(""),1e3))})(h)},[r]),u=v.useCallback(()=>{o.current="",window.clearTimeout(s.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(s.current),[]),[o,c,u]}function Fb(n,r,o){const c=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,u=o?n.indexOf(o):-1;let m=sk(n,Math.max(u,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 sk(n,r){return n.map((o,s)=>n[(r+s)%n.length])}var ik=Nb,Wb=Rb,ck=Ab,uk=kb,dk=jb,Jb=_b,fk=zb,ex=Bb,tx=$b,mk=Pb,hk=Vb,nx=Yb,ax=Gb,rx=Xb;const ox=ik,lx=ck,am=v.forwardRef(({className:n,children:r,...o},s)=>f.jsxs(Wb,{ref:s,className:ne("flex h-8 w-full items-center justify-between rounded-sm border border-input/85 bg-background/72 px-2.5 py-1.5 text-[11px] shadow-sm ring-offset-background transition-all duration-200 placeholder:text-muted-foreground focus:border-primary/45 focus:bg-background/90 focus:outline-none focus:ring-2 focus:ring-ring/45 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...o,children:[r,f.jsx(uk,{asChild:!0,children:f.jsx(Ql,{className:"h-4 w-4 opacity-50"})})]}));am.displayName=Wb.displayName;const sx=v.forwardRef(({className:n,...r},o)=>f.jsx(nx,{ref:o,className:ne("flex cursor-default items-center justify-center py-1",n),...r,children:f.jsx(yN,{className:"h-4 w-4"})}));sx.displayName=nx.displayName;const ix=v.forwardRef(({className:n,...r},o)=>f.jsx(ax,{ref:o,className:ne("flex cursor-default items-center justify-center py-1",n),...r,children:f.jsx(Ql,{className:"h-4 w-4"})}));ix.displayName=ax.displayName;const rm=v.forwardRef(({className:n,children:r,position:o="popper",...s},c)=>f.jsx(dk,{children:f.jsxs(Jb,{ref:c,className:ne("relative z-50 max-h-80 min-w-[8rem] overflow-hidden rounded-sm border border-border/70 bg-popover/96 text-popover-foreground shadow-[0_16px_48px_-34px_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,...s,children:[f.jsx(sx,{}),f.jsx(fk,{className:ne("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),f.jsx(ix,{})]})}));rm.displayName=Jb.displayName;const pk=v.forwardRef(({className:n,...r},o)=>f.jsx(ex,{ref:o,className:ne("py-1 pl-6 pr-2 text-[10px] font-semibold",n),...r}));pk.displayName=ex.displayName;const wo=v.forwardRef(({className:n,children:r,...o},s)=>f.jsxs(tx,{ref:s,className:ne("relative flex w-full cursor-default select-none items-center rounded-sm py-1 pl-6 pr-2 text-[11px] 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-1.5 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(hk,{children:f.jsx(zi,{className:"h-3.5 w-3.5"})})}),f.jsx(mk,{children:r})]}));wo.displayName=tx.displayName;const gk=v.forwardRef(({className:n,...r},o)=>f.jsx(rx,{ref:o,className:ne("-mx-1 my-1 h-px bg-muted",n),...r}));gk.displayName=rx.displayName;var Gd="rovingFocusGroup.onEntryFocus",vk={bubbles:!1,cancelable:!0},ts="RovingFocusGroup",[vf,cx,yk]=Wy(ts),[bk,ux]=Xa(ts,[yk]),[xk,Sk]=bk(ts),dx=v.forwardRef((n,r)=>f.jsx(vf.Provider,{scope:n.__scopeRovingFocusGroup,children:f.jsx(vf.Slot,{scope:n.__scopeRovingFocusGroup,children:f.jsx(wk,{...n,ref:r})})}));dx.displayName=ts;var wk=v.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:o,orientation:s,loop:c=!1,dir:u,currentTabStopId:m,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:y,onEntryFocus:p,preventScrollOnEntryFocus:b=!1,...g}=n,S=v.useRef(null),N=tt(r,S),T=Xf(u),[E,R]=Ro({prop:m,defaultProp:h??null,onChange:y,caller:ts}),[A,j]=v.useState(!1),_=Va(p),U=cx(o),z=v.useRef(!1),[Y,G]=v.useState(0);return v.useEffect(()=>{const P=S.current;if(P)return P.addEventListener(Gd,_),()=>P.removeEventListener(Gd,_)},[_]),f.jsx(xk,{scope:o,orientation:s,dir:T,loop:c,currentTabStopId:E,onItemFocus:v.useCallback(P=>R(P),[R]),onItemShiftTab:v.useCallback(()=>j(!0),[]),onFocusableItemAdd:v.useCallback(()=>G(P=>P+1),[]),onFocusableItemRemove:v.useCallback(()=>G(P=>P-1),[]),children:f.jsx(Ue.div,{tabIndex:A||Y===0?-1:0,"data-orientation":s,...g,ref:N,style:{outline:"none",...n.style},onMouseDown:Le(n.onMouseDown,()=>{z.current=!0}),onFocus:Le(n.onFocus,P=>{const ee=!z.current;if(P.target===P.currentTarget&&ee&&!A){const oe=new CustomEvent(Gd,vk);if(P.currentTarget.dispatchEvent(oe),!oe.defaultPrevented){const fe=U().filter(M=>M.focusable),ue=fe.find(M=>M.active),ie=fe.find(M=>M.id===E),ae=[ue,ie,...fe].filter(Boolean).map(M=>M.ref.current);hx(ae,b)}}z.current=!1}),onBlur:Le(n.onBlur,()=>j(!1))})})}),fx="RovingFocusGroupItem",mx=v.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:o,focusable:s=!0,active:c=!1,tabStopId:u,children:m,...h}=n,y=Pa(),p=u||y,b=Sk(fx,o),g=b.currentTabStopId===p,S=cx(o),{onFocusableItemAdd:N,onFocusableItemRemove:T,currentTabStopId:E}=b;return v.useEffect(()=>{if(s)return N(),()=>T()},[s,N,T]),f.jsx(vf.ItemSlot,{scope:o,id:p,focusable:s,active:c,children:f.jsx(Ue.span,{tabIndex:g?0:-1,"data-orientation":b.orientation,...h,ref:r,onMouseDown:Le(n.onMouseDown,R=>{s?b.onItemFocus(p):R.preventDefault()}),onFocus:Le(n.onFocus,()=>b.onItemFocus(p)),onKeyDown:Le(n.onKeyDown,R=>{if(R.key==="Tab"&&R.shiftKey){b.onItemShiftTab();return}if(R.target!==R.currentTarget)return;const A=Tk(R,b.orientation,b.dir);if(A!==void 0){if(R.metaKey||R.ctrlKey||R.altKey||R.shiftKey)return;R.preventDefault();let _=S().filter(U=>U.focusable).map(U=>U.ref.current);if(A==="last")_.reverse();else if(A==="prev"||A==="next"){A==="prev"&&_.reverse();const U=_.indexOf(R.currentTarget);_=b.loop?Rk(_,U+1):_.slice(U+1)}setTimeout(()=>hx(_))}}),children:typeof m=="function"?m({isCurrentTabStop:g,hasTabStop:E!=null}):m})})});mx.displayName=fx;var Ek={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Nk(n,r){return r!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function Tk(n,r,o){const s=Nk(n.key,o);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return Ek[s]}function hx(n,r=!1){const o=document.activeElement;for(const s of n)if(s===o||(s.focus({preventScroll:r}),document.activeElement!==o))return}function Rk(n,r){return n.map((o,s)=>n[(r+s)%n.length])}var Ck=dx,Ak=mx,mc="Tabs",[kk]=Xa(mc,[ux]),px=ux(),[jk,om]=kk(mc),gx=v.forwardRef((n,r)=>{const{__scopeTabs:o,value:s,onValueChange:c,defaultValue:u,orientation:m="horizontal",dir:h,activationMode:y="automatic",...p}=n,b=Xf(h),[g,S]=Ro({prop:s,onChange:c,defaultProp:u??"",caller:mc});return f.jsx(jk,{scope:o,baseId:Pa(),value:g,onValueChange:S,orientation:m,dir:b,activationMode:y,children:f.jsx(Ue.div,{dir:b,"data-orientation":m,...p,ref:r})})});gx.displayName=mc;var vx="TabsList",yx=v.forwardRef((n,r)=>{const{__scopeTabs:o,loop:s=!0,...c}=n,u=om(vx,o),m=px(o);return f.jsx(Ck,{asChild:!0,...m,orientation:u.orientation,dir:u.dir,loop:s,children:f.jsx(Ue.div,{role:"tablist","aria-orientation":u.orientation,...c,ref:r})})});yx.displayName=vx;var bx="TabsTrigger",xx=v.forwardRef((n,r)=>{const{__scopeTabs:o,value:s,disabled:c=!1,...u}=n,m=om(bx,o),h=px(o),y=Ex(m.baseId,s),p=Nx(m.baseId,s),b=s===m.value;return f.jsx(Ak,{asChild:!0,...h,focusable:!c,active:b,children:f.jsx(Ue.button,{type:"button",role:"tab","aria-selected":b,"aria-controls":p,"data-state":b?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:y,...u,ref:r,onMouseDown:Le(n.onMouseDown,g=>{!c&&g.button===0&&g.ctrlKey===!1?m.onValueChange(s):g.preventDefault()}),onKeyDown:Le(n.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&m.onValueChange(s)}),onFocus:Le(n.onFocus,()=>{const g=m.activationMode!=="manual";!b&&!c&&g&&m.onValueChange(s)})})})});xx.displayName=bx;var Sx="TabsContent",wx=v.forwardRef((n,r)=>{const{__scopeTabs:o,value:s,forceMount:c,children:u,...m}=n,h=om(Sx,o),y=Ex(h.baseId,s),p=Nx(h.baseId,s),b=s===h.value,g=v.useRef(b);return v.useEffect(()=>{const S=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(S)},[]),f.jsx(Mo,{present:c||b,children:({present:S})=>f.jsx(Ue.div,{"data-state":b?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":y,hidden:!S,id:p,tabIndex:0,...m,ref:r,style:{...n.style,animationDuration:g.current?"0s":void 0},children:S&&u})})});wx.displayName=Sx;function Ex(n,r){return`${n}-trigger-${r}`}function Nx(n,r){return`${n}-content-${r}`}var _k=gx,Tx=yx,Rx=xx,Cx=wx;const Mk=_k,Ax=v.forwardRef(({className:n,...r},o)=>f.jsx(Tx,{ref:o,className:ne("inline-flex h-8 items-center justify-center rounded-sm bg-muted/72 p-0.5 text-muted-foreground shadow-inner shadow-background/40",n),...r}));Ax.displayName=Tx.displayName;const Vl=v.forwardRef(({className:n,...r},o)=>f.jsx(Rx,{ref:o,className:ne("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-2 py-0.5 text-[11px] 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),...r}));Vl.displayName=Rx.displayName;const Yl=v.forwardRef(({className:n,...r},o)=>f.jsx(Cx,{ref:o,className:ne("mt-2 ring-offset-background data-[state=inactive]:hidden focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n),...r}));Yl.displayName=Cx.displayName;var kx="AlertDialog",[Ok]=Xa(kx,[Ay]),ma=Ay(),jx=n=>{const{__scopeAlertDialog:r,...o}=n,s=ma(r);return f.jsx(Yy,{...s,...o,modal:!0})};jx.displayName=kx;var Dk="AlertDialogTrigger",_x=v.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,c=ma(o);return f.jsx(Gy,{...c,...s,ref:r})});_x.displayName=Dk;var zk="AlertDialogPortal",Mx=n=>{const{__scopeAlertDialog:r,...o}=n,s=ma(r);return f.jsx(Iy,{...s,...o})};Mx.displayName=zk;var Lk="AlertDialogOverlay",Ox=v.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,c=ma(o);return f.jsx(Vf,{...c,...s,ref:r})});Ox.displayName=Lk;var To="AlertDialogContent",[Uk,Bk]=Ok(To),Hk=FR("AlertDialogContent"),Dx=v.forwardRef((n,r)=>{const{__scopeAlertDialog:o,children:s,...c}=n,u=ma(o),m=v.useRef(null),h=tt(r,m),y=v.useRef(null);return f.jsx(mA,{contentName:To,titleName:zx,docsSlug:"alert-dialog",children:f.jsx(Uk,{scope:o,cancelRef:y,children:f.jsxs(Yf,{role:"alertdialog",...u,...c,ref:h,onOpenAutoFocus:Le(c.onOpenAutoFocus,p=>{var b;p.preventDefault(),(b=y.current)==null||b.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[f.jsx(Hk,{children:s}),f.jsx(Pk,{contentRef:m})]})})})});Dx.displayName=To;var zx="AlertDialogTitle",Lx=v.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,c=ma(o);return f.jsx(Gf,{...c,...s,ref:r})});Lx.displayName=zx;var Ux="AlertDialogDescription",Bx=v.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,c=ma(o);return f.jsx(If,{...c,...s,ref:r})});Bx.displayName=Ux;var $k="AlertDialogAction",Hx=v.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,c=ma(o);return f.jsx(oc,{...c,...s,ref:r})});Hx.displayName=$k;var $x="AlertDialogCancel",Px=v.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,{cancelRef:c}=Bk($x,o),u=ma(o),m=tt(r,c);return f.jsx(oc,{...u,...s,ref:m})});Px.displayName=$x;var Pk=({contentRef:n})=>{const r=`\`${To}\` requires a description for the component to be accessible for screen reader users.
|
|
336
|
+
|
|
337
|
+
You can add a description to the \`${To}\` by passing a \`${Ux}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
338
|
+
|
|
339
|
+
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 \`${To}\`. 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.
|
|
340
|
+
|
|
341
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return v.useEffect(()=>{var s;document.getElementById((s=n.current)==null?void 0:s.getAttribute("aria-describedby"))||console.warn(r)},[r,n]),null},qk=jx,Vk=_x,Yk=Mx,qx=Ox,Vx=Dx,Yx=Hx,Gx=Px,Ix=Lx,Xx=Bx;const yf=qk,bf=Vk,Gk=Yk,Qx=v.forwardRef(({className:n,...r},o)=>f.jsx(qx,{className:ne("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...r,ref:o}));Qx.displayName=qx.displayName;const Yi=v.forwardRef(({className:n,...r},o)=>f.jsxs(Gk,{children:[f.jsx(Qx,{}),f.jsx(Vx,{ref:o,className:ne("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-3 rounded-sm border bg-background p-4 shadow-[0_24px_84px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...r})]}));Yi.displayName=Vx.displayName;const Gi=({className:n,...r})=>f.jsx("div",{className:ne("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});Gi.displayName="AlertDialogHeader";const Ii=({className:n,...r})=>f.jsx("div",{className:ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});Ii.displayName="AlertDialogFooter";const Xi=v.forwardRef(({className:n,...r},o)=>f.jsx(Ix,{ref:o,className:ne("text-sm font-semibold",n),...r}));Xi.displayName=Ix.displayName;const Qi=v.forwardRef(({className:n,...r},o)=>f.jsx(Xx,{ref:o,className:ne("text-[11px] text-muted-foreground",n),...r}));Qi.displayName=Xx.displayName;const Ki=v.forwardRef(({className:n,...r},o)=>f.jsx(Yx,{ref:o,className:ne(zf(),n),...r}));Ki.displayName=Yx.displayName;const Zi=v.forwardRef(({className:n,...r},o)=>f.jsx(Gx,{ref:o,className:ne(zf({variant:"outline"}),"mt-2 sm:mt-0",n),...r}));Zi.displayName=Gx.displayName;const Ik={online:"bg-emerald-500",busy:"bg-amber-500",offline:"bg-destructive"};function Xk({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-emerald-500 opacity-30"}),f.jsx("span",{className:ne("relative inline-flex h-2.5 w-2.5 rounded-full",Ik[n])})]})}function Qk({role:n,size:r="default"}){return f.jsx(Et,{variant:n==="leader"?"default":"secondary",className:ne(r==="compact"?"px-1.5 py-0 text-[9px] leading-4":"text-[11px]"),children:n})}const Kx={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-destructive-foreground",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 K3({status:n,size:r="default"}){const o=Kx[n],s=r==="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(Et,{variant:o.variant,className:ne("rounded-sm font-medium shadow-none",s,o.className),children:[f.jsx("span",{className:ne("rounded-full",o.dotClass)}),n]})}function Z3({status:n,isNative:r=!1,size:o="default",className:s}){const c=Kx[n],u=[n,r?"native":null].filter(Boolean).join(", "),m=o==="compact"?"h-1.5 w-1.5":"h-2 w-2";return f.jsxs("span",{className:ne("inline-flex shrink-0 items-center gap-1",s),title:u,"aria-label":u,children:[f.jsx("span",{className:ne("rounded-full",m,c.dotClass),title:n}),r&&f.jsx("span",{className:ne("rounded-full bg-sky-500",m),title:"native"})]})}const Kk={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function F3({priority:n}){const r=Kk[n];return f.jsx(Et,{variant:r.variant,className:"rounded-sm px-1.5 py-0 text-[10px] leading-4 shadow-none",children:r.label})}function Zk(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 yo({label:n,value:r,mono:o=!1}){return f.jsxs("div",{className:"min-w-0 rounded-sm 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:r})]})}function Fk({formatDateTime:n,viewInfo:r}){var s,c,u,m,h,y,p,b;const o=Zk(r.packages);return f.jsxs(Yl,{value:"about","data-about-layout":"compact",className:"mt-0 space-y-2",children:[f.jsxs(Dn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(zn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(uN,{className:"h-3.5 w-3.5 text-primary"}),"Repository & runtime"]}),f.jsx(Un,{className:"text-[10px]",children:"Build source and runtime identity for this node."})]}),f.jsxs(Bn,{className:"space-y-2 px-3 pb-2.5",children:[(s=r.repository)!=null&&s.url?f.jsxs("a",{href:r.repository.url,target:"_blank",rel:"noreferrer",className:"group flex min-w-0 items-center justify-between gap-2 rounded-sm 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:r.repository.url}),f.jsx(kN,{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-sm 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(yo,{label:"Branch",value:((c=r.repository)==null?void 0:c.branch)??"Unavailable",mono:!!((u=r.repository)!=null&&u.branch)}),f.jsx(yo,{label:"Commit",value:((m=r.repository)==null?void 0:m.commit)??"Unavailable",mono:!!((h=r.repository)!=null&&h.commit)}),f.jsx(yo,{label:"Runtime",value:`${r.packageName??"meshy"} ${r.version}`,mono:!0}),f.jsx(yo,{label:"Node.js",value:((y=r.runtime)==null?void 0:y.nodeVersion)??"Unavailable",mono:!!((p=r.runtime)!=null&&p.nodeVersion)}),f.jsx(yo,{label:"PID",value:r.runtime?String(r.runtime.pid):"Unavailable",mono:!!r.runtime}),f.jsx(yo,{label:"Started",value:n((b=r.runtime)==null?void 0:b.startedAt)})]})]})]}),f.jsxs(Dn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(zn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(zN,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),f.jsx(Un,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),f.jsx(Bn,{"data-package-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:o.map(g=>{var S,N;return f.jsxs("div",{className:"grid gap-1.5 rounded-sm 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:(S=g.value)==null?void 0:S.name}),f.jsx(Et,{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)})})]})]})}const hc=v.forwardRef(({className:n,type:r,...o},s)=>f.jsx("input",{type:r,className:ne("flex h-8 w-full rounded-sm border border-input/85 bg-background/72 px-2.5 py-1.5 text-[11px] shadow-sm ring-offset-background transition-all duration-200 file:border-0 file:bg-transparent file:text-[11px] 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:s,...o}));hc.displayName="Input";function Wk(){return we("/system/quick-chats")}function Jk(n){return we("/system/quick-chats",{method:"PUT",body:JSON.stringify({quickChats:n})})}const xf="quick-chats:updated";function ej(){typeof window>"u"||window.dispatchEvent(new CustomEvent(xf))}function tj(){const[n,r]=v.useState([]),[o,s]=v.useState(!0),[c,u]=v.useState(!1),[m,h]=v.useState(null),y=v.useCallback(async()=>{s(!0);try{const b=await Wk();r(b.quickChats),h(null)}catch(b){h(b instanceof Error?b.message:"Failed to load quick chats")}finally{s(!1)}},[]),p=v.useCallback(async b=>{u(!0);try{const g=await Jk(b);return r(g.quickChats),h(null),ej(),g.quickChats}catch(g){const S=g instanceof Error?g.message:"Failed to save quick chats";throw h(S),g}finally{u(!1)}},[]);return v.useEffect(()=>{y()},[y]),v.useEffect(()=>{if(typeof window>"u")return;const b=()=>{y()};return window.addEventListener(xf,b),()=>window.removeEventListener(xf,b)},[y]),{error:m,loading:o,quickChats:n,refresh:y,save:p,saving:c}}function Zx(n){return n.trim().replace(/^\/+/,"").toLowerCase()}function Fx(n,r){const o=n.trim();if(!o.startsWith("/"))return[];const s=Zx(o);return r.filter(c=>c.alias.startsWith(s))}function Fi(n,r){return r<=0?-1:(n%r+r)%r}function W3(n,r,o=0){const s=Fx(n,r),c=Fi(o,s.length);return c>=0?s[c]??null:null}function J3(n,r,o){const s=Fi(n,r);return s<0?0:Fi(s+o,r)}function eM({query:n,quickChats:r,selectedIndex:o=0,onSelect:s,onActiveIndexChange:c}){const u=Fx(n,r);if(u.length===0)return null;const m=Fi(o,u.length);return f.jsxs("div",{"data-quick-chat-menu":"true",className:"mx-2 mb-0.5 rounded-sm bg-background/70 p-0.5 shadow-none sm:mx-5",children:[f.jsxs("div",{className:"flex items-center gap-1 px-1 py-0.5 text-[8px] uppercase tracking-[0.14em] text-muted-foreground/75",children:[f.jsx(q0,{className:"h-2.5 w-2.5 text-primary/55"}),"Quick chats"]}),f.jsx("div",{className:"max-h-24 overflow-y-auto",role:"listbox","aria-label":"Quick chats",children:u.map((h,y)=>f.jsxs("button",{type:"button",role:"option","aria-selected":y===m,"data-selected":y===m?"true":void 0,onMouseEnter:()=>c==null?void 0:c(y),onClick:()=>s(h),className:ne("flex w-full min-w-0 items-start gap-1.5 rounded-sm px-1 py-1 text-left text-[9px] transition-colors hover:bg-muted/50 hover:text-foreground"),children:[f.jsxs("span",{"data-quick-chat-alias":"true",className:ne("shrink-0 font-mono text-[9px] leading-3 text-primary/70",y===m&&"text-primary"),children:["/",h.alias]}),f.jsx("span",{"data-quick-chat-prompt":"true",className:ne("line-clamp-1 min-w-0 text-[9px] leading-3 text-muted-foreground",y===m&&"text-primary/90"),children:h.prompt})]},h.alias))})]})}const nj="h-14 w-full resize-none rounded-sm border border-border/70 bg-background/80 px-2 py-1.5 text-[11px] leading-4 ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50";let aj=0;function _i(n,r=0){return{id:n?`${n.alias}:${r}`:`new:${aj++}`,alias:(n==null?void 0:n.alias)??"",prompt:(n==null?void 0:n.prompt)??""}}function Sf(n){return{quickChats:n.map(r=>({alias:Zx(r.alias),prompt:r.prompt.trim()})).filter(r=>r.alias.length>0&&r.prompt.length>0)}}function rj(n,r){const o=Sf(n).quickChats,s=r.map((u,m)=>_i(u,m)),c=Sf(s).quickChats;return JSON.stringify(o)!==JSON.stringify(c)}function oj(){const{error:n,loading:r,quickChats:o,save:s,saving:c}=tj(),[u,m]=v.useState(()=>o.map((g,S)=>_i(g,S))),h=u.length>0,y=v.useMemo(()=>Sf(u),[u]),p=v.useMemo(()=>rj(u,o),[u,o]);v.useEffect(()=>{m(o.map((g,S)=>_i(g,S)))},[o]);async function b(){try{await s(y.quickChats),Ve.success("Quick chats saved")}catch(g){Ve.error(g instanceof Error?g.message:"Failed to save quick chats")}}return f.jsxs("div",{className:"space-y-2",children:[f.jsx("div",{className:"rounded-sm border border-border/70 bg-background/75 px-3 py-2.5",children:f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-semibold text-foreground",children:[f.jsx(q0,{className:"h-3.5 w-3.5 text-primary"}),"Quick chats"]}),f.jsx("div",{className:"mt-0.5 text-[10px] text-muted-foreground",children:"Reusable slash aliases for chat composers on this leader."})]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsxs(Bt,{type:"button",variant:"outline",onClick:()=>m(g=>[...g,_i(void 0,g.length)]),className:"h-7 rounded-sm px-2 text-[10px]",children:[f.jsx(YN,{className:"h-3.5 w-3.5"}),"Add"]}),f.jsxs(Bt,{type:"button",onClick:b,disabled:c||!p,className:"h-7 rounded-sm px-2 text-[10px]",children:[c?f.jsx(UN,{className:"h-3.5 w-3.5 animate-spin"}):f.jsx(WN,{className:"h-3.5 w-3.5"}),"Save"]})]})]})}),r&&!h?f.jsx("div",{className:"rounded-sm border border-dashed border-border/70 bg-muted/20 px-3 py-4 text-[11px] text-muted-foreground",children:"Loading quick chats..."}):h?f.jsx("div",{className:"space-y-1.5",children:u.map((g,S)=>f.jsxs("div",{className:"grid gap-1.5 rounded-sm border border-border/60 bg-background/70 px-2 py-2 md:grid-cols-[12rem_minmax(0,1fr)_auto]",children:[f.jsx(hc,{"aria-label":`Quick chat ${S+1} alias`,value:g.alias,onChange:N=>m(T=>T.map(E=>E.id===g.id?{...E,alias:N.target.value}:E)),placeholder:"alias",className:"h-7 rounded-sm border-border/70 bg-background/80 px-2 font-mono text-[11px]"}),f.jsx("textarea",{"aria-label":`Quick chat ${S+1} prompt`,value:g.prompt,onChange:N=>m(T=>T.map(E=>E.id===g.id?{...E,prompt:N.target.value}:E)),placeholder:"Prompt text",className:nj}),f.jsx(Bt,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(N=>N.filter(T=>T.id!==g.id)),"aria-label":`Remove quick chat ${S+1}`,className:"h-7 w-7 rounded-sm text-muted-foreground hover:bg-destructive/10 hover:text-destructive",children:f.jsx(dT,{className:"h-3.5 w-3.5"})})]},g.id))}):f.jsx("div",{className:"rounded-sm border border-dashed border-border/70 bg-muted/20 px-3 py-4 text-[11px] text-muted-foreground",children:"No quick chats configured."}),n&&f.jsx("div",{className:"rounded-sm border border-destructive/20 bg-destructive/10 px-3 py-2 text-[11px] text-destructive",children:n})]})}var pc="Checkbox",[lj]=Xa(pc),[sj,lm]=lj(pc);function ij(n){const{__scopeCheckbox:r,checked:o,children:s,defaultChecked:c,disabled:u,form:m,name:h,onCheckedChange:y,required:p,value:b="on",internal_do_not_use_render:g}=n,[S,N]=Ro({prop:o,defaultProp:c??!1,onChange:y,caller:pc}),[T,E]=v.useState(null),[R,A]=v.useState(null),j=v.useRef(!1),_=T?!!m||!!T.closest("form"):!0,U={checked:S,disabled:u,setChecked:N,control:T,setControl:E,name:h,form:m,value:b,hasConsumerStoppedPropagationRef:j,required:p,defaultChecked:qa(c)?!1:c,isFormControl:_,bubbleInput:R,setBubbleInput:A};return f.jsx(sj,{scope:r,...U,children:cj(g)?g(U):s})}var Wx="CheckboxTrigger",Jx=v.forwardRef(({__scopeCheckbox:n,onKeyDown:r,onClick:o,...s},c)=>{const{control:u,value:m,disabled:h,checked:y,required:p,setControl:b,setChecked:g,hasConsumerStoppedPropagationRef:S,isFormControl:N,bubbleInput:T}=lm(Wx,n),E=tt(c,b),R=v.useRef(y);return v.useEffect(()=>{const A=u==null?void 0:u.form;if(A){const j=()=>g(R.current);return A.addEventListener("reset",j),()=>A.removeEventListener("reset",j)}},[u,g]),f.jsx(Ue.button,{type:"button",role:"checkbox","aria-checked":qa(y)?"mixed":y,"aria-required":p,"data-state":r1(y),"data-disabled":h?"":void 0,disabled:h,value:m,...s,ref:E,onKeyDown:Le(r,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:Le(o,A=>{g(j=>qa(j)?!0:!j),T&&N&&(S.current=A.isPropagationStopped(),S.current||A.stopPropagation())})})});Jx.displayName=Wx;var sm=v.forwardRef((n,r)=>{const{__scopeCheckbox:o,name:s,checked:c,defaultChecked:u,required:m,disabled:h,value:y,onCheckedChange:p,form:b,...g}=n;return f.jsx(ij,{__scopeCheckbox:o,checked:c,defaultChecked:u,disabled:h,required:m,onCheckedChange:p,name:s,form:b,value:y,internal_do_not_use_render:({isFormControl:S})=>f.jsxs(f.Fragment,{children:[f.jsx(Jx,{...g,ref:r,__scopeCheckbox:o}),S&&f.jsx(a1,{__scopeCheckbox:o})]})})});sm.displayName=pc;var e1="CheckboxIndicator",t1=v.forwardRef((n,r)=>{const{__scopeCheckbox:o,forceMount:s,...c}=n,u=lm(e1,o);return f.jsx(Mo,{present:s||qa(u.checked)||u.checked===!0,children:f.jsx(Ue.span,{"data-state":r1(u.checked),"data-disabled":u.disabled?"":void 0,...c,ref:r,style:{pointerEvents:"none",...n.style}})})});t1.displayName=e1;var n1="CheckboxBubbleInput",a1=v.forwardRef(({__scopeCheckbox:n,...r},o)=>{const{control:s,hasConsumerStoppedPropagationRef:c,checked:u,defaultChecked:m,required:h,disabled:y,name:p,value:b,form:g,bubbleInput:S,setBubbleInput:N}=lm(n1,n),T=tt(o,N),E=wb(u),R=db(s);v.useEffect(()=>{const j=S;if(!j)return;const _=window.HTMLInputElement.prototype,z=Object.getOwnPropertyDescriptor(_,"checked").set,Y=!c.current;if(E!==u&&z){const G=new Event("click",{bubbles:Y});j.indeterminate=qa(u),z.call(j,qa(u)?!1:u),j.dispatchEvent(G)}},[S,E,u,c]);const A=v.useRef(qa(u)?!1:u);return f.jsx(Ue.input,{type:"checkbox","aria-hidden":!0,defaultChecked:m??A.current,required:h,disabled:y,name:p,value:b,form:g,...r,tabIndex:-1,ref:T,style:{...r.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});a1.displayName=n1;function cj(n){return typeof n=="function"}function qa(n){return n==="indeterminate"}function r1(n){return qa(n)?"indeterminate":n?"checked":"unchecked"}const o1=v.forwardRef(({className:n,...r},o)=>f.jsx(sm,{ref:o,className:ne("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),...r,children:f.jsx(t1,{className:ne("flex items-center justify-center text-current"),children:f.jsx(zi,{className:"h-3.5 w-3.5"})})}));o1.displayName=sm.displayName;const e0=["queued","running"];function uj(n){return n.map(r=>`${r.id}:${r.name}`).join("\0")}function dj(n){return n==="claude"||n==="codex"||n==="copilot"}function l1(n){var o;if(n.kind!=="agent.upgrade")return null;const r=(o=n.payload)==null?void 0:o.agent;return dj(r)?`${n.nodeId}:${r}`:null}function fj(n){return n.status==="succeeded"||n.status==="failed"}async function s1(n,r={}){const o=r.getOperation??TE,s=r.pollIntervalMs??2e3,c=r.timeoutMs??24e4,u=Date.now()+c;let m=n;for(;!fj(m)&&Date.now()<u;)await hj(s),m=await o(n.id);return m}async function mj(n,r=RE){const o=new Set(n),s=await Promise.all(e0.map(u=>r({kind:"agent.upgrade",status:u}))),c=new Map;for(const u of s.flat()){if(!e0.includes(u.status)||o.size>0&&!o.has(u.nodeId))continue;const m=l1(u);if(!m)continue;const h=c.get(m);(!h||u.updatedAt>h.updatedAt)&&c.set(m,u)}return c}function hj(n){return new Promise(r=>setTimeout(r,n))}const pj=1500,gj=1e3,vj=9e4;async function i1(n={}){const r=n.fetchHealth??yj,o=n.initialDelayMs??pj,s=n.pollIntervalMs??gj,c=n.previousPid,u=n.reload??(()=>window.location.reload()),m=n.sleep??xj,h=n.timeoutMs??vj,y=Date.now()+h;let p=!1;for(o>0&&await m(o);Date.now()<=y;){const b=bj(await r());if(!b.ok){p=!0,await m(s);continue}if(c===void 0||b.pid!==void 0&&b.pid!==c||p)return u(),!0;await m(s)}return!1}async function yj(){try{const n=await fetch("/api/system/health",{cache:"no-store"}),r=await n.json().catch(()=>null),o=r&&typeof r=="object"&&typeof r.pid=="number"?r.pid:void 0;return{ok:n.ok,pid:o}}catch{return!1}}function bj(n){return typeof n=="boolean"?{ok:n}:n}function xj(n){return new Promise(r=>window.setTimeout(r,n))}function Sj(n,r=!0){return r?(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 wj({checkedLabel:n,disableAuthDefault:r,endpoint:o,isLiveLocalNode:s,nodeId:c,nodeName:u,onRefresh:m,pid:h,transportType:y,update:p,workDir:b}){const g=Sj(p,s),[S,N]=v.useState(null),[T,E]=v.useState(()=>t0({disableAuthDefault:r,endpoint:o,nodeName:u,transportType:y,workDir:b})),[R,A]=v.useState(!1),[j,_]=v.useState(!1),[U,z]=v.useState(!1);v.useEffect(()=>{E(t0({disableAuthDefault:r,endpoint:o,nodeName:u,transportType:y,workDir:b}))},[r,o,u,y,b]);async function Y(){if(!c||R||j)return;const oe=p.updateAvailable?"update":"restart",fe=Tj(T);if(T.port.trim()&&(fe==null?void 0:fe.port)===void 0){Ve.error("Runtime restart port must be a positive integer");return}const ue=fe?{reason:oe,startArgs:fe}:{reason:oe};A(!0);try{if(s){const M=await L0(ue);N({...M,pid:M.pid??h,status:"accepted"}),Ve.info(`Restarting ${u} from a detached helper. PID ${M.pid??h??"unknown"} will not stay attached to the original terminal window; follow ${M.logPath} for launch output.`),i1({previousPid:M.pid??h}).then(q=>{q||(A(!1),Ve.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout. Refresh the page after the node finishes starting."))}).catch(q=>{A(!1),Ve.error(q instanceof Error?q.message:"Runtime restart recovery failed")});return}const ie=await AE(c,ue);N({operationId:ie.id,pid:h,status:ie.status}),Ve.info(`Restart requested on ${u}. Operation ${Id(ie.id)} will hand off to a detached process, so the new runtime will not stay attached to the original terminal window.`);const me=await s1(ie,{timeoutMs:6e4}),ae=Nj(me);N({command:ae==null?void 0:ae.command,logPath:ae==null?void 0:ae.logPath,mode:ae==null?void 0:ae.mode,operationId:me.id,pid:(ae==null?void 0:ae.pid)??h,status:me.status}),me.status==="succeeded"?(await(m==null?void 0:m()),Ve.success(`Restart handoff accepted on ${u}. Follow ${(ae==null?void 0:ae.logPath)??"the node restart log"} for launch output.`)):me.status==="failed"?Ve.error(me.error??`Restart failed on ${u}`):Ve.info(`Restart operation ${Id(me.id)} is still ${me.status}. More details will update after the node reports back.`),A(!1)}catch(ie){A(!1),Ve.error(ie instanceof Error?ie.message:"Runtime restart failed")}}async function G(){if(!(!s||R||j)){_(!0);try{const oe=await EE();Ve.info(`Stopping Meshy process ${oe.pid}`)}catch(oe){_(!1),Ve.error(oe instanceof Error?oe.message:"Runtime stop failed")}}}const P=R?"restarting":j?"stopping":(S==null?void 0:S.status)??"idle",ee=p.restartMode==="development";return f.jsxs("div",{className:"overflow-hidden rounded-sm border border-border/70 bg-background/70",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(Di,{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:ee?"Development launcher":`Latest ${p.latestVersion??"—"}`})]})]}),f.jsx("div",{className:"flex items-center gap-1.5",children:f.jsx(Et,{variant:p.updateAvailable?"default":"outline",className:"rounded-sm border-border/70 bg-background/60 px-1.5 py-0 font-mono text-[10px]",children:ee?"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:P})]})]}),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:[s&&f.jsxs(yf,{children:[f.jsx(bf,{asChild:!0,children:f.jsxs(Bt,{type:"button",size:"sm",variant:"ghost",disabled:R||j,className:"h-7 rounded-sm px-2 text-[11px] text-muted-foreground hover:bg-destructive/10 hover:text-destructive",children:[f.jsx(IN,{className:ne("mr-1 h-3.5 w-3.5",j&&"animate-pulse")}),j?"Stopping":"Stop"]})}),f.jsxs(Yi,{className:"max-w-[22rem] gap-2 rounded-sm p-4",children:[f.jsxs(Gi,{className:"space-y-1",children:[f.jsx(Xi,{className:"text-sm",children:"Stop runtime?"}),f.jsx(Qi,{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(Ii,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Zi,{className:"h-7 rounded-sm px-2 text-[11px]",children:"Cancel"}),f.jsx(Ki,{className:"h-7 rounded-sm bg-destructive px-2 text-[11px] text-destructive-foreground hover:bg-destructive/90",onClick:()=>void G(),children:"Stop runtime"})]})]})]}),f.jsxs(yf,{children:[f.jsx(bf,{asChild:!0,children:f.jsxs(Bt,{type:"button",size:"sm",variant:p.updateAvailable?"default":"outline",disabled:!c||R||j,className:"h-7 rounded-sm px-2 text-[11px]",children:[f.jsx(af,{className:ne("mr-1 h-3.5 w-3.5",R&&"animate-spin")}),R?"Restarting…":g]})}),f.jsxs(Yi,{className:"max-w-[28rem] gap-3 rounded-sm p-4",children:[f.jsxs(Gi,{className:"space-y-1",children:[f.jsxs(Xi,{className:"text-sm",children:[g,"?"]}),f.jsxs(Qi,{className:"text-[11px] leading-4",children:["Starts a detached restart helper, shuts down ",s?"the current node":u,", and brings it back with the configured launcher. The new process will not stay attached to the original terminal window."]})]}),f.jsx(Ej,{value:T,onChange:E}),f.jsxs(Ii,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Zi,{className:"h-7 rounded-sm px-2 text-[11px]",children:"Cancel"}),f.jsx(Ki,{className:"h-7 rounded-sm px-2 text-[11px]",onClick:()=>void Y(),children:g})]})]})]})]})]}),f.jsxs("div",{className:"border-t border-border/50",children:[f.jsxs("button",{type:"button",onClick:()=>z(oe=>!oe),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(X0,{className:"h-3 w-3"}),"Restart details"]}),f.jsx(Ql,{className:ne("h-3 w-3 transition-transform duration-150",U&&"rotate-180")})]}),U&&f.jsxs("div",{className:"border-t border-border/50 bg-muted/20 px-3 py-2 space-y-1",children:[f.jsx(yr,{label:"Current PID",value:h===void 0?"—":String(h),mono:h!==void 0}),f.jsx(yr,{label:"Restart PID",value:(S==null?void 0:S.pid)===void 0?"Pending":String(S.pid),mono:(S==null?void 0:S.pid)!==void 0}),f.jsx(yr,{label:"Operation",value:S!=null&&S.operationId?Id(S.operationId):"Local direct request",mono:!!(S!=null&&S.operationId)}),f.jsx(yr,{label:"Status",value:(S==null?void 0:S.status)??(R?"requested":"idle")}),f.jsx(yr,{label:"Launcher",value:(S==null?void 0:S.command)??"Available after restart",mono:!!(S!=null&&S.command)}),f.jsx(yr,{label:"Log",value:(S==null?void 0:S.logPath)??"Available after restart",mono:!!(S!=null&&S.logPath)}),f.jsx(yr,{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 Ej({onChange:n,value:r}){const o=(s,c)=>{n({...r,[s]: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(Bl,{label:"HTTP port",value:r.port,onChange:s=>o("port",s),inputMode:"numeric"}),f.jsx(Bl,{label:"Node name",value:r.name,onChange:s=>o("name",s)}),f.jsx(Bl,{label:"Join endpoint",value:r.join,onChange:s=>o("join",s),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(ox,{value:r.transport,onValueChange:s=>o("transport",c1(s)),children:[f.jsx(am,{className:"h-7 rounded-md border-border/70 bg-background/70 px-2 text-[10px]",children:f.jsx(lx,{placeholder:"Transport"})}),f.jsxs(rm,{children:[f.jsx(wo,{className:"py-1 text-[11px]",value:"inherit",children:"current / default"}),f.jsx(wo,{className:"py-1 text-[11px]",value:"direct",children:"direct"}),f.jsx(wo,{className:"py-1 text-[11px]",value:"devtunnel",children:"devtunnel"}),f.jsx(wo,{className:"py-1 text-[11px]",value:"tailscale",children:"tailscale"})]})]})]}),f.jsx(Bl,{label:"Working directory",value:r.workDir,onChange:s=>o("workDir",s)}),f.jsx(Bl,{label:"Config path",value:r.config,onChange:s=>o("config",s),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(o1,{className:"h-3.5 w-3.5",checked:r.disableAuth,onCheckedChange:s=>n({...r,disableAuth:s===!0,disableAuthKnown:!0})}),"Disable auth"]})]})]})}function Bl({className:n,inputMode:r,label:o,onChange:s,value:c}){return f.jsxs("label",{className:ne("space-y-1",n),children:[f.jsx("span",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:o}),f.jsx(hc,{className:"h-7 rounded-md px-2 text-[10px]",inputMode:r,value:c,onChange:u=>s(u.target.value)})]})}function yr({label:n,value:r,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:ne("break-all text-right text-foreground",o&&"font-mono"),children:r})]})}function Nj(n){const r=n.result;if(!r||typeof r!="object")return null;const o=r;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 t0(n){return{port:Rj(n.endpoint),name:n.nodeName,join:"",transport:c1(n.transportType),workDir:n.workDir??"",config:"",disableAuth:n.disableAuthDefault===!0,disableAuthKnown:n.disableAuthDefault!==void 0}}function Tj(n){const r={},o=Number(n.port.trim());return n.port.trim()&&Number.isInteger(o)&&o>0&&(r.port=o),n.name.trim()&&(r.name=n.name.trim()),n.join.trim()&&(r.join=n.join.trim()),n.transport!=="inherit"&&(r.transport=n.transport),n.workDir.trim()&&(r.workDir=n.workDir.trim()),n.config.trim()&&(r.config=n.config.trim()),n.disableAuthKnown&&(r.disableAuth=n.disableAuth),Object.keys(r).length>0?r:void 0}function c1(n){return n==="direct"||n==="devtunnel"||n==="tailscale"?n:"inherit"}function Rj(n){if(!n)return"";try{return new URL(n).port||""}catch{return""}}function Id(n){return n.length<=8?n:n.slice(0,8)}function Hl({formatDateTime:n,name:r,status:o,statusVariant:s}){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:r}),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(Et,{variant:o.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:o.authenticated?"auth ok":"auth required"}),f.jsx(Et,{variant:s(o==null?void 0:o.status),className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:(o==null?void 0:o.status)??"unknown"})]})]})}function Yt(n){if(n==null||n==="")return"Unavailable";const r=new Date(n);return Number.isNaN(r.getTime())?"Unavailable":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(r)}function Cj(n){const r=Math.max(0,Math.floor(n)),o=Math.floor(r/86400),s=Math.floor(r%86400/3600),c=Math.floor(r%3600/60);return o>0?`${o}d ${s}h`:s>0?`${s}h ${c}m`:`${c}m`}function n0(n){if(n==null||Number.isNaN(n))return"Unavailable";const r=["B","KB","MB","GB","TB"];let o=n,s=0;for(;o>=1024&&s<r.length-1;)o/=1024,s+=1;return`${o.toFixed(o>=10||s===0?0:1)} ${r[s]}`}function So(n){return n==="ok"?"default":n==="missing"||n==="install-failed"||n==="login-failed"?"destructive":n==="not-authenticated"||n==="unsupported-platform"?"outline":"secondary"}function Aj(n){return n.available?f.jsxs(Et,{className:"gap-1 rounded-sm px-1.5 py-0 text-[10px]",children:[f.jsx(Pl,{className:"h-3 w-3"}),"Available"]}):f.jsxs(Et,{variant:"destructive",className:"gap-1 rounded-sm px-1.5 py-0 text-[10px]",children:[f.jsx(EN,{className:"h-3 w-3"}),"Unavailable"]})}function kj(n){return n.update?n.update.updateAvailable?f.jsxs(Et,{variant:"outline",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:["Update ",n.update.latestVersion]}):f.jsx(Et,{variant:"secondary",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:"Up to date"}):null}function jj(n){return n.available?null:n.metadataStatus??null}function _j(n){var o;const r=`npm install -g ${(o=n.update)==null?void 0:o.packageName}@latest`;return n.id==="claude"?`${r} --include=optional --ignore-scripts=false`:r}function Mj(n){if(n.error)return n.error;const r=n.result;return(r==null?void 0:r.detail)??null}function et({label:n,value:r,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:ne("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:r})]})}function $l({label:n,value:r,mono:o=!1,className:s}){return f.jsxs("div",{className:ne("min-w-0 space-y-0.5",s),children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:n}),f.jsx("div",{className:ne("truncate text-[11px] text-foreground",o&&"font-mono",n==="Path"&&"break-all whitespace-normal"),children:r})]})}function Oj({agent:n,nodeName:r,activeOperation:o,onUpgrade:s}){var y,p;const c=((y=n.update)==null?void 0:y.updateAvailable)===!0,u=kj(n),m=!!o,h=jj(n);return f.jsxs("div",{className:"rounded-sm 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(P0,{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:[Aj(n),h&&f.jsx(Et,{variant:So(h),className:"rounded-sm px-1.5 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($l,{label:"Version",value:n.version??"Unavailable",mono:!!n.version}),n.update&&f.jsx($l,{label:"Latest",value:n.update.latestVersion??"Unavailable",mono:!!n.update.latestVersion}),f.jsx($l,{label:"Checked",value:Yt(n.checkedAt)}),n.update&&f.jsx($l,{label:"Update check",value:Yt(n.update.checkedAt)}),f.jsx($l,{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(Et,{variant:"outline",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:["Upgrade ",o.status]}):c?f.jsxs(yf,{children:[f.jsx(bf,{asChild:!0,children:f.jsx("button",{type:"button",disabled:m,className:"rounded-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/45 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60",children:u})}),f.jsxs(Yi,{children:[f.jsxs(Gi,{children:[f.jsxs(Xi,{children:["Upgrade ",n.label,"?"]}),f.jsxs(Qi,{children:["This runs ",_j(n)," on ",r,". Remote nodes execute the command on the remote machine."]})]}),f.jsxs(Ii,{children:[f.jsx(Zi,{children:"Cancel"}),f.jsx(Ki,{onClick:()=>s(n),children:"Upgrade"})]})]})]}):u})]}),((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 Dj(n,r){var o;return(o=n==null?void 0:n.nodes)!=null&&o.length?n.nodes:r?[r]:[]}function zj(n,r){var s;if(r&&n.id===r.nodeId)return r;const o=n.settingsSnapshot;return{...n,nodeId:n.id,version:(o==null?void 0:o.version)??"Unavailable",packageName:o==null?void 0:o.packageName,uptime:(o==null?void 0:o.uptime)??0,localDashboardOrigin:((s=o==null?void 0:o.runtime)==null?void 0:s.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 Lj(n,r){return n.id===r?`${n.name} (this node)`:`${n.name} (${n.role})`}function Uj(n){return n==="claude"?"Claude Code":n==="copilot"?"Copilot CLI":"Codex"}function Bj(n){var o;const r=(o=n.payload)==null?void 0:o.agent;return r==="claude"||r==="codex"||r==="copilot"?r:null}function Hj({cluster:n,systemInfo:r,sseConnected:o,initialSelectedNodeId:s,onRefresh:c}){var ee,oe,fe,ue,ie,me,ae,M,q,K,de,C,V,F,I,W,se,re,ce,le;const u=v.useMemo(()=>Dj(n,r),[n,r]),[m,h]=v.useState(()=>{var J;return s??(r==null?void 0:r.nodeId)??((J=n==null?void 0:n.self)==null?void 0:J.id)??""}),[y,p]=v.useState(()=>new Map),b=v.useRef(new Set),g=v.useRef(new Set),S=(n==null?void 0:n.self)??r??u[0]??null,N=u.find(J=>J.id===m)??S,T=N?zj(N,r):null,E=!!(r&&N&&N.id===r.nodeId),R=E||!!(N!=null&&N.settingsSnapshot),A=T==null?void 0:T.runtimeUpdate,j=((ee=T==null?void 0:T.startupRequirements)==null?void 0:ee.components)??(T==null?void 0:T.components)??{},_=v.useMemo(()=>u.map(J=>J.id),[u]),U=_.join("\0"),z=uj(u),Y=v.useMemo(()=>new Map(u.map(J=>[J.id,J.name])),[z]);v.useEffect(()=>{s&&_.includes(s)&&h(s)},[s,U]);const G=v.useCallback(async(J,ve)=>{const ye=l1(J);if(!ye||b.current.has(J.id))return;const Se=Bj(J),Be=(ve==null?void 0:ve.agentLabel)??(Se?Uj(Se):"Agent"),$e=(ve==null?void 0:ve.nodeName)??Y.get(J.nodeId)??J.nodeId;b.current.add(J.id),p(Ge=>new Map(Ge).set(ye,J));try{const Ge=await s1(J);if(Ge.status==="succeeded")await(c==null?void 0:c()),g.current.has(Ge.id)||(Ve.success(`${Be} upgrade finished on ${$e}`),g.current.add(Ge.id));else if(Ge.status==="failed")g.current.has(Ge.id)||(Ve.error(Mj(Ge)??`${Be} upgrade failed`),g.current.add(Ge.id));else{p(vt=>new Map(vt).set(ye,Ge)),Ve.info(`${Be} upgrade is still ${Ge.status} on ${$e}`);return}p(vt=>{const _e=new Map(vt),Ht=_e.get(ye);return(!Ht||Ht.id===Ge.id)&&_e.delete(ye),_e})}catch(Ge){p(vt=>{const _e=new Map(vt),Ht=_e.get(ye);return(!Ht||Ht.id===J.id)&&_e.delete(ye),_e}),Ve.error(Ge instanceof Error?Ge.message:`${Be} upgrade failed`)}finally{b.current.delete(J.id)}},[c,Y]);v.useEffect(()=>{if(_.length===0)return;let J=!1;async function ve(){let ye;try{ye=await mj(_)}catch{return}if(!J){p(Se=>{const Be=new Map(Se);for(const[$e,Ge]of ye)Be.set($e,Ge);return Be});for(const Se of ye.values())G(Se)}}return ve(),()=>{J=!0}},[G,U]);async function P(J){if(N)try{const ve=await CE(N.id,J.id);Ve.info(`${J.label} upgrade started on ${N.name}`),await G(ve,{agentLabel:J.label,nodeName:N.name})}catch(ve){Ve.error(ve instanceof Error?ve.message:`${J.label} upgrade failed`)}}return!N||!T?f.jsx("div",{className:"rounded-sm border border-dashed border-border/70 bg-muted/20 px-3 py-5 text-center text-[11px] text-muted-foreground",children:"Loading session metadata..."}):f.jsxs("div",{className:"space-y-3",children:[f.jsxs("section",{className:"relative mt-1 rounded-sm border border-border/70 bg-background/75 p-3 shadow-none",children:[!E&&f.jsxs(Et,{variant:"outline",className:"absolute right-3 top-2.5 rounded-sm border-border/70 bg-background/60 px-1.5 py-0 text-[10px] uppercase tracking-[0.16em] whitespace-nowrap",children:["Updated ",Yt((oe=N.settingsSnapshot)==null?void 0:oe.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-sm border border-border/70 bg-background/75 px-1.5 py-0 text-[10px] text-muted-foreground",children:[f.jsx(Xk,{status:N.status}),f.jsx("span",{className:"font-medium text-foreground",children:N.name})]}),f.jsx(Qk,{role:N.role}),f.jsx(Et,{variant:"outline",className:"rounded-sm border-border/70 bg-background/60 px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:N.transportType??T.transportType??"direct"}),f.jsx(Et,{variant:E?"default":"outline",className:"rounded-sm px-1.5 py-0 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."})]}),u.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(ox,{value:N.id,onValueChange:h,children:[f.jsx(am,{className:"h-7 rounded-sm border-border/70 bg-background/70 text-[11px]",children:f.jsx(lx,{placeholder:"Choose a node"})}),f.jsx(rm,{className:"settings-node-select-content rounded-sm text-[10px] leading-4",children:u.map(J=>f.jsx(wo,{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:Lj(J,r==null?void 0:r.nodeId)},J.id))})]})]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsxs(Et,{variant:o?"default":"outline",className:"gap-1 rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:[f.jsx(QN,{className:"h-3 w-3"}),o?"Live link":"Reconnecting"]}),f.jsxs(Et,{variant:"outline",className:"rounded-sm border-border/70 bg-background/60 px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:["Uptime ",Cj(T.uptime)]})]})]})]}),!R&&f.jsx("div",{className:"rounded-sm 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(Mk,{defaultValue:"session",className:"space-y-2",children:[f.jsxs(Ax,{className:"h-auto flex-wrap rounded-sm border border-border/60 bg-muted/40 p-0.5",children:[f.jsx(Vl,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),f.jsx(Vl,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),f.jsx(Vl,{value:"quick-chats",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Quick chats"}),f.jsx(Vl,{value:"about",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"About"})]}),f.jsxs(Yl,{value:"session",className:"mt-0 grid gap-2 xl:grid-cols-[1.15fr_0.85fr]",children:[f.jsxs(Dn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(zn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(G0,{className:"h-3.5 w-3.5 text-primary"}),"Selected node"]}),f.jsx(Un,{className:"text-[10px]",children:"Cluster role, identity, and node-scoped runtime state."})]}),f.jsxs(Bn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Node ID",value:T.nodeId,mono:!0}),f.jsx(et,{label:"Status",value:N.status}),f.jsx(et,{label:"Role",value:N.role}),f.jsx(et,{label:"Endpoint",value:N.endpoint,mono:!0}),f.jsx(et,{label:"Joined",value:Yt(N.joinedAt)}),f.jsx(et,{label:"Heartbeat",value:Yt(N.lastHeartbeat)}),f.jsx(et,{label:"Capabilities",value:N.capabilities.length>0?N.capabilities.join(", "):"None"})]})]}),f.jsxs(Dn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(zn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(CN,{className:"h-3.5 w-3.5 text-primary"}),"OS info"]}),f.jsx(Un,{className:"text-[10px]",children:"Host and resource details reported by the current process."})]}),f.jsxs(Bn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Host",value:((fe=T.os)==null?void 0:fe.hostname)??"Unavailable"}),f.jsx(et,{label:"Platform",value:T.os?`${T.os.platform} ${T.os.release}`:"Unavailable"}),f.jsx(et,{label:"Arch",value:((ue=T.os)==null?void 0:ue.arch)??"Unavailable"}),f.jsx(et,{label:"CPU",value:((ie=T.os)==null?void 0:ie.cpuModel)??"Unavailable"}),f.jsx(et,{label:"Cores",value:String(((me=T.os)==null?void 0:me.cpuCount)??"Unavailable")}),f.jsx(et,{label:"Memory",value:T.os?`${n0(T.os.freeMemoryBytes)} free / ${n0(T.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),A&&f.jsx("div",{className:"xl:col-span-2",children:f.jsx(wj,{checkedLabel:Yt(A.checkedAt),disableAuthDefault:((ae=T.auth)==null?void 0:ae.enabled)===void 0?void 0:T.auth.enabled===!1,endpoint:N.endpoint,isLiveLocalNode:E,nodeId:N.id,nodeName:N.name,onRefresh:c,pid:(M=T.runtime)==null?void 0:M.pid,transportType:N.transportType,update:A,workDir:((q=T.runtime)==null?void 0:q.workDir)??N.workDir})}),f.jsxs(Dn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none xl:col-span-2",children:[f.jsxs(zn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(P0,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),f.jsx(Un,{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(Bn,{"data-agent-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:(T.agents??[]).map(J=>f.jsx(Oj,{agent:J,nodeName:N.name,activeOperation:y.get(`${N.id}:${J.id}`),onUpgrade:P},J.id))})]})]}),f.jsxs(Yl,{value:"access",className:"mt-0 grid gap-2 xl:grid-cols-2",children:[f.jsxs(Dn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(zn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(mN,{className:"h-3.5 w-3.5 text-primary"}),"Access surface"]}),f.jsx(Un,{className:"text-[10px]",children:"How this node is exposed to the dashboard and other peers."})]}),f.jsxs(Bn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Transport",value:N.transportType??T.transportType??"direct"}),f.jsx(et,{label:"Node URL",value:N.endpoint,mono:!0}),f.jsx(et,{label:"Node tunnel",value:N.devtunnelEndpoint??"Disabled",mono:!!N.devtunnelEndpoint}),f.jsx(et,{label:"Dashboard URL",value:N.dashboardOrigin??T.localDashboardOrigin??"Unavailable",mono:!!(N.dashboardOrigin||T.localDashboardOrigin)}),f.jsx(et,{label:"Local dashboard",value:T.localDashboardOrigin??"Unavailable",mono:!!T.localDashboardOrigin})]})]}),f.jsxs(Dn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(zn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(oT,{className:"h-3.5 w-3.5 text-primary"}),"Auth"]}),f.jsx(Un,{className:"text-[10px]",children:"Current bearer-auth and trusted access posture."})]}),f.jsxs(Bn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Enabled",value:(K=T.auth)!=null&&K.enabled?"Yes":"No"}),f.jsx(et,{label:"Same tenant",value:(de=T.auth)!=null&&de.allowSameTenant?"Allowed":"Off"}),f.jsx(et,{label:"Allowed users",value:(C=T.auth)!=null&&C.allowedUsers.length?T.auth.allowedUsers.join(", "):"None"})]})]}),f.jsxs(Dn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(zn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(_N,{className:"h-3.5 w-3.5 text-primary"}),"Paths"]}),f.jsx(Un,{className:"text-[10px]",children:"Workspace and runtime paths currently used by this node."})]}),f.jsxs(Bn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Work dir",value:((V=T.runtime)==null?void 0:V.workDir)??T.workDir??"Unavailable",mono:!!(((F=T.runtime)==null?void 0:F.workDir)??T.workDir)}),f.jsx(et,{label:"Storage",value:((I=T.runtime)==null?void 0:I.storagePath)??"Unavailable",mono:!!((W=T.runtime)!=null&&W.storagePath)}),f.jsx(et,{label:"Process cwd",value:((se=T.runtime)==null?void 0:se.cwd)??"Unavailable",mono:!!((re=T.runtime)!=null&&re.cwd)}),f.jsx(et,{label:"Started",value:Yt((ce=T.runtime)==null?void 0:ce.startedAt)}),f.jsx(et,{label:"PID",value:T.runtime?String(T.runtime.pid):"Unavailable",mono:!!T.runtime})]})]}),f.jsxs(Dn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(zn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(Di,{className:"h-3.5 w-3.5 text-primary"}),"Startup checks"]}),f.jsx(Un,{className:"text-[10px]",children:"Dependency preflight snapshot persisted during node startup."})]}),f.jsxs(Bn,{className:"space-y-3 px-3 pb-2.5",children:[f.jsxs("div",{className:"rounded-sm 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:Yt((le=T.startupRequirements)==null?void 0:le.lastCheckedAt)})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(Hl,{formatDateTime:Yt,name:"Azure CLI",status:j.az,statusVariant:So}),f.jsx(Hl,{formatDateTime:Yt,name:"DevTunnel",status:j.devtunnel,statusVariant:So}),f.jsx(Hl,{formatDateTime:Yt,name:"Claude Code",status:j.claude,statusVariant:So}),f.jsx(Hl,{formatDateTime:Yt,name:"Codex",status:j.codex,statusVariant:So}),f.jsx(Hl,{formatDateTime:Yt,name:"Copilot CLI",status:j.copilot,statusVariant:So})]})]})]})]}),f.jsx(Yl,{value:"quick-chats",className:"mt-0",children:f.jsx(oj,{})}),f.jsx(Fk,{formatDateTime:Yt,viewInfo:T})]})]})}function $j({initialSelectedNodeId:n,open:r,onOpenChange:o,showTrigger:s=!0}={}){const{cluster:c,systemInfo:u,sseConnected:m,refresh:h}=H0();return f.jsx(SA,{open:r,onOpenChange:o,showTrigger:s,children:f.jsx(Hj,{cluster:c,systemInfo:u,sseConnected:m,initialSelectedNodeId:n,onRefresh:h})})}const tM="codex",nM="bypass",Pj=[{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"}],aM=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],rM=new Set(Pj.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"}],lM=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],qj=new Set(["pending","assigned"]),Vj=new Set(["running"]),Yj=new Set(["completed","failed","cancelled"]),sM=10;function iM(n,r){switch(r){case"running":return Vj.has(n.status);case"waiting":return qj.has(n.status);case"closed":return Yj.has(n.status);case"shared":return!!n.activeShare;case"archived":return n.status==="archived";case"active":default:return n.status!=="archived"}}function cM(n,r){if(r==="all")return!0;const o=n.conversationKind==="nativeSession";return r==="native"?o:!o}function uM(n,r){const o=r.trim().toLowerCase();return o?[n.title,n.description,n.id,n.agent,n.assignedTo??"",n.assignedNodeName??"",n.project??"",n.effectiveProjectPath??"",n.conversationKind==="nativeSession"?"native session":"meshy chat",n.activeShare?"shared conversation":""].some(s=>s.toLowerCase().includes(o)):!0}function Gj(n,r,o){if(!n)return"unassigned";const s=r==null?void 0:r.find(c=>c.id===n);return(s==null?void 0:s.name)??o??n.slice(0,8)}function dM(n,r,o){return Gj(n,r,o).toLowerCase()}function fM(n){return n.type!=="node.status"&&n.type!=="cluster.state"}function mM(n,r,o){return!n.assignedTo||(o==null?void 0:o.id)===n.assignedTo?!0:(r==null?void 0:r.some(s=>s.id===n.assignedTo))??!1}function hM(n,r){return[...n].sort((o,s)=>o.id===r?-1:s.id===r?1:o.name.localeCompare(s.name))}function pM(n){if(!n||typeof n!="object")return null;const r=n,o=r.createMode,s=o==="chat"||o==="native"?o:void 0,c=r.createDefaults,u=c&&typeof c=="object"&&!Array.isArray(c)?c:null,m=u?{assignTo:typeof u.assignTo=="string"||u.assignTo===null?u.assignTo:void 0,project:typeof u.project=="string"||u.project===null?u.project:void 0}:void 0;return{draftNewTask:r.draftNewTask===!0,returnRoute:typeof r.returnRoute=="string"?r.returnRoute:void 0,returnTaskId:typeof r.returnTaskId=="string"||r.returnTaskId===null?r.returnTaskId:void 0,createMode:s,createDefaults:m}}function gM(n){return n==="default workspace"?n:n.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??n}function vM(n){const r=Date.now()-n;return r<6e4?"just now":r<36e5?`${Math.floor(r/6e4)}m`:r<864e5?`${Math.floor(r/36e5)}h`:`${Math.floor(r/864e5)}d`}function yM(n){return new Date(n).toLocaleString()}function bM(n){const r=Math.floor(n/1e3),o=Math.floor(r/3600),s=Math.floor(r%3600/60),c=r%60;return`${String(o).padStart(2,"0")}:${String(s).padStart(2,"0")}:${String(c).padStart(2,"0")}`}async function Ij(n,r="Copied to clipboard"){var o,s,c;try{if((s=(o=globalThis.navigator)==null?void 0:o.clipboard)!=null&&s.writeText)return await globalThis.navigator.clipboard.writeText(n),Ve.success(r),!0;const u=globalThis.document,m=(c=u==null?void 0:u.execCommand)==null?void 0:c.bind(u);if(!(u!=null&&u.body)||typeof u.createElement!="function"||typeof m!="function")throw new Error("Clipboard access is unavailable");const h=u.createElement("textarea"),y=u.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",u.body.appendChild(h),h.select(),h.setSelectionRange(0,h.value.length);const b=m("copy");if(u.body.removeChild(h),p==null||p.focus(),!b)throw new Error("Clipboard access is unavailable");return Ve.success(r),!0}catch(u){return Ve.error(u instanceof Error?u.message:"Failed to copy"),!1}}const Xj="default workspace";function Mi(n){const r=n.replace(/\\/g,"/");return r==="/"||/^[A-Za-z]:\/$/.test(r)?r:r.replace(/\/+$/g,"")||r}function Qj(n){const r=n.replace(/\\/g,"/");return r.startsWith("/")||r.startsWith("//")||/^[A-Za-z]:\//.test(r)}function Kj(n,r){const o=Mi(n),s=r.replace(/\\/g,"/").replace(/^\/+|\/+$/g,"");return!s||s==="."?o:o==="/"||/^[A-Za-z]:\/$/.test(o)?`${o}${s}`:`${o}/${s}`}function Zj(n,r){var u,m,h;const o=(u=n.effectiveProjectPath)==null?void 0:u.trim();if(o)return Mi(o);const s=(m=n.project)==null?void 0:m.trim();if(!s)return Xj;if(Qj(s)||!n.assignedTo)return Mi(s);const c=(h=r==null?void 0:r.get(n.assignedTo))==null?void 0:h.trim();return c?Kj(c,s):Mi(s)}function xM(n,r,o,s){const c=new Map;for(const m of n){const h=m.assignedTo??null,y=h??"__unassigned__",p=h?r.get(h)??m.assignedNodeName??h.slice(0,8):"Unassigned",b=Zj(m,s);c.has(y)||c.set(y,{nodeId:h,nodeName:p,dirMap:new Map});const g=c.get(y);g.dirMap.has(b)||g.dirMap.set(b,[]),g.dirMap.get(b).push(m)}const u=Array.from(c.values()).map(({nodeId:m,nodeName:h,dirMap:y})=>{const p=Array.from(y.entries()).map(([b,g])=>({path:b,tasks:g})).sort((b,g)=>g.tasks.length-b.tasks.length||b.path.localeCompare(g.path));return{nodeId:m,nodeName:h,dirs:p}});return u.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)}),u}const Fj={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"},Wj={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 Jj(n){return n.split(".")[0]??"unknown"}function e_(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function bo(n,r,o){return typeof o=="string"&&o.length>0?o:(r==null?void 0:r.get(n))??n}function u1(n,r){const o=n.data,s=o.operation;switch(n.type){case"node.joined":return`${o.name} joined the cluster`;case"node.left":return`${bo(o.nodeId,r,o.name)} left (${o.reason})`;case"node.status":return`${bo(o.nodeId,r)} is now ${o.status}`;case"node.operation.created":return`${s==null?void 0:s.kind} ${s==null?void 0:s.status} on ${bo(s==null?void 0:s.nodeId,r)}`;case"node.operation.updated":return`${s==null?void 0:s.kind} ${s==null?void 0:s.status} on ${bo(s==null?void 0:s.nodeId,r)}`;case"transport.changed":return`${bo(o.nodeId,r)} transport switched to ${o.transportType}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${bo(o.nodeId,r)}`;case"task.status":return`task ${o.taskId.slice(0,8)} -> ${o.status}`;case"election.started":return`candidate ${o.candidateId.slice(0,8)} term ${o.term}`;case"election.complete":return`leader elected, term ${o.term}`;case"cluster.state":return`${o.nodeCount} nodes, term ${o.term}`;default:return JSON.stringify(o)}}function t_(n){return JSON.stringify(n,null,2)}function n_({events:n,maxHeight:r="400px",nodeNameById:o,onDismiss:s,density:c="default"}){if(n.length===0)return null;const u=c==="compact";return f.jsx("div",{className:"overflow-y-auto pr-1",style:{maxHeight:r},children:f.jsx("div",{className:"space-y-1.5",children:n.map(m=>{const h=Jj(m.type);return f.jsx("div",{className:ne("transition-colors hover:bg-muted/30",u?"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:ne("font-mono text-muted-foreground",u?"text-[8px]":"text-[9px]"),children:e_(m.timestamp)}),u?f.jsx("span",{className:ne("max-w-[8.5rem] truncate text-[7px] font-medium uppercase tracking-[0.08em] text-muted-foreground/70",Wj[h]),children:m.type}):f.jsx(Et,{variant:"outline",className:ne("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",Fj[h]),children:m.type})]}),f.jsxs("div",{className:ne("flex shrink-0 items-center",u?"gap-px":"gap-0.5"),children:[f.jsx(Bt,{type:"button",variant:"ghost",size:"icon",className:ne("rounded-sm text-muted-foreground hover:text-foreground",u?"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 Ij(t_(m),"Event copied"),"aria-label":`Copy ${m.type} event`,title:"Copy event",children:f.jsx(TN,{className:u?"h-2.5 w-2.5":"h-3 w-3"})}),s&&f.jsx(Bt,{type:"button",variant:"ghost",size:"icon",className:ne("rounded-sm text-muted-foreground hover:text-foreground",u?"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:()=>s(m.id),"aria-label":`Dismiss ${m.type} event`,title:"Dismiss event",children:f.jsx(Q0,{className:u?"h-2.5 w-2.5":"h-3 w-3"})})]})]}),f.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:u1(m,o)})]})},m.id)})})})}const a_=["node.","election.","transport."],r_="cluster.state";function o_(n){return n.type==="node.status"?!1:a_.some(r=>n.type.startsWith(r))}function l_(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function s_(n,r){return n?{time:l_(n.timestamp),text:u1(n,r)}:null}function i_(n){return n.transportType==="devtunnel"||!!n.devtunnelEndpoint}function c_(n){if(n.length===0)return"No node tunnel";const r=n.filter(c=>c.status==="offline").length;if(r>0)return`${r} offline`;const o=n.filter(c=>{var u;return((u=c.devtunnelHealth)==null?void 0:u.status)==="failed"}).length;if(o>0)return`${o} failed`;const s=n.filter(c=>{var u;return c.status!=="offline"&&((u=c.devtunnelHealth)==null?void 0:u.status)!=="healthy"}).length;return s>0?`${s} checking`:"Healthy"}function u_(n,r){var c;const o=(r==null?void 0:r.get(n.id))??n.name??n.id;if(n.status==="offline")return{label:o,status:"offline"};const s=((c=n.devtunnelHealth)==null?void 0:c.status)??"checking";return{label:o,status:s}}function d_(n){if(n.length===0)return"No nodes";const r=n.filter(s=>s.status==="offline").length;if(r>0)return`${r} offline`;const o=n.filter(s=>s.status==="busy").length;return o>0?`${o} busy`:"Healthy"}function f_(n,r){return{label:(r==null?void 0:r.get(n.id))??n.name??n.id,status:n.status}}function m_({connected:n,events:r,nodes:o=[],currentNode:s=null,nodeNameById:c,desktopUpdate:u=null,defaultOpen:m=!1,defaultActionMenuOpen:h=!1,onDesktopUpdate:y,onDesktopRestart:p,onReload:b,onRestart:g}){const[S,N]=v.useState(m),[T,E]=v.useState(h),[R,A]=v.useState(!0),[j,_]=v.useState(new Set),[U,z]=v.useState(!1),[Y,G]=v.useState(!1),P=v.useRef(null),ee=v.useRef(null),oe=v.useMemo(()=>r.filter(be=>o_(be)&&!j.has(be.id)),[r,j]),fe=v.useMemo(()=>r.find(be=>be.type===r_)??oe[0],[r,oe]),ue=v.useMemo(()=>s_(fe,c),[fe,c]),ie=v.useMemo(()=>{const be=new Map(o.map(Pe=>[Pe.id,Pe]));return s&&be.set(s.id,s),Array.from(be.values())},[s,o]),me=v.useMemo(()=>ie.filter(i_),[ie]),ae=me.some(be=>{var Pe;return be.status==="offline"||((Pe=be.devtunnelHealth)==null?void 0:Pe.status)==="failed"}),M=ie.some(be=>be.status==="offline"),q=ie.some(be=>be.status==="busy"),K=ie.length>0,de=(s==null?void 0:s.name)??"offline",C=(s==null?void 0:s.role)==="leader"?"Leader":(s==null?void 0:s.role)==="follower"?"Follower":"Node",V=u!==null,F=!!(V&&(u!=null&&u.updateAvailable)&&u.latestVersion),I=(u==null?void 0:u.latestVersion)??null,W=!!(V&&!F&&!I&&(u!=null&&u.detail)),se=U?"Relaunching runtime...":"Relaunch to apply update",re=Y?"Downloading and installing desktop update...":F&&I?`Available version ${I}`:W?(u==null?void 0:u.detail)??"Desktop update unavailable":"Desktop is current",ce=!!b,le=!!(V&&p),J=ce||le,ve=V||!!g,ye=V||!!g||ce,Se=ve?V?"Update":"Relaunch":"Reload",Be=ve?V?re:se:"Reload dashboard page",$e=ve?V?Y:U:!1,Ge=ve?V?$e||!F||!y:$e:!1,vt=V?F&&I?`Install desktop update ${I}`:W?"Desktop update unavailable":"Desktop is current":ve?U?"Relaunching runtime":"Relaunch runtime":"Reload dashboard page";function _e(){ee.current&&(clearTimeout(ee.current),ee.current=null)}function Ht(){_e(),N(!0)}function yt(){_e(),ee.current=setTimeout(()=>{N(!1),ee.current=null},180)}function Rr(){_e()}function ha(){_e(),E(!1),N(!1)}async function kt(){if(!(!g||U)){z(!0);try{await g()}finally{z(!1)}}}async function pn(){if(!(!F||!y||Y)){G(!0);try{await y()}finally{G(!1)}}}async function Lo(){if(!(!p||U)){E(!1),z(!0);try{await p()}finally{z(!1)}}}async function Cr(){if(!ve){await It();return}if(V){await pn();return}await kt()}async function It(){b&&(E(!1),await b())}return v.useEffect(()=>()=>{_e()},[]),v.useEffect(()=>{_(be=>{if(be.size===0)return be;const Pe=new Set(r.map(it=>it.id)),Me=new Set(Array.from(be).filter(it=>Pe.has(it)));return Me.size===be.size?be:Me})},[r]),v.useEffect(()=>{S||E(!1)},[S]),v.useEffect(()=>{if(!S)return;const be=Me=>{var it;(it=P.current)!=null&&it.contains(Me.target)||(_e(),E(!1),N(!1))},Pe=Me=>{Me.key==="Escape"&&(_e(),E(!1),N(!1))};return document.addEventListener("pointerdown",be),document.addEventListener("keydown",Pe),()=>{document.removeEventListener("pointerdown",be),document.removeEventListener("keydown",Pe)}},[S]),f.jsxs("div",{ref:P,className:"relative",children:[f.jsxs("button",{type:"button","aria-label":n?"Cluster link connected":"Cluster link reconnecting","aria-expanded":S,"aria-haspopup":"dialog",onClick:()=>N(be=>!be),onMouseEnter:Ht,onMouseLeave:yt,className:ne("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",S&&(n?"bg-muted/60 text-foreground":"bg-destructive/12")),title:n?"Cluster link connected":"Cluster link reconnecting",children:[f.jsxs("span",{className:ne("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:ne("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:de}),f.jsx("span",{className:ne("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:C})]})]}),S&&f.jsxs("div",{role:"dialog","aria-label":"Live link connection events",onMouseEnter:Rr,onMouseLeave:ha,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(Di,{className:"h-3 w-3 text-emerald-500"}):f.jsx(mT,{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:ne("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:oe.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"}),ue?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"mt-0.5 truncate text-[9px] leading-snug text-foreground/80",children:ue.text}),f.jsx("div",{className:"font-mono text-[8px] text-muted-foreground/60",children:ue.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:[M?f.jsx(pi,{className:"h-3 w-3 shrink-0 text-destructive"}):q?f.jsx(Di,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Pl,{className:ne("h-3 w-3 shrink-0",K?"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:ne("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",M?"border-destructive/30 bg-destructive/10 text-destructive":q?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":K?"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:d_(ie)})]}),ie.length>0&&f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:ie.map(be=>{const{label:Pe,status:Me}=f_(be,c),it=Me==="offline",Tn=Me==="busy";return f.jsxs("div",{"aria-label":`${Pe} ${Me}`,className:ne("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",it?"bg-destructive/6":Tn?"bg-amber-500/6":"bg-emerald-500/5"),title:`${Pe} ${Me}`,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:Pe}),it?f.jsx(pi,{className:"h-3 w-3 shrink-0 text-destructive"}):Tn?f.jsx(vv,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Pl,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},be.id)})})]}),me.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:[ae?f.jsx(pi,{className:"h-3 w-3 shrink-0 text-destructive"}):f.jsx(Pl,{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:ne("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",ae?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"),children:c_(me)})]}),f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:me.map(be=>{var Gn;const{label:Pe,status:Me}=u_(be,c),it=Me==="failed"||Me==="offline",Tn=Me!=="healthy"&&Me!=="failed"&&Me!=="offline",Rn=(Gn=be.devtunnelHealth)!=null&&Gn.reason?`${Pe} ${Me}: ${be.devtunnelHealth.reason}`:`${Pe} ${Me}`;return f.jsxs("div",{"aria-label":`${Pe} ${Me}`,className:ne("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",it?"bg-destructive/6":Tn?"bg-muted/30":"bg-emerald-500/5"),title:Rn,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:Pe}),it?f.jsx(pi,{className:"h-3 w-3 shrink-0 text-destructive"}):Tn?f.jsx(vv,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):f.jsx(Pl,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},be.id)})})]}),f.jsxs("div",{children:[f.jsxs("button",{type:"button",onClick:()=>A(be=>!be),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 ",oe.length>0&&`(${oe.length})`]}),R?f.jsx(Ql,{className:"h-3 w-3 text-muted-foreground"}):f.jsx(nf,{className:"h-3 w-3 text-muted-foreground"})]}),R&&f.jsx("div",{className:"px-2 pb-2",children:f.jsx(n_,{events:oe,maxHeight:"12rem",density:"compact",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:c,onDismiss:be=>_(Pe=>new Set(Pe).add(be))})})]}),V&&(u==null?void 0:u.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:u.detail,children:u.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:ye&&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(Bt,{type:"button",variant:"ghost",size:"sm",className:ne("h-5 rounded-none border-0 px-1.5 text-[9px] font-medium hover:text-foreground [&_svg]:size-2.5",F?"bg-primary/12 text-primary hover:bg-primary/18":"bg-background/45 text-muted-foreground hover:bg-emerald-500/10"),onClick:()=>void Cr(),disabled:Ge,"aria-label":vt,"aria-describedby":"live-link-restart-hint",title:Be,children:[f.jsx(yv,{className:ne("h-2.5 w-2.5",$e&&"animate-pulse")}),f.jsx("span",{children:Se})]}),J&&f.jsx(Bt,{type:"button",variant:"ghost",size:"sm",className:ne("h-5 rounded-none border-l border-border/50 px-1 text-[9px] hover:text-foreground [&_svg]:size-2.5",F?"bg-primary/12 text-primary hover:bg-primary/18":"bg-background/45 text-muted-foreground hover:bg-emerald-500/10"),onClick:()=>E(be=>!be),"aria-label":"Open live link actions","aria-expanded":T,title:"Live link actions",children:f.jsx(Ql,{className:"h-2.5 w-2.5"})})]}),J&&T&&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 Cr(),disabled:Ge,"aria-label":vt,children:[f.jsx(yv,{className:ne("h-2.5 w-2.5",$e&&"animate-pulse")}),f.jsx("span",{children:Se})]}),le&&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 disabled:opacity-45 disabled:hover:bg-transparent disabled:hover:text-muted-foreground",onClick:()=>void Lo(),disabled:U,"aria-label":"Restart Meshy Desktop",children:[f.jsx(af,{className:ne("h-2.5 w-2.5",U&&"animate-spin")}),f.jsx("span",{children:"Restart"})]}),ce&&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 It(),"aria-label":"Reload dashboard page",children:[f.jsx(af,{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:Be})]})}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(Bt,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>_(new Set(r.map(be=>be.id))),disabled:oe.length===0,title:"Dismiss all notifications",children:"Dismiss all"}),f.jsx(Bt,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>N(!1),children:"Close"})]})]})]})]})}const a0="dark",Nr="fluent",h_="clean",Xd="meshy-layout-default-migrated-to-compact",wf="true",p_="compact",g_=new Set(["airy","clean","fluent"]);function v_(n){return n!==null&&g_.has(n)}function gc(n){return n===p_?"fluent":v_(n)?n:null}function y_(n,r){const o=gc(n);return o===h_&&r!==wf?Nr:o??Nr}const Wi="symphony",d1="default",b_=new Set(["light","dark","system"]),x_=new Set(["porcelain","warm","finsight","edge","symphony","launcher"]),f1=v.createContext(null);function S_(n){const r=new URLSearchParams(n).get("theme");return m1(r)?r:null}function w_(n){const r=new URLSearchParams(n).get("palette");return im(r)}function E_(n){const r=new URLSearchParams(n).get("layout");return gc(r)}function N_(){if(typeof document>"u")return null;const n=document.documentElement;return{theme:n.classList.contains("dark")?"dark":"light",palette:im(n.getAttribute("data-palette"))??Wi,layout:gc(n.getAttribute("data-layout"))??Nr}}function SM(n,r=N_()){if(!r)return n;try{const o=/^[a-z][a-z\d+\-.]*:/i.test(n),s=typeof window<"u"?window.location.href:"http://localhost",c=new URL(n,s);return c.searchParams.set("theme",r.theme),c.searchParams.set("palette",r.palette),c.searchParams.set("layout",r.layout),o?c.toString():`${c.pathname}${c.search}${c.hash}`}catch{return n}}const Qd=.9;function r0(n){const r=n.trim().match(/^(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)%\s+(-?\d+(?:\.\d+)?)%$/);if(!r)return null;const o=(Number(r[1])%360+360)%360/60,s=Ji(Number(r[2])/100,0,1),c=Ji(Number(r[3])/100,0,1),u=(1-Math.abs(2*c-1))*s,m=u*(1-Math.abs(o%2-1)),h=c-u/2,[y,p,b]=o<1?[u,m,0]:o<2?[m,u,0]:o<3?[0,u,m]:o<4?[0,m,u]:o<5?[m,0,u]:[u,0,m];return[Math.round((y+h)*255),Math.round((p+h)*255),Math.round((b+h)*255),255]}function T_(n){const r=n.trim();if(!r||r==="transparent")return null;const o=r.match(/^rgba?\(\s*([+-]?\d+(?:\.\d+)?)\s*,\s*([+-]?\d+(?:\.\d+)?)\s*,\s*([+-]?\d+(?:\.\d+)?)(?:\s*,\s*([+-]?\d+(?:\.\d+)?))?\s*\)$/i);if(o)return[xo(Number(o[1])),xo(Number(o[2])),xo(Number(o[3])),s0(o[4])];const s=r.match(/^rgba?\(\s*([+-]?\d+(?:\.\d+)?)\s+([+-]?\d+(?:\.\d+)?)\s+([+-]?\d+(?:\.\d+)?)(?:\s*\/\s*([+-]?\d+(?:\.\d+)?%?))?\s*\)$/i);return s?[xo(Number(s[1])),xo(Number(s[2])),xo(Number(s[3])),s0(s[4])]:null}function R_(n,r,o){const s=r0(n);if(!s)return null;if(o==="clean"||o==="fluent")return s;const c=r0(r);return c?[Kd(s[0],c[0],Qd),Kd(s[1],c[1],Qd),Kd(s[2],c[2],Qd),255]:null}function C_(){const n=document.querySelector(".dashboard-shell-header-panel");if(!n)return null;const r=T_(getComputedStyle(n).backgroundColor);return!r||r[3]===0?null:r}function o0(){var m,h;if(typeof window>"u"||typeof document>"u")return;const n=((h=(m=window.__TAURI__)==null?void 0:m.core)==null?void 0:h.invoke)??null;if(!n)return;const r=document.documentElement,o=r.classList.contains("dark")?"dark":"light",s=getComputedStyle(r),c=gc(r.getAttribute("data-layout"))??Nr,u=C_()??R_(s.getPropertyValue("--card"),s.getPropertyValue("--background"),c);n("sync_desktop_theme",{theme:o,backgroundColor:u}).catch(()=>{})}function l0(){if(typeof window>"u")return()=>{};if(o0(),typeof window.requestAnimationFrame!="function")return()=>{};const n=window.requestAnimationFrame(()=>o0());return()=>window.cancelAnimationFrame(n)}function Kd(n,r,o){return Math.round(n*o+r*(1-o))}function Ji(n,r,o){return Math.min(Math.max(n,r),o)}function xo(n){return Math.round(Ji(n,0,255))}function s0(n){if(n==null||n==="")return 255;const r=n.endsWith("%")?Number(n.slice(0,-1))/100:Number(n);return Math.round(Ji(r,0,1)*255)}function A_({children:n}){const[r,o]=v.useState(()=>typeof window<"u"?S_(window.location.search)??__(localStorage.getItem("meshy-theme"))??a0:a0),[s,c]=v.useState(()=>typeof window<"u"?w_(window.location.search)??M_(localStorage.getItem("meshy-palette"))??Wi:Wi),[u,m]=v.useState(()=>{if(typeof window<"u"){const h=E_(window.location.search);if(h)return localStorage.setItem(Xd,wf),h;const y=y_(localStorage.getItem("meshy-layout"),localStorage.getItem(Xd));return localStorage.setItem(Xd,wf),y}return Nr});return v.useEffect(()=>{const h=document.documentElement,y=p=>{if(p==="system"){const b=window.matchMedia("(prefers-color-scheme: dark)").matches;h.classList.toggle("dark",b)}else h.classList.toggle("dark",p==="dark")};if(y(r),localStorage.setItem("meshy-theme",r),r==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)"),b=()=>{y("system"),l0()};return p.addEventListener("change",b),()=>p.removeEventListener("change",b)}},[r]),v.useEffect(()=>{document.documentElement.setAttribute("data-palette",s),localStorage.setItem("meshy-palette",s)},[s]),v.useEffect(()=>{const h=document.documentElement;u===Nr?h.removeAttribute("data-layout"):h.setAttribute("data-layout",u),localStorage.setItem("meshy-layout",u)},[u]),v.useEffect(()=>l0(),[r,s,u]),f.jsx(f1.Provider,{value:{theme:r,setTheme:o,palette:s,setPalette:c,layout:u,setLayout:m},children:n})}function k_(){const n=v.useContext(f1);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}function m1(n){return n!==null&&b_.has(n)}function j_(n){return n!==null&&x_.has(n)}function __(n){return m1(n)?n:null}function im(n){return n===d1?"porcelain":j_(n)?n:null}function M_(n){return n===d1?null:im(n)}const O_=[{value:"light",label:"Light",icon:I0},{value:"dark",label:"Dark",icon:Y0},{value:"system",label:"System",icon:V0}],h1=[{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"},{value:"launcher",label:"Launcher",hint:"Desktop startup blue"}],p1=[{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 D_(){const{theme:n,setTheme:r,palette:o,setPalette:s,layout:c,setLayout:u}=k_(),[m,h]=v.useState(!1),y=v.useRef(null),p=v.useRef(null),b=n==="dark"?Y0:n==="light"?I0:V0,g=()=>{y.current&&(clearTimeout(y.current),y.current=null)},S=()=>{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:S,children:[f.jsx(Bt,{variant:"ghost",size:"icon",onClick:()=>h(N=>!N),className:ne("h-8 w-8 rounded-sm",o!==Wi||c!==Nr?"text-primary":"text-muted-foreground hover:bg-muted/50 hover:text-foreground"),title:"Appearance","aria-haspopup":"menu","aria-expanded":m,children:f.jsx(b,{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-md border border-border/70 bg-popover/95 p-2 text-popover-foreground shadow-[0_24px_70px_-32px_rgba(0,0,0,0.45)] backdrop-blur-xl sm:absolute sm:left-auto sm:right-0 sm:top-[calc(100%+6px)] sm:w-[23rem] sm:max-w-[23rem]",children:[f.jsxs("div",{className:"mb-2 flex items-end justify-between gap-2",children:[f.jsxs("div",{children:[f.jsx("div",{className:"text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Appearance"}),f.jsxs("div",{className:"text-[10px] font-medium text-foreground",children:[z_(c)," / ",L_(o)]})]}),f.jsx("div",{className:"rounded-sm border border-border/60 bg-background/70 px-1.5 py-0.5 text-[8px] 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 grid grid-cols-3 gap-1 rounded-sm bg-muted/35 p-0.5",children:O_.map(({value:N,label:T,icon:E})=>{const R=n===N;return f.jsxs("button",{type:"button",onClick:()=>r(N),role:"menuitemradio","aria-checked":R,className:ne("flex min-h-[2.1rem] flex-col items-center justify-center gap-0.5 rounded-sm border px-1.5 py-1 text-[9px] font-medium transition-colors",R?"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 w-3"}),T]},N)})}),f.jsxs("div",{className:"grid gap-2 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:p1.map(({value:N,label:T,hint:E})=>{const R=c===N;return f.jsxs("button",{type:"button",onClick:()=>u(N),role:"menuitemradio","aria-checked":R,className:ne("flex min-h-[2.25rem] w-full items-center gap-1.5 rounded-sm border px-1.5 py-1 text-left transition-colors",R?"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:ne("text-[10px] font-medium leading-tight",R?"text-primary":"text-foreground"),children:T}),f.jsx("div",{className:"mt-0.5 text-[8px] leading-tight text-muted-foreground",children:E})]}),R&&f.jsx(zi,{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(sT,{className:"h-2.5 w-2.5"}),"Palette"]}),f.jsx("div",{className:"space-y-1",children:h1.map(({value:N,label:T,hint:E})=>{const R=o===N;return f.jsxs("button",{type:"button",onClick:()=>s(N),role:"menuitemradio","aria-checked":R,className:ne("flex min-h-[2.25rem] w-full items-center gap-1.5 rounded-sm border px-1.5 py-1 text-left transition-colors",R?"border-primary/55 bg-primary/10":"border-border/45 bg-background/45 hover:border-border hover:bg-muted/55"),children:[f.jsx(U_,{value:N}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:ne("text-[10px] font-medium leading-tight",R?"text-primary":"text-foreground"),children:T}),f.jsx("div",{className:"mt-0.5 text-[8px] leading-tight text-muted-foreground",children:E})]}),R&&f.jsx(zi,{className:"h-3 w-3 text-primary"})]},N)})})]})]})]})]})}function z_(n){var r;return((r=p1.find(o=>o.value===n))==null?void 0:r.label)??n}function L_(n){var r;return((r=h1.find(o=>o.value===n))==null?void 0:r.label)??n}function U_({value:n}){const r={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%)"],launcher:["hsl(213 77% 49%)","hsl(60 10% 96%)","hsl(0 0% 100%)"]},[o,s,c]=r[n];return f.jsxs("div",{className:ne("flex h-5 w-5 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:s}}),f.jsx("div",{className:"h-full w-1/3",style:{background:c}})]})}const Gl={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}},g1="meshy-dashboard-panel-state-v2",v1="meshy-dashboard-terminal-open-v1";function wM({operationsOpen:n}){return{layout:{desktopTasksOpen:!0,operationsOpen:n},sizes:{tasks:Gl.tasks.defaultSize,operations:Gl.operations.defaultSize,terminal:Gl.terminal.defaultSize}}}function Zd(n){return typeof n=="object"&&n!==null}function i0(n,r){return typeof n=="boolean"?n:r}function Fd(n,r,o){return typeof r=="number"&&Number.isFinite(r)?Il(n,r):o}function Il(n,r){const o=Gl[n];return Math.min(o.max,Math.max(o.min,r))}function EM(n,r){if(!n)return r;try{const o=n.getItem(g1);if(!o)return r;const s=JSON.parse(o);if(!Zd(s))return r;const c=Zd(s.layout)?s.layout:{},u=Zd(s.sizes)?s.sizes:{};return{layout:{desktopTasksOpen:i0(c.desktopTasksOpen,r.layout.desktopTasksOpen),operationsOpen:i0(c.operationsOpen,r.layout.operationsOpen)},sizes:{tasks:Fd("tasks",u.tasks,r.sizes.tasks),operations:Fd("operations",u.operations,r.sizes.operations),terminal:Fd("terminal",u.terminal,r.sizes.terminal)}}}catch{return r}}function NM(n,r){if(n)try{n.setItem(g1,JSON.stringify(r))}catch{}}function B_(n,r){if(!n)return r;try{const o=n.getItem(v1);return o==="true"?!0:o==="false"?!1:r}catch{return r}}function H_(n,r){if(n)try{n.setItem(v1,String(r))}catch{}}function c0(){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 RM(n,r,o,s,c,u,m){const h=Number.isFinite(m)&&m>0?m:16;return n==="tasks"?Il(n,r+(c-o)/h):n==="operations"?Il(n,r+(o-c)/h):Il(n,r+(s-u)/h)}function CM(n,r,o){const s=o===0?0:o>0?-1:1;return Il(n,r+s*Gl[n].wheelStep)}const $_=7200*1e3;function P_(){return f.jsxs("svg",{"data-meshy-app-icon":"header",viewBox:"0 0 1024 1024",className:"h-8 w-8","aria-hidden":"true",children:[f.jsxs("defs",{children:[f.jsxs("linearGradient",{id:"meshy-header-icon-bg",x1:"160",y1:"128",x2:"864",y2:"896",gradientUnits:"userSpaceOnUse",children:[f.jsx("stop",{offset:"0",stopColor:"#182033"}),f.jsx("stop",{offset:"1",stopColor:"#0a0f1f"})]}),f.jsxs("linearGradient",{id:"meshy-header-icon-edge",x1:"260",y1:"244",x2:"768",y2:"780",gradientUnits:"userSpaceOnUse",children:[f.jsx("stop",{offset:"0",stopColor:"#66e3ff"}),f.jsx("stop",{offset:"0.52",stopColor:"#8fd56b"}),f.jsx("stop",{offset:"1",stopColor:"#ffcb5b"})]})]}),f.jsx("rect",{width:"1024",height:"1024",rx:"224",fill:"url(#meshy-header-icon-bg)"}),f.jsx("path",{d:"M308 652V372l204 174 204-174v280",fill:"none",stroke:"url(#meshy-header-icon-edge)",strokeWidth:"86",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("circle",{cx:"308",cy:"372",r:"58",fill:"#66e3ff"}),f.jsx("circle",{cx:"512",cy:"546",r:"58",fill:"#8fd56b"}),f.jsx("circle",{cx:"716",cy:"372",r:"58",fill:"#ffcb5b"}),f.jsx("circle",{cx:"308",cy:"652",r:"58",fill:"#66e3ff"}),f.jsx("circle",{cx:"716",cy:"652",r:"58",fill:"#ffcb5b"})]})}function Ti(){var n,r;return typeof window>"u"?null:((r=(n=window.__TAURI__)==null?void 0:n.core)==null?void 0:r.invoke)??null}function u0(n){return{currentVersion:null,latestVersion:null,updateAvailable:!1,checkedAt:new Date().toISOString(),releaseUrl:null,assetName:null,installable:!1,detail:n}}function Wd(n,r){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 r}function q_(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 V_(){const{cluster:n,events:r,sseConnected:o,systemInfo:s}=H0(),c=Vn(),[u,m]=v.useState(()=>B_(c0(),!1)),[h,y]=v.useState(""),[p,b]=v.useState(null),[g,S]=v.useState(null),N=!!Ti(),T=N?"max-w-none":"max-w-[1760px]",E=c.pathname==="/"||/^\/tasks\/[^/]+$/.test(c.pathname),R=v.useMemo(()=>{const z=new Map;for(const Y of(n==null?void 0:n.nodes)??[])z.set(Y.id,Y.name);return n!=null&&n.self&&z.set(n.self.id,n.self.name),z},[n==null?void 0:n.nodes,n==null?void 0:n.self]),A=v.useCallback(z=>{m(Y=>typeof z=="function"?z(Y):z)},[]);v.useEffect(()=>{H_(c0(),u)},[u]),v.useEffect(()=>{const z=Ti();if(!z){S(null);return}let Y=!1,G=!1;const P=oe=>{G||(G=!0,oe&&S(u0("Checking desktop update...")),z("check_desktop_update").then(fe=>{Y||S(fe)}).catch(fe=>{if(!Y){const ue=Wd(fe,"Desktop update check failed");S(ie=>ie!=null&&ie.updateAvailable?ie:u0(ue))}}).finally(()=>{G=!1}))};P(!0);const ee=window.setInterval(()=>P(!1),$_);return()=>{Y=!0,window.clearInterval(ee)}},[s==null?void 0:s.version]);async function j(){try{const z=await L0({reason:"restart"});Ve.info(`Restarting runtime. Follow ${z.logPath} for launch output.`),await i1({previousPid:z.pid})||Ve.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout.")}catch(z){Ve.error(z instanceof Error?z.message:"Runtime restart failed")}}async function _(){const z=Ti();if(!z){Ve.error("Desktop updater is not available in this window");return}try{Ve.info("Downloading desktop update...");const Y=await z("install_desktop_update");Ve.info(q_(Y))}catch(Y){Ve.error(Wd(Y,"Desktop update failed"))}}async function U(){const z=Ti();if(!z){Ve.error("Desktop restart is not available in this window");return}try{Ve.info("Restarting Meshy Desktop..."),await z("restart_desktop_app")}catch(Y){Ve.error(Wd(Y,"Desktop restart 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:"dashboard-shell-header relative z-50 shrink-0 px-2 py-2",children:f.jsxs("div",{className:ne("dashboard-shell-header-panel 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(tf,{to:"/","aria-label":"Meshy home",className:"flex items-center gap-2",children:[f.jsx(P_,{}),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(G0,{className:"h-3 w-3 shrink-0 text-primary/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.nodeName})]}),f.jsx(nf,{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(ON,{className:"h-3 w-3 shrink-0 text-muted-foreground/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.projectLabel})]}),f.jsx(nf,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsx(tf,{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(eT,{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(hc,{"aria-label":"Search tasks",value:h,onChange:z=>y(z.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(Bt,{variant:"ghost",size:"icon",onClick:()=>A(z=>!z),"aria-label":u?"Close terminal":"Open terminal",title:u?"Close terminal":"Open terminal",className:ne("h-8 w-8 rounded-sm text-muted-foreground hover:bg-muted/50 hover:text-foreground",u&&"bg-primary/8 text-primary"),children:f.jsx(X0,{className:"h-4 w-4"})}),f.jsx($j,{}),f.jsx(D_,{}),f.jsx("div",{className:"mx-0 h-4 w-px shrink-0 bg-border/50"}),f.jsx(m_,{connected:o,events:r,nodes:(n==null?void 0:n.nodes)??[],currentNode:(n==null?void 0:n.self)??null,nodeNameById:R,desktopUpdate:g,onDesktopUpdate:g!=null&&g.updateAvailable?_:void 0,onDesktopRestart:N?U:void 0,onReload:N?()=>window.location.reload():void 0,onRestart:j})]})]})}),f.jsx("main",{className:ne("dashboard-shell-main min-h-0 flex-1 px-2 pb-2",E?"overflow-hidden":"overflow-y-auto"),children:f.jsx("div",{className:ne("dashboard-shell-content mx-auto h-full min-h-0",T),children:f.jsx(L2,{context:{terminalOpen:u,setTerminalOpen:A,headerSearchQuery:h,setHeaderSearchQuery:y,setHeaderTaskContext:b}})})})]})]})}const d0=v.lazy(async()=>({default:(await h0(()=>import("./DashboardPage-DbD4Z2U0.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4]))).DashboardPage})),Y_=v.lazy(async()=>({default:(await h0(()=>import("./SharedConversationPage-CtQLabVf.js"),__vite__mapDeps([5,1]))).SharedConversationPage}));function G_(){return f.jsx(iE,{children:f.jsx(v.Suspense,{fallback:f.jsx(I_,{}),children:f.jsxs(B2,{children:[f.jsx(br,{path:"/shared/tasks/:shareId",element:f.jsx(Y_,{})}),f.jsxs(br,{element:f.jsx(tN,{children:f.jsx(V_,{})}),children:[f.jsx(br,{path:"/",element:f.jsx(d0,{})}),f.jsx(br,{path:"/nodes",element:f.jsx(dv,{to:"/",replace:!0})}),f.jsx(br,{path:"/tasks",element:f.jsx(dv,{to:"/",replace:!0})}),f.jsx(br,{path:"/tasks/:id",element:f.jsx(d0,{})})]})]})})})}function I_(){return f.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function X_(n){const r=n??(typeof window>"u"?void 0:window);r!=null&&r.__TAURI__&&r.addEventListener("contextmenu",o=>{o.preventDefault()})}function Q_(n){return f.jsx(jR,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...n})}X_();Uw.createRoot(document.getElementById("root")).render(f.jsx(v.StrictMode,{children:f.jsxs(A_,{children:[f.jsx(G_,{}),f.jsx(Q_,{})]})}));export{Et as $,tM as A,Bt as B,zi as C,nM as D,w3 as E,_N as F,vA as G,Qy as H,hc as I,Zy as J,SM as K,UN as L,TN as M,Ij as N,Ax as O,YN as P,eM as Q,q0 as R,G0 as S,aM as T,Vl as U,Gj as V,P0 as W,Q0 as X,Mk as Y,Z3 as Z,F3 as _,W3 as a,A3 as a$,yM as a0,Yl as a1,yf as a2,Yi as a3,Gi as a4,Xi as a5,Qi as a6,Ii as a7,Zi as a8,Ki as a9,Fy as aA,af as aB,sM as aC,xM as aD,oM as aE,lM as aF,gM as aG,o1 as aH,vM as aI,bf as aJ,dT as aK,_3 as aL,M3 as aM,EM as aN,wM as aO,c0 as aP,NM as aQ,CM as aR,TM as aS,RM as aT,x3 as aU,QE as aV,jE as aW,I3 as aX,G3 as aY,X3 as aZ,FE as a_,h0 as aa,e3 as ab,Ky as ac,xA as ad,m3 as ae,X0 as af,Pl as ag,EN as ah,f3 as ai,h3 as aj,d3 as ak,mT as al,aT as am,uN as an,$N as ao,Jl as ap,hM as aq,QN as ar,n_ as as,Xk as at,kN as au,Qk as av,bM as aw,qj as ax,V3 as ay,qR as az,zR as b,r3 as b0,n3 as b1,a3 as b2,o3 as b3,RE as b4,$j as b5,k3 as b6,j3 as b7,y3 as b8,p3 as b9,l3 as bA,K3 as bB,U3 as bC,L3 as bD,z3 as bE,O3 as bF,D3 as bG,B3 as bH,yA as bI,Pj as bJ,f0 as bK,yN as bL,P3 as bM,$3 as bN,H3 as bO,q3 as bP,Q3 as bQ,Y3 as bR,g3 as ba,v3 as bb,b3 as bc,F_ as bd,Vn as be,T0 as bf,Z_ as bg,H0 as bh,pM as bi,tj as bj,mM as bk,iM as bl,cM as bm,dM as bn,uM as bo,fM as bp,S3 as bq,rM as br,Vj as bs,R3 as bt,C3 as bu,T3 as bv,N3 as bw,J_ as bx,t3 as by,W_ as bz,je as c,ne as d,dy as e,Fx as f,i3 as g,u3 as h,TE as i,f as j,s3 as k,ON as l,J3 as m,nf as n,wo as o,c3 as p,E3 as q,v as r,ox as s,Ve as t,am as u,lx as v,rm as w,eT as x,Ql as y,sT as z};
|