meshy-node 0.9.3 → 0.9.5
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-D21dWlmw.js +164 -0
- package/dashboard/assets/{DashboardShared-Coi8X4Mf.js → DashboardShared-CtD601bB.js} +35 -35
- package/dashboard/assets/{DiffTab-797YuD9i.js → DiffTab-D1I57xJM.js} +1 -1
- package/dashboard/assets/{FilesTab-CxWQD31o.js → FilesTab-B_30Lp2l.js} +2 -2
- package/dashboard/assets/{MarkdownPreviewFrame-tY-M5bCG.js → MarkdownPreviewFrame-hB6tBCB8.js} +1 -1
- package/dashboard/assets/PreviewTab-BBaAgEyn.js +21 -0
- package/dashboard/assets/SharedConversationPage-DpJKqW_3.js +2 -0
- package/dashboard/assets/{file-QtUVb5S2.js → file-B8vnmnf2.js} +1 -1
- package/dashboard/assets/index-9hU42hur.js +316 -0
- package/dashboard/assets/index-DQIXvvgG.css +1 -0
- package/dashboard/index.html +2 -2
- package/main.cjs +147003 -53902
- package/package.json +1 -1
- package/runtime-metadata.json +4 -4
- package/dashboard/assets/DashboardPage-DyNoe7cv.js +0 -149
- package/dashboard/assets/PreviewTab-Ci5d1xLj.js +0 -16
- package/dashboard/assets/SharedConversationPage-BMmvljLM.js +0 -2
- package/dashboard/assets/index-BT6taBuK.css +0 -1
- package/dashboard/assets/index-BxuLE_uo.js +0 -316
- package/dashboard/assets/play-Cwrx3Fzy.js +0 -6
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-D21dWlmw.js","assets/DashboardShared-CtD601bB.js","assets/MarkdownPreviewFrame-hB6tBCB8.js","assets/PreviewTab-BBaAgEyn.js","assets/DashboardPage-i714dDoR.css","assets/SharedConversationPage-DpJKqW_3.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var bw=Object.defineProperty;var xw=(n,r,l)=>r in n?bw(n,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[r]=l;var lt=(n,r,l)=>xw(n,typeof r!="symbol"?r+"":r,l);function Sw(n,r){for(var l=0;l<r.length;l++){const s=r[l];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 l(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=l(c);fetch(c.href,u)}})();function i0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Sd={exports:{}},Oo={};/**
|
|
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 Yg;function ww(){if(Yg)return Oo;Yg=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(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 Oo.Fragment=r,Oo.jsx=l,Oo.jsxs=l,Oo}var Gg;function Ew(){return Gg||(Gg=1,Sd.exports=ww()),Sd.exports}var f=Ew(),wd={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 Ig;function Nw(){if(Ig)return Ce;Ig=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=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"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.iterator;function S(C){return C===null||typeof C!="object"?null:(C=y&&C[y]||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 _(C,V,F){this.props=C,this.context=V,this.refs=E,this.updater=F||N}var k=_.prototype=new A;k.constructor=_,T(k,R.prototype),k.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 re(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?re(""+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 ne(C,V,F,I,W){var se=typeof C;(se==="undefined"||se==="boolean")&&(C=null);var ae=!1;if(C===null)ae=!0;else switch(se){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(C.$$typeof){case n:case r:ae=!0;break;case b:return ae=C._init,ne(ae(C._payload),V,F,I,W)}}if(ae)return W=W(C),ae=I===""?"."+ue(C,0):I,U(W)?(F="",ae!=null&&(F=ae.replace(fe,"$&/")+"/"),ne(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,"$&/")+"/")+ae)),V.push(W)),1;ae=0;var ce=I===""?".":I+":";if(U(C))for(var le=0;le<C.length;le++)I=C[le],se=ce+ue(I,le),ae+=ne(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++),ae+=ne(I,V,F,se,W);else if(se==="object"){if(typeof C.then=="function")return ne(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 ae}function M(C,V,F){if(C==null)return C;var I=[],W=0;return ne(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 Q=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=l,Ce.Profiler=c,Ce.PureComponent=_,Ce.StrictMode=s,Ce.Suspense=v,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(ae in V.ref!==void 0&&(se=void 0),V.key!==void 0&&(W=""+V.key),V)!Y.call(V,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&V.ref===void 0||(I[ae]=V[ae]);var ae=arguments.length-2;if(ae===1)I.children=F;else if(1<ae){for(var ce=Array(ae),le=0;le<ae;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 ae=arguments.length-2;if(ae===1)W.children=F;else if(1<ae){for(var ce=Array(ae),le=0;le<ae;le++)ce[le]=arguments[le+2];W.children=ce}if(C&&C.defaultProps)for(I in ae=C.defaultProps,ae)W[I]===void 0&&(W[I]=ae[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,Q)}catch(se){Q(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 Xg;function yf(){return Xg||(Xg=1,wd.exports=Nw()),wd.exports}var g=yf();const te=i0(g),bf=Sw({__proto__:null,default:te},[g]);var Ed={exports:{}},Do={},Nd={exports:{}},Td={};/**
|
|
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 Kg;function Tw(){return Kg||(Kg=1,(function(n){function r(M,q){var Q=M.length;M.push(q);e:for(;0<Q;){var de=Q-1>>>1,C=M[de];if(0<c(C,q))M[de]=q,M[Q]=C,Q=de;else break e}}function l(M){return M.length===0?null:M[0]}function s(M){if(M.length===0)return null;var q=M[0],Q=M.pop();if(Q!==q){M[0]=Q;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,Q))W<C&&0>c(se,I)?(M[de]=se,M[W]=Q,de=W):(M[de]=I,M[F]=Q,de=F);else if(W<C&&0>c(se,Q))M[de]=se,M[W]=Q,de=W;else break e}}return q}function c(M,q){var Q=M.sortIndex-q.sortIndex;return Q!==0?Q: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 v=[],p=[],b=1,y=null,S=3,N=!1,T=!1,E=!1,R=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function U(M){for(var q=l(p);q!==null;){if(q.callback===null)s(p);else if(q.startTime<=M)s(p),q.sortIndex=q.expirationTime,r(v,q);else break;q=l(p)}}function z(M){if(E=!1,U(M),!T)if(l(v)!==null)T=!0,Y||(Y=!0,ue());else{var q=l(p);q!==null&&ne(z,q.startTime-M)}}var Y=!1,G=-1,P=5,ee=-1;function re(){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,_(G),G=-1),N=!0;var Q=S;try{t:{for(U(M),y=l(v);y!==null&&!(y.expirationTime>M&&re());){var de=y.callback;if(typeof de=="function"){y.callback=null,S=y.priorityLevel;var C=de(y.expirationTime<=M);if(M=n.unstable_now(),typeof C=="function"){y.callback=C,U(M),q=!0;break t}y===l(v)&&s(v),U(M)}else s(v);y=l(v)}if(y!==null)q=!0;else{var V=l(p);V!==null&&ne(z,V.startTime-M),q=!1}}break e}finally{y=null,S=Q,N=!1}q=void 0}}finally{q?ue():Y=!1}}}var ue;if(typeof k=="function")ue=function(){k(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 ne(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 Q=S;S=q;try{return M()}finally{S=Q}},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 Q=S;S=M;try{return q()}finally{S=Q}},n.unstable_scheduleCallback=function(M,q,Q){var de=n.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?de+Q:de):Q=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=Q+C,M={id:b++,callback:q,priorityLevel:M,startTime:Q,expirationTime:C,sortIndex:-1},Q>de?(M.sortIndex=Q,r(p,M),l(v)===null&&M===l(p)&&(E?(_(G),G=-1):E=!0,ne(z,Q-de))):(M.sortIndex=C,r(v,M),T||N||(T=!0,Y||(Y=!0,ue()))),M},n.unstable_shouldYield=re,n.unstable_wrapCallback=function(M){var q=S;return function(){var Q=S;S=q;try{return M.apply(this,arguments)}finally{S=Q}}}})(Td)),Td}var Qg;function Rw(){return Qg||(Qg=1,Nd.exports=Tw()),Nd.exports}var Rd={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 Zg;function Cw(){if(Zg)return zt;Zg=1;var n=yf();function r(v){var p="https://react.dev/errors/"+v;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 #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var s={d:{f:l,r:function(){throw Error(r(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function u(v,p,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:v,containerInfo:p,implementation:b}}var m=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,zt.createPortal=function(v,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(v,p,null,b)},zt.flushSync=function(v){var p=m.T,b=s.p;try{if(m.T=null,s.p=2,v)return v()}finally{m.T=p,s.p=b,s.d.f()}},zt.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(v,p))},zt.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},zt.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var b=p.as,y=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(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:N}):b==="script"&&s.d.X(v,{crossOrigin:y,integrity:S,fetchPriority:N,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},zt.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=h(p.as,p.crossOrigin);s.d.M(v,{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(v)},zt.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,y=h(b,p.crossOrigin);s.d.L(v,b,{crossOrigin:y,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(v,p){if(typeof v=="string")if(p){var b=h(p.as,p.crossOrigin);s.d.m(v,{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(v)},zt.requestFormReset=function(v){s.d.r(v)},zt.unstable_batchedUpdates=function(v,p){return v(p)},zt.useFormState=function(v,p,b){return m.H.useFormState(v,p,b)},zt.useFormStatus=function(){return m.H.useHostTransitionStatus()},zt.version="19.1.0",zt}var Fg;function c0(){if(Fg)return Rd.exports;Fg=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=Cw(),Rd.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var Wg;function Aw(){if(Wg)return Do;Wg=1;var n=Rw(),r=yf(),l=c0();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 v(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,o=t;;){var i=a.return;if(i===null)break;var d=i.alternate;if(d===null){if(o=i.return,o!==null){a=o;continue}break}if(i.child===d.child){for(d=i.child;d;){if(d===a)return h(i),e;if(d===o)return h(i),t;d=d.sibling}throw Error(s(188))}if(a.return!==o.return)a=i,o=d;else{for(var x=!1,w=i.child;w;){if(w===a){x=!0,a=i,o=d;break}if(w===o){x=!0,o=i,a=d;break}w=w.sibling}if(!x){for(w=d.child;w;){if(w===a){x=!0,a=d,o=i;break}if(w===o){x=!0,o=d,a=i;break}w=w.sibling}if(!x)throw Error(s(189))}}if(a.alternate!==o)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,y=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"),_=Symbol.for("react.consumer"),k=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"),re=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 k:return(e.displayName||"Context")+".Provider";case _: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 ne=Array.isArray,M=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={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),ae=V(null),ce=V(null);function le(e,t){switch(I(ae,t),I(se,e),I(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?yg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=yg(t),e=bg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(W),I(W,e)}function J(){F(W),F(se),F(ae)}function ve(e){e.memoizedState!==null&&I(ce,e);var t=W.current,a=bg(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),Ao._currentValue=Q)}var Se=Object.prototype.hasOwnProperty,Ue=n.unstable_scheduleCallback,$e=n.unstable_cancelCallback,Ye=n.unstable_shouldYield,vt=n.unstable_requestPaint,_e=n.unstable_now,Bt=n.unstable_getCurrentPriorityLevel,yt=n.unstable_ImmediatePriority,Rr=n.unstable_UserBlockingPriority,ha=n.unstable_NormalPriority,jt=n.unstable_LowPriority,pn=n.unstable_IdlePriority,zl=n.log,Cr=n.unstable_setDisableYieldValue,Gt=null,be=null;function Pe(e){if(typeof zl=="function"&&Cr(e),be&&typeof be.setStrictMode=="function")try{be.setStrictMode(Gt,e)}catch{}}var ke=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 o=e.pendingLanes;if(o===0)return 0;var i=0,d=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var w=o&134217727;return w!==0?(o=w&~d,o!==0?i=Cn(o):(x&=w,x!==0?i=Cn(x):a||(a=w&~e,a!==0&&(i=Cn(a))))):(w=o&~d,w!==0?i=Cn(w):x!==0?i=Cn(x):a||(a=o&~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 Ll(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 es(){var e=Ar;return Ar<<=1,(Ar&62914560)===0&&(Ar=4194304),e}function Ul(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 ts(e,t,a,o,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,j=e.expirationTimes,B=e.hiddenUpdates;for(a=x&~a;0<a;){var X=31-ke(a),Z=1<<X;w[X]=0,j[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}o!==0&&Re(e,o,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 o=31-ke(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&4194090}function ct(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-ke(a),i=1<<o;i&t|e[o]&t&&(e[o]|=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 _t(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:Bg(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,jr="__reactEvents$"+ut,In="__reactListeners$"+ut,lm="__reactHandles$"+ut,om="__reactResources$"+ut,Bl="__reactMarker$"+ut;function hc(e){delete e[dt],delete e[We],delete e[jr],delete e[In],delete e[lm]}function _r(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=Eg(e);e!==null;){if(a=e[dt])return a;e=Eg(e)}return t}e=a,a=e.parentNode}return null}function kr(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 Hl(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[om];return t||(t=e[om]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Tt(e){e[Bl]=!0}var sm=new Set,im={};function Ja(e,t){Or(e,t),Or(e+"Capture",t)}function Or(e,t){for(im[e]=t,e=0;e<t.length;e++)sm.add(t[e])}var d1=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]*$"),cm={},um={};function f1(e){return Se.call(um,e)?!0:Se.call(cm,e)?!1:d1.test(e)?um[e]=!0:(cm[e]=!0,!1)}function ns(e,t,a){if(f1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function as(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,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+o)}}var pc,dm;function Dr(e){if(pc===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);pc=t&&t[1]||"",dm=-1<a.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+pc+e+dm}var gc=!1;function vc(e,t){if(!e||gc)return"";gc=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={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]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=o.DetermineComponentFrameRoot(),x=d[0],w=d[1];if(x&&w){var j=x.split(`
|
|
45
|
+
`),B=w.split(`
|
|
46
|
+
`);for(i=o=0;o<j.length&&!j[o].includes("DetermineComponentFrameRoot");)o++;for(;i<B.length&&!B[i].includes("DetermineComponentFrameRoot");)i++;if(o===j.length||i===B.length)for(o=j.length-1,i=B.length-1;1<=o&&0<=i&&j[o]!==B[i];)i--;for(;1<=o&&0<=i;o--,i--)if(j[o]!==B[i]){if(o!==1||i!==1)do if(o--,i--,0>i||j[o]!==B[i]){var X=`
|
|
47
|
+
`+j[o].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=o&&0<=i);break}}}finally{gc=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Dr(a):""}function m1(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 vc(e.type,!1);case 11:return vc(e.type.render,!1);case 1:return vc(e.type,!0);case 31:return Dr("Activity");default:return""}}function fm(e){try{var t="";do t+=m1(e),e=e.return;while(e);return t}catch(a){return`
|
|
48
|
+
Error generating stack: `+a.message+`
|
|
49
|
+
`+a.stack}}function an(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h1(e){var t=mm(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+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){o=""+x,d.call(this,x)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return o},setValue:function(x){o=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rs(e){e._valueTracker||(e._valueTracker=h1(e))}function hm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=mm(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function ls(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var p1=/[\n"\\]/g;function rn(e){return e.replace(p1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function yc(e,t,a,o,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=""+an(t)):e.value!==""+an(t)&&(e.value=""+an(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?bc(e,x,an(t)):a!=null?bc(e,x,an(a)):o!=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=""+an(w):e.removeAttribute("name")}function pm(e,t,a,o,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?""+an(a):"",t=t!=null?""+an(t):a,w||t===e.value||(e.value=t),e.defaultValue=t}o=o??i,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=w?e.checked:!!o,e.defaultChecked=!!o,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x)}function bc(e,t,a){t==="number"&&ls(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function zr(e,t,a,o){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&&o&&(e[a].defaultSelected=!0)}else{for(a=""+an(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,o&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function gm(e,t,a){if(t!=null&&(t=""+an(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+an(a):""}function vm(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error(s(92));if(ne(o)){if(1<o.length)throw Error(s(93));o=o[0]}a=o}a==null&&(a=""),t=a}a=an(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o)}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 g1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ym(e,t,a){var o=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!="number"||a===0||g1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function bm(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var i in t)o=t[i],t.hasOwnProperty(i)&&a[i]!==o&&ym(e,i,o)}else for(var d in t)t.hasOwnProperty(d)&&ym(e,d,t[d])}function xc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var v1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),y1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function os(e){return y1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Sc=null;function wc(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 xm(e){var t=kr(e);if(t&&(e=t.stateNode)){var a=e[We]||null;e:switch(e=t.stateNode,t.type){case"input":if(yc(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="'+rn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var i=o[We]||null;if(!i)throw Error(s(90));yc(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&hm(o)}break e;case"textarea":gm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&zr(e,!!a.multiple,t,!1)}}}var Ec=!1;function Sm(e,t,a){if(Ec)return e(t,a);Ec=!0;try{var o=e(t);return o}finally{if(Ec=!1,(Ur!==null||Br!==null)&&(Gs(),Ur&&(t=Ur,e=Br,Br=Ur=null,xm(t),e)))for(t=0;t<e.length;t++)xm(e[t])}}function $l(e,t){var a=e.stateNode;if(a===null)return null;var o=a[We]||null;if(o===null)return null;a=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var Kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nc=!1;if(Kn)try{var Pl={};Object.defineProperty(Pl,"passive",{get:function(){Nc=!0}}),window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{Nc=!1}var ga=null,Tc=null,ss=null;function wm(){if(ss)return ss;var e,t=Tc,a=t.length,o,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(o=1;o<=x&&t[a-o]===i[d-o];o++);return ss=i.slice(e,1<o?1-o:void 0)}function is(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 cs(){return!0}function Em(){return!1}function Ht(e){function t(a,o,i,d,x){this._reactName=a,this._targetInst=i,this.type=o,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)?cs:Em,this.isPropagationStopped=Em,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=cs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=cs)},persist:function(){},isPersistent:cs}),t}var er={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},us=Ht(er),ql=b({},er,{view:0,detail:0}),b1=Ht(ql),Rc,Cc,Vl,ds=b({},ql,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jc,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!==Vl&&(Vl&&e.type==="mousemove"?(Rc=e.screenX-Vl.screenX,Cc=e.screenY-Vl.screenY):Cc=Rc=0,Vl=e),Rc)},movementY:function(e){return"movementY"in e?e.movementY:Cc}}),Nm=Ht(ds),x1=b({},ds,{dataTransfer:0}),S1=Ht(x1),w1=b({},ql,{relatedTarget:0}),Ac=Ht(w1),E1=b({},er,{animationName:0,elapsedTime:0,pseudoElement:0}),N1=Ht(E1),T1=b({},er,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),R1=Ht(T1),C1=b({},er,{data:0}),Tm=Ht(C1),A1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},j1={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"},_1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function k1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_1[e])?!!t[e]:!1}function jc(){return k1}var M1=b({},ql,{key:function(e){if(e.key){var t=A1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=is(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?j1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jc,charCode:function(e){return e.type==="keypress"?is(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?is(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),O1=Ht(M1),D1=b({},ds,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rm=Ht(D1),z1=b({},ql,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jc}),L1=Ht(z1),U1=b({},er,{propertyName:0,elapsedTime:0,pseudoElement:0}),B1=Ht(U1),H1=b({},ds,{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}),$1=Ht(H1),P1=b({},er,{newState:0,oldState:0}),q1=Ht(P1),V1=[9,13,27,32],_c=Kn&&"CompositionEvent"in window,Yl=null;Kn&&"documentMode"in document&&(Yl=document.documentMode);var Y1=Kn&&"TextEvent"in window&&!Yl,Cm=Kn&&(!_c||Yl&&8<Yl&&11>=Yl),Am=" ",jm=!1;function _m(e,t){switch(e){case"keyup":return V1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function km(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hr=!1;function G1(e,t){switch(e){case"compositionend":return km(t);case"keypress":return t.which!==32?null:(jm=!0,Am);case"textInput":return e=t.data,e===Am&&jm?null:e;default:return null}}function I1(e,t){if(Hr)return e==="compositionend"||!_c&&_m(e,t)?(e=wm(),ss=Tc=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 Cm&&t.locale!=="ko"?null:t.data;default:return null}}var X1={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 Mm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!X1[e.type]:t==="textarea"}function Om(e,t,a,o){Ur?Br?Br.push(o):Br=[o]:Ur=o,t=Fs(t,"onChange"),0<t.length&&(a=new us("onChange","change",null,a,o),e.push({event:a,listeners:t}))}var Gl=null,Il=null;function K1(e){mg(e,0)}function fs(e){var t=Hl(e);if(hm(t))return e}function Dm(e,t){if(e==="change")return t}var zm=!1;if(Kn){var kc;if(Kn){var Mc="oninput"in document;if(!Mc){var Lm=document.createElement("div");Lm.setAttribute("oninput","return;"),Mc=typeof Lm.oninput=="function"}kc=Mc}else kc=!1;zm=kc&&(!document.documentMode||9<document.documentMode)}function Um(){Gl&&(Gl.detachEvent("onpropertychange",Bm),Il=Gl=null)}function Bm(e){if(e.propertyName==="value"&&fs(Il)){var t=[];Om(t,Il,e,wc(e)),Sm(K1,t)}}function Q1(e,t,a){e==="focusin"?(Um(),Gl=t,Il=a,Gl.attachEvent("onpropertychange",Bm)):e==="focusout"&&Um()}function Z1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fs(Il)}function F1(e,t){if(e==="click")return fs(t)}function W1(e,t){if(e==="input"||e==="change")return fs(t)}function J1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var It=typeof Object.is=="function"?Object.is:J1;function Xl(e,t){if(It(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var i=a[o];if(!Se.call(t,i)||!It(e[i],t[i]))return!1}return!0}function Hm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $m(e,t){var a=Hm(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Hm(a)}}function Pm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ls(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=ls(e.document)}return t}function Oc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var eS=Kn&&"documentMode"in document&&11>=document.documentMode,$r=null,Dc=null,Kl=null,zc=!1;function Vm(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;zc||$r==null||$r!==ls(o)||(o=$r,"selectionStart"in o&&Oc(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Kl&&Xl(Kl,o)||(Kl=o,o=Fs(Dc,"onSelect"),0<o.length&&(t=new us("onSelect","select",null,t,a),e.push({event:t,listeners:o}),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")},Lc={},Ym={};Kn&&(Ym=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(Lc[e])return Lc[e];if(!Pr[e])return e;var t=Pr[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Ym)return Lc[e]=t[a];return e}var Gm=nr("animationend"),Im=nr("animationiteration"),Xm=nr("animationstart"),tS=nr("transitionrun"),nS=nr("transitionstart"),aS=nr("transitioncancel"),Km=nr("transitionend"),Qm=new Map,Uc="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(" ");Uc.push("scrollEnd");function vn(e,t){Qm.set(e,t),Ja(t,[e])}var Zm=new WeakMap;function ln(e,t){if(typeof e=="object"&&e!==null){var a=Zm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:fm(t)},Zm.set(e,t),t)}return{value:e,source:t,stack:fm(t)}}var on=[],qr=0,Bc=0;function ms(){for(var e=qr,t=Bc=qr=0;t<e;){var a=on[t];on[t++]=null;var o=on[t];on[t++]=null;var i=on[t];on[t++]=null;var d=on[t];if(on[t++]=null,o!==null&&i!==null){var x=o.pending;x===null?i.next=i:(i.next=x.next,x.next=i),o.pending=i}d!==0&&Fm(a,i,d)}}function hs(e,t,a,o){on[qr++]=e,on[qr++]=t,on[qr++]=a,on[qr++]=o,Bc|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Hc(e,t,a,o){return hs(e,t,a,o),ps(e)}function Vr(e,t){return hs(e,null,null,t),ps(e)}function Fm(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var i=!1,d=e.return;d!==null;)d.childLanes|=a,o=d.alternate,o!==null&&(o.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-ke(a),e=d.hiddenUpdates,o=e[i],o===null?e[i]=[t]:o.push(t),t.lane=a|536870912),d):null}function ps(e){if(50<xo)throw xo=0,Gu=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 rS(e,t,a,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,t,a,o){return new rS(e,t,a,o)}function $c(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qn(e,t){var a=e.alternate;return a===null?(a=Xt(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 Wm(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 gs(e,t,a,o,i,d){var x=0;if(o=e,typeof e=="function")$c(e)&&(x=1);else if(typeof e=="string")x=ow(e,a,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ee:return e=Xt(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=Xt(12,a,t,i|2),e.elementType=R,e.lanes=d,e;case z:return e=Xt(13,a,t,i),e.elementType=z,e.lanes=d,e;case Y:return e=Xt(19,a,t,i),e.elementType=Y,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A:case k:x=10;break e;case _:x=9;break e;case U:x=11;break e;case G:x=14;break e;case P:x=16,o=null;break e}x=29,a=Error(s(130,e===null?"null":typeof e,"")),o=null}return t=Xt(x,a,t,i),t.elementType=e,t.type=o,t.lanes=d,t}function ar(e,t,a,o){return e=Xt(7,e,o,t),e.lanes=a,e}function Pc(e,t,a){return e=Xt(6,e,null,t),e.lanes=a,e}function qc(e,t,a){return t=Xt(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,vs=null,ys=0,sn=[],cn=0,rr=null,Zn=1,Fn="";function lr(e,t){Gr[Ir++]=ys,Gr[Ir++]=vs,vs=e,ys=t}function Jm(e,t,a){sn[cn++]=Zn,sn[cn++]=Fn,sn[cn++]=rr,rr=e;var o=Zn;e=Fn;var i=32-ke(o)-1;o&=~(1<<i),a+=1;var d=32-ke(t)+i;if(30<d){var x=i-i%5;d=(o&(1<<x)-1).toString(32),o>>=x,i-=x,Zn=1<<32-ke(t)+i|a<<i|o,Fn=d+e}else Zn=1<<d|a<<i|o,Fn=e}function Vc(e){e.return!==null&&(lr(e,1),Jm(e,1,0))}function Yc(e){for(;e===vs;)vs=Gr[--Ir],Gr[Ir]=null,ys=Gr[--Ir],Gr[Ir]=null;for(;e===rr;)rr=sn[--cn],sn[cn]=null,Fn=sn[--cn],sn[cn]=null,Zn=sn[--cn],sn[cn]=null}var Ut=null,ot=null,Ve=!1,or=null,An=!1,Gc=Error(s(519));function sr(e){var t=Error(s(418,""));throw Fl(ln(t,e)),Gc}function eh(e){var t=e.stateNode,a=e.type,o=e.memoizedProps;switch(t[dt]=e,t[We]=o,a){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(a=0;a<wo.length;a++)De(wo[a],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),pm(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),rs(t);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),vm(t,o.value,o.defaultValue,o.children),rs(t)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||vg(t.textContent,a)?(o.popover!=null&&(De("beforetoggle",t),De("toggle",t)),o.onScroll!=null&&De("scroll",t),o.onScrollEnd!=null&&De("scrollend",t),o.onClick!=null&&(t.onclick=Ws),t=!0):t=!1,t||sr(e)}function th(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 Ql(e){if(e!==Ut)return!1;if(!Ve)return th(e),Ve=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||sd(e.type,e.memoizedProps)),a=!a),a&&ot&&sr(e),th(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){ot=bn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}ot=null}}else t===27?(t=ot,Ma(e.type)?(e=dd,dd=null,ot=e):ot=t):ot=Ut?bn(e.stateNode.nextSibling):null;return!0}function Zl(){ot=Ut=null,Ve=!1}function nh(){var e=or;return e!==null&&(qt===null?qt=e:qt.push.apply(qt,e),or=null),e}function Fl(e){or===null?or=[e]:or.push(e)}var Ic=V(null),ir=null,Wn=null;function va(e,t,a){I(Ic,t._currentValue),t._currentValue=a}function Jn(e){e._currentValue=Ic.current,F(Ic)}function Xc(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}}function Kc(e,t,a,o){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 j=0;j<t.length;j++)if(w.context===t[j]){d.lanes|=a,w=d.alternate,w!==null&&(w.lanes|=a),Xc(d.return,a,e),o||(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),Xc(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 Wl(e,t,a,o){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;It(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(Ao):e=[Ao])}i=i.return}e!==null&&Kc(t,e,a,o),t.flags|=262144}function bs(e){for(e=e.firstContext;e!==null;){if(!It(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 ah(ir,e)}function xs(e,t){return ir===null&&cr(e),ah(e,t)}function ah(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 lS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},oS=n.unstable_scheduleCallback,sS=n.unstable_NormalPriority,xt={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qc(){return{controller:new lS,data:new Map,refCount:0}}function Jl(e){e.refCount--,e.refCount===0&&oS(sS,function(){e.controller.abort()})}var eo=null,Zc=0,Xr=0,Kr=null;function iS(e,t){if(eo===null){var a=eo=[];Zc=0,Xr=Wu(),Kr={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Zc++,t.then(rh,rh),t}function rh(){if(--Zc===0&&eo!==null){Kr!==null&&(Kr.status="fulfilled");var e=eo;eo=null,Xr=0,Kr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function cS(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(o.status="rejected",o.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),o}var lh=M.S;M.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&iS(e,t),lh!==null&&lh(e,t)};var ur=V(null);function Fc(){var e=ur.current;return e!==null?e:Je.pooledCache}function Ss(e,t){t===null?I(ur,ur.current):I(ur,t.pool)}function oh(){var e=Fc();return e===null?null:{parent:xt._currentValue,pool:e}}var to=Error(s(460)),sh=Error(s(474)),ws=Error(s(542)),Wc={then:function(){}};function ih(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Es(){}function ch(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Es,Es),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,dh(e),e;default:if(typeof t.status=="string")t.then(Es,Es);else{if(e=Je,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=o}},function(o){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,dh(e),e}throw no=t,to}}var no=null;function uh(){if(no===null)throw Error(s(459));var e=no;return no=null,e}function dh(e){if(e===to||e===ws)throw Error(s(483))}var ya=!1;function Jc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function eu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ba(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xa(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Ie&2)!==0){var i=o.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),o.pending=t,t=ps(e),Fm(e,null,a),t}return hs(e,o,t,a),ps(e)}function ao(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,ct(e,a)}}function tu(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){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:o.baseState,firstBaseUpdate:i,lastBaseUpdate:d,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var nu=!1;function ro(){if(nu){var e=Kr;if(e!==null)throw e}}function lo(e,t,a,o){nu=!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 j=w,B=j.next;j.next=null,x===null?d=B:x.next=B,x=j;var X=e.alternate;X!==null&&(X=X.updateQueue,w=X.lastBaseUpdate,w!==x&&(w===null?X.firstBaseUpdate=B:w.next=B,X.lastBaseUpdate=j))}if(d!==null){var Z=i.baseState;x=0,X=B=j=null,w=d;do{var H=w.lane&-536870913,$=H!==w.lane;if($?(Be&H)===H:(o&H)===H){H!==0&&H===Xr&&(nu=!0),X!==null&&(X=X.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var Te=e,we=w;H=t;var Ze=a;switch(we.tag){case 1:if(Te=we.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=we.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=$,j=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&&(j=Z),i.baseState=j,i.firstBaseUpdate=B,i.lastBaseUpdate=X,d===null&&(i.shared.lanes=0),Aa|=x,e.lanes=x,e.memoizedState=Z}}function fh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function mh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)fh(a[e],t)}var Qr=V(null),Ns=V(0);function hh(e,t){e=oa,I(Ns,e),I(Qr,t),oa=e|t.baseLanes}function au(){I(Ns,oa),I(Qr,Qr.current)}function ru(){oa=Ns.current,F(Qr),F(Ns)}var Sa=0,Ae=null,Ke=null,pt=null,Ts=!1,Zr=!1,dr=!1,Rs=0,oo=0,Fr=null,uS=0;function ft(){throw Error(s(321))}function lu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!It(e[a],t[a]))return!1;return!0}function ou(e,t,a,o,i,d){return Sa=d,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Fh:Wh,dr=!1,d=a(o,i),dr=!1,Zr&&(d=gh(t,a,o,i)),ph(e),d}function ph(e){M.H=Ms;var t=Ke!==null&&Ke.next!==null;if(Sa=0,pt=Ke=Ae=null,Ts=!1,oo=0,Fr=null,t)throw Error(s(300));e===null||Rt||(e=e.dependencies,e!==null&&bs(e)&&(Rt=!0))}function gh(e,t,a,o){Ae=e;var i=0;do{if(Zr&&(Fr=null),oo=0,Zr=!1,25<=i)throw Error(s(301));if(i+=1,pt=Ke=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=vS,d=t(a,o)}while(Zr);return d}function dS(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?so(t):t,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(Ae.flags|=1024),t}function su(){var e=Rs!==0;return Rs=0,e}function iu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function cu(e){if(Ts){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ts=!1}Sa=0,pt=Ke=Ae=null,Zr=!1,oo=Rs=0,Fr=null}function $t(){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(Ke===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=pt===null?Ae.memoizedState:pt.next;if(t!==null)pt=t,Ke=e;else{if(e===null)throw Ae.alternate===null?Error(s(467)):Error(s(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},pt===null?Ae.memoizedState=pt=e:pt=pt.next=e}return pt}function uu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function so(e){var t=oo;return oo+=1,Fr===null&&(Fr=[]),e=ch(Fr,e,t),t=Ae,(pt===null?t.memoizedState:pt.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Fh:Wh),e}function Cs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return so(e);if(e.$$typeof===k)return Dt(e)}throw Error(s(438,String(e)))}function du(e){var t=null,a=Ae.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Ae.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=uu(),Ae.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=re;return t.index++,a}function ea(e,t){return typeof t=="function"?t(e):t}function As(e){var t=gt();return fu(t,Ke,e)}function fu(e,t,a){var o=e.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=a;var i=e.baseQueue,d=o.pending;if(d!==null){if(i!==null){var x=i.next;i.next=d.next,d.next=x}t.baseQueue=i=d,o.pending=null}if(d=e.baseState,i===null)e.memoizedState=d;else{t=i.next;var w=x=null,j=null,B=t,X=!1;do{var Z=B.lane&-536870913;if(Z!==B.lane?(Be&Z)===Z:(Sa&Z)===Z){var H=B.revertLane;if(H===0)j!==null&&(j=j.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},j===null?(w=j=Z,x=d):j=j.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},j===null?(w=j=H,x=d):j=j.next=H,Ae.lanes|=Z,Aa|=Z;B=B.next}while(B!==null&&B!==t);if(j===null?x=d:j.next=w,!It(d,e.memoizedState)&&(Rt=!0,X&&(a=Kr,a!==null)))throw a;e.memoizedState=d,e.baseState=x,e.baseQueue=j,o.lastRenderedState=d}return i===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function mu(e){var t=gt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var o=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);It(d,t.memoizedState)||(Rt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),a.lastRenderedState=d}return[d,o]}function vh(e,t,a){var o=Ae,i=gt(),d=Ve;if(d){if(a===void 0)throw Error(s(407));a=a()}else a=t();var x=!It((Ke||i).memoizedState,a);x&&(i.memoizedState=a,Rt=!0),i=i.queue;var w=xh.bind(null,o,i,e);if(io(2048,8,w,[e]),i.getSnapshot!==t||x||pt!==null&&pt.memoizedState.tag&1){if(o.flags|=2048,Wr(9,js(),bh.bind(null,o,i,a,t),null),Je===null)throw Error(s(349));d||(Sa&124)!==0||yh(o,t,a)}return a}function yh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ae.updateQueue,t===null?(t=uu(),Ae.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function bh(e,t,a,o){t.value=a,t.getSnapshot=o,Sh(t)&&wh(e)}function xh(e,t,a){return a(function(){Sh(t)&&wh(e)})}function Sh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!It(e,a)}catch{return!0}}function wh(e){var t=Vr(e,2);t!==null&&Wt(t,e,2)}function hu(e){var t=$t();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 Eh(e,t,a,o){return e.baseState=a,fu(e,Ke,typeof o=="function"?o:ea)}function fS(e,t,a,o,i){if(ks(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,o(d),a=t.pending,a===null?(d.next=t.pending=d,Nh(t,d)):(d.next=a.next,t.pending=a.next=d)}}function Nh(e,t){var a=t.action,o=t.payload,i=e.state;if(t.isTransition){var d=M.T,x={};M.T=x;try{var w=a(i,o),j=M.S;j!==null&&j(x,w),Th(e,t,w)}catch(B){pu(e,t,B)}finally{M.T=d}}else try{d=a(i,o),Th(e,t,d)}catch(B){pu(e,t,B)}}function Th(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){Rh(e,t,o)},function(o){return pu(e,t,o)}):Rh(e,t,a)}function Rh(e,t,a){t.status="fulfilled",t.value=a,Ch(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Nh(e,a)))}function pu(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,Ch(t),t=t.next;while(t!==o)}e.action=null}function Ch(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ah(e,t){return t}function jh(e,t){if(Ve){var a=Je.formState;if(a!==null){e:{var o=Ae;if(Ve){if(ot){t:{for(var i=ot,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){ot=bn(i.nextSibling),o=i.data==="F!";break e}}sr(o)}o=!1}o&&(t=a[0])}}return a=$t(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ah,lastRenderedState:t},a.queue=o,a=Kh.bind(null,Ae,o),o.dispatch=a,o=hu(!1),d=xu.bind(null,Ae,!1,o.queue),o=$t(),i={state:t,dispatch:null,action:e,pending:null},o.queue=i,a=fS.bind(null,Ae,i,d,a),i.dispatch=a,o.memoizedState=e,[t,a,!1]}function _h(e){var t=gt();return kh(t,Ke,e)}function kh(e,t,a){if(t=fu(e,t,Ah)[0],e=As(ea)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=so(t)}catch(x){throw x===to?ws:x}else o=t;t=gt();var i=t.queue,d=i.dispatch;return a!==t.memoizedState&&(Ae.flags|=2048,Wr(9,js(),mS.bind(null,i,a),null)),[o,d,e]}function mS(e,t){e.action=t}function Mh(e){var t=gt(),a=Ke;if(a!==null)return kh(t,a,e);gt(),t=t.memoizedState,a=gt();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function Wr(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=uu(),Ae.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function js(){return{destroy:void 0,resource:void 0}}function Oh(){return gt().memoizedState}function _s(e,t,a,o){var i=$t();o=o===void 0?null:o,Ae.flags|=e,i.memoizedState=Wr(1|t,js(),a,o)}function io(e,t,a,o){var i=gt();o=o===void 0?null:o;var d=i.memoizedState.inst;Ke!==null&&o!==null&&lu(o,Ke.memoizedState.deps)?i.memoizedState=Wr(t,d,a,o):(Ae.flags|=e,i.memoizedState=Wr(1|t,d,a,o))}function Dh(e,t){_s(8390656,8,e,t)}function zh(e,t){io(2048,8,e,t)}function Lh(e,t){return io(4,2,e,t)}function Uh(e,t){return io(4,4,e,t)}function Bh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Hh(e,t,a){a=a!=null?a.concat([e]):null,io(4,4,Bh.bind(null,t,e),a)}function gu(){}function $h(e,t){var a=gt();t=t===void 0?null:t;var o=a.memoizedState;return t!==null&&lu(t,o[1])?o[0]:(a.memoizedState=[e,t],e)}function Ph(e,t){var a=gt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&lu(t,o[1]))return o[0];if(o=e(),dr){Pe(!0);try{e()}finally{Pe(!1)}}return a.memoizedState=[o,t],o}function vu(e,t,a){return a===void 0||(Sa&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=Yp(),Ae.lanes|=e,Aa|=e,a)}function qh(e,t,a,o){return It(a,t)?a:Qr.current!==null?(e=vu(e,a,o),It(e,t)||(Rt=!0),e):(Sa&42)===0?(Rt=!0,e.memoizedState=a):(e=Yp(),Ae.lanes|=e,Aa|=e,t)}function Vh(e,t,a,o,i){var d=q.p;q.p=d!==0&&8>d?d:8;var x=M.T,w={};M.T=w,xu(e,!1,t,a);try{var j=i(),B=M.S;if(B!==null&&B(w,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var X=cS(j,o);co(e,t,X,Ft(e))}else co(e,t,o,Ft(e))}catch(Z){co(e,t,{then:function(){},status:"rejected",reason:Z},Ft())}finally{q.p=d,M.T=x}}function hS(){}function yu(e,t,a,o){if(e.tag!==5)throw Error(s(476));var i=Yh(e).queue;Vh(e,i,t,Q,a===null?hS:function(){return Gh(e),a(o)})}function Yh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:Q},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 Gh(e){var t=Yh(e).next.queue;co(e,t,{},Ft())}function bu(){return Dt(Ao)}function Ih(){return gt().memoizedState}function Xh(){return gt().memoizedState}function pS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ft();e=ba(a);var o=xa(t,e,a);o!==null&&(Wt(o,t,a),ao(o,t,a)),t={cache:Qc()},e.payload=t;return}t=t.return}}function gS(e,t,a){var o=Ft();a={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},ks(e)?Qh(t,a):(a=Hc(e,t,a,o),a!==null&&(Wt(a,e,o),Zh(a,t,o)))}function Kh(e,t,a){var o=Ft();co(e,t,a,o)}function co(e,t,a,o){var i={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(ks(e))Qh(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,It(w,x))return hs(e,t,i,0),Je===null&&ms(),!1}catch{}finally{}if(a=Hc(e,t,i,o),a!==null)return Wt(a,e,o),Zh(a,t,o),!0}return!1}function xu(e,t,a,o){if(o={lane:2,revertLane:Wu(),action:o,hasEagerState:!1,eagerState:null,next:null},ks(e)){if(t)throw Error(s(479))}else t=Hc(e,a,o,2),t!==null&&Wt(t,e,2)}function ks(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function Qh(e,t){Zr=Ts=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Zh(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,ct(e,a)}}var Ms={readContext:Dt,use:Cs,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},Fh={readContext:Dt,use:Cs,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:Dh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,_s(4194308,4,Bh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return _s(4194308,4,e,t)},useInsertionEffect:function(e,t){_s(4,2,e,t)},useMemo:function(e,t){var a=$t();t=t===void 0?null:t;var o=e();if(dr){Pe(!0);try{e()}finally{Pe(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=$t();if(a!==void 0){var i=a(t);if(dr){Pe(!0);try{a(t)}finally{Pe(!1)}}}else i=t;return o.memoizedState=o.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},o.queue=e,e=e.dispatch=gS.bind(null,Ae,e),[o.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:function(e){e=hu(e);var t=e.queue,a=Kh.bind(null,Ae,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:gu,useDeferredValue:function(e,t){var a=$t();return vu(a,e,t)},useTransition:function(){var e=hu(!1);return e=Vh.bind(null,Ae,e.queue,!0,!1),$t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=Ae,i=$t();if(Ve){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Je===null)throw Error(s(349));(Be&124)!==0||yh(o,t,a)}i.memoizedState=a;var d={value:a,getSnapshot:t};return i.queue=d,Dh(xh.bind(null,o,d,e),[e]),o.flags|=2048,Wr(9,js(),bh.bind(null,o,d,a,t),null),a},useId:function(){var e=$t(),t=Je.identifierPrefix;if(Ve){var a=Fn,o=Zn;a=(o&~(1<<32-ke(o)-1)).toString(32)+a,t="«"+t+"R"+a,a=Rs++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=uS++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:bu,useFormState:jh,useActionState:jh,useOptimistic:function(e){var t=$t();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=xu.bind(null,Ae,!0,a),a.dispatch=t,[e,t]},useMemoCache:du,useCacheRefresh:function(){return $t().memoizedState=pS.bind(null,Ae)}},Wh={readContext:Dt,use:Cs,useCallback:$h,useContext:Dt,useEffect:zh,useImperativeHandle:Hh,useInsertionEffect:Lh,useLayoutEffect:Uh,useMemo:Ph,useReducer:As,useRef:Oh,useState:function(){return As(ea)},useDebugValue:gu,useDeferredValue:function(e,t){var a=gt();return qh(a,Ke.memoizedState,e,t)},useTransition:function(){var e=As(ea)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:so(e),t]},useSyncExternalStore:vh,useId:Ih,useHostTransitionStatus:bu,useFormState:_h,useActionState:_h,useOptimistic:function(e,t){var a=gt();return Eh(a,Ke,e,t)},useMemoCache:du,useCacheRefresh:Xh},vS={readContext:Dt,use:Cs,useCallback:$h,useContext:Dt,useEffect:zh,useImperativeHandle:Hh,useInsertionEffect:Lh,useLayoutEffect:Uh,useMemo:Ph,useReducer:mu,useRef:Oh,useState:function(){return mu(ea)},useDebugValue:gu,useDeferredValue:function(e,t){var a=gt();return Ke===null?vu(a,e,t):qh(a,Ke.memoizedState,e,t)},useTransition:function(){var e=mu(ea)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:so(e),t]},useSyncExternalStore:vh,useId:Ih,useHostTransitionStatus:bu,useFormState:Mh,useActionState:Mh,useOptimistic:function(e,t){var a=gt();return Ke!==null?Eh(a,Ke,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:du,useCacheRefresh:Xh},Jr=null,uo=0;function Os(e){var t=uo;return uo+=1,Jr===null&&(Jr=[]),ch(Jr,e,t)}function fo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ds(e,t){throw t.$$typeof===y?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Jh(e){var t=e._init;return t(e._payload)}function ep(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 o(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=Qn(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,K){return O===null||O.tag!==6?(O=Pc(L,D.mode,K),O.return=D,O):(O=i(O,L),O.return=D,O)}function j(D,O,L,K){var he=L.type;return he===T?X(D,O,L.props.children,K,L.key):O!==null&&(O.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===P&&Jh(he)===O.type)?(O=i(O,L.props),fo(O,L),O.return=D,O):(O=gs(L.type,L.key,L.props,null,D.mode,K),fo(O,L),O.return=D,O)}function B(D,O,L,K){return O===null||O.tag!==4||O.stateNode.containerInfo!==L.containerInfo||O.stateNode.implementation!==L.implementation?(O=qc(L,D.mode,K),O.return=D,O):(O=i(O,L.children||[]),O.return=D,O)}function X(D,O,L,K,he){return O===null||O.tag!==7?(O=ar(L,D.mode,K,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=Pc(""+O,D.mode,L),O.return=D,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return L=gs(O.type,O.key,O.props,null,D.mode,L),fo(L,O),L.return=D,L;case N:return O=qc(O,D.mode,L),O.return=D,O;case P:var K=O._init;return O=K(O._payload),Z(D,O,L)}if(ne(O)||ue(O))return O=ar(O,D.mode,L,null),O.return=D,O;if(typeof O.then=="function")return Z(D,Os(O),L);if(O.$$typeof===k)return Z(D,xs(D,O),L);Ds(D,O)}return null}function H(D,O,L,K){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,K);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case S:return L.key===he?j(D,O,L,K):null;case N:return L.key===he?B(D,O,L,K):null;case P:return he=L._init,L=he(L._payload),H(D,O,L,K)}if(ne(L)||ue(L))return he!==null?null:X(D,O,L,K,null);if(typeof L.then=="function")return H(D,O,Os(L),K);if(L.$$typeof===k)return H(D,O,xs(D,L),K);Ds(D,L)}return null}function $(D,O,L,K,he){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return D=D.get(L)||null,w(O,D,""+K,he);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case S:return D=D.get(K.key===null?L:K.key)||null,j(O,D,K,he);case N:return D=D.get(K.key===null?L:K.key)||null,B(O,D,K,he);case P:var Me=K._init;return K=Me(K._payload),$(D,O,L,K,he)}if(ne(K)||ue(K))return D=D.get(L)||null,X(O,D,K,he,null);if(typeof K.then=="function")return $(D,O,L,Os(K),he);if(K.$$typeof===k)return $(D,O,L,xs(O,K),he);Ds(O,K)}return null}function Te(D,O,L,K){for(var he=null,Me=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],K);if(qe===null){xe===null&&(xe=At);break}e&&xe&&qe.alternate===null&&t(D,xe),O=d(qe,O,Ne),Me===null?he=qe:Me.sibling=qe,Me=qe,xe=At}if(Ne===L.length)return a(D,xe),Ve&&lr(D,Ne),he;if(xe===null){for(;Ne<L.length;Ne++)xe=Z(D,L[Ne],K),xe!==null&&(O=d(xe,O,Ne),Me===null?he=xe:Me.sibling=xe,Me=xe);return Ve&&lr(D,Ne),he}for(xe=o(xe);Ne<L.length;Ne++)At=$(xe,D,Ne,L[Ne],K),At!==null&&(e&&At.alternate!==null&&xe.delete(At.key===null?Ne:At.key),O=d(At,O,Ne),Me===null?he=At:Me.sibling=At,Me=At);return e&&xe.forEach(function(Ua){return t(D,Ua)}),Ve&&lr(D,Ne),he}function we(D,O,L,K){if(L==null)throw Error(s(151));for(var he=null,Me=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,K);if(Ua===null){xe===null&&(xe=At);break}e&&xe&&Ua.alternate===null&&t(D,xe),O=d(Ua,O,Ne),Me===null?he=Ua:Me.sibling=Ua,Me=Ua,xe=At}if(qe.done)return a(D,xe),Ve&&lr(D,Ne),he;if(xe===null){for(;!qe.done;Ne++,qe=L.next())qe=Z(D,qe.value,K),qe!==null&&(O=d(qe,O,Ne),Me===null?he=qe:Me.sibling=qe,Me=qe);return Ve&&lr(D,Ne),he}for(xe=o(xe);!qe.done;Ne++,qe=L.next())qe=$(xe,D,Ne,qe.value,K),qe!==null&&(e&&qe.alternate!==null&&xe.delete(qe.key===null?Ne:qe.key),O=d(qe,O,Ne),Me===null?he=qe:Me.sibling=qe,Me=qe);return e&&xe.forEach(function(yw){return t(D,yw)}),Ve&&lr(D,Ne),he}function Ze(D,O,L,K){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),K=i(O,L.props.children),K.return=D,D=K;break e}}else if(O.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===P&&Jh(he)===O.type){a(D,O.sibling),K=i(O,L.props),fo(K,L),K.return=D,D=K;break e}a(D,O);break}else t(D,O);O=O.sibling}L.type===T?(K=ar(L.props.children,D.mode,K,L.key),K.return=D,D=K):(K=gs(L.type,L.key,L.props,null,D.mode,K),fo(K,L),K.return=D,D=K)}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),K=i(O,L.children||[]),K.return=D,D=K;break e}else{a(D,O);break}else t(D,O);O=O.sibling}K=qc(L,D.mode,K),K.return=D,D=K}return x(D);case P:return he=L._init,L=he(L._payload),Ze(D,O,L,K)}if(ne(L))return Te(D,O,L,K);if(ue(L)){if(he=ue(L),typeof he!="function")throw Error(s(150));return L=he.call(L),we(D,O,L,K)}if(typeof L.then=="function")return Ze(D,O,Os(L),K);if(L.$$typeof===k)return Ze(D,O,xs(D,L),K);Ds(D,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,O!==null&&O.tag===6?(a(D,O.sibling),K=i(O,L),K.return=D,D=K):(a(D,O),K=Pc(L,D.mode,K),K.return=D,D=K),x(D)):a(D,O)}return function(D,O,L,K){try{uo=0;var he=Ze(D,O,L,K);return Jr=null,he}catch(xe){if(xe===to||xe===ws)throw xe;var Me=Xt(29,xe,null,D.mode);return Me.lanes=K,Me.return=D,Me}finally{}}}var el=ep(!0),tp=ep(!1),un=V(null),jn=null;function wa(e){var t=e.alternate;I(St,St.current&1),I(un,e),jn===null&&(t===null||Qr.current!==null||t.memoizedState!==null)&&(jn=e)}function np(e){if(e.tag===22){if(I(St,St.current),I(un,e),jn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(jn=e)}}else Ea()}function Ea(){I(St,St.current),I(un,un.current)}function ta(e){F(un),jn===e&&(jn=null),F(St)}var St=V(0);function zs(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==="$?"||ud(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 Su(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var wu={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Ft(),i=ba(o);i.payload=t,a!=null&&(i.callback=a),t=xa(e,i,o),t!==null&&(Wt(t,e,o),ao(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Ft(),i=ba(o);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=xa(e,i,o),t!==null&&(Wt(t,e,o),ao(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ft(),o=ba(a);o.tag=2,t!=null&&(o.callback=t),t=xa(e,o,a),t!==null&&(Wt(t,e,a),ao(t,e,a))}};function ap(e,t,a,o,i,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,d,x):t.prototype&&t.prototype.isPureReactComponent?!Xl(a,o)||!Xl(i,d):!0}function rp(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&wu.enqueueReplaceState(t,t.state,null)}function fr(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}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 Ls=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 lp(e){Ls(e)}function op(e){console.error(e)}function sp(e){Ls(e)}function Us(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function ip(e,t,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Eu(e,t,a){return a=ba(a),a.tag=3,a.payload={element:null},a.callback=function(){Us(e,t)},a}function cp(e){return e=ba(e),e.tag=3,e}function up(e,t,a,o){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var d=o.value;e.payload=function(){return i(d)},e.callback=function(){ip(t,a,o)}}var x=a.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){ip(t,a,o),typeof i!="function"&&(ja===null?ja=new Set([this]):ja.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})})}function yS(e,t,a,o,i){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=a.alternate,t!==null&&Wl(t,a,i,!0),a=un.current,a!==null){switch(a.tag){case 13:return jn===null?Xu():a.alternate===null&&st===0&&(st=3),a.flags&=-257,a.flags|=65536,a.lanes=i,o===Wc?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),Qu(e,o,i)),!1;case 22:return a.flags|=65536,o===Wc?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),Qu(e,o,i)),!1}throw Error(s(435,a.tag))}return Qu(e,o,i),Xu(),!1}if(Ve)return t=un.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==Gc&&(e=Error(s(422),{cause:o}),Fl(ln(e,a)))):(o!==Gc&&(t=Error(s(423),{cause:o}),Fl(ln(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,o=ln(o,a),i=Eu(e.stateNode,o,i),tu(e,i),st!==4&&(st=2)),!1;var d=Error(s(520),{cause:o});if(d=ln(d,a),bo===null?bo=[d]:bo.push(d),st!==4&&(st=2),t===null)return!0;o=ln(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Eu(a.stateNode,o,e),tu(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"&&(ja===null||!ja.has(d))))return a.flags|=65536,i&=-i,a.lanes|=i,i=cp(i),up(i,e,a,o),tu(a,i),!1}a=a.return}while(a!==null);return!1}var dp=Error(s(461)),Rt=!1;function kt(e,t,a,o){t.child=e===null?tp(t,null,a,o):el(t,e.child,a,o)}function fp(e,t,a,o,i){a=a.render;var d=t.ref;if("ref"in o){var x={};for(var w in o)w!=="ref"&&(x[w]=o[w])}else x=o;return cr(t),o=ou(e,t,a,x,d,i),w=su(),e!==null&&!Rt?(iu(e,t,i),na(e,t,i)):(Ve&&w&&Vc(t),t.flags|=1,kt(e,t,o,i),t.child)}function mp(e,t,a,o,i){if(e===null){var d=a.type;return typeof d=="function"&&!$c(d)&&d.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=d,hp(e,t,d,o,i)):(e=gs(a.type,null,o,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!ku(e,i)){var x=d.memoizedProps;if(a=a.compare,a=a!==null?a:Xl,a(x,o)&&e.ref===t.ref)return na(e,t,i)}return t.flags|=1,e=Qn(d,o),e.ref=t.ref,e.return=t,t.child=e}function hp(e,t,a,o,i){if(e!==null){var d=e.memoizedProps;if(Xl(d,o)&&e.ref===t.ref)if(Rt=!1,t.pendingProps=o=d,ku(e,i))(e.flags&131072)!==0&&(Rt=!0);else return t.lanes=e.lanes,na(e,t,i)}return Nu(e,t,a,o,i)}function pp(e,t,a){var o=t.pendingProps,i=o.children,d=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((t.flags&128)!==0){if(o=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&~o}else t.childLanes=0,t.child=null;return gp(e,t,o,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ss(t,d!==null?d.cachePool:null),d!==null?hh(t,d):au(),np(t);else return t.lanes=t.childLanes=536870912,gp(e,t,d!==null?d.baseLanes|a:a,a)}else d!==null?(Ss(t,d.cachePool),hh(t,d),Ea(),t.memoizedState=null):(e!==null&&Ss(t,null),au(),Ea());return kt(e,t,i,a),t.child}function gp(e,t,a,o){var i=Fc();return i=i===null?null:{parent:xt._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&Ss(t,null),au(),np(t),e!==null&&Wl(e,t,o,!0),null}function Bs(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 Nu(e,t,a,o,i){return cr(t),a=ou(e,t,a,o,void 0,i),o=su(),e!==null&&!Rt?(iu(e,t,i),na(e,t,i)):(Ve&&o&&Vc(t),t.flags|=1,kt(e,t,a,i),t.child)}function vp(e,t,a,o,i,d){return cr(t),t.updateQueue=null,a=gh(t,o,a,i),ph(e),o=su(),e!==null&&!Rt?(iu(e,t,d),na(e,t,d)):(Ve&&o&&Vc(t),t.flags|=1,kt(e,t,a,d),t.child)}function yp(e,t,a,o,i){if(cr(t),t.stateNode===null){var d=Yr,x=a.contextType;typeof x=="object"&&x!==null&&(d=Dt(x)),d=new a(o,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=wu,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=o,d.state=t.memoizedState,d.refs={},Jc(t),x=a.contextType,d.context=typeof x=="object"&&x!==null?Dt(x):Yr,d.state=t.memoizedState,x=a.getDerivedStateFromProps,typeof x=="function"&&(Su(t,a,x,o),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&&wu.enqueueReplaceState(d,d.state,null),lo(t,o,d,i),ro(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){d=t.stateNode;var w=t.memoizedProps,j=fr(a,w);d.props=j;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)&&rp(t,d,o,x),ya=!1;var H=t.memoizedState;d.state=H,lo(t,o,d,i),ro(),B=t.memoizedState,w||H!==B||ya?(typeof Z=="function"&&(Su(t,a,Z,o),B=t.memoizedState),(j=ya||ap(t,a,j,o,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=o,t.memoizedState=B),d.props=o,d.state=B,d.context=x,o=j):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{d=t.stateNode,eu(e,t),x=t.memoizedProps,X=fr(a,x),d.props=X,Z=t.pendingProps,H=d.context,B=a.contextType,j=Yr,typeof B=="object"&&B!==null&&(j=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!==j)&&rp(t,d,o,j),ya=!1,H=t.memoizedState,d.state=H,lo(t,o,d,i),ro();var $=t.memoizedState;x!==Z||H!==$||ya||e!==null&&e.dependencies!==null&&bs(e.dependencies)?(typeof w=="function"&&(Su(t,a,w,o),$=t.memoizedState),(X=ya||ap(t,a,X,o,H,$,j)||e!==null&&e.dependencies!==null&&bs(e.dependencies))?(B||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,$,j),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,$,j)),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=o,t.memoizedState=$),d.props=o,d.state=$,d.context=j,o=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),o=!1)}return d=o,Bs(e,t),o=(t.flags&128)!==0,d||o?(d=t.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&o?(t.child=el(t,e.child,null,i),t.child=el(t,null,a,i)):kt(e,t,a,i),t.memoizedState=d.state,e=t.child):e=na(e,t,i),e}function bp(e,t,a,o){return Zl(),t.flags|=256,kt(e,t,a,o),t.child}var Tu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ru(e){return{baseLanes:e,cachePool:oh()}}function Cu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=dn),e}function xp(e,t,a){var o=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(Ve){if(i?wa(t):Ea(),Ve){var w=ot,j;if(j=w){e:{for(j=w,w=An;j.nodeType!==8;){if(!w){w=null;break e}if(j=bn(j.nextSibling),j===null){w=null;break e}}w=j}w!==null?(t.memoizedState={dehydrated:w,treeContext:rr!==null?{id:Zn,overflow:Fn}:null,retryLane:536870912,hydrationErrors:null},j=Xt(18,null,null,0),j.stateNode=w,j.return=t,t.child=j,Ut=t,ot=null,j=!0):j=!1}j||sr(t)}if(w=t.memoizedState,w!==null&&(w=w.dehydrated,w!==null))return ud(w)?t.lanes=32:t.lanes=536870912,null;ta(t)}return w=o.children,o=o.fallback,i?(Ea(),i=t.mode,w=Hs({mode:"hidden",children:w},i),o=ar(o,i,a,null),w.return=t,o.return=t,w.sibling=o,t.child=w,i=t.child,i.memoizedState=Ru(a),i.childLanes=Cu(e,x,a),t.memoizedState=Tu,o):(wa(t),Au(t,w))}if(j=e.memoizedState,j!==null&&(w=j.dehydrated,w!==null)){if(d)t.flags&256?(wa(t),t.flags&=-257,t=ju(e,t,a)):t.memoizedState!==null?(Ea(),t.child=e.child,t.flags|=128,t=null):(Ea(),i=o.fallback,w=t.mode,o=Hs({mode:"visible",children:o.children},w),i=ar(i,w,a,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,el(t,e.child,null,a),o=t.child,o.memoizedState=Ru(a),o.childLanes=Cu(e,x,a),t.memoizedState=Tu,t=i);else if(wa(t),ud(w)){if(x=w.nextSibling&&w.nextSibling.dataset,x)var B=x.dgst;x=B,o=Error(s(419)),o.stack="",o.digest=x,Fl({value:o,source:null,stack:null}),t=ju(e,t,a)}else if(Rt||Wl(e,t,a,!1),x=(a&e.childLanes)!==0,Rt||x){if(x=Je,x!==null&&(o=a&-a,o=(o&42)!==0?1:ht(o),o=(o&(x.suspendedLanes|a))!==0?0:o,o!==0&&o!==j.retryLane))throw j.retryLane=o,Vr(e,o),Wt(x,e,o),dp;w.data==="$?"||Xu(),t=ju(e,t,a)}else w.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,ot=bn(w.nextSibling),Ut=t,Ve=!0,or=null,An=!1,e!==null&&(sn[cn++]=Zn,sn[cn++]=Fn,sn[cn++]=rr,Zn=e.id,Fn=e.overflow,rr=t),t=Au(t,o.children),t.flags|=4096);return t}return i?(Ea(),i=o.fallback,w=t.mode,j=e.child,B=j.sibling,o=Qn(j,{mode:"hidden",children:o.children}),o.subtreeFlags=j.subtreeFlags&65011712,B!==null?i=Qn(B,i):(i=ar(i,w,a,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,w=e.child.memoizedState,w===null?w=Ru(a):(j=w.cachePool,j!==null?(B=xt._currentValue,j=j.parent!==B?{parent:B,pool:B}:j):j=oh(),w={baseLanes:w.baseLanes|a,cachePool:j}),i.memoizedState=w,i.childLanes=Cu(e,x,a),t.memoizedState=Tu,o):(wa(t),a=e.child,e=a.sibling,a=Qn(a,{mode:"visible",children:o.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 Au(e,t){return t=Hs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Hs(e,t){return e=Xt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function ju(e,t,a){return el(t,e.child,null,a),e=Au(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sp(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Xc(e.return,t,a)}function _u(e,t,a,o,i){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:i}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=a,d.tailMode=i)}function wp(e,t,a){var o=t.pendingProps,i=o.revealOrder,d=o.tail;if(kt(e,t,o.children,a),o=St.current,(o&2)!==0)o=o&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&&Sp(e,a,t);else if(e.tag===19)Sp(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}o&=1}switch(I(St,o),i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&zs(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),_u(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&&zs(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}_u(t,!0,a,null,d);break;case"together":_u(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(Wl(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=Qn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Qn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ku(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&bs(e)))}function bS(e,t,a){switch(t.tag){case 3:le(t,t.stateNode.containerInfo),va(t,xt,e.memoizedState.cache),Zl();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 o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(wa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?xp(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(o=(a&t.childLanes)!==0,o||(Wl(e,t,a,!1),o=(a&t.childLanes)!==0),i){if(o)return wp(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),o)break;return null;case 22:case 23:return t.lanes=0,pp(e,t,a);case 24:va(t,xt,e.memoizedState.cache)}return na(e,t,a)}function Ep(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Rt=!0;else{if(!ku(e,a)&&(t.flags&128)===0)return Rt=!1,bS(e,t,a);Rt=(e.flags&131072)!==0}else Rt=!1,Ve&&(t.flags&1048576)!==0&&Jm(t,ys,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var o=t.elementType,i=o._init;if(o=i(o._payload),t.type=o,typeof o=="function")$c(o)?(e=fr(o,e),t.tag=1,t=yp(null,t,o,e,a)):(t.tag=0,t=Nu(null,t,o,e,a));else{if(o!=null){if(i=o.$$typeof,i===U){t.tag=11,t=fp(null,t,o,e,a);break e}else if(i===G){t.tag=14,t=mp(null,t,o,e,a);break e}}throw t=me(o)||o,Error(s(306,t,""))}}return t;case 0:return Nu(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,i=fr(o,t.pendingProps),yp(e,t,o,i,a);case 3:e:{if(le(t,t.stateNode.containerInfo),e===null)throw Error(s(387));o=t.pendingProps;var d=t.memoizedState;i=d.element,eu(e,t),lo(t,o,null,a);var x=t.memoizedState;if(o=x.cache,va(t,xt,o),o!==d.cache&&Kc(t,[xt],a,!0),ro(),o=x.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=bp(e,t,o,a);break e}else if(o!==i){i=ln(Error(s(424)),t),Fl(i),t=bp(e,t,o,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(ot=bn(e.firstChild),Ut=t,Ve=!0,or=null,An=!0,a=tp(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Zl(),o===i){t=na(e,t,a);break e}kt(e,t,o,a)}t=t.child}return t;case 26:return Bs(e,t),e===null?(a=Cg(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ve||(a=t.type,e=t.pendingProps,o=Js(ae.current).createElement(a),o[dt]=t,o[We]=e,Ot(o,a,e),Tt(o),t.stateNode=o):t.memoizedState=Cg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ve(t),e===null&&Ve&&(o=t.stateNode=Ng(t.type,t.pendingProps,ae.current),Ut=t,An=!0,i=ot,Ma(t.type)?(dd=i,ot=bn(o.firstChild)):ot=i),kt(e,t,t.pendingProps.children,a),Bs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ve&&((i=o=ot)&&(o=XS(o,t.type,t.pendingProps,An),o!==null?(t.stateNode=o,Ut=t,ot=bn(o.firstChild),An=!1,i=!0):i=!1),i||sr(t)),ve(t),i=t.type,d=t.pendingProps,x=e!==null?e.memoizedProps:null,o=d.children,sd(i,d)?o=null:x!==null&&sd(i,x)&&(t.flags|=32),t.memoizedState!==null&&(i=ou(e,t,dS,null,null,a),Ao._currentValue=i),Bs(e,t),kt(e,t,o,a),t.child;case 6:return e===null&&Ve&&((e=a=ot)&&(a=KS(a,t.pendingProps,An),a!==null?(t.stateNode=a,Ut=t,ot=null,e=!0):e=!1),e||sr(t)),null;case 13:return xp(e,t,a);case 4:return le(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=el(t,null,o,a):kt(e,t,o,a),t.child;case 11:return fp(e,t,t.type,t.pendingProps,a);case 7:return kt(e,t,t.pendingProps,a),t.child;case 8:return kt(e,t,t.pendingProps.children,a),t.child;case 12:return kt(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.pendingProps,va(t,t.type,o.value),kt(e,t,o.children,a),t.child;case 9:return i=t.type._context,o=t.pendingProps.children,cr(t),i=Dt(i),o=o(i),t.flags|=1,kt(e,t,o,a),t.child;case 14:return mp(e,t,t.type,t.pendingProps,a);case 15:return hp(e,t,t.type,t.pendingProps,a);case 19:return wp(e,t,a);case 31:return o=t.pendingProps,a=t.mode,o={mode:o.mode,children:o.children},e===null?(a=Hs(o,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=Qn(e.child,o),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return pp(e,t,a);case 24:return cr(t),o=Dt(xt),e===null?(i=Fc(),i===null&&(i=Je,d=Qc(),i.pooledCache=d,d.refCount++,d!==null&&(i.pooledCacheLanes|=a),i=d),t.memoizedState={parent:o,cache:i},Jc(t),va(t,xt,i)):((e.lanes&a)!==0&&(eu(e,t),lo(t,null,null,a),ro()),i=e.memoizedState,d=t.memoizedState,i.parent!==o?(i={parent:o,cache:o},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),va(t,xt,o)):(o=d.cache,va(t,xt,o),o!==i.cache&&Kc(t,[xt],a,!0))),kt(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 Np(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Mg(t)){if(t=un.current,t!==null&&((Be&4194048)===Be?jn!==null:(Be&62914560)!==Be&&(Be&536870912)===0||t!==jn))throw no=Wc,sh;e.flags|=8192}}function $s(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?es():536870912,e.lanes|=t,rl|=t)}function mo(e,t){if(!Ve)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 o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function rt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,o|=i.subtreeFlags&65011712,o|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,o|=i.subtreeFlags,o|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function xS(e,t,a){var o=t.pendingProps;switch(Yc(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,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Jn(xt),J(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ql(t)?aa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,nh())),rt(t),null;case 26:return a=t.memoizedState,e===null?(aa(t),a!==null?(rt(t),Np(t,a)):(rt(t),t.flags&=-16777217)):a?a!==e.memoizedState?(aa(t),rt(t),Np(t,a)):(rt(t),t.flags&=-16777217):(e.memoizedProps!==o&&aa(t),rt(t),t.flags&=-16777217),null;case 27:ye(t),a=ae.current;var i=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==o&&aa(t);else{if(!o){if(t.stateNode===null)throw Error(s(166));return rt(t),null}e=W.current,Ql(t)?eh(t):(e=Ng(i,o,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!==o&&aa(t);else{if(!o){if(t.stateNode===null)throw Error(s(166));return rt(t),null}if(e=W.current,Ql(t))eh(t);else{switch(i=Js(ae.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 o.is=="string"?i.createElement("select",{is:o.is}):i.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e=typeof o.is=="string"?i.createElement(a,{is:o.is}):i.createElement(a)}}e[dt]=t,e[We]=o;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,o),a){case"button":case"input":case"select":case"textarea":e=!!o.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!==o&&aa(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(s(166));if(e=ae.current,Ql(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,i=Ut,i!==null)switch(i.tag){case 27:case 5:o=i.memoizedProps}e[dt]=t,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||vg(e.nodeValue,a)),e||sr(t)}else e=Js(e).createTextNode(o),e[dt]=t,t.stateNode=e}return rt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ql(t),o!==null&&o.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 Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;rt(t),i=!1}else i=nh(),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=o!==null,e=e!==null&&e.memoizedState!==null,a){o=t.child,i=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(i=o.alternate.memoizedState.cachePool.pool);var d=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==i&&(o.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),$s(t,t.updateQueue),rt(t),null;case 4:return J(),e===null&&nd(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(o=(t.flags&128)!==0,d=i.rendering,d===null)if(o)mo(i,!1);else{if(st!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=zs(e),d!==null){for(t.flags|=128,mo(i,!1),e=d.updateQueue,t.updateQueue=e,$s(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Wm(a,e),a=a.sibling;return I(St,St.current&1|2),t.child}e=e.sibling}i.tail!==null&&_e()>Vs&&(t.flags|=128,o=!0,mo(i,!1),t.lanes=4194304)}else{if(!o)if(e=zs(d),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,$s(t,e),mo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Ve)return rt(t),null}else 2*_e()-i.renderingStartTime>Vs&&a!==536870912&&(t.flags|=128,o=!0,mo(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,o?e&1|2:e&1),t):(rt(t),null);case 22:case 23:return ta(t),ru(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),a=t.updateQueue,a!==null&&$s(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==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 SS(e,t){switch(Yc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return 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));Zl()}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),ru(),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 Tp(e,t){switch(Yc(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),ru(),e!==null&&F(ur);break;case 24:Jn(xt)}}function ho(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var i=o.next;a=i;do{if((a.tag&e)===e){o=void 0;var d=a.create,x=a.inst;o=d(),x.destroy=o}a=a.next}while(a!==i)}}catch(w){Fe(t,t.return,w)}}function Na(e,t,a){try{var o=t.updateQueue,i=o!==null?o.lastEffect:null;if(i!==null){var d=i.next;o=d;do{if((o.tag&e)===e){var x=o.inst,w=x.destroy;if(w!==void 0){x.destroy=void 0,i=t;var j=a,B=w;try{B()}catch(X){Fe(i,j,X)}}}o=o.next}while(o!==d)}}catch(X){Fe(t,t.return,X)}}function Rp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{mh(t,a)}catch(o){Fe(e,e.return,o)}}}function Cp(e,t,a){a.props=fr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){Fe(e,t,o)}}function po(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof a=="function"?e.refCleanup=a(o):a.current=o}}catch(i){Fe(e,t,i)}}function _n(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{o()}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 Ap(e){var t=e.type,a=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(i){Fe(e,e.return,i)}}function Mu(e,t,a){try{var o=e.stateNode;qS(o,e.type,a,t),o[We]=t}catch(i){Fe(e,e.return,i)}}function jp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ma(e.type)||e.tag===4}function Ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jp(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 Du(e,t,a){var o=e.tag;if(o===5||o===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=Ws));else if(o!==4&&(o===27&&Ma(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Du(e,t,a),e=e.sibling;e!==null;)Du(e,t,a),e=e.sibling}function Ps(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&Ma(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ps(e,t,a),e=e.sibling;e!==null;)Ps(e,t,a),e=e.sibling}function _p(e){var t=e.stateNode,a=e.memoizedProps;try{for(var o=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ot(t,o,a),t[dt]=e,t[We]=a}catch(d){Fe(e,e.return,d)}}var ra=!1,mt=!1,zu=!1,kp=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function wS(e,t){if(e=e.containerInfo,ld=li,e=qm(e),Oc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var i=o.anchorOffset,d=o.focusNode;o=o.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var x=0,w=-1,j=-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||o!==0&&Z.nodeType!==3||(j=x+o),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===o&&(j=x),($=Z.nextSibling)!==null)break;Z=H,H=Z.parentNode}Z=$}a=w===-1||j===-1?null:{start:w,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(od={focusedElem:e,selectionRange:a},li=!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,o=a.stateNode;try{var Te=fr(a.type,i,a.elementType===a.type);e=o.getSnapshotBeforeUpdate(Te,d),o.__reactInternalSnapshotBeforeUpdate=e}catch(we){Fe(a,a.return,we)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)cd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":cd(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 Mp(e,t,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:Ta(e,a),o&4&&ho(5,a);break;case 1:if(Ta(e,a),o&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)}}o&64&&Rp(a),o&512&&po(a,a.return);break;case 3:if(Ta(e,a),o&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{mh(e,t)}catch(x){Fe(a,a.return,x)}}break;case 27:t===null&&o&4&&_p(a);case 26:case 5:Ta(e,a),t===null&&o&4&&Ap(a),o&512&&po(a,a.return);break;case 12:Ta(e,a);break;case 13:Ta(e,a),o&4&&zp(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=kS.bind(null,a),QS(e,a))));break;case 22:if(o=a.memoizedState!==null||ra,!o){t=t!==null&&t.memoizedState!==null||mt,i=ra;var d=mt;ra=o,(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 Op(e){var t=e.alternate;t!==null&&(e.alternate=null,Op(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&hc(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,Pt=!1;function la(e,t,a){for(a=a.child;a!==null;)Dp(e,t,a),a=a.sibling}function Dp(e,t,a){if(be&&typeof be.onCommitFiberUnmount=="function")try{be.onCommitFiberUnmount(Gt,a)}catch{}switch(a.tag){case 26:mt||_n(a,t),la(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:mt||_n(a,t);var o=nt,i=Pt;Ma(a.type)&&(nt=a.stateNode,Pt=!1),la(e,t,a),No(a.stateNode),nt=o,Pt=i;break;case 5:mt||_n(a,t);case 6:if(o=nt,i=Pt,nt=null,la(e,t,a),nt=o,Pt=i,nt!==null)if(Pt)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&&(Pt?(e=nt,wg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Mo(e)):wg(nt,a.stateNode));break;case 4:o=nt,i=Pt,nt=a.stateNode.containerInfo,Pt=!0,la(e,t,a),nt=o,Pt=i;break;case 0:case 11:case 14:case 15:mt||Na(2,a,t),mt||Na(4,a,t),la(e,t,a);break;case 1:mt||(_n(a,t),o=a.stateNode,typeof o.componentWillUnmount=="function"&&Cp(a,t,o)),la(e,t,a);break;case 21:la(e,t,a);break;case 22:mt=(o=mt)||a.memoizedState!==null,la(e,t,a),mt=o;break;default:la(e,t,a)}}function zp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Mo(e)}catch(a){Fe(t,t.return,a)}}function ES(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new kp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new kp),t;default:throw Error(s(435,e.tag))}}function Lu(e,t){var a=ES(e);t.forEach(function(o){var i=MS.bind(null,e,o);a.has(o)||(a.add(o),o.then(i,i))})}function Kt(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var i=a[o],d=e,x=t,w=x;e:for(;w!==null;){switch(w.tag){case 27:if(Ma(w.type)){nt=w.stateNode,Pt=!1;break e}break;case 5:nt=w.stateNode,Pt=!1;break e;case 3:case 4:nt=w.stateNode.containerInfo,Pt=!0;break e}w=w.return}if(nt===null)throw Error(s(160));Dp(d,x,i),nt=null,Pt=!1,d=i.alternate,d!==null&&(d.return=null),i.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Lp(t,e),t=t.sibling}var yn=null;function Lp(e,t){var a=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Kt(t,e),Qt(e),o&4&&(Na(3,e,e.return),ho(3,e),Na(5,e,e.return));break;case 1:Kt(t,e),Qt(e),o&512&&(mt||a===null||_n(a,a.return)),o&64&&ra&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var i=yn;if(Kt(t,e),Qt(e),o&512&&(mt||a===null||_n(a,a.return)),o&4){var d=a!==null?a.memoizedState:null;if(o=e.memoizedState,a===null)if(o===null)if(e.stateNode===null){e:{o=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(o){case"title":d=i.getElementsByTagName("title")[0],(!d||d[Bl]||d[dt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=i.createElement(o),i.head.insertBefore(d,i.querySelector("head > title"))),Ot(d,o,a),d[dt]=e,Tt(d),o=d;break e;case"link":var x=_g("link","href",i).get(o+(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(o),Ot(d,o,a),i.head.appendChild(d);break;case"meta":if(x=_g("meta","content",i).get(o+(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(o),Ot(d,o,a),i.head.appendChild(d);break;default:throw Error(s(468,o))}d[dt]=e,Tt(d),o=d}e.stateNode=o}else kg(i,e.type,e.stateNode);else e.stateNode=jg(i,o,e.memoizedProps);else d!==o?(d===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):d.count--,o===null?kg(i,e.type,e.stateNode):jg(i,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Mu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Kt(t,e),Qt(e),o&512&&(mt||a===null||_n(a,a.return)),a!==null&&o&4&&Mu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Kt(t,e),Qt(e),o&512&&(mt||a===null||_n(a,a.return)),e.flags&32){i=e.stateNode;try{Lr(i,"")}catch($){Fe(e,e.return,$)}}o&4&&e.stateNode!=null&&(i=e.memoizedProps,Mu(e,i,a!==null?a.memoizedProps:i)),o&1024&&(zu=!0);break;case 6:if(Kt(t,e),Qt(e),o&4){if(e.stateNode===null)throw Error(s(162));o=e.memoizedProps,a=e.stateNode;try{a.nodeValue=o}catch($){Fe(e,e.return,$)}}break;case 3:if(ni=null,i=yn,yn=ei(t.containerInfo),Kt(t,e),yn=i,Qt(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Mo(t.containerInfo)}catch($){Fe(e,e.return,$)}zu&&(zu=!1,Up(e));break;case 4:o=yn,yn=ei(e.stateNode.containerInfo),Kt(t,e),Qt(e),yn=o;break;case 12:Kt(t,e),Qt(e);break;case 13:Kt(t,e),Qt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(qu=_e()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Lu(e,o)));break;case 22:i=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,B=ra,X=mt;if(ra=B||i,mt=X||j,Kt(t,e),mt=X,ra=B,Qt(e),o&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||j||ra||mt||mr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){j=a=t;try{if(d=j.stateNode,i)x=d.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{w=j.stateNode;var Z=j.memoizedProps.style,H=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;w.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch($){Fe(j,j.return,$)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=i?"":j.memoizedProps}catch($){Fe(j,j.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}o&4&&(o=e.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,Lu(e,a))));break;case 19:Kt(t,e),Qt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Lu(e,o)));break;case 30:break;case 21:break;default:Kt(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{for(var a,o=e.return;o!==null;){if(jp(o)){a=o;break}o=o.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var i=a.stateNode,d=Ou(e);Ps(e,d,i);break;case 5:var x=a.stateNode;a.flags&32&&(Lr(x,""),a.flags&=-33);var w=Ou(e);Ps(e,w,x);break;case 3:case 4:var j=a.stateNode.containerInfo,B=Ou(e);Du(e,B,j);break;default:throw Error(s(161))}}catch(X){Fe(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Up(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Up(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;)Mp(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:_n(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Cp(t,t.return,a),mr(t);break;case 27:No(t.stateNode);case 26:case 5:_n(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 o=t.alternate,i=e,d=t,x=d.flags;switch(d.tag){case 0:case 11:case 15:Ra(i,d,a),ho(4,d);break;case 1:if(Ra(i,d,a),o=d,i=o.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(B){Fe(o,o.return,B)}if(o=d,i=o.updateQueue,i!==null){var w=o.stateNode;try{var j=i.shared.hiddenCallbacks;if(j!==null)for(i.shared.hiddenCallbacks=null,i=0;i<j.length;i++)fh(j[i],w)}catch(B){Fe(o,o.return,B)}}a&&x&64&&Rp(d),po(d,d.return);break;case 27:_p(d);case 26:case 5:Ra(i,d,a),a&&o===null&&x&4&&Ap(d),po(d,d.return);break;case 12:Ra(i,d,a);break;case 13:Ra(i,d,a),a&&x&4&&zp(i,d);break;case 22:d.memoizedState===null&&Ra(i,d,a),po(d,d.return);break;case 30:break;default:Ra(i,d,a)}t=t.sibling}}function Uu(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&&Jl(a))}function Bu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Jl(e))}function kn(e,t,a,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bp(e,t,a,o),t=t.sibling}function Bp(e,t,a,o){var i=t.flags;switch(t.tag){case 0:case 11:case 15:kn(e,t,a,o),i&2048&&ho(9,t);break;case 1:kn(e,t,a,o);break;case 3:kn(e,t,a,o),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Jl(e)));break;case 12:if(i&2048){kn(e,t,a,o),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(j){Fe(t,t.return,j)}}else kn(e,t,a,o);break;case 13:kn(e,t,a,o);break;case 23:break;case 22:d=t.stateNode,x=t.alternate,t.memoizedState!==null?d._visibility&2?kn(e,t,a,o):go(e,t):d._visibility&2?kn(e,t,a,o):(d._visibility|=2,tl(e,t,a,o,(t.subtreeFlags&10256)!==0)),i&2048&&Uu(x,t);break;case 24:kn(e,t,a,o),i&2048&&Bu(t.alternate,t);break;default:kn(e,t,a,o)}}function tl(e,t,a,o,i){for(i=i&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var d=e,x=t,w=a,j=o,B=x.flags;switch(x.tag){case 0:case 11:case 15:tl(d,x,w,j,i),ho(8,x);break;case 23:break;case 22:var X=x.stateNode;x.memoizedState!==null?X._visibility&2?tl(d,x,w,j,i):go(d,x):(X._visibility|=2,tl(d,x,w,j,i)),i&&B&2048&&Uu(x.alternate,x);break;case 24:tl(d,x,w,j,i),i&&B&2048&&Bu(x.alternate,x);break;default:tl(d,x,w,j,i)}t=t.sibling}}function go(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,o=t,i=o.flags;switch(o.tag){case 22:go(a,o),i&2048&&Uu(o.alternate,o);break;case 24:go(a,o),i&2048&&Bu(o.alternate,o);break;default:go(a,o)}t=t.sibling}}var vo=8192;function nl(e){if(e.subtreeFlags&vo)for(e=e.child;e!==null;)Hp(e),e=e.sibling}function Hp(e){switch(e.tag){case 26:nl(e),e.flags&vo&&e.memoizedState!==null&&iw(yn,e.memoizedState,e.memoizedProps);break;case 5:nl(e);break;case 3:case 4:var t=yn;yn=ei(e.stateNode.containerInfo),nl(e),yn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=vo,vo=16777216,nl(e),vo=t):nl(e));break;default:nl(e)}}function $p(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 yo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];Ct=o,qp(o,e)}$p(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pp(e),e=e.sibling}function Pp(e){switch(e.tag){case 0:case 11:case 15:yo(e),e.flags&2048&&Na(9,e,e.return);break;case 3:yo(e);break;case 12:yo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qs(e)):yo(e);break;default:yo(e)}}function qs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];Ct=o,qp(o,e)}$p(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Na(8,t,t.return),qs(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,qs(t));break;default:qs(t)}e=e.sibling}}function qp(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 o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Jl(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,Ct=o;else e:for(a=e;Ct!==null;){o=Ct;var i=o.sibling,d=o.return;if(Op(o),o===a){Ct=null;break e}if(i!==null){i.return=d,Ct=i;break e}Ct=d}}}var NS={getCacheForType:function(e){var t=Dt(xt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},TS=typeof WeakMap=="function"?WeakMap:Map,Ie=0,Je=null,Oe=null,Be=0,Xe=0,Zt=null,Ca=!1,al=!1,Hu=!1,oa=0,st=0,Aa=0,hr=0,$u=0,dn=0,rl=0,bo=null,qt=null,Pu=!1,qu=0,Vs=1/0,Ys=null,ja=null,Mt=0,_a=null,ll=null,ol=0,Vu=0,Yu=null,Vp=null,xo=0,Gu=null;function Ft(){if((Ie&2)!==0&&Be!==0)return Be&-Be;if(M.T!==null){var e=Xr;return e!==0?e:Wu()}return Wa()}function Yp(){dn===0&&(dn=(Be&536870912)===0||Ve?gn():536870912);var e=un.current;return e!==null&&(e.flags|=32),dn}function Wt(e,t,a){(e===Je&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)&&(sl(e,0),ka(e,Be,dn,!1)),pa(e,a),((Ie&2)===0||e!==Je)&&(e===Je&&((Ie&2)===0&&(hr|=a),st===4&&ka(e,Be,dn,!1)),Mn(e))}function Gp(e,t,a){if((Ie&6)!==0)throw Error(s(327));var o=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Fa(e,t),i=o?AS(e,t):Ku(e,t,!0),d=o;do{if(i===0){al&&!o&&ka(e,t,0,!1);break}else{if(a=e.current.alternate,d&&!RS(a)){i=Ku(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=bo;var j=w.current.memoizedState.isDehydrated;if(j&&(sl(w,x).flags|=256),x=Ku(w,x,!1),x!==2){if(Hu&&!j){w.errorRecoveryDisabledLanes|=d,hr|=d,i=4;break e}d=qt,qt=i,d!==null&&(qt===null?qt=d:qt.push.apply(qt,d))}i=x}if(d=!1,i!==2)continue}}if(i===1){sl(e,0),ka(e,t,0,!0);break}e:{switch(o=e,d=i,d){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:ka(o,t,dn,!Ca);break e;case 2:qt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=qu+300-_e(),10<i)){if(ka(o,t,dn,!Ca),Za(o,0,!0)!==0)break e;o.timeoutHandle=xg(Ip.bind(null,o,a,qt,Ys,Pu,t,dn,hr,rl,Ca,d,2,-0,0),i);break e}Ip(o,a,qt,Ys,Pu,t,dn,hr,rl,Ca,d,0,-0,0)}}break}while(!0);Mn(e)}function Ip(e,t,a,o,i,d,x,w,j,B,X,Z,H,$){if(e.timeoutHandle=-1,Z=t.subtreeFlags,(Z&8192||(Z&16785408)===16785408)&&(Co={stylesheets:null,count:0,unsuspend:sw},Hp(t),Z=cw(),Z!==null)){e.cancelPendingCommit=Z(Jp.bind(null,e,t,d,a,o,i,x,w,j,X,1,H,$)),ka(e,d,x,!B);return}Jp(e,t,d,a,o,i,x,w,j)}function RS(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 o=0;o<a.length;o++){var i=a[o],d=i.getSnapshot;i=i.value;try{if(!It(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 ka(e,t,a,o){t&=~$u,t&=~hr,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var i=t;0<i;){var d=31-ke(i),x=1<<d;o[d]=-1,i&=~x}a!==0&&Re(e,a,t)}function Gs(){return(Ie&6)===0?(So(0),!1):!0}function Iu(){if(Oe!==null){if(Xe===0)var e=Oe.return;else e=Oe,Wn=ir=null,cu(e),Jr=null,uo=0,e=Oe;for(;e!==null;)Tp(e.alternate,e),e=e.return;Oe=null}}function sl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,YS(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Iu(),Je=e,Oe=a=Qn(e.current,null),Be=t,Xe=0,Zt=null,Ca=!1,al=Fa(e,t),Hu=!1,rl=dn=$u=hr=Aa=st=0,qt=bo=null,Pu=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var i=31-ke(o),d=1<<i;t|=e[i],o&=~d}return oa=t,ms(),a}function Xp(e,t){Ae=null,M.H=Ms,t===to||t===ws?(t=uh(),Xe=3):t===sh?(t=uh(),Xe=4):Xe=t===dp?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Zt=t,Oe===null&&(st=1,Us(e,ln(t,e.current)))}function Kp(){var e=M.H;return M.H=Ms,e===null?Ms:e}function Qp(){var e=M.A;return M.A=NS,e}function Xu(){st=4,Ca||(Be&4194048)!==Be&&un.current!==null||(al=!0),(Aa&134217727)===0&&(hr&134217727)===0||Je===null||ka(Je,Be,dn,!1)}function Ku(e,t,a){var o=Ie;Ie|=2;var i=Kp(),d=Qp();(Je!==e||Be!==t)&&(Ys=null,sl(e,t)),t=!1;var x=st;e:do try{if(Xe!==0&&Oe!==null){var w=Oe,j=Zt;switch(Xe){case 8:Iu(),x=6;break e;case 3:case 2:case 9:case 6:un.current===null&&(t=!0);var B=Xe;if(Xe=0,Zt=null,il(e,w,j,B),a&&al){x=0;break e}break;default:B=Xe,Xe=0,Zt=null,il(e,w,j,B)}}CS(),x=st;break}catch(X){Xp(e,X)}while(!0);return t&&e.shellSuspendCounter++,Wn=ir=null,Ie=o,M.H=i,M.A=d,Oe===null&&(Je=null,Be=0,ms()),x}function CS(){for(;Oe!==null;)Zp(Oe)}function AS(e,t){var a=Ie;Ie|=2;var o=Kp(),i=Qp();Je!==e||Be!==t?(Ys=null,Vs=_e()+500,sl(e,t)):al=Fa(e,t);e:do try{if(Xe!==0&&Oe!==null){t=Oe;var d=Zt;t:switch(Xe){case 1:Xe=0,Zt=null,il(e,t,d,1);break;case 2:case 9:if(ih(d)){Xe=0,Zt=null,Fp(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:ih(d)?(Xe=0,Zt=null,Fp(t)):(Xe=0,Zt=null,il(e,t,d,7));break;case 5:var x=null;switch(Oe.tag){case 26:x=Oe.memoizedState;case 5:case 27:var w=Oe;if(!x||Mg(x)){Xe=0,Zt=null;var j=w.sibling;if(j!==null)Oe=j;else{var B=w.return;B!==null?(Oe=B,Is(B)):Oe=null}break t}}Xe=0,Zt=null,il(e,t,d,5);break;case 6:Xe=0,Zt=null,il(e,t,d,6);break;case 8:Iu(),st=6;break e;default:throw Error(s(462))}}jS();break}catch(X){Xp(e,X)}while(!0);return Wn=ir=null,M.H=o,M.A=i,Ie=a,Oe!==null?0:(Je=null,Be=0,ms(),st)}function jS(){for(;Oe!==null&&!Ye();)Zp(Oe)}function Zp(e){var t=Ep(e.alternate,e,oa);e.memoizedProps=e.pendingProps,t===null?Is(e):Oe=t}function Fp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=vp(a,t,t.pendingProps,t.type,void 0,Be);break;case 11:t=vp(a,t,t.pendingProps,t.type.render,t.ref,Be);break;case 5:cu(t);default:Tp(a,t),t=Oe=Wm(t,oa),t=Ep(a,t,oa)}e.memoizedProps=e.pendingProps,t===null?Is(e):Oe=t}function il(e,t,a,o){Wn=ir=null,cu(t),Jr=null,uo=0;var i=t.return;try{if(yS(e,i,t,a,Be)){st=1,Us(e,ln(a,e.current)),Oe=null;return}}catch(d){if(i!==null)throw Oe=i,d;st=1,Us(e,ln(a,e.current)),Oe=null;return}t.flags&32768?(Ve||o===1?e=!0:al||(Be&536870912)!==0?e=!1:(Ca=e=!0,(o===2||o===9||o===3||o===6)&&(o=un.current,o!==null&&o.tag===13&&(o.flags|=16384))),Wp(t,e)):Is(t)}function Is(e){var t=e;do{if((t.flags&32768)!==0){Wp(t,Ca);return}e=t.return;var a=xS(t.alternate,t,oa);if(a!==null){Oe=a;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);st===0&&(st=5)}function Wp(e,t){do{var a=SS(e.alternate,e);if(a!==null){a.flags&=32767,Oe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=a}while(e!==null);st=6,Oe=null}function Jp(e,t,a,o,i,d,x,w,j){e.cancelPendingCommit=null;do Xs();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|=Bc,ts(e,a,d,x,w,j),e===Je&&(Oe=Je=null,Be=0),ll=t,_a=e,ol=a,Vu=d,Yu=i,Vp=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,OS(ha,function(){return rg(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=M.T,M.T=null,i=q.p,q.p=2,x=Ie,Ie|=4;try{wS(e,t,a)}finally{Ie=x,q.p=i,M.T=o}}Mt=1,eg(),tg(),ng()}}function eg(){if(Mt===1){Mt=0;var e=_a,t=ll,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var o=q.p;q.p=2;var i=Ie;Ie|=4;try{Lp(t,e);var d=od,x=qm(e.containerInfo),w=d.focusedElem,j=d.selectionRange;if(x!==w&&w&&w.ownerDocument&&Pm(w.ownerDocument.documentElement,w)){if(j!==null&&Oc(w)){var B=j.start,X=j.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,we=Math.min(j.start,Te),Ze=j.end===void 0?we:Math.min(j.end,Te);!$.extend&&we>Ze&&(x=Ze,Ze=we,we=x);var D=$m(w,we),O=$m(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(),we>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 K=Z[w];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}li=!!ld,od=ld=null}finally{Ie=i,q.p=o,M.T=a}}e.current=t,Mt=2}}function tg(){if(Mt===2){Mt=0;var e=_a,t=ll,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var o=q.p;q.p=2;var i=Ie;Ie|=4;try{Mp(e,t.alternate,t)}finally{Ie=i,q.p=o,M.T=a}}Mt=3}}function ng(){if(Mt===4||Mt===3){Mt=0,vt();var e=_a,t=ll,a=ol,o=Vp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Mt=5:(Mt=0,ll=_a=null,ag(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ja=null),_t(a),t=t.stateNode,be&&typeof be.onCommitFiberRoot=="function")try{be.onCommitFiberRoot(Gt,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=M.T,i=q.p,q.p=2,M.T=null;try{for(var d=e.onRecoverableError,x=0;x<o.length;x++){var w=o[x];d(w.value,{componentStack:w.stack})}}finally{M.T=t,q.p=i}}(ol&3)!==0&&Xs(),Mn(e),i=e.pendingLanes,(a&4194090)!==0&&(i&42)!==0?e===Gu?xo++:(xo=0,Gu=e):xo=0,So(0)}}function ag(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Jl(t)))}function Xs(e){return eg(),tg(),ng(),rg()}function rg(){if(Mt!==5)return!1;var e=_a,t=Vu;Vu=0;var a=_t(ol),o=M.T,i=q.p;try{q.p=32>a?32:a,M.T=null,a=Yu,Yu=null;var d=_a,x=ol;if(Mt=0,ll=_a=null,ol=0,(Ie&6)!==0)throw Error(s(331));var w=Ie;if(Ie|=4,Pp(d.current),Bp(d,d.current,x,a),Ie=w,So(0,!1),be&&typeof be.onPostCommitFiberRoot=="function")try{be.onPostCommitFiberRoot(Gt,d)}catch{}return!0}finally{q.p=i,M.T=o,ag(e,t)}}function lg(e,t,a){t=ln(a,t),t=Eu(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)lg(e,e,a);else for(;t!==null;){if(t.tag===3){lg(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ja===null||!ja.has(o))){e=ln(a,e),a=cp(2),o=xa(t,a,2),o!==null&&(up(a,o,t,e),pa(o,2),Mn(o));break}}t=t.return}}function Qu(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new TS;var i=new Set;o.set(t,i)}else i=o.get(t),i===void 0&&(i=new Set,o.set(t,i));i.has(a)||(Hu=!0,i.add(a),e=_S.bind(null,e,t,a),t.then(e,e))}function _S(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Je===e&&(Be&a)===a&&(st===4||st===3&&(Be&62914560)===Be&&300>_e()-qu?(Ie&2)===0&&sl(e,0):$u|=a,rl===Be&&(rl=0)),Mn(e)}function og(e,t){t===0&&(t=es()),e=Vr(e,t),e!==null&&(pa(e,t),Mn(e))}function kS(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),og(e,a)}function MS(e,t){var a=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(s(314))}o!==null&&o.delete(t),og(e,a)}function OS(e,t){return Ue(e,t)}var Ks=null,cl=null,Zu=!1,Qs=!1,Fu=!1,pr=0;function Mn(e){e!==cl&&e.next===null&&(cl===null?Ks=cl=e:cl=cl.next=e),Qs=!0,Zu||(Zu=!0,zS())}function So(e,t){if(!Fu&&Qs){Fu=!0;do for(var a=!1,o=Ks;o!==null;){if(e!==0){var i=o.pendingLanes;if(i===0)var d=0;else{var x=o.suspendedLanes,w=o.pingedLanes;d=(1<<31-ke(42|e)+1)-1,d&=i&~(x&~w),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,ug(o,d))}else d=Be,d=Za(o,o===Je?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(d&3)===0||Fa(o,d)||(a=!0,ug(o,d));o=o.next}while(a);Fu=!1}}function DS(){sg()}function sg(){Qs=Zu=!1;var e=0;pr!==0&&(VS()&&(e=pr),pr=0);for(var t=_e(),a=null,o=Ks;o!==null;){var i=o.next,d=ig(o,t);d===0?(o.next=null,a===null?Ks=i:a.next=i,i===null&&(cl=a)):(a=o,(e!==0||(d&3)!==0)&&(Qs=!0)),o=i}So(e)}function ig(e,t){for(var a=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var x=31-ke(d),w=1<<x,j=i[x];j===-1?((w&a)===0||(w&o)!==0)&&(i[x]=Ll(w,t)):j<=t&&(e.expiredLanes|=w),d&=~w}if(t=Je,a=Be,a=Za(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===t&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&$e(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Fa(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(o!==null&&$e(o),_t(a)){case 2:case 8:a=Rr;break;case 32:a=ha;break;case 268435456:a=pn;break;default:a=ha}return o=cg.bind(null,e),a=Ue(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&o!==null&&$e(o),e.callbackPriority=2,e.callbackNode=null,2}function cg(e,t){if(Mt!==0&&Mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Xs()&&e.callbackNode!==a)return null;var o=Be;return o=Za(e,e===Je?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Gp(e,o,t),ig(e,_e()),e.callbackNode!=null&&e.callbackNode===a?cg.bind(null,e):null)}function ug(e,t){if(Xs())return null;Gp(e,t,!0)}function zS(){GS(function(){(Ie&6)!==0?Ue(yt,DS):sg()})}function Wu(){return pr===0&&(pr=gn()),pr}function dg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:os(""+e)}function fg(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 LS(e,t,a,o,i){if(t==="submit"&&a&&a.stateNode===i){var d=dg((i[We]||null).action),x=o.submitter;x&&(t=(t=x[We]||null)?dg(t.formAction):x.getAttribute("formAction"),t!==null&&(d=t,x=null));var w=new us("action","action",null,o,i);e.push({event:w,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(pr!==0){var j=x?fg(i,x):new FormData(i);yu(a,{pending:!0,data:j,method:i.method,action:d},null,j)}}else typeof d=="function"&&(w.preventDefault(),j=x?fg(i,x):new FormData(i),yu(a,{pending:!0,data:j,method:i.method,action:d},d,j))},currentTarget:i}]})}}for(var Ju=0;Ju<Uc.length;Ju++){var ed=Uc[Ju],US=ed.toLowerCase(),BS=ed[0].toUpperCase()+ed.slice(1);vn(US,"on"+BS)}vn(Gm,"onAnimationEnd"),vn(Im,"onAnimationIteration"),vn(Xm,"onAnimationStart"),vn("dblclick","onDoubleClick"),vn("focusin","onFocus"),vn("focusout","onBlur"),vn(tS,"onTransitionRun"),vn(nS,"onTransitionStart"),vn(aS,"onTransitionCancel"),vn(Km,"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 wo="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(" "),HS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wo));function mg(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],i=o.event;o=o.listeners;e:{var d=void 0;if(t)for(var x=o.length-1;0<=x;x--){var w=o[x],j=w.instance,B=w.currentTarget;if(w=w.listener,j!==d&&i.isPropagationStopped())break e;d=w,i.currentTarget=B;try{d(i)}catch(X){Ls(X)}i.currentTarget=null,d=j}else for(x=0;x<o.length;x++){if(w=o[x],j=w.instance,B=w.currentTarget,w=w.listener,j!==d&&i.isPropagationStopped())break e;d=w,i.currentTarget=B;try{d(i)}catch(X){Ls(X)}i.currentTarget=null,d=j}}}}function De(e,t){var a=t[jr];a===void 0&&(a=t[jr]=new Set);var o=e+"__bubble";a.has(o)||(hg(t,e,2,!1),a.add(o))}function td(e,t,a){var o=0;t&&(o|=4),hg(a,e,o,t)}var Zs="_reactListening"+Math.random().toString(36).slice(2);function nd(e){if(!e[Zs]){e[Zs]=!0,sm.forEach(function(a){a!=="selectionchange"&&(HS.has(a)||td(a,!1,e),td(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zs]||(t[Zs]=!0,td("selectionchange",!1,t))}}function hg(e,t,a,o){switch(Bg(t)){case 2:var i=fw;break;case 8:i=mw;break;default:i=gd}a=i.bind(null,t,a,e),i=void 0,!Nc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),o?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 ad(e,t,a,o,i){var d=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var x=o.tag;if(x===3||x===4){var w=o.stateNode.containerInfo;if(w===i)break;if(x===4)for(x=o.return;x!==null;){var j=x.tag;if((j===3||j===4)&&x.stateNode.containerInfo===i)return;x=x.return}for(;w!==null;){if(x=_r(w),x===null)return;if(j=x.tag,j===5||j===6||j===26||j===27){o=d=x;continue e}w=w.parentNode}}o=o.return}Sm(function(){var B=d,X=wc(a),Z=[];e:{var H=Qm.get(e);if(H!==void 0){var $=us,Te=e;switch(e){case"keypress":if(is(a)===0)break e;case"keydown":case"keyup":$=O1;break;case"focusin":Te="focus",$=Ac;break;case"focusout":Te="blur",$=Ac;break;case"beforeblur":case"afterblur":$=Ac;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=Nm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=S1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=L1;break;case Gm:case Im:case Xm:$=N1;break;case Km:$=B1;break;case"scroll":case"scrollend":$=b1;break;case"wheel":$=$1;break;case"copy":case"cut":case"paste":$=R1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=Rm;break;case"toggle":case"beforetoggle":$=q1}var we=(t&4)!==0,Ze=!we&&(e==="scroll"||e==="scrollend"),D=we?H!==null?H+"Capture":null:H;we=[];for(var O=B,L;O!==null;){var K=O;if(L=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||L===null||D===null||(K=$l(O,D),K!=null&&we.push(Eo(O,K,L))),Ze)break;O=O.return}0<we.length&&(H=new $(H,Te,null,a,X),Z.push({event:H,listeners:we}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",H&&a!==Sc&&(Te=a.relatedTarget||a.fromElement)&&(_r(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?_r(Te):null,Te!==null&&(Ze=u(Te),we=Te.tag,Te!==Ze||we!==5&&we!==27&&we!==6)&&(Te=null)):($=null,Te=B),$!==Te)){if(we=Nm,K="onMouseLeave",D="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(we=Rm,K="onPointerLeave",D="onPointerEnter",O="pointer"),Ze=$==null?H:Hl($),L=Te==null?H:Hl(Te),H=new we(K,O+"leave",$,a,X),H.target=Ze,H.relatedTarget=L,K=null,_r(X)===B&&(we=new we(D,O+"enter",Te,a,X),we.target=L,we.relatedTarget=Ze,K=we),Ze=K,$&&Te)t:{for(we=$,D=Te,O=0,L=we;L;L=ul(L))O++;for(L=0,K=D;K;K=ul(K))L++;for(;0<O-L;)we=ul(we),O--;for(;0<L-O;)D=ul(D),L--;for(;O--;){if(we===D||D!==null&&we===D.alternate)break t;we=ul(we),D=ul(D)}we=null}else we=null;$!==null&&pg(Z,H,$,we,!1),Te!==null&&Ze!==null&&pg(Z,Ze,Te,we,!0)}}e:{if(H=B?Hl(B):window,$=H.nodeName&&H.nodeName.toLowerCase(),$==="select"||$==="input"&&H.type==="file")var he=Dm;else if(Mm(H))if(zm)he=W1;else{he=Z1;var Me=Q1}else $=H.nodeName,!$||$.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?B&&xc(B.elementType)&&(he=Dm):he=F1;if(he&&(he=he(e,B))){Om(Z,he,a,X);break e}Me&&Me(e,H,B),e==="focusout"&&B&&H.type==="number"&&B.memoizedProps.value!=null&&bc(H,"number",H.value)}switch(Me=B?Hl(B):window,e){case"focusin":(Mm(Me)||Me.contentEditable==="true")&&($r=Me,Dc=B,Kl=null);break;case"focusout":Kl=Dc=$r=null;break;case"mousedown":zc=!0;break;case"contextmenu":case"mouseup":case"dragend":zc=!1,Vm(Z,a,X);break;case"selectionchange":if(eS)break;case"keydown":case"keyup":Vm(Z,a,X)}var xe;if(_c)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?_m(e,a)&&(Ne="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ne="onCompositionStart");Ne&&(Cm&&a.locale!=="ko"&&(Hr||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&Hr&&(xe=wm()):(ga=X,Tc="value"in ga?ga.value:ga.textContent,Hr=!0)),Me=Fs(B,Ne),0<Me.length&&(Ne=new Tm(Ne,e,null,a,X),Z.push({event:Ne,listeners:Me}),xe?Ne.data=xe:(xe=km(a),xe!==null&&(Ne.data=xe)))),(xe=Y1?G1(e,a):I1(e,a))&&(Ne=Fs(B,"onBeforeInput"),0<Ne.length&&(Me=new Tm("onBeforeInput","beforeinput",null,a,X),Z.push({event:Me,listeners:Ne}),Me.data=xe)),LS(Z,e,B,a,X)}mg(Z,t)})}function Eo(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Fs(e,t){for(var a=t+"Capture",o=[];e!==null;){var i=e,d=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||d===null||(i=$l(e,a),i!=null&&o.unshift(Eo(e,i,d)),i=$l(e,t),i!=null&&o.push(Eo(e,i,d))),e.tag===3)return o;e=e.return}return[]}function ul(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function pg(e,t,a,o,i){for(var d=t._reactName,x=[];a!==null&&a!==o;){var w=a,j=w.alternate,B=w.stateNode;if(w=w.tag,j!==null&&j===o)break;w!==5&&w!==26&&w!==27||B===null||(j=B,i?(B=$l(a,d),B!=null&&x.unshift(Eo(a,B,j))):i||(B=$l(a,d),B!=null&&x.push(Eo(a,B,j)))),a=a.return}x.length!==0&&e.push({event:t,listeners:x})}var $S=/\r\n?/g,PS=/\u0000|\uFFFD/g;function gg(e){return(typeof e=="string"?e:""+e).replace($S,`
|
|
50
|
+
`).replace(PS,"")}function vg(e,t){return t=gg(t),gg(e)===t}function Ws(){}function Qe(e,t,a,o,i,d){switch(a){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||Lr(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&Lr(e,""+o);break;case"className":as(e,"class",o);break;case"tabIndex":as(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":as(e,a,o);break;case"style":bm(e,o,d);break;case"data":if(t!=="object"){as(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=os(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="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"&&Qe(e,t,"name",i.name,i,null),Qe(e,t,"formEncType",i.formEncType,i,null),Qe(e,t,"formMethod",i.formMethod,i,null),Qe(e,t,"formTarget",i.formTarget,i,null)):(Qe(e,t,"encType",i.encType,i,null),Qe(e,t,"method",i.method,i,null),Qe(e,t,"target",i.target,i,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=os(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=Ws);break;case"onScroll":o!=null&&De("scroll",e);break;case"onScrollEnd":o!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(a=o.__html,a!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}a=os(""+o),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":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""+o):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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":De("beforetoggle",e),De("toggle",e),ns(e,"popover",o);break;case"xlinkActuate":Xn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Xn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Xn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Xn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Xn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Xn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ns(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=v1.get(a)||a,ns(e,a,o))}}function rd(e,t,a,o,i,d){switch(a){case"style":bm(e,o,d);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(a=o.__html,a!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof o=="string"?Lr(e,o):(typeof o=="number"||typeof o=="bigint")&&Lr(e,""+o);break;case"onScroll":o!=null&&De("scroll",e);break;case"onScrollEnd":o!=null&&De("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Ws);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!im.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(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 o=="function")){typeof d!="function"&&d!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,i);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):ns(e,a,o)}}}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":De("error",e),De("load",e);var o=!1,i=!1,d;for(d in a)if(a.hasOwnProperty(d)){var x=a[d];if(x!=null)switch(d){case"src":o=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Qe(e,t,d,x,a,null)}}i&&Qe(e,t,"srcSet",a.srcSet,a,null),o&&Qe(e,t,"src",a.src,a,null);return;case"input":De("invalid",e);var w=d=x=i=null,j=null,B=null;for(o in a)if(a.hasOwnProperty(o)){var X=a[o];if(X!=null)switch(o){case"name":i=X;break;case"type":x=X;break;case"checked":j=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:Qe(e,t,o,X,a,null)}}pm(e,d,w,j,B,x,i,!1),rs(e);return;case"select":De("invalid",e),o=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":o=w;default:Qe(e,t,i,w,a,null)}t=d,a=x,e.multiple=!!o,t!=null?zr(e,!!o,t,!1):a!=null&&zr(e,!!o,a,!0);return;case"textarea":De("invalid",e),d=i=o=null;for(x in a)if(a.hasOwnProperty(x)&&(w=a[x],w!=null))switch(x){case"value":o=w;break;case"defaultValue":i=w;break;case"children":d=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(s(91));break;default:Qe(e,t,x,w,a,null)}vm(e,o,i,d),rs(e);return;case"option":for(j in a)if(a.hasOwnProperty(j)&&(o=a[j],o!=null))switch(j){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Qe(e,t,j,o,a,null)}return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(o=0;o<wo.length;o++)De(wo[o],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("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)&&(o=a[B],o!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Qe(e,t,B,o,a,null)}return;default:if(xc(t)){for(X in a)a.hasOwnProperty(X)&&(o=a[X],o!==void 0&&rd(e,t,X,o,a,void 0));return}}for(w in a)a.hasOwnProperty(w)&&(o=a[w],o!=null&&Qe(e,t,w,o,a,null))}function qS(e,t,a,o){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,j=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":j=Z;default:o.hasOwnProperty($)||Qe(e,t,$,null,o,Z)}}for(var H in o){var $=o[H];if(Z=a[H],o.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&&Qe(e,t,H,$,o,Z)}}yc(e,x,w,j,B,X,d,i);return;case"select":$=x=w=H=null;for(d in a)if(j=a[d],a.hasOwnProperty(d)&&j!=null)switch(d){case"value":break;case"multiple":$=j;default:o.hasOwnProperty(d)||Qe(e,t,d,null,o,j)}for(i in o)if(d=o[i],j=a[i],o.hasOwnProperty(i)&&(d!=null||j!=null))switch(i){case"value":H=d;break;case"defaultValue":w=d;break;case"multiple":x=d;default:d!==j&&Qe(e,t,i,d,o,j)}t=w,a=x,o=$,H!=null?zr(e,!!a,H,!1):!!o!=!!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&&!o.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Qe(e,t,w,null,o,i)}for(x in o)if(i=o[x],d=a[x],o.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&&Qe(e,t,x,i,o,d)}gm(e,H,$);return;case"option":for(var Te in a)if(H=a[Te],a.hasOwnProperty(Te)&&H!=null&&!o.hasOwnProperty(Te))switch(Te){case"selected":e.selected=!1;break;default:Qe(e,t,Te,null,o,H)}for(j in o)if(H=o[j],$=a[j],o.hasOwnProperty(j)&&H!==$&&(H!=null||$!=null))switch(j){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Qe(e,t,j,H,o,$)}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 we in a)H=a[we],a.hasOwnProperty(we)&&H!=null&&!o.hasOwnProperty(we)&&Qe(e,t,we,null,o,H);for(B in o)if(H=o[B],$=a[B],o.hasOwnProperty(B)&&H!==$&&(H!=null||$!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:Qe(e,t,B,H,o,$)}return;default:if(xc(t)){for(var Ze in a)H=a[Ze],a.hasOwnProperty(Ze)&&H!==void 0&&!o.hasOwnProperty(Ze)&&rd(e,t,Ze,void 0,o,H);for(X in o)H=o[X],$=a[X],!o.hasOwnProperty(X)||H===$||H===void 0&&$===void 0||rd(e,t,X,H,o,$);return}}for(var D in a)H=a[D],a.hasOwnProperty(D)&&H!=null&&!o.hasOwnProperty(D)&&Qe(e,t,D,null,o,H);for(Z in o)H=o[Z],$=a[Z],!o.hasOwnProperty(Z)||H===$||H==null&&$==null||Qe(e,t,Z,H,o,$)}var ld=null,od=null;function Js(e){return e.nodeType===9?e:e.ownerDocument}function yg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function bg(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function sd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var id=null;function VS(){var e=window.event;return e&&e.type==="popstate"?e===id?!1:(id=e,!0):(id=null,!1)}var xg=typeof setTimeout=="function"?setTimeout:void 0,YS=typeof clearTimeout=="function"?clearTimeout:void 0,Sg=typeof Promise=="function"?Promise:void 0,GS=typeof queueMicrotask=="function"?queueMicrotask:typeof Sg<"u"?function(e){return Sg.resolve(null).then(e).catch(IS)}:xg;function IS(e){setTimeout(function(){throw e})}function Ma(e){return e==="head"}function wg(e,t){var a=t,o=0,i=0;do{var d=a.nextSibling;if(e.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"){if(0<o&&8>o){a=o;var x=e.ownerDocument;if(a&1&&No(x.documentElement),a&2&&No(x.body),a&4)for(a=x.head,No(a),x=a.firstChild;x;){var w=x.nextSibling,j=x.nodeName;x[Bl]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&x.rel.toLowerCase()==="stylesheet"||a.removeChild(x),x=w}}if(i===0){e.removeChild(d),Mo(t);return}i--}else a==="$"||a==="$?"||a==="$!"?i++:o=a.charCodeAt(0)-48;else o=0;a=d}while(a);Mo(t)}function cd(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":cd(a),hc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function XS(e,t,a,o){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Bl])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 KS(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 ud(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function QS(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}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 dd=null;function Eg(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 Ng(e,t,a){switch(t=Js(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 No(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);hc(e)}var fn=new Map,Tg=new Set;function ei(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sa=q.d;q.d={f:ZS,r:FS,D:WS,C:JS,L:ew,m:tw,X:aw,S:nw,M:rw};function ZS(){var e=sa.f(),t=Gs();return e||t}function FS(e){var t=kr(e);t!==null&&t.tag===5&&t.type==="form"?Gh(t):sa.r(e)}var dl=typeof document>"u"?null:document;function Rg(e,t,a){var o=dl;if(o&&typeof t=="string"&&t){var i=rn(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),Tg.has(i)||(Tg.add(i),e={rel:e,crossOrigin:a,href:t},o.querySelector(i)===null&&(t=o.createElement("link"),Ot(t,"link",e),Tt(t),o.head.appendChild(t)))}}function WS(e){sa.D(e),Rg("dns-prefetch",e,null)}function JS(e,t){sa.C(e,t),Rg("preconnect",e,t)}function ew(e,t,a){sa.L(e,t,a);var o=dl;if(o&&e&&t){var i='link[rel="preload"][as="'+rn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+rn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+rn(a.imageSizes)+'"]')):i+='[href="'+rn(e)+'"]';var d=i;switch(t){case"style":d=fl(e);break;case"script":d=ml(e)}fn.has(d)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),fn.set(d,e),o.querySelector(i)!==null||t==="style"&&o.querySelector(To(d))||t==="script"&&o.querySelector(Ro(d))||(t=o.createElement("link"),Ot(t,"link",e),Tt(t),o.head.appendChild(t)))}}function tw(e,t){sa.m(e,t);var a=dl;if(a&&e){var o=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+rn(o)+'"][href="'+rn(e)+'"]',d=i;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=ml(e)}if(!fn.has(d)&&(e=b({rel:"modulepreload",href:e},t),fn.set(d,e),a.querySelector(i)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ro(d)))return}o=a.createElement("link"),Ot(o,"link",e),Tt(o),a.head.appendChild(o)}}}function nw(e,t,a){sa.S(e,t,a);var o=dl;if(o&&e){var i=Mr(o).hoistableStyles,d=fl(e);t=t||"default";var x=i.get(d);if(!x){var w={loading:0,preload:null};if(x=o.querySelector(To(d)))w.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=fn.get(d))&&fd(e,a);var j=x=o.createElement("link");Tt(j),Ot(j,"link",e),j._p=new Promise(function(B,X){j.onload=B,j.onerror=X}),j.addEventListener("load",function(){w.loading|=1}),j.addEventListener("error",function(){w.loading|=2}),w.loading|=4,ti(x,t,o)}x={type:"stylesheet",instance:x,count:1,state:w},i.set(d,x)}}}function aw(e,t){sa.X(e,t);var a=dl;if(a&&e){var o=Mr(a).hoistableScripts,i=ml(e),d=o.get(i);d||(d=a.querySelector(Ro(i)),d||(e=b({src:e,async:!0},t),(t=fn.get(i))&&md(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},o.set(i,d))}}function rw(e,t){sa.M(e,t);var a=dl;if(a&&e){var o=Mr(a).hoistableScripts,i=ml(e),d=o.get(i);d||(d=a.querySelector(Ro(i)),d||(e=b({src:e,async:!0,type:"module"},t),(t=fn.get(i))&&md(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},o.set(i,d))}}function Cg(e,t,a,o){var i=(i=ae.current)?ei(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=fl(a.href),a=Mr(i).hoistableStyles,o=a.get(t),o||(o={type:"style",instance:null,count:0,state:null},a.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=fl(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(To(e)))&&!d._p&&(x.instance=d,x.state.loading=5),fn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},fn.set(e,a),d||lw(i,e,a,x.state))),t&&o===null)throw Error(s(528,""));return x}if(t&&o!==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=ml(a),a=Mr(i).hoistableScripts,o=a.get(t),o||(o={type:"script",instance:null,count:0,state:null},a.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function fl(e){return'href="'+rn(e)+'"'}function To(e){return'link[rel="stylesheet"]['+e+"]"}function Ag(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function lw(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),Ot(t,"link",a),Tt(t),e.head.appendChild(t))}function ml(e){return'[src="'+rn(e)+'"]'}function Ro(e){return"script[async]"+e}function jg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+rn(a.href)+'"]');if(o)return t.instance=o,Tt(o),o;var i=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Tt(o),Ot(o,"style",i),ti(o,a.precedence,e),t.instance=o;case"stylesheet":i=fl(a.href);var d=e.querySelector(To(i));if(d)return t.state.loading|=4,t.instance=d,Tt(d),d;o=Ag(a),(i=fn.get(i))&&fd(o,i),d=(e.ownerDocument||e).createElement("link"),Tt(d);var x=d;return x._p=new Promise(function(w,j){x.onload=w,x.onerror=j}),Ot(d,"link",o),t.state.loading|=4,ti(d,a.precedence,e),t.instance=d;case"script":return d=ml(a.src),(i=e.querySelector(Ro(d)))?(t.instance=i,Tt(i),i):(o=a,(i=fn.get(d))&&(o=b({},a),md(o,i)),e=e.ownerDocument||e,i=e.createElement("script"),Tt(i),Ot(i,"link",o),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&&(o=t.instance,t.state.loading|=4,ti(o,a.precedence,e));return t.instance}function ti(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=o.length?o[o.length-1]:null,d=i,x=0;x<o.length;x++){var w=o[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 fd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function md(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ni=null;function _g(e,t,a){if(ni===null){var o=new Map,i=ni=new Map;i.set(a,o)}else i=ni,o=i.get(a),o||(o=new Map,i.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var d=a[i];if(!(d[Bl]||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=o.get(x);w?w.push(d):o.set(x,[d])}}return o}function kg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function ow(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 Mg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Co=null;function sw(){}function iw(e,t,a){if(Co===null)throw Error(s(475));var o=Co;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var i=fl(a.href),d=e.querySelector(To(i));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=ai.bind(o),e.then(o,o)),t.state.loading|=4,t.instance=d,Tt(d);return}d=e.ownerDocument||e,a=Ag(a),(i=fn.get(i))&&fd(a,i),d=d.createElement("link"),Tt(d);var x=d;x._p=new Promise(function(w,j){x.onload=w,x.onerror=j}),Ot(d,"link",a),t.instance=d}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(o.count++,t=ai.bind(o),e.addEventListener("load",t),e.addEventListener("error",t))}}function cw(){if(Co===null)throw Error(s(475));var e=Co;return e.stylesheets&&e.count===0&&hd(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&hd(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function ai(){if(this.count--,this.count===0){if(this.stylesheets)hd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ri=null;function hd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ri=new Map,t.forEach(uw,e),ri=null,ai.call(e))}function uw(e,t){if(!(t.state.loading&4)){var a=ri.get(e);if(a)var o=a.get(null);else{a=new Map,ri.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),o=x)}o&&a.set(null,o)}i=t.instance,x=i.getAttribute("data-precedence"),d=a.get(x)||o,d===o&&a.set(null,i),a.set(x,i),this.count++,o=ai.bind(this),i.addEventListener("load",o),i.addEventListener("error",o),d?d.parentNode.insertBefore(i,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Ao={$$typeof:k,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function dw(e,t,a,o,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=Ul(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ul(0),this.hiddenUpdates=Ul(null),this.identifierPrefix=o,this.onUncaughtError=i,this.onCaughtError=d,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function Og(e,t,a,o,i,d,x,w,j,B,X,Z){return e=new dw(e,t,a,x,w,j,B,Z),t=1,d===!0&&(t|=24),d=Xt(3,null,null,t),e.current=d,d.stateNode=e,t=Qc(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:o,isDehydrated:a,cache:t},Jc(d),e}function Dg(e){return e?(e=Yr,e):Yr}function zg(e,t,a,o,i,d){i=Dg(i),o.context===null?o.context=i:o.pendingContext=i,o=ba(t),o.payload={element:a},d=d===void 0?null:d,d!==null&&(o.callback=d),a=xa(e,o,t),a!==null&&(Wt(a,e,t),ao(a,e,t))}function Lg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function pd(e,t){Lg(e,t),(e=e.alternate)&&Lg(e,t)}function Ug(e){if(e.tag===13){var t=Vr(e,67108864);t!==null&&Wt(t,e,67108864),pd(e,67108864)}}var li=!0;function fw(e,t,a,o){var i=M.T;M.T=null;var d=q.p;try{q.p=2,gd(e,t,a,o)}finally{q.p=d,M.T=i}}function mw(e,t,a,o){var i=M.T;M.T=null;var d=q.p;try{q.p=8,gd(e,t,a,o)}finally{q.p=d,M.T=i}}function gd(e,t,a,o){if(li){var i=vd(o);if(i===null)ad(e,t,o,oi,a),Hg(e,o);else if(pw(i,e,t,a,o))o.stopPropagation();else if(Hg(e,o),t&4&&-1<hw.indexOf(e)){for(;i!==null;){var d=kr(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 j=1<<31-ke(x);w.entanglements[1]|=j,x&=~j}Mn(d),(Ie&6)===0&&(Vs=_e()+500,So(0))}}break;case 13:w=Vr(d,2),w!==null&&Wt(w,d,2),Gs(),pd(d,2)}if(d=vd(o),d===null&&ad(e,t,o,oi,a),d===i)break;i=d}i!==null&&o.stopPropagation()}else ad(e,t,o,null,a)}}function vd(e){return e=wc(e),yd(e)}var oi=null;function yd(e){if(oi=null,e=_r(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 oi=e,null}function Bg(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(Bt()){case yt:return 2;case Rr:return 8;case ha:case jt:return 32;case pn:return 268435456;default:return 32}default:return 32}}var bd=!1,Oa=null,Da=null,za=null,jo=new Map,_o=new Map,La=[],hw="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 Hg(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":jo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_o.delete(t.pointerId)}}function ko(e,t,a,o,i,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:d,targetContainers:[i]},t!==null&&(t=kr(t),t!==null&&Ug(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function pw(e,t,a,o,i){switch(t){case"focusin":return Oa=ko(Oa,e,t,a,o,i),!0;case"dragenter":return Da=ko(Da,e,t,a,o,i),!0;case"mouseover":return za=ko(za,e,t,a,o,i),!0;case"pointerover":var d=i.pointerId;return jo.set(d,ko(jo.get(d)||null,e,t,a,o,i)),!0;case"gotpointercapture":return d=i.pointerId,_o.set(d,ko(_o.get(d)||null,e,t,a,o,i)),!0}return!1}function $g(e){var t=_r(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 o=Ft();o=ht(o);var i=Vr(a,o);i!==null&&Wt(i,a,o),pd(a,o)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function si(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=vd(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);Sc=o,a.target.dispatchEvent(o),Sc=null}else return t=kr(a),t!==null&&Ug(t),e.blockedOn=a,!1;t.shift()}return!0}function Pg(e,t,a){si(e)&&a.delete(t)}function gw(){bd=!1,Oa!==null&&si(Oa)&&(Oa=null),Da!==null&&si(Da)&&(Da=null),za!==null&&si(za)&&(za=null),jo.forEach(Pg),_o.forEach(Pg)}function ii(e,t){e.blockedOn===t&&(e.blockedOn=null,bd||(bd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,gw)))}var ci=null;function qg(e){ci!==e&&(ci=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ci===e&&(ci=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],i=e[t+2];if(typeof o!="function"){if(yd(o||a)===null)continue;break}var d=kr(a);d!==null&&(e.splice(t,3),t-=3,yu(d,{pending:!0,data:i,method:a.method,action:o},o,i))}}))}function Mo(e){function t(j){return ii(j,e)}Oa!==null&&ii(Oa,e),Da!==null&&ii(Da,e),za!==null&&ii(za,e),jo.forEach(t),_o.forEach(t);for(var a=0;a<La.length;a++){var o=La[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<La.length&&(a=La[0],a.blockedOn===null);)$g(a),a.blockedOn===null&&La.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var i=a[o],d=a[o+1],x=i[We]||null;if(typeof d=="function")x||qg(a);else if(x){var w=null;if(d&&d.hasAttribute("formAction")){if(i=d,x=d[We]||null)w=x.formAction;else if(yd(i)!==null)continue}else w=x.action;typeof w=="function"?a[o+1]=w:(a.splice(o,3),o-=3),qg(a)}}}function xd(e){this._internalRoot=e}ui.prototype.render=xd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,o=Ft();zg(a,o,e,t,null,null)},ui.prototype.unmount=xd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zg(e.current,2,null,e,null,null),Gs(),t[Nt]=null}};function ui(e){this._internalRoot=e}ui.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&&$g(e)}};var Vg=r.version;if(Vg!=="19.1.0")throw Error(s(527,Vg,"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=v(t),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var vw={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var di=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!di.isDisabled&&di.supportsFiber)try{Gt=di.inject(vw),be=di}catch{}}return Do.createRoot=function(e,t){if(!c(e))throw Error(s(299));var a=!1,o="",i=lp,d=op,x=sp,w=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=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=Og(e,1,!1,null,null,a,o,i,d,x,w,null),e[Nt]=t.current,nd(e),new xd(t)},Do.hydrateRoot=function(e,t,a){if(!c(e))throw Error(s(299));var o=!1,i="",d=lp,x=op,w=sp,j=null,B=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!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&&(j=a.unstable_transitionCallbacks),a.formState!==void 0&&(B=a.formState)),t=Og(e,1,!0,t,a??null,o,i,d,x,w,j,B),t.context=Dg(null),a=t.current,o=Ft(),o=ht(o),i=ba(o),i.callback=null,xa(a,i,o),a=o,t.current.lanes=a,pa(t,a),Mn(t),e[Nt]=t.current,nd(e),new ui(t)},Do.version="19.1.0",Do}var Jg;function jw(){if(Jg)return Ed.exports;Jg=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(),Ed.exports=Aw(),Ed.exports}var _w=jw();const kw="modulepreload",Mw=function(n){return"/"+n},ev={},u0=function(r,l,s){let c=Promise.resolve();if(l&&l.length>0){let m=function(p){return Promise.all(p.map(b=>Promise.resolve(b).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),v=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));c=m(l.map(p=>{if(p=Mw(p),p in ev)return;ev[p]=!0;const b=p.endsWith(".css"),y=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const S=document.createElement("link");if(S.rel=b?"stylesheet":kw,b||(S.as="script"),S.crossOrigin="",S.href=p,v&&S.setAttribute("nonce",v),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 tv="popstate";function nv(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function Ow(n={}){function r(s,c){var p;let u=(p=c.state)==null?void 0:p.masked,{pathname:m,search:h,hash:v}=u||s.location;return Zd("",{pathname:m,search:h,hash:v},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 l(s,c){return typeof c=="string"?c:Go(c)}return zw(r,l,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 Dw(){return Math.random().toString(36).substring(2,10)}function av(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 Zd(n,r,l=null,s,c){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?Cl(r):r,state:l,key:r&&r.key||s||Dw(),unstable_mask:c}}function Go({pathname:n="/",search:r="",hash:l=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),l&&l!=="#"&&(n+=l.charAt(0)==="#"?l:"#"+l),n}function Cl(n){let r={};if(n){let l=n.indexOf("#");l>=0&&(r.hash=n.substring(l),n=n.substring(0,l));let s=n.indexOf("?");s>=0&&(r.search=n.substring(s),n=n.substring(0,s)),n&&(r.pathname=n)}return r}function zw(n,r,l,s={}){let{window:c=document.defaultView,v5Compat:u=!1}=s,m=c.history,h="POP",v=null,p=b();p==null&&(p=0,m.replaceState({...m.state,idx:p},""));function b(){return(m.state||{idx:null}).idx}function y(){h="POP";let R=b(),A=R==null?null:R-p;p=R,v&&v({action:h,location:E.location,delta:A})}function S(R,A){h="PUSH";let _=nv(R)?R:Zd(E.location,R,A);p=b()+1;let k=av(_,p),U=E.createHref(_.unstable_mask||_);try{m.pushState(k,"",U)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;c.location.assign(U)}u&&v&&v({action:h,location:E.location,delta:1})}function N(R,A){h="REPLACE";let _=nv(R)?R:Zd(E.location,R,A);p=b();let k=av(_,p),U=E.createHref(_.unstable_mask||_);m.replaceState(k,"",U),u&&v&&v({action:h,location:E.location,delta:0})}function T(R){return Lw(R)}let E={get action(){return h},get location(){return n(c,m)},listen(R){if(v)throw new Error("A history only accepts one active listener");return c.addEventListener(tv,y),v=R,()=>{c.removeEventListener(tv,y),v=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 Lw(n,r=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),at(l,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:Go(n);return s=s.replace(/ $/,"%20"),!r&&s.startsWith("//")&&(s=l+s),new URL(s,l)}function d0(n,r,l="/"){return Uw(n,r,l,!1)}function Uw(n,r,l,s){let c=typeof r=="string"?Cl(r):r,u=ca(c.pathname||"/",l);if(u==null)return null;let m=f0(n);Bw(m);let h=null;for(let v=0;h==null&&v<m.length;++v){let p=Qw(u);h=Xw(m[v],p,s)}return h}function f0(n,r=[],l=[],s="",c=!1){let u=(m,h,v=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)&&v)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 y=Pn([s,b.relativePath]),S=l.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 "${y}".`),f0(m.children,r,S,y,v)),!(m.path==null&&!m.index)&&r.push({path:y,score:Gw(y,m.index),routesMeta:S})};return n.forEach((m,h)=>{var v;if(m.path===""||!((v=m.path)!=null&&v.includes("?")))u(m,h);else for(let p of m0(m.path))u(m,h,!0,p)}),r}function m0(n){let r=n.split("/");if(r.length===0)return[];let[l,...s]=r,c=l.endsWith("?"),u=l.replace(/\?$/,"");if(s.length===0)return c?[u,""]:[u];let m=m0(s.join("/")),h=[];return h.push(...m.map(v=>v===""?u:[u,v].join("/"))),c&&h.push(...m),h.map(v=>n.startsWith("/")&&v===""?"/":v)}function Bw(n){n.sort((r,l)=>r.score!==l.score?l.score-r.score:Iw(r.routesMeta.map(s=>s.childrenIndex),l.routesMeta.map(s=>s.childrenIndex)))}var Hw=/^:[\w-]+$/,$w=3,Pw=2,qw=1,Vw=10,Yw=-2,rv=n=>n==="*";function Gw(n,r){let l=n.split("/"),s=l.length;return l.some(rv)&&(s+=Yw),r&&(s+=Pw),l.filter(c=>!rv(c)).reduce((c,u)=>c+(Hw.test(u)?$w:u===""?qw:Vw),s)}function Iw(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 Xw(n,r,l=!1){let{routesMeta:s}=n,c={},u="/",m=[];for(let h=0;h<s.length;++h){let v=s[h],p=h===s.length-1,b=u==="/"?r:r.slice(u.length)||"/",y=ki({path:v.relativePath,caseSensitive:v.caseSensitive,end:p},b),S=v.route;if(!y&&p&&l&&!s[s.length-1].route.index&&(y=ki({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!y)return null;Object.assign(c,y.params),m.push({params:c,pathname:Pn([u,y.pathname]),pathnameBase:Jw(Pn([u,y.pathnameBase])),route:S}),y.pathnameBase!=="/"&&(u=Pn([u,y.pathnameBase]))}return m}function ki(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[l,s]=Kw(n.path,n.caseSensitive,n.end),c=r.match(l);if(!c)return null;let u=c[0],m=u.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:s.reduce((p,{paramName:b,isOptional:y},S)=>{if(b==="*"){let T=h[S]||"";m=u.slice(0,u.length-T.length).replace(/(.)\/+$/,"$1")}const N=h[S];return y&&!N?p[b]=void 0:p[b]=(N||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:m,pattern:n}}function Kw(n,r=!1,l=!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,v,p,b)=>{if(s.push({paramName:h,isOptional:v!=null}),v){let y=b.charAt(p+m.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,r?void 0:"i"),s]}function Qw(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 l=r.endsWith("/")?r.length-1:r.length,s=n.charAt(l);return s&&s!=="/"?null:n.slice(l)||"/"}var Zw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Fw(n,r="/"){let{pathname:l,search:s="",hash:c=""}=typeof n=="string"?Cl(n):n,u;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?u=lv(l.substring(1),"/"):u=lv(l,r)):u=r,{pathname:u,search:e2(s),hash:t2(c)}}function lv(n,r){let l=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?l.length>1&&l.pop():c!=="."&&l.push(c)}),l.length>1?l.join("/"):"/"}function Cd(n,r,l,s){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ww(n){return n.filter((r,l)=>l===0||r.route.path&&r.route.path.length>0)}function xf(n){let r=Ww(n);return r.map((l,s)=>s===r.length-1?l.pathname:l.pathnameBase)}function Wi(n,r,l,s=!1){let c;typeof n=="string"?c=Cl(n):(c={...n},at(!c.pathname||!c.pathname.includes("?"),Cd("?","pathname","search",c)),at(!c.pathname||!c.pathname.includes("#"),Cd("#","pathname","hash",c)),at(!c.search||!c.search.includes("#"),Cd("#","search","hash",c)));let u=n===""||c.pathname==="",m=u?"/":c.pathname,h;if(m==null)h=l;else{let y=r.length-1;if(!s&&m.startsWith("..")){let S=m.split("/");for(;S[0]==="..";)S.shift(),y-=1;c.pathname=S.join("/")}h=y>=0?r[y]:"/"}let v=Fw(c,h),p=m&&m!=="/"&&m.endsWith("/"),b=(u||m===".")&&l.endsWith("/");return!v.pathname.endsWith("/")&&(p||b)&&(v.pathname+="/"),v}var Pn=n=>n.join("/").replace(/\/\/+/g,"/"),Jw=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),e2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,t2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,n2=class{constructor(n,r,l,s=!1){this.status=n,this.statusText=r||"",this.internal=s,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function a2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function r2(n){return n.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var h0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function p0(n,r){let l=n;if(typeof l!="string"||!Zw.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let s=l,c=!1;if(h0)try{let u=new URL(window.location.href),m=l.startsWith("//")?new URL(u.protocol+l):new URL(l),h=ca(m.pathname,r);m.origin===u.origin&&h!=null?l=h+m.search+m.hash:c=!0}catch{Sn(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:c,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var g0=["POST","PUT","PATCH","DELETE"];new Set(g0);var l2=["GET",...g0];new Set(l2);var Al=g.createContext(null);Al.displayName="DataRouter";var Ji=g.createContext(null);Ji.displayName="DataRouterState";var o2=g.createContext(!1),v0=g.createContext({isTransitioning:!1});v0.displayName="ViewTransition";var s2=g.createContext(new Map);s2.displayName="Fetchers";var i2=g.createContext(null);i2.displayName="Await";var nn=g.createContext(null);nn.displayName="Navigation";var Qo=g.createContext(null);Qo.displayName="Location";var hn=g.createContext({outlet:null,matches:[],isDataRoute:!1});hn.displayName="Route";var Sf=g.createContext(null);Sf.displayName="RouteError";var y0="REACT_ROUTER_ERROR",c2="REDIRECT",u2="ROUTE_ERROR_RESPONSE";function d2(n){if(n.startsWith(`${y0}:${c2}:{`))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 f2(n){if(n.startsWith(`${y0}:${u2}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new n2(r.status,r.statusText,r.data)}catch{}}function m2(n,{relative:r}={}){at(jl(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:s}=g.useContext(nn),{hash:c,pathname:u,search:m}=Zo(n,{relative:r}),h=u;return l!=="/"&&(h=u==="/"?l:Pn([l,u])),s.createHref({pathname:h,search:m,hash:c})}function jl(){return g.useContext(Qo)!=null}function Vn(){return at(jl(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Qo).location}var b0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function x0(n){g.useContext(nn).static||g.useLayoutEffect(n)}function S0(){let{isDataRoute:n}=g.useContext(hn);return n?C2():h2()}function h2(){at(jl(),"useNavigate() may be used only in the context of a <Router> component.");let n=g.useContext(Al),{basename:r,navigator:l}=g.useContext(nn),{matches:s}=g.useContext(hn),{pathname:c}=Vn(),u=JSON.stringify(xf(s)),m=g.useRef(!1);return x0(()=>{m.current=!0}),g.useCallback((v,p={})=>{if(Sn(m.current,b0),!m.current)return;if(typeof v=="number"){l.go(v);return}let b=Wi(v,JSON.parse(u),c,p.relative==="path");n==null&&r!=="/"&&(b.pathname=b.pathname==="/"?r:Pn([r,b.pathname])),(p.replace?l.replace:l.push)(b,p.state,p)},[r,l,u,c,n])}var w0=g.createContext(null);function Rk(){return g.useContext(w0)}function p2(n){let r=g.useContext(hn).outlet;return g.useMemo(()=>r&&g.createElement(w0.Provider,{value:n},r),[r,n])}function Ck(){let{matches:n}=g.useContext(hn),r=n[n.length-1];return r?r.params:{}}function Zo(n,{relative:r}={}){let{matches:l}=g.useContext(hn),{pathname:s}=Vn(),c=JSON.stringify(xf(l));return g.useMemo(()=>Wi(n,JSON.parse(c),s,r==="path"),[n,c,s,r])}function g2(n,r){return E0(n,r)}function E0(n,r,l){var R;at(jl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=g.useContext(nn),{matches:c}=g.useContext(hn),u=c[c.length-1],m=u?u.params:{},h=u?u.pathname:"/",v=u?u.pathnameBase:"/",p=u&&u.route;{let A=p&&p.path||"";T0(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(),y;if(r){let A=typeof r=="string"?Cl(r):r;at(v==="/"||((R=A.pathname)==null?void 0:R.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${A.pathname}" was given in the \`location\` prop.`),y=A}else y=b;let S=y.pathname||"/",N=S;if(v!=="/"){let A=v.replace(/^\//,"").split("/");N="/"+S.replace(/^\//,"").split("/").slice(A.length).join("/")}let T=d0(n,{pathname:N});Sn(p||T!=null,`No routes matched location "${y.pathname}${y.search}${y.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 "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=S2(T&&T.map(A=>Object.assign({},A,{params:Object.assign({},m,A.params),pathname:Pn([v,s.encodeLocation?s.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?v:Pn([v,s.encodeLocation?s.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),c,l);return r&&E?g.createElement(Qo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},E):E}function v2(){let n=R2(),r=a2(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),l=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=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:u},"ErrorBoundary")," or"," ",g.createElement("code",{style:u},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},r),l?g.createElement("pre",{style:c},l):null,m)}var y2=g.createElement(v2,null),N0=class extends g.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 l=f2(n.digest);l&&(n=l)}let r=n!==void 0?g.createElement(hn.Provider,{value:this.props.routeContext},g.createElement(Sf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?g.createElement(b2,{error:n},r):r}};N0.contextType=o2;var Ad=new WeakMap;function b2({children:n,error:r}){let{basename:l}=g.useContext(nn);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let s=d2(r.digest);if(s){let c=Ad.get(r);if(c)throw c;let u=p0(s.location,l);if(h0&&!Ad.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 Ad.set(r,m),m}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return n}function x2({routeContext:n,match:r,children:l}){let s=g.useContext(Al);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement(hn.Provider,{value:n},l)}function S2(n,r=[],l){let s=l==null?void 0:l.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(y=>y.route.id&&(u==null?void 0:u[y.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(l&&s){m=s.renderFallback;for(let b=0;b<c.length;b++){let y=c[b];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(h=b),y.route.id){let{loaderData:S,errors:N}=s,T=y.route.loader&&!S.hasOwnProperty(y.route.id)&&(!N||N[y.route.id]===void 0);if(y.route.lazy||T){l.isStatic&&(m=!0),h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}}let v=l==null?void 0:l.onError,p=s&&v?(b,y)=>{var S,N;v(b,{location:s.location,params:((N=(S=s.matches)==null?void 0:S[0])==null?void 0:N.params)??{},unstable_pattern:r2(s.matches),errorInfo:y})}:void 0;return c.reduceRight((b,y,S)=>{let N,T=!1,E=null,R=null;s&&(N=u&&y.route.id?u[y.route.id]:void 0,E=y.route.errorElement||y2,m&&(h<0&&S===0?(T0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,R=null):h===S&&(T=!0,R=y.route.hydrateFallbackElement||null)));let A=r.concat(c.slice(0,S+1)),_=()=>{let k;return N?k=E:T?k=R:y.route.Component?k=g.createElement(y.route.Component,null):y.route.element?k=y.route.element:k=b,g.createElement(x2,{match:y,routeContext:{outlet:b,matches:A,isDataRoute:s!=null},children:k})};return s&&(y.route.ErrorBoundary||y.route.errorElement||S===0)?g.createElement(N0,{location:s.location,revalidation:s.revalidation,component:E,error:N,children:_(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):_()},null)}function wf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function w2(n){let r=g.useContext(Al);return at(r,wf(n)),r}function E2(n){let r=g.useContext(Ji);return at(r,wf(n)),r}function N2(n){let r=g.useContext(hn);return at(r,wf(n)),r}function Ef(n){let r=N2(n),l=r.matches[r.matches.length-1];return at(l.route.id,`${n} can only be used on routes that contain a unique "id"`),l.route.id}function T2(){return Ef("useRouteId")}function R2(){var s;let n=g.useContext(Sf),r=E2("useRouteError"),l=Ef("useRouteError");return n!==void 0?n:(s=r.errors)==null?void 0:s[l]}function C2(){let{router:n}=w2("useNavigate"),r=Ef("useNavigate"),l=g.useRef(!1);return x0(()=>{l.current=!0}),g.useCallback(async(c,u={})=>{Sn(l.current,b0),l.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:r,...u}))},[n,r])}var ov={};function T0(n,r,l){!r&&!ov[n]&&(ov[n]=!0,Sn(!1,l))}g.memo(A2);function A2({routes:n,future:r,state:l,isStatic:s,onError:c}){return E0(n,void 0,{state:l,isStatic:s,onError:c})}function sv({to:n,replace:r,state:l,relative:s}){at(jl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=g.useContext(nn);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}=g.useContext(hn),{pathname:m}=Vn(),h=S0(),v=Wi(n,xf(u),m,s==="path"),p=JSON.stringify(v);return g.useEffect(()=>{h(JSON.parse(p),{replace:r,state:l,relative:s})},[h,p,s,r,l]),null}function j2(n){return p2(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 _2({basename:n="/",children:r=null,location:l,navigationType:s="POP",navigator:c,static:u=!1,unstable_useTransitions:m}){at(!jl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),v=g.useMemo(()=>({basename:h,navigator:c,static:u,unstable_useTransitions:m,future:{}}),[h,c,u,m]);typeof l=="string"&&(l=Cl(l));let{pathname:p="/",search:b="",hash:y="",state:S=null,key:N="default",unstable_mask:T}=l,E=g.useMemo(()=>{let R=ca(p,h);return R==null?null:{location:{pathname:R,search:b,hash:y,state:S,key:N,unstable_mask:T},navigationType:s}},[h,p,b,y,S,N,s,T]);return Sn(E!=null,`<Router basename="${h}"> is not able to match the URL "${p}${b}${y}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:g.createElement(nn.Provider,{value:v},g.createElement(Qo.Provider,{children:r,value:E}))}function k2({children:n,location:r}){return g2(Fd(n),r)}function Fd(n,r=[]){let l=[];return g.Children.forEach(n,(s,c)=>{if(!g.isValidElement(s))return;let u=[...r,c];if(s.type===g.Fragment){l.push.apply(l,Fd(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=Fd(s.props.children,u)),l.push(m)}),l}var Ni="get",Ti="application/x-www-form-urlencoded";function ec(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function M2(n){return ec(n)&&n.tagName.toLowerCase()==="button"}function O2(n){return ec(n)&&n.tagName.toLowerCase()==="form"}function D2(n){return ec(n)&&n.tagName.toLowerCase()==="input"}function z2(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function L2(n,r){return n.button===0&&(!r||r==="_self")&&!z2(n)}var fi=null;function U2(){if(fi===null)try{new FormData(document.createElement("form"),0),fi=!1}catch{fi=!0}return fi}var B2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function jd(n){return n!=null&&!B2.has(n)?(Sn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ti}"`),null):n}function H2(n,r){let l,s,c,u,m;if(O2(n)){let h=n.getAttribute("action");s=h?ca(h,r):null,l=n.getAttribute("method")||Ni,c=jd(n.getAttribute("enctype"))||Ti,u=new FormData(n)}else if(M2(n)||D2(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 v=n.getAttribute("formaction")||h.getAttribute("action");if(s=v?ca(v,r):null,l=n.getAttribute("formmethod")||h.getAttribute("method")||Ni,c=jd(n.getAttribute("formenctype"))||jd(h.getAttribute("enctype"))||Ti,u=new FormData(h,n),!U2()){let{name:p,type:b,value:y}=n;if(b==="image"){let S=p?`${p}.`:"";u.append(`${S}x`,"0"),u.append(`${S}y`,"0")}else p&&u.append(p,y)}}else{if(ec(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=Ni,s=null,c=Ti,m=n}return u&&c==="text/plain"&&(m=u,u=void 0),{action:s,method:l.toLowerCase(),encType:c,formData:u,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Nf(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function $2(n,r,l,s){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return l?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 P2(n,r){if(n.id in r)return r[n.id];try{let l=await import(n.module);return r[n.id]=l,l}catch(l){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function q2(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 V2(n,r,l){let s=await Promise.all(n.map(async c=>{let u=r.routes[c.route.id];if(u){let m=await P2(u,l);return m.links?m.links():[]}return[]}));return X2(s.flat(1).filter(q2).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function iv(n,r,l,s,c,u){let m=(v,p)=>l[p]?v.route.id!==l[p].route.id:!0,h=(v,p)=>{var b;return l[p].pathname!==v.pathname||((b=l[p].route.path)==null?void 0:b.endsWith("*"))&&l[p].params["*"]!==v.params["*"]};return u==="assets"?r.filter((v,p)=>m(v,p)||h(v,p)):u==="data"?r.filter((v,p)=>{var y;let b=s.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(m(v,p)||h(v,p))return!0;if(v.route.shouldRevalidate){let S=v.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((y=l[0])==null?void 0:y.params)||{},nextUrl:new URL(n,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function Y2(n,r,{includeHydrateFallback:l}={}){return G2(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)),l&&c.hydrateFallbackModule&&(u=u.concat(c.hydrateFallbackModule)),c.imports&&(u=u.concat(c.imports)),u}).flat(1))}function G2(n){return[...new Set(n)]}function I2(n){let r={},l=Object.keys(n).sort();for(let s of l)r[s]=n[s];return r}function X2(n,r){let l=new Set;return new Set(r),n.reduce((s,c)=>{let u=JSON.stringify(I2(c));return l.has(u)||(l.add(u),s.push({key:u,link:c})),s},[])}function R0(){let n=g.useContext(Al);return Nf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function K2(){let n=g.useContext(Ji);return Nf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Tf=g.createContext(void 0);Tf.displayName="FrameworkContext";function C0(){let n=g.useContext(Tf);return Nf(n,"You must render this element inside a <HydratedRouter> element"),n}function Q2(n,r){let l=g.useContext(Tf),[s,c]=g.useState(!1),[u,m]=g.useState(!1),{onFocus:h,onBlur:v,onMouseEnter:p,onMouseLeave:b,onTouchStart:y}=r,S=g.useRef(null);g.useEffect(()=>{if(n==="render"&&m(!0),n==="viewport"){let E=A=>{A.forEach(_=>{m(_.isIntersecting)})},R=new IntersectionObserver(E,{threshold:.5});return S.current&&R.observe(S.current),()=>{R.disconnect()}}},[n]),g.useEffect(()=>{if(s){let E=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(E)}}},[s]);let N=()=>{c(!0)},T=()=>{c(!1),m(!1)};return l?n!=="intent"?[u,S,{}]:[u,S,{onFocus:zo(h,N),onBlur:zo(v,T),onMouseEnter:zo(p,N),onMouseLeave:zo(b,T),onTouchStart:zo(y,N)}]:[!1,S,{}]}function zo(n,r){return l=>{n&&n(l),l.defaultPrevented||r(l)}}function Z2({page:n,...r}){let{router:l}=R0(),s=g.useMemo(()=>d0(l.routes,n,l.basename),[l.routes,n,l.basename]);return s?g.createElement(W2,{page:n,matches:s,...r}):null}function F2(n){let{manifest:r,routeModules:l}=C0(),[s,c]=g.useState([]);return g.useEffect(()=>{let u=!1;return V2(n,r,l).then(m=>{u||c(m)}),()=>{u=!0}},[n,r,l]),s}function W2({page:n,matches:r,...l}){let s=Vn(),{future:c,manifest:u,routeModules:m}=C0(),{basename:h}=R0(),{loaderData:v,matches:p}=K2(),b=g.useMemo(()=>iv(n,r,p,u,s,"data"),[n,r,p,u,s]),y=g.useMemo(()=>iv(n,r,p,u,s,"assets"),[n,r,p,u,s]),S=g.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let E=new Set,R=!1;if(r.forEach(_=>{var U;let k=u.routes[_.route.id];!k||!k.hasLoader||(!b.some(z=>z.route.id===_.route.id)&&_.route.id in v&&((U=m[_.route.id])!=null&&U.shouldRevalidate)||k.hasClientLoader?R=!0:E.add(_.route.id))}),E.size===0)return[];let A=$2(n,h,c.unstable_trailingSlashAwareDataRequests,"data");return R&&E.size>0&&A.searchParams.set("_routes",r.filter(_=>E.has(_.route.id)).map(_=>_.route.id).join(",")),[A.pathname+A.search]},[h,c.unstable_trailingSlashAwareDataRequests,v,s,u,b,r,n,m]),N=g.useMemo(()=>Y2(y,u),[y,u]),T=F2(y);return g.createElement(g.Fragment,null,S.map(E=>g.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...l})),N.map(E=>g.createElement("link",{key:E,rel:"modulepreload",href:E,...l})),T.map(({key:E,link:R})=>g.createElement("link",{key:E,nonce:l.nonce,...R,crossOrigin:R.crossOrigin??l.crossOrigin})))}function J2(...n){return r=>{n.forEach(l=>{typeof l=="function"?l(r):l!=null&&(l.current=r)})}}var eE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{eE&&(window.__reactRouterVersion="7.13.2")}catch{}function tE({basename:n,children:r,unstable_useTransitions:l,window:s}){let c=g.useRef();c.current==null&&(c.current=Ow({window:s,v5Compat:!0}));let u=c.current,[m,h]=g.useState({action:u.action,location:u.location}),v=g.useCallback(p=>{l===!1?h(p):g.startTransition(()=>h(p))},[l]);return g.useLayoutEffect(()=>u.listen(v),[u,v]),g.createElement(_2,{basename:n,children:r,location:m.location,navigationType:m.action,navigator:u,unstable_useTransitions:l})}var A0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,j0=g.forwardRef(function({onClick:r,discover:l="render",prefetch:s="none",relative:c,reloadDocument:u,replace:m,unstable_mask:h,state:v,target:p,to:b,preventScrollReset:y,viewTransition:S,unstable_defaultShouldRevalidate:N,...T},E){let{basename:R,navigator:A,unstable_useTransitions:_}=g.useContext(nn),k=typeof b=="string"&&A0.test(b),U=p0(b,R);b=U.to;let z=m2(b,{relative:c}),Y=Vn(),G=null;if(h){let ne=Wi(h,[],Y.unstable_mask?Y.unstable_mask.pathname:"/",!0);R!=="/"&&(ne.pathname=ne.pathname==="/"?R:Pn([R,ne.pathname])),G=A.createHref(ne)}let[P,ee,re]=Q2(s,T),fe=rE(b,{replace:m,unstable_mask:h,state:v,target:p,preventScrollReset:y,relative:c,viewTransition:S,unstable_defaultShouldRevalidate:N,unstable_useTransitions:_});function ue(ne){r&&r(ne),ne.defaultPrevented||fe(ne)}let ie=!(U.isExternal||u),me=g.createElement("a",{...T,...re,href:(ie?G:void 0)||U.absoluteURL||z,onClick:ie?ue:r,ref:J2(E,ee),target:p,"data-discover":!k&&l==="render"?"true":void 0});return P&&!k?g.createElement(g.Fragment,null,me,g.createElement(Z2,{page:z})):me});j0.displayName="Link";var Wd=g.forwardRef(function({"aria-current":r="page",caseSensitive:l=!1,className:s="",end:c=!1,style:u,to:m,viewTransition:h,children:v,...p},b){let y=Zo(m,{relative:p.relative}),S=Vn(),N=g.useContext(Ji),{navigator:T,basename:E}=g.useContext(nn),R=N!=null&&cE(y)&&h===!0,A=T.encodeLocation?T.encodeLocation(y).pathname:y.pathname,_=S.pathname,k=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;l||(_=_.toLowerCase(),k=k?k.toLowerCase():null,A=A.toLowerCase()),k&&E&&(k=ca(k,E)||k);const U=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let z=_===A||!c&&_.startsWith(A)&&_.charAt(U)==="/",Y=k!=null&&(k===A||!c&&k.startsWith(A)&&k.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 re=typeof u=="function"?u(G):u;return g.createElement(j0,{...p,"aria-current":P,className:ee,ref:b,style:re,to:m,viewTransition:h},typeof v=="function"?v(G):v)});Wd.displayName="NavLink";var nE=g.forwardRef(({discover:n="render",fetcherKey:r,navigate:l,reloadDocument:s,replace:c,state:u,method:m=Ni,action:h,onSubmit:v,relative:p,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:S,...N},T)=>{let{unstable_useTransitions:E}=g.useContext(nn),R=sE(),A=iE(h,{relative:p}),_=m.toLowerCase()==="get"?"get":"post",k=typeof h=="string"&&A0.test(h),U=z=>{if(v&&v(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:l,replace:c,state:u,relative:p,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:S});E&&l!==!1?g.startTransition(()=>P()):P()};return g.createElement("form",{ref:T,method:_,action:A,onSubmit:s?v:U,...N,"data-discover":!k&&n==="render"?"true":void 0})});nE.displayName="Form";function aE(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _0(n){let r=g.useContext(Al);return at(r,aE(n)),r}function rE(n,{target:r,replace:l,unstable_mask:s,state:c,preventScrollReset:u,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:v,unstable_useTransitions:p}={}){let b=S0(),y=Vn(),S=Zo(n,{relative:m});return g.useCallback(N=>{if(L2(N,r)){N.preventDefault();let T=l!==void 0?l:Go(y)===Go(S),E=()=>b(n,{replace:T,unstable_mask:s,state:c,preventScrollReset:u,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:v});p?g.startTransition(()=>E()):E()}},[y,b,S,l,s,c,r,n,u,m,h,v,p])}var lE=0,oE=()=>`__${String(++lE)}__`;function sE(){let{router:n}=_0("useSubmit"),{basename:r}=g.useContext(nn),l=T2(),s=n.fetch,c=n.navigate;return g.useCallback(async(u,m={})=>{let{action:h,method:v,encType:p,formData:b,body:y}=H2(u,r);if(m.navigate===!1){let S=m.fetcherKey||oE();await s(S,l,m.action||h,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,body:y,formMethod:m.method||v,formEncType:m.encType||p,flushSync:m.flushSync})}else await c(m.action||h,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,body:y,formMethod:m.method||v,formEncType:m.encType||p,replace:m.replace,state:m.state,fromRouteId:l,flushSync:m.flushSync,viewTransition:m.viewTransition})},[s,c,r,l])}function iE(n,{relative:r}={}){let{basename:l}=g.useContext(nn),s=g.useContext(hn);at(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),u={...Zo(n||".",{relative:r})},m=Vn();if(n==null){u.search=m.search;let h=new URLSearchParams(u.search),v=h.getAll("index");if(v.some(b=>b==="")){h.delete("index"),v.filter(y=>y).forEach(y=>h.append("index",y));let b=h.toString();u.search=b?`?${b}`:""}}return(!n||n===".")&&c.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(u.pathname=u.pathname==="/"?l:Pn([l,u.pathname])),Go(u)}function cE(n,{relative:r}={}){let l=g.useContext(v0);at(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=_0("useViewTransitionState"),c=Zo(n,{relative:r});if(!l.isTransitioning)return!1;let u=ca(l.currentLocation.pathname,s)||l.currentLocation.pathname,m=ca(l.nextLocation.pathname,s)||l.nextLocation.pathname;return ki(c.pathname,m)!=null||ki(c.pathname,u)!=null}var Fo=c0();const k0=i0(Fo),uE="/api",cv="X-Tunnel-Authorization";function dE(n){const r=n.toLowerCase().replace(/\.$/,"");return r==="devtunnels.ms"||r.endsWith(".devtunnels.ms")}function fE(){var r,l;return typeof window>"u"||!dE(window.location.hostname)?void 0:((l=(r=window.__MESHY_RUNTIME_CONFIG__)==null?void 0:r.dashboardTunnelAuthorization)==null?void 0:l.trim())||void 0}function mE(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=fE();return s&&!r.has(cv)&&r.set(cv,s),r}function hE(n,r){if(typeof n=="string"&&n)return n;if(n&&typeof n=="object"){const l=n,s=typeof l.error=="object"&&l.error!==null?l.error:void 0;if(typeof l.error=="string"&&l.error)return l.error;if(typeof(s==null?void 0:s.message)=="string"&&s.message)return s.message;if(typeof l.message=="string"&&l.message)return l.message}return r}async function Ee(n,r){const l=await fetch(`${uE}${n}`,{...r,headers:mE(r)});if(!l.ok){const s=await l.json().catch(()=>l.statusText);throw new Error(hE(s,`HTTP ${l.status}`))}return l.json()}function _l(n,r){return Ee(n,{...r,cache:"no-store"})}function pE(){return Ee("/system/info")}function Ak(n){return Ee("/system/transport",{method:"POST",body:JSON.stringify({type:n})})}function M0(n){return Ee("/system/runtime/restart",{method:"POST",body:JSON.stringify(n)})}function gE(){return Ee("/system/runtime/stop",{method:"POST"})}function vE(){return Ee("/cluster/state")}function jk(){return Ee("/cluster/promote",{method:"POST"})}function _k(n){return Ee("/cluster/connect",{method:"POST",body:JSON.stringify(n)})}function kk(){return Ee("/cluster/disconnect",{method:"POST"})}function yE(n){return Ee(`/node-operations/${n}`)}async function bE(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 l=r.toString();return(await Ee(`/node-operations${l?`?${l}`:""}`)).operations}function xE(n,r){return Ee(`/nodes/${n}/agents/${r}/upgrade`,{method:"POST"})}function SE(n,r){return Ee(`/nodes/${n}/runtime/restart`,{method:"POST",body:JSON.stringify(r)})}async function Mk(){return(await Ee("/devboxes")).devboxes}function Ok(n,r){return Ee(`/nodes/${n}/devbox/configure`,{method:"POST",body:JSON.stringify({devbox:r})})}function Dk(n){return Ee(`/nodes/${n}/devbox/status`)}function zk(n){return Ee(`/nodes/${n}/devbox/start`,{method:"POST"})}function Lk(n,r){return Ee(`/nodes/${n}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:r})})}function Uk(n,r={}){const l=new URLSearchParams;r.path&&l.set("path",r.path),r.limit!==void 0&&l.set("limit",String(Math.min(Math.max(1,r.limit),100))),r.offset!==void 0&&l.set("offset",String(Math.max(0,r.offset))),r.directoriesOnly!==void 0&&l.set("directoriesOnly",String(r.directoriesOnly)),r.allowAbsolute!==void 0&&l.set("allowAbsolute",String(r.allowAbsolute));const s=l.toString();return Ee(`/nodes/${n}/workdir/tree${s?`?${s}`:""}`)}function Bk(n,r={}){const l=new URLSearchParams;r.path&&l.set("path",r.path),r.limit!==void 0&&l.set("limit",String(Math.min(Math.max(1,r.limit),20))),r.offset!==void 0&&l.set("offset",String(Math.max(0,r.offset))),r.allowAbsolute!==void 0&&l.set("allowAbsolute",String(r.allowAbsolute));const s=l.toString();return Ee(`/nodes/${n}/workdir/branch${s?`?${s}`:""}`)}function Hk(n,r){const l=new URLSearchParams;return l.set("agent",r.agent),l.set("limit",String(Math.min(Math.max(1,r.limit),100))),Ee(`/nodes/${n}/native-sessions?${l.toString()}`)}function $k(n,r){return Ee(`/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 Pk(n,r){return Ee(`/nodes/${n}/terminal/sessions`,{method:"POST",body:JSON.stringify(r)})}function qk(n){return Ee(`/nodes/${n}/terminal/sessions`)}function Vk(n,r){return Ee(`/nodes/${n}/terminal/sessions/${r}`)}function Yk(n,r){return Ee(`/nodes/${n}/terminal/sessions/${r}/stop`,{method:"POST"})}function Rf(n,r){n.set("scope",r.kind),r.kind==="project"&&n.set("projectPath",r.projectPath)}function Gk(n,r){var s;const l=new URLSearchParams;return Rf(l,r.scope),(s=r.agents)!=null&&s.length&&l.set("agents",r.agents.join(",")),Ee(`/nodes/${encodeURIComponent(n)}/capabilities?${l.toString()}`)}function Ik(n,r,l){const s=new URLSearchParams;l&&Rf(s,l);const c=s.toString();return Ee(`/nodes/${encodeURIComponent(n)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`)}function Xk(n,r,l){const s=new URLSearchParams;l&&Rf(s,l);const c=s.toString();return Ee(`/nodes/${encodeURIComponent(n)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`,{method:"DELETE"})}function Kk(n){return Ee("/capabilities/conflict-check",{method:"POST",body:JSON.stringify(n)})}function Qk(n){return Ee("/capabilities/share",{method:"POST",body:JSON.stringify(n)})}async function Zk(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 l=r.toString();return Ee(`/tasks${l?`?${l}`:""}`)}function Fk(n){return Ee(`/tasks/${n}`)}function Wk(n){return Ee("/tasks",{method:"POST",body:JSON.stringify(n)})}function Jk(n){return Ee("/tasks/import-session",{method:"POST",body:JSON.stringify(n)})}function e3(n){return Ee("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:n})})}function t3(n){return Ee("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:n})})}function n3(n){return Ee(`/tasks/${n}/cancel`,{method:"POST"})}function a3(n){return Ee(`/tasks/${n}/retry`,{method:"POST"})}function r3(n,r){return Ee(`/tasks/${n}/logs`)}function l3(n,r){return Ee(`/tasks/${n}/message`,{method:"POST",body:JSON.stringify({content:r})})}function o3(n,r){return Ee(`/tasks/${n}/queued-messages/${encodeURIComponent(r)}`,{method:"DELETE"})}function s3(n,r){return Ee(`/tasks/${n}/share`,{method:"POST",body:JSON.stringify(r)})}function i3(n){return Ee(`/tasks/${n}/share`,{method:"DELETE"})}function c3(n){return _l(`/shared/conversations/${encodeURIComponent(n)}`)}function u3(n,r){return _l(`/shared/conversations/${encodeURIComponent(n)}/logs`)}function d3(n){return _l(`/shared/conversations/${encodeURIComponent(n)}/output`)}function f3(n,r="."){return _l(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}function m3(n,r){return _l(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}function h3(n,r){return _l(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(r?{path:r}:{})})}function O0(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}function p3(n){return Ee(`/tasks/${n}/output`)}function g3(n,r="."){return Ee(`/tasks/${n}/output/tree?path=${encodeURIComponent(r)}`)}function v3(n,r){return Ee(`/tasks/${n}/output/content?path=${encodeURIComponent(r)}`)}function y3(n,r){return Ee(`/tasks/${n}/output/preview-sessions`,{method:"POST",body:JSON.stringify(O0(r))})}function b3(n,r){return Ee(`/nodes/${n}/preview-sessions`,{method:"POST",body:JSON.stringify(O0(r))})}function x3(n){return Ee(`/tasks/${n}/output/diff`)}function wE({hasStarted:n,enabled:r}){return r&&!n}function EE(n,r,l=!0){const s=g.useRef(n),c=g.useRef(!1);g.useEffect(()=>{s.current=n},[n]),g.useEffect(()=>{if(!l)return;const u=()=>s.current();wE({hasStarted:c.current,enabled:l})&&(c.current=!0,u());const m=setInterval(u,r);return()=>clearInterval(m)},[r,l])}function NE(n){return n?n.replace(/\/+$/,""):""}function TE(n){const r=n??"/api";return r?r.startsWith("/")?r.replace(/\/+$/,""):`/${r.replace(/\/+$/,"")}`:""}function uv(...n){const r=new Headers;for(const l of n){if(!l)continue;new Headers(l).forEach((c,u)=>r.set(u,c))}return r}var RE=class extends Error{constructor(r,l){super(r);lt(this,"status");lt(this,"statusText");lt(this,"code");lt(this,"details");lt(this,"body");this.name="MeshyApiError",this.status=l.status,this.statusText=l.statusText,this.code=l.code,this.details=l.details,this.body=l.body}};function CE(n,r){if(typeof n=="string"&&n)return{message:n};if(n&&typeof n=="object"){const l=n,s=typeof l.error=="object"&&l.error!==null?l.error:void 0;if(typeof l.error=="string"&&l.error)return{message:l.error};if(typeof(s==null?void 0:s.message)=="string"&&s.message)return{message:s.message,code:s.code,details:s.details};if(typeof l.message=="string"&&l.message)return{message:l.message}}return{message:r}}function Lo(n,r){const l=r.toString();return l?`${n}?${l}`:n}function Jt(n,r,l){l!==void 0&&n.set(r,String(l))}function dv(n){return n===null||Array.isArray(n)||typeof n=="object"&&n!==null&&!(n instanceof ArrayBuffer)}function AE(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}var jE=class{constructor(n={}){lt(this,"baseUrl");lt(this,"apiPrefix");lt(this,"defaultHeaders");lt(this,"credentials");lt(this,"fetchImpl");lt(this,"config");const r=n.fetchImpl??((l,s)=>globalThis.fetch(l,s));if(!r)throw new Error("MeshyClient requires a fetch implementation");this.fetchImpl=r,this.baseUrl=NE(n.baseUrl),this.apiPrefix=TE(n.apiPrefix),this.defaultHeaders=uv(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,y,S,N;const l=r.timeoutMs??this.config.timeoutMs,s=l?new AbortController:null;let c=null;s&&(c=setTimeout(()=>s.abort(),l));const u=await((y=(b=this.config).tokenProvider)==null?void 0:y.call(b)),m=await((N=(S=this.config).headersProvider)==null?void 0:N.call(S)),h=r.credentials??this.config.credentials,v=uv({Accept:"application/json"},dv(r.body)?{"Content-Type":"application/json"}:void 0,this.config.defaultHeaders,m,u?{Authorization:`Bearer ${u}`}:void 0,r.headers),p=dv(r.body)?JSON.stringify(r.body):r.body;try{const T=await this.fetchImpl(this.buildApiUrl(n),{...r,headers:v,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=CE(E,`HTTP ${T.status}`);throw new RE(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 Jt(r,"status",n.status),Jt(r,"capability",n.capability),(await this.request(Lo("/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 Jt(r,"nodeId",n.nodeId),Jt(r,"status",n.status),Jt(r,"kind",n.kind),(await this.request(Lo("/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 l=new URLSearchParams;return Jt(l,"path",r.path),r.limit!==void 0&&l.set("limit",String(Math.min(Math.max(1,r.limit),100))),r.offset!==void 0&&l.set("offset",String(Math.max(0,r.offset))),Jt(l,"directoriesOnly",r.directoriesOnly),Jt(l,"allowAbsolute",r.allowAbsolute),this.request(Lo(`/nodes/${encodeURIComponent(n)}/workdir/tree`,l))}getNodeWorkDirBranchInfo(n,r={}){const l=new URLSearchParams;return Jt(l,"path",r.path),r.limit!==void 0&&l.set("limit",String(Math.min(Math.max(1,r.limit),20))),r.offset!==void 0&&l.set("offset",String(Math.max(0,r.offset))),Jt(l,"allowAbsolute",r.allowAbsolute),this.request(Lo(`/nodes/${encodeURIComponent(n)}/workdir/branch`,l))}createNodeWorkDirBranch(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/workdir/branch`,{method:"POST",body:r})}getNodeNativeSessions(n,r){const l=new URLSearchParams;return l.set("agent",r.agent),r.limit!==void 0&&l.set("limit",String(Math.min(Math.max(1,r.limit),100))),this.request(`/nodes/${encodeURIComponent(n)}/native-sessions?${l.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 Jt(r,"status",n.status),Jt(r,"assignedTo",n.assignedTo),Jt(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(Lo("/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:AE(r)})}getTaskOutputDiff(n){return this.request(`/tasks/${encodeURIComponent(n)}/output/diff`)}},_E=new jE,kE=["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"],ME=0,OE=class{constructor(n){lt(this,"client");lt(this,"eventTypes");lt(this,"eventSourceFactory");lt(this,"pollIntervalMs");lt(this,"poll");lt(this,"eventSource",null);lt(this,"pollTimer",null);lt(this,"listeners",new Map);lt(this,"connectionListeners",new Map);lt(this,"listenerId",0);lt(this,"connected",!1);this.client=n.client,this.eventTypes=n.eventTypes??kE,this.eventSourceFactory=n.eventSourceFactory??(DE(n.client)?void 0:LE()),this.pollIntervalMs=n.pollIntervalMs??1e4,this.poll=n.poll}start(){if(!(this.eventSource||this.pollTimer)){if(this.eventSourceFactory){const n=new this.eventSourceFactory(zE(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,l=>this.emit({id:String(++ME),type:r,data:JSON.parse(l.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 l=++this.listenerId;return this.listeners.set(l,{pattern:n,callback:r}),()=>this.listeners.delete(l)}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:l}of this.listeners.values())n.type.startsWith(r)&&l(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 DE(n){return n.defaultHeaders.has("x-tunnel-authorization")}function zE(n,r){const l=n.buildApiUrl??n.buildApiurl;if(!l)throw new Error("MeshyClient is missing buildApiUrl");return l.call(n,r)}function LE(){return globalThis.EventSource}function UE(n=50){const[r,l]=g.useState([]),[s,c]=g.useState(!1),u=g.useRef(null),m=g.useRef(0),h=g.useRef(new Map);g.useEffect(()=>{const b=new OE({client:_E});u.current=b;const y=b.subscribe("",N=>{const T=N;l(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(),()=>{y(),S(),b.stop(),u.current=null}},[n]);const v=g.useCallback((b,y)=>{const S=++m.current;return h.current.set(S,{pattern:b,callback:y}),()=>{h.current.delete(S)}},[]),p=g.useCallback(()=>l([]),[]);return{events:r,connected:s,subscribe:v,clearEvents:p}}const BE=1e4,HE=6e4,$E=BE,PE=250,qE=new Set(["node.joined","node.left","task.created","task.assigned","task.deleted"]),VE=new Set(["task.created","task.assigned","task.status","task.deleted"]);function YE(n){return n?HE:$E}function S3(n){return qE.has(n)}function GE(n){return VE.has(n)}function IE(n,r){if(!r)return!0;const l=n.leaderId,s=n.term,c=n.nodeCount;return typeof l!="string"&&l!==null||typeof s!="number"||typeof c!="number"?!0:r.leaderId!==l||r.term!==s||r.nodeCount!==c}function XE(n,r,l){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:l.get(s)!==c}function w3(n,r){const l=r.taskId,s=r.status;if(typeof l!="string"||typeof s!="string")return n;let c=!1;const u=n.map(m=>{if(m.id!==l)return m;c=!0;const h="result"in r?r.result:s==="completed"?null:m.result,v="error"in r?r.error:s==="completed"?null:m.error;return{...m,status:s,result:h,error:v}});return c?u:n}function E3(n,r){const l=r.taskId;if(typeof l!="string")return n;const s=n.filter(c=>c.id!==l);return s.length===n.length?n:s}const D0=g.createContext(null);function KE({children:n}){const[r,l]=g.useState(null),[s,c]=g.useState(null),[u,m]=g.useState(!0),[h,v]=g.useState(null),p=g.useRef(null),b=g.useRef(null),y=g.useRef(new Map),{events:S,connected:N,subscribe:T}=UE(),E=g.useCallback(async()=>{var A;try{const[_,k]=await Promise.all([vE(),pE()]),U=_,z=k.nodeId??k.id,Y=U.nodes??[],G=Y.find(re=>re.id===z)??{id:z,name:k.name,endpoint:k.endpoint,role:k.role,status:k.status,capabilities:k.capabilities,joinedAt:k.joinedAt,lastHeartbeat:k.lastHeartbeat},P=U.leaderId?Y.find(re=>re.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},y.current=new Map(ee.nodes.map(re=>[re.id,re.status])),y.current.set(ee.self.id,ee.self.status),l(ee),c(k),v(null)}catch(_){v(_ instanceof Error?_.message:"Failed to fetch cluster state")}finally{m(!1)}},[]),R=g.useCallback(()=>{p.current===null&&(p.current=window.setTimeout(()=>{p.current=null,E()},PE))},[E]);return EE(E,YE(N)),g.useEffect(()=>()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},[]),g.useEffect(()=>{const A=[T("cluster",_=>{IE(_.data,b.current)&&R()}),T("election",R),T("node",_=>{XE(_.type,_.data,y.current)&&R()}),T("transport",R),T("task",_=>{GE(_.type)&&R()})];return()=>A.forEach(_=>_())},[T,R]),f.jsx(D0.Provider,{value:{cluster:r,systemInfo:s,events:S,sseConnected:N,subscribe:T,refresh:E,loading:u,error:h},children:n})}function z0(){const n=g.useContext(D0);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 L0=(...n)=>n.filter((r,l,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===l).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 QE=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 ZE=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,l,s)=>s?s.toUpperCase():l.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 fv=n=>{const r=ZE(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 _d={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 FE=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},WE=g.createContext({}),JE=()=>g.useContext(WE),eN=g.forwardRef(({color:n,size:r,strokeWidth:l,absoluteStrokeWidth:s,className:c="",children:u,iconNode:m,...h},v)=>{const{size:p=24,strokeWidth:b=2,absoluteStrokeWidth:y=!1,color:S="currentColor",className:N=""}=JE()??{},T=s??y?Number(l??b)*24/Number(r??p):l??b;return g.createElement("svg",{ref:v,..._d,width:r??p??_d.width,height:r??p??_d.height,stroke:n??S,strokeWidth:T,className:L0("lucide",N,c),...!u&&!FE(h)&&{"aria-hidden":"true"},...h},[...m.map(([E,R])=>g.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 He=(n,r)=>{const l=g.forwardRef(({className:s,...c},u)=>g.createElement(eN,{ref:u,iconNode:r,className:L0(`lucide-${QE(fv(n))}`,`lucide-${n}`,s),...c}));return l.displayName=fv(n),l};/**
|
|
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 tN=[["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"}]],Mi=He("activity",tN);/**
|
|
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 nN=[["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"}]],aN=He("book-open",nN);/**
|
|
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 rN=[["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"}]],U0=He("bot",rN);/**
|
|
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 lN=[["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"}]],oN=He("cable",lN);/**
|
|
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 sN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Oi=He("check",sN);/**
|
|
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 iN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Io=He("chevron-down",iN);/**
|
|
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 cN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Jd=He("chevron-right",cN);/**
|
|
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 uN=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],dN=He("chevron-up",uN);/**
|
|
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 fN=[["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"}]],mi=He("circle-alert",fN);/**
|
|
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 mN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Po=He("circle-check",mN);/**
|
|
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 hN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],mv=He("circle-dot",hN);/**
|
|
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 pN=[["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"}]],gN=He("circle-x",pN);/**
|
|
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 vN=[["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"}]],yN=He("copy",vN);/**
|
|
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 bN=[["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"}]],xN=He("cpu",bN);/**
|
|
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 SN=[["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"}]],wN=He("external-link",SN);/**
|
|
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 EN=[["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"}]],NN=He("folder-tree",EN);/**
|
|
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 TN=[["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"}]],RN=He("folder",TN);/**
|
|
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 CN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],AN=He("info",CN);/**
|
|
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 jN=[["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=He("monitor-cog",jN);/**
|
|
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 kN=[["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"}]],B0=He("monitor",kN);/**
|
|
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 MN=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],H0=He("moon",MN);/**
|
|
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 ON=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],DN=He("power",ON);/**
|
|
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 zN=[["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"}]],LN=He("radio",zN);/**
|
|
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 UN=[["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"}]],ef=He("refresh-cw",UN);/**
|
|
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 BN=[["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"}]],hv=He("rocket",BN);/**
|
|
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 HN=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],$N=He("search",HN);/**
|
|
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 PN=[["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"}]],$0=He("server",PN);/**
|
|
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 qN=[["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"}]],VN=He("settings",qN);/**
|
|
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 YN=[["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"}]],GN=He("shield",YN);/**
|
|
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 IN=[["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"}]],XN=He("sparkles",IN);/**
|
|
247
|
+
* @license lucide-react v1.7.0 - ISC
|
|
248
|
+
*
|
|
249
|
+
* This source code is licensed under the ISC license.
|
|
250
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
+
*/const KN=[["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"}]],P0=He("sun",KN);/**
|
|
252
|
+
* @license lucide-react v1.7.0 - ISC
|
|
253
|
+
*
|
|
254
|
+
* This source code is licensed under the ISC license.
|
|
255
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
+
*/const QN=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],q0=He("terminal",QN);/**
|
|
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 ZN=[["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"}]],FN=He("wifi-off",ZN);/**
|
|
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 WN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],V0=He("x",WN);function Y0(n){var r,l,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]&&(l=Y0(n[r]))&&(s&&(s+=" "),s+=l)}else for(l in n)n[l]&&(s&&(s+=" "),s+=l);return s}function G0(){for(var n,r,l=0,s="",c=arguments.length;l<c;l++)(n=arguments[l])&&(r=Y0(n))&&(s&&(s+=" "),s+=r);return s}const JN=(n,r)=>{const l=new Array(n.length+r.length);for(let s=0;s<n.length;s++)l[s]=n[s];for(let s=0;s<r.length;s++)l[n.length+s]=r[s];return l},eT=(n,r)=>({classGroupId:n,validator:r}),I0=(n=new Map,r=null,l)=>({nextPart:n,validators:r,classGroupId:l}),Di="-",pv=[],tT="arbitrary..",nT=n=>{const r=rT(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return aT(m);const h=m.split(Di),v=h[0]===""&&h.length>1?1:0;return X0(h,v,r)},getConflictingClassGroupIds:(m,h)=>{if(h){const v=s[m],p=l[m];return v?p?JN(p,v):v:p||pv}return l[m]||pv}}},X0=(n,r,l)=>{if(n.length-r===0)return l.classGroupId;const c=n[r],u=l.nextPart.get(c);if(u){const p=X0(n,r+1,u);if(p)return p}const m=l.validators;if(m===null)return;const h=r===0?n.join(Di):n.slice(r).join(Di),v=m.length;for(let p=0;p<v;p++){const b=m[p];if(b.validator(h))return b.classGroupId}},aT=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=n.slice(1,-1),l=r.indexOf(":"),s=r.slice(0,l);return s?tT+s:void 0})(),rT=n=>{const{theme:r,classGroups:l}=n;return lT(l,r)},lT=(n,r)=>{const l=I0();for(const s in n){const c=n[s];Cf(c,l,s,r)}return l},Cf=(n,r,l,s)=>{const c=n.length;for(let u=0;u<c;u++){const m=n[u];oT(m,r,l,s)}},oT=(n,r,l,s)=>{if(typeof n=="string"){sT(n,r,l);return}if(typeof n=="function"){iT(n,r,l,s);return}cT(n,r,l,s)},sT=(n,r,l)=>{const s=n===""?r:K0(r,n);s.classGroupId=l},iT=(n,r,l,s)=>{if(uT(n)){Cf(n(s),r,l,s);return}r.validators===null&&(r.validators=[]),r.validators.push(eT(l,n))},cT=(n,r,l,s)=>{const c=Object.entries(n),u=c.length;for(let m=0;m<u;m++){const[h,v]=c[m];Cf(v,K0(r,h),l,s)}},K0=(n,r)=>{let l=n;const s=r.split(Di),c=s.length;for(let u=0;u<c;u++){const m=s[u];let h=l.nextPart.get(m);h||(h=I0(),l.nextPart.set(m,h)),l=h}return l},uT=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,dT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,l=Object.create(null),s=Object.create(null);const c=(u,m)=>{l[u]=m,r++,r>n&&(r=0,s=l,l=Object.create(null))};return{get(u){let m=l[u];if(m!==void 0)return m;if((m=s[u])!==void 0)return c(u,m),m},set(u,m){u in l?l[u]=m:c(u,m)}}},tf="!",gv=":",fT=[],vv=(n,r,l,s,c)=>({modifiers:n,hasImportantModifier:r,baseClassName:l,maybePostfixModifierPosition:s,isExternal:c}),mT=n=>{const{prefix:r,experimentalParseClassName:l}=n;let s=c=>{const u=[];let m=0,h=0,v=0,p;const b=c.length;for(let E=0;E<b;E++){const R=c[E];if(m===0&&h===0){if(R===gv){u.push(c.slice(v,E)),v=E+1;continue}if(R==="/"){p=E;continue}}R==="["?m++:R==="]"?m--:R==="("?h++:R===")"&&h--}const y=u.length===0?c:c.slice(v);let S=y,N=!1;y.endsWith(tf)?(S=y.slice(0,-1),N=!0):y.startsWith(tf)&&(S=y.slice(1),N=!0);const T=p&&p>v?p-v:void 0;return vv(u,N,S,T)};if(r){const c=r+gv,u=s;s=m=>m.startsWith(c)?u(m.slice(c.length)):vv(fT,!1,m,void 0,!0)}if(l){const c=s;s=u=>l({className:u,parseClassName:c})}return s},hT=n=>{const r=new Map;return n.orderSensitiveModifiers.forEach((l,s)=>{r.set(l,1e6+s)}),l=>{const s=[];let c=[];for(let u=0;u<l.length;u++){const m=l[u],h=m[0]==="[",v=r.has(m);h||v?(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}},pT=n=>({cache:dT(n.cacheSize),parseClassName:mT(n),sortModifiers:hT(n),...nT(n)}),gT=/\s+/,vT=(n,r)=>{const{parseClassName:l,getClassGroupId:s,getConflictingClassGroupIds:c,sortModifiers:u}=r,m=[],h=n.trim().split(gT);let v="";for(let p=h.length-1;p>=0;p-=1){const b=h[p],{isExternal:y,modifiers:S,hasImportantModifier:N,baseClassName:T,maybePostfixModifierPosition:E}=l(b);if(y){v=b+(v.length>0?" "+v:v);continue}let R=!!E,A=s(R?T.substring(0,E):T);if(!A){if(!R){v=b+(v.length>0?" "+v:v);continue}if(A=s(T),!A){v=b+(v.length>0?" "+v:v);continue}R=!1}const _=S.length===0?"":S.length===1?S[0]:u(S).join(":"),k=N?_+tf:_,U=k+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(k+G)}v=b+(v.length>0?" "+v:v)}return v},yT=(...n)=>{let r=0,l,s,c="";for(;r<n.length;)(l=n[r++])&&(s=Q0(l))&&(c&&(c+=" "),c+=s);return c},Q0=n=>{if(typeof n=="string")return n;let r,l="";for(let s=0;s<n.length;s++)n[s]&&(r=Q0(n[s]))&&(l&&(l+=" "),l+=r);return l},bT=(n,...r)=>{let l,s,c,u;const m=v=>{const p=r.reduce((b,y)=>y(b),n());return l=pT(p),s=l.cache.get,c=l.cache.set,u=h,h(v)},h=v=>{const p=s(v);if(p)return p;const b=vT(v,l);return c(v,b),b};return u=m,(...v)=>u(yT(...v))},xT=[],wt=n=>{const r=l=>l[n]||xT;return r.isThemeGetter=!0,r},Z0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,F0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ST=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,wT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ET=/\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$/,NT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,TT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,RT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ba=n=>ST.test(n),je=n=>!!n&&!Number.isNaN(Number(n)),Ha=n=>!!n&&Number.isInteger(Number(n)),kd=n=>n.endsWith("%")&&je(n.slice(0,-1)),ia=n=>wT.test(n),W0=()=>!0,CT=n=>ET.test(n)&&!NT.test(n),Af=()=>!1,AT=n=>TT.test(n),jT=n=>RT.test(n),_T=n=>!pe(n)&&!ge(n),kT=n=>Ia(n,ty,Af),pe=n=>Z0.test(n),gr=n=>Ia(n,ny,CT),yv=n=>Ia(n,HT,je),MT=n=>Ia(n,ry,W0),OT=n=>Ia(n,ay,Af),bv=n=>Ia(n,J0,Af),DT=n=>Ia(n,ey,jT),hi=n=>Ia(n,ly,AT),ge=n=>F0.test(n),Uo=n=>Tr(n,ny),zT=n=>Tr(n,ay),xv=n=>Tr(n,J0),LT=n=>Tr(n,ty),UT=n=>Tr(n,ey),pi=n=>Tr(n,ly,!0),BT=n=>Tr(n,ry,!0),Ia=(n,r,l)=>{const s=Z0.exec(n);return s?s[1]?r(s[1]):l(s[2]):!1},Tr=(n,r,l=!1)=>{const s=F0.exec(n);return s?s[1]?r(s[1]):l:!1},J0=n=>n==="position"||n==="percentage",ey=n=>n==="image"||n==="url",ty=n=>n==="length"||n==="size"||n==="bg-size",ny=n=>n==="length",HT=n=>n==="number",ay=n=>n==="family-name",ry=n=>n==="number"||n==="weight",ly=n=>n==="shadow",$T=()=>{const n=wt("color"),r=wt("font"),l=wt("text"),s=wt("font-weight"),c=wt("tracking"),u=wt("leading"),m=wt("breakpoint"),h=wt("container"),v=wt("spacing"),p=wt("radius"),b=wt("shadow"),y=wt("inset-shadow"),S=wt("text-shadow"),N=wt("drop-shadow"),T=wt("blur"),E=wt("perspective"),R=wt("aspect"),A=wt("ease"),_=wt("animate"),k=()=>["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,v],ee=()=>[Ba,"full","auto",...P()],re=()=>[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"],ne=()=>["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()],Q=()=>[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(),xv,bv,{position:[ge,pe]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",LT,kT,{size:[ge,pe]}],W=()=>[kd,Uo,gr],se=()=>["","none","full",p,ge,pe],ae=()=>["",je,Uo,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=()=>[je,kd,xv,bv],ve=()=>["","none",T,ge,pe],ye=()=>["none",je,ge,pe],Se=()=>["none",je,ge,pe],Ue=()=>[je,ge,pe],$e=()=>[Ba,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ia],breakpoint:[ia],color:[W0],container:[ia],"drop-shadow":[ia],ease:["in","out","in-out"],font:[_T],"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",je],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:[je,pe,ge,h]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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:[je,Ba,"auto","initial","none",pe]}],grow:[{grow:["",je,ge,pe]}],shrink:[{shrink:["",je,ge,pe]}],order:[{order:[Ha,"first","last","none",ge,pe]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":ue()}],"col-end":[{"col-end":ue()}],"grid-rows":[{"grid-rows":re()}],"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":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],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",...Q()]}],"min-inline-size":[{"min-inline":["auto",...Q()]}],"max-inline-size":[{"max-inline":["none",...Q()]}],"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",l,Uo,gr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,BT,MT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",kd,pe]}],"font-family":[{font:[zT,OT,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":[je,"none",ge,yv]}],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:[je,"from-font","auto",ge,gr]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[je,"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]},UT,DT]}],"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:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...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":[je,ge,pe]}],"outline-w":[{outline:["",je,Uo,gr]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",b,pi,hi]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",y,pi,hi]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[je,gr]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",S,pi,hi]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[je,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":[je]}],"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":[je]}],"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:[je,ge,pe]}],contrast:[{contrast:[je,ge,pe]}],"drop-shadow":[{"drop-shadow":["","none",N,pi,hi]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",je,ge,pe]}],"hue-rotate":[{"hue-rotate":[je,ge,pe]}],invert:[{invert:["",je,ge,pe]}],saturate:[{saturate:[je,ge,pe]}],sepia:[{sepia:["",je,ge,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,pe]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[je,ge,pe]}],"backdrop-contrast":[{"backdrop-contrast":[je,ge,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,ge,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,ge,pe]}],"backdrop-invert":[{"backdrop-invert":["",je,ge,pe]}],"backdrop-opacity":[{"backdrop-opacity":[je,ge,pe]}],"backdrop-saturate":[{"backdrop-saturate":[je,ge,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",je,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:[je,"initial",ge,pe]}],ease:[{ease:["linear","initial",A,ge,pe]}],delay:[{delay:[je,ge,pe]}],animate:[{animate:["none",_,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:Ue()}],"skew-x":[{"skew-x":Ue()}],"skew-y":[{"skew-y":Ue()}],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:[je,Uo,gr,yv]}],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"]}},PT=bT($T);function oe(...n){return PT(G0(n))}function qT(n){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",r.appendChild(l),l.styleSheet?l.styleSheet.cssText=n:l.appendChild(document.createTextNode(n))}const VT=n=>{switch(n){case"success":return IT;case"info":return KT;case"warning":return XT;case"error":return QT;default:return null}},YT=Array(12).fill(0),GT=({visible:n,className:r})=>te.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},te.createElement("div",{className:"sonner-spinner"},YT.map((l,s)=>te.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),IT=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"})),XT=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"})),KT=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"})),QT=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"})),ZT=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"})),FT=()=>{const[n,r]=te.useState(document.hidden);return te.useEffect(()=>{const l=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",l),()=>window.removeEventListener("visibilitychange",l)},[]),n};let nf=1;class WT{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{const l=this.subscribers.indexOf(r);this.subscribers.splice(l,1)}),this.publish=r=>{this.subscribers.forEach(l=>l(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var l;const{message:s,...c}=r,u=typeof(r==null?void 0:r.id)=="number"||((l=r.id)==null?void 0:l.length)>0?r.id:nf++,m=this.toasts.find(v=>v.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(v=>v.id===u?(this.publish({...v,...r,id:u,title:s}),{...v,...r,id:u,dismissible:h,title:s}):v):this.addToast({title:s,...c,dismissible:h,id:u}),u},this.dismiss=r=>(r?(this.dismissedToasts.add(r),requestAnimationFrame(()=>this.subscribers.forEach(l=>l({id:r,dismiss:!0})))):this.toasts.forEach(l=>{this.subscribers.forEach(s=>s({id:l.id,dismiss:!0}))}),r),this.message=(r,l)=>this.create({...l,message:r}),this.error=(r,l)=>this.create({...l,message:r,type:"error"}),this.success=(r,l)=>this.create({...l,type:"success",message:r}),this.info=(r,l)=>this.create({...l,type:"info",message:r}),this.warning=(r,l)=>this.create({...l,type:"warning",message:r}),this.loading=(r,l)=>this.create({...l,type:"loading",message:r}),this.promise=(r,l)=>{if(!l)return;let s;l.loading!==void 0&&(s=this.create({...l,promise:r,type:"loading",message:l.loading,description:typeof l.description!="function"?l.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(eR(p)&&!p.ok){u=!1;const y=typeof l.error=="function"?await l.error(`HTTP error! status: ${p.status}`):l.error,S=typeof l.description=="function"?await l.description(`HTTP error! status: ${p.status}`):l.description,T=typeof y=="object"&&!te.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:S,...T})}else if(p instanceof Error){u=!1;const y=typeof l.error=="function"?await l.error(p):l.error,S=typeof l.description=="function"?await l.description(p):l.description,T=typeof y=="object"&&!te.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:S,...T})}else if(l.success!==void 0){u=!1;const y=typeof l.success=="function"?await l.success(p):l.success,S=typeof l.description=="function"?await l.description(p):l.description,T=typeof y=="object"&&!te.isValidElement(y)?y:{message:y};this.create({id:s,type:"success",description:S,...T})}}).catch(async p=>{if(m=["reject",p],l.error!==void 0){u=!1;const b=typeof l.error=="function"?await l.error(p):l.error,y=typeof l.description=="function"?await l.description(p):l.description,N=typeof b=="object"&&!te.isValidElement(b)?b:{message:b};this.create({id:s,type:"error",description:y,...N})}}).finally(()=>{u&&(this.dismiss(s),s=void 0),l.finally==null||l.finally.call(l)}),v=()=>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:v}:Object.assign(s,{unwrap:v})},this.custom=(r,l)=>{const s=(l==null?void 0:l.id)||nf++;return this.create({jsx:r(s),id:s,...l}),s},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Yt=new WT,JT=(n,r)=>{const l=(r==null?void 0:r.id)||nf++;return Yt.addToast({title:n,...r,id:l}),l},eR=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",tR=JT,nR=()=>Yt.toasts,aR=()=>Yt.getActiveToasts(),Ge=Object.assign(tR,{success:Yt.success,info:Yt.info,warning:Yt.warning,error:Yt.error,custom:Yt.custom,message:Yt.message,promise:Yt.promise,dismiss:Yt.dismiss,loading:Yt.loading},{getHistory:nR,getToasts:aR});qT("[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 gi(n){return n.label!==void 0}const rR=3,lR="24px",oR="16px",Sv=4e3,sR=356,iR=14,cR=45,uR=200;function On(...n){return n.filter(Boolean).join(" ")}function dR(n){const[r,l]=n.split("-"),s=[];return r&&s.push(r),l&&s.push(l),s}const fR=n=>{var r,l,s,c,u,m,h,v,p;const{invert:b,toast:y,unstyled:S,interacting:N,setHeights:T,visibleToasts:E,heights:R,index:A,toasts:_,expanded:k,removeToast:U,defaultRichColors:z,closeButton:Y,style:G,cancelButtonStyle:P,actionButtonStyle:ee,className:re="",descriptionClassName:fe="",duration:ue,position:ie,gap:me,expandByDefault:ne,classNames:M,icons:q,closeButtonAriaLabel:Q="Close toast"}=n,[de,C]=te.useState(null),[V,F]=te.useState(null),[I,W]=te.useState(!1),[se,ae]=te.useState(!1),[ce,le]=te.useState(!1),[J,ve]=te.useState(!1),[ye,Se]=te.useState(!1),[Ue,$e]=te.useState(0),[Ye,vt]=te.useState(0),_e=te.useRef(y.duration||ue||Sv),Bt=te.useRef(null),yt=te.useRef(null),Rr=A===0,ha=A+1<=E,jt=y.type,pn=y.dismissible!==!1,zl=y.className||"",Cr=y.descriptionClassName||"",Gt=te.useMemo(()=>R.findIndex(Re=>Re.toastId===y.id)||0,[R,y.id]),be=te.useMemo(()=>{var Re;return(Re=y.closeButton)!=null?Re:Y},[y.closeButton,Y]),Pe=te.useMemo(()=>y.duration||ue||Sv,[y.duration,ue]),ke=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>=Gt?Re:Re+ct.height,0),[R,Gt]),Za=FT(),Fa=y.invert||b,Ll=jt==="loading";it.current=te.useMemo(()=>Gt*me+Cn,[Gt,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:y.id,height:ct,position:y.position},...ht]),()=>T(ht=>ht.filter(_t=>_t.toastId!==y.id))}},[T,y.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(_t=>_t.find(bt=>bt.toastId===y.id)?_t.map(bt=>bt.toastId===y.id?{...bt,height:ht}:bt):[{toastId:y.id,height:ht,position:y.position},..._t])},[I,y.title,y.description,T,y.id,y.jsx,y.action,y.cancel]);const gn=te.useCallback(()=>{ae(!0),$e(it.current),T(Re=>Re.filter(ct=>ct.toastId!==y.id)),setTimeout(()=>{U(y)},uR)},[y,U,T,it]);te.useEffect(()=>{if(y.promise&&jt==="loading"||y.duration===1/0||y.type==="loading")return;let Re;return k||N||Za?(()=>{if(Tn.current<ke.current){const _t=new Date().getTime()-ke.current;_e.current=_e.current-_t}Tn.current=new Date().getTime()})():(()=>{_e.current!==1/0&&(ke.current=new Date().getTime(),Re=setTimeout(()=>{y.onAutoClose==null||y.onAutoClose.call(y,y),gn()},_e.current))})(),()=>clearTimeout(Re)},[k,N,y,jt,Za,gn]),te.useEffect(()=>{y.delete&&(gn(),y.onDismiss==null||y.onDismiss.call(y,y))},[gn,y.delete]);function es(){var Re;if(q!=null&&q.loading){var ct;return te.createElement("div",{className:On(M==null?void 0:M.loader,y==null||(ct=y.classNames)==null?void 0:ct.loader,"sonner-loader"),"data-visible":jt==="loading"},q.loading)}return te.createElement(GT,{className:On(M==null?void 0:M.loader,y==null||(Re=y.classNames)==null?void 0:Re.loader),visible:jt==="loading"})}const Ul=y.icon||(q==null?void 0:q[jt])||VT(jt);var pa,ts;return te.createElement("li",{tabIndex:0,ref:yt,className:On(re,zl,M==null?void 0:M.toast,y==null||(r=y.classNames)==null?void 0:r.toast,M==null?void 0:M.default,M==null?void 0:M[jt],y==null||(l=y.classNames)==null?void 0:l[jt]),"data-sonner-toast":"","data-rich-colors":(pa=y.richColors)!=null?pa:z,"data-styled":!(y.jsx||y.unstyled||S),"data-mounted":I,"data-promise":!!y.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":jt,"data-invert":Fa,"data-swipe-out":J,"data-swipe-direction":V,"data-expanded":!!(k||ne&&I),"data-testid":y.testId,style:{"--index":A,"--toasts-before":A,"--z-index":_.length-A,"--offset":`${se?Ue:it.current}px`,"--initial-height":ne?"auto":`${Ye}px`,...G,...y.style},onDragEnd:()=>{le(!1),C(null),Rn.current=null},onPointerDown:Re=>{Re.button!==2&&(Ll||!pn||(Bt.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 _t=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=Bt.current)==null?void 0:ht.getTime()),ut=de==="x"?_t:Wa,dt=Math.abs(ut)/bt;if(Math.abs(ut)>=cR||dt>.11){$e(it.current),y.onDismiss==null||y.onDismiss.call(y,y),F(de==="x"?_t>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,_t;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:dR(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 jr=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*jr(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*jr(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`),(_t=yt.current)==null||_t.style.setProperty("--swipe-amount-y",`${Nt.y}px`)}},be&&!y.jsx&&jt!=="loading"?te.createElement("button",{"aria-label":Q,"data-disabled":Ll,"data-close-button":!0,onClick:Ll||!pn?()=>{}:()=>{gn(),y.onDismiss==null||y.onDismiss.call(y,y)},className:On(M==null?void 0:M.closeButton,y==null||(s=y.classNames)==null?void 0:s.closeButton)},(ts=q==null?void 0:q.close)!=null?ts:ZT):null,(jt||y.icon||y.promise)&&y.icon!==null&&((q==null?void 0:q[jt])!==null||y.icon)?te.createElement("div",{"data-icon":"",className:On(M==null?void 0:M.icon,y==null||(c=y.classNames)==null?void 0:c.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||es():null,y.type!=="loading"?Ul:null):null,te.createElement("div",{"data-content":"",className:On(M==null?void 0:M.content,y==null||(u=y.classNames)==null?void 0:u.content)},te.createElement("div",{"data-title":"",className:On(M==null?void 0:M.title,y==null||(m=y.classNames)==null?void 0:m.title)},y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title),y.description?te.createElement("div",{"data-description":"",className:On(fe,Cr,M==null?void 0:M.description,y==null||(h=y.classNames)==null?void 0:h.description)},typeof y.description=="function"?y.description():y.description):null),te.isValidElement(y.cancel)?y.cancel:y.cancel&&gi(y.cancel)?te.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||P,onClick:Re=>{gi(y.cancel)&&pn&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,Re),gn())},className:On(M==null?void 0:M.cancelButton,y==null||(v=y.classNames)==null?void 0:v.cancelButton)},y.cancel.label):null,te.isValidElement(y.action)?y.action:y.action&&gi(y.action)?te.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||ee,onClick:Re=>{gi(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,Re),!Re.defaultPrevented&&gn())},className:On(M==null?void 0:M.actionButton,y==null||(p=y.classNames)==null?void 0:p.actionButton)},y.action.label):null)};function wv(){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 mR(n,r){const l={};return[n,r].forEach((s,c)=>{const u=c===1,m=u?"--mobile-offset":"--offset",h=u?oR:lR;function v(p){["top","right","bottom","left"].forEach(b=>{l[`${m}-${b}`]=typeof p=="number"?`${p}px`:p})}typeof s=="number"||typeof s=="string"?v(s):typeof s=="object"?["top","right","bottom","left"].forEach(p=>{s[p]===void 0?l[`${m}-${p}`]=h:l[`${m}-${p}`]=typeof s[p]=="number"?`${s[p]}px`:s[p]}):v(h)}),l}const hR=te.forwardRef(function(r,l){const{id:s,invert:c,position:u="bottom-right",hotkey:m=["altKey","KeyT"],expand:h,closeButton:v,className:p,offset:b,mobileOffset:y,theme:S="light",richColors:N,duration:T,style:E,visibleToasts:R=rR,toastOptions:A,dir:_=wv(),gap:k=iR,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]),[re,fe]=te.useState([]),[ue,ie]=te.useState(!1),[me,ne]=te.useState(!1),[M,q]=te.useState(S!=="system"?S:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Q=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(ae=>ae.id===I.id))!=null&&se.delete||Yt.dismiss(I.id),W.filter(({id:ae})=>ae!==I.id)})},[]);return te.useEffect(()=>Yt.subscribe(I=>{if(I.dismiss){requestAnimationFrame(()=>{G(W=>W.map(se=>se.id===I.id?{...se,delete:!0}:se))});return}setTimeout(()=>{k0.flushSync(()=>{G(W=>{const se=W.findIndex(ae=>ae.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(ae){console.error(ae)}})}},[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=Q.current)==null||ce.focus()}W.code==="Escape"&&(document.activeElement===Q.current||(se=Q.current)!=null&&se.contains(document.activeElement))&&ie(!1)};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[m]),te.useEffect(()=>{if(Q.current)return()=>{C.current&&(C.current.focus({preventScroll:!0}),C.current=null,V.current=!1)}},[Q.current]),te.createElement("section",{ref:l,"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[ae,ce]=I.split("-");return P.length?te.createElement("ol",{key:I,dir:_==="auto"?wv():_,tabIndex:-1,ref:Q,className:p,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":ae,"data-x-position":ce,style:{"--front-toast-height":`${((se=re[0])==null?void 0:se.height)||0}px`,"--width":`${sR}px`,"--gap":`${k}px`,...E,...mR(b,y)},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"||ne(!0)},onPointerUp:()=>ne(!1)},P.filter(le=>!le.position&&W===0||le.position===I).map((le,J)=>{var ve,ye;return te.createElement(fR,{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:v,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:re.filter(Se=>Se.position==le.position),setHeights:fe,expandByDefault:h,gap:k,expanded:ue,swipeDirections:r.swipeDirections})})):null}))}),Ev=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Nv=G0,oy=(n,r)=>l=>{var s;if((r==null?void 0:r.variants)==null)return Nv(n,l==null?void 0:l.class,l==null?void 0:l.className);const{variants:c,defaultVariants:u}=r,m=Object.keys(c).map(p=>{const b=l==null?void 0:l[p],y=u==null?void 0:u[p];if(b===null)return null;const S=Ev(b)||Ev(y);return c[p][S]}),h=l&&Object.entries(l).reduce((p,b)=>{let[y,S]=b;return S===void 0||(p[y]=S),p},{}),v=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((p,b)=>{let{class:y,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,y,S]:p},[]);return Nv(n,m,v,l==null?void 0:l.class,l==null?void 0:l.className)},pR=oy("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,...l}){return f.jsx("div",{className:oe(pR({variant:r}),n),...l})}const Dn=g.forwardRef(({className:n,...r},l)=>f.jsx("div",{ref:l,className:oe("rounded-sm border border-border/70 bg-card/80 text-card-foreground shadow-none",n),...r}));Dn.displayName="Card";const zn=g.forwardRef(({className:n,...r},l)=>f.jsx("div",{ref:l,className:oe("flex flex-col space-y-1 p-3",n),...r}));zn.displayName="CardHeader";const Ln=g.forwardRef(({className:n,...r},l)=>f.jsx("div",{ref:l,className:oe("text-[12px] font-semibold leading-none tracking-tight",n),...r}));Ln.displayName="CardTitle";const Un=g.forwardRef(({className:n,...r},l)=>f.jsx("div",{ref:l,className:oe("text-[10px] text-muted-foreground",n),...r}));Un.displayName="CardDescription";const Bn=g.forwardRef(({className:n,...r},l)=>f.jsx("div",{ref:l,className:oe("p-3 pt-0",n),...r}));Bn.displayName="CardContent";const gR=g.forwardRef(({className:n,...r},l)=>f.jsx("div",{ref:l,className:oe("flex items-center p-3 pt-0",n),...r}));gR.displayName="CardFooter";function Tv(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function jf(...n){return r=>{let l=!1;const s=n.map(c=>{const u=Tv(c,r);return!l&&typeof u=="function"&&(l=!0),u});if(l)return()=>{for(let c=0;c<s.length;c++){const u=s[c];typeof u=="function"?u():Tv(n[c],null)}}}}function tt(...n){return g.useCallback(jf(...n),n)}var vR=Symbol.for("react.lazy"),zi=bf[" use ".trim().toString()];function yR(n){return typeof n=="object"&&n!==null&&"then"in n}function sy(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===vR&&"_payload"in n&&yR(n._payload)}function bR(n){const r=SR(n),l=g.forwardRef((s,c)=>{let{children:u,...m}=s;sy(u)&&typeof zi=="function"&&(u=zi(u._payload));const h=g.Children.toArray(u),v=h.find(ER);if(v){const p=v.props.children,b=h.map(y=>y===v?g.Children.count(p)>1?g.Children.only(null):g.isValidElement(p)?p.props.children:null:y);return f.jsx(r,{...m,ref:c,children:g.isValidElement(p)?g.cloneElement(p,void 0,b):null})}return f.jsx(r,{...m,ref:c,children:u})});return l.displayName=`${n}.Slot`,l}var xR=bR("Slot");function SR(n){const r=g.forwardRef((l,s)=>{let{children:c,...u}=l;if(sy(c)&&typeof zi=="function"&&(c=zi(c._payload)),g.isValidElement(c)){const m=TR(c),h=NR(u,c.props);return c.type!==g.Fragment&&(h.ref=s?jf(s,m):m),g.cloneElement(c,h)}return g.Children.count(c)>1?g.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var wR=Symbol("radix.slottable");function ER(n){return g.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===wR}function NR(n,r){const l={...r};for(const s in r){const c=n[s],u=r[s];/^on[A-Z]/.test(s)?c&&u?l[s]=(...h)=>{const v=u(...h);return c(...h),v}:c&&(l[s]=c):s==="style"?l[s]={...c,...u}:s==="className"&&(l[s]=[c,u].filter(Boolean).join(" "))}return{...n,...l}}function TR(n){var s,c;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?n.ref:(r=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,l=r&&"isReactWarning"in r&&r.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}const _f=oy("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"}}),mn=g.forwardRef(({className:n,variant:r,size:l,asChild:s=!1,...c},u)=>{const m=s?xR:"button";return f.jsx(m,{className:oe(_f({variant:r,size:l,className:n})),ref:u,...c})});mn.displayName="Button";async function RR(n,r={}){try{await Ee("/telemetry/events",{method:"POST",body:JSON.stringify({name:`feature.${n}`,appType:"browser",dimensions:r})})}catch{}}function ze(n,r,{checkForDefaultPrevented:l=!0}={}){return function(c){if(n==null||n(c),l===!1||!c.defaultPrevented)return r==null?void 0:r(c)}}function CR(n,r){const l=g.createContext(r),s=u=>{const{children:m,...h}=u,v=g.useMemo(()=>h,Object.values(h));return f.jsx(l.Provider,{value:v,children:m})};s.displayName=n+"Provider";function c(u){const m=g.useContext(l);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 l=[];function s(u,m){const h=g.createContext(m),v=l.length;l=[...l,m];const p=y=>{var A;const{scope:S,children:N,...T}=y,E=((A=S==null?void 0:S[n])==null?void 0:A[v])||h,R=g.useMemo(()=>T,Object.values(T));return f.jsx(E.Provider,{value:R,children:N})};p.displayName=u+"Provider";function b(y,S){var E;const N=((E=S==null?void 0:S[n])==null?void 0:E[v])||h,T=g.useContext(N);if(T)return T;if(m!==void 0)return m;throw new Error(`\`${y}\` must be used within \`${u}\``)}return[p,b]}const c=()=>{const u=l.map(m=>g.createContext(m));return function(h){const v=(h==null?void 0:h[n])||u;return g.useMemo(()=>({[`__scope${n}`]:{...h,[n]:v}}),[h,v])}};return c.scopeName=n,[s,AR(c,...r)]}function AR(...n){const r=n[0];if(n.length===1)return r;const l=()=>{const s=n.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(u){const m=s.reduce((h,{useScope:v,scopeName:p})=>{const y=v(u)[`__scope${p}`];return{...h,...y}},{});return g.useMemo(()=>({[`__scope${r.scopeName}`]:m}),[m])}};return l.scopeName=r.scopeName,l}var Lt=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},jR=bf[" useId ".trim().toString()]||(()=>{}),_R=0;function Pa(n){const[r,l]=g.useState(jR());return Lt(()=>{l(s=>s??String(_R++))},[n]),r?`radix-${r}`:""}var kR=bf[" useInsertionEffect ".trim().toString()]||Lt;function Tl({prop:n,defaultProp:r,onChange:l=()=>{},caller:s}){const[c,u,m]=MR({defaultProp:r,onChange:l}),h=n!==void 0,v=h?n:c;{const b=g.useRef(n!==void 0);g.useEffect(()=>{const y=b.current;y!==h&&console.warn(`${s} is changing from ${y?"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=g.useCallback(b=>{var y;if(h){const S=OR(b)?b(n):b;S!==n&&((y=m.current)==null||y.call(m,S))}else u(b)},[h,n,u,m]);return[v,p]}function MR({defaultProp:n,onChange:r}){const[l,s]=g.useState(n),c=g.useRef(l),u=g.useRef(r);return kR(()=>{u.current=r},[r]),g.useEffect(()=>{var m;c.current!==l&&((m=u.current)==null||m.call(u,l),c.current=l)},[l,c]),[l,s,u]}function OR(n){return typeof n=="function"}function Xo(n){const r=DR(n),l=g.forwardRef((s,c)=>{const{children:u,...m}=s,h=g.Children.toArray(u),v=h.find(LR);if(v){const p=v.props.children,b=h.map(y=>y===v?g.Children.count(p)>1?g.Children.only(null):g.isValidElement(p)?p.props.children:null:y);return f.jsx(r,{...m,ref:c,children:g.isValidElement(p)?g.cloneElement(p,void 0,b):null})}return f.jsx(r,{...m,ref:c,children:u})});return l.displayName=`${n}.Slot`,l}function DR(n){const r=g.forwardRef((l,s)=>{const{children:c,...u}=l;if(g.isValidElement(c)){const m=BR(c),h=UR(u,c.props);return c.type!==g.Fragment&&(h.ref=s?jf(s,m):m),g.cloneElement(c,h)}return g.Children.count(c)>1?g.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var iy=Symbol("radix.slottable");function zR(n){const r=({children:l})=>f.jsx(f.Fragment,{children:l});return r.displayName=`${n}.Slottable`,r.__radixId=iy,r}function LR(n){return g.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===iy}function UR(n,r){const l={...r};for(const s in r){const c=n[s],u=r[s];/^on[A-Z]/.test(s)?c&&u?l[s]=(...h)=>{const v=u(...h);return c(...h),v}:c&&(l[s]=c):s==="style"?l[s]={...c,...u}:s==="className"&&(l[s]=[c,u].filter(Boolean).join(" "))}return{...n,...l}}function BR(n){var s,c;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?n.ref:(r=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,l=r&&"isReactWarning"in r&&r.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var HR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Le=HR.reduce((n,r)=>{const l=Xo(`Primitive.${r}`),s=g.forwardRef((c,u)=>{const{asChild:m,...h}=c,v=m?l:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(v,{...h,ref:u})});return s.displayName=`Primitive.${r}`,{...n,[r]:s}},{});function $R(n,r){n&&Fo.flushSync(()=>n.dispatchEvent(r))}function Va(n){const r=g.useRef(n);return g.useEffect(()=>{r.current=n}),g.useMemo(()=>(...l)=>{var s;return(s=r.current)==null?void 0:s.call(r,...l)},[])}function PR(n,r=globalThis==null?void 0:globalThis.document){const l=Va(n);g.useEffect(()=>{const s=c=>{c.key==="Escape"&&l(c)};return r.addEventListener("keydown",s,{capture:!0}),()=>r.removeEventListener("keydown",s,{capture:!0})},[l,r])}var qR="DismissableLayer",af="dismissableLayer.update",VR="dismissableLayer.pointerDownOutside",YR="dismissableLayer.focusOutside",Rv,cy=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kf=g.forwardRef((n,r)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:m,onDismiss:h,...v}=n,p=g.useContext(cy),[b,y]=g.useState(null),S=(b==null?void 0:b.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=g.useState({}),T=tt(r,G=>y(G)),E=Array.from(p.layers),[R]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),A=E.indexOf(R),_=b?E.indexOf(b):-1,k=p.layersWithOutsidePointerEventsDisabled.size>0,U=_>=A,z=XR(G=>{const P=G.target,ee=[...p.branches].some(re=>re.contains(P));!U||ee||(c==null||c(G),m==null||m(G),G.defaultPrevented||h==null||h())},S),Y=KR(G=>{const P=G.target;[...p.branches].some(re=>re.contains(P))||(u==null||u(G),m==null||m(G),G.defaultPrevented||h==null||h())},S);return PR(G=>{_===p.layers.size-1&&(s==null||s(G),!G.defaultPrevented&&h&&(G.preventDefault(),h()))},S),g.useEffect(()=>{if(b)return l&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Rv=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(b)),p.layers.add(b),Cv(),()=>{l&&p.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=Rv)}},[b,S,l,p]),g.useEffect(()=>()=>{b&&(p.layers.delete(b),p.layersWithOutsidePointerEventsDisabled.delete(b),Cv())},[b,p]),g.useEffect(()=>{const G=()=>N({});return document.addEventListener(af,G),()=>document.removeEventListener(af,G)},[]),f.jsx(Le.div,{...v,ref:T,style:{pointerEvents:k?U?"auto":"none":void 0,...n.style},onFocusCapture:ze(n.onFocusCapture,Y.onFocusCapture),onBlurCapture:ze(n.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:ze(n.onPointerDownCapture,z.onPointerDownCapture)})});kf.displayName=qR;var GR="DismissableLayerBranch",IR=g.forwardRef((n,r)=>{const l=g.useContext(cy),s=g.useRef(null),c=tt(r,s);return g.useEffect(()=>{const u=s.current;if(u)return l.branches.add(u),()=>{l.branches.delete(u)}},[l.branches]),f.jsx(Le.div,{...n,ref:c})});IR.displayName=GR;function XR(n,r=globalThis==null?void 0:globalThis.document){const l=Va(n),s=g.useRef(!1),c=g.useRef(()=>{});return g.useEffect(()=>{const u=h=>{if(h.target&&!s.current){let v=function(){uy(VR,l,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(r.removeEventListener("click",c.current),c.current=v,r.addEventListener("click",c.current,{once:!0})):v()}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,l]),{onPointerDownCapture:()=>s.current=!0}}function KR(n,r=globalThis==null?void 0:globalThis.document){const l=Va(n),s=g.useRef(!1);return g.useEffect(()=>{const c=u=>{u.target&&!s.current&&uy(YR,l,{originalEvent:u},{discrete:!1})};return r.addEventListener("focusin",c),()=>r.removeEventListener("focusin",c)},[r,l]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Cv(){const n=new CustomEvent(af);document.dispatchEvent(n)}function uy(n,r,l,{discrete:s}){const c=l.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:l});r&&c.addEventListener(n,r,{once:!0}),s?$R(c,u):c.dispatchEvent(u)}var Md="focusScope.autoFocusOnMount",Od="focusScope.autoFocusOnUnmount",Av={bubbles:!1,cancelable:!0},QR="FocusScope",Mf=g.forwardRef((n,r)=>{const{loop:l=!1,trapped:s=!1,onMountAutoFocus:c,onUnmountAutoFocus:u,...m}=n,[h,v]=g.useState(null),p=Va(c),b=Va(u),y=g.useRef(null),S=tt(r,E=>v(E)),N=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(s){let E=function(k){if(N.paused||!h)return;const U=k.target;h.contains(U)?y.current=U:$a(y.current,{select:!0})},R=function(k){if(N.paused||!h)return;const U=k.relatedTarget;U!==null&&(h.contains(U)||$a(y.current,{select:!0}))},A=function(k){if(document.activeElement===document.body)for(const z of k)z.removedNodes.length>0&&$a(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",R);const _=new MutationObserver(A);return h&&_.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",R),_.disconnect()}}},[s,h,N.paused]),g.useEffect(()=>{if(h){_v.add(N);const E=document.activeElement;if(!h.contains(E)){const A=new CustomEvent(Md,Av);h.addEventListener(Md,p),h.dispatchEvent(A),A.defaultPrevented||(ZR(tC(dy(h)),{select:!0}),document.activeElement===E&&$a(h))}return()=>{h.removeEventListener(Md,p),setTimeout(()=>{const A=new CustomEvent(Od,Av);h.addEventListener(Od,b),h.dispatchEvent(A),A.defaultPrevented||$a(E??document.body,{select:!0}),h.removeEventListener(Od,b),_v.remove(N)},0)}}},[h,p,b,N]);const T=g.useCallback(E=>{if(!l&&!s||N.paused)return;const R=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,A=document.activeElement;if(R&&A){const _=E.currentTarget,[k,U]=FR(_);k&&U?!E.shiftKey&&A===U?(E.preventDefault(),l&&$a(k,{select:!0})):E.shiftKey&&A===k&&(E.preventDefault(),l&&$a(U,{select:!0})):A===_&&E.preventDefault()}},[l,s,N.paused]);return f.jsx(Le.div,{tabIndex:-1,...m,ref:S,onKeyDown:T})});Mf.displayName=QR;function ZR(n,{select:r=!1}={}){const l=document.activeElement;for(const s of n)if($a(s,{select:r}),document.activeElement!==l)return}function FR(n){const r=dy(n),l=jv(r,n),s=jv(r.reverse(),n);return[l,s]}function dy(n){const r=[],l=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(;l.nextNode();)r.push(l.currentNode);return r}function jv(n,r){for(const l of n)if(!WR(l,{upTo:r}))return l}function WR(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 JR(n){return n instanceof HTMLInputElement&&"select"in n}function $a(n,{select:r=!1}={}){if(n&&n.focus){const l=document.activeElement;n.focus({preventScroll:!0}),n!==l&&JR(n)&&r&&n.select()}}var _v=eC();function eC(){let n=[];return{add(r){const l=n[0];r!==l&&(l==null||l.pause()),n=kv(n,r),n.unshift(r)},remove(r){var l;n=kv(n,r),(l=n[0])==null||l.resume()}}}function kv(n,r){const l=[...n],s=l.indexOf(r);return s!==-1&&l.splice(s,1),l}function tC(n){return n.filter(r=>r.tagName!=="A")}var nC="Portal",Of=g.forwardRef((n,r)=>{var h;const{container:l,...s}=n,[c,u]=g.useState(!1);Lt(()=>u(!0),[]);const m=l||c&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return m?k0.createPortal(f.jsx(Le.div,{...s,ref:r}),m):null});Of.displayName=nC;function aC(n,r){return g.useReducer((l,s)=>r[l][s]??l,n)}var kl=n=>{const{present:r,children:l}=n,s=rC(r),c=typeof l=="function"?l({present:s.isPresent}):g.Children.only(l),u=tt(s.ref,lC(c));return typeof l=="function"||s.isPresent?g.cloneElement(c,{ref:u}):null};kl.displayName="Presence";function rC(n){const[r,l]=g.useState(),s=g.useRef(null),c=g.useRef(n),u=g.useRef("none"),m=n?"mounted":"unmounted",[h,v]=aC(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const p=vi(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=vi(p);n?v("MOUNT"):N==="none"||(p==null?void 0:p.display)==="none"?v("UNMOUNT"):v(b&&S!==N?"ANIMATION_OUT":"UNMOUNT"),c.current=n}},[n,v]),Lt(()=>{if(r){let p;const b=r.ownerDocument.defaultView??window,y=N=>{const E=vi(s.current).includes(CSS.escape(N.animationName));if(N.target===r&&E&&(v("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=vi(s.current))};return r.addEventListener("animationstart",S),r.addEventListener("animationcancel",y),r.addEventListener("animationend",y),()=>{b.clearTimeout(p),r.removeEventListener("animationstart",S),r.removeEventListener("animationcancel",y),r.removeEventListener("animationend",y)}}else v("ANIMATION_END")},[r,v]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:g.useCallback(p=>{s.current=p?getComputedStyle(p):null,l(p)},[])}}function vi(n){return(n==null?void 0:n.animationName)||"none"}function lC(n){var s,c;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?n.ref:(r=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,l=r&&"isReactWarning"in r&&r.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var Dd=0;function fy(){g.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Mv()),document.body.insertAdjacentElement("beforeend",n[1]??Mv()),Dd++,()=>{Dd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Dd--}},[])}function Mv(){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 l,s=1,c=arguments.length;s<c;s++){l=arguments[s];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(r[u]=l[u])}return r},Hn.apply(this,arguments)};function my(n,r){var l={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.indexOf(s)<0&&(l[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])&&(l[s[c]]=n[s[c]]);return l}function oC(n,r,l){if(l||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 Ri="right-scroll-bar-position",Ci="width-before-scroll-bar",sC="with-scroll-bars-hidden",iC="--removed-body-scroll-bar-size";function zd(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function cC(n,r){var l=g.useState(function(){return{value:n,callback:r,facade:{get current(){return l.value},set current(s){var c=l.value;c!==s&&(l.value=s,l.callback(s,c))}}}})[0];return l.callback=r,l.facade}var uC=typeof window<"u"?g.useLayoutEffect:g.useEffect,Ov=new WeakMap;function dC(n,r){var l=cC(null,function(s){return n.forEach(function(c){return zd(c,s)})});return uC(function(){var s=Ov.get(l);if(s){var c=new Set(s),u=new Set(n),m=l.current;c.forEach(function(h){u.has(h)||zd(h,null)}),u.forEach(function(h){c.has(h)||zd(h,m)})}Ov.set(l,n)},[n]),l}function fC(n){return n}function mC(n,r){r===void 0&&(r=fC);var l=[],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 l.length?l[l.length-1]:n},useMedium:function(u){var m=r(u,s);return l.push(m),function(){l=l.filter(function(h){return h!==m})}},assignSyncMedium:function(u){for(s=!0;l.length;){var m=l;l=[],m.forEach(u)}l={push:function(h){return u(h)},filter:function(){return l}}},assignMedium:function(u){s=!0;var m=[];if(l.length){var h=l;l=[],h.forEach(u),m=l}var v=function(){var b=m;m=[],b.forEach(u)},p=function(){return Promise.resolve().then(v)};p(),l={push:function(b){m.push(b),p()},filter:function(b){return m=m.filter(b),l}}}};return c}function hC(n){n===void 0&&(n={});var r=mC(null);return r.options=Hn({async:!0,ssr:!1},n),r}var hy=function(n){var r=n.sideCar,l=my(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 g.createElement(s,Hn({},l))};hy.isSideCarExport=!0;function pC(n,r){return n.useMedium(r),hy}var py=hC(),Ld=function(){},tc=g.forwardRef(function(n,r){var l=g.useRef(null),s=g.useState({onScrollCapture:Ld,onWheelCapture:Ld,onTouchMoveCapture:Ld}),c=s[0],u=s[1],m=n.forwardProps,h=n.children,v=n.className,p=n.removeScrollBar,b=n.enabled,y=n.shards,S=n.sideCar,N=n.noRelative,T=n.noIsolation,E=n.inert,R=n.allowPinchZoom,A=n.as,_=A===void 0?"div":A,k=n.gapMode,U=my(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=S,Y=dC([l,r]),G=Hn(Hn({},U),c);return g.createElement(g.Fragment,null,b&&g.createElement(z,{sideCar:py,removeScrollBar:p,shards:y,noRelative:N,noIsolation:T,inert:E,setCallbacks:u,allowPinchZoom:!!R,lockRef:l,gapMode:k}),m?g.cloneElement(g.Children.only(h),Hn(Hn({},G),{ref:Y})):g.createElement(_,Hn({},G,{className:v,ref:Y}),h))});tc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tc.classNames={fullWidth:Ci,zeroRight:Ri};var gC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function vC(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=gC();return r&&n.setAttribute("nonce",r),n}function yC(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function bC(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var xC=function(){var n=0,r=null;return{add:function(l){n==0&&(r=vC())&&(yC(r,l),bC(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},SC=function(){var n=xC();return function(r,l){g.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&l])}},gy=function(){var n=SC(),r=function(l){var s=l.styles,c=l.dynamic;return n(s,c),null};return r},wC={left:0,top:0,right:0,gap:0},Ud=function(n){return parseInt(n||"",10)||0},EC=function(n){var r=window.getComputedStyle(document.body),l=r[n==="padding"?"paddingLeft":"marginLeft"],s=r[n==="padding"?"paddingTop":"marginTop"],c=r[n==="padding"?"paddingRight":"marginRight"];return[Ud(l),Ud(s),Ud(c)]},NC=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return wC;var r=EC(n),l=document.documentElement.clientWidth,s=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,s-l+r[2]-r[0])}},TC=gy(),wl="data-scroll-locked",RC=function(n,r,l,s){var c=n.left,u=n.top,m=n.right,h=n.gap;return l===void 0&&(l="margin"),`
|
|
267
|
+
.`.concat(sC,` {
|
|
268
|
+
overflow: hidden `).concat(s,`;
|
|
269
|
+
padding-right: `).concat(h,"px ").concat(s,`;
|
|
270
|
+
}
|
|
271
|
+
body[`).concat(wl,`] {
|
|
272
|
+
overflow: hidden `).concat(s,`;
|
|
273
|
+
overscroll-behavior: contain;
|
|
274
|
+
`).concat([r&&"position: relative ".concat(s,";"),l==="margin"&&`
|
|
275
|
+
padding-left: `.concat(c,`px;
|
|
276
|
+
padding-top: `).concat(u,`px;
|
|
277
|
+
padding-right: `).concat(m,`px;
|
|
278
|
+
margin-left:0;
|
|
279
|
+
margin-top:0;
|
|
280
|
+
margin-right: `).concat(h,"px ").concat(s,`;
|
|
281
|
+
`),l==="padding"&&"padding-right: ".concat(h,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.`).concat(Ri,` {
|
|
285
|
+
right: `).concat(h,"px ").concat(s,`;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.`).concat(Ci,` {
|
|
289
|
+
margin-right: `).concat(h,"px ").concat(s,`;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.`).concat(Ri," .").concat(Ri,` {
|
|
293
|
+
right: 0 `).concat(s,`;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.`).concat(Ci," .").concat(Ci,` {
|
|
297
|
+
margin-right: 0 `).concat(s,`;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
body[`).concat(wl,`] {
|
|
301
|
+
`).concat(iC,": ").concat(h,`px;
|
|
302
|
+
}
|
|
303
|
+
`)},Dv=function(){var n=parseInt(document.body.getAttribute(wl)||"0",10);return isFinite(n)?n:0},CC=function(){g.useEffect(function(){return document.body.setAttribute(wl,(Dv()+1).toString()),function(){var n=Dv()-1;n<=0?document.body.removeAttribute(wl):document.body.setAttribute(wl,n.toString())}},[])},AC=function(n){var r=n.noRelative,l=n.noImportant,s=n.gapMode,c=s===void 0?"margin":s;CC();var u=g.useMemo(function(){return NC(c)},[c]);return g.createElement(TC,{styles:RC(u,!r,c,l?"":"!important")})},rf=!1;if(typeof window<"u")try{var yi=Object.defineProperty({},"passive",{get:function(){return rf=!0,!0}});window.addEventListener("test",yi,yi),window.removeEventListener("test",yi,yi)}catch{rf=!1}var hl=rf?{passive:!1}:!1,jC=function(n){return n.tagName==="TEXTAREA"},vy=function(n,r){if(!(n instanceof Element))return!1;var l=window.getComputedStyle(n);return l[r]!=="hidden"&&!(l.overflowY===l.overflowX&&!jC(n)&&l[r]==="visible")},_C=function(n){return vy(n,"overflowY")},kC=function(n){return vy(n,"overflowX")},zv=function(n,r){var l=r.ownerDocument,s=r;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var c=yy(n,s);if(c){var u=by(n,s),m=u[1],h=u[2];if(m>h)return!0}s=s.parentNode}while(s&&s!==l.body);return!1},MC=function(n){var r=n.scrollTop,l=n.scrollHeight,s=n.clientHeight;return[r,l,s]},OC=function(n){var r=n.scrollLeft,l=n.scrollWidth,s=n.clientWidth;return[r,l,s]},yy=function(n,r){return n==="v"?_C(r):kC(r)},by=function(n,r){return n==="v"?MC(r):OC(r)},DC=function(n,r){return n==="h"&&r==="rtl"?-1:1},zC=function(n,r,l,s,c){var u=DC(n,window.getComputedStyle(r).direction),m=u*s,h=l.target,v=r.contains(h),p=!1,b=m>0,y=0,S=0;do{if(!h)break;var N=by(n,h),T=N[0],E=N[1],R=N[2],A=E-R-u*T;(T||A)&&yy(n,h)&&(y+=A,S+=T);var _=h.parentNode;h=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!v&&h!==document.body||v&&(r.contains(h)||r===h));return(b&&Math.abs(y)<1||!b&&Math.abs(S)<1)&&(p=!0),p},bi=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Lv=function(n){return[n.deltaX,n.deltaY]},Uv=function(n){return n&&"current"in n?n.current:n},LC=function(n,r){return n[0]===r[0]&&n[1]===r[1]},UC=function(n){return`
|
|
304
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
305
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
306
|
+
`)},BC=0,pl=[];function HC(n){var r=g.useRef([]),l=g.useRef([0,0]),s=g.useRef(),c=g.useState(BC++)[0],u=g.useState(gy)[0],m=g.useRef(n);g.useEffect(function(){m.current=n},[n]),g.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(c));var E=oC([n.lockRef.current],(n.shards||[]).map(Uv),!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=g.useCallback(function(E,R){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!m.current.allowPinchZoom;var A=bi(E),_=l.current,k="deltaX"in E?E.deltaX:_[0]-A[0],U="deltaY"in E?E.deltaY:_[1]-A[1],z,Y=E.target,G=Math.abs(k)>Math.abs(U)?"h":"v";if("touches"in E&&G==="h"&&Y.type==="range")return!1;var P=window.getSelection(),ee=P&&P.anchorNode,re=ee?ee===Y||ee.contains(Y):!1;if(re)return!1;var fe=zv(G,Y);if(!fe)return!0;if(fe?z=G:(z=G==="v"?"h":"v",fe=zv(G,Y)),!fe)return!1;if(!s.current&&"changedTouches"in E&&(k||U)&&(s.current=z),!z)return!0;var ue=s.current||z;return zC(ue,R,E,ue==="h"?k:U)},[]),v=g.useCallback(function(E){var R=E;if(!(!pl.length||pl[pl.length-1]!==u)){var A="deltaY"in R?Lv(R):bi(R),_=r.current.filter(function(z){return z.name===R.type&&(z.target===R.target||R.target===z.shadowParent)&&LC(z.delta,A)})[0];if(_&&_.should){R.cancelable&&R.preventDefault();return}if(!_){var k=(m.current.shards||[]).map(Uv).filter(Boolean).filter(function(z){return z.contains(R.target)}),U=k.length>0?h(R,k[0]):!m.current.noIsolation;U&&R.cancelable&&R.preventDefault()}}},[]),p=g.useCallback(function(E,R,A,_){var k={name:E,delta:R,target:A,should:_,shadowParent:$C(A)};r.current.push(k),setTimeout(function(){r.current=r.current.filter(function(U){return U!==k})},1)},[]),b=g.useCallback(function(E){l.current=bi(E),s.current=void 0},[]),y=g.useCallback(function(E){p(E.type,Lv(E),E.target,h(E,n.lockRef.current))},[]),S=g.useCallback(function(E){p(E.type,bi(E),E.target,h(E,n.lockRef.current))},[]);g.useEffect(function(){return pl.push(u),n.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:S}),document.addEventListener("wheel",v,hl),document.addEventListener("touchmove",v,hl),document.addEventListener("touchstart",b,hl),function(){pl=pl.filter(function(E){return E!==u}),document.removeEventListener("wheel",v,hl),document.removeEventListener("touchmove",v,hl),document.removeEventListener("touchstart",b,hl)}},[]);var N=n.removeScrollBar,T=n.inert;return g.createElement(g.Fragment,null,T?g.createElement(u,{styles:UC(c)}):null,N?g.createElement(AC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function $C(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const PC=pC(py,HC);var Df=g.forwardRef(function(n,r){return g.createElement(tc,Hn({},n,{ref:r,sideCar:PC}))});Df.classNames=tc.classNames;var qC=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},gl=new WeakMap,xi=new WeakMap,Si={},Bd=0,xy=function(n){return n&&(n.host||xy(n.parentNode))},VC=function(n,r){return r.map(function(l){if(n.contains(l))return l;var s=xy(l);return s&&n.contains(s)?s:(console.error("aria-hidden",l,"in not contained inside",n,". Doing nothing"),null)}).filter(function(l){return!!l})},YC=function(n,r,l,s){var c=VC(r,Array.isArray(n)?n:[n]);Si[l]||(Si[l]=new WeakMap);var u=Si[l],m=[],h=new Set,v=new Set(c),p=function(y){!y||h.has(y)||(h.add(y),p(y.parentNode))};c.forEach(p);var b=function(y){!y||v.has(y)||Array.prototype.forEach.call(y.children,function(S){if(h.has(S))b(S);else try{var N=S.getAttribute(s),T=N!==null&&N!=="false",E=(gl.get(S)||0)+1,R=(u.get(S)||0)+1;gl.set(S,E),u.set(S,R),m.push(S),E===1&&T&&xi.set(S,!0),R===1&&S.setAttribute(l,"true"),T||S.setAttribute(s,"true")}catch(A){console.error("aria-hidden: cannot operate on ",S,A)}})};return b(r),h.clear(),Bd++,function(){m.forEach(function(y){var S=gl.get(y)-1,N=u.get(y)-1;gl.set(y,S),u.set(y,N),S||(xi.has(y)||y.removeAttribute(s),xi.delete(y)),N||y.removeAttribute(l)}),Bd--,Bd||(gl=new WeakMap,gl=new WeakMap,xi=new WeakMap,Si={})}},Sy=function(n,r,l){l===void 0&&(l="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),c=qC(n);return c?(s.push.apply(s,Array.from(c.querySelectorAll("[aria-live], script"))),YC(s,c,l,"aria-hidden")):function(){return null}},nc="Dialog",[wy,Ey]=Xa(nc),[GC,Nn]=wy(nc),Ny=n=>{const{__scopeDialog:r,children:l,open:s,defaultOpen:c,onOpenChange:u,modal:m=!0}=n,h=g.useRef(null),v=g.useRef(null),[p,b]=Tl({prop:s,defaultProp:c??!1,onChange:u,caller:nc});return f.jsx(GC,{scope:r,triggerRef:h,contentRef:v,contentId:Pa(),titleId:Pa(),descriptionId:Pa(),open:p,onOpenChange:b,onOpenToggle:g.useCallback(()=>b(y=>!y),[b]),modal:m,children:l})};Ny.displayName=nc;var Ty="DialogTrigger",Ry=g.forwardRef((n,r)=>{const{__scopeDialog:l,...s}=n,c=Nn(Ty,l),u=tt(r,c.triggerRef);return f.jsx(Le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":Uf(c.open),...s,ref:u,onClick:ze(n.onClick,c.onOpenToggle)})});Ry.displayName=Ty;var zf="DialogPortal",[IC,Cy]=wy(zf,{forceMount:void 0}),Ay=n=>{const{__scopeDialog:r,forceMount:l,children:s,container:c}=n,u=Nn(zf,r);return f.jsx(IC,{scope:r,forceMount:l,children:g.Children.map(s,m=>f.jsx(kl,{present:l||u.open,children:f.jsx(Of,{asChild:!0,container:c,children:m})}))})};Ay.displayName=zf;var Li="DialogOverlay",jy=g.forwardRef((n,r)=>{const l=Cy(Li,n.__scopeDialog),{forceMount:s=l.forceMount,...c}=n,u=Nn(Li,n.__scopeDialog);return u.modal?f.jsx(kl,{present:s||u.open,children:f.jsx(KC,{...c,ref:r})}):null});jy.displayName=Li;var XC=Xo("DialogOverlay.RemoveScroll"),KC=g.forwardRef((n,r)=>{const{__scopeDialog:l,...s}=n,c=Nn(Li,l);return f.jsx(Df,{as:XC,allowPinchZoom:!0,shards:[c.contentRef],children:f.jsx(Le.div,{"data-state":Uf(c.open),...s,ref:r,style:{pointerEvents:"auto",...s.style}})})}),xr="DialogContent",_y=g.forwardRef((n,r)=>{const l=Cy(xr,n.__scopeDialog),{forceMount:s=l.forceMount,...c}=n,u=Nn(xr,n.__scopeDialog);return f.jsx(kl,{present:s||u.open,children:u.modal?f.jsx(QC,{...c,ref:r}):f.jsx(ZC,{...c,ref:r})})});_y.displayName=xr;var QC=g.forwardRef((n,r)=>{const l=Nn(xr,n.__scopeDialog),s=g.useRef(null),c=tt(r,l.contentRef,s);return g.useEffect(()=>{const u=s.current;if(u)return Sy(u)},[]),f.jsx(ky,{...n,ref:c,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ze(n.onCloseAutoFocus,u=>{var m;u.preventDefault(),(m=l.triggerRef.current)==null||m.focus()}),onPointerDownOutside:ze(n.onPointerDownOutside,u=>{const m=u.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0;(m.button===2||h)&&u.preventDefault()}),onFocusOutside:ze(n.onFocusOutside,u=>u.preventDefault())})}),ZC=g.forwardRef((n,r)=>{const l=Nn(xr,n.__scopeDialog),s=g.useRef(!1),c=g.useRef(!1);return f.jsx(ky,{...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=l.triggerRef.current)==null||h.focus(),u.preventDefault()),s.current=!1,c.current=!1},onInteractOutside:u=>{var v,p;(v=n.onInteractOutside)==null||v.call(n,u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=u.target;((p=l.triggerRef.current)==null?void 0:p.contains(m))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&c.current&&u.preventDefault()}})}),ky=g.forwardRef((n,r)=>{const{__scopeDialog:l,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:u,...m}=n,h=Nn(xr,l),v=g.useRef(null),p=tt(r,v);return fy(),f.jsxs(f.Fragment,{children:[f.jsx(Mf,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:c,onUnmountAutoFocus:u,children:f.jsx(kf,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Uf(h.open),...m,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(WC,{titleId:h.titleId}),f.jsx(eA,{contentRef:v,descriptionId:h.descriptionId})]})]})}),Lf="DialogTitle",My=g.forwardRef((n,r)=>{const{__scopeDialog:l,...s}=n,c=Nn(Lf,l);return f.jsx(Le.h2,{id:c.titleId,...s,ref:r})});My.displayName=Lf;var Oy="DialogDescription",Dy=g.forwardRef((n,r)=>{const{__scopeDialog:l,...s}=n,c=Nn(Oy,l);return f.jsx(Le.p,{id:c.descriptionId,...s,ref:r})});Dy.displayName=Oy;var zy="DialogClose",Ly=g.forwardRef((n,r)=>{const{__scopeDialog:l,...s}=n,c=Nn(zy,l);return f.jsx(Le.button,{type:"button",...s,ref:r,onClick:ze(n.onClick,()=>c.onOpenChange(!1))})});Ly.displayName=zy;function Uf(n){return n?"open":"closed"}var Uy="DialogTitleWarning",[FC,By]=CR(Uy,{contentName:xr,titleName:Lf,docsSlug:"dialog"}),WC=({titleId:n})=>{const r=By(Uy),l=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
|
|
307
|
+
|
|
308
|
+
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
309
|
+
|
|
310
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return g.useEffect(()=>{n&&(document.getElementById(n)||console.error(l))},[l,n]),null},JC="DialogDescriptionWarning",eA=({contentRef:n,descriptionId:r})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${By(JC).contentName}}.`;return g.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},Hy=Ny,$y=Ry,Py=Ay,Bf=jy,Hf=_y,$f=My,Pf=Dy,ac=Ly;const tA=Hy,nA=$y,aA=Py,N3=ac,qy=g.forwardRef(({className:n,...r},l)=>f.jsx(Bf,{ref:l,className:oe("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}));qy.displayName=Bf.displayName;const Vy=g.forwardRef(({className:n,children:r,...l},s)=>f.jsxs(aA,{children:[f.jsx(qy,{}),f.jsxs(Hf,{ref:s,className:oe("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),...l,children:[r,f.jsxs(ac,{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(V0,{className:"h-3.5 w-3.5"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Vy.displayName=Hf.displayName;const Yy=({className:n,...r})=>f.jsx("div",{className:oe("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});Yy.displayName="DialogHeader";const rA=({className:n,...r})=>f.jsx("div",{className:oe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});rA.displayName="DialogFooter";const Gy=g.forwardRef(({className:n,...r},l)=>f.jsx($f,{ref:l,className:oe("text-sm font-semibold leading-none tracking-tight",n),...r}));Gy.displayName=$f.displayName;const Iy=g.forwardRef(({className:n,...r},l)=>f.jsx(Pf,{ref:l,className:oe("text-[11px] text-muted-foreground",n),...r}));Iy.displayName=Pf.displayName;function lA({children:n,open:r,onOpenChange:l,showTrigger:s=!0}){const[c,u]=g.useState(!1),m=r??c,h=g.useCallback(v=>{v&&RR("settings.opened",{surface:"settings"}),r===void 0&&u(v),l==null||l(v)},[r,l]);return f.jsxs(tA,{open:m,onOpenChange:h,children:[s&&f.jsx(nA,{asChild:!0,children:f.jsx(mn,{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(VN,{className:"h-4 w-4"})})}),f.jsxs(Vy,{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(Yy,{className:"shrink-0 border-b border-border/60 px-3 py-1.5 sm:px-3.5",children:[f.jsxs(Gy,{className:"flex items-center gap-1.5 text-[11px]",children:[f.jsx(_N,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),f.jsx(Iy,{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 Bv(n,[r,l]){return Math.min(l,Math.max(r,n))}function Xy(n){const r=n+"CollectionProvider",[l,s]=Xa(r),[c,u]=l(r,{collectionRef:{current:null},itemMap:new Map}),m=E=>{const{scope:R,children:A}=E,_=te.useRef(null),k=te.useRef(new Map).current;return f.jsx(c,{scope:R,itemMap:k,collectionRef:_,children:A})};m.displayName=r;const h=n+"CollectionSlot",v=Xo(h),p=te.forwardRef((E,R)=>{const{scope:A,children:_}=E,k=u(h,A),U=tt(R,k.collectionRef);return f.jsx(v,{ref:U,children:_})});p.displayName=h;const b=n+"CollectionItemSlot",y="data-radix-collection-item",S=Xo(b),N=te.forwardRef((E,R)=>{const{scope:A,children:_,...k}=E,U=te.useRef(null),z=tt(R,U),Y=u(b,A);return te.useEffect(()=>(Y.itemMap.set(U,{ref:U,...k}),()=>void Y.itemMap.delete(U))),f.jsx(S,{[y]:"",ref:z,children:_})});N.displayName=b;function T(E){const R=u(n+"CollectionConsumer",E);return te.useCallback(()=>{const _=R.collectionRef.current;if(!_)return[];const k=Array.from(_.querySelectorAll(`[${y}]`));return Array.from(R.itemMap.values()).sort((Y,G)=>k.indexOf(Y.ref.current)-k.indexOf(G.ref.current))},[R.collectionRef,R.itemMap])}return[{Provider:m,Slot:p,ItemSlot:N},T,s]}var oA=g.createContext(void 0);function qf(n){const r=g.useContext(oA);return n||r||"ltr"}const sA=["top","right","bottom","left"],Ya=Math.min,en=Math.max,Ui=Math.round,wi=Math.floor,qn=n=>({x:n,y:n}),iA={left:"right",right:"left",bottom:"top",top:"bottom"};function lf(n,r,l){return en(n,Ya(r,l))}function ua(n,r){return typeof n=="function"?n(r):n}function da(n){return n.split("-")[0]}function Ml(n){return n.split("-")[1]}function Vf(n){return n==="x"?"y":"x"}function Yf(n){return n==="y"?"height":"width"}function $n(n){const r=n[0];return r==="t"||r==="b"?"y":"x"}function Gf(n){return Vf($n(n))}function cA(n,r,l){l===void 0&&(l=!1);const s=Ml(n),c=Gf(n),u=Yf(c);let m=c==="x"?s===(l?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(m=Bi(m)),[m,Bi(m)]}function uA(n){const r=Bi(n);return[of(n),r,of(r)]}function of(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Hv=["left","right"],$v=["right","left"],dA=["top","bottom"],fA=["bottom","top"];function mA(n,r,l){switch(n){case"top":case"bottom":return l?r?$v:Hv:r?Hv:$v;case"left":case"right":return r?dA:fA;default:return[]}}function hA(n,r,l,s){const c=Ml(n);let u=mA(da(n),l==="start",s);return c&&(u=u.map(m=>m+"-"+c),r&&(u=u.concat(u.map(of)))),u}function Bi(n){const r=da(n);return iA[r]+n.slice(r.length)}function pA(n){return{top:0,right:0,bottom:0,left:0,...n}}function Ky(n){return typeof n!="number"?pA(n):{top:n,right:n,bottom:n,left:n}}function Hi(n){const{x:r,y:l,width:s,height:c}=n;return{width:s,height:c,top:l,left:r,right:r+s,bottom:l+c,x:r,y:l}}function Pv(n,r,l){let{reference:s,floating:c}=n;const u=$n(r),m=Gf(r),h=Yf(m),v=da(r),p=u==="y",b=s.x+s.width/2-c.width/2,y=s.y+s.height/2-c.height/2,S=s[h]/2-c[h]/2;let N;switch(v){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};break;case"left":N={x:s.x-c.width,y};break;default:N={x:s.x,y:s.y}}switch(Ml(r)){case"start":N[m]-=S*(l&&p?-1:1);break;case"end":N[m]+=S*(l&&p?-1:1);break}return N}async function gA(n,r){var l;r===void 0&&(r={});const{x:s,y:c,platform:u,rects:m,elements:h,strategy:v}=n,{boundary:p="clippingAncestors",rootBoundary:b="viewport",elementContext:y="floating",altBoundary:S=!1,padding:N=0}=ua(r,n),T=Ky(N),R=h[S?y==="floating"?"reference":"floating":y],A=Hi(await u.getClippingRect({element:(l=await(u.isElement==null?void 0:u.isElement(R)))==null||l?R:R.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:p,rootBoundary:b,strategy:v})),_=y==="floating"?{x:s,y:c,width:m.floating.width,height:m.floating.height}:m.reference,k=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h.floating)),U=await(u.isElement==null?void 0:u.isElement(k))?await(u.getScale==null?void 0:u.getScale(k))||{x:1,y:1}:{x:1,y:1},z=Hi(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:_,offsetParent:k,strategy:v}):_);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 vA=50,yA=async(n,r,l)=>{const{placement:s="bottom",strategy:c="absolute",middleware:u=[],platform:m}=l,h=m.detectOverflow?m:{...m,detectOverflow:gA},v=await(m.isRTL==null?void 0:m.isRTL(r));let p=await m.getElementRects({reference:n,floating:r,strategy:c}),{x:b,y}=Pv(p,s,v),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:_}=R,{x:k,y:U,data:z,reset:Y}=await _({x:b,y,initialPlacement:s,placement:S,strategy:c,middlewareData:T,rects:p,platform:h,elements:{reference:n,floating:r}});b=k??b,y=U??y,T[A]={...T[A],...z},Y&&N<vA&&(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}=Pv(p,S,v)),E=-1)}return{x:b,y,placement:S,strategy:c,middlewareData:T}},bA=n=>({name:"arrow",options:n,async fn(r){const{x:l,y:s,placement:c,rects:u,platform:m,elements:h,middlewareData:v}=r,{element:p,padding:b=0}=ua(n,r)||{};if(p==null)return{};const y=Ky(b),S={x:l,y:s},N=Gf(c),T=Yf(N),E=await m.getDimensions(p),R=N==="y",A=R?"top":"left",_=R?"bottom":"right",k=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[k]:0;(!G||!await(m.isElement==null?void 0:m.isElement(Y)))&&(G=h.floating[k]||u.floating[T]);const P=U/2-z/2,ee=G/2-E[T]/2-1,re=Ya(y[A],ee),fe=Ya(y[_],ee),ue=re,ie=G-E[T]-fe,me=G/2-E[T]/2+P,ne=lf(ue,me,ie),M=!v.arrow&&Ml(c)!=null&&me!==ne&&u.reference[T]/2-(me<ue?re:fe)-E[T]/2<0,q=M?me<ue?me-ue:me-ie:0;return{[N]:S[N]+q,data:{[N]:ne,centerOffset:me-ne-q,...M&&{alignmentOffset:q}},reset:M}}}),xA=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var l,s;const{placement:c,middlewareData:u,rects:m,initialPlacement:h,platform:v,elements:p}=r,{mainAxis:b=!0,crossAxis:y=!0,fallbackPlacements:S,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:E=!0,...R}=ua(n,r);if((l=u.arrow)!=null&&l.alignmentOffset)return{};const A=da(c),_=$n(h),k=da(h)===h,U=await(v.isRTL==null?void 0:v.isRTL(p.floating)),z=S||(k||!E?[Bi(h)]:uA(h)),Y=T!=="none";!S&&Y&&z.push(...hA(h,E,T,U));const G=[h,...z],P=await v.detectOverflow(r,R),ee=[];let re=((s=u.flip)==null?void 0:s.overflows)||[];if(b&&ee.push(P[A]),y){const me=cA(c,m,U);ee.push(P[me[0]],P[me[1]])}if(re=[...re,{placement:c,overflows:ee}],!ee.every(me=>me<=0)){var fe,ue;const me=(((fe=u.flip)==null?void 0:fe.index)||0)+1,ne=G[me];if(ne&&(!(y==="alignment"?_!==$n(ne):!1)||re.every(Q=>$n(Q.placement)===_?Q.overflows[0]>0:!0)))return{data:{index:me,overflows:re},reset:{placement:ne}};let M=(ue=re.filter(q=>q.overflows[0]<=0).sort((q,Q)=>q.overflows[1]-Q.overflows[1])[0])==null?void 0:ue.placement;if(!M)switch(N){case"bestFit":{var ie;const q=(ie=re.filter(Q=>{if(Y){const de=$n(Q.placement);return de===_||de==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(de=>de>0).reduce((de,C)=>de+C,0)]).sort((Q,de)=>Q[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 qv(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function Vv(n){return sA.some(r=>n[r]>=0)}const SA=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:l,platform:s}=r,{strategy:c="referenceHidden",...u}=ua(n,r);switch(c){case"referenceHidden":{const m=await s.detectOverflow(r,{...u,elementContext:"reference"}),h=qv(m,l.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Vv(h)}}}case"escaped":{const m=await s.detectOverflow(r,{...u,altBoundary:!0}),h=qv(m,l.floating);return{data:{escapedOffsets:h,escaped:Vv(h)}}}default:return{}}}}},Qy=new Set(["left","top"]);async function wA(n,r){const{placement:l,platform:s,elements:c}=n,u=await(s.isRTL==null?void 0:s.isRTL(c.floating)),m=da(l),h=Ml(l),v=$n(l)==="y",p=Qy.has(m)?-1:1,b=u&&v?-1:1,y=ua(r,n);let{mainAxis:S,crossAxis:N,alignmentAxis:T}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return h&&typeof T=="number"&&(N=h==="end"?T*-1:T),v?{x:N*b,y:S*p}:{x:S*p,y:N*b}}const EA=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var l,s;const{x:c,y:u,placement:m,middlewareData:h}=r,v=await wA(r,n);return m===((l=h.offset)==null?void 0:l.placement)&&(s=h.arrow)!=null&&s.alignmentOffset?{}:{x:c+v.x,y:u+v.y,data:{...v,placement:m}}}}},NA=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:l,y:s,placement:c,platform:u}=r,{mainAxis:m=!0,crossAxis:h=!1,limiter:v={fn:A=>{let{x:_,y:k}=A;return{x:_,y:k}}},...p}=ua(n,r),b={x:l,y:s},y=await u.detectOverflow(r,p),S=$n(da(c)),N=Vf(S);let T=b[N],E=b[S];if(m){const A=N==="y"?"top":"left",_=N==="y"?"bottom":"right",k=T+y[A],U=T-y[_];T=lf(k,T,U)}if(h){const A=S==="y"?"top":"left",_=S==="y"?"bottom":"right",k=E+y[A],U=E-y[_];E=lf(k,E,U)}const R=v.fn({...r,[N]:T,[S]:E});return{...R,data:{x:R.x-l,y:R.y-s,enabled:{[N]:m,[S]:h}}}}}},TA=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:l,y:s,placement:c,rects:u,middlewareData:m}=r,{offset:h=0,mainAxis:v=!0,crossAxis:p=!0}=ua(n,r),b={x:l,y:s},y=$n(c),S=Vf(y);let N=b[S],T=b[y];const E=ua(h,r),R=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(v){const k=S==="y"?"height":"width",U=u.reference[S]-u.floating[k]+R.mainAxis,z=u.reference[S]+u.reference[k]-R.mainAxis;N<U?N=U:N>z&&(N=z)}if(p){var A,_;const k=S==="y"?"width":"height",U=Qy.has(da(c)),z=u.reference[y]-u.floating[k]+(U&&((A=m.offset)==null?void 0:A[y])||0)+(U?0:R.crossAxis),Y=u.reference[y]+u.reference[k]+(U?0:((_=m.offset)==null?void 0:_[y])||0)-(U?R.crossAxis:0);T<z?T=z:T>Y&&(T=Y)}return{[S]:N,[y]:T}}}},RA=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var l,s;const{placement:c,rects:u,platform:m,elements:h}=r,{apply:v=()=>{},...p}=ua(n,r),b=await m.detectOverflow(r,p),y=da(c),S=Ml(c),N=$n(c)==="y",{width:T,height:E}=u.floating;let R,A;y==="top"||y==="bottom"?(R=y,A=S===(await(m.isRTL==null?void 0:m.isRTL(h.floating))?"start":"end")?"left":"right"):(A=y,R=S==="end"?"top":"bottom");const _=E-b.top-b.bottom,k=T-b.left-b.right,U=Ya(E-b[R],_),z=Ya(T-b[A],k),Y=!r.middlewareData.shift;let G=U,P=z;if((l=r.middlewareData.shift)!=null&&l.enabled.x&&(P=k),(s=r.middlewareData.shift)!=null&&s.enabled.y&&(G=_),Y&&!S){const re=en(b.left,0),fe=en(b.right,0),ue=en(b.top,0),ie=en(b.bottom,0);N?P=T-2*(re!==0||fe!==0?re+fe:en(b.left,b.right)):G=E-2*(ue!==0||ie!==0?ue+ie:en(b.top,b.bottom))}await v({...r,availableWidth:P,availableHeight:G});const ee=await m.getDimensions(h.floating);return T!==ee.width||E!==ee.height?{reset:{rects:!0}}:{}}}};function rc(){return typeof window<"u"}function Ol(n){return Zy(n)?(n.nodeName||"").toLowerCase():"#document"}function tn(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Yn(n){var r;return(r=(Zy(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function Zy(n){return rc()?n instanceof Node||n instanceof tn(n).Node:!1}function wn(n){return rc()?n instanceof Element||n instanceof tn(n).Element:!1}function fa(n){return rc()?n instanceof HTMLElement||n instanceof tn(n).HTMLElement:!1}function Yv(n){return!rc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof tn(n).ShadowRoot}function Wo(n){const{overflow:r,overflowX:l,overflowY:s,display:c}=En(n);return/auto|scroll|overlay|hidden|clip/.test(r+s+l)&&c!=="inline"&&c!=="contents"}function CA(n){return/^(table|td|th)$/.test(Ol(n))}function lc(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const AA=/transform|translate|scale|rotate|perspective|filter/,jA=/paint|layout|strict|content/,vr=n=>!!n&&n!=="none";let Hd;function If(n){const r=wn(n)?En(n):n;return vr(r.transform)||vr(r.translate)||vr(r.scale)||vr(r.rotate)||vr(r.perspective)||!Xf()&&(vr(r.backdropFilter)||vr(r.filter))||AA.test(r.willChange||"")||jA.test(r.contain||"")}function _A(n){let r=Ga(n);for(;fa(r)&&!Rl(r);){if(If(r))return r;if(lc(r))return null;r=Ga(r)}return null}function Xf(){return Hd==null&&(Hd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Hd}function Rl(n){return/^(html|body|#document)$/.test(Ol(n))}function En(n){return tn(n).getComputedStyle(n)}function oc(n){return wn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ga(n){if(Ol(n)==="html")return n;const r=n.assignedSlot||n.parentNode||Yv(n)&&n.host||Yn(n);return Yv(r)?r.host:r}function Fy(n){const r=Ga(n);return Rl(r)?n.ownerDocument?n.ownerDocument.body:n.body:fa(r)&&Wo(r)?r:Fy(r)}function Ko(n,r,l){var s;r===void 0&&(r=[]),l===void 0&&(l=!0);const c=Fy(n),u=c===((s=n.ownerDocument)==null?void 0:s.body),m=tn(c);if(u){const h=sf(m);return r.concat(m,m.visualViewport||[],Wo(c)?c:[],h&&l?Ko(h):[])}else return r.concat(c,Ko(c,[],l))}function sf(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Wy(n){const r=En(n);let l=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const c=fa(n),u=c?n.offsetWidth:l,m=c?n.offsetHeight:s,h=Ui(l)!==u||Ui(s)!==m;return h&&(l=u,s=m),{width:l,height:s,$:h}}function Kf(n){return wn(n)?n:n.contextElement}function El(n){const r=Kf(n);if(!fa(r))return qn(1);const l=r.getBoundingClientRect(),{width:s,height:c,$:u}=Wy(r);let m=(u?Ui(l.width):l.width)/s,h=(u?Ui(l.height):l.height)/c;return(!m||!Number.isFinite(m))&&(m=1),(!h||!Number.isFinite(h))&&(h=1),{x:m,y:h}}const kA=qn(0);function Jy(n){const r=tn(n);return!Xf()||!r.visualViewport?kA:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function MA(n,r,l){return r===void 0&&(r=!1),!l||r&&l!==tn(n)?!1:r}function Sr(n,r,l,s){r===void 0&&(r=!1),l===void 0&&(l=!1);const c=n.getBoundingClientRect(),u=Kf(n);let m=qn(1);r&&(s?wn(s)&&(m=El(s)):m=El(n));const h=MA(u,l,s)?Jy(u):qn(0);let v=(c.left+h.x)/m.x,p=(c.top+h.y)/m.y,b=c.width/m.x,y=c.height/m.y;if(u){const S=tn(u),N=s&&wn(s)?tn(s):s;let T=S,E=sf(T);for(;E&&s&&N!==T;){const R=El(E),A=E.getBoundingClientRect(),_=En(E),k=A.left+(E.clientLeft+parseFloat(_.paddingLeft))*R.x,U=A.top+(E.clientTop+parseFloat(_.paddingTop))*R.y;v*=R.x,p*=R.y,b*=R.x,y*=R.y,v+=k,p+=U,T=tn(E),E=sf(T)}}return Hi({width:b,height:y,x:v,y:p})}function sc(n,r){const l=oc(n).scrollLeft;return r?r.left+l:Sr(Yn(n)).left+l}function eb(n,r){const l=n.getBoundingClientRect(),s=l.left+r.scrollLeft-sc(n,l),c=l.top+r.scrollTop;return{x:s,y:c}}function OA(n){let{elements:r,rect:l,offsetParent:s,strategy:c}=n;const u=c==="fixed",m=Yn(s),h=r?lc(r.floating):!1;if(s===m||h&&u)return l;let v={scrollLeft:0,scrollTop:0},p=qn(1);const b=qn(0),y=fa(s);if((y||!y&&!u)&&((Ol(s)!=="body"||Wo(m))&&(v=oc(s)),y)){const N=Sr(s);p=El(s),b.x=N.x+s.clientLeft,b.y=N.y+s.clientTop}const S=m&&!y&&!u?eb(m,v):qn(0);return{width:l.width*p.x,height:l.height*p.y,x:l.x*p.x-v.scrollLeft*p.x+b.x+S.x,y:l.y*p.y-v.scrollTop*p.y+b.y+S.y}}function DA(n){return Array.from(n.getClientRects())}function zA(n){const r=Yn(n),l=oc(n),s=n.ownerDocument.body,c=en(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),u=en(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let m=-l.scrollLeft+sc(n);const h=-l.scrollTop;return En(s).direction==="rtl"&&(m+=en(r.clientWidth,s.clientWidth)-c),{width:c,height:u,x:m,y:h}}const Gv=25;function LA(n,r){const l=tn(n),s=Yn(n),c=l.visualViewport;let u=s.clientWidth,m=s.clientHeight,h=0,v=0;if(c){u=c.width,m=c.height;const b=Xf();(!b||b&&r==="fixed")&&(h=c.offsetLeft,v=c.offsetTop)}const p=sc(s);if(p<=0){const b=s.ownerDocument,y=b.body,S=getComputedStyle(y),N=b.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,T=Math.abs(s.clientWidth-y.clientWidth-N);T<=Gv&&(u-=T)}else p<=Gv&&(u+=p);return{width:u,height:m,x:h,y:v}}function UA(n,r){const l=Sr(n,!0,r==="fixed"),s=l.top+n.clientTop,c=l.left+n.clientLeft,u=fa(n)?El(n):qn(1),m=n.clientWidth*u.x,h=n.clientHeight*u.y,v=c*u.x,p=s*u.y;return{width:m,height:h,x:v,y:p}}function Iv(n,r,l){let s;if(r==="viewport")s=LA(n,l);else if(r==="document")s=zA(Yn(n));else if(wn(r))s=UA(r,l);else{const c=Jy(n);s={x:r.x-c.x,y:r.y-c.y,width:r.width,height:r.height}}return Hi(s)}function tb(n,r){const l=Ga(n);return l===r||!wn(l)||Rl(l)?!1:En(l).position==="fixed"||tb(l,r)}function BA(n,r){const l=r.get(n);if(l)return l;let s=Ko(n,[],!1).filter(h=>wn(h)&&Ol(h)!=="body"),c=null;const u=En(n).position==="fixed";let m=u?Ga(n):n;for(;wn(m)&&!Rl(m);){const h=En(m),v=If(m);!v&&h.position==="fixed"&&(c=null),(u?!v&&!c:!v&&h.position==="static"&&!!c&&(c.position==="absolute"||c.position==="fixed")||Wo(m)&&!v&&tb(n,m))?s=s.filter(b=>b!==m):c=h,m=Ga(m)}return r.set(n,s),s}function HA(n){let{element:r,boundary:l,rootBoundary:s,strategy:c}=n;const m=[...l==="clippingAncestors"?lc(r)?[]:BA(r,this._c):[].concat(l),s],h=Iv(r,m[0],c);let v=h.top,p=h.right,b=h.bottom,y=h.left;for(let S=1;S<m.length;S++){const N=Iv(r,m[S],c);v=en(N.top,v),p=Ya(N.right,p),b=Ya(N.bottom,b),y=en(N.left,y)}return{width:p-y,height:b-v,x:y,y:v}}function $A(n){const{width:r,height:l}=Wy(n);return{width:r,height:l}}function PA(n,r,l){const s=fa(r),c=Yn(r),u=l==="fixed",m=Sr(n,!0,u,r);let h={scrollLeft:0,scrollTop:0};const v=qn(0);function p(){v.x=sc(c)}if(s||!s&&!u)if((Ol(r)!=="body"||Wo(c))&&(h=oc(r)),s){const N=Sr(r,!0,u,r);v.x=N.x+r.clientLeft,v.y=N.y+r.clientTop}else c&&p();u&&!s&&c&&p();const b=c&&!s&&!u?eb(c,h):qn(0),y=m.left+h.scrollLeft-v.x-b.x,S=m.top+h.scrollTop-v.y-b.y;return{x:y,y:S,width:m.width,height:m.height}}function $d(n){return En(n).position==="static"}function Xv(n,r){if(!fa(n)||En(n).position==="fixed")return null;if(r)return r(n);let l=n.offsetParent;return Yn(n)===l&&(l=l.ownerDocument.body),l}function nb(n,r){const l=tn(n);if(lc(n))return l;if(!fa(n)){let c=Ga(n);for(;c&&!Rl(c);){if(wn(c)&&!$d(c))return c;c=Ga(c)}return l}let s=Xv(n,r);for(;s&&CA(s)&&$d(s);)s=Xv(s,r);return s&&Rl(s)&&$d(s)&&!If(s)?l:s||_A(n)||l}const qA=async function(n){const r=this.getOffsetParent||nb,l=this.getDimensions,s=await l(n.floating);return{reference:PA(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function VA(n){return En(n).direction==="rtl"}const YA={convertOffsetParentRelativeRectToViewportRelativeRect:OA,getDocumentElement:Yn,getClippingRect:HA,getOffsetParent:nb,getElementRects:qA,getClientRects:DA,getDimensions:$A,getScale:El,isElement:wn,isRTL:VA};function ab(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function GA(n,r){let l=null,s;const c=Yn(n);function u(){var h;clearTimeout(s),(h=l)==null||h.disconnect(),l=null}function m(h,v){h===void 0&&(h=!1),v===void 0&&(v=1),u();const p=n.getBoundingClientRect(),{left:b,top:y,width:S,height:N}=p;if(h||r(),!S||!N)return;const T=wi(y),E=wi(c.clientWidth-(b+S)),R=wi(c.clientHeight-(y+N)),A=wi(b),k={rootMargin:-T+"px "+-E+"px "+-R+"px "+-A+"px",threshold:en(0,Ya(1,v))||1};let U=!0;function z(Y){const G=Y[0].intersectionRatio;if(G!==v){if(!U)return m();G?m(!1,G):s=setTimeout(()=>{m(!1,1e-7)},1e3)}G===1&&!ab(p,n.getBoundingClientRect())&&m(),U=!1}try{l=new IntersectionObserver(z,{...k,root:c.ownerDocument})}catch{l=new IntersectionObserver(z,k)}l.observe(n)}return m(!0),u}function IA(n,r,l,s){s===void 0&&(s={});const{ancestorScroll:c=!0,ancestorResize:u=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:v=!1}=s,p=Kf(n),b=c||u?[...p?Ko(p):[],...r?Ko(r):[]]:[];b.forEach(A=>{c&&A.addEventListener("scroll",l,{passive:!0}),u&&A.addEventListener("resize",l)});const y=p&&h?GA(p,l):null;let S=-1,N=null;m&&(N=new ResizeObserver(A=>{let[_]=A;_&&_.target===p&&N&&r&&(N.unobserve(r),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var k;(k=N)==null||k.observe(r)})),l()}),p&&!v&&N.observe(p),r&&N.observe(r));let T,E=v?Sr(n):null;v&&R();function R(){const A=Sr(n);E&&!ab(E,A)&&l(),E=A,T=requestAnimationFrame(R)}return l(),()=>{var A;b.forEach(_=>{c&&_.removeEventListener("scroll",l),u&&_.removeEventListener("resize",l)}),y==null||y(),(A=N)==null||A.disconnect(),N=null,v&&cancelAnimationFrame(T)}}const XA=EA,KA=NA,QA=xA,ZA=RA,FA=SA,Kv=bA,WA=TA,JA=(n,r,l)=>{const s=new Map,c={platform:YA,...l},u={...c.platform,_c:s};return yA(n,r,{...c,platform:u})};var e5=typeof document<"u",t5=function(){},Ai=e5?g.useLayoutEffect:t5;function $i(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 l,s,c;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(l=n.length,l!==r.length)return!1;for(s=l;s--!==0;)if(!$i(n[s],r[s]))return!1;return!0}if(c=Object.keys(n),l=c.length,l!==Object.keys(r).length)return!1;for(s=l;s--!==0;)if(!{}.hasOwnProperty.call(r,c[s]))return!1;for(s=l;s--!==0;){const u=c[s];if(!(u==="_owner"&&n.$$typeof)&&!$i(n[u],r[u]))return!1}return!0}return n!==n&&r!==r}function rb(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Qv(n,r){const l=rb(n);return Math.round(r*l)/l}function Pd(n){const r=g.useRef(n);return Ai(()=>{r.current=n}),r}function n5(n){n===void 0&&(n={});const{placement:r="bottom",strategy:l="absolute",middleware:s=[],platform:c,elements:{reference:u,floating:m}={},transform:h=!0,whileElementsMounted:v,open:p}=n,[b,y]=g.useState({x:0,y:0,strategy:l,placement:r,middlewareData:{},isPositioned:!1}),[S,N]=g.useState(s);$i(S,s)||N(s);const[T,E]=g.useState(null),[R,A]=g.useState(null),_=g.useCallback(Q=>{Q!==Y.current&&(Y.current=Q,E(Q))},[]),k=g.useCallback(Q=>{Q!==G.current&&(G.current=Q,A(Q))},[]),U=u||T,z=m||R,Y=g.useRef(null),G=g.useRef(null),P=g.useRef(b),ee=v!=null,re=Pd(v),fe=Pd(c),ue=Pd(p),ie=g.useCallback(()=>{if(!Y.current||!G.current)return;const Q={placement:r,strategy:l,middleware:S};fe.current&&(Q.platform=fe.current),JA(Y.current,G.current,Q).then(de=>{const C={...de,isPositioned:ue.current!==!1};me.current&&!$i(P.current,C)&&(P.current=C,Fo.flushSync(()=>{y(C)}))})},[S,r,l,fe,ue]);Ai(()=>{p===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,y(Q=>({...Q,isPositioned:!1})))},[p]);const me=g.useRef(!1);Ai(()=>(me.current=!0,()=>{me.current=!1}),[]),Ai(()=>{if(U&&(Y.current=U),z&&(G.current=z),U&&z){if(re.current)return re.current(U,z,ie);ie()}},[U,z,ie,re,ee]);const ne=g.useMemo(()=>({reference:Y,floating:G,setReference:_,setFloating:k}),[_,k]),M=g.useMemo(()=>({reference:U,floating:z}),[U,z]),q=g.useMemo(()=>{const Q={position:l,left:0,top:0};if(!M.floating)return Q;const de=Qv(M.floating,b.x),C=Qv(M.floating,b.y);return h?{...Q,transform:"translate("+de+"px, "+C+"px)",...rb(M.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:de,top:C}},[l,h,M.floating,b.x,b.y]);return g.useMemo(()=>({...b,update:ie,refs:ne,elements:M,floatingStyles:q}),[b,ie,ne,M,q])}const a5=n=>{function r(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:n,fn(l){const{element:s,padding:c}=typeof n=="function"?n(l):n;return s&&r(s)?s.current!=null?Kv({element:s.current,padding:c}).fn(l):{}:s?Kv({element:s,padding:c}).fn(l):{}}}},r5=(n,r)=>{const l=XA(n);return{name:l.name,fn:l.fn,options:[n,r]}},l5=(n,r)=>{const l=KA(n);return{name:l.name,fn:l.fn,options:[n,r]}},o5=(n,r)=>({fn:WA(n).fn,options:[n,r]}),s5=(n,r)=>{const l=QA(n);return{name:l.name,fn:l.fn,options:[n,r]}},i5=(n,r)=>{const l=ZA(n);return{name:l.name,fn:l.fn,options:[n,r]}},c5=(n,r)=>{const l=FA(n);return{name:l.name,fn:l.fn,options:[n,r]}},u5=(n,r)=>{const l=a5(n);return{name:l.name,fn:l.fn,options:[n,r]}};var d5="Arrow",lb=g.forwardRef((n,r)=>{const{children:l,width:s=10,height:c=5,...u}=n;return f.jsx(Le.svg,{...u,ref:r,width:s,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?l:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});lb.displayName=d5;var f5=lb;function ob(n){const[r,l]=g.useState(void 0);return Lt(()=>{if(n){l({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 v=u.borderBoxSize,p=Array.isArray(v)?v[0]:v;m=p.inlineSize,h=p.blockSize}else m=n.offsetWidth,h=n.offsetHeight;l({width:m,height:h})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else l(void 0)},[n]),r}var Qf="Popper",[sb,ib]=Xa(Qf),[m5,cb]=sb(Qf),ub=n=>{const{__scopePopper:r,children:l}=n,[s,c]=g.useState(null);return f.jsx(m5,{scope:r,anchor:s,onAnchorChange:c,children:l})};ub.displayName=Qf;var db="PopperAnchor",fb=g.forwardRef((n,r)=>{const{__scopePopper:l,virtualRef:s,...c}=n,u=cb(db,l),m=g.useRef(null),h=tt(r,m),v=g.useRef(null);return g.useEffect(()=>{const p=v.current;v.current=(s==null?void 0:s.current)||m.current,p!==v.current&&u.onAnchorChange(v.current)}),s?null:f.jsx(Le.div,{...c,ref:h})});fb.displayName=db;var Zf="PopperContent",[h5,p5]=sb(Zf),mb=g.forwardRef((n,r)=>{var ce,le,J,ve,ye,Se;const{__scopePopper:l,side:s="bottom",sideOffset:c=0,align:u="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:v=!0,collisionBoundary:p=[],collisionPadding:b=0,sticky:y="partial",hideWhenDetached:S=!1,updatePositionStrategy:N="optimized",onPlaced:T,...E}=n,R=cb(Zf,l),[A,_]=g.useState(null),k=tt(r,Ue=>_(Ue)),[U,z]=g.useState(null),Y=ob(U),G=(Y==null?void 0:Y.width)??0,P=(Y==null?void 0:Y.height)??0,ee=s+(u!=="center"?"-"+u:""),re=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:re,boundary:fe.filter(v5),altBoundary:ue},{refs:me,floatingStyles:ne,placement:M,isPositioned:q,middlewareData:Q}=n5({strategy:"fixed",placement:ee,whileElementsMounted:(...Ue)=>IA(...Ue,{animationFrame:N==="always"}),elements:{reference:R.anchor},middleware:[r5({mainAxis:c+P,alignmentAxis:m}),v&&l5({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?o5():void 0,...ie}),v&&s5({...ie}),i5({...ie,apply:({elements:Ue,rects:$e,availableWidth:Ye,availableHeight:vt})=>{const{width:_e,height:Bt}=$e.reference,yt=Ue.floating.style;yt.setProperty("--radix-popper-available-width",`${Ye}px`),yt.setProperty("--radix-popper-available-height",`${vt}px`),yt.setProperty("--radix-popper-anchor-width",`${_e}px`),yt.setProperty("--radix-popper-anchor-height",`${Bt}px`)}}),U&&u5({element:U,padding:h}),y5({arrowWidth:G,arrowHeight:P}),S&&c5({strategy:"referenceHidden",...ie})]}),[de,C]=gb(M),V=Va(T);Lt(()=>{q&&(V==null||V())},[q,V]);const F=(ce=Q.arrow)==null?void 0:ce.x,I=(le=Q.arrow)==null?void 0:le.y,W=((J=Q.arrow)==null?void 0:J.centerOffset)!==0,[se,ae]=g.useState();return Lt(()=>{A&&ae(window.getComputedStyle(A).zIndex)},[A]),f.jsx("div",{ref:me.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:q?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[(ve=Q.transformOrigin)==null?void 0:ve.x,(ye=Q.transformOrigin)==null?void 0:ye.y].join(" "),...((Se=Q.hide)==null?void 0:Se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:f.jsx(h5,{scope:l,placedSide:de,onArrowChange:z,arrowX:F,arrowY:I,shouldHideArrow:W,children:f.jsx(Le.div,{"data-side":de,"data-align":C,...E,ref:k,style:{...E.style,animation:q?void 0:"none"}})})})});mb.displayName=Zf;var hb="PopperArrow",g5={top:"bottom",right:"left",bottom:"top",left:"right"},pb=g.forwardRef(function(r,l){const{__scopePopper:s,...c}=r,u=p5(hb,s),m=g5[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(f5,{...c,ref:l,style:{...c.style,display:"block"}})})});pb.displayName=hb;function v5(n){return n!==null}var y5=n=>({name:"transformOrigin",options:n,fn(r){var R,A,_;const{placement:l,rects:s,middlewareData:c}=r,m=((R=c.arrow)==null?void 0:R.centerOffset)!==0,h=m?0:n.arrowWidth,v=m?0:n.arrowHeight,[p,b]=gb(l),y={start:"0%",center:"50%",end:"100%"}[b],S=(((A=c.arrow)==null?void 0:A.x)??0)+h/2,N=(((_=c.arrow)==null?void 0:_.y)??0)+v/2;let T="",E="";return p==="bottom"?(T=m?y:`${S}px`,E=`${-v}px`):p==="top"?(T=m?y:`${S}px`,E=`${s.floating.height+v}px`):p==="right"?(T=`${-v}px`,E=m?y:`${N}px`):p==="left"&&(T=`${s.floating.width+v}px`,E=m?y:`${N}px`),{data:{x:T,y:E}}}});function gb(n){const[r,l="center"]=n.split("-");return[r,l]}var b5=ub,x5=fb,S5=mb,w5=pb;function vb(n){const r=g.useRef({value:n,previous:n});return g.useMemo(()=>(r.current.value!==n&&(r.current.previous=r.current.value,r.current.value=n),r.current.previous),[n])}var yb=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"}),E5="VisuallyHidden",N5=g.forwardRef((n,r)=>f.jsx(Le.span,{...n,ref:r,style:{...yb,...n.style}}));N5.displayName=E5;var T5=[" ","Enter","ArrowUp","ArrowDown"],R5=[" ","Enter"],wr="Select",[ic,cc,C5]=Xy(wr),[Dl]=Xa(wr,[C5,ib]),uc=ib(),[A5,Ka]=Dl(wr),[j5,_5]=Dl(wr),bb=n=>{const{__scopeSelect:r,children:l,open:s,defaultOpen:c,onOpenChange:u,value:m,defaultValue:h,onValueChange:v,dir:p,name:b,autoComplete:y,disabled:S,required:N,form:T}=n,E=uc(r),[R,A]=g.useState(null),[_,k]=g.useState(null),[U,z]=g.useState(!1),Y=qf(p),[G,P]=Tl({prop:s,defaultProp:c??!1,onChange:u,caller:wr}),[ee,re]=Tl({prop:m,defaultProp:h,onChange:v,caller:wr}),fe=g.useRef(null),ue=R?T||!!R.closest("form"):!0,[ie,me]=g.useState(new Set),ne=Array.from(ie).map(M=>M.props.value).join(";");return f.jsx(b5,{...E,children:f.jsxs(A5,{required:N,scope:r,trigger:R,onTriggerChange:A,valueNode:_,onValueNodeChange:k,valueNodeHasChildren:U,onValueNodeHasChildrenChange:z,contentId:Pa(),value:ee,onValueChange:re,open:G,onOpenChange:P,dir:Y,triggerPointerDownPosRef:fe,disabled:S,children:[f.jsx(ic.Provider,{scope:r,children:f.jsx(j5,{scope:n.__scopeSelect,onNativeOptionAdd:g.useCallback(M=>{me(q=>new Set(q).add(M))},[]),onNativeOptionRemove:g.useCallback(M=>{me(q=>{const Q=new Set(q);return Q.delete(M),Q})},[]),children:l})}),ue?f.jsxs(Vb,{"aria-hidden":!0,required:N,tabIndex:-1,name:b,autoComplete:y,value:ee,onChange:M=>re(M.target.value),disabled:S,form:T,children:[ee===void 0?f.jsx("option",{value:""}):null,Array.from(ie)]},ne):null]})})};bb.displayName=wr;var xb="SelectTrigger",Sb=g.forwardRef((n,r)=>{const{__scopeSelect:l,disabled:s=!1,...c}=n,u=uc(l),m=Ka(xb,l),h=m.disabled||s,v=tt(r,m.onTriggerChange),p=cc(l),b=g.useRef("touch"),[y,S,N]=Gb(E=>{const R=p().filter(k=>!k.disabled),A=R.find(k=>k.value===m.value),_=Ib(R,E,A);_!==void 0&&m.onValueChange(_.value)}),T=E=>{h||(m.onOpenChange(!0),N()),E&&(m.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return f.jsx(x5,{asChild:!0,...u,children:f.jsx(Le.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":Yb(m.value)?"":void 0,...c,ref:v,onClick:ze(c.onClick,E=>{E.currentTarget.focus(),b.current!=="mouse"&&T(E)}),onPointerDown:ze(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:ze(c.onKeyDown,E=>{const R=y.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&S(E.key),!(R&&E.key===" ")&&T5.includes(E.key)&&(T(),E.preventDefault())})})})});Sb.displayName=xb;var wb="SelectValue",Eb=g.forwardRef((n,r)=>{const{__scopeSelect:l,className:s,style:c,children:u,placeholder:m="",...h}=n,v=Ka(wb,l),{onValueNodeHasChildrenChange:p}=v,b=u!==void 0,y=tt(r,v.onValueNodeChange);return Lt(()=>{p(b)},[p,b]),f.jsx(Le.span,{...h,ref:y,style:{pointerEvents:"none"},children:Yb(v.value)?f.jsx(f.Fragment,{children:m}):u})});Eb.displayName=wb;var k5="SelectIcon",Nb=g.forwardRef((n,r)=>{const{__scopeSelect:l,children:s,...c}=n;return f.jsx(Le.span,{"aria-hidden":!0,...c,ref:r,children:s||"▼"})});Nb.displayName=k5;var M5="SelectPortal",Tb=n=>f.jsx(Of,{asChild:!0,...n});Tb.displayName=M5;var Er="SelectContent",Rb=g.forwardRef((n,r)=>{const l=Ka(Er,n.__scopeSelect),[s,c]=g.useState();if(Lt(()=>{c(new DocumentFragment)},[]),!l.open){const u=s;return u?Fo.createPortal(f.jsx(Cb,{scope:n.__scopeSelect,children:f.jsx(ic.Slot,{scope:n.__scopeSelect,children:f.jsx("div",{children:n.children})})}),u):null}return f.jsx(Ab,{...n,ref:r})});Rb.displayName=Er;var xn=10,[Cb,Qa]=Dl(Er),O5="SelectContentImpl",D5=Xo("SelectContent.RemoveScroll"),Ab=g.forwardRef((n,r)=>{const{__scopeSelect:l,position:s="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:u,onPointerDownOutside:m,side:h,sideOffset:v,align:p,alignOffset:b,arrowPadding:y,collisionBoundary:S,collisionPadding:N,sticky:T,hideWhenDetached:E,avoidCollisions:R,...A}=n,_=Ka(Er,l),[k,U]=g.useState(null),[z,Y]=g.useState(null),G=tt(r,ce=>U(ce)),[P,ee]=g.useState(null),[re,fe]=g.useState(null),ue=cc(l),[ie,me]=g.useState(!1),ne=g.useRef(!1);g.useEffect(()=>{if(k)return Sy(k)},[k]),fy();const M=g.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=g.useCallback(()=>M([P,k]),[M,P,k]);g.useEffect(()=>{ie&&q()},[ie,q]);const{onOpenChange:Q,triggerPointerDownPosRef:de}=_;g.useEffect(()=>{if(k){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():k.contains(ve.target)||Q(!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,Q,de]),g.useEffect(()=>{const ce=()=>Q(!1);return window.addEventListener("blur",ce),window.addEventListener("resize",ce),()=>{window.removeEventListener("blur",ce),window.removeEventListener("resize",ce)}},[Q]);const[C,V]=Gb(ce=>{const le=ue().filter(ye=>!ye.disabled),J=le.find(ye=>ye.ref.current===document.activeElement),ve=Ib(le,ce,J);ve&&setTimeout(()=>ve.ref.current.focus())}),F=g.useCallback((ce,le,J)=>{const ve=!ne.current&&!J;(_.value!==void 0&&_.value===le||ve)&&(ee(ce),ve&&(ne.current=!0))},[_.value]),I=g.useCallback(()=>k==null?void 0:k.focus(),[k]),W=g.useCallback((ce,le,J)=>{const ve=!ne.current&&!J;(_.value!==void 0&&_.value===le||ve)&&fe(ce)},[_.value]),se=s==="popper"?cf:jb,ae=se===cf?{side:h,sideOffset:v,align:p,alignOffset:b,arrowPadding:y,collisionBoundary:S,collisionPadding:N,sticky:T,hideWhenDetached:E,avoidCollisions:R}:{};return f.jsx(Cb,{scope:l,content:k,viewport:z,onViewportChange:Y,itemRefCallback:F,selectedItem:P,onItemLeave:I,itemTextRefCallback:W,focusSelectedItem:q,selectedItemText:re,position:s,isPositioned:ie,searchRef:C,children:f.jsx(Df,{as:D5,allowPinchZoom:!0,children:f.jsx(Mf,{asChild:!0,trapped:_.open,onMountAutoFocus:ce=>{ce.preventDefault()},onUnmountAutoFocus:ze(c,ce=>{var le;(le=_.trigger)==null||le.focus({preventScroll:!0}),ce.preventDefault()}),children:f.jsx(kf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:ce=>ce.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:f.jsx(se,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:ce=>ce.preventDefault(),...A,...ae,onPlaced:()=>me(!0),ref:G,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:ze(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()}})})})})})})});Ab.displayName=O5;var z5="SelectItemAlignedPosition",jb=g.forwardRef((n,r)=>{const{__scopeSelect:l,onPlaced:s,...c}=n,u=Ka(Er,l),m=Qa(Er,l),[h,v]=g.useState(null),[p,b]=g.useState(null),y=tt(r,G=>b(G)),S=cc(l),N=g.useRef(!1),T=g.useRef(!0),{viewport:E,selectedItem:R,selectedItemText:A,focusSelectedItem:_}=m,k=g.useCallback(()=>{if(u.trigger&&u.valueNode&&h&&p&&E&&R&&A){const G=u.trigger.getBoundingClientRect(),P=p.getBoundingClientRect(),ee=u.valueNode.getBoundingClientRect(),re=A.getBoundingClientRect();if(u.dir!=="rtl"){const ye=re.left-P.left,Se=ee.left-ye,Ue=G.left-Se,$e=G.width+Ue,Ye=Math.max($e,P.width),vt=window.innerWidth-xn,_e=Bv(Se,[xn,Math.max(xn,vt-Ye)]);h.style.minWidth=$e+"px",h.style.left=_e+"px"}else{const ye=P.right-re.right,Se=window.innerWidth-ee.right-ye,Ue=window.innerWidth-G.right-Se,$e=G.width+Ue,Ye=Math.max($e,P.width),vt=window.innerWidth-xn,_e=Bv(Se,[xn,Math.max(xn,vt-Ye)]);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),ne=parseInt(me.borderTopWidth,10),M=parseInt(me.paddingTop,10),q=parseInt(me.borderBottomWidth,10),Q=parseInt(me.paddingBottom,10),de=ne+M+ie+Q+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,ae=R.offsetHeight/2,ce=R.offsetTop+ae,le=ne+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,Ue=Math.max(se,ae+(ye?I:0)+Se+q),$e=le+Ue;h.style.height=$e+"px"}else{const ye=fe.length>0&&R===fe[0].ref.current;h.style.top="0px";const Ue=Math.max(W,ne+E.offsetTop+(ye?F:0)+ae)+J;h.style.height=Ue+"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(()=>k(),[k]);const[U,z]=g.useState();Lt(()=>{p&&z(window.getComputedStyle(p).zIndex)},[p]);const Y=g.useCallback(G=>{G&&T.current===!0&&(k(),_==null||_(),T.current=!1)},[k,_]);return f.jsx(U5,{scope:l,contentWrapper:h,shouldExpandOnScrollRef:N,onScrollButtonChange:Y,children:f.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:U},children:f.jsx(Le.div,{...c,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});jb.displayName=z5;var L5="SelectPopperPosition",cf=g.forwardRef((n,r)=>{const{__scopeSelect:l,align:s="start",collisionPadding:c=xn,...u}=n,m=uc(l);return f.jsx(S5,{...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)"}})});cf.displayName=L5;var[U5,Ff]=Dl(Er,{}),uf="SelectViewport",_b=g.forwardRef((n,r)=>{const{__scopeSelect:l,nonce:s,...c}=n,u=Qa(uf,l),m=Ff(uf,l),h=tt(r,u.onViewportChange),v=g.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(ic.Slot,{scope:l,children:f.jsx(Le.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:ze(c.onScroll,p=>{const b=p.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:S}=m;if(S!=null&&S.current&&y){const N=Math.abs(v.current-b.scrollTop);if(N>0){const T=window.innerHeight-xn*2,E=parseFloat(y.style.minHeight),R=parseFloat(y.style.height),A=Math.max(E,R);if(A<T){const _=A+N,k=Math.min(T,_),U=_-k;y.style.height=k+"px",y.style.bottom==="0px"&&(b.scrollTop=U>0?U:0,y.style.justifyContent="flex-end")}}}v.current=b.scrollTop})})})]})});_b.displayName=uf;var kb="SelectGroup",[B5,H5]=Dl(kb),$5=g.forwardRef((n,r)=>{const{__scopeSelect:l,...s}=n,c=Pa();return f.jsx(B5,{scope:l,id:c,children:f.jsx(Le.div,{role:"group","aria-labelledby":c,...s,ref:r})})});$5.displayName=kb;var Mb="SelectLabel",Ob=g.forwardRef((n,r)=>{const{__scopeSelect:l,...s}=n,c=H5(Mb,l);return f.jsx(Le.div,{id:c.id,...s,ref:r})});Ob.displayName=Mb;var Pi="SelectItem",[P5,Db]=Dl(Pi),zb=g.forwardRef((n,r)=>{const{__scopeSelect:l,value:s,disabled:c=!1,textValue:u,...m}=n,h=Ka(Pi,l),v=Qa(Pi,l),p=h.value===s,[b,y]=g.useState(u??""),[S,N]=g.useState(!1),T=tt(r,_=>{var k;return(k=v.itemRefCallback)==null?void 0:k.call(v,_,s,c)}),E=Pa(),R=g.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(P5,{scope:l,value:s,disabled:c,textId:E,isSelected:p,onItemTextChange:g.useCallback(_=>{y(k=>k||((_==null?void 0:_.textContent)??"").trim())},[]),children:f.jsx(ic.ItemSlot,{scope:l,value:s,disabled:c,textValue:b,children:f.jsx(Le.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:ze(m.onFocus,()=>N(!0)),onBlur:ze(m.onBlur,()=>N(!1)),onClick:ze(m.onClick,()=>{R.current!=="mouse"&&A()}),onPointerUp:ze(m.onPointerUp,()=>{R.current==="mouse"&&A()}),onPointerDown:ze(m.onPointerDown,_=>{R.current=_.pointerType}),onPointerMove:ze(m.onPointerMove,_=>{var k;R.current=_.pointerType,c?(k=v.onItemLeave)==null||k.call(v):R.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ze(m.onPointerLeave,_=>{var k;_.currentTarget===document.activeElement&&((k=v.onItemLeave)==null||k.call(v))}),onKeyDown:ze(m.onKeyDown,_=>{var U;((U=v.searchRef)==null?void 0:U.current)!==""&&_.key===" "||(R5.includes(_.key)&&A(),_.key===" "&&_.preventDefault())})})})})});zb.displayName=Pi;var qo="SelectItemText",Lb=g.forwardRef((n,r)=>{const{__scopeSelect:l,className:s,style:c,...u}=n,m=Ka(qo,l),h=Qa(qo,l),v=Db(qo,l),p=_5(qo,l),[b,y]=g.useState(null),S=tt(r,A=>y(A),v.onItemTextChange,A=>{var _;return(_=h.itemTextRefCallback)==null?void 0:_.call(h,A,v.value,v.disabled)}),N=b==null?void 0:b.textContent,T=g.useMemo(()=>f.jsx("option",{value:v.value,disabled:v.disabled,children:N},v.value),[v.disabled,v.value,N]),{onNativeOptionAdd:E,onNativeOptionRemove:R}=p;return Lt(()=>(E(T),()=>R(T)),[E,R,T]),f.jsxs(f.Fragment,{children:[f.jsx(Le.span,{id:v.textId,...u,ref:S}),v.isSelected&&m.valueNode&&!m.valueNodeHasChildren?Fo.createPortal(u.children,m.valueNode):null]})});Lb.displayName=qo;var Ub="SelectItemIndicator",Bb=g.forwardRef((n,r)=>{const{__scopeSelect:l,...s}=n;return Db(Ub,l).isSelected?f.jsx(Le.span,{"aria-hidden":!0,...s,ref:r}):null});Bb.displayName=Ub;var df="SelectScrollUpButton",Hb=g.forwardRef((n,r)=>{const l=Qa(df,n.__scopeSelect),s=Ff(df,n.__scopeSelect),[c,u]=g.useState(!1),m=tt(r,s.onScrollButtonChange);return Lt(()=>{if(l.viewport&&l.isPositioned){let h=function(){const p=v.scrollTop>0;u(p)};const v=l.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[l.viewport,l.isPositioned]),c?f.jsx(Pb,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=l;h&&v&&(h.scrollTop=h.scrollTop-v.offsetHeight)}}):null});Hb.displayName=df;var ff="SelectScrollDownButton",$b=g.forwardRef((n,r)=>{const l=Qa(ff,n.__scopeSelect),s=Ff(ff,n.__scopeSelect),[c,u]=g.useState(!1),m=tt(r,s.onScrollButtonChange);return Lt(()=>{if(l.viewport&&l.isPositioned){let h=function(){const p=v.scrollHeight-v.clientHeight,b=Math.ceil(v.scrollTop)<p;u(b)};const v=l.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[l.viewport,l.isPositioned]),c?f.jsx(Pb,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=l;h&&v&&(h.scrollTop=h.scrollTop+v.offsetHeight)}}):null});$b.displayName=ff;var Pb=g.forwardRef((n,r)=>{const{__scopeSelect:l,onAutoScroll:s,...c}=n,u=Qa("SelectScrollButton",l),m=g.useRef(null),h=cc(l),v=g.useCallback(()=>{m.current!==null&&(window.clearInterval(m.current),m.current=null)},[]);return g.useEffect(()=>()=>v(),[v]),Lt(()=>{var b;const p=h().find(y=>y.ref.current===document.activeElement);(b=p==null?void 0:p.ref.current)==null||b.scrollIntoView({block:"nearest"})},[h]),f.jsx(Le.div,{"aria-hidden":!0,...c,ref:r,style:{flexShrink:0,...c.style},onPointerDown:ze(c.onPointerDown,()=>{m.current===null&&(m.current=window.setInterval(s,50))}),onPointerMove:ze(c.onPointerMove,()=>{var p;(p=u.onItemLeave)==null||p.call(u),m.current===null&&(m.current=window.setInterval(s,50))}),onPointerLeave:ze(c.onPointerLeave,()=>{v()})})}),q5="SelectSeparator",qb=g.forwardRef((n,r)=>{const{__scopeSelect:l,...s}=n;return f.jsx(Le.div,{"aria-hidden":!0,...s,ref:r})});qb.displayName=q5;var mf="SelectArrow",V5=g.forwardRef((n,r)=>{const{__scopeSelect:l,...s}=n,c=uc(l),u=Ka(mf,l),m=Qa(mf,l);return u.open&&m.position==="popper"?f.jsx(w5,{...c,...s,ref:r}):null});V5.displayName=mf;var Y5="SelectBubbleInput",Vb=g.forwardRef(({__scopeSelect:n,value:r,...l},s)=>{const c=g.useRef(null),u=tt(s,c),m=vb(r);return g.useEffect(()=>{const h=c.current;if(!h)return;const v=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(v,"value").set;if(m!==r&&b){const y=new Event("change",{bubbles:!0});b.call(h,r),h.dispatchEvent(y)}},[m,r]),f.jsx(Le.select,{...l,style:{...yb,...l.style},ref:u,defaultValue:r})});Vb.displayName=Y5;function Yb(n){return n===""||n===void 0}function Gb(n){const r=Va(n),l=g.useRef(""),s=g.useRef(0),c=g.useCallback(m=>{const h=l.current+m;r(h),(function v(p){l.current=p,window.clearTimeout(s.current),p!==""&&(s.current=window.setTimeout(()=>v(""),1e3))})(h)},[r]),u=g.useCallback(()=>{l.current="",window.clearTimeout(s.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(s.current),[]),[l,c,u]}function Ib(n,r,l){const c=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,u=l?n.indexOf(l):-1;let m=G5(n,Math.max(u,0));c.length===1&&(m=m.filter(p=>p!==l));const v=m.find(p=>p.textValue.toLowerCase().startsWith(c.toLowerCase()));return v!==l?v:void 0}function G5(n,r){return n.map((l,s)=>n[(r+s)%n.length])}var I5=bb,Xb=Sb,X5=Eb,K5=Nb,Q5=Tb,Kb=Rb,Z5=_b,Qb=Ob,Zb=zb,F5=Lb,W5=Bb,Fb=Hb,Wb=$b,Jb=qb;const ex=I5,tx=X5,Wf=g.forwardRef(({className:n,children:r,...l},s)=>f.jsxs(Xb,{ref:s,className:oe("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),...l,children:[r,f.jsx(K5,{asChild:!0,children:f.jsx(Io,{className:"h-4 w-4 opacity-50"})})]}));Wf.displayName=Xb.displayName;const nx=g.forwardRef(({className:n,...r},l)=>f.jsx(Fb,{ref:l,className:oe("flex cursor-default items-center justify-center py-1",n),...r,children:f.jsx(dN,{className:"h-4 w-4"})}));nx.displayName=Fb.displayName;const ax=g.forwardRef(({className:n,...r},l)=>f.jsx(Wb,{ref:l,className:oe("flex cursor-default items-center justify-center py-1",n),...r,children:f.jsx(Io,{className:"h-4 w-4"})}));ax.displayName=Wb.displayName;const Jf=g.forwardRef(({className:n,children:r,position:l="popper",...s},c)=>f.jsx(Q5,{children:f.jsxs(Kb,{ref:c,className:oe("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",l==="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:l,...s,children:[f.jsx(nx,{}),f.jsx(Z5,{className:oe("p-1",l==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),f.jsx(ax,{})]})}));Jf.displayName=Kb.displayName;const J5=g.forwardRef(({className:n,...r},l)=>f.jsx(Qb,{ref:l,className:oe("py-1 pl-6 pr-2 text-[10px] font-semibold",n),...r}));J5.displayName=Qb.displayName;const Sl=g.forwardRef(({className:n,children:r,...l},s)=>f.jsxs(Zb,{ref:s,className:oe("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),...l,children:[f.jsx("span",{className:"absolute left-1.5 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(W5,{children:f.jsx(Oi,{className:"h-3.5 w-3.5"})})}),f.jsx(F5,{children:r})]}));Sl.displayName=Zb.displayName;const ej=g.forwardRef(({className:n,...r},l)=>f.jsx(Jb,{ref:l,className:oe("-mx-1 my-1 h-px bg-muted",n),...r}));ej.displayName=Jb.displayName;var qd="rovingFocusGroup.onEntryFocus",tj={bubbles:!1,cancelable:!0},Jo="RovingFocusGroup",[hf,rx,nj]=Xy(Jo),[aj,lx]=Xa(Jo,[nj]),[rj,lj]=aj(Jo),ox=g.forwardRef((n,r)=>f.jsx(hf.Provider,{scope:n.__scopeRovingFocusGroup,children:f.jsx(hf.Slot,{scope:n.__scopeRovingFocusGroup,children:f.jsx(oj,{...n,ref:r})})}));ox.displayName=Jo;var oj=g.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:l,orientation:s,loop:c=!1,dir:u,currentTabStopId:m,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:v,onEntryFocus:p,preventScrollOnEntryFocus:b=!1,...y}=n,S=g.useRef(null),N=tt(r,S),T=qf(u),[E,R]=Tl({prop:m,defaultProp:h??null,onChange:v,caller:Jo}),[A,_]=g.useState(!1),k=Va(p),U=rx(l),z=g.useRef(!1),[Y,G]=g.useState(0);return g.useEffect(()=>{const P=S.current;if(P)return P.addEventListener(qd,k),()=>P.removeEventListener(qd,k)},[k]),f.jsx(rj,{scope:l,orientation:s,dir:T,loop:c,currentTabStopId:E,onItemFocus:g.useCallback(P=>R(P),[R]),onItemShiftTab:g.useCallback(()=>_(!0),[]),onFocusableItemAdd:g.useCallback(()=>G(P=>P+1),[]),onFocusableItemRemove:g.useCallback(()=>G(P=>P-1),[]),children:f.jsx(Le.div,{tabIndex:A||Y===0?-1:0,"data-orientation":s,...y,ref:N,style:{outline:"none",...n.style},onMouseDown:ze(n.onMouseDown,()=>{z.current=!0}),onFocus:ze(n.onFocus,P=>{const ee=!z.current;if(P.target===P.currentTarget&&ee&&!A){const re=new CustomEvent(qd,tj);if(P.currentTarget.dispatchEvent(re),!re.defaultPrevented){const fe=U().filter(M=>M.focusable),ue=fe.find(M=>M.active),ie=fe.find(M=>M.id===E),ne=[ue,ie,...fe].filter(Boolean).map(M=>M.ref.current);cx(ne,b)}}z.current=!1}),onBlur:ze(n.onBlur,()=>_(!1))})})}),sx="RovingFocusGroupItem",ix=g.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:l,focusable:s=!0,active:c=!1,tabStopId:u,children:m,...h}=n,v=Pa(),p=u||v,b=lj(sx,l),y=b.currentTabStopId===p,S=rx(l),{onFocusableItemAdd:N,onFocusableItemRemove:T,currentTabStopId:E}=b;return g.useEffect(()=>{if(s)return N(),()=>T()},[s,N,T]),f.jsx(hf.ItemSlot,{scope:l,id:p,focusable:s,active:c,children:f.jsx(Le.span,{tabIndex:y?0:-1,"data-orientation":b.orientation,...h,ref:r,onMouseDown:ze(n.onMouseDown,R=>{s?b.onItemFocus(p):R.preventDefault()}),onFocus:ze(n.onFocus,()=>b.onItemFocus(p)),onKeyDown:ze(n.onKeyDown,R=>{if(R.key==="Tab"&&R.shiftKey){b.onItemShiftTab();return}if(R.target!==R.currentTarget)return;const A=cj(R,b.orientation,b.dir);if(A!==void 0){if(R.metaKey||R.ctrlKey||R.altKey||R.shiftKey)return;R.preventDefault();let k=S().filter(U=>U.focusable).map(U=>U.ref.current);if(A==="last")k.reverse();else if(A==="prev"||A==="next"){A==="prev"&&k.reverse();const U=k.indexOf(R.currentTarget);k=b.loop?uj(k,U+1):k.slice(U+1)}setTimeout(()=>cx(k))}}),children:typeof m=="function"?m({isCurrentTabStop:y,hasTabStop:E!=null}):m})})});ix.displayName=sx;var sj={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ij(n,r){return r!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function cj(n,r,l){const s=ij(n.key,l);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return sj[s]}function cx(n,r=!1){const l=document.activeElement;for(const s of n)if(s===l||(s.focus({preventScroll:r}),document.activeElement!==l))return}function uj(n,r){return n.map((l,s)=>n[(r+s)%n.length])}var dj=ox,fj=ix,dc="Tabs",[mj]=Xa(dc,[lx]),ux=lx(),[hj,em]=mj(dc),dx=g.forwardRef((n,r)=>{const{__scopeTabs:l,value:s,onValueChange:c,defaultValue:u,orientation:m="horizontal",dir:h,activationMode:v="automatic",...p}=n,b=qf(h),[y,S]=Tl({prop:s,onChange:c,defaultProp:u??"",caller:dc});return f.jsx(hj,{scope:l,baseId:Pa(),value:y,onValueChange:S,orientation:m,dir:b,activationMode:v,children:f.jsx(Le.div,{dir:b,"data-orientation":m,...p,ref:r})})});dx.displayName=dc;var fx="TabsList",mx=g.forwardRef((n,r)=>{const{__scopeTabs:l,loop:s=!0,...c}=n,u=em(fx,l),m=ux(l);return f.jsx(dj,{asChild:!0,...m,orientation:u.orientation,dir:u.dir,loop:s,children:f.jsx(Le.div,{role:"tablist","aria-orientation":u.orientation,...c,ref:r})})});mx.displayName=fx;var hx="TabsTrigger",px=g.forwardRef((n,r)=>{const{__scopeTabs:l,value:s,disabled:c=!1,...u}=n,m=em(hx,l),h=ux(l),v=yx(m.baseId,s),p=bx(m.baseId,s),b=s===m.value;return f.jsx(fj,{asChild:!0,...h,focusable:!c,active:b,children:f.jsx(Le.button,{type:"button",role:"tab","aria-selected":b,"aria-controls":p,"data-state":b?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:v,...u,ref:r,onMouseDown:ze(n.onMouseDown,y=>{!c&&y.button===0&&y.ctrlKey===!1?m.onValueChange(s):y.preventDefault()}),onKeyDown:ze(n.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&m.onValueChange(s)}),onFocus:ze(n.onFocus,()=>{const y=m.activationMode!=="manual";!b&&!c&&y&&m.onValueChange(s)})})})});px.displayName=hx;var gx="TabsContent",vx=g.forwardRef((n,r)=>{const{__scopeTabs:l,value:s,forceMount:c,children:u,...m}=n,h=em(gx,l),v=yx(h.baseId,s),p=bx(h.baseId,s),b=s===h.value,y=g.useRef(b);return g.useEffect(()=>{const S=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(S)},[]),f.jsx(kl,{present:c||b,children:({present:S})=>f.jsx(Le.div,{"data-state":b?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":v,hidden:!S,id:p,tabIndex:0,...m,ref:r,style:{...n.style,animationDuration:y.current?"0s":void 0},children:S&&u})})});vx.displayName=gx;function yx(n,r){return`${n}-trigger-${r}`}function bx(n,r){return`${n}-content-${r}`}var pj=dx,xx=mx,Sx=px,wx=vx;const gj=pj,Ex=g.forwardRef(({className:n,...r},l)=>f.jsx(xx,{ref:l,className:oe("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}));Ex.displayName=xx.displayName;const ji=g.forwardRef(({className:n,...r},l)=>f.jsx(Sx,{ref:l,className:oe("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}));ji.displayName=Sx.displayName;const qi=g.forwardRef(({className:n,...r},l)=>f.jsx(wx,{ref:l,className:oe("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}));qi.displayName=wx.displayName;var Nx="AlertDialog",[vj]=Xa(Nx,[Ey]),ma=Ey(),Tx=n=>{const{__scopeAlertDialog:r,...l}=n,s=ma(r);return f.jsx(Hy,{...s,...l,modal:!0})};Tx.displayName=Nx;var yj="AlertDialogTrigger",Rx=g.forwardRef((n,r)=>{const{__scopeAlertDialog:l,...s}=n,c=ma(l);return f.jsx($y,{...c,...s,ref:r})});Rx.displayName=yj;var bj="AlertDialogPortal",Cx=n=>{const{__scopeAlertDialog:r,...l}=n,s=ma(r);return f.jsx(Py,{...s,...l})};Cx.displayName=bj;var xj="AlertDialogOverlay",Ax=g.forwardRef((n,r)=>{const{__scopeAlertDialog:l,...s}=n,c=ma(l);return f.jsx(Bf,{...c,...s,ref:r})});Ax.displayName=xj;var Nl="AlertDialogContent",[Sj,wj]=vj(Nl),Ej=zR("AlertDialogContent"),jx=g.forwardRef((n,r)=>{const{__scopeAlertDialog:l,children:s,...c}=n,u=ma(l),m=g.useRef(null),h=tt(r,m),v=g.useRef(null);return f.jsx(FC,{contentName:Nl,titleName:_x,docsSlug:"alert-dialog",children:f.jsx(Sj,{scope:l,cancelRef:v,children:f.jsxs(Hf,{role:"alertdialog",...u,...c,ref:h,onOpenAutoFocus:ze(c.onOpenAutoFocus,p=>{var b;p.preventDefault(),(b=v.current)==null||b.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[f.jsx(Ej,{children:s}),f.jsx(Tj,{contentRef:m})]})})})});jx.displayName=Nl;var _x="AlertDialogTitle",kx=g.forwardRef((n,r)=>{const{__scopeAlertDialog:l,...s}=n,c=ma(l);return f.jsx($f,{...c,...s,ref:r})});kx.displayName=_x;var Mx="AlertDialogDescription",Ox=g.forwardRef((n,r)=>{const{__scopeAlertDialog:l,...s}=n,c=ma(l);return f.jsx(Pf,{...c,...s,ref:r})});Ox.displayName=Mx;var Nj="AlertDialogAction",Dx=g.forwardRef((n,r)=>{const{__scopeAlertDialog:l,...s}=n,c=ma(l);return f.jsx(ac,{...c,...s,ref:r})});Dx.displayName=Nj;var zx="AlertDialogCancel",Lx=g.forwardRef((n,r)=>{const{__scopeAlertDialog:l,...s}=n,{cancelRef:c}=wj(zx,l),u=ma(l),m=tt(r,c);return f.jsx(ac,{...u,...s,ref:m})});Lx.displayName=zx;var Tj=({contentRef:n})=>{const r=`\`${Nl}\` requires a description for the component to be accessible for screen reader users.
|
|
311
|
+
|
|
312
|
+
You can add a description to the \`${Nl}\` by passing a \`${Mx}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
313
|
+
|
|
314
|
+
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 \`${Nl}\`. 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.
|
|
315
|
+
|
|
316
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return g.useEffect(()=>{var s;document.getElementById((s=n.current)==null?void 0:s.getAttribute("aria-describedby"))||console.warn(r)},[r,n]),null},Rj=Tx,Cj=Rx,Aj=Cx,Ux=Ax,Bx=jx,Hx=Dx,$x=Lx,Px=kx,qx=Ox;const pf=Rj,gf=Cj,jj=Aj,Vx=g.forwardRef(({className:n,...r},l)=>f.jsx(Ux,{className:oe("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:l}));Vx.displayName=Ux.displayName;const Vi=g.forwardRef(({className:n,...r},l)=>f.jsxs(jj,{children:[f.jsx(Vx,{}),f.jsx(Bx,{ref:l,className:oe("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})]}));Vi.displayName=Bx.displayName;const Yi=({className:n,...r})=>f.jsx("div",{className:oe("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});Yi.displayName="AlertDialogHeader";const Gi=({className:n,...r})=>f.jsx("div",{className:oe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});Gi.displayName="AlertDialogFooter";const Ii=g.forwardRef(({className:n,...r},l)=>f.jsx(Px,{ref:l,className:oe("text-sm font-semibold",n),...r}));Ii.displayName=Px.displayName;const Xi=g.forwardRef(({className:n,...r},l)=>f.jsx(qx,{ref:l,className:oe("text-[11px] text-muted-foreground",n),...r}));Xi.displayName=qx.displayName;const Ki=g.forwardRef(({className:n,...r},l)=>f.jsx(Hx,{ref:l,className:oe(_f(),n),...r}));Ki.displayName=Hx.displayName;const Qi=g.forwardRef(({className:n,...r},l)=>f.jsx($x,{ref:l,className:oe(_f({variant:"outline"}),"mt-2 sm:mt-0",n),...r}));Qi.displayName=$x.displayName;const _j={online:"bg-emerald-500",busy:"bg-amber-500",offline:"bg-destructive"};function kj({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:oe("relative inline-flex h-2.5 w-2.5 rounded-full",_j[n])})]})}function Mj({role:n,size:r="default"}){return f.jsx(Et,{variant:n==="leader"?"default":"secondary",className:oe(r==="compact"?"px-1.5 py-0 text-[9px] leading-4":"text-[11px]"),children:n})}const Yx={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 T3({status:n,size:r="default"}){const l=Yx[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:l.variant,className:oe("rounded-sm font-medium shadow-none",s,l.className),children:[f.jsx("span",{className:oe("rounded-full",l.dotClass)}),n]})}function R3({status:n,isNative:r=!1,size:l="default",className:s}){const c=Yx[n],u=[n,r?"native":null].filter(Boolean).join(", "),m=l==="compact"?"h-1.5 w-1.5":"h-2 w-2";return f.jsxs("span",{className:oe("inline-flex shrink-0 items-center gap-1",s),title:u,"aria-label":u,children:[f.jsx("span",{className:oe("rounded-full",m,c.dotClass),title:n}),r&&f.jsx("span",{className:oe("rounded-full bg-sky-500",m),title:"native"})]})}const Oj={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function C3({priority:n}){const r=Oj[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 Dj(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(l=>l.value)}function vl({label:n,value:r,mono:l=!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:l?"mt-0.5 break-all font-mono text-[11px] text-foreground":"mt-0.5 break-all text-[11px] text-foreground",children:r})]})}function zj({formatDateTime:n,viewInfo:r}){var s,c,u,m,h,v,p,b;const l=Dj(r.packages);return f.jsxs(qi,{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(aN,{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(wN,{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(vl,{label:"Branch",value:((c=r.repository)==null?void 0:c.branch)??"Unavailable",mono:!!((u=r.repository)!=null&&u.branch)}),f.jsx(vl,{label:"Commit",value:((m=r.repository)==null?void 0:m.commit)??"Unavailable",mono:!!((h=r.repository)!=null&&h.commit)}),f.jsx(vl,{label:"Runtime",value:`${r.packageName??"meshy"} ${r.version}`,mono:!0}),f.jsx(vl,{label:"Node.js",value:((v=r.runtime)==null?void 0:v.nodeVersion)??"Unavailable",mono:!!((p=r.runtime)!=null&&p.nodeVersion)}),f.jsx(vl,{label:"PID",value:r.runtime?String(r.runtime.pid):"Unavailable",mono:!!r.runtime}),f.jsx(vl,{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(AN,{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:l.map(y=>{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:y.label}),f.jsx("div",{className:"min-w-0 truncate text-[10px] text-muted-foreground",children:(S=y.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=y.value)==null?void 0:N.version})]},y.key)})})]})]})}var fc="Checkbox",[Lj]=Xa(fc),[Uj,tm]=Lj(fc);function Bj(n){const{__scopeCheckbox:r,checked:l,children:s,defaultChecked:c,disabled:u,form:m,name:h,onCheckedChange:v,required:p,value:b="on",internal_do_not_use_render:y}=n,[S,N]=Tl({prop:l,defaultProp:c??!1,onChange:v,caller:fc}),[T,E]=g.useState(null),[R,A]=g.useState(null),_=g.useRef(!1),k=T?!!m||!!T.closest("form"):!0,U={checked:S,disabled:u,setChecked:N,control:T,setControl:E,name:h,form:m,value:b,hasConsumerStoppedPropagationRef:_,required:p,defaultChecked:qa(c)?!1:c,isFormControl:k,bubbleInput:R,setBubbleInput:A};return f.jsx(Uj,{scope:r,...U,children:Hj(y)?y(U):s})}var Gx="CheckboxTrigger",Ix=g.forwardRef(({__scopeCheckbox:n,onKeyDown:r,onClick:l,...s},c)=>{const{control:u,value:m,disabled:h,checked:v,required:p,setControl:b,setChecked:y,hasConsumerStoppedPropagationRef:S,isFormControl:N,bubbleInput:T}=tm(Gx,n),E=tt(c,b),R=g.useRef(v);return g.useEffect(()=>{const A=u==null?void 0:u.form;if(A){const _=()=>y(R.current);return A.addEventListener("reset",_),()=>A.removeEventListener("reset",_)}},[u,y]),f.jsx(Le.button,{type:"button",role:"checkbox","aria-checked":qa(v)?"mixed":v,"aria-required":p,"data-state":Fx(v),"data-disabled":h?"":void 0,disabled:h,value:m,...s,ref:E,onKeyDown:ze(r,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:ze(l,A=>{y(_=>qa(_)?!0:!_),T&&N&&(S.current=A.isPropagationStopped(),S.current||A.stopPropagation())})})});Ix.displayName=Gx;var nm=g.forwardRef((n,r)=>{const{__scopeCheckbox:l,name:s,checked:c,defaultChecked:u,required:m,disabled:h,value:v,onCheckedChange:p,form:b,...y}=n;return f.jsx(Bj,{__scopeCheckbox:l,checked:c,defaultChecked:u,disabled:h,required:m,onCheckedChange:p,name:s,form:b,value:v,internal_do_not_use_render:({isFormControl:S})=>f.jsxs(f.Fragment,{children:[f.jsx(Ix,{...y,ref:r,__scopeCheckbox:l}),S&&f.jsx(Zx,{__scopeCheckbox:l})]})})});nm.displayName=fc;var Xx="CheckboxIndicator",Kx=g.forwardRef((n,r)=>{const{__scopeCheckbox:l,forceMount:s,...c}=n,u=tm(Xx,l);return f.jsx(kl,{present:s||qa(u.checked)||u.checked===!0,children:f.jsx(Le.span,{"data-state":Fx(u.checked),"data-disabled":u.disabled?"":void 0,...c,ref:r,style:{pointerEvents:"none",...n.style}})})});Kx.displayName=Xx;var Qx="CheckboxBubbleInput",Zx=g.forwardRef(({__scopeCheckbox:n,...r},l)=>{const{control:s,hasConsumerStoppedPropagationRef:c,checked:u,defaultChecked:m,required:h,disabled:v,name:p,value:b,form:y,bubbleInput:S,setBubbleInput:N}=tm(Qx,n),T=tt(l,N),E=vb(u),R=ob(s);g.useEffect(()=>{const _=S;if(!_)return;const k=window.HTMLInputElement.prototype,z=Object.getOwnPropertyDescriptor(k,"checked").set,Y=!c.current;if(E!==u&&z){const G=new Event("click",{bubbles:Y});_.indeterminate=qa(u),z.call(_,qa(u)?!1:u),_.dispatchEvent(G)}},[S,E,u,c]);const A=g.useRef(qa(u)?!1:u);return f.jsx(Le.input,{type:"checkbox","aria-hidden":!0,defaultChecked:m??A.current,required:h,disabled:v,name:p,value:b,form:y,...r,tabIndex:-1,ref:T,style:{...r.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Zx.displayName=Qx;function Hj(n){return typeof n=="function"}function qa(n){return n==="indeterminate"}function Fx(n){return qa(n)?"indeterminate":n?"checked":"unchecked"}const Wx=g.forwardRef(({className:n,...r},l)=>f.jsx(nm,{ref:l,className:oe("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(Kx,{className:oe("flex items-center justify-center text-current"),children:f.jsx(Oi,{className:"h-3.5 w-3.5"})})}));Wx.displayName=nm.displayName;const am=g.forwardRef(({className:n,type:r,...l},s)=>f.jsx("input",{type:r,className:oe("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,...l}));am.displayName="Input";const Zv=["queued","running"];function $j(n){return n.map(r=>`${r.id}:${r.name}`).join("\0")}function Pj(n){return n==="claude"||n==="codex"||n==="copilot"}function Jx(n){var l;if(n.kind!=="agent.upgrade")return null;const r=(l=n.payload)==null?void 0:l.agent;return Pj(r)?`${n.nodeId}:${r}`:null}function qj(n){return n.status==="succeeded"||n.status==="failed"}async function e1(n,r={}){const l=r.getOperation??yE,s=r.pollIntervalMs??2e3,c=r.timeoutMs??24e4,u=Date.now()+c;let m=n;for(;!qj(m)&&Date.now()<u;)await Yj(s),m=await l(n.id);return m}async function Vj(n,r=bE){const l=new Set(n),s=await Promise.all(Zv.map(u=>r({kind:"agent.upgrade",status:u}))),c=new Map;for(const u of s.flat()){if(!Zv.includes(u.status)||l.size>0&&!l.has(u.nodeId))continue;const m=Jx(u);if(!m)continue;const h=c.get(m);(!h||u.updatedAt>h.updatedAt)&&c.set(m,u)}return c}function Yj(n){return new Promise(r=>setTimeout(r,n))}const Gj=1500,Ij=1e3,Xj=9e4;async function t1(n={}){const r=n.fetchHealth??Kj,l=n.initialDelayMs??Gj,s=n.pollIntervalMs??Ij,c=n.previousPid,u=n.reload??(()=>window.location.reload()),m=n.sleep??Zj,h=n.timeoutMs??Xj,v=Date.now()+h;let p=!1;for(l>0&&await m(l);Date.now()<=v;){const b=Qj(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 Kj(){try{const n=await fetch("/api/system/health",{cache:"no-store"}),r=await n.json().catch(()=>null),l=r&&typeof r=="object"&&typeof r.pid=="number"?r.pid:void 0;return{ok:n.ok,pid:l}}catch{return!1}}function Qj(n){return typeof n=="boolean"?{ok:n}:n}function Zj(n){return new Promise(r=>window.setTimeout(r,n))}function Fj(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:l,isLiveLocalNode:s,nodeId:c,nodeName:u,onRefresh:m,pid:h,transportType:v,update:p,workDir:b}){const y=Fj(p,s),[S,N]=g.useState(null),[T,E]=g.useState(()=>Fv({disableAuthDefault:r,endpoint:l,nodeName:u,transportType:v,workDir:b})),[R,A]=g.useState(!1),[_,k]=g.useState(!1),[U,z]=g.useState(!1);g.useEffect(()=>{E(Fv({disableAuthDefault:r,endpoint:l,nodeName:u,transportType:v,workDir:b}))},[r,l,u,v,b]);async function Y(){if(!c||R||_)return;const re=p.updateAvailable?"update":"restart",fe=t_(T);if(T.port.trim()&&(fe==null?void 0:fe.port)===void 0){Ge.error("Runtime restart port must be a positive integer");return}const ue=fe?{reason:re,startArgs:fe}:{reason:re};A(!0);try{if(s){const M=await M0(ue);N({...M,pid:M.pid??h,status:"accepted"}),Ge.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.`),t1({previousPid:M.pid??h}).then(q=>{q||(A(!1),Ge.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),Ge.error(q instanceof Error?q.message:"Runtime restart recovery failed")});return}const ie=await SE(c,ue);N({operationId:ie.id,pid:h,status:ie.status}),Ge.info(`Restart requested on ${u}. Operation ${Vd(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 e1(ie,{timeoutMs:6e4}),ne=e_(me);N({command:ne==null?void 0:ne.command,logPath:ne==null?void 0:ne.logPath,mode:ne==null?void 0:ne.mode,operationId:me.id,pid:(ne==null?void 0:ne.pid)??h,status:me.status}),me.status==="succeeded"?(await(m==null?void 0:m()),Ge.success(`Restart handoff accepted on ${u}. Follow ${(ne==null?void 0:ne.logPath)??"the node restart log"} for launch output.`)):me.status==="failed"?Ge.error(me.error??`Restart failed on ${u}`):Ge.info(`Restart operation ${Vd(me.id)} is still ${me.status}. More details will update after the node reports back.`),A(!1)}catch(ie){A(!1),Ge.error(ie instanceof Error?ie.message:"Runtime restart failed")}}async function G(){if(!(!s||R||_)){k(!0);try{const re=await gE();Ge.info(`Stopping Meshy process ${re.pid}`)}catch(re){k(!1),Ge.error(re instanceof Error?re.message:"Runtime stop failed")}}}const P=R?"restarting":_?"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(Mi,{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(pf,{children:[f.jsx(gf,{asChild:!0,children:f.jsxs(mn,{type:"button",size:"sm",variant:"ghost",disabled:R||_,className:"h-7 rounded-sm px-2 text-[11px] text-muted-foreground hover:bg-destructive/10 hover:text-destructive",children:[f.jsx(DN,{className:oe("mr-1 h-3.5 w-3.5",_&&"animate-pulse")}),_?"Stopping":"Stop"]})}),f.jsxs(Vi,{className:"max-w-[22rem] gap-2 rounded-sm p-4",children:[f.jsxs(Yi,{className:"space-y-1",children:[f.jsx(Ii,{className:"text-sm",children:"Stop runtime?"}),f.jsx(Xi,{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(Gi,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Qi,{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(pf,{children:[f.jsx(gf,{asChild:!0,children:f.jsxs(mn,{type:"button",size:"sm",variant:p.updateAvailable?"default":"outline",disabled:!c||R||_,className:"h-7 rounded-sm px-2 text-[11px]",children:[f.jsx(ef,{className:oe("mr-1 h-3.5 w-3.5",R&&"animate-spin")}),R?"Restarting…":y]})}),f.jsxs(Vi,{className:"max-w-[28rem] gap-3 rounded-sm p-4",children:[f.jsxs(Yi,{className:"space-y-1",children:[f.jsxs(Ii,{className:"text-sm",children:[y,"?"]}),f.jsxs(Xi,{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(Jj,{value:T,onChange:E}),f.jsxs(Gi,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Qi,{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:y})]})]})]})]})]}),f.jsxs("div",{className:"border-t border-border/50",children:[f.jsxs("button",{type:"button",onClick:()=>z(re=>!re),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(q0,{className:"h-3 w-3"}),"Restart details"]}),f.jsx(Io,{className:oe("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?Vd(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 Jj({onChange:n,value:r}){const l=(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(Bo,{label:"HTTP port",value:r.port,onChange:s=>l("port",s),inputMode:"numeric"}),f.jsx(Bo,{label:"Node name",value:r.name,onChange:s=>l("name",s)}),f.jsx(Bo,{label:"Join endpoint",value:r.join,onChange:s=>l("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(ex,{value:r.transport,onValueChange:s=>l("transport",n1(s)),children:[f.jsx(Wf,{className:"h-7 rounded-md border-border/70 bg-background/70 px-2 text-[10px]",children:f.jsx(tx,{placeholder:"Transport"})}),f.jsxs(Jf,{children:[f.jsx(Sl,{className:"py-1 text-[11px]",value:"inherit",children:"current / default"}),f.jsx(Sl,{className:"py-1 text-[11px]",value:"direct",children:"direct"}),f.jsx(Sl,{className:"py-1 text-[11px]",value:"devtunnel",children:"devtunnel"}),f.jsx(Sl,{className:"py-1 text-[11px]",value:"tailscale",children:"tailscale"})]})]})]}),f.jsx(Bo,{label:"Working directory",value:r.workDir,onChange:s=>l("workDir",s)}),f.jsx(Bo,{label:"Config path",value:r.config,onChange:s=>l("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(Wx,{className:"h-3.5 w-3.5",checked:r.disableAuth,onCheckedChange:s=>n({...r,disableAuth:s===!0,disableAuthKnown:!0})}),"Disable auth"]})]})]})}function Bo({className:n,inputMode:r,label:l,onChange:s,value:c}){return f.jsxs("label",{className:oe("space-y-1",n),children:[f.jsx("span",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:l}),f.jsx(am,{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:l=!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:oe("break-all text-right text-foreground",l&&"font-mono"),children:r})]})}function e_(n){const r=n.result;if(!r||typeof r!="object")return null;const l=r;return l.ok!==!0||typeof l.command!="string"||typeof l.logPath!="string"?null:{ok:!0,mode:l.mode==="package"?"package":"development",command:l.command,logPath:l.logPath,pid:typeof l.pid=="number"?l.pid:void 0}}function Fv(n){return{port:n_(n.endpoint),name:n.nodeName,join:"",transport:n1(n.transportType),workDir:n.workDir??"",config:"",disableAuth:n.disableAuthDefault===!0,disableAuthKnown:n.disableAuthDefault!==void 0}}function t_(n){const r={},l=Number(n.port.trim());return n.port.trim()&&Number.isInteger(l)&&l>0&&(r.port=l),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 n1(n){return n==="direct"||n==="devtunnel"||n==="tailscale"?n:"inherit"}function n_(n){if(!n)return"";try{return new URL(n).port||""}catch{return""}}function Vd(n){return n.length<=8?n:n.slice(0,8)}function Ho({formatDateTime:n,name:r,status:l,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(l==null?void 0:l.checkedAt)})]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[typeof(l==null?void 0:l.authenticated)=="boolean"&&f.jsx(Et,{variant:l.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:l.authenticated?"auth ok":"auth required"}),f.jsx(Et,{variant:s(l==null?void 0:l.status),className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:(l==null?void 0:l.status)??"unknown"})]})]})}function Vt(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 a_(n){const r=Math.max(0,Math.floor(n)),l=Math.floor(r/86400),s=Math.floor(r%86400/3600),c=Math.floor(r%3600/60);return l>0?`${l}d ${s}h`:s>0?`${s}h ${c}m`:`${c}m`}function Wv(n){if(n==null||Number.isNaN(n))return"Unavailable";const r=["B","KB","MB","GB","TB"];let l=n,s=0;for(;l>=1024&&s<r.length-1;)l/=1024,s+=1;return`${l.toFixed(l>=10||s===0?0:1)} ${r[s]}`}function xl(n){return n==="ok"?"default":n==="missing"||n==="install-failed"||n==="login-failed"?"destructive":n==="not-authenticated"||n==="unsupported-platform"?"outline":"secondary"}function r_(n){return n.available?f.jsxs(Et,{className:"gap-1 rounded-sm px-1.5 py-0 text-[10px]",children:[f.jsx(Po,{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(gN,{className:"h-3 w-3"}),"Unavailable"]})}function l_(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 o_(n){return n.available?null:n.metadataStatus??null}function s_(n){var l;const r=`npm install -g ${(l=n.update)==null?void 0:l.packageName}@latest`;return n.id==="claude"?`${r} --include=optional --ignore-scripts=false`:r}function i_(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:l=!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:oe("break-all text-right text-[11px] text-foreground",l&&"font-mono text-[11px]"),children:r})]})}function $o({label:n,value:r,mono:l=!1,className:s}){return f.jsxs("div",{className:oe("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:oe("truncate text-[11px] text-foreground",l&&"font-mono",n==="Path"&&"break-all whitespace-normal"),children:r})]})}function c_({agent:n,nodeName:r,activeOperation:l,onUpgrade:s}){var v,p;const c=((v=n.update)==null?void 0:v.updateAvailable)===!0,u=l_(n),m=!!l,h=o_(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(U0,{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:[r_(n),h&&f.jsx(Et,{variant:xl(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($o,{label:"Version",value:n.version??"Unavailable",mono:!!n.version}),n.update&&f.jsx($o,{label:"Latest",value:n.update.latestVersion??"Unavailable",mono:!!n.update.latestVersion}),f.jsx($o,{label:"Checked",value:Vt(n.checkedAt)}),n.update&&f.jsx($o,{label:"Update check",value:Vt(n.update.checkedAt)}),f.jsx($o,{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:l?f.jsxs(Et,{variant:"outline",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:["Upgrade ",l.status]}):c?f.jsxs(pf,{children:[f.jsx(gf,{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(Vi,{children:[f.jsxs(Yi,{children:[f.jsxs(Ii,{children:["Upgrade ",n.label,"?"]}),f.jsxs(Xi,{children:["This runs ",s_(n)," on ",r,". Remote nodes execute the command on the remote machine."]})]}),f.jsxs(Gi,{children:[f.jsx(Qi,{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 u_(n,r){var l;return(l=n==null?void 0:n.nodes)!=null&&l.length?n.nodes:r?[r]:[]}function d_(n,r){var s;if(r&&n.id===r.nodeId)return r;const l=n.settingsSnapshot;return{...n,nodeId:n.id,version:(l==null?void 0:l.version)??"Unavailable",packageName:l==null?void 0:l.packageName,uptime:(l==null?void 0:l.uptime)??0,localDashboardOrigin:((s=l==null?void 0:l.runtime)==null?void 0:s.localDashboardOrigin)??void 0,auth:l==null?void 0:l.auth,os:l==null?void 0:l.os,runtime:l==null?void 0:l.runtime,runtimeUpdate:l==null?void 0:l.runtimeUpdate,agents:l==null?void 0:l.agents,startupRequirements:l==null?void 0:l.startupRequirements,components:l==null?void 0:l.components,repository:l==null?void 0:l.repository,packages:l==null?void 0:l.packages}}function f_(n,r){return n.id===r?`${n.name} (this node)`:`${n.name} (${n.role})`}function m_(n){return n==="claude"?"Claude Code":n==="copilot"?"Copilot CLI":"Codex"}function h_(n){var l;const r=(l=n.payload)==null?void 0:l.agent;return r==="claude"||r==="codex"||r==="copilot"?r:null}function p_({cluster:n,systemInfo:r,sseConnected:l,initialSelectedNodeId:s,onRefresh:c}){var ee,re,fe,ue,ie,me,ne,M,q,Q,de,C,V,F,I,W,se,ae,ce,le;const u=g.useMemo(()=>u_(n,r),[n,r]),[m,h]=g.useState(()=>{var J;return s??(r==null?void 0:r.nodeId)??((J=n==null?void 0:n.self)==null?void 0:J.id)??""}),[v,p]=g.useState(()=>new Map),b=g.useRef(new Set),y=g.useRef(new Set),S=(n==null?void 0:n.self)??r??u[0]??null,N=u.find(J=>J.id===m)??S,T=N?d_(N,r):null,E=!!(r&&N&&N.id===r.nodeId),R=E||!!(N!=null&&N.settingsSnapshot),A=T==null?void 0:T.runtimeUpdate,_=((ee=T==null?void 0:T.startupRequirements)==null?void 0:ee.components)??(T==null?void 0:T.components)??{},k=g.useMemo(()=>u.map(J=>J.id),[u]),U=k.join("\0"),z=$j(u),Y=g.useMemo(()=>new Map(u.map(J=>[J.id,J.name])),[z]);g.useEffect(()=>{s&&k.includes(s)&&h(s)},[s,U]);const G=g.useCallback(async(J,ve)=>{const ye=Jx(J);if(!ye||b.current.has(J.id))return;const Se=h_(J),Ue=(ve==null?void 0:ve.agentLabel)??(Se?m_(Se):"Agent"),$e=(ve==null?void 0:ve.nodeName)??Y.get(J.nodeId)??J.nodeId;b.current.add(J.id),p(Ye=>new Map(Ye).set(ye,J));try{const Ye=await e1(J);if(Ye.status==="succeeded")await(c==null?void 0:c()),y.current.has(Ye.id)||(Ge.success(`${Ue} upgrade finished on ${$e}`),y.current.add(Ye.id));else if(Ye.status==="failed")y.current.has(Ye.id)||(Ge.error(i_(Ye)??`${Ue} upgrade failed`),y.current.add(Ye.id));else{p(vt=>new Map(vt).set(ye,Ye)),Ge.info(`${Ue} upgrade is still ${Ye.status} on ${$e}`);return}p(vt=>{const _e=new Map(vt),Bt=_e.get(ye);return(!Bt||Bt.id===Ye.id)&&_e.delete(ye),_e})}catch(Ye){p(vt=>{const _e=new Map(vt),Bt=_e.get(ye);return(!Bt||Bt.id===J.id)&&_e.delete(ye),_e}),Ge.error(Ye instanceof Error?Ye.message:`${Ue} upgrade failed`)}finally{b.current.delete(J.id)}},[c,Y]);g.useEffect(()=>{if(k.length===0)return;let J=!1;async function ve(){let ye;try{ye=await Vj(k)}catch{return}if(!J){p(Se=>{const Ue=new Map(Se);for(const[$e,Ye]of ye)Ue.set($e,Ye);return Ue});for(const Se of ye.values())G(Se)}}return ve(),()=>{J=!0}},[G,U]);async function P(J){if(N)try{const ve=await xE(N.id,J.id);Ge.info(`${J.label} upgrade started on ${N.name}`),await G(ve,{agentLabel:J.label,nodeName:N.name})}catch(ve){Ge.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 ",Vt((re=N.settingsSnapshot)==null?void 0:re.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(kj,{status:N.status}),f.jsx("span",{className:"font-medium text-foreground",children:N.name})]}),f.jsx(Mj,{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(ex,{value:N.id,onValueChange:h,children:[f.jsx(Wf,{className:"h-7 rounded-sm border-border/70 bg-background/70 text-[11px]",children:f.jsx(tx,{placeholder:"Choose a node"})}),f.jsx(Jf,{className:"settings-node-select-content rounded-sm text-[10px] leading-4",children:u.map(J=>f.jsx(Sl,{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:f_(J,r==null?void 0:r.nodeId)},J.id))})]})]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsxs(Et,{variant:l?"default":"outline",className:"gap-1 rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:[f.jsx(LN,{className:"h-3 w-3"}),l?"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 ",a_(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(gj,{defaultValue:"session",className:"space-y-2",children:[f.jsxs(Ex,{className:"h-auto flex-wrap rounded-sm border border-border/60 bg-muted/40 p-0.5",children:[f.jsx(ji,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),f.jsx(ji,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),f.jsx(ji,{value:"about",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"About"})]}),f.jsxs(qi,{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($0,{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:Vt(N.joinedAt)}),f.jsx(et,{label:"Heartbeat",value:Vt(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(xN,{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?`${Wv(T.os.freeMemoryBytes)} free / ${Wv(T.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),A&&f.jsx("div",{className:"xl:col-span-2",children:f.jsx(Wj,{checkedLabel:Vt(A.checkedAt),disableAuthDefault:((ne=T.auth)==null?void 0:ne.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(U0,{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(c_,{agent:J,nodeName:N.name,activeOperation:v.get(`${N.id}:${J.id}`),onUpgrade:P},J.id))})]})]}),f.jsxs(qi,{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(oN,{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(GN,{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:(Q=T.auth)!=null&&Q.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(NN,{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:!!((ae=T.runtime)!=null&&ae.cwd)}),f.jsx(et,{label:"Started",value:Vt((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(Mi,{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:Vt((le=T.startupRequirements)==null?void 0:le.lastCheckedAt)})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(Ho,{formatDateTime:Vt,name:"Azure CLI",status:_.az,statusVariant:xl}),f.jsx(Ho,{formatDateTime:Vt,name:"DevTunnel",status:_.devtunnel,statusVariant:xl}),f.jsx(Ho,{formatDateTime:Vt,name:"Claude Code",status:_.claude,statusVariant:xl}),f.jsx(Ho,{formatDateTime:Vt,name:"Codex",status:_.codex,statusVariant:xl}),f.jsx(Ho,{formatDateTime:Vt,name:"Copilot CLI",status:_.copilot,statusVariant:xl})]})]})]})]}),f.jsx(zj,{formatDateTime:Vt,viewInfo:T})]})]})}function g_({initialSelectedNodeId:n,open:r,onOpenChange:l,showTrigger:s=!0}={}){const{cluster:c,systemInfo:u,sseConnected:m,refresh:h}=z0();return f.jsx(lA,{open:r,onOpenChange:l,showTrigger:s,children:f.jsx(p_,{cluster:c,systemInfo:u,sseConnected:m,initialSelectedNodeId:n,onRefresh:h})})}const A3="codex",j3="bypass",v_=[{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"}],_3=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],k3=new Set(v_.filter(n=>n.supportsFollowUp).map(n=>n.value)),M3=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],O3=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],y_=new Set(["pending","assigned"]),b_=new Set(["running"]),x_=new Set(["completed","failed","cancelled"]),D3=10;function z3(n,r){switch(r){case"running":return b_.has(n.status);case"waiting":return y_.has(n.status);case"closed":return x_.has(n.status);case"shared":return!!n.activeShare;case"archived":return n.status==="archived";case"active":default:return n.status!=="archived"}}function L3(n,r){if(r==="all")return!0;const l=n.conversationKind==="nativeSession";return r==="native"?l:!l}function U3(n,r){const l=r.trim().toLowerCase();return l?[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(l)):!0}function S_(n,r,l){if(!n)return"unassigned";const s=r==null?void 0:r.find(c=>c.id===n);return(s==null?void 0:s.name)??l??n.slice(0,8)}function B3(n,r,l){return S_(n,r,l).toLowerCase()}function H3(n){return n.type!=="node.status"&&n.type!=="cluster.state"}function $3(n,r,l){return!n.assignedTo||(l==null?void 0:l.id)===n.assignedTo?!0:(r==null?void 0:r.some(s=>s.id===n.assignedTo))??!1}function P3(n,r){return[...n].sort((l,s)=>l.id===r?-1:s.id===r?1:l.name.localeCompare(s.name))}function q3(n){if(!n||typeof n!="object")return null;const r=n,l=r.createMode,s=l==="chat"||l==="native"?l: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 V3(n){return n==="default workspace"?n:n.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??n}function Y3(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 G3(n){return new Date(n).toLocaleString()}function I3(n){const r=Math.floor(n/1e3),l=Math.floor(r/3600),s=Math.floor(r%3600/60),c=r%60;return`${String(l).padStart(2,"0")}:${String(s).padStart(2,"0")}:${String(c).padStart(2,"0")}`}async function w_(n,r="Copied to clipboard"){var l,s,c;try{if((s=(l=globalThis.navigator)==null?void 0:l.clipboard)!=null&&s.writeText)return await globalThis.navigator.clipboard.writeText(n),Ge.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"),v=u.activeElement,p=v&&typeof v.focus=="function"?v: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 Ge.success(r),!0}catch(u){return Ge.error(u instanceof Error?u.message:"Failed to copy"),!1}}const E_="default workspace";function _i(n){const r=n.replace(/\\/g,"/");return r==="/"||/^[A-Za-z]:\/$/.test(r)?r:r.replace(/\/+$/g,"")||r}function N_(n){const r=n.replace(/\\/g,"/");return r.startsWith("/")||r.startsWith("//")||/^[A-Za-z]:\//.test(r)}function T_(n,r){const l=_i(n),s=r.replace(/\\/g,"/").replace(/^\/+|\/+$/g,"");return!s||s==="."?l:l==="/"||/^[A-Za-z]:\/$/.test(l)?`${l}${s}`:`${l}/${s}`}function R_(n,r){var u,m,h;const l=(u=n.effectiveProjectPath)==null?void 0:u.trim();if(l)return _i(l);const s=(m=n.project)==null?void 0:m.trim();if(!s)return E_;if(N_(s)||!n.assignedTo)return _i(s);const c=(h=r==null?void 0:r.get(n.assignedTo))==null?void 0:h.trim();return c?T_(c,s):_i(s)}function X3(n,r,l,s){const c=new Map;for(const m of n){const h=m.assignedTo??null,v=h??"__unassigned__",p=h?r.get(h)??m.assignedNodeName??h.slice(0,8):"Unassigned",b=R_(m,s);c.has(v)||c.set(v,{nodeId:h,nodeName:p,dirMap:new Map});const y=c.get(v);y.dirMap.has(b)||y.dirMap.set(b,[]),y.dirMap.get(b).push(m)}const u=Array.from(c.values()).map(({nodeId:m,nodeName:h,dirMap:v})=>{const p=Array.from(v.entries()).map(([b,y])=>({path:b,tasks:y})).sort((b,y)=>y.tasks.length-b.tasks.length||b.path.localeCompare(y.path));return{nodeId:m,nodeName:h,dirs:p}});return u.sort((m,h)=>{if(l){if(m.nodeId===l)return-1;if(h.nodeId===l)return 1}return m.nodeId===null?1:h.nodeId===null?-1:m.nodeName.localeCompare(h.nodeName)}),u}const C_={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"},A_={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 j_(n){return n.split(".")[0]??"unknown"}function __(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function yl(n,r,l){return typeof l=="string"&&l.length>0?l:(r==null?void 0:r.get(n))??n}function a1(n,r){const l=n.data,s=l.operation;switch(n.type){case"node.joined":return`${l.name} joined the cluster`;case"node.left":return`${yl(l.nodeId,r,l.name)} left (${l.reason})`;case"node.status":return`${yl(l.nodeId,r)} is now ${l.status}`;case"node.operation.created":return`${s==null?void 0:s.kind} ${s==null?void 0:s.status} on ${yl(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 ${yl(s==null?void 0:s.nodeId,r)}`;case"transport.changed":return`${yl(l.nodeId,r)} transport switched to ${l.transportType}`;case"task.created":return`"${l.title}" created`;case"task.assigned":return`task assigned to ${yl(l.nodeId,r)}`;case"task.status":return`task ${l.taskId.slice(0,8)} -> ${l.status}`;case"election.started":return`candidate ${l.candidateId.slice(0,8)} term ${l.term}`;case"election.complete":return`leader elected, term ${l.term}`;case"cluster.state":return`${l.nodeCount} nodes, term ${l.term}`;default:return JSON.stringify(l)}}function k_(n){return JSON.stringify(n,null,2)}function M_({events:n,maxHeight:r="400px",nodeNameById:l,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=j_(m.type);return f.jsx("div",{className:oe("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:oe("font-mono text-muted-foreground",u?"text-[8px]":"text-[9px]"),children:__(m.timestamp)}),u?f.jsx("span",{className:oe("max-w-[8.5rem] truncate text-[7px] font-medium uppercase tracking-[0.08em] text-muted-foreground/70",A_[h]),children:m.type}):f.jsx(Et,{variant:"outline",className:oe("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",C_[h]),children:m.type})]}),f.jsxs("div",{className:oe("flex shrink-0 items-center",u?"gap-px":"gap-0.5"),children:[f.jsx(mn,{type:"button",variant:"ghost",size:"icon",className:oe("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 w_(k_(m),"Event copied"),"aria-label":`Copy ${m.type} event`,title:"Copy event",children:f.jsx(yN,{className:u?"h-2.5 w-2.5":"h-3 w-3"})}),s&&f.jsx(mn,{type:"button",variant:"ghost",size:"icon",className:oe("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(V0,{className:u?"h-2.5 w-2.5":"h-3 w-3"})})]})]}),f.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:a1(m,l)})]})},m.id)})})})}const O_=["node.","election.","transport."],D_="cluster.state";function z_(n){return n.type==="node.status"?!1:O_.some(r=>n.type.startsWith(r))}function L_(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function U_(n,r){return n?{time:L_(n.timestamp),text:a1(n,r)}:null}function B_(n){return n.transportType==="devtunnel"||!!n.devtunnelEndpoint}function H_(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 l=n.filter(c=>{var u;return((u=c.devtunnelHealth)==null?void 0:u.status)==="failed"}).length;if(l>0)return`${l} 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 $_(n,r){var c;const l=(r==null?void 0:r.get(n.id))??n.name??n.id;if(n.status==="offline")return{label:l,status:"offline"};const s=((c=n.devtunnelHealth)==null?void 0:c.status)??"checking";return{label:l,status:s}}function P_(n){if(n.length===0)return"No nodes";const r=n.filter(s=>s.status==="offline").length;if(r>0)return`${r} offline`;const l=n.filter(s=>s.status==="busy").length;return l>0?`${l} busy`:"Healthy"}function q_(n,r){return{label:(r==null?void 0:r.get(n.id))??n.name??n.id,status:n.status}}function V_({connected:n,events:r,nodes:l=[],currentNode:s=null,nodeNameById:c,desktopUpdate:u=null,defaultOpen:m=!1,defaultActionMenuOpen:h=!1,onDesktopUpdate:v,onDesktopRestart:p,onReload:b,onRestart:y}){const[S,N]=g.useState(m),[T,E]=g.useState(h),[R,A]=g.useState(!0),[_,k]=g.useState(new Set),[U,z]=g.useState(!1),[Y,G]=g.useState(!1),P=g.useRef(null),ee=g.useRef(null),re=g.useMemo(()=>r.filter(be=>z_(be)&&!_.has(be.id)),[r,_]),fe=g.useMemo(()=>r.find(be=>be.type===D_)??re[0],[r,re]),ue=g.useMemo(()=>U_(fe,c),[fe,c]),ie=g.useMemo(()=>{const be=new Map(l.map(Pe=>[Pe.id,Pe]));return s&&be.set(s.id,s),Array.from(be.values())},[s,l]),me=g.useMemo(()=>ie.filter(B_),[ie]),ne=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"),Q=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",ae=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||!!y,ye=V||!!y||ce,Se=ve?V?"Update":"Relaunch":"Reload",Ue=ve?V?ae:se:"Reload dashboard page",$e=ve?V?Y:U:!1,Ye=ve?V?$e||!F||!v:$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 Bt(){_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 jt(){if(!(!y||U)){z(!0);try{await y()}finally{z(!1)}}}async function pn(){if(!(!F||!v||Y)){G(!0);try{await v()}finally{G(!1)}}}async function zl(){if(!(!p||U)){E(!1),z(!0);try{await p()}finally{z(!1)}}}async function Cr(){if(!ve){await Gt();return}if(V){await pn();return}await jt()}async function Gt(){b&&(E(!1),await b())}return g.useEffect(()=>()=>{_e()},[]),g.useEffect(()=>{k(be=>{if(be.size===0)return be;const Pe=new Set(r.map(it=>it.id)),ke=new Set(Array.from(be).filter(it=>Pe.has(it)));return ke.size===be.size?be:ke})},[r]),g.useEffect(()=>{S||E(!1)},[S]),g.useEffect(()=>{if(!S)return;const be=ke=>{var it;(it=P.current)!=null&&it.contains(ke.target)||(_e(),E(!1),N(!1))},Pe=ke=>{ke.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:Bt,onMouseLeave:yt,className:oe("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:oe("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:oe("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:oe("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(Mi,{className:"h-3 w-3 text-emerald-500"}):f.jsx(FN,{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:oe("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:re.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(mi,{className:"h-3 w-3 shrink-0 text-destructive"}):q?f.jsx(Mi,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Po,{className:oe("h-3 w-3 shrink-0",Q?"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:oe("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":Q?"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:P_(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:ke}=q_(be,c),it=ke==="offline",Tn=ke==="busy";return f.jsxs("div",{"aria-label":`${Pe} ${ke}`,className:oe("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} ${ke}`,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:Pe}),it?f.jsx(mi,{className:"h-3 w-3 shrink-0 text-destructive"}):Tn?f.jsx(mv,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Po,{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:[ne?f.jsx(mi,{className:"h-3 w-3 shrink-0 text-destructive"}):f.jsx(Po,{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:oe("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",ne?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"),children:H_(me)})]}),f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:me.map(be=>{var Gn;const{label:Pe,status:ke}=$_(be,c),it=ke==="failed"||ke==="offline",Tn=ke!=="healthy"&&ke!=="failed"&&ke!=="offline",Rn=(Gn=be.devtunnelHealth)!=null&&Gn.reason?`${Pe} ${ke}: ${be.devtunnelHealth.reason}`:`${Pe} ${ke}`;return f.jsxs("div",{"aria-label":`${Pe} ${ke}`,className:oe("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(mi,{className:"h-3 w-3 shrink-0 text-destructive"}):Tn?f.jsx(mv,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):f.jsx(Po,{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 ",re.length>0&&`(${re.length})`]}),R?f.jsx(Io,{className:"h-3 w-3 text-muted-foreground"}):f.jsx(Jd,{className:"h-3 w-3 text-muted-foreground"})]}),R&&f.jsx("div",{className:"px-2 pb-2",children:f.jsx(M_,{events:re,maxHeight:"12rem",density:"compact",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:c,onDismiss:be=>k(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(mn,{type:"button",variant:"ghost",size:"sm",className:oe("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:Ye,"aria-label":vt,"aria-describedby":"live-link-restart-hint",title:Ue,children:[f.jsx(hv,{className:oe("h-2.5 w-2.5",$e&&"animate-pulse")}),f.jsx("span",{children:Se})]}),J&&f.jsx(mn,{type:"button",variant:"ghost",size:"sm",className:oe("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(Io,{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:Ye,"aria-label":vt,children:[f.jsx(hv,{className:oe("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 zl(),disabled:U,"aria-label":"Restart Meshy Desktop",children:[f.jsx(ef,{className:oe("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 Gt(),"aria-label":"Reload dashboard page",children:[f.jsx(ef,{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:Ue})]})}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(mn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>k(new Set(r.map(be=>be.id))),disabled:re.length===0,title:"Dismiss all notifications",children:"Dismiss all"}),f.jsx(mn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>N(!1),children:"Close"})]})]})]})]})}const Jv="dark",Nr="fluent",Y_="clean",Yd="meshy-layout-default-migrated-to-compact",vf="true",G_="compact",I_=new Set(["airy","clean","fluent"]);function X_(n){return n!==null&&I_.has(n)}function mc(n){return n===G_?"fluent":X_(n)?n:null}function K_(n,r){const l=mc(n);return l===Y_&&r!==vf?Nr:l??Nr}const Zi="symphony",r1="default",Q_=new Set(["light","dark","system"]),Z_=new Set(["porcelain","warm","finsight","edge","symphony","launcher"]),l1=g.createContext(null);function F_(n){const r=new URLSearchParams(n).get("theme");return o1(r)?r:null}function W_(n){const r=new URLSearchParams(n).get("palette");return rm(r)}function J_(n){const r=new URLSearchParams(n).get("layout");return mc(r)}function ek(){if(typeof document>"u")return null;const n=document.documentElement;return{theme:n.classList.contains("dark")?"dark":"light",palette:rm(n.getAttribute("data-palette"))??Zi,layout:mc(n.getAttribute("data-layout"))??Nr}}function K3(n,r=ek()){if(!r)return n;try{const l=/^[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),l?c.toString():`${c.pathname}${c.search}${c.hash}`}catch{return n}}const Gd=.9;function e0(n){const r=n.trim().match(/^(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)%\s+(-?\d+(?:\.\d+)?)%$/);if(!r)return null;const l=(Number(r[1])%360+360)%360/60,s=Fi(Number(r[2])/100,0,1),c=Fi(Number(r[3])/100,0,1),u=(1-Math.abs(2*c-1))*s,m=u*(1-Math.abs(l%2-1)),h=c-u/2,[v,p,b]=l<1?[u,m,0]:l<2?[m,u,0]:l<3?[0,u,m]:l<4?[0,m,u]:l<5?[m,0,u]:[u,0,m];return[Math.round((v+h)*255),Math.round((p+h)*255),Math.round((b+h)*255),255]}function tk(n){const r=n.trim();if(!r||r==="transparent")return null;const l=r.match(/^rgba?\(\s*([+-]?\d+(?:\.\d+)?)\s*,\s*([+-]?\d+(?:\.\d+)?)\s*,\s*([+-]?\d+(?:\.\d+)?)(?:\s*,\s*([+-]?\d+(?:\.\d+)?))?\s*\)$/i);if(l)return[bl(Number(l[1])),bl(Number(l[2])),bl(Number(l[3])),a0(l[4])];const s=r.match(/^rgba?\(\s*([+-]?\d+(?:\.\d+)?)\s+([+-]?\d+(?:\.\d+)?)\s+([+-]?\d+(?:\.\d+)?)(?:\s*\/\s*([+-]?\d+(?:\.\d+)?%?))?\s*\)$/i);return s?[bl(Number(s[1])),bl(Number(s[2])),bl(Number(s[3])),a0(s[4])]:null}function nk(n,r,l){const s=e0(n);if(!s)return null;if(l==="clean"||l==="fluent")return s;const c=e0(r);return c?[Id(s[0],c[0],Gd),Id(s[1],c[1],Gd),Id(s[2],c[2],Gd),255]:null}function ak(){const n=document.querySelector(".dashboard-shell-header-panel");if(!n)return null;const r=tk(getComputedStyle(n).backgroundColor);return!r||r[3]===0?null:r}function t0(){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,l=r.classList.contains("dark")?"dark":"light",s=getComputedStyle(r),c=mc(r.getAttribute("data-layout"))??Nr,u=ak()??nk(s.getPropertyValue("--card"),s.getPropertyValue("--background"),c);n("sync_desktop_theme",{theme:l,backgroundColor:u}).catch(()=>{})}function n0(){if(typeof window>"u")return()=>{};if(t0(),typeof window.requestAnimationFrame!="function")return()=>{};const n=window.requestAnimationFrame(()=>t0());return()=>window.cancelAnimationFrame(n)}function Id(n,r,l){return Math.round(n*l+r*(1-l))}function Fi(n,r,l){return Math.min(Math.max(n,r),l)}function bl(n){return Math.round(Fi(n,0,255))}function a0(n){if(n==null||n==="")return 255;const r=n.endsWith("%")?Number(n.slice(0,-1))/100:Number(n);return Math.round(Fi(r,0,1)*255)}function rk({children:n}){const[r,l]=g.useState(()=>typeof window<"u"?F_(window.location.search)??sk(localStorage.getItem("meshy-theme"))??Jv:Jv),[s,c]=g.useState(()=>typeof window<"u"?W_(window.location.search)??ik(localStorage.getItem("meshy-palette"))??Zi:Zi),[u,m]=g.useState(()=>{if(typeof window<"u"){const h=J_(window.location.search);if(h)return localStorage.setItem(Yd,vf),h;const v=K_(localStorage.getItem("meshy-layout"),localStorage.getItem(Yd));return localStorage.setItem(Yd,vf),v}return Nr});return g.useEffect(()=>{const h=document.documentElement,v=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(v(r),localStorage.setItem("meshy-theme",r),r==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)"),b=()=>{v("system"),n0()};return p.addEventListener("change",b),()=>p.removeEventListener("change",b)}},[r]),g.useEffect(()=>{document.documentElement.setAttribute("data-palette",s),localStorage.setItem("meshy-palette",s)},[s]),g.useEffect(()=>{const h=document.documentElement;u===Nr?h.removeAttribute("data-layout"):h.setAttribute("data-layout",u),localStorage.setItem("meshy-layout",u)},[u]),g.useEffect(()=>n0(),[r,s,u]),f.jsx(l1.Provider,{value:{theme:r,setTheme:l,palette:s,setPalette:c,layout:u,setLayout:m},children:n})}function lk(){const n=g.useContext(l1);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}function o1(n){return n!==null&&Q_.has(n)}function ok(n){return n!==null&&Z_.has(n)}function sk(n){return o1(n)?n:null}function rm(n){return n===r1?"porcelain":ok(n)?n:null}function ik(n){return n===r1?null:rm(n)}const ck=[{value:"light",label:"Light",icon:P0},{value:"dark",label:"Dark",icon:H0},{value:"system",label:"System",icon:B0}],s1=[{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"}],i1=[{value:"airy",label:"Airy",hint:"Gradients, blur, spacious"},{value:"clean",label:"Clean",hint:"Flat, borders, high density"},{value:"fluent",label:"Fluent",hint:"Compact neutral"}];function uk(){const{theme:n,setTheme:r,palette:l,setPalette:s,layout:c,setLayout:u}=lk(),[m,h]=g.useState(!1),v=g.useRef(null),p=g.useRef(null),b=n==="dark"?H0:n==="light"?P0:B0,y=()=>{v.current&&(clearTimeout(v.current),v.current=null)},S=()=>{y(),v.current=setTimeout(()=>h(!1),180)};return g.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]),g.useEffect(()=>()=>y(),[]),f.jsxs("div",{ref:p,className:"relative",onMouseEnter:()=>{y(),h(!0)},onMouseLeave:S,children:[f.jsx(mn,{variant:"ghost",size:"icon",onClick:()=>h(N=>!N),className:oe("h-8 w-8 rounded-sm",l!==Zi||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:[dk(c)," / ",fk(l)]})]}),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:ck.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:oe("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:i1.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:oe("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:oe("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(Oi,{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(XN,{className:"h-2.5 w-2.5"}),"Palette"]}),f.jsx("div",{className:"space-y-1",children:s1.map(({value:N,label:T,hint:E})=>{const R=l===N;return f.jsxs("button",{type:"button",onClick:()=>s(N),role:"menuitemradio","aria-checked":R,className:oe("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(mk,{value:N}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:oe("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(Oi,{className:"h-3 w-3 text-primary"})]},N)})})]})]})]})]})}function dk(n){var r;return((r=i1.find(l=>l.value===n))==null?void 0:r.label)??n}function fk(n){var r;return((r=s1.find(l=>l.value===n))==null?void 0:r.label)??n}function mk({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%)"]},[l,s,c]=r[n];return f.jsxs("div",{className:oe("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:l}}),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 Vo={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}},c1="meshy-dashboard-panel-state-v2",u1="meshy-dashboard-terminal-open-v1";function Q3({operationsOpen:n}){return{layout:{desktopTasksOpen:!0,operationsOpen:n},sizes:{tasks:Vo.tasks.defaultSize,operations:Vo.operations.defaultSize,terminal:Vo.terminal.defaultSize}}}function Xd(n){return typeof n=="object"&&n!==null}function r0(n,r){return typeof n=="boolean"?n:r}function Kd(n,r,l){return typeof r=="number"&&Number.isFinite(r)?Yo(n,r):l}function Yo(n,r){const l=Vo[n];return Math.min(l.max,Math.max(l.min,r))}function Z3(n,r){if(!n)return r;try{const l=n.getItem(c1);if(!l)return r;const s=JSON.parse(l);if(!Xd(s))return r;const c=Xd(s.layout)?s.layout:{},u=Xd(s.sizes)?s.sizes:{};return{layout:{desktopTasksOpen:r0(c.desktopTasksOpen,r.layout.desktopTasksOpen),operationsOpen:r0(c.operationsOpen,r.layout.operationsOpen)},sizes:{tasks:Kd("tasks",u.tasks,r.sizes.tasks),operations:Kd("operations",u.operations,r.sizes.operations),terminal:Kd("terminal",u.terminal,r.sizes.terminal)}}}catch{return r}}function F3(n,r){if(n)try{n.setItem(c1,JSON.stringify(r))}catch{}}function hk(n,r){if(!n)return r;try{const l=n.getItem(u1);return l==="true"?!0:l==="false"?!1:r}catch{return r}}function pk(n,r){if(n)try{n.setItem(u1,String(r))}catch{}}function l0(){var n;try{return((n=globalThis.window)==null?void 0:n.localStorage)??globalThis.localStorage??null}catch{return null}}function W3(n){return`${Number(n.toFixed(2))}rem`}function J3(n,r,l,s,c,u,m){const h=Number.isFinite(m)&&m>0?m:16;return n==="tasks"?Yo(n,r+(c-l)/h):n==="operations"?Yo(n,r+(l-c)/h):Yo(n,r+(s-u)/h)}function eM(n,r,l){const s=l===0?0:l>0?-1:1;return Yo(n,r+s*Vo[n].wheelStep)}const gk=7200*1e3;function vk(){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 Ei(){var n,r;return typeof window>"u"?null:((r=(n=window.__TAURI__)==null?void 0:n.core)==null?void 0:r.invoke)??null}function o0(n){return{currentVersion:null,latestVersion:null,updateAvailable:!1,checkedAt:new Date().toISOString(),releaseUrl:null,assetName:null,installable:!1,detail:n}}function Qd(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 l=n.message;if(typeof l=="string"&&l.trim())return l}return r}function yk(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 bk(){const{cluster:n,events:r,sseConnected:l,systemInfo:s}=z0(),c=Vn(),[u,m]=g.useState(()=>hk(l0(),!1)),[h,v]=g.useState(""),[p,b]=g.useState(null),[y,S]=g.useState(null),N=!!Ei(),T=N?"max-w-none":"max-w-[1760px]",E=c.pathname==="/"||/^\/tasks\/[^/]+$/.test(c.pathname),R=g.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=g.useCallback(z=>{m(Y=>typeof z=="function"?z(Y):z)},[]);g.useEffect(()=>{pk(l0(),u)},[u]),g.useEffect(()=>{const z=Ei();if(!z){S(null);return}let Y=!1,G=!1;const P=re=>{G||(G=!0,re&&S(o0("Checking desktop update...")),z("check_desktop_update").then(fe=>{Y||S(fe)}).catch(fe=>{if(!Y){const ue=Qd(fe,"Desktop update check failed");S(ie=>ie!=null&&ie.updateAvailable?ie:o0(ue))}}).finally(()=>{G=!1}))};P(!0);const ee=window.setInterval(()=>P(!1),gk);return()=>{Y=!0,window.clearInterval(ee)}},[s==null?void 0:s.version]);async function _(){try{const z=await M0({reason:"restart"});Ge.info(`Restarting runtime. Follow ${z.logPath} for launch output.`),await t1({previousPid:z.pid})||Ge.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout.")}catch(z){Ge.error(z instanceof Error?z.message:"Runtime restart failed")}}async function k(){const z=Ei();if(!z){Ge.error("Desktop updater is not available in this window");return}try{Ge.info("Downloading desktop update...");const Y=await z("install_desktop_update");Ge.info(yk(Y))}catch(Y){Ge.error(Qd(Y,"Desktop update failed"))}}async function U(){const z=Ei();if(!z){Ge.error("Desktop restart is not available in this window");return}try{Ge.info("Restarting Meshy Desktop..."),await z("restart_desktop_app")}catch(Y){Ge.error(Qd(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:oe("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(Wd,{to:"/","aria-label":"Meshy home",className:"flex items-center gap-2",children:[f.jsx(vk,{}),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:()=>v(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($0,{className:"h-3 w-3 shrink-0 text-primary/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.nodeName})]}),f.jsx(Jd,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsxs("button",{type:"button",onClick:()=>v(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(RN,{className:"h-3 w-3 shrink-0 text-muted-foreground/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.projectLabel})]}),f.jsx(Jd,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsx(Wd,{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($N,{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(am,{"aria-label":"Search tasks",value:h,onChange:z=>v(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(mn,{variant:"ghost",size:"icon",onClick:()=>A(z=>!z),"aria-label":u?"Close terminal":"Open terminal",title:u?"Close terminal":"Open terminal",className:oe("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(q0,{className:"h-4 w-4"})}),f.jsx(g_,{}),f.jsx(uk,{}),f.jsx("div",{className:"mx-0 h-4 w-px shrink-0 bg-border/50"}),f.jsx(V_,{connected:l,events:r,nodes:(n==null?void 0:n.nodes)??[],currentNode:(n==null?void 0:n.self)??null,nodeNameById:R,desktopUpdate:y,onDesktopUpdate:y!=null&&y.updateAvailable?k:void 0,onDesktopRestart:N?U:void 0,onReload:N?()=>window.location.reload():void 0,onRestart:_})]})]})}),f.jsx("main",{className:oe("dashboard-shell-main min-h-0 flex-1 px-2 pb-2",E?"overflow-hidden":"overflow-y-auto"),children:f.jsx("div",{className:oe("dashboard-shell-content mx-auto h-full min-h-0",T),children:f.jsx(j2,{context:{terminalOpen:u,setTerminalOpen:A,headerSearchQuery:h,setHeaderSearchQuery:v,setHeaderTaskContext:b}})})})]})]})}const s0=g.lazy(async()=>({default:(await u0(()=>import("./DashboardPage-D21dWlmw.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4]))).DashboardPage})),xk=g.lazy(async()=>({default:(await u0(()=>import("./SharedConversationPage-DpJKqW_3.js"),__vite__mapDeps([5,1]))).SharedConversationPage}));function Sk(){return f.jsx(tE,{children:f.jsx(g.Suspense,{fallback:f.jsx(wk,{}),children:f.jsxs(k2,{children:[f.jsx(br,{path:"/shared/tasks/:shareId",element:f.jsx(xk,{})}),f.jsxs(br,{element:f.jsx(KE,{children:f.jsx(bk,{})}),children:[f.jsx(br,{path:"/",element:f.jsx(s0,{})}),f.jsx(br,{path:"/nodes",element:f.jsx(sv,{to:"/",replace:!0})}),f.jsx(br,{path:"/tasks",element:f.jsx(sv,{to:"/",replace:!0})}),f.jsx(br,{path:"/tasks/:id",element:f.jsx(s0,{})})]})]})})})}function wk(){return f.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function Ek(n){const r=n??(typeof window>"u"?void 0:window);r!=null&&r.__TAURI__&&r.addEventListener("contextmenu",l=>{l.preventDefault()})}function Nk(n){return f.jsx(hR,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...n})}Ek();_w.createRoot(document.getElementById("root")).render(f.jsx(g.StrictMode,{children:f.jsxs(rk,{children:[f.jsx(Sk,{}),f.jsx(Nk,{})]})}));export{Xi as $,Vy as A,mn as B,Oi as C,j3 as D,Gy as E,NN as F,K3 as G,yN as H,am as I,w_ as J,Ex as K,ji as L,S_ as M,U0 as N,gj as O,R3 as P,C3 as Q,Et as R,$0 as S,_3 as T,G3 as U,qi as V,pf as W,V0 as X,Vi as Y,Yi as Z,Ii as _,bR as a,o3 as a$,Gi as a0,Qi as a1,Ki as a2,u0 as a3,_k as a4,Yy as a5,rA as a6,Vk as a7,q0 as a8,Po as a9,Wx as aA,Y3 as aB,gf as aC,s3 as aD,i3 as aE,Z3 as aF,Q3 as aG,l0 as aH,F3 as aI,eM as aJ,W3 as aK,J3 as aL,Zk as aM,PE as aN,EE as aO,w3 as aP,S3 as aQ,E3 as aR,YE as aS,r3 as aT,Dk as aU,Mk as aV,Ok as aW,zk as aX,bE as aY,g_ as aZ,l3 as a_,gN as aa,qk as ab,Yk as ac,Pk as ad,FN as ae,VN as af,aN as ag,_N as ah,Fo as ai,P3 as aj,LN as ak,M_ as al,kj as am,wN as an,Mj as ao,I3 as ap,y_ as aq,b3 as ar,RR as as,Iy as at,ef as au,D3 as av,X3 as aw,M3 as ax,O3 as ay,V3 as az,oe as b,Kk as b0,Gk as b1,Ik as b2,Xk as b3,Qk as b4,Ck as b5,Vn as b6,S0 as b7,Rk as b8,z0 as b9,v_ as bA,i0 as bB,dN as bC,v3 as bD,g3 as bE,p3 as bF,y3 as bG,N3 as bH,x3 as bI,q3 as ba,$3 as bb,z3 as bc,L3 as bd,B3 as be,U3 as bf,H3 as bg,Fk as bh,k3 as bi,b_ as bj,n3 as bk,a3 as bl,t3 as bm,e3 as bn,jk as bo,kk as bp,Ak as bq,Lk as br,T3 as bs,m3 as bt,f3 as bu,d3 as bv,c3 as bw,u3 as bx,h3 as by,nA as bz,He as c,oy as d,$k as e,yE as f,Bk as g,Uk as h,RN as i,f as j,Jd as k,Sl as l,Hk as m,Jk as n,ex as o,Wf as p,tx as q,g as r,Jf as s,Ge as t,$N as u,Io as v,XN as w,A3 as x,Wk as y,tA as z};
|