meshy-node 0.10.1 → 0.10.2
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-BaHExl1O.css +1 -0
- package/dashboard/assets/DashboardPage-t7hNJ6ER.js +166 -0
- package/dashboard/assets/DashboardShared-DKoU9m12.js +79 -0
- package/dashboard/assets/DiffTab-CHGam55q.js +23 -0
- package/dashboard/assets/FilesTab-CHjCfHQI.js +11 -0
- package/dashboard/assets/MarkdownPreviewFrame-CizfMkZT.js +13 -0
- package/dashboard/assets/PreviewTab-B8thlxN1.js +21 -0
- package/dashboard/assets/SharedConversationPage-fseaPX1s.js +2 -0
- package/dashboard/assets/{file-BoEYGA7g.js → file-RHsnzvWQ.js} +1 -1
- package/dashboard/assets/index-CeG71j20.css +1 -0
- package/dashboard/assets/index-DxmS1OIF.js +346 -0
- package/dashboard/index.html +2 -2
- package/main.cjs +33330 -9406
- package/package.json +2 -2
- package/runtime-metadata.json +5 -5
- package/dashboard/assets/DashboardPage-BJhmjsGE.js +0 -154
- package/dashboard/assets/DashboardPage-i714dDoR.css +0 -1
- package/dashboard/assets/DashboardShared-BvbuoP9b.js +0 -79
- package/dashboard/assets/DiffTab-Bd3CsYCX.js +0 -23
- package/dashboard/assets/FilesTab-Dr_X6U7n.js +0 -11
- package/dashboard/assets/MarkdownPreviewFrame-xP27WQ5V.js +0 -12
- package/dashboard/assets/PreviewTab-DtBT527u.js +0 -21
- package/dashboard/assets/SharedConversationPage-Cp-wV5Db.js +0 -2
- package/dashboard/assets/index-BZlZVBzf.js +0 -346
- package/dashboard/assets/index-z8uCUOPA.css +0 -1
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-BJhmjsGE.js","assets/DashboardShared-BvbuoP9b.js","assets/MarkdownPreviewFrame-xP27WQ5V.js","assets/PreviewTab-DtBT527u.js","assets/DashboardPage-i714dDoR.css","assets/SharedConversationPage-Cp-wV5Db.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var qw=Object.defineProperty;var Vw=(t,r,l)=>r in t?qw(t,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[r]=l;var it=(t,r,l)=>Vw(t,typeof r!="symbol"?r+"":r,l);function Yw(t,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 t)){const u=Object.getOwnPropertyDescriptor(s,c);u&&Object.defineProperty(t,c,u.get?u:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(t,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 v0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Cd={exports:{}},Lo={};/**
|
|
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 Fg;function Gw(){if(Fg)return Lo;Fg=1;var t=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:t,type:s,key:m,ref:c!==void 0?c:null,props:u}}return Lo.Fragment=r,Lo.jsx=l,Lo.jsxs=l,Lo}var Wg;function Iw(){return Wg||(Wg=1,Cd.exports=Gw()),Cd.exports}var f=Iw(),Rd={exports:{}},Re={};/**
|
|
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 Jg;function Xw(){if(Jg)return Re;Jg=1;var t=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"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.iterator;function S(A){return A===null||typeof A!="object"?null:(A=y&&A[y]||A["@@iterator"],typeof A=="function"?A:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,N={};function C(A,Y,se){this.props=A,this.context=Y,this.refs=N,this.updater=se||T}C.prototype.isReactComponent={},C.prototype.setState=function(A,Y){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,Y,"setState")},C.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function R(){}R.prototype=C.prototype;function k(A,Y,se){this.props=A,this.context=Y,this.refs=N,this.updater=se||T}var _=k.prototype=new R;_.constructor=k,E(_,C.prototype),_.isPureReactComponent=!0;var U=Array.isArray,z={H:null,A:null,T:null,S:null,V:null},G=Object.prototype.hasOwnProperty;function V(A,Y,se,X,ne,W){return se=W.ref,{$$typeof:t,type:A,key:Y,ref:se!==void 0?se:null,props:W}}function $(A,Y){return V(A.type,Y,void 0,void 0,void 0,A.props)}function le(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function de(A){var Y={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(se){return Y[se]})}var fe=/\/+/g;function F(A,Y){return typeof A=="object"&&A!==null&&A.key!=null?de(""+A.key):Y.toString(36)}function te(){}function ie(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(te,te):(A.status="pending",A.then(function(Y){A.status==="pending"&&(A.status="fulfilled",A.value=Y)},function(Y){A.status==="pending"&&(A.status="rejected",A.reason=Y)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function J(A,Y,se,X,ne){var W=typeof A;(W==="undefined"||W==="boolean")&&(A=null);var ee=!1;if(A===null)ee=!0;else switch(W){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(A.$$typeof){case t:case r:ee=!0;break;case b:return ee=A._init,J(ee(A._payload),Y,se,X,ne)}}if(ee)return ne=ne(A),ee=X===""?"."+F(A,0):X,U(ne)?(se="",ee!=null&&(se=ee.replace(fe,"$&/")+"/"),J(ne,Y,se,"",function(ae){return ae})):ne!=null&&(le(ne)&&(ne=$(ne,se+(ne.key==null||A&&A.key===ne.key?"":(""+ne.key).replace(fe,"$&/")+"/")+ee)),Y.push(ne)),1;ee=0;var ue=X===""?".":X+":";if(U(A))for(var ce=0;ce<A.length;ce++)X=A[ce],W=ue+F(X,ce),ee+=J(X,Y,se,W,ne);else if(ce=S(A),typeof ce=="function")for(A=ce.call(A),ce=0;!(X=A.next()).done;)X=X.value,W=ue+F(X,ce++),ee+=J(X,Y,se,W,ne);else if(W==="object"){if(typeof A.then=="function")return J(ie(A),Y,se,X,ne);throw Y=String(A),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ee}function M(A,Y,se){if(A==null)return A;var X=[],ne=0;return J(A,X,"","",function(W){return Y.call(se,W,ne++)}),X}function q(A){if(A._status===-1){var Y=A._result;Y=Y(),Y.then(function(se){(A._status===0||A._status===-1)&&(A._status=1,A._result=se)},function(se){(A._status===0||A._status===-1)&&(A._status=2,A._result=se)}),A._status===-1&&(A._status=0,A._result=Y)}if(A._status===1)return A._result.default;throw A._result}var K=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)};function me(){}return Re.Children={map:M,forEach:function(A,Y,se){M(A,function(){Y.apply(this,arguments)},se)},count:function(A){var Y=0;return M(A,function(){Y++}),Y},toArray:function(A){return M(A,function(Y){return Y})||[]},only:function(A){if(!le(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},Re.Component=C,Re.Fragment=l,Re.Profiler=c,Re.PureComponent=k,Re.StrictMode=s,Re.Suspense=g,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,Re.__COMPILER_RUNTIME={__proto__:null,c:function(A){return z.H.useMemoCache(A)}},Re.cache=function(A){return function(){return A.apply(null,arguments)}},Re.cloneElement=function(A,Y,se){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var X=E({},A.props),ne=A.key,W=void 0;if(Y!=null)for(ee in Y.ref!==void 0&&(W=void 0),Y.key!==void 0&&(ne=""+Y.key),Y)!G.call(Y,ee)||ee==="key"||ee==="__self"||ee==="__source"||ee==="ref"&&Y.ref===void 0||(X[ee]=Y[ee]);var ee=arguments.length-2;if(ee===1)X.children=se;else if(1<ee){for(var ue=Array(ee),ce=0;ce<ee;ce++)ue[ce]=arguments[ce+2];X.children=ue}return V(A.type,ne,void 0,void 0,W,X)},Re.createContext=function(A){return A={$$typeof:m,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:u,_context:A},A},Re.createElement=function(A,Y,se){var X,ne={},W=null;if(Y!=null)for(X in Y.key!==void 0&&(W=""+Y.key),Y)G.call(Y,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(ne[X]=Y[X]);var ee=arguments.length-2;if(ee===1)ne.children=se;else if(1<ee){for(var ue=Array(ee),ce=0;ce<ee;ce++)ue[ce]=arguments[ce+2];ne.children=ue}if(A&&A.defaultProps)for(X in ee=A.defaultProps,ee)ne[X]===void 0&&(ne[X]=ee[X]);return V(A,W,void 0,void 0,null,ne)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(A){return{$$typeof:h,render:A}},Re.isValidElement=le,Re.lazy=function(A){return{$$typeof:b,_payload:{_status:-1,_result:A},_init:q}},Re.memo=function(A,Y){return{$$typeof:p,type:A,compare:Y===void 0?null:Y}},Re.startTransition=function(A){var Y=z.T,se={};z.T=se;try{var X=A(),ne=z.S;ne!==null&&ne(se,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(me,K)}catch(W){K(W)}finally{z.T=Y}},Re.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},Re.use=function(A){return z.H.use(A)},Re.useActionState=function(A,Y,se){return z.H.useActionState(A,Y,se)},Re.useCallback=function(A,Y){return z.H.useCallback(A,Y)},Re.useContext=function(A){return z.H.useContext(A)},Re.useDebugValue=function(){},Re.useDeferredValue=function(A,Y){return z.H.useDeferredValue(A,Y)},Re.useEffect=function(A,Y,se){var X=z.H;if(typeof se=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return X.useEffect(A,Y)},Re.useId=function(){return z.H.useId()},Re.useImperativeHandle=function(A,Y,se){return z.H.useImperativeHandle(A,Y,se)},Re.useInsertionEffect=function(A,Y){return z.H.useInsertionEffect(A,Y)},Re.useLayoutEffect=function(A,Y){return z.H.useLayoutEffect(A,Y)},Re.useMemo=function(A,Y){return z.H.useMemo(A,Y)},Re.useOptimistic=function(A,Y){return z.H.useOptimistic(A,Y)},Re.useReducer=function(A,Y,se){return z.H.useReducer(A,Y,se)},Re.useRef=function(A){return z.H.useRef(A)},Re.useState=function(A){return z.H.useState(A)},Re.useSyncExternalStore=function(A,Y,se){return z.H.useSyncExternalStore(A,Y,se)},Re.useTransition=function(){return z.H.useTransition()},Re.version="19.1.0",Re}var ev;function Cf(){return ev||(ev=1,Rd.exports=Xw()),Rd.exports}var v=Cf();const oe=v0(v),Rf=Yw({__proto__:null,default:oe},[v]);var Ad={exports:{}},Uo={},kd={exports:{}},jd={};/**
|
|
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 tv;function Qw(){return tv||(tv=1,(function(t){function r(M,q){var K=M.length;M.push(q);e:for(;0<K;){var me=K-1>>>1,A=M[me];if(0<c(A,q))M[me]=q,M[K]=A,K=me;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],K=M.pop();if(K!==q){M[0]=K;e:for(var me=0,A=M.length,Y=A>>>1;me<Y;){var se=2*(me+1)-1,X=M[se],ne=se+1,W=M[ne];if(0>c(X,K))ne<A&&0>c(W,X)?(M[me]=W,M[ne]=K,me=ne):(M[me]=X,M[se]=K,me=se);else if(ne<A&&0>c(W,K))M[me]=W,M[ne]=K,me=ne;else break e}}return q}function c(M,q){var K=M.sortIndex-q.sortIndex;return K!==0?K:M.id-q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var m=Date,h=m.now();t.unstable_now=function(){return m.now()-h}}var g=[],p=[],b=1,y=null,S=3,T=!1,E=!1,N=!1,C=!1,R=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,_=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(g,q);else break;q=l(p)}}function z(M){if(N=!1,U(M),!E)if(l(g)!==null)E=!0,G||(G=!0,F());else{var q=l(p);q!==null&&J(z,q.startTime-M)}}var G=!1,V=-1,$=5,le=-1;function de(){return C?!0:!(t.unstable_now()-le<$)}function fe(){if(C=!1,G){var M=t.unstable_now();le=M;var q=!0;try{e:{E=!1,N&&(N=!1,k(V),V=-1),T=!0;var K=S;try{t:{for(U(M),y=l(g);y!==null&&!(y.expirationTime>M&&de());){var me=y.callback;if(typeof me=="function"){y.callback=null,S=y.priorityLevel;var A=me(y.expirationTime<=M);if(M=t.unstable_now(),typeof A=="function"){y.callback=A,U(M),q=!0;break t}y===l(g)&&s(g),U(M)}else s(g);y=l(g)}if(y!==null)q=!0;else{var Y=l(p);Y!==null&&J(z,Y.startTime-M),q=!1}}break e}finally{y=null,S=K,T=!1}q=void 0}}finally{q?F():G=!1}}}var F;if(typeof _=="function")F=function(){_(fe)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ie=te.port2;te.port1.onmessage=fe,F=function(){ie.postMessage(null)}}else F=function(){R(fe,0)};function J(M,q){V=R(function(){M(t.unstable_now())},q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(M){M.callback=null},t.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"):$=0<M?Math.floor(1e3/M):5},t.unstable_getCurrentPriorityLevel=function(){return S},t.unstable_next=function(M){switch(S){case 1:case 2:case 3:var q=3;break;default:q=S}var K=S;S=q;try{return M()}finally{S=K}},t.unstable_requestPaint=function(){C=!0},t.unstable_runWithPriority=function(M,q){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var K=S;S=M;try{return q()}finally{S=K}},t.unstable_scheduleCallback=function(M,q,K){var me=t.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?me+K:me):K=me,M){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=K+A,M={id:b++,callback:q,priorityLevel:M,startTime:K,expirationTime:A,sortIndex:-1},K>me?(M.sortIndex=K,r(p,M),l(g)===null&&M===l(p)&&(N?(k(V),V=-1):N=!0,J(z,K-me))):(M.sortIndex=A,r(g,M),E||T||(E=!0,G||(G=!0,F()))),M},t.unstable_shouldYield=de,t.unstable_wrapCallback=function(M){var q=S;return function(){var K=S;S=q;try{return M.apply(this,arguments)}finally{S=K}}}})(jd)),jd}var nv;function Kw(){return nv||(nv=1,kd.exports=Qw()),kd.exports}var _d={exports:{}},Lt={};/**
|
|
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 av;function Zw(){if(av)return Lt;av=1;var t=Cf();function r(g){var p="https://react.dev/errors/"+g;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 #"+g+"; 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(g,p,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:g,containerInfo:p,implementation:b}}var m=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Lt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Lt.createPortal=function(g,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(g,p,null,b)},Lt.flushSync=function(g){var p=m.T,b=s.p;try{if(m.T=null,s.p=2,g)return g()}finally{m.T=p,s.p=b,s.d.f()}},Lt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(g,p))},Lt.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Lt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var b=p.as,y=h(b,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?s.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:T}):b==="script"&&s.d.X(g,{crossOrigin:y,integrity:S,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Lt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=h(p.as,p.crossOrigin);s.d.M(g,{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(g)},Lt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,y=h(b,p.crossOrigin);s.d.L(g,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})}},Lt.preloadModule=function(g,p){if(typeof g=="string")if(p){var b=h(p.as,p.crossOrigin);s.d.m(g,{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(g)},Lt.requestFormReset=function(g){s.d.r(g)},Lt.unstable_batchedUpdates=function(g,p){return g(p)},Lt.useFormState=function(g,p,b){return m.H.useFormState(g,p,b)},Lt.useFormStatus=function(){return m.H.useHostTransitionStatus()},Lt.version="19.1.0",Lt}var rv;function y0(){if(rv)return _d.exports;rv=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),_d.exports=Zw(),_d.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 lv;function Fw(){if(lv)return Uo;lv=1;var t=Kw(),r=Cf(),l=y0();function s(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+n+" 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 n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function m(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(u(e)!==e)throw Error(s(188))}function g(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(s(188));return n!==e?null:e}for(var a=e,o=n;;){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),n;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:n}function p(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=p(e),n!==null)return n;e=e.sibling}return null}var b=Object.assign,y=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),k=Symbol.for("react.consumer"),_=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function F(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case C:return"Profiler";case N:return"StrictMode";case z:return"Suspense";case G:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case _:return(e.displayName||"Context")+".Provider";case k:return(e._context.displayName||"Context")+".Consumer";case U:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return n=e.displayName||null,n!==null?n:ie(e.type)||"Memo";case $:n=e._payload,e=e._init;try{return ie(e(n))}catch{}}return null}var J=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,K={pending:!1,data:null,method:null,action:null},me=[],A=-1;function Y(e){return{current:e}}function se(e){0>A||(e.current=me[A],me[A]=null,A--)}function X(e,n){A++,me[A]=e.current,e.current=n}var ne=Y(null),W=Y(null),ee=Y(null),ue=Y(null);function ce(e,n){switch(X(ee,n),X(W,e),X(ne,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Tg(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Tg(n),e=Cg(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}se(ne),X(ne,e)}function ae(){se(ne),se(W),se(ee)}function we(e){e.memoizedState!==null&&X(ue,e);var n=ne.current,a=Cg(n,e.type);n!==a&&(X(W,e),X(ne,a))}function ye(e){W.current===e&&(se(ne),se(W)),ue.current===e&&(se(ue),_o._currentValue=K)}var Ee=Object.prototype.hasOwnProperty,He=t.unstable_scheduleCallback,Ye=t.unstable_cancelCallback,Pe=t.unstable_shouldYield,yt=t.unstable_requestPaint,qe=t.unstable_now,Bt=t.unstable_getCurrentPriorityLevel,rt=t.unstable_ImmediatePriority,_r=t.unstable_UserBlockingPriority,Xn=t.unstable_NormalPriority,dt=t.unstable_LowPriority,yn=t.unstable_IdlePriority,Mr=t.log,ya=t.unstable_setDisableYieldValue,Qt=null,jt=null;function $t(e){if(typeof Mr=="function"&&ya(e),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(Qt,e)}catch{}}var at=Math.clz32?Math.clz32:On,Mn=Math.log,Or=Math.LN2;function On(e){return e>>>=0,e===0?32:31-(Mn(e)/Or|0)|0}var ba=256,xa=4194304;function on(e){var n=e&42;if(n!==0)return n;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 Qn(e,n,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=on(o):(x&=w,x!==0?i=on(x):a||(a=w&~e,a!==0&&(i=on(a))))):(w=o&~d,w!==0?i=on(w):x!==0?i=on(x):a||(a=o&~e,a!==0&&(i=on(a)))),i===0?0:n!==0&&n!==i&&(n&d)===0&&(d=i&-i,a=n&-n,d>=a||d===32&&(a&4194048)!==0)?n:i}function Kn(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Sa(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 Pt(){var e=ba;return ba<<=1,(ba&4194048)===0&&(ba=256),e}function nr(){var e=xa;return xa<<=1,(xa&62914560)===0&&(xa=4194304),e}function ar(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function xe(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ge(e,n,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 I=31-at(a),Z=1<<I;w[I]=0,j[I]=-1;var H=B[I];if(H!==null)for(B[I]=null,I=0;I<H.length;I++){var P=H[I];P!==null&&(P.lane&=-536870913)}a&=~Z}o!==0&&he(e,o,0),d!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=d&~(x&~n))}function he(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var o=31-at(n);e.entangledLanes|=n,e.entanglements[o]=e.entanglements[o]|1073741824|a&4194090}function Ue(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var o=31-at(a),i=1<<o;i&n|e[o]&n&&(e[o]|=n),a&=~i}}function We(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 bt(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Dn(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:Gg(e.type))}function xt(e,n){var a=q.p;try{return q.p=e,n()}finally{q.p=a}}var ft=Math.random().toString(36).slice(2),mt="__reactFiber$"+ft,Je="__reactProps$"+ft,Nt="__reactContainer$"+ft,Dr="__reactEvents$"+ft,Zn="__reactListeners$"+ft,fm="__reactHandles$"+ft,mm="__reactResources$"+ft,Pl="__reactMarker$"+ft;function bc(e){delete e[mt],delete e[Je],delete e[Dr],delete e[Zn],delete e[fm]}function zr(e){var n=e[mt];if(n)return n;for(var a=e.parentNode;a;){if(n=a[Nt]||a[mt]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=jg(e);e!==null;){if(a=e[mt])return a;e=jg(e)}return n}e=a,a=e.parentNode}return null}function Lr(e){if(e=e[mt]||e[Nt]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function ql(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(s(33))}function Ur(e){var n=e[mm];return n||(n=e[mm]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Tt(e){e[Pl]=!0}var hm=new Set,pm={};function rr(e,n){Br(e,n),Br(e+"Capture",n)}function Br(e,n){for(pm[e]=n,e=0;e<n.length;e++)hm.add(n[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]*$"),gm={},vm={};function z1(e){return Ee.call(vm,e)?!0:Ee.call(gm,e)?!1:D1.test(e)?vm[e]=!0:(gm[e]=!0,!1)}function ls(e,n,a){if(z1(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function os(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function Fn(e,n,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(n,a,""+o)}}var xc,ym;function Hr(e){if(xc===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);xc=n&&n[1]||"",ym=-1<a.stack.indexOf(`
|
|
43
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+xc+e+ym}var Sc=!1;function wc(e,n){if(!e||Sc)return"";Sc=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){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(P){var H=P}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(P){H=P}e.call(Z.prototype)}}else{try{throw Error()}catch(P){H=P}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(P){if(P&&H&&typeof P.stack=="string")return[P.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 I=`
|
|
47
|
-
`+j[o].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=o&&0<=i);break}}}finally{Sc=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Hr(a):""}function L1(e){switch(e.tag){case 26:case 27:case 5:return Hr(e.type);case 16:return Hr("Lazy");case 13:return Hr("Suspense");case 19:return Hr("SuspenseList");case 0:case 15:return wc(e.type,!1);case 11:return wc(e.type.render,!1);case 1:return wc(e.type,!0);case 31:return Hr("Activity");default:return""}}function bm(e){try{var n="";do n+=L1(e),e=e.return;while(e);return n}catch(a){return`
|
|
48
|
-
Error generating stack: `+a.message+`
|
|
49
|
-
`+a.stack}}function sn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xm(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function U1(e){var n=xm(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),o=""+e[n];if(!e.hasOwnProperty(n)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,d=a.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return i.call(this)},set:function(x){o=""+x,d.call(this,x)}}),Object.defineProperty(e,n,{enumerable:a.enumerable}),{getValue:function(){return o},setValue:function(x){o=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ss(e){e._valueTracker||(e._valueTracker=U1(e))}function Sm(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),o="";return e&&(o=xm(e)?e.checked?"true":"false":e.value),e=o,e!==a?(n.setValue(e),!0):!1}function is(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 B1=/[\n"\\]/g;function cn(e){return e.replace(B1,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Ec(e,n,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"),n!=null?x==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+sn(n)):e.value!==""+sn(n)&&(e.value=""+sn(n)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),n!=null?Nc(e,x,sn(n)):a!=null?Nc(e,x,sn(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=""+sn(w):e.removeAttribute("name")}function wm(e,n,a,o,i,d,x,w){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),n!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||n!=null))return;a=a!=null?""+sn(a):"",n=n!=null?""+sn(n):a,w||n===e.value||(e.value=n),e.defaultValue=n}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 Nc(e,n,a){n==="number"&&is(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function $r(e,n,a,o){if(e=e.options,n){n={};for(var i=0;i<a.length;i++)n["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=n.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&o&&(e[a].defaultSelected=!0)}else{for(a=""+sn(a),n=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,o&&(e[i].defaultSelected=!0);return}n!==null||e[i].disabled||(n=e[i])}n!==null&&(n.selected=!0)}}function Em(e,n,a){if(n!=null&&(n=""+sn(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+sn(a):""}function Nm(e,n,a,o){if(n==null){if(o!=null){if(a!=null)throw Error(s(92));if(J(o)){if(1<o.length)throw Error(s(93));o=o[0]}a=o}a==null&&(a=""),n=a}a=sn(n),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o)}function Pr(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var H1=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 Tm(e,n,a){var o=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":o?e.setProperty(n,a):typeof a!="number"||a===0||H1.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function Cm(e,n,a){if(n!=null&&typeof n!="object")throw Error(s(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var i in n)o=n[i],n.hasOwnProperty(i)&&a[i]!==o&&Tm(e,i,o)}else for(var d in n)n.hasOwnProperty(d)&&Tm(e,d,n[d])}function Tc(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 $1=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"]]),P1=/^[\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 cs(e){return P1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Cc=null;function Rc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qr=null,Vr=null;function Rm(e){var n=Lr(e);if(n&&(e=n.stateNode)){var a=e[Je]||null;e:switch(e=n.stateNode,n.type){case"input":if(Ec(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+cn(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var o=a[n];if(o!==e&&o.form===e.form){var i=o[Je]||null;if(!i)throw Error(s(90));Ec(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(n=0;n<a.length;n++)o=a[n],o.form===e.form&&Sm(o)}break e;case"textarea":Em(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&$r(e,!!a.multiple,n,!1)}}}var Ac=!1;function Am(e,n,a){if(Ac)return e(n,a);Ac=!0;try{var o=e(n);return o}finally{if(Ac=!1,(qr!==null||Vr!==null)&&(Qs(),qr&&(n=qr,e=Vr,Vr=qr=null,Rm(n),e)))for(n=0;n<e.length;n++)Rm(e[n])}}function Vl(e,n){var a=e.stateNode;if(a===null)return null;var o=a[Je]||null;if(o===null)return null;a=o[n];e:switch(n){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,n,typeof a));return a}var Wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kc=!1;if(Wn)try{var Yl={};Object.defineProperty(Yl,"passive",{get:function(){kc=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{kc=!1}var wa=null,jc=null,us=null;function km(){if(us)return us;var e,n=jc,a=n.length,o,i="value"in wa?wa.value:wa.textContent,d=i.length;for(e=0;e<a&&n[e]===i[e];e++);var x=a-e;for(o=1;o<=x&&n[a-o]===i[d-o];o++);return us=i.slice(e,1<o?1-o:void 0)}function ds(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function fs(){return!0}function jm(){return!1}function qt(e){function n(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)?fs:jm,this.isPropagationStopped=jm,this}return b(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=fs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=fs)},persist:function(){},isPersistent:fs}),n}var lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ms=qt(lr),Gl=b({},lr,{view:0,detail:0}),q1=qt(Gl),_c,Mc,Il,hs=b({},Gl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dc,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!==Il&&(Il&&e.type==="mousemove"?(_c=e.screenX-Il.screenX,Mc=e.screenY-Il.screenY):Mc=_c=0,Il=e),_c)},movementY:function(e){return"movementY"in e?e.movementY:Mc}}),_m=qt(hs),V1=b({},hs,{dataTransfer:0}),Y1=qt(V1),G1=b({},Gl,{relatedTarget:0}),Oc=qt(G1),I1=b({},lr,{animationName:0,elapsedTime:0,pseudoElement:0}),X1=qt(I1),Q1=b({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),K1=qt(Q1),Z1=b({},lr,{data:0}),Mm=qt(Z1),F1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},J1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function eS(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=J1[e])?!!n[e]:!1}function Dc(){return eS}var tS=b({},Gl,{key:function(e){if(e.key){var n=F1[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=ds(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?W1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dc,charCode:function(e){return e.type==="keypress"?ds(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ds(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nS=qt(tS),aS=b({},hs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Om=qt(aS),rS=b({},Gl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dc}),lS=qt(rS),oS=b({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0}),sS=qt(oS),iS=b({},hs,{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}),cS=qt(iS),uS=b({},lr,{newState:0,oldState:0}),dS=qt(uS),fS=[9,13,27,32],zc=Wn&&"CompositionEvent"in window,Xl=null;Wn&&"documentMode"in document&&(Xl=document.documentMode);var mS=Wn&&"TextEvent"in window&&!Xl,Dm=Wn&&(!zc||Xl&&8<Xl&&11>=Xl),zm=" ",Lm=!1;function Um(e,n){switch(e){case"keyup":return fS.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yr=!1;function hS(e,n){switch(e){case"compositionend":return Bm(n);case"keypress":return n.which!==32?null:(Lm=!0,zm);case"textInput":return e=n.data,e===zm&&Lm?null:e;default:return null}}function pS(e,n){if(Yr)return e==="compositionend"||!zc&&Um(e,n)?(e=km(),us=jc=wa=null,Yr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Dm&&n.locale!=="ko"?null:n.data;default:return null}}var gS={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 Hm(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!gS[e.type]:n==="textarea"}function $m(e,n,a,o){qr?Vr?Vr.push(o):Vr=[o]:qr=o,n=ei(n,"onChange"),0<n.length&&(a=new ms("onChange","change",null,a,o),e.push({event:a,listeners:n}))}var Ql=null,Kl=null;function vS(e){xg(e,0)}function ps(e){var n=ql(e);if(Sm(n))return e}function Pm(e,n){if(e==="change")return n}var qm=!1;if(Wn){var Lc;if(Wn){var Uc="oninput"in document;if(!Uc){var Vm=document.createElement("div");Vm.setAttribute("oninput","return;"),Uc=typeof Vm.oninput=="function"}Lc=Uc}else Lc=!1;qm=Lc&&(!document.documentMode||9<document.documentMode)}function Ym(){Ql&&(Ql.detachEvent("onpropertychange",Gm),Kl=Ql=null)}function Gm(e){if(e.propertyName==="value"&&ps(Kl)){var n=[];$m(n,Kl,e,Rc(e)),Am(vS,n)}}function yS(e,n,a){e==="focusin"?(Ym(),Ql=n,Kl=a,Ql.attachEvent("onpropertychange",Gm)):e==="focusout"&&Ym()}function bS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ps(Kl)}function xS(e,n){if(e==="click")return ps(n)}function SS(e,n){if(e==="input"||e==="change")return ps(n)}function wS(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Kt=typeof Object.is=="function"?Object.is:wS;function Zl(e,n){if(Kt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),o=Object.keys(n);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var i=a[o];if(!Ee.call(n,i)||!Kt(e[i],n[i]))return!1}return!0}function Im(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xm(e,n){var a=Im(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=n&&o>=n)return{node:a,offset:n-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Im(a)}}function Qm(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Qm(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Km(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=is(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=is(e.document)}return n}function Bc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var ES=Wn&&"documentMode"in document&&11>=document.documentMode,Gr=null,Hc=null,Fl=null,$c=!1;function Zm(e,n,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;$c||Gr==null||Gr!==is(o)||(o=Gr,"selectionStart"in o&&Bc(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}),Fl&&Zl(Fl,o)||(Fl=o,o=ei(Hc,"onSelect"),0<o.length&&(n=new ms("onSelect","select",null,n,a),e.push({event:n,listeners:o}),n.target=Gr)))}function or(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var Ir={animationend:or("Animation","AnimationEnd"),animationiteration:or("Animation","AnimationIteration"),animationstart:or("Animation","AnimationStart"),transitionrun:or("Transition","TransitionRun"),transitionstart:or("Transition","TransitionStart"),transitioncancel:or("Transition","TransitionCancel"),transitionend:or("Transition","TransitionEnd")},Pc={},Fm={};Wn&&(Fm=document.createElement("div").style,"AnimationEvent"in window||(delete Ir.animationend.animation,delete Ir.animationiteration.animation,delete Ir.animationstart.animation),"TransitionEvent"in window||delete Ir.transitionend.transition);function sr(e){if(Pc[e])return Pc[e];if(!Ir[e])return e;var n=Ir[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in Fm)return Pc[e]=n[a];return e}var Wm=sr("animationend"),Jm=sr("animationiteration"),eh=sr("animationstart"),NS=sr("transitionrun"),TS=sr("transitionstart"),CS=sr("transitioncancel"),th=sr("transitionend"),nh=new Map,qc="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(" ");qc.push("scrollEnd");function bn(e,n){nh.set(e,n),rr(n,[e])}var ah=new WeakMap;function un(e,n){if(typeof e=="object"&&e!==null){var a=ah.get(e);return a!==void 0?a:(n={value:e,source:n,stack:bm(n)},ah.set(e,n),n)}return{value:e,source:n,stack:bm(n)}}var dn=[],Xr=0,Vc=0;function gs(){for(var e=Xr,n=Vc=Xr=0;n<e;){var a=dn[n];dn[n++]=null;var o=dn[n];dn[n++]=null;var i=dn[n];dn[n++]=null;var d=dn[n];if(dn[n++]=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&&rh(a,i,d)}}function vs(e,n,a,o){dn[Xr++]=e,dn[Xr++]=n,dn[Xr++]=a,dn[Xr++]=o,Vc|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Yc(e,n,a,o){return vs(e,n,a,o),ys(e)}function Qr(e,n){return vs(e,null,null,n),ys(e)}function rh(e,n,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&&n!==null&&(i=31-at(a),e=d.hiddenUpdates,o=e[i],o===null?e[i]=[n]:o.push(n),n.lane=a|536870912),d):null}function ys(e){if(50<Eo)throw Eo=0,Zu=null,Error(s(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Kr={};function RS(e,n,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=n,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 Zt(e,n,a,o){return new RS(e,n,a,o)}function Gc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jn(e,n){var a=e.alternate;return a===null?(a=Zt(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,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,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function lh(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,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,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function bs(e,n,a,o,i,d){var x=0;if(o=e,typeof e=="function")Gc(e)&&(x=1);else if(typeof e=="string")x=kw(e,a,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=Zt(31,a,n,i),e.elementType=le,e.lanes=d,e;case E:return ir(a.children,i,d,n);case N:x=8,i|=24;break;case C:return e=Zt(12,a,n,i|2),e.elementType=C,e.lanes=d,e;case z:return e=Zt(13,a,n,i),e.elementType=z,e.lanes=d,e;case G:return e=Zt(19,a,n,i),e.elementType=G,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:case _:x=10;break e;case k:x=9;break e;case U:x=11;break e;case V:x=14;break e;case $:x=16,o=null;break e}x=29,a=Error(s(130,e===null?"null":typeof e,"")),o=null}return n=Zt(x,a,n,i),n.elementType=e,n.type=o,n.lanes=d,n}function ir(e,n,a,o){return e=Zt(7,e,o,n),e.lanes=a,e}function Ic(e,n,a){return e=Zt(6,e,null,n),e.lanes=a,e}function Xc(e,n,a){return n=Zt(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Zr=[],Fr=0,xs=null,Ss=0,fn=[],mn=0,cr=null,ea=1,ta="";function ur(e,n){Zr[Fr++]=Ss,Zr[Fr++]=xs,xs=e,Ss=n}function oh(e,n,a){fn[mn++]=ea,fn[mn++]=ta,fn[mn++]=cr,cr=e;var o=ea;e=ta;var i=32-at(o)-1;o&=~(1<<i),a+=1;var d=32-at(n)+i;if(30<d){var x=i-i%5;d=(o&(1<<x)-1).toString(32),o>>=x,i-=x,ea=1<<32-at(n)+i|a<<i|o,ta=d+e}else ea=1<<d|a<<i|o,ta=e}function Qc(e){e.return!==null&&(ur(e,1),oh(e,1,0))}function Kc(e){for(;e===xs;)xs=Zr[--Fr],Zr[Fr]=null,Ss=Zr[--Fr],Zr[Fr]=null;for(;e===cr;)cr=fn[--mn],fn[mn]=null,ta=fn[--mn],fn[mn]=null,ea=fn[--mn],fn[mn]=null}var Ht=null,ct=null,Ve=!1,dr=null,zn=!1,Zc=Error(s(519));function fr(e){var n=Error(s(418,""));throw eo(un(n,e)),Zc}function sh(e){var n=e.stateNode,a=e.type,o=e.memoizedProps;switch(n[mt]=e,n[Je]=o,a){case"dialog":De("cancel",n),De("close",n);break;case"iframe":case"object":case"embed":De("load",n);break;case"video":case"audio":for(a=0;a<To.length;a++)De(To[a],n);break;case"source":De("error",n);break;case"img":case"image":case"link":De("error",n),De("load",n);break;case"details":De("toggle",n);break;case"input":De("invalid",n),wm(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),ss(n);break;case"select":De("invalid",n);break;case"textarea":De("invalid",n),Nm(n,o.value,o.defaultValue,o.children),ss(n)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||o.suppressHydrationWarning===!0||Ng(n.textContent,a)?(o.popover!=null&&(De("beforetoggle",n),De("toggle",n)),o.onScroll!=null&&De("scroll",n),o.onScrollEnd!=null&&De("scrollend",n),o.onClick!=null&&(n.onclick=ti),n=!0):n=!1,n||fr(e)}function ih(e){for(Ht=e.return;Ht;)switch(Ht.tag){case 5:case 13:zn=!1;return;case 27:case 3:zn=!0;return;default:Ht=Ht.return}}function Wl(e){if(e!==Ht)return!1;if(!Ve)return ih(e),Ve=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||fd(e.type,e.memoizedProps)),a=!a),a&&ct&&fr(e),ih(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(n===0){ct=Sn(e.nextSibling);break e}n--}else a!=="$"&&a!=="$!"&&a!=="$?"||n++;e=e.nextSibling}ct=null}}else n===27?(n=ct,Ba(e.type)?(e=gd,gd=null,ct=e):ct=n):ct=Ht?Sn(e.stateNode.nextSibling):null;return!0}function Jl(){ct=Ht=null,Ve=!1}function ch(){var e=dr;return e!==null&&(Gt===null?Gt=e:Gt.push.apply(Gt,e),dr=null),e}function eo(e){dr===null?dr=[e]:dr.push(e)}var Fc=Y(null),mr=null,na=null;function Ea(e,n,a){X(Fc,n._currentValue),n._currentValue=a}function aa(e){e._currentValue=Fc.current,se(Fc)}function Wc(e,n,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),e===a)break;e=e.return}}function Jc(e,n,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<n.length;j++)if(w.context===n[j]){d.lanes|=a,w=d.alternate,w!==null&&(w.lanes|=a),Wc(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),Wc(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 to(e,n,a,o){e=null;for(var i=n,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;Kt(i.pendingProps.value,x.value)||(e!==null?e.push(w):e=[w])}}else if(i===ue.current){if(x=i.alternate,x===null)throw Error(s(387));x.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(_o):e=[_o])}i=i.return}e!==null&&Jc(n,e,a,o),n.flags|=262144}function ws(e){for(e=e.firstContext;e!==null;){if(!Kt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function hr(e){mr=e,na=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function zt(e){return uh(mr,e)}function Es(e,n){return mr===null&&hr(e),uh(e,n)}function uh(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},na===null){if(e===null)throw Error(s(308));na=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else na=na.next=n;return a}var AS=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},kS=t.unstable_scheduleCallback,jS=t.unstable_NormalPriority,St={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function eu(){return{controller:new AS,data:new Map,refCount:0}}function no(e){e.refCount--,e.refCount===0&&kS(jS,function(){e.controller.abort()})}var ao=null,tu=0,Wr=0,Jr=null;function _S(e,n){if(ao===null){var a=ao=[];tu=0,Wr=ad(),Jr={status:"pending",value:void 0,then:function(o){a.push(o)}}}return tu++,n.then(dh,dh),n}function dh(){if(--tu===0&&ao!==null){Jr!==null&&(Jr.status="fulfilled");var e=ao;ao=null,Wr=0,Jr=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function MS(e,n){var a=[],o={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){o.status="fulfilled",o.value=n;for(var i=0;i<a.length;i++)(0,a[i])(n)},function(i){for(o.status="rejected",o.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),o}var fh=M.S;M.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&_S(e,n),fh!==null&&fh(e,n)};var pr=Y(null);function nu(){var e=pr.current;return e!==null?e:et.pooledCache}function Ns(e,n){n===null?X(pr,pr.current):X(pr,n.pool)}function mh(){var e=nu();return e===null?null:{parent:St._currentValue,pool:e}}var ro=Error(s(460)),hh=Error(s(474)),Ts=Error(s(542)),au={then:function(){}};function ph(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Cs(){}function gh(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Cs,Cs),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,yh(e),e;default:if(typeof n.status=="string")n.then(Cs,Cs);else{if(e=et,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=n,e.status="pending",e.then(function(o){if(n.status==="pending"){var i=n;i.status="fulfilled",i.value=o}},function(o){if(n.status==="pending"){var i=n;i.status="rejected",i.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,yh(e),e}throw lo=n,ro}}var lo=null;function vh(){if(lo===null)throw Error(s(459));var e=lo;return lo=null,e}function yh(e){if(e===ro||e===Ts)throw Error(s(483))}var Na=!1;function ru(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lu(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ta(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ca(e,n,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Ie&2)!==0){var i=o.pending;return i===null?n.next=n:(n.next=i.next,i.next=n),o.pending=n,n=ys(e),rh(e,null,a),n}return vs(e,o,n,a),ys(e)}function oo(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var o=n.lanes;o&=e.pendingLanes,a|=o,n.lanes=a,Ue(e,a)}}function ou(e,n){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=n:d=d.next=n}else i=d=n;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=n:e.next=n,a.lastBaseUpdate=n}var su=!1;function so(){if(su){var e=Jr;if(e!==null)throw e}}function io(e,n,a,o){su=!1;var i=e.updateQueue;Na=!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 I=e.alternate;I!==null&&(I=I.updateQueue,w=I.lastBaseUpdate,w!==x&&(w===null?I.firstBaseUpdate=B:w.next=B,I.lastBaseUpdate=j))}if(d!==null){var Z=i.baseState;x=0,I=B=j=null,w=d;do{var H=w.lane&-536870913,P=H!==w.lane;if(P?(Be&H)===H:(o&H)===H){H!==0&&H===Wr&&(su=!0),I!==null&&(I=I.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var Ce=e,Ne=w;H=n;var Ze=a;switch(Ne.tag){case 1:if(Ce=Ne.payload,typeof Ce=="function"){Z=Ce.call(Ze,Z,H);break e}Z=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=Ne.payload,H=typeof Ce=="function"?Ce.call(Ze,Z,H):Ce,H==null)break e;Z=b({},Z,H);break e;case 2:Na=!0}}H=w.callback,H!==null&&(e.flags|=64,P&&(e.flags|=8192),P=i.callbacks,P===null?i.callbacks=[H]:P.push(H))}else P={lane:H,tag:w.tag,payload:w.payload,callback:w.callback,next:null},I===null?(B=I=P,j=Z):I=I.next=P,x|=H;if(w=w.next,w===null){if(w=i.shared.pending,w===null)break;P=w,w=P.next,P.next=null,i.lastBaseUpdate=P,i.shared.pending=null}}while(!0);I===null&&(j=Z),i.baseState=j,i.firstBaseUpdate=B,i.lastBaseUpdate=I,d===null&&(i.shared.lanes=0),Da|=x,e.lanes=x,e.memoizedState=Z}}function bh(e,n){if(typeof e!="function")throw Error(s(191,e));e.call(n)}function xh(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)bh(a[e],n)}var el=Y(null),Rs=Y(0);function Sh(e,n){e=ua,X(Rs,e),X(el,n),ua=e|n.baseLanes}function iu(){X(Rs,ua),X(el,el.current)}function cu(){ua=Rs.current,se(el),se(Rs)}var Ra=0,ke=null,Qe=null,gt=null,As=!1,tl=!1,gr=!1,ks=0,co=0,nl=null,OS=0;function ht(){throw Error(s(321))}function uu(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!Kt(e[a],n[a]))return!1;return!0}function du(e,n,a,o,i,d){return Ra=d,ke=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,M.H=e===null||e.memoizedState===null?rp:lp,gr=!1,d=a(o,i),gr=!1,tl&&(d=Eh(n,a,o,i)),wh(e),d}function wh(e){M.H=zs;var n=Qe!==null&&Qe.next!==null;if(Ra=0,gt=Qe=ke=null,As=!1,co=0,nl=null,n)throw Error(s(300));e===null||Ct||(e=e.dependencies,e!==null&&ws(e)&&(Ct=!0))}function Eh(e,n,a,o){ke=e;var i=0;do{if(tl&&(nl=null),co=0,tl=!1,25<=i)throw Error(s(301));if(i+=1,gt=Qe=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}M.H=$S,d=n(a,o)}while(tl);return d}function DS(){var e=M.H,n=e.useState()[0];return n=typeof n.then=="function"?uo(n):n,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(ke.flags|=1024),n}function fu(){var e=ks!==0;return ks=0,e}function mu(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function hu(e){if(As){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}As=!1}Ra=0,gt=Qe=ke=null,tl=!1,co=ks=0,nl=null}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?ke.memoizedState=gt=e:gt=gt.next=e,gt}function vt(){if(Qe===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var n=gt===null?ke.memoizedState:gt.next;if(n!==null)gt=n,Qe=e;else{if(e===null)throw ke.alternate===null?Error(s(467)):Error(s(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},gt===null?ke.memoizedState=gt=e:gt=gt.next=e}return gt}function pu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function uo(e){var n=co;return co+=1,nl===null&&(nl=[]),e=gh(nl,e,n),n=ke,(gt===null?n.memoizedState:gt.next)===null&&(n=n.alternate,M.H=n===null||n.memoizedState===null?rp:lp),e}function js(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return uo(e);if(e.$$typeof===_)return zt(e)}throw Error(s(438,String(e)))}function gu(e){var n=null,a=ke.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var o=ke.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(i){return i.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=pu(),ke.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),o=0;o<e;o++)a[o]=de;return n.index++,a}function ra(e,n){return typeof n=="function"?n(e):n}function _s(e){var n=vt();return vu(n,Qe,e)}function vu(e,n,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}n.baseQueue=i=d,o.pending=null}if(d=e.baseState,i===null)e.memoizedState=d;else{n=i.next;var w=x=null,j=null,B=n,I=!1;do{var Z=B.lane&-536870913;if(Z!==B.lane?(Be&Z)===Z:(Ra&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===Wr&&(I=!0);else if((Ra&H)===H){B=B.next,H===Wr&&(I=!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,ke.lanes|=H,Da|=H;Z=B.action,gr&&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,ke.lanes|=Z,Da|=Z;B=B.next}while(B!==null&&B!==n);if(j===null?x=d:j.next=w,!Kt(d,e.memoizedState)&&(Ct=!0,I&&(a=Jr,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 yu(e){var n=vt(),a=n.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var o=a.dispatch,i=a.pending,d=n.memoizedState;if(i!==null){a.pending=null;var x=i=i.next;do d=e(d,x.action),x=x.next;while(x!==i);Kt(d,n.memoizedState)||(Ct=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),a.lastRenderedState=d}return[d,o]}function Nh(e,n,a){var o=ke,i=vt(),d=Ve;if(d){if(a===void 0)throw Error(s(407));a=a()}else a=n();var x=!Kt((Qe||i).memoizedState,a);x&&(i.memoizedState=a,Ct=!0),i=i.queue;var w=Rh.bind(null,o,i,e);if(fo(2048,8,w,[e]),i.getSnapshot!==n||x||gt!==null&>.memoizedState.tag&1){if(o.flags|=2048,al(9,Ms(),Ch.bind(null,o,i,a,n),null),et===null)throw Error(s(349));d||(Ra&124)!==0||Th(o,n,a)}return a}function Th(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=ke.updateQueue,n===null?(n=pu(),ke.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function Ch(e,n,a,o){n.value=a,n.getSnapshot=o,Ah(n)&&kh(e)}function Rh(e,n,a){return a(function(){Ah(n)&&kh(e)})}function Ah(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!Kt(e,a)}catch{return!0}}function kh(e){var n=Qr(e,2);n!==null&&tn(n,e,2)}function bu(e){var n=Vt();if(typeof e=="function"){var a=e;if(e=a(),gr){$t(!0);try{a()}finally{$t(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:e},n}function jh(e,n,a,o){return e.baseState=a,vu(e,Qe,typeof o=="function"?o:ra)}function zS(e,n,a,o,i){if(Ds(e))throw Error(s(485));if(e=n.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=n.pending,a===null?(d.next=n.pending=d,_h(n,d)):(d.next=a.next,n.pending=a.next=d)}}function _h(e,n){var a=n.action,o=n.payload,i=e.state;if(n.isTransition){var d=M.T,x={};M.T=x;try{var w=a(i,o),j=M.S;j!==null&&j(x,w),Mh(e,n,w)}catch(B){xu(e,n,B)}finally{M.T=d}}else try{d=a(i,o),Mh(e,n,d)}catch(B){xu(e,n,B)}}function Mh(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){Oh(e,n,o)},function(o){return xu(e,n,o)}):Oh(e,n,a)}function Oh(e,n,a){n.status="fulfilled",n.value=a,Dh(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,_h(e,a)))}function xu(e,n,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=a,Dh(n),n=n.next;while(n!==o)}e.action=null}function Dh(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function zh(e,n){return n}function Lh(e,n){if(Ve){var a=et.formState;if(a!==null){e:{var o=ke;if(Ve){if(ct){t:{for(var i=ct,d=zn;i.nodeType!==8;){if(!d){i=null;break t}if(i=Sn(i.nextSibling),i===null){i=null;break t}}d=i.data,i=d==="F!"||d==="F"?i:null}if(i){ct=Sn(i.nextSibling),o=i.data==="F!";break e}}fr(o)}o=!1}o&&(n=a[0])}}return a=Vt(),a.memoizedState=a.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zh,lastRenderedState:n},a.queue=o,a=tp.bind(null,ke,o),o.dispatch=a,o=bu(!1),d=Tu.bind(null,ke,!1,o.queue),o=Vt(),i={state:n,dispatch:null,action:e,pending:null},o.queue=i,a=zS.bind(null,ke,i,d,a),i.dispatch=a,o.memoizedState=e,[n,a,!1]}function Uh(e){var n=vt();return Bh(n,Qe,e)}function Bh(e,n,a){if(n=vu(e,n,zh)[0],e=_s(ra)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=uo(n)}catch(x){throw x===ro?Ts:x}else o=n;n=vt();var i=n.queue,d=i.dispatch;return a!==n.memoizedState&&(ke.flags|=2048,al(9,Ms(),LS.bind(null,i,a),null)),[o,d,e]}function LS(e,n){e.action=n}function Hh(e){var n=vt(),a=Qe;if(a!==null)return Bh(n,a,e);vt(),n=n.memoizedState,a=vt();var o=a.queue.dispatch;return a.memoizedState=e,[n,o,!1]}function al(e,n,a,o){return e={tag:e,create:a,deps:o,inst:n,next:null},n=ke.updateQueue,n===null&&(n=pu(),ke.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,n.lastEffect=e),e}function Ms(){return{destroy:void 0,resource:void 0}}function $h(){return vt().memoizedState}function Os(e,n,a,o){var i=Vt();o=o===void 0?null:o,ke.flags|=e,i.memoizedState=al(1|n,Ms(),a,o)}function fo(e,n,a,o){var i=vt();o=o===void 0?null:o;var d=i.memoizedState.inst;Qe!==null&&o!==null&&uu(o,Qe.memoizedState.deps)?i.memoizedState=al(n,d,a,o):(ke.flags|=e,i.memoizedState=al(1|n,d,a,o))}function Ph(e,n){Os(8390656,8,e,n)}function qh(e,n){fo(2048,8,e,n)}function Vh(e,n){return fo(4,2,e,n)}function Yh(e,n){return fo(4,4,e,n)}function Gh(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Ih(e,n,a){a=a!=null?a.concat([e]):null,fo(4,4,Gh.bind(null,n,e),a)}function Su(){}function Xh(e,n){var a=vt();n=n===void 0?null:n;var o=a.memoizedState;return n!==null&&uu(n,o[1])?o[0]:(a.memoizedState=[e,n],e)}function Qh(e,n){var a=vt();n=n===void 0?null:n;var o=a.memoizedState;if(n!==null&&uu(n,o[1]))return o[0];if(o=e(),gr){$t(!0);try{e()}finally{$t(!1)}}return a.memoizedState=[o,n],o}function wu(e,n,a){return a===void 0||(Ra&1073741824)!==0?e.memoizedState=n:(e.memoizedState=a,e=Fp(),ke.lanes|=e,Da|=e,a)}function Kh(e,n,a,o){return Kt(a,n)?a:el.current!==null?(e=wu(e,a,o),Kt(e,n)||(Ct=!0),e):(Ra&42)===0?(Ct=!0,e.memoizedState=a):(e=Fp(),ke.lanes|=e,Da|=e,n)}function Zh(e,n,a,o,i){var d=q.p;q.p=d!==0&&8>d?d:8;var x=M.T,w={};M.T=w,Tu(e,!1,n,a);try{var j=i(),B=M.S;if(B!==null&&B(w,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var I=MS(j,o);mo(e,n,I,en(e))}else mo(e,n,o,en(e))}catch(Z){mo(e,n,{then:function(){},status:"rejected",reason:Z},en())}finally{q.p=d,M.T=x}}function US(){}function Eu(e,n,a,o){if(e.tag!==5)throw Error(s(476));var i=Fh(e).queue;Zh(e,i,n,K,a===null?US:function(){return Wh(e),a(o)})}function Fh(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:K},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Wh(e){var n=Fh(e).next.queue;mo(e,n,{},en())}function Nu(){return zt(_o)}function Jh(){return vt().memoizedState}function ep(){return vt().memoizedState}function BS(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=en();e=Ta(a);var o=Ca(n,e,a);o!==null&&(tn(o,n,a),oo(o,n,a)),n={cache:eu()},e.payload=n;return}n=n.return}}function HS(e,n,a){var o=en();a={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Ds(e)?np(n,a):(a=Yc(e,n,a,o),a!==null&&(tn(a,e,o),ap(a,n,o)))}function tp(e,n,a){var o=en();mo(e,n,a,o)}function mo(e,n,a,o){var i={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ds(e))np(n,i);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var x=n.lastRenderedState,w=d(x,a);if(i.hasEagerState=!0,i.eagerState=w,Kt(w,x))return vs(e,n,i,0),et===null&&gs(),!1}catch{}finally{}if(a=Yc(e,n,i,o),a!==null)return tn(a,e,o),ap(a,n,o),!0}return!1}function Tu(e,n,a,o){if(o={lane:2,revertLane:ad(),action:o,hasEagerState:!1,eagerState:null,next:null},Ds(e)){if(n)throw Error(s(479))}else n=Yc(e,a,o,2),n!==null&&tn(n,e,2)}function Ds(e){var n=e.alternate;return e===ke||n!==null&&n===ke}function np(e,n){tl=As=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function ap(e,n,a){if((a&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,a|=o,n.lanes=a,Ue(e,a)}}var zs={readContext:zt,use:js,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useLayoutEffect:ht,useInsertionEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useSyncExternalStore:ht,useId:ht,useHostTransitionStatus:ht,useFormState:ht,useActionState:ht,useOptimistic:ht,useMemoCache:ht,useCacheRefresh:ht},rp={readContext:zt,use:js,useCallback:function(e,n){return Vt().memoizedState=[e,n===void 0?null:n],e},useContext:zt,useEffect:Ph,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,Os(4194308,4,Gh.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Os(4194308,4,e,n)},useInsertionEffect:function(e,n){Os(4,2,e,n)},useMemo:function(e,n){var a=Vt();n=n===void 0?null:n;var o=e();if(gr){$t(!0);try{e()}finally{$t(!1)}}return a.memoizedState=[o,n],o},useReducer:function(e,n,a){var o=Vt();if(a!==void 0){var i=a(n);if(gr){$t(!0);try{a(n)}finally{$t(!1)}}}else i=n;return o.memoizedState=o.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},o.queue=e,e=e.dispatch=HS.bind(null,ke,e),[o.memoizedState,e]},useRef:function(e){var n=Vt();return e={current:e},n.memoizedState=e},useState:function(e){e=bu(e);var n=e.queue,a=tp.bind(null,ke,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:Su,useDeferredValue:function(e,n){var a=Vt();return wu(a,e,n)},useTransition:function(){var e=bu(!1);return e=Zh.bind(null,ke,e.queue,!0,!1),Vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var o=ke,i=Vt();if(Ve){if(a===void 0)throw Error(s(407));a=a()}else{if(a=n(),et===null)throw Error(s(349));(Be&124)!==0||Th(o,n,a)}i.memoizedState=a;var d={value:a,getSnapshot:n};return i.queue=d,Ph(Rh.bind(null,o,d,e),[e]),o.flags|=2048,al(9,Ms(),Ch.bind(null,o,d,a,n),null),a},useId:function(){var e=Vt(),n=et.identifierPrefix;if(Ve){var a=ta,o=ea;a=(o&~(1<<32-at(o)-1)).toString(32)+a,n="«"+n+"R"+a,a=ks++,0<a&&(n+="H"+a.toString(32)),n+="»"}else a=OS++,n="«"+n+"r"+a.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:Nu,useFormState:Lh,useActionState:Lh,useOptimistic:function(e){var n=Vt();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Tu.bind(null,ke,!0,a),a.dispatch=n,[e,n]},useMemoCache:gu,useCacheRefresh:function(){return Vt().memoizedState=BS.bind(null,ke)}},lp={readContext:zt,use:js,useCallback:Xh,useContext:zt,useEffect:qh,useImperativeHandle:Ih,useInsertionEffect:Vh,useLayoutEffect:Yh,useMemo:Qh,useReducer:_s,useRef:$h,useState:function(){return _s(ra)},useDebugValue:Su,useDeferredValue:function(e,n){var a=vt();return Kh(a,Qe.memoizedState,e,n)},useTransition:function(){var e=_s(ra)[0],n=vt().memoizedState;return[typeof e=="boolean"?e:uo(e),n]},useSyncExternalStore:Nh,useId:Jh,useHostTransitionStatus:Nu,useFormState:Uh,useActionState:Uh,useOptimistic:function(e,n){var a=vt();return jh(a,Qe,e,n)},useMemoCache:gu,useCacheRefresh:ep},$S={readContext:zt,use:js,useCallback:Xh,useContext:zt,useEffect:qh,useImperativeHandle:Ih,useInsertionEffect:Vh,useLayoutEffect:Yh,useMemo:Qh,useReducer:yu,useRef:$h,useState:function(){return yu(ra)},useDebugValue:Su,useDeferredValue:function(e,n){var a=vt();return Qe===null?wu(a,e,n):Kh(a,Qe.memoizedState,e,n)},useTransition:function(){var e=yu(ra)[0],n=vt().memoizedState;return[typeof e=="boolean"?e:uo(e),n]},useSyncExternalStore:Nh,useId:Jh,useHostTransitionStatus:Nu,useFormState:Hh,useActionState:Hh,useOptimistic:function(e,n){var a=vt();return Qe!==null?jh(a,Qe,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:gu,useCacheRefresh:ep},rl=null,ho=0;function Ls(e){var n=ho;return ho+=1,rl===null&&(rl=[]),gh(rl,e,n)}function po(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Us(e,n){throw n.$$typeof===y?Error(s(525)):(e=Object.prototype.toString.call(n),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function op(e){var n=e._init;return n(e._payload)}function sp(e){function n(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;)n(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=Jn(D,O),D.index=0,D.sibling=null,D}function d(D,O,L){return D.index=L,e?(L=D.alternate,L!==null?(L=L.index,L<O?(D.flags|=67108866,O):L):(D.flags|=67108866,O)):(D.flags|=1048576,O)}function x(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function w(D,O,L,Q){return O===null||O.tag!==6?(O=Ic(L,D.mode,Q),O.return=D,O):(O=i(O,L),O.return=D,O)}function j(D,O,L,Q){var pe=L.type;return pe===E?I(D,O,L.props.children,Q,L.key):O!==null&&(O.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===$&&op(pe)===O.type)?(O=i(O,L.props),po(O,L),O.return=D,O):(O=bs(L.type,L.key,L.props,null,D.mode,Q),po(O,L),O.return=D,O)}function B(D,O,L,Q){return O===null||O.tag!==4||O.stateNode.containerInfo!==L.containerInfo||O.stateNode.implementation!==L.implementation?(O=Xc(L,D.mode,Q),O.return=D,O):(O=i(O,L.children||[]),O.return=D,O)}function I(D,O,L,Q,pe){return O===null||O.tag!==7?(O=ir(L,D.mode,Q,pe),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=Ic(""+O,D.mode,L),O.return=D,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return L=bs(O.type,O.key,O.props,null,D.mode,L),po(L,O),L.return=D,L;case T:return O=Xc(O,D.mode,L),O.return=D,O;case $:var Q=O._init;return O=Q(O._payload),Z(D,O,L)}if(J(O)||F(O))return O=ir(O,D.mode,L,null),O.return=D,O;if(typeof O.then=="function")return Z(D,Ls(O),L);if(O.$$typeof===_)return Z(D,Es(D,O),L);Us(D,O)}return null}function H(D,O,L,Q){var pe=O!==null?O.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return pe!==null?null:w(D,O,""+L,Q);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case S:return L.key===pe?j(D,O,L,Q):null;case T:return L.key===pe?B(D,O,L,Q):null;case $:return pe=L._init,L=pe(L._payload),H(D,O,L,Q)}if(J(L)||F(L))return pe!==null?null:I(D,O,L,Q,null);if(typeof L.then=="function")return H(D,O,Ls(L),Q);if(L.$$typeof===_)return H(D,O,Es(D,L),Q);Us(D,L)}return null}function P(D,O,L,Q,pe){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return D=D.get(L)||null,w(O,D,""+Q,pe);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case S:return D=D.get(Q.key===null?L:Q.key)||null,j(O,D,Q,pe);case T:return D=D.get(Q.key===null?L:Q.key)||null,B(O,D,Q,pe);case $:var Me=Q._init;return Q=Me(Q._payload),P(D,O,L,Q,pe)}if(J(Q)||F(Q))return D=D.get(L)||null,I(O,D,Q,pe,null);if(typeof Q.then=="function")return P(D,O,L,Ls(Q),pe);if(Q.$$typeof===_)return P(D,O,L,Es(O,Q),pe);Us(O,Q)}return null}function Ce(D,O,L,Q){for(var pe=null,Me=null,be=O,Te=O=0,At=null;be!==null&&Te<L.length;Te++){be.index>Te?(At=be,be=null):At=be.sibling;var $e=H(D,be,L[Te],Q);if($e===null){be===null&&(be=At);break}e&&be&&$e.alternate===null&&n(D,be),O=d($e,O,Te),Me===null?pe=$e:Me.sibling=$e,Me=$e,be=At}if(Te===L.length)return a(D,be),Ve&&ur(D,Te),pe;if(be===null){for(;Te<L.length;Te++)be=Z(D,L[Te],Q),be!==null&&(O=d(be,O,Te),Me===null?pe=be:Me.sibling=be,Me=be);return Ve&&ur(D,Te),pe}for(be=o(be);Te<L.length;Te++)At=P(be,D,Te,L[Te],Q),At!==null&&(e&&At.alternate!==null&&be.delete(At.key===null?Te:At.key),O=d(At,O,Te),Me===null?pe=At:Me.sibling=At,Me=At);return e&&be.forEach(function(Va){return n(D,Va)}),Ve&&ur(D,Te),pe}function Ne(D,O,L,Q){if(L==null)throw Error(s(151));for(var pe=null,Me=null,be=O,Te=O=0,At=null,$e=L.next();be!==null&&!$e.done;Te++,$e=L.next()){be.index>Te?(At=be,be=null):At=be.sibling;var Va=H(D,be,$e.value,Q);if(Va===null){be===null&&(be=At);break}e&&be&&Va.alternate===null&&n(D,be),O=d(Va,O,Te),Me===null?pe=Va:Me.sibling=Va,Me=Va,be=At}if($e.done)return a(D,be),Ve&&ur(D,Te),pe;if(be===null){for(;!$e.done;Te++,$e=L.next())$e=Z(D,$e.value,Q),$e!==null&&(O=d($e,O,Te),Me===null?pe=$e:Me.sibling=$e,Me=$e);return Ve&&ur(D,Te),pe}for(be=o(be);!$e.done;Te++,$e=L.next())$e=P(be,D,Te,$e.value,Q),$e!==null&&(e&&$e.alternate!==null&&be.delete($e.key===null?Te:$e.key),O=d($e,O,Te),Me===null?pe=$e:Me.sibling=$e,Me=$e);return e&&be.forEach(function(Pw){return n(D,Pw)}),Ve&&ur(D,Te),pe}function Ze(D,O,L,Q){if(typeof L=="object"&&L!==null&&L.type===E&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case S:e:{for(var pe=L.key;O!==null;){if(O.key===pe){if(pe=L.type,pe===E){if(O.tag===7){a(D,O.sibling),Q=i(O,L.props.children),Q.return=D,D=Q;break e}}else if(O.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===$&&op(pe)===O.type){a(D,O.sibling),Q=i(O,L.props),po(Q,L),Q.return=D,D=Q;break e}a(D,O);break}else n(D,O);O=O.sibling}L.type===E?(Q=ir(L.props.children,D.mode,Q,L.key),Q.return=D,D=Q):(Q=bs(L.type,L.key,L.props,null,D.mode,Q),po(Q,L),Q.return=D,D=Q)}return x(D);case T:e:{for(pe=L.key;O!==null;){if(O.key===pe)if(O.tag===4&&O.stateNode.containerInfo===L.containerInfo&&O.stateNode.implementation===L.implementation){a(D,O.sibling),Q=i(O,L.children||[]),Q.return=D,D=Q;break e}else{a(D,O);break}else n(D,O);O=O.sibling}Q=Xc(L,D.mode,Q),Q.return=D,D=Q}return x(D);case $:return pe=L._init,L=pe(L._payload),Ze(D,O,L,Q)}if(J(L))return Ce(D,O,L,Q);if(F(L)){if(pe=F(L),typeof pe!="function")throw Error(s(150));return L=pe.call(L),Ne(D,O,L,Q)}if(typeof L.then=="function")return Ze(D,O,Ls(L),Q);if(L.$$typeof===_)return Ze(D,O,Es(D,L),Q);Us(D,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,O!==null&&O.tag===6?(a(D,O.sibling),Q=i(O,L),Q.return=D,D=Q):(a(D,O),Q=Ic(L,D.mode,Q),Q.return=D,D=Q),x(D)):a(D,O)}return function(D,O,L,Q){try{ho=0;var pe=Ze(D,O,L,Q);return rl=null,pe}catch(be){if(be===ro||be===Ts)throw be;var Me=Zt(29,be,null,D.mode);return Me.lanes=Q,Me.return=D,Me}finally{}}}var ll=sp(!0),ip=sp(!1),hn=Y(null),Ln=null;function Aa(e){var n=e.alternate;X(wt,wt.current&1),X(hn,e),Ln===null&&(n===null||el.current!==null||n.memoizedState!==null)&&(Ln=e)}function cp(e){if(e.tag===22){if(X(wt,wt.current),X(hn,e),Ln===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(Ln=e)}}else ka()}function ka(){X(wt,wt.current),X(hn,hn.current)}function la(e){se(hn),Ln===e&&(Ln=null),se(wt)}var wt=Y(0);function Bs(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||pd(a)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Cu(e,n,a,o){n=e.memoizedState,a=a(o,n),a=a==null?n:b({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Ru={enqueueSetState:function(e,n,a){e=e._reactInternals;var o=en(),i=Ta(o);i.payload=n,a!=null&&(i.callback=a),n=Ca(e,i,o),n!==null&&(tn(n,e,o),oo(n,e,o))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var o=en(),i=Ta(o);i.tag=1,i.payload=n,a!=null&&(i.callback=a),n=Ca(e,i,o),n!==null&&(tn(n,e,o),oo(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=en(),o=Ta(a);o.tag=2,n!=null&&(o.callback=n),n=Ca(e,o,a),n!==null&&(tn(n,e,a),oo(n,e,a))}};function up(e,n,a,o,i,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,d,x):n.prototype&&n.prototype.isPureReactComponent?!Zl(a,o)||!Zl(i,d):!0}function dp(e,n,a,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,o),n.state!==e&&Ru.enqueueReplaceState(n,n.state,null)}function vr(e,n){var a=n;if("ref"in n){a={};for(var o in n)o!=="ref"&&(a[o]=n[o])}if(e=e.defaultProps){a===n&&(a=b({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}var Hs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function fp(e){Hs(e)}function mp(e){console.error(e)}function hp(e){Hs(e)}function $s(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function pp(e,n,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Au(e,n,a){return a=Ta(a),a.tag=3,a.payload={element:null},a.callback=function(){$s(e,n)},a}function gp(e){return e=Ta(e),e.tag=3,e}function vp(e,n,a,o){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var d=o.value;e.payload=function(){return i(d)},e.callback=function(){pp(n,a,o)}}var x=a.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){pp(n,a,o),typeof i!="function"&&(za===null?za=new Set([this]):za.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})})}function PS(e,n,a,o,i){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=a.alternate,n!==null&&to(n,a,i,!0),a=hn.current,a!==null){switch(a.tag){case 13:return Ln===null?Wu():a.alternate===null&&ut===0&&(ut=3),a.flags&=-257,a.flags|=65536,a.lanes=i,o===au?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([o]):n.add(o),ed(e,o,i)),!1;case 22:return a.flags|=65536,o===au?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([o]):a.add(o)),ed(e,o,i)),!1}throw Error(s(435,a.tag))}return ed(e,o,i),Wu(),!1}if(Ve)return n=hn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=i,o!==Zc&&(e=Error(s(422),{cause:o}),eo(un(e,a)))):(o!==Zc&&(n=Error(s(423),{cause:o}),eo(un(n,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,o=un(o,a),i=Au(e.stateNode,o,i),ou(e,i),ut!==4&&(ut=2)),!1;var d=Error(s(520),{cause:o});if(d=un(d,a),wo===null?wo=[d]:wo.push(d),ut!==4&&(ut=2),n===null)return!0;o=un(o,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Au(a.stateNode,o,e),ou(a,e),!1;case 1:if(n=a.type,d=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(za===null||!za.has(d))))return a.flags|=65536,i&=-i,a.lanes|=i,i=gp(i),vp(i,e,a,o),ou(a,i),!1}a=a.return}while(a!==null);return!1}var yp=Error(s(461)),Ct=!1;function _t(e,n,a,o){n.child=e===null?ip(n,null,a,o):ll(n,e.child,a,o)}function bp(e,n,a,o,i){a=a.render;var d=n.ref;if("ref"in o){var x={};for(var w in o)w!=="ref"&&(x[w]=o[w])}else x=o;return hr(n),o=du(e,n,a,x,d,i),w=fu(),e!==null&&!Ct?(mu(e,n,i),oa(e,n,i)):(Ve&&w&&Qc(n),n.flags|=1,_t(e,n,o,i),n.child)}function xp(e,n,a,o,i){if(e===null){var d=a.type;return typeof d=="function"&&!Gc(d)&&d.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=d,Sp(e,n,d,o,i)):(e=bs(a.type,null,o,n,n.mode,i),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!Lu(e,i)){var x=d.memoizedProps;if(a=a.compare,a=a!==null?a:Zl,a(x,o)&&e.ref===n.ref)return oa(e,n,i)}return n.flags|=1,e=Jn(d,o),e.ref=n.ref,e.return=n,n.child=e}function Sp(e,n,a,o,i){if(e!==null){var d=e.memoizedProps;if(Zl(d,o)&&e.ref===n.ref)if(Ct=!1,n.pendingProps=o=d,Lu(e,i))(e.flags&131072)!==0&&(Ct=!0);else return n.lanes=e.lanes,oa(e,n,i)}return ku(e,n,a,o,i)}function wp(e,n,a){var o=n.pendingProps,i=o.children,d=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((n.flags&128)!==0){if(o=d!==null?d.baseLanes|a:a,e!==null){for(i=n.child=e.child,d=0;i!==null;)d=d|i.lanes|i.childLanes,i=i.sibling;n.childLanes=d&~o}else n.childLanes=0,n.child=null;return Ep(e,n,o,a)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ns(n,d!==null?d.cachePool:null),d!==null?Sh(n,d):iu(),cp(n);else return n.lanes=n.childLanes=536870912,Ep(e,n,d!==null?d.baseLanes|a:a,a)}else d!==null?(Ns(n,d.cachePool),Sh(n,d),ka(),n.memoizedState=null):(e!==null&&Ns(n,null),iu(),ka());return _t(e,n,i,a),n.child}function Ep(e,n,a,o){var i=nu();return i=i===null?null:{parent:St._currentValue,pool:i},n.memoizedState={baseLanes:a,cachePool:i},e!==null&&Ns(n,null),iu(),cp(n),e!==null&&to(e,n,o,!0),null}function Ps(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function ku(e,n,a,o,i){return hr(n),a=du(e,n,a,o,void 0,i),o=fu(),e!==null&&!Ct?(mu(e,n,i),oa(e,n,i)):(Ve&&o&&Qc(n),n.flags|=1,_t(e,n,a,i),n.child)}function Np(e,n,a,o,i,d){return hr(n),n.updateQueue=null,a=Eh(n,o,a,i),wh(e),o=fu(),e!==null&&!Ct?(mu(e,n,d),oa(e,n,d)):(Ve&&o&&Qc(n),n.flags|=1,_t(e,n,a,d),n.child)}function Tp(e,n,a,o,i){if(hr(n),n.stateNode===null){var d=Kr,x=a.contextType;typeof x=="object"&&x!==null&&(d=zt(x)),d=new a(o,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Ru,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=o,d.state=n.memoizedState,d.refs={},ru(n),x=a.contextType,d.context=typeof x=="object"&&x!==null?zt(x):Kr,d.state=n.memoizedState,x=a.getDerivedStateFromProps,typeof x=="function"&&(Cu(n,a,x,o),d.state=n.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&&Ru.enqueueReplaceState(d,d.state,null),io(n,o,d,i),so(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){d=n.stateNode;var w=n.memoizedProps,j=vr(a,w);d.props=j;var B=d.context,I=a.contextType;x=Kr,typeof I=="object"&&I!==null&&(x=zt(I));var Z=a.getDerivedStateFromProps;I=typeof Z=="function"||typeof d.getSnapshotBeforeUpdate=="function",w=n.pendingProps!==w,I||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(w||B!==x)&&dp(n,d,o,x),Na=!1;var H=n.memoizedState;d.state=H,io(n,o,d,i),so(),B=n.memoizedState,w||H!==B||Na?(typeof Z=="function"&&(Cu(n,a,Z,o),B=n.memoizedState),(j=Na||up(n,a,j,o,H,B,x))?(I||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"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=B),d.props=o,d.state=B,d.context=x,o=j):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{d=n.stateNode,lu(e,n),x=n.memoizedProps,I=vr(a,x),d.props=I,Z=n.pendingProps,H=d.context,B=a.contextType,j=Kr,typeof B=="object"&&B!==null&&(j=zt(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)&&dp(n,d,o,j),Na=!1,H=n.memoizedState,d.state=H,io(n,o,d,i),so();var P=n.memoizedState;x!==Z||H!==P||Na||e!==null&&e.dependencies!==null&&ws(e.dependencies)?(typeof w=="function"&&(Cu(n,a,w,o),P=n.memoizedState),(I=Na||up(n,a,I,o,H,P,j)||e!==null&&e.dependencies!==null&&ws(e.dependencies))?(B||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,P,j),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,P,j)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=P),d.props=o,d.state=P,d.context=j,o=I):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),o=!1)}return d=o,Ps(e,n),o=(n.flags&128)!==0,d||o?(d=n.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,e!==null&&o?(n.child=ll(n,e.child,null,i),n.child=ll(n,null,a,i)):_t(e,n,a,i),n.memoizedState=d.state,e=n.child):e=oa(e,n,i),e}function Cp(e,n,a,o){return Jl(),n.flags|=256,_t(e,n,a,o),n.child}var ju={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _u(e){return{baseLanes:e,cachePool:mh()}}function Mu(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=pn),e}function Rp(e,n,a){var o=n.pendingProps,i=!1,d=(n.flags&128)!==0,x;if((x=d)||(x=e!==null&&e.memoizedState===null?!1:(wt.current&2)!==0),x&&(i=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,e===null){if(Ve){if(i?Aa(n):ka(),Ve){var w=ct,j;if(j=w){e:{for(j=w,w=zn;j.nodeType!==8;){if(!w){w=null;break e}if(j=Sn(j.nextSibling),j===null){w=null;break e}}w=j}w!==null?(n.memoizedState={dehydrated:w,treeContext:cr!==null?{id:ea,overflow:ta}:null,retryLane:536870912,hydrationErrors:null},j=Zt(18,null,null,0),j.stateNode=w,j.return=n,n.child=j,Ht=n,ct=null,j=!0):j=!1}j||fr(n)}if(w=n.memoizedState,w!==null&&(w=w.dehydrated,w!==null))return pd(w)?n.lanes=32:n.lanes=536870912,null;la(n)}return w=o.children,o=o.fallback,i?(ka(),i=n.mode,w=qs({mode:"hidden",children:w},i),o=ir(o,i,a,null),w.return=n,o.return=n,w.sibling=o,n.child=w,i=n.child,i.memoizedState=_u(a),i.childLanes=Mu(e,x,a),n.memoizedState=ju,o):(Aa(n),Ou(n,w))}if(j=e.memoizedState,j!==null&&(w=j.dehydrated,w!==null)){if(d)n.flags&256?(Aa(n),n.flags&=-257,n=Du(e,n,a)):n.memoizedState!==null?(ka(),n.child=e.child,n.flags|=128,n=null):(ka(),i=o.fallback,w=n.mode,o=qs({mode:"visible",children:o.children},w),i=ir(i,w,a,null),i.flags|=2,o.return=n,i.return=n,o.sibling=i,n.child=o,ll(n,e.child,null,a),o=n.child,o.memoizedState=_u(a),o.childLanes=Mu(e,x,a),n.memoizedState=ju,n=i);else if(Aa(n),pd(w)){if(x=w.nextSibling&&w.nextSibling.dataset,x)var B=x.dgst;x=B,o=Error(s(419)),o.stack="",o.digest=x,eo({value:o,source:null,stack:null}),n=Du(e,n,a)}else if(Ct||to(e,n,a,!1),x=(a&e.childLanes)!==0,Ct||x){if(x=et,x!==null&&(o=a&-a,o=(o&42)!==0?1:We(o),o=(o&(x.suspendedLanes|a))!==0?0:o,o!==0&&o!==j.retryLane))throw j.retryLane=o,Qr(e,o),tn(x,e,o),yp;w.data==="$?"||Wu(),n=Du(e,n,a)}else w.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=j.treeContext,ct=Sn(w.nextSibling),Ht=n,Ve=!0,dr=null,zn=!1,e!==null&&(fn[mn++]=ea,fn[mn++]=ta,fn[mn++]=cr,ea=e.id,ta=e.overflow,cr=n),n=Ou(n,o.children),n.flags|=4096);return n}return i?(ka(),i=o.fallback,w=n.mode,j=e.child,B=j.sibling,o=Jn(j,{mode:"hidden",children:o.children}),o.subtreeFlags=j.subtreeFlags&65011712,B!==null?i=Jn(B,i):(i=ir(i,w,a,null),i.flags|=2),i.return=n,o.return=n,o.sibling=i,n.child=o,o=i,i=n.child,w=e.child.memoizedState,w===null?w=_u(a):(j=w.cachePool,j!==null?(B=St._currentValue,j=j.parent!==B?{parent:B,pool:B}:j):j=mh(),w={baseLanes:w.baseLanes|a,cachePool:j}),i.memoizedState=w,i.childLanes=Mu(e,x,a),n.memoizedState=ju,o):(Aa(n),a=e.child,e=a.sibling,a=Jn(a,{mode:"visible",children:o.children}),a.return=n,a.sibling=null,e!==null&&(x=n.deletions,x===null?(n.deletions=[e],n.flags|=16):x.push(e)),n.child=a,n.memoizedState=null,a)}function Ou(e,n){return n=qs({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function qs(e,n){return e=Zt(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Du(e,n,a){return ll(n,e.child,null,a),e=Ou(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Ap(e,n,a){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),Wc(e.return,n,a)}function zu(e,n,a,o,i){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:i}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=a,d.tailMode=i)}function kp(e,n,a){var o=n.pendingProps,i=o.revealOrder,d=o.tail;if(_t(e,n,o.children,a),o=wt.current,(o&2)!==0)o=o&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ap(e,a,n);else if(e.tag===19)Ap(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(X(wt,o),i){case"forwards":for(a=n.child,i=null;a!==null;)e=a.alternate,e!==null&&Bs(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=n.child,n.child=null):(i=a.sibling,a.sibling=null),zu(n,!1,i,a,d);break;case"backwards":for(a=null,i=n.child,n.child=null;i!==null;){if(e=i.alternate,e!==null&&Bs(e)===null){n.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}zu(n,!0,a,null,d);break;case"together":zu(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function oa(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Da|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(to(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(s(153));if(n.child!==null){for(e=n.child,a=Jn(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=Jn(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Lu(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&ws(e)))}function qS(e,n,a){switch(n.tag){case 3:ce(n,n.stateNode.containerInfo),Ea(n,St,e.memoizedState.cache),Jl();break;case 27:case 5:we(n);break;case 4:ce(n,n.stateNode.containerInfo);break;case 10:Ea(n,n.type,n.memoizedProps.value);break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Aa(n),n.flags|=128,null):(a&n.child.childLanes)!==0?Rp(e,n,a):(Aa(n),e=oa(e,n,a),e!==null?e.sibling:null);Aa(n);break;case 19:var i=(e.flags&128)!==0;if(o=(a&n.childLanes)!==0,o||(to(e,n,a,!1),o=(a&n.childLanes)!==0),i){if(o)return kp(e,n,a);n.flags|=128}if(i=n.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),X(wt,wt.current),o)break;return null;case 22:case 23:return n.lanes=0,wp(e,n,a);case 24:Ea(n,St,e.memoizedState.cache)}return oa(e,n,a)}function jp(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)Ct=!0;else{if(!Lu(e,a)&&(n.flags&128)===0)return Ct=!1,qS(e,n,a);Ct=(e.flags&131072)!==0}else Ct=!1,Ve&&(n.flags&1048576)!==0&&oh(n,Ss,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var o=n.elementType,i=o._init;if(o=i(o._payload),n.type=o,typeof o=="function")Gc(o)?(e=vr(o,e),n.tag=1,n=Tp(null,n,o,e,a)):(n.tag=0,n=ku(null,n,o,e,a));else{if(o!=null){if(i=o.$$typeof,i===U){n.tag=11,n=bp(null,n,o,e,a);break e}else if(i===V){n.tag=14,n=xp(null,n,o,e,a);break e}}throw n=ie(o)||o,Error(s(306,n,""))}}return n;case 0:return ku(e,n,n.type,n.pendingProps,a);case 1:return o=n.type,i=vr(o,n.pendingProps),Tp(e,n,o,i,a);case 3:e:{if(ce(n,n.stateNode.containerInfo),e===null)throw Error(s(387));o=n.pendingProps;var d=n.memoizedState;i=d.element,lu(e,n),io(n,o,null,a);var x=n.memoizedState;if(o=x.cache,Ea(n,St,o),o!==d.cache&&Jc(n,[St],a,!0),so(),o=x.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=Cp(e,n,o,a);break e}else if(o!==i){i=un(Error(s(424)),n),eo(i),n=Cp(e,n,o,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ct=Sn(e.firstChild),Ht=n,Ve=!0,dr=null,zn=!0,a=ip(n,null,o,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Jl(),o===i){n=oa(e,n,a);break e}_t(e,n,o,a)}n=n.child}return n;case 26:return Ps(e,n),e===null?(a=Dg(n.type,null,n.pendingProps,null))?n.memoizedState=a:Ve||(a=n.type,e=n.pendingProps,o=ni(ee.current).createElement(a),o[mt]=n,o[Je]=e,Ot(o,a,e),Tt(o),n.stateNode=o):n.memoizedState=Dg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return we(n),e===null&&Ve&&(o=n.stateNode=_g(n.type,n.pendingProps,ee.current),Ht=n,zn=!0,i=ct,Ba(n.type)?(gd=i,ct=Sn(o.firstChild)):ct=i),_t(e,n,n.pendingProps.children,a),Ps(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Ve&&((i=o=ct)&&(o=gw(o,n.type,n.pendingProps,zn),o!==null?(n.stateNode=o,Ht=n,ct=Sn(o.firstChild),zn=!1,i=!0):i=!1),i||fr(n)),we(n),i=n.type,d=n.pendingProps,x=e!==null?e.memoizedProps:null,o=d.children,fd(i,d)?o=null:x!==null&&fd(i,x)&&(n.flags|=32),n.memoizedState!==null&&(i=du(e,n,DS,null,null,a),_o._currentValue=i),Ps(e,n),_t(e,n,o,a),n.child;case 6:return e===null&&Ve&&((e=a=ct)&&(a=vw(a,n.pendingProps,zn),a!==null?(n.stateNode=a,Ht=n,ct=null,e=!0):e=!1),e||fr(n)),null;case 13:return Rp(e,n,a);case 4:return ce(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=ll(n,null,o,a):_t(e,n,o,a),n.child;case 11:return bp(e,n,n.type,n.pendingProps,a);case 7:return _t(e,n,n.pendingProps,a),n.child;case 8:return _t(e,n,n.pendingProps.children,a),n.child;case 12:return _t(e,n,n.pendingProps.children,a),n.child;case 10:return o=n.pendingProps,Ea(n,n.type,o.value),_t(e,n,o.children,a),n.child;case 9:return i=n.type._context,o=n.pendingProps.children,hr(n),i=zt(i),o=o(i),n.flags|=1,_t(e,n,o,a),n.child;case 14:return xp(e,n,n.type,n.pendingProps,a);case 15:return Sp(e,n,n.type,n.pendingProps,a);case 19:return kp(e,n,a);case 31:return o=n.pendingProps,a=n.mode,o={mode:o.mode,children:o.children},e===null?(a=qs(o,a),a.ref=n.ref,n.child=a,a.return=n,n=a):(a=Jn(e.child,o),a.ref=n.ref,n.child=a,a.return=n,n=a),n;case 22:return wp(e,n,a);case 24:return hr(n),o=zt(St),e===null?(i=nu(),i===null&&(i=et,d=eu(),i.pooledCache=d,d.refCount++,d!==null&&(i.pooledCacheLanes|=a),i=d),n.memoizedState={parent:o,cache:i},ru(n),Ea(n,St,i)):((e.lanes&a)!==0&&(lu(e,n),io(n,null,null,a),so()),i=e.memoizedState,d=n.memoizedState,i.parent!==o?(i={parent:o,cache:o},n.memoizedState=i,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=i),Ea(n,St,o)):(o=d.cache,Ea(n,St,o),o!==i.cache&&Jc(n,[St],a,!0))),_t(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}function sa(e){e.flags|=4}function _p(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Hg(n)){if(n=hn.current,n!==null&&((Be&4194048)===Be?Ln!==null:(Be&62914560)!==Be&&(Be&536870912)===0||n!==Ln))throw lo=au,hh;e.flags|=8192}}function Vs(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?nr():536870912,e.lanes|=n,cl|=n)}function go(e,n){if(!Ve)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.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?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function st(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(n)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,n}function VS(e,n,a){var o=n.pendingProps;switch(Kc(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(n),null;case 1:return st(n),null;case 3:return a=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),aa(St),ae(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Wl(n)?sa(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,ch())),st(n),null;case 26:return a=n.memoizedState,e===null?(sa(n),a!==null?(st(n),_p(n,a)):(st(n),n.flags&=-16777217)):a?a!==e.memoizedState?(sa(n),st(n),_p(n,a)):(st(n),n.flags&=-16777217):(e.memoizedProps!==o&&sa(n),st(n),n.flags&=-16777217),null;case 27:ye(n),a=ee.current;var i=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==o&&sa(n);else{if(!o){if(n.stateNode===null)throw Error(s(166));return st(n),null}e=ne.current,Wl(n)?sh(n):(e=_g(i,o,a),n.stateNode=e,sa(n))}return st(n),null;case 5:if(ye(n),a=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&sa(n);else{if(!o){if(n.stateNode===null)throw Error(s(166));return st(n),null}if(e=ne.current,Wl(n))sh(n);else{switch(i=ni(ee.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[mt]=n,e[Je]=o;e:for(i=n.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===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}n.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&&sa(n)}}return st(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==o&&sa(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(s(166));if(e=ee.current,Wl(n)){if(e=n.stateNode,a=n.memoizedProps,o=null,i=Ht,i!==null)switch(i.tag){case 27:case 5:o=i.memoizedProps}e[mt]=n,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||Ng(e.nodeValue,a)),e||fr(n)}else e=ni(e).createTextNode(o),e[mt]=n,n.stateNode=e}return st(n),null;case 13:if(o=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Wl(n),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=n.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));i[mt]=n}else Jl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;st(n),i=!1}else i=ch(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return n.flags&256?(la(n),n):(la(n),null)}if(la(n),(n.flags&128)!==0)return n.lanes=a,n;if(a=o!==null,e=e!==null&&e.memoizedState!==null,a){o=n.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&&(n.child.flags|=8192),Vs(n,n.updateQueue),st(n),null;case 4:return ae(),e===null&&sd(n.stateNode.containerInfo),st(n),null;case 10:return aa(n.type),st(n),null;case 19:if(se(wt),i=n.memoizedState,i===null)return st(n),null;if(o=(n.flags&128)!==0,d=i.rendering,d===null)if(o)go(i,!1);else{if(ut!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(d=Bs(e),d!==null){for(n.flags|=128,go(i,!1),e=d.updateQueue,n.updateQueue=e,Vs(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)lh(a,e),a=a.sibling;return X(wt,wt.current&1|2),n.child}e=e.sibling}i.tail!==null&&qe()>Is&&(n.flags|=128,o=!0,go(i,!1),n.lanes=4194304)}else{if(!o)if(e=Bs(d),e!==null){if(n.flags|=128,o=!0,e=e.updateQueue,n.updateQueue=e,Vs(n,e),go(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Ve)return st(n),null}else 2*qe()-i.renderingStartTime>Is&&a!==536870912&&(n.flags|=128,o=!0,go(i,!1),n.lanes=4194304);i.isBackwards?(d.sibling=n.child,n.child=d):(e=i.last,e!==null?e.sibling=d:n.child=d,i.last=d)}return i.tail!==null?(n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=qe(),n.sibling=null,e=wt.current,X(wt,o?e&1|2:e&1),n):(st(n),null);case 22:case 23:return la(n),cu(),o=n.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(a&536870912)!==0&&(n.flags&128)===0&&(st(n),n.subtreeFlags&6&&(n.flags|=8192)):st(n),a=n.updateQueue,a!==null&&Vs(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==a&&(n.flags|=2048),e!==null&&se(pr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),aa(St),st(n),null;case 25:return null;case 30:return null}throw Error(s(156,n.tag))}function YS(e,n){switch(Kc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return aa(St),ae(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return ye(n),null;case 13:if(la(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(s(340));Jl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return se(wt),null;case 4:return ae(),null;case 10:return aa(n.type),null;case 22:case 23:return la(n),cu(),e!==null&&se(pr),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return aa(St),null;case 25:return null;default:return null}}function Mp(e,n){switch(Kc(n),n.tag){case 3:aa(St),ae();break;case 26:case 27:case 5:ye(n);break;case 4:ae();break;case 13:la(n);break;case 19:se(wt);break;case 10:aa(n.type);break;case 22:case 23:la(n),cu(),e!==null&&se(pr);break;case 24:aa(St)}}function vo(e,n){try{var a=n.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(n,n.return,w)}}function ja(e,n,a){try{var o=n.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=n;var j=a,B=w;try{B()}catch(I){Fe(i,j,I)}}}o=o.next}while(o!==d)}}catch(I){Fe(n,n.return,I)}}function Op(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{xh(n,a)}catch(o){Fe(e,e.return,o)}}}function Dp(e,n,a){a.props=vr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){Fe(e,n,o)}}function yo(e,n){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,n,i)}}function Un(e,n){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(i){Fe(e,n,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,n,i)}else a.current=null}function zp(e){var n=e.type,a=e.memoizedProps,o=e.stateNode;try{e:switch(n){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 Uu(e,n,a){try{var o=e.stateNode;dw(o,e.type,a,n),o[Je]=n}catch(i){Fe(e,e.return,i)}}function Lp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ba(e.type)||e.tag===4}function Bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lp(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&&Ba(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 Hu(e,n,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=ti));else if(o!==4&&(o===27&&Ba(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(Hu(e,n,a),e=e.sibling;e!==null;)Hu(e,n,a),e=e.sibling}function Ys(e,n,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(o!==4&&(o===27&&Ba(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ys(e,n,a),e=e.sibling;e!==null;)Ys(e,n,a),e=e.sibling}function Up(e){var n=e.stateNode,a=e.memoizedProps;try{for(var o=e.type,i=n.attributes;i.length;)n.removeAttributeNode(i[0]);Ot(n,o,a),n[mt]=e,n[Je]=a}catch(d){Fe(e,e.return,d)}}var ia=!1,pt=!1,$u=!1,Bp=typeof WeakSet=="function"?WeakSet:Set,Rt=null;function GS(e,n){if(e=e.containerInfo,ud=ii,e=Km(e),Bc(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,I=0,Z=e,H=null;t:for(;;){for(var P;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),(P=Z.firstChild)!==null;)H=Z,Z=P;for(;;){if(Z===e)break t;if(H===a&&++B===i&&(w=x),H===d&&++I===o&&(j=x),(P=Z.nextSibling)!==null)break;Z=H,H=Z.parentNode}Z=P}a=w===-1||j===-1?null:{start:w,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(dd={focusedElem:e,selectionRange:a},ii=!1,Rt=n;Rt!==null;)if(n=Rt,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,Rt=e;else for(;Rt!==null;){switch(n=Rt,d=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,a=n,i=d.memoizedProps,d=d.memoizedState,o=a.stateNode;try{var Ce=vr(a.type,i,a.elementType===a.type);e=o.getSnapshotBeforeUpdate(Ce,d),o.__reactInternalSnapshotBeforeUpdate=e}catch(Ne){Fe(a,a.return,Ne)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)hd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":hd(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=n.sibling,e!==null){e.return=n.return,Rt=e;break}Rt=n.return}}function Hp(e,n,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:_a(e,a),o&4&&vo(5,a);break;case 1:if(_a(e,a),o&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(x){Fe(a,a.return,x)}else{var i=vr(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(i,n,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Fe(a,a.return,x)}}o&64&&Op(a),o&512&&yo(a,a.return);break;case 3:if(_a(e,a),o&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{xh(e,n)}catch(x){Fe(a,a.return,x)}}break;case 27:n===null&&o&4&&Up(a);case 26:case 5:_a(e,a),n===null&&o&4&&zp(a),o&512&&yo(a,a.return);break;case 12:_a(e,a);break;case 13:_a(e,a),o&4&&qp(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=ew.bind(null,a),yw(e,a))));break;case 22:if(o=a.memoizedState!==null||ia,!o){n=n!==null&&n.memoizedState!==null||pt,i=ia;var d=pt;ia=o,(pt=n)&&!d?Ma(e,a,(a.subtreeFlags&8772)!==0):_a(e,a),ia=i,pt=d}break;case 30:break;default:_a(e,a)}}function $p(e){var n=e.alternate;n!==null&&(e.alternate=null,$p(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&bc(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var lt=null,Yt=!1;function ca(e,n,a){for(a=a.child;a!==null;)Pp(e,n,a),a=a.sibling}function Pp(e,n,a){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(Qt,a)}catch{}switch(a.tag){case 26:pt||Un(a,n),ca(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:pt||Un(a,n);var o=lt,i=Yt;Ba(a.type)&&(lt=a.stateNode,Yt=!1),ca(e,n,a),Ro(a.stateNode),lt=o,Yt=i;break;case 5:pt||Un(a,n);case 6:if(o=lt,i=Yt,lt=null,ca(e,n,a),lt=o,Yt=i,lt!==null)if(Yt)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(a.stateNode)}catch(d){Fe(a,n,d)}else try{lt.removeChild(a.stateNode)}catch(d){Fe(a,n,d)}break;case 18:lt!==null&&(Yt?(e=lt,kg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),zo(e)):kg(lt,a.stateNode));break;case 4:o=lt,i=Yt,lt=a.stateNode.containerInfo,Yt=!0,ca(e,n,a),lt=o,Yt=i;break;case 0:case 11:case 14:case 15:pt||ja(2,a,n),pt||ja(4,a,n),ca(e,n,a);break;case 1:pt||(Un(a,n),o=a.stateNode,typeof o.componentWillUnmount=="function"&&Dp(a,n,o)),ca(e,n,a);break;case 21:ca(e,n,a);break;case 22:pt=(o=pt)||a.memoizedState!==null,ca(e,n,a),pt=o;break;default:ca(e,n,a)}}function qp(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{zo(e)}catch(a){Fe(n,n.return,a)}}function IS(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Bp),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Bp),n;default:throw Error(s(435,e.tag))}}function Pu(e,n){var a=IS(e);n.forEach(function(o){var i=tw.bind(null,e,o);a.has(o)||(a.add(o),o.then(i,i))})}function Ft(e,n){var a=n.deletions;if(a!==null)for(var o=0;o<a.length;o++){var i=a[o],d=e,x=n,w=x;e:for(;w!==null;){switch(w.tag){case 27:if(Ba(w.type)){lt=w.stateNode,Yt=!1;break e}break;case 5:lt=w.stateNode,Yt=!1;break e;case 3:case 4:lt=w.stateNode.containerInfo,Yt=!0;break e}w=w.return}if(lt===null)throw Error(s(160));Pp(d,x,i),lt=null,Yt=!1,d=i.alternate,d!==null&&(d.return=null),i.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)Vp(n,e),n=n.sibling}var xn=null;function Vp(e,n){var a=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ft(n,e),Wt(e),o&4&&(ja(3,e,e.return),vo(3,e),ja(5,e,e.return));break;case 1:Ft(n,e),Wt(e),o&512&&(pt||a===null||Un(a,a.return)),o&64&&ia&&(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=xn;if(Ft(n,e),Wt(e),o&512&&(pt||a===null||Un(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[Pl]||d[mt]||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[mt]=e,Tt(d),o=d;break e;case"link":var x=Ug("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=Ug("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[mt]=e,Tt(d),o=d}e.stateNode=o}else Bg(i,e.type,e.stateNode);else e.stateNode=Lg(i,o,e.memoizedProps);else d!==o?(d===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):d.count--,o===null?Bg(i,e.type,e.stateNode):Lg(i,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Uu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Ft(n,e),Wt(e),o&512&&(pt||a===null||Un(a,a.return)),a!==null&&o&4&&Uu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Ft(n,e),Wt(e),o&512&&(pt||a===null||Un(a,a.return)),e.flags&32){i=e.stateNode;try{Pr(i,"")}catch(P){Fe(e,e.return,P)}}o&4&&e.stateNode!=null&&(i=e.memoizedProps,Uu(e,i,a!==null?a.memoizedProps:i)),o&1024&&($u=!0);break;case 6:if(Ft(n,e),Wt(e),o&4){if(e.stateNode===null)throw Error(s(162));o=e.memoizedProps,a=e.stateNode;try{a.nodeValue=o}catch(P){Fe(e,e.return,P)}}break;case 3:if(li=null,i=xn,xn=ai(n.containerInfo),Ft(n,e),xn=i,Wt(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{zo(n.containerInfo)}catch(P){Fe(e,e.return,P)}$u&&($u=!1,Yp(e));break;case 4:o=xn,xn=ai(e.stateNode.containerInfo),Ft(n,e),Wt(e),xn=o;break;case 12:Ft(n,e),Wt(e);break;case 13:Ft(n,e),Wt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Xu=qe()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Pu(e,o)));break;case 22:i=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,B=ia,I=pt;if(ia=B||i,pt=I||j,Ft(n,e),pt=I,ia=B,Wt(e),o&8192)e:for(n=e.stateNode,n._visibility=i?n._visibility&-2:n._visibility|1,i&&(a===null||j||ia||pt||yr(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){j=a=n;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(P){Fe(j,j.return,P)}}}else if(n.tag===6){if(a===null){j=n;try{j.stateNode.nodeValue=i?"":j.memoizedProps}catch(P){Fe(j,j.return,P)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=e.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,Pu(e,a))));break;case 19:Ft(n,e),Wt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Pu(e,o)));break;case 30:break;case 21:break;default:Ft(n,e),Wt(e)}}function Wt(e){var n=e.flags;if(n&2){try{for(var a,o=e.return;o!==null;){if(Lp(o)){a=o;break}o=o.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var i=a.stateNode,d=Bu(e);Ys(e,d,i);break;case 5:var x=a.stateNode;a.flags&32&&(Pr(x,""),a.flags&=-33);var w=Bu(e);Ys(e,w,x);break;case 3:case 4:var j=a.stateNode.containerInfo,B=Bu(e);Hu(e,B,j);break;default:throw Error(s(161))}}catch(I){Fe(e,e.return,I)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Yp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Yp(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function _a(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Hp(e,n.alternate,n),n=n.sibling}function yr(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:ja(4,n,n.return),yr(n);break;case 1:Un(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Dp(n,n.return,a),yr(n);break;case 27:Ro(n.stateNode);case 26:case 5:Un(n,n.return),yr(n);break;case 22:n.memoizedState===null&&yr(n);break;case 30:yr(n);break;default:yr(n)}e=e.sibling}}function Ma(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,i=e,d=n,x=d.flags;switch(d.tag){case 0:case 11:case 15:Ma(i,d,a),vo(4,d);break;case 1:if(Ma(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++)bh(j[i],w)}catch(B){Fe(o,o.return,B)}}a&&x&64&&Op(d),yo(d,d.return);break;case 27:Up(d);case 26:case 5:Ma(i,d,a),a&&o===null&&x&4&&zp(d),yo(d,d.return);break;case 12:Ma(i,d,a);break;case 13:Ma(i,d,a),a&&x&4&&qp(i,d);break;case 22:d.memoizedState===null&&Ma(i,d,a),yo(d,d.return);break;case 30:break;default:Ma(i,d,a)}n=n.sibling}}function qu(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&no(a))}function Vu(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&no(e))}function Bn(e,n,a,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Gp(e,n,a,o),n=n.sibling}function Gp(e,n,a,o){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Bn(e,n,a,o),i&2048&&vo(9,n);break;case 1:Bn(e,n,a,o);break;case 3:Bn(e,n,a,o),i&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&no(e)));break;case 12:if(i&2048){Bn(e,n,a,o),e=n.stateNode;try{var d=n.memoizedProps,x=d.id,w=d.onPostCommit;typeof w=="function"&&w(x,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Fe(n,n.return,j)}}else Bn(e,n,a,o);break;case 13:Bn(e,n,a,o);break;case 23:break;case 22:d=n.stateNode,x=n.alternate,n.memoizedState!==null?d._visibility&2?Bn(e,n,a,o):bo(e,n):d._visibility&2?Bn(e,n,a,o):(d._visibility|=2,ol(e,n,a,o,(n.subtreeFlags&10256)!==0)),i&2048&&qu(x,n);break;case 24:Bn(e,n,a,o),i&2048&&Vu(n.alternate,n);break;default:Bn(e,n,a,o)}}function ol(e,n,a,o,i){for(i=i&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var d=e,x=n,w=a,j=o,B=x.flags;switch(x.tag){case 0:case 11:case 15:ol(d,x,w,j,i),vo(8,x);break;case 23:break;case 22:var I=x.stateNode;x.memoizedState!==null?I._visibility&2?ol(d,x,w,j,i):bo(d,x):(I._visibility|=2,ol(d,x,w,j,i)),i&&B&2048&&qu(x.alternate,x);break;case 24:ol(d,x,w,j,i),i&&B&2048&&Vu(x.alternate,x);break;default:ol(d,x,w,j,i)}n=n.sibling}}function bo(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,o=n,i=o.flags;switch(o.tag){case 22:bo(a,o),i&2048&&qu(o.alternate,o);break;case 24:bo(a,o),i&2048&&Vu(o.alternate,o);break;default:bo(a,o)}n=n.sibling}}var xo=8192;function sl(e){if(e.subtreeFlags&xo)for(e=e.child;e!==null;)Ip(e),e=e.sibling}function Ip(e){switch(e.tag){case 26:sl(e),e.flags&xo&&e.memoizedState!==null&&_w(xn,e.memoizedState,e.memoizedProps);break;case 5:sl(e);break;case 3:case 4:var n=xn;xn=ai(e.stateNode.containerInfo),sl(e),xn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=xo,xo=16777216,sl(e),xo=n):sl(e));break;default:sl(e)}}function Xp(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function So(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];Rt=o,Kp(o,e)}Xp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qp(e),e=e.sibling}function Qp(e){switch(e.tag){case 0:case 11:case 15:So(e),e.flags&2048&&ja(9,e,e.return);break;case 3:So(e);break;case 12:So(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Gs(e)):So(e);break;default:So(e)}}function Gs(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];Rt=o,Kp(o,e)}Xp(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:ja(8,n,n.return),Gs(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Gs(n));break;default:Gs(n)}e=e.sibling}}function Kp(e,n){for(;Rt!==null;){var a=Rt;switch(a.tag){case 0:case 11:case 15:ja(8,a,n);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:no(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,Rt=o;else e:for(a=e;Rt!==null;){o=Rt;var i=o.sibling,d=o.return;if($p(o),o===a){Rt=null;break e}if(i!==null){i.return=d,Rt=i;break e}Rt=d}}}var XS={getCacheForType:function(e){var n=zt(St),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a}},QS=typeof WeakMap=="function"?WeakMap:Map,Ie=0,et=null,Oe=null,Be=0,Xe=0,Jt=null,Oa=!1,il=!1,Yu=!1,ua=0,ut=0,Da=0,br=0,Gu=0,pn=0,cl=0,wo=null,Gt=null,Iu=!1,Xu=0,Is=1/0,Xs=null,za=null,Mt=0,La=null,ul=null,dl=0,Qu=0,Ku=null,Zp=null,Eo=0,Zu=null;function en(){if((Ie&2)!==0&&Be!==0)return Be&-Be;if(M.T!==null){var e=Wr;return e!==0?e:ad()}return Dn()}function Fp(){pn===0&&(pn=(Be&536870912)===0||Ve?Pt():536870912);var e=hn.current;return e!==null&&(e.flags|=32),pn}function tn(e,n,a){(e===et&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)&&(fl(e,0),Ua(e,Be,pn,!1)),xe(e,a),((Ie&2)===0||e!==et)&&(e===et&&((Ie&2)===0&&(br|=a),ut===4&&Ua(e,Be,pn,!1)),Hn(e))}function Wp(e,n,a){if((Ie&6)!==0)throw Error(s(327));var o=!a&&(n&124)===0&&(n&e.expiredLanes)===0||Kn(e,n),i=o?FS(e,n):Ju(e,n,!0),d=o;do{if(i===0){il&&!o&&Ua(e,n,0,!1);break}else{if(a=e.current.alternate,d&&!KS(a)){i=Ju(e,n,!1),d=!1;continue}if(i===2){if(d=n,e.errorRecoveryDisabledLanes&d)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{var w=e;i=wo;var j=w.current.memoizedState.isDehydrated;if(j&&(fl(w,x).flags|=256),x=Ju(w,x,!1),x!==2){if(Yu&&!j){w.errorRecoveryDisabledLanes|=d,br|=d,i=4;break e}d=Gt,Gt=i,d!==null&&(Gt===null?Gt=d:Gt.push.apply(Gt,d))}i=x}if(d=!1,i!==2)continue}}if(i===1){fl(e,0),Ua(e,n,0,!0);break}e:{switch(o=e,d=i,d){case 0:case 1:throw Error(s(345));case 4:if((n&4194048)!==n)break;case 6:Ua(o,n,pn,!Oa);break e;case 2:Gt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((n&62914560)===n&&(i=Xu+300-qe(),10<i)){if(Ua(o,n,pn,!Oa),Qn(o,0,!0)!==0)break e;o.timeoutHandle=Rg(Jp.bind(null,o,a,Gt,Xs,Iu,n,pn,br,cl,Oa,d,2,-0,0),i);break e}Jp(o,a,Gt,Xs,Iu,n,pn,br,cl,Oa,d,0,-0,0)}}break}while(!0);Hn(e)}function Jp(e,n,a,o,i,d,x,w,j,B,I,Z,H,P){if(e.timeoutHandle=-1,Z=n.subtreeFlags,(Z&8192||(Z&16785408)===16785408)&&(jo={stylesheets:null,count:0,unsuspend:jw},Ip(n),Z=Mw(),Z!==null)){e.cancelPendingCommit=Z(og.bind(null,e,n,d,a,o,i,x,w,j,I,1,H,P)),Ua(e,d,x,!B);return}og(e,n,d,a,o,i,x,w,j)}function KS(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.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(!Kt(d(),i))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Ua(e,n,a,o){n&=~Gu,n&=~br,e.suspendedLanes|=n,e.pingedLanes&=~n,o&&(e.warmLanes|=n),o=e.expirationTimes;for(var i=n;0<i;){var d=31-at(i),x=1<<d;o[d]=-1,i&=~x}a!==0&&he(e,a,n)}function Qs(){return(Ie&6)===0?(No(0),!1):!0}function Fu(){if(Oe!==null){if(Xe===0)var e=Oe.return;else e=Oe,na=mr=null,hu(e),rl=null,ho=0,e=Oe;for(;e!==null;)Mp(e.alternate,e),e=e.return;Oe=null}}function fl(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,mw(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Fu(),et=e,Oe=a=Jn(e.current,null),Be=n,Xe=0,Jt=null,Oa=!1,il=Kn(e,n),Yu=!1,cl=pn=Gu=br=Da=ut=0,Gt=wo=null,Iu=!1,(n&8)!==0&&(n|=n&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=n;0<o;){var i=31-at(o),d=1<<i;n|=e[i],o&=~d}return ua=n,gs(),a}function eg(e,n){ke=null,M.H=zs,n===ro||n===Ts?(n=vh(),Xe=3):n===hh?(n=vh(),Xe=4):Xe=n===yp?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Jt=n,Oe===null&&(ut=1,$s(e,un(n,e.current)))}function tg(){var e=M.H;return M.H=zs,e===null?zs:e}function ng(){var e=M.A;return M.A=XS,e}function Wu(){ut=4,Oa||(Be&4194048)!==Be&&hn.current!==null||(il=!0),(Da&134217727)===0&&(br&134217727)===0||et===null||Ua(et,Be,pn,!1)}function Ju(e,n,a){var o=Ie;Ie|=2;var i=tg(),d=ng();(et!==e||Be!==n)&&(Xs=null,fl(e,n)),n=!1;var x=ut;e:do try{if(Xe!==0&&Oe!==null){var w=Oe,j=Jt;switch(Xe){case 8:Fu(),x=6;break e;case 3:case 2:case 9:case 6:hn.current===null&&(n=!0);var B=Xe;if(Xe=0,Jt=null,ml(e,w,j,B),a&&il){x=0;break e}break;default:B=Xe,Xe=0,Jt=null,ml(e,w,j,B)}}ZS(),x=ut;break}catch(I){eg(e,I)}while(!0);return n&&e.shellSuspendCounter++,na=mr=null,Ie=o,M.H=i,M.A=d,Oe===null&&(et=null,Be=0,gs()),x}function ZS(){for(;Oe!==null;)ag(Oe)}function FS(e,n){var a=Ie;Ie|=2;var o=tg(),i=ng();et!==e||Be!==n?(Xs=null,Is=qe()+500,fl(e,n)):il=Kn(e,n);e:do try{if(Xe!==0&&Oe!==null){n=Oe;var d=Jt;t:switch(Xe){case 1:Xe=0,Jt=null,ml(e,n,d,1);break;case 2:case 9:if(ph(d)){Xe=0,Jt=null,rg(n);break}n=function(){Xe!==2&&Xe!==9||et!==e||(Xe=7),Hn(e)},d.then(n,n);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:ph(d)?(Xe=0,Jt=null,rg(n)):(Xe=0,Jt=null,ml(e,n,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||Hg(x)){Xe=0,Jt=null;var j=w.sibling;if(j!==null)Oe=j;else{var B=w.return;B!==null?(Oe=B,Ks(B)):Oe=null}break t}}Xe=0,Jt=null,ml(e,n,d,5);break;case 6:Xe=0,Jt=null,ml(e,n,d,6);break;case 8:Fu(),ut=6;break e;default:throw Error(s(462))}}WS();break}catch(I){eg(e,I)}while(!0);return na=mr=null,M.H=o,M.A=i,Ie=a,Oe!==null?0:(et=null,Be=0,gs(),ut)}function WS(){for(;Oe!==null&&!Pe();)ag(Oe)}function ag(e){var n=jp(e.alternate,e,ua);e.memoizedProps=e.pendingProps,n===null?Ks(e):Oe=n}function rg(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=Np(a,n,n.pendingProps,n.type,void 0,Be);break;case 11:n=Np(a,n,n.pendingProps,n.type.render,n.ref,Be);break;case 5:hu(n);default:Mp(a,n),n=Oe=lh(n,ua),n=jp(a,n,ua)}e.memoizedProps=e.pendingProps,n===null?Ks(e):Oe=n}function ml(e,n,a,o){na=mr=null,hu(n),rl=null,ho=0;var i=n.return;try{if(PS(e,i,n,a,Be)){ut=1,$s(e,un(a,e.current)),Oe=null;return}}catch(d){if(i!==null)throw Oe=i,d;ut=1,$s(e,un(a,e.current)),Oe=null;return}n.flags&32768?(Ve||o===1?e=!0:il||(Be&536870912)!==0?e=!1:(Oa=e=!0,(o===2||o===9||o===3||o===6)&&(o=hn.current,o!==null&&o.tag===13&&(o.flags|=16384))),lg(n,e)):Ks(n)}function Ks(e){var n=e;do{if((n.flags&32768)!==0){lg(n,Oa);return}e=n.return;var a=VS(n.alternate,n,ua);if(a!==null){Oe=a;return}if(n=n.sibling,n!==null){Oe=n;return}Oe=n=e}while(n!==null);ut===0&&(ut=5)}function lg(e,n){do{var a=YS(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),!n&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=a}while(e!==null);ut=6,Oe=null}function og(e,n,a,o,i,d,x,w,j){e.cancelPendingCommit=null;do Zs();while(Mt!==0);if((Ie&6)!==0)throw Error(s(327));if(n!==null){if(n===e.current)throw Error(s(177));if(d=n.lanes|n.childLanes,d|=Vc,Ge(e,a,d,x,w,j),e===et&&(Oe=et=null,Be=0),ul=n,La=e,dl=a,Qu=d,Ku=i,Zp=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,nw(Xn,function(){return dg(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=M.T,M.T=null,i=q.p,q.p=2,x=Ie,Ie|=4;try{GS(e,n,a)}finally{Ie=x,q.p=i,M.T=o}}Mt=1,sg(),ig(),cg()}}function sg(){if(Mt===1){Mt=0;var e=La,n=ul,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var o=q.p;q.p=2;var i=Ie;Ie|=4;try{Vp(n,e);var d=dd,x=Km(e.containerInfo),w=d.focusedElem,j=d.selectionRange;if(x!==w&&w&&w.ownerDocument&&Qm(w.ownerDocument.documentElement,w)){if(j!==null&&Bc(w)){var B=j.start,I=j.end;if(I===void 0&&(I=B),"selectionStart"in w)w.selectionStart=B,w.selectionEnd=Math.min(I,w.value.length);else{var Z=w.ownerDocument||document,H=Z&&Z.defaultView||window;if(H.getSelection){var P=H.getSelection(),Ce=w.textContent.length,Ne=Math.min(j.start,Ce),Ze=j.end===void 0?Ne:Math.min(j.end,Ce);!P.extend&&Ne>Ze&&(x=Ze,Ze=Ne,Ne=x);var D=Xm(w,Ne),O=Xm(w,Ze);if(D&&O&&(P.rangeCount!==1||P.anchorNode!==D.node||P.anchorOffset!==D.offset||P.focusNode!==O.node||P.focusOffset!==O.offset)){var L=Z.createRange();L.setStart(D.node,D.offset),P.removeAllRanges(),Ne>Ze?(P.addRange(L),P.extend(O.node,O.offset)):(L.setEnd(O.node,O.offset),P.addRange(L))}}}}for(Z=[],P=w;P=P.parentNode;)P.nodeType===1&&Z.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<Z.length;w++){var Q=Z[w];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}ii=!!ud,dd=ud=null}finally{Ie=i,q.p=o,M.T=a}}e.current=n,Mt=2}}function ig(){if(Mt===2){Mt=0;var e=La,n=ul,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var o=q.p;q.p=2;var i=Ie;Ie|=4;try{Hp(e,n.alternate,n)}finally{Ie=i,q.p=o,M.T=a}}Mt=3}}function cg(){if(Mt===4||Mt===3){Mt=0,yt();var e=La,n=ul,a=dl,o=Zp;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Mt=5:(Mt=0,ul=La=null,ug(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(za=null),bt(a),n=n.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(Qt,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=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=n,q.p=i}}(dl&3)!==0&&Zs(),Hn(e),i=e.pendingLanes,(a&4194090)!==0&&(i&42)!==0?e===Zu?Eo++:(Eo=0,Zu=e):Eo=0,No(0)}}function ug(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,no(n)))}function Zs(e){return sg(),ig(),cg(),dg()}function dg(){if(Mt!==5)return!1;var e=La,n=Qu;Qu=0;var a=bt(dl),o=M.T,i=q.p;try{q.p=32>a?32:a,M.T=null,a=Ku,Ku=null;var d=La,x=dl;if(Mt=0,ul=La=null,dl=0,(Ie&6)!==0)throw Error(s(331));var w=Ie;if(Ie|=4,Qp(d.current),Gp(d,d.current,x,a),Ie=w,No(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(Qt,d)}catch{}return!0}finally{q.p=i,M.T=o,ug(e,n)}}function fg(e,n,a){n=un(a,n),n=Au(e.stateNode,n,2),e=Ca(e,n,2),e!==null&&(xe(e,2),Hn(e))}function Fe(e,n,a){if(e.tag===3)fg(e,e,a);else for(;n!==null;){if(n.tag===3){fg(n,e,a);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(za===null||!za.has(o))){e=un(a,e),a=gp(2),o=Ca(n,a,2),o!==null&&(vp(a,o,n,e),xe(o,2),Hn(o));break}}n=n.return}}function ed(e,n,a){var o=e.pingCache;if(o===null){o=e.pingCache=new QS;var i=new Set;o.set(n,i)}else i=o.get(n),i===void 0&&(i=new Set,o.set(n,i));i.has(a)||(Yu=!0,i.add(a),e=JS.bind(null,e,n,a),n.then(e,e))}function JS(e,n,a){var o=e.pingCache;o!==null&&o.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,et===e&&(Be&a)===a&&(ut===4||ut===3&&(Be&62914560)===Be&&300>qe()-Xu?(Ie&2)===0&&fl(e,0):Gu|=a,cl===Be&&(cl=0)),Hn(e)}function mg(e,n){n===0&&(n=nr()),e=Qr(e,n),e!==null&&(xe(e,n),Hn(e))}function ew(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),mg(e,a)}function tw(e,n){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(n),mg(e,a)}function nw(e,n){return He(e,n)}var Fs=null,hl=null,td=!1,Ws=!1,nd=!1,xr=0;function Hn(e){e!==hl&&e.next===null&&(hl===null?Fs=hl=e:hl=hl.next=e),Ws=!0,td||(td=!0,rw())}function No(e,n){if(!nd&&Ws){nd=!0;do for(var a=!1,o=Fs;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-at(42|e)+1)-1,d&=i&~(x&~w),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,vg(o,d))}else d=Be,d=Qn(o,o===et?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(d&3)===0||Kn(o,d)||(a=!0,vg(o,d));o=o.next}while(a);nd=!1}}function aw(){hg()}function hg(){Ws=td=!1;var e=0;xr!==0&&(fw()&&(e=xr),xr=0);for(var n=qe(),a=null,o=Fs;o!==null;){var i=o.next,d=pg(o,n);d===0?(o.next=null,a===null?Fs=i:a.next=i,i===null&&(hl=a)):(a=o,(e!==0||(d&3)!==0)&&(Ws=!0)),o=i}No(e)}function pg(e,n){for(var a=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var x=31-at(d),w=1<<x,j=i[x];j===-1?((w&a)===0||(w&o)!==0)&&(i[x]=Sa(w,n)):j<=n&&(e.expiredLanes|=w),d&=~w}if(n=et,a=Be,a=Qn(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===n&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Ye(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Kn(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(o!==null&&Ye(o),bt(a)){case 2:case 8:a=_r;break;case 32:a=Xn;break;case 268435456:a=yn;break;default:a=Xn}return o=gg.bind(null,e),a=He(a,o),e.callbackPriority=n,e.callbackNode=a,n}return o!==null&&o!==null&&Ye(o),e.callbackPriority=2,e.callbackNode=null,2}function gg(e,n){if(Mt!==0&&Mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Zs()&&e.callbackNode!==a)return null;var o=Be;return o=Qn(e,e===et?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Wp(e,o,n),pg(e,qe()),e.callbackNode!=null&&e.callbackNode===a?gg.bind(null,e):null)}function vg(e,n){if(Zs())return null;Wp(e,n,!0)}function rw(){hw(function(){(Ie&6)!==0?He(rt,aw):hg()})}function ad(){return xr===0&&(xr=Pt()),xr}function yg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:cs(""+e)}function bg(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function lw(e,n,a,o,i){if(n==="submit"&&a&&a.stateNode===i){var d=yg((i[Je]||null).action),x=o.submitter;x&&(n=(n=x[Je]||null)?yg(n.formAction):x.getAttribute("formAction"),n!==null&&(d=n,x=null));var w=new ms("action","action",null,o,i);e.push({event:w,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(xr!==0){var j=x?bg(i,x):new FormData(i);Eu(a,{pending:!0,data:j,method:i.method,action:d},null,j)}}else typeof d=="function"&&(w.preventDefault(),j=x?bg(i,x):new FormData(i),Eu(a,{pending:!0,data:j,method:i.method,action:d},d,j))},currentTarget:i}]})}}for(var rd=0;rd<qc.length;rd++){var ld=qc[rd],ow=ld.toLowerCase(),sw=ld[0].toUpperCase()+ld.slice(1);bn(ow,"on"+sw)}bn(Wm,"onAnimationEnd"),bn(Jm,"onAnimationIteration"),bn(eh,"onAnimationStart"),bn("dblclick","onDoubleClick"),bn("focusin","onFocus"),bn("focusout","onBlur"),bn(NS,"onTransitionRun"),bn(TS,"onTransitionStart"),bn(CS,"onTransitionCancel"),bn(th,"onTransitionEnd"),Br("onMouseEnter",["mouseout","mouseover"]),Br("onMouseLeave",["mouseout","mouseover"]),Br("onPointerEnter",["pointerout","pointerover"]),Br("onPointerLeave",["pointerout","pointerover"]),rr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rr("onBeforeInput",["compositionend","keypress","textInput","paste"]),rr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var To="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),iw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(To));function xg(e,n){n=(n&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(n)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(I){Hs(I)}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(I){Hs(I)}i.currentTarget=null,d=j}}}}function De(e,n){var a=n[Dr];a===void 0&&(a=n[Dr]=new Set);var o=e+"__bubble";a.has(o)||(Sg(n,e,2,!1),a.add(o))}function od(e,n,a){var o=0;n&&(o|=4),Sg(a,e,o,n)}var Js="_reactListening"+Math.random().toString(36).slice(2);function sd(e){if(!e[Js]){e[Js]=!0,hm.forEach(function(a){a!=="selectionchange"&&(iw.has(a)||od(a,!1,e),od(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Js]||(n[Js]=!0,od("selectionchange",!1,n))}}function Sg(e,n,a,o){switch(Gg(n)){case 2:var i=zw;break;case 8:i=Lw;break;default:i=Sd}a=i.bind(null,n,a,e),i=void 0,!kc||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(i=!0),o?i!==void 0?e.addEventListener(n,a,{capture:!0,passive:i}):e.addEventListener(n,a,!0):i!==void 0?e.addEventListener(n,a,{passive:i}):e.addEventListener(n,a,!1)}function id(e,n,a,o,i){var d=o;if((n&1)===0&&(n&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=zr(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}Am(function(){var B=d,I=Rc(a),Z=[];e:{var H=nh.get(e);if(H!==void 0){var P=ms,Ce=e;switch(e){case"keypress":if(ds(a)===0)break e;case"keydown":case"keyup":P=nS;break;case"focusin":Ce="focus",P=Oc;break;case"focusout":Ce="blur",P=Oc;break;case"beforeblur":case"afterblur":P=Oc;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":P=_m;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=Y1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=lS;break;case Wm:case Jm:case eh:P=X1;break;case th:P=sS;break;case"scroll":case"scrollend":P=q1;break;case"wheel":P=cS;break;case"copy":case"cut":case"paste":P=K1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=Om;break;case"toggle":case"beforetoggle":P=dS}var Ne=(n&4)!==0,Ze=!Ne&&(e==="scroll"||e==="scrollend"),D=Ne?H!==null?H+"Capture":null:H;Ne=[];for(var O=B,L;O!==null;){var Q=O;if(L=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||L===null||D===null||(Q=Vl(O,D),Q!=null&&Ne.push(Co(O,Q,L))),Ze)break;O=O.return}0<Ne.length&&(H=new P(H,Ce,null,a,I),Z.push({event:H,listeners:Ne}))}}if((n&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",P=e==="mouseout"||e==="pointerout",H&&a!==Cc&&(Ce=a.relatedTarget||a.fromElement)&&(zr(Ce)||Ce[Nt]))break e;if((P||H)&&(H=I.window===I?I:(H=I.ownerDocument)?H.defaultView||H.parentWindow:window,P?(Ce=a.relatedTarget||a.toElement,P=B,Ce=Ce?zr(Ce):null,Ce!==null&&(Ze=u(Ce),Ne=Ce.tag,Ce!==Ze||Ne!==5&&Ne!==27&&Ne!==6)&&(Ce=null)):(P=null,Ce=B),P!==Ce)){if(Ne=_m,Q="onMouseLeave",D="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Ne=Om,Q="onPointerLeave",D="onPointerEnter",O="pointer"),Ze=P==null?H:ql(P),L=Ce==null?H:ql(Ce),H=new Ne(Q,O+"leave",P,a,I),H.target=Ze,H.relatedTarget=L,Q=null,zr(I)===B&&(Ne=new Ne(D,O+"enter",Ce,a,I),Ne.target=L,Ne.relatedTarget=Ze,Q=Ne),Ze=Q,P&&Ce)t:{for(Ne=P,D=Ce,O=0,L=Ne;L;L=pl(L))O++;for(L=0,Q=D;Q;Q=pl(Q))L++;for(;0<O-L;)Ne=pl(Ne),O--;for(;0<L-O;)D=pl(D),L--;for(;O--;){if(Ne===D||D!==null&&Ne===D.alternate)break t;Ne=pl(Ne),D=pl(D)}Ne=null}else Ne=null;P!==null&&wg(Z,H,P,Ne,!1),Ce!==null&&Ze!==null&&wg(Z,Ze,Ce,Ne,!0)}}e:{if(H=B?ql(B):window,P=H.nodeName&&H.nodeName.toLowerCase(),P==="select"||P==="input"&&H.type==="file")var pe=Pm;else if(Hm(H))if(qm)pe=SS;else{pe=bS;var Me=yS}else P=H.nodeName,!P||P.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?B&&Tc(B.elementType)&&(pe=Pm):pe=xS;if(pe&&(pe=pe(e,B))){$m(Z,pe,a,I);break e}Me&&Me(e,H,B),e==="focusout"&&B&&H.type==="number"&&B.memoizedProps.value!=null&&Nc(H,"number",H.value)}switch(Me=B?ql(B):window,e){case"focusin":(Hm(Me)||Me.contentEditable==="true")&&(Gr=Me,Hc=B,Fl=null);break;case"focusout":Fl=Hc=Gr=null;break;case"mousedown":$c=!0;break;case"contextmenu":case"mouseup":case"dragend":$c=!1,Zm(Z,a,I);break;case"selectionchange":if(ES)break;case"keydown":case"keyup":Zm(Z,a,I)}var be;if(zc)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Yr?Um(e,a)&&(Te="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Te="onCompositionStart");Te&&(Dm&&a.locale!=="ko"&&(Yr||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Yr&&(be=km()):(wa=I,jc="value"in wa?wa.value:wa.textContent,Yr=!0)),Me=ei(B,Te),0<Me.length&&(Te=new Mm(Te,e,null,a,I),Z.push({event:Te,listeners:Me}),be?Te.data=be:(be=Bm(a),be!==null&&(Te.data=be)))),(be=mS?hS(e,a):pS(e,a))&&(Te=ei(B,"onBeforeInput"),0<Te.length&&(Me=new Mm("onBeforeInput","beforeinput",null,a,I),Z.push({event:Me,listeners:Te}),Me.data=be)),lw(Z,e,B,a,I)}xg(Z,n)})}function Co(e,n,a){return{instance:e,listener:n,currentTarget:a}}function ei(e,n){for(var a=n+"Capture",o=[];e!==null;){var i=e,d=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||d===null||(i=Vl(e,a),i!=null&&o.unshift(Co(e,i,d)),i=Vl(e,n),i!=null&&o.push(Co(e,i,d))),e.tag===3)return o;e=e.return}return[]}function pl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function wg(e,n,a,o,i){for(var d=n._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=Vl(a,d),B!=null&&x.unshift(Co(a,B,j))):i||(B=Vl(a,d),B!=null&&x.push(Co(a,B,j)))),a=a.return}x.length!==0&&e.push({event:n,listeners:x})}var cw=/\r\n?/g,uw=/\u0000|\uFFFD/g;function Eg(e){return(typeof e=="string"?e:""+e).replace(cw,`
|
|
50
|
-
`).replace(uw,"")}function Ng(e,n){return n=Eg(n),Eg(e)===n}function ti(){}function Ke(e,n,a,o,i,d){switch(a){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||Pr(e,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&Pr(e,""+o);break;case"className":os(e,"class",o);break;case"tabIndex":os(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":os(e,a,o);break;case"style":Cm(e,o,d);break;case"data":if(n!=="object"){os(e,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=cs(""+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"?(n!=="input"&&Ke(e,n,"name",i.name,i,null),Ke(e,n,"formEncType",i.formEncType,i,null),Ke(e,n,"formMethod",i.formMethod,i,null),Ke(e,n,"formTarget",i.formTarget,i,null)):(Ke(e,n,"encType",i.encType,i,null),Ke(e,n,"method",i.method,i,null),Ke(e,n,"target",i.target,i,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=cs(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=ti);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=cs(""+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),ls(e,"popover",o);break;case"xlinkActuate":Fn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Fn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Fn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Fn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Fn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Fn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Fn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Fn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Fn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ls(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=$1.get(a)||a,ls(e,a,o))}}function cd(e,n,a,o,i,d){switch(a){case"style":Cm(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"?Pr(e,o):(typeof o=="number"||typeof o=="bigint")&&Pr(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=ti);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pm.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),n=a.slice(2,i?a.length-7:void 0),d=e[Je]||null,d=d!=null?d[a]:null,typeof d=="function"&&e.removeEventListener(n,d,i),typeof o=="function")){typeof d!="function"&&d!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,o,i);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):ls(e,a,o)}}}function Ot(e,n,a){switch(n){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,n));default:Ke(e,n,d,x,a,null)}}i&&Ke(e,n,"srcSet",a.srcSet,a,null),o&&Ke(e,n,"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 I=a[o];if(I!=null)switch(o){case"name":i=I;break;case"type":x=I;break;case"checked":j=I;break;case"defaultChecked":B=I;break;case"value":d=I;break;case"defaultValue":w=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(s(137,n));break;default:Ke(e,n,o,I,a,null)}}wm(e,d,w,j,B,x,i,!1),ss(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:Ke(e,n,i,w,a,null)}n=d,a=x,e.multiple=!!o,n!=null?$r(e,!!o,n,!1):a!=null&&$r(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:Ke(e,n,x,w,a,null)}Nm(e,o,i,d),ss(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:Ke(e,n,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<To.length;o++)De(To[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,n));default:Ke(e,n,B,o,a,null)}return;default:if(Tc(n)){for(I in a)a.hasOwnProperty(I)&&(o=a[I],o!==void 0&&cd(e,n,I,o,a,void 0));return}}for(w in a)a.hasOwnProperty(w)&&(o=a[w],o!=null&&Ke(e,n,w,o,a,null))}function dw(e,n,a,o){switch(n){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,I=null;for(P in a){var Z=a[P];if(a.hasOwnProperty(P)&&Z!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":j=Z;default:o.hasOwnProperty(P)||Ke(e,n,P,null,o,Z)}}for(var H in o){var P=o[H];if(Z=a[H],o.hasOwnProperty(H)&&(P!=null||Z!=null))switch(H){case"type":d=P;break;case"name":i=P;break;case"checked":B=P;break;case"defaultChecked":I=P;break;case"value":x=P;break;case"defaultValue":w=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(s(137,n));break;default:P!==Z&&Ke(e,n,H,P,o,Z)}}Ec(e,x,w,j,B,I,d,i);return;case"select":P=x=w=H=null;for(d in a)if(j=a[d],a.hasOwnProperty(d)&&j!=null)switch(d){case"value":break;case"multiple":P=j;default:o.hasOwnProperty(d)||Ke(e,n,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&&Ke(e,n,i,d,o,j)}n=w,a=x,o=P,H!=null?$r(e,!!a,H,!1):!!o!=!!a&&(n!=null?$r(e,!!a,n,!0):$r(e,!!a,a?[]:"",!1));return;case"textarea":P=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:Ke(e,n,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":P=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(s(91));break;default:i!==d&&Ke(e,n,x,i,o,d)}Em(e,H,P);return;case"option":for(var Ce in a)if(H=a[Ce],a.hasOwnProperty(Ce)&&H!=null&&!o.hasOwnProperty(Ce))switch(Ce){case"selected":e.selected=!1;break;default:Ke(e,n,Ce,null,o,H)}for(j in o)if(H=o[j],P=a[j],o.hasOwnProperty(j)&&H!==P&&(H!=null||P!=null))switch(j){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Ke(e,n,j,H,o,P)}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 Ne in a)H=a[Ne],a.hasOwnProperty(Ne)&&H!=null&&!o.hasOwnProperty(Ne)&&Ke(e,n,Ne,null,o,H);for(B in o)if(H=o[B],P=a[B],o.hasOwnProperty(B)&&H!==P&&(H!=null||P!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,n));break;default:Ke(e,n,B,H,o,P)}return;default:if(Tc(n)){for(var Ze in a)H=a[Ze],a.hasOwnProperty(Ze)&&H!==void 0&&!o.hasOwnProperty(Ze)&&cd(e,n,Ze,void 0,o,H);for(I in o)H=o[I],P=a[I],!o.hasOwnProperty(I)||H===P||H===void 0&&P===void 0||cd(e,n,I,H,o,P);return}}for(var D in a)H=a[D],a.hasOwnProperty(D)&&H!=null&&!o.hasOwnProperty(D)&&Ke(e,n,D,null,o,H);for(Z in o)H=o[Z],P=a[Z],!o.hasOwnProperty(Z)||H===P||H==null&&P==null||Ke(e,n,Z,H,o,P)}var ud=null,dd=null;function ni(e){return e.nodeType===9?e:e.ownerDocument}function Tg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Cg(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function fd(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var md=null;function fw(){var e=window.event;return e&&e.type==="popstate"?e===md?!1:(md=e,!0):(md=null,!1)}var Rg=typeof setTimeout=="function"?setTimeout:void 0,mw=typeof clearTimeout=="function"?clearTimeout:void 0,Ag=typeof Promise=="function"?Promise:void 0,hw=typeof queueMicrotask=="function"?queueMicrotask:typeof Ag<"u"?function(e){return Ag.resolve(null).then(e).catch(pw)}:Rg;function pw(e){setTimeout(function(){throw e})}function Ba(e){return e==="head"}function kg(e,n){var a=n,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&&Ro(x.documentElement),a&2&&Ro(x.body),a&4)for(a=x.head,Ro(a),x=a.firstChild;x;){var w=x.nextSibling,j=x.nodeName;x[Pl]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&x.rel.toLowerCase()==="stylesheet"||a.removeChild(x),x=w}}if(i===0){e.removeChild(d),zo(n);return}i--}else a==="$"||a==="$?"||a==="$!"?i++:o=a.charCodeAt(0)-48;else o=0;a=d}while(a);zo(n)}function hd(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":hd(a),bc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function gw(e,n,a,o){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Pl])switch(n){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(n==="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=Sn(e.nextSibling),e===null)break}return null}function vw(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Sn(e.nextSibling),e===null))return null;return e}function pd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function yw(e,n){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")n();else{var o=function(){n(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Sn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}var gd=null;function jg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(n===0)return e;n--}else a==="/$"&&n++}e=e.previousSibling}return null}function _g(e,n,a){switch(n=ni(a),e){case"html":if(e=n.documentElement,!e)throw Error(s(452));return e;case"head":if(e=n.head,!e)throw Error(s(453));return e;case"body":if(e=n.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Ro(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);bc(e)}var gn=new Map,Mg=new Set;function ai(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var da=q.d;q.d={f:bw,r:xw,D:Sw,C:ww,L:Ew,m:Nw,X:Cw,S:Tw,M:Rw};function bw(){var e=da.f(),n=Qs();return e||n}function xw(e){var n=Lr(e);n!==null&&n.tag===5&&n.type==="form"?Wh(n):da.r(e)}var gl=typeof document>"u"?null:document;function Og(e,n,a){var o=gl;if(o&&typeof n=="string"&&n){var i=cn(n);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),Mg.has(i)||(Mg.add(i),e={rel:e,crossOrigin:a,href:n},o.querySelector(i)===null&&(n=o.createElement("link"),Ot(n,"link",e),Tt(n),o.head.appendChild(n)))}}function Sw(e){da.D(e),Og("dns-prefetch",e,null)}function ww(e,n){da.C(e,n),Og("preconnect",e,n)}function Ew(e,n,a){da.L(e,n,a);var o=gl;if(o&&e&&n){var i='link[rel="preload"][as="'+cn(n)+'"]';n==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+cn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+cn(a.imageSizes)+'"]')):i+='[href="'+cn(e)+'"]';var d=i;switch(n){case"style":d=vl(e);break;case"script":d=yl(e)}gn.has(d)||(e=b({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),gn.set(d,e),o.querySelector(i)!==null||n==="style"&&o.querySelector(Ao(d))||n==="script"&&o.querySelector(ko(d))||(n=o.createElement("link"),Ot(n,"link",e),Tt(n),o.head.appendChild(n)))}}function Nw(e,n){da.m(e,n);var a=gl;if(a&&e){var o=n&&typeof n.as=="string"?n.as:"script",i='link[rel="modulepreload"][as="'+cn(o)+'"][href="'+cn(e)+'"]',d=i;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=yl(e)}if(!gn.has(d)&&(e=b({rel:"modulepreload",href:e},n),gn.set(d,e),a.querySelector(i)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ko(d)))return}o=a.createElement("link"),Ot(o,"link",e),Tt(o),a.head.appendChild(o)}}}function Tw(e,n,a){da.S(e,n,a);var o=gl;if(o&&e){var i=Ur(o).hoistableStyles,d=vl(e);n=n||"default";var x=i.get(d);if(!x){var w={loading:0,preload:null};if(x=o.querySelector(Ao(d)))w.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":n},a),(a=gn.get(d))&&vd(e,a);var j=x=o.createElement("link");Tt(j),Ot(j,"link",e),j._p=new Promise(function(B,I){j.onload=B,j.onerror=I}),j.addEventListener("load",function(){w.loading|=1}),j.addEventListener("error",function(){w.loading|=2}),w.loading|=4,ri(x,n,o)}x={type:"stylesheet",instance:x,count:1,state:w},i.set(d,x)}}}function Cw(e,n){da.X(e,n);var a=gl;if(a&&e){var o=Ur(a).hoistableScripts,i=yl(e),d=o.get(i);d||(d=a.querySelector(ko(i)),d||(e=b({src:e,async:!0},n),(n=gn.get(i))&&yd(e,n),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,n){da.M(e,n);var a=gl;if(a&&e){var o=Ur(a).hoistableScripts,i=yl(e),d=o.get(i);d||(d=a.querySelector(ko(i)),d||(e=b({src:e,async:!0,type:"module"},n),(n=gn.get(i))&&yd(e,n),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 Dg(e,n,a,o){var i=(i=ee.current)?ai(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"?(n=vl(a.href),a=Ur(i).hoistableStyles,o=a.get(n),o||(o={type:"style",instance:null,count:0,state:null},a.set(n,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=vl(a.href);var d=Ur(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(Ao(e)))&&!d._p&&(x.instance=d,x.state.loading=5),gn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},gn.set(e,a),d||Aw(i,e,a,x.state))),n&&o===null)throw Error(s(528,""));return x}if(n&&o!==null)throw Error(s(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=yl(a),a=Ur(i).hoistableScripts,o=a.get(n),o||(o={type:"script",instance:null,count:0,state:null},a.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function vl(e){return'href="'+cn(e)+'"'}function Ao(e){return'link[rel="stylesheet"]['+e+"]"}function zg(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Aw(e,n,a,o){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=e.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),Ot(n,"link",a),Tt(n),e.head.appendChild(n))}function yl(e){return'[src="'+cn(e)+'"]'}function ko(e){return"script[async]"+e}function Lg(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var o=e.querySelector('style[data-href~="'+cn(a.href)+'"]');if(o)return n.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),ri(o,a.precedence,e),n.instance=o;case"stylesheet":i=vl(a.href);var d=e.querySelector(Ao(i));if(d)return n.state.loading|=4,n.instance=d,Tt(d),d;o=zg(a),(i=gn.get(i))&&vd(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),n.state.loading|=4,ri(d,a.precedence,e),n.instance=d;case"script":return d=yl(a.src),(i=e.querySelector(ko(d)))?(n.instance=i,Tt(i),i):(o=a,(i=gn.get(d))&&(o=b({},a),yd(o,i)),e=e.ownerDocument||e,i=e.createElement("script"),Tt(i),Ot(i,"link",o),e.head.appendChild(i),n.instance=i);case"void":return null;default:throw Error(s(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,ri(o,a.precedence,e));return n.instance}function ri(e,n,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===n)d=w;else if(d!==i)break}d?d.parentNode.insertBefore(e,d.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function vd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function yd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var li=null;function Ug(e,n,a){if(li===null){var o=new Map,i=li=new Map;i.set(a,o)}else i=li,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[Pl]||d[mt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var x=d.getAttribute(n)||"";x=e+x;var w=o.get(x);w?w.push(d):o.set(x,[d])}}return o}function Bg(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function kw(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Hg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var jo=null;function jw(){}function _w(e,n,a){if(jo===null)throw Error(s(475));var o=jo;if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=vl(a.href),d=e.querySelector(Ao(i));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=oi.bind(o),e.then(o,o)),n.state.loading|=4,n.instance=d,Tt(d);return}d=e.ownerDocument||e,a=zg(a),(i=gn.get(i))&&vd(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),n.instance=d}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(o.count++,n=oi.bind(o),e.addEventListener("load",n),e.addEventListener("error",n))}}function Mw(){if(jo===null)throw Error(s(475));var e=jo;return e.stylesheets&&e.count===0&&bd(e,e.stylesheets),0<e.count?function(n){var a=setTimeout(function(){if(e.stylesheets&&bd(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a)}}:null}function oi(){if(this.count--,this.count===0){if(this.stylesheets)bd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var si=null;function bd(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,si=new Map,n.forEach(Ow,e),si=null,oi.call(e))}function Ow(e,n){if(!(n.state.loading&4)){var a=si.get(e);if(a)var o=a.get(null);else{a=new Map,si.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=n.instance,x=i.getAttribute("data-precedence"),d=a.get(x)||o,d===o&&a.set(null,i),a.set(x,i),this.count++,o=oi.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)),n.state.loading|=4}}var _o={$$typeof:_,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Dw(e,n,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=ar(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ar(0),this.hiddenUpdates=ar(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 $g(e,n,a,o,i,d,x,w,j,B,I,Z){return e=new Dw(e,n,a,x,w,j,B,Z),n=1,d===!0&&(n|=24),d=Zt(3,null,null,n),e.current=d,d.stateNode=e,n=eu(),n.refCount++,e.pooledCache=n,n.refCount++,d.memoizedState={element:o,isDehydrated:a,cache:n},ru(d),e}function Pg(e){return e?(e=Kr,e):Kr}function qg(e,n,a,o,i,d){i=Pg(i),o.context===null?o.context=i:o.pendingContext=i,o=Ta(n),o.payload={element:a},d=d===void 0?null:d,d!==null&&(o.callback=d),a=Ca(e,o,n),a!==null&&(tn(a,e,n),oo(a,e,n))}function Vg(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function xd(e,n){Vg(e,n),(e=e.alternate)&&Vg(e,n)}function Yg(e){if(e.tag===13){var n=Qr(e,67108864);n!==null&&tn(n,e,67108864),xd(e,67108864)}}var ii=!0;function zw(e,n,a,o){var i=M.T;M.T=null;var d=q.p;try{q.p=2,Sd(e,n,a,o)}finally{q.p=d,M.T=i}}function Lw(e,n,a,o){var i=M.T;M.T=null;var d=q.p;try{q.p=8,Sd(e,n,a,o)}finally{q.p=d,M.T=i}}function Sd(e,n,a,o){if(ii){var i=wd(o);if(i===null)id(e,n,o,ci,a),Ig(e,o);else if(Bw(i,e,n,a,o))o.stopPropagation();else if(Ig(e,o),n&4&&-1<Uw.indexOf(e)){for(;i!==null;){var d=Lr(i);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var x=on(d.pendingLanes);if(x!==0){var w=d;for(w.pendingLanes|=2,w.entangledLanes|=2;x;){var j=1<<31-at(x);w.entanglements[1]|=j,x&=~j}Hn(d),(Ie&6)===0&&(Is=qe()+500,No(0))}}break;case 13:w=Qr(d,2),w!==null&&tn(w,d,2),Qs(),xd(d,2)}if(d=wd(o),d===null&&id(e,n,o,ci,a),d===i)break;i=d}i!==null&&o.stopPropagation()}else id(e,n,o,null,a)}}function wd(e){return e=Rc(e),Ed(e)}var ci=null;function Ed(e){if(ci=null,e=zr(e),e!==null){var n=u(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=m(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return ci=e,null}function Gg(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 rt:return 2;case _r:return 8;case Xn:case dt:return 32;case yn:return 268435456;default:return 32}default:return 32}}var Nd=!1,Ha=null,$a=null,Pa=null,Mo=new Map,Oo=new Map,qa=[],Uw="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 Ig(e,n){switch(e){case"focusin":case"focusout":Ha=null;break;case"dragenter":case"dragleave":$a=null;break;case"mouseover":case"mouseout":Pa=null;break;case"pointerover":case"pointerout":Mo.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oo.delete(n.pointerId)}}function Do(e,n,a,o,i,d){return e===null||e.nativeEvent!==d?(e={blockedOn:n,domEventName:a,eventSystemFlags:o,nativeEvent:d,targetContainers:[i]},n!==null&&(n=Lr(n),n!==null&&Yg(n)),e):(e.eventSystemFlags|=o,n=e.targetContainers,i!==null&&n.indexOf(i)===-1&&n.push(i),e)}function Bw(e,n,a,o,i){switch(n){case"focusin":return Ha=Do(Ha,e,n,a,o,i),!0;case"dragenter":return $a=Do($a,e,n,a,o,i),!0;case"mouseover":return Pa=Do(Pa,e,n,a,o,i),!0;case"pointerover":var d=i.pointerId;return Mo.set(d,Do(Mo.get(d)||null,e,n,a,o,i)),!0;case"gotpointercapture":return d=i.pointerId,Oo.set(d,Do(Oo.get(d)||null,e,n,a,o,i)),!0}return!1}function Xg(e){var n=zr(e.target);if(n!==null){var a=u(n);if(a!==null){if(n=a.tag,n===13){if(n=m(a),n!==null){e.blockedOn=n,xt(e.priority,function(){if(a.tag===13){var o=en();o=We(o);var i=Qr(a,o);i!==null&&tn(i,a,o),xd(a,o)}});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ui(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=wd(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);Cc=o,a.target.dispatchEvent(o),Cc=null}else return n=Lr(a),n!==null&&Yg(n),e.blockedOn=a,!1;n.shift()}return!0}function Qg(e,n,a){ui(e)&&a.delete(n)}function Hw(){Nd=!1,Ha!==null&&ui(Ha)&&(Ha=null),$a!==null&&ui($a)&&($a=null),Pa!==null&&ui(Pa)&&(Pa=null),Mo.forEach(Qg),Oo.forEach(Qg)}function di(e,n){e.blockedOn===n&&(e.blockedOn=null,Nd||(Nd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Hw)))}var fi=null;function Kg(e){fi!==e&&(fi=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){fi===e&&(fi=null);for(var n=0;n<e.length;n+=3){var a=e[n],o=e[n+1],i=e[n+2];if(typeof o!="function"){if(Ed(o||a)===null)continue;break}var d=Lr(a);d!==null&&(e.splice(n,3),n-=3,Eu(d,{pending:!0,data:i,method:a.method,action:o},o,i))}}))}function zo(e){function n(j){return di(j,e)}Ha!==null&&di(Ha,e),$a!==null&&di($a,e),Pa!==null&&di(Pa,e),Mo.forEach(n),Oo.forEach(n);for(var a=0;a<qa.length;a++){var o=qa[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<qa.length&&(a=qa[0],a.blockedOn===null);)Xg(a),a.blockedOn===null&&qa.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[Je]||null;if(typeof d=="function")x||Kg(a);else if(x){var w=null;if(d&&d.hasAttribute("formAction")){if(i=d,x=d[Je]||null)w=x.formAction;else if(Ed(i)!==null)continue}else w=x.action;typeof w=="function"?a[o+1]=w:(a.splice(o,3),o-=3),Kg(a)}}}function Td(e){this._internalRoot=e}mi.prototype.render=Td.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(s(409));var a=n.current,o=en();qg(a,o,e,n,null,null)},mi.prototype.unmount=Td.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;qg(e.current,2,null,e,null,null),Qs(),n[Nt]=null}};function mi(e){this._internalRoot=e}mi.prototype.unstable_scheduleHydration=function(e){if(e){var n=Dn();e={blockedOn:null,target:e,priority:n};for(var a=0;a<qa.length&&n!==0&&n<qa[a].priority;a++);qa.splice(a,0,e),a===0&&Xg(e)}};var Zg=r.version;if(Zg!=="19.1.0")throw Error(s(527,Zg,"19.1.0"));q.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(n),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var $w={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hi.isDisabled&&hi.supportsFiber)try{Qt=hi.inject($w),jt=hi}catch{}}return Uo.createRoot=function(e,n){if(!c(e))throw Error(s(299));var a=!1,o="",i=fp,d=mp,x=hp,w=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(w=n.unstable_transitionCallbacks)),n=$g(e,1,!1,null,null,a,o,i,d,x,w,null),e[Nt]=n.current,sd(e),new Td(n)},Uo.hydrateRoot=function(e,n,a){if(!c(e))throw Error(s(299));var o=!1,i="",d=fp,x=mp,w=hp,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)),n=$g(e,1,!0,n,a??null,o,i,d,x,w,j,B),n.context=Pg(null),a=n.current,o=en(),o=We(o),i=Ta(o),i.callback=null,Ca(a,i,o),a=o,n.current.lanes=a,xe(n,a),Hn(n),e[Nt]=n.current,sd(e),new mi(n)},Uo.version="19.1.0",Uo}var ov;function Ww(){if(ov)return Ad.exports;ov=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Ad.exports=Fw(),Ad.exports}var Jw=Ww();const e2="modulepreload",t2=function(t){return"/"+t},sv={},b0=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]"),g=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));c=m(l.map(p=>{if(p=t2(p),p in sv)return;sv[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":e2,b||(S.as="script"),S.crossOrigin="",S.href=p,g&&S.setAttribute("nonce",g),document.head.appendChild(S),b)return new Promise((T,E)=>{S.addEventListener("load",T),S.addEventListener("error",()=>E(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 iv="popstate";function cv(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function n2(t={}){function r(s,c){var p;let u=(p=c.state)==null?void 0:p.masked,{pathname:m,search:h,hash:g}=u||s.location;return ef("",{pathname:m,search:h,hash:g},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:Zo(c)}return r2(r,l,null,t)}function ot(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}function An(t,r){if(!t){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function a2(){return Math.random().toString(36).substring(2,10)}function uv(t,r){return{usr:t.state,key:t.key,idx:r,masked:t.unstable_mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function ef(t,r,l=null,s,c){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof r=="string"?Ol(r):r,state:l,key:r&&r.key||s||a2(),unstable_mask:c}}function Zo({pathname:t="/",search:r="",hash:l=""}){return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),l&&l!=="#"&&(t+=l.charAt(0)==="#"?l:"#"+l),t}function Ol(t){let r={};if(t){let l=t.indexOf("#");l>=0&&(r.hash=t.substring(l),t=t.substring(0,l));let s=t.indexOf("?");s>=0&&(r.search=t.substring(s),t=t.substring(0,s)),t&&(r.pathname=t)}return r}function r2(t,r,l,s={}){let{window:c=document.defaultView,v5Compat:u=!1}=s,m=c.history,h="POP",g=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 C=b(),R=C==null?null:C-p;p=C,g&&g({action:h,location:N.location,delta:R})}function S(C,R){h="PUSH";let k=cv(C)?C:ef(N.location,C,R);p=b()+1;let _=uv(k,p),U=N.createHref(k.unstable_mask||k);try{m.pushState(_,"",U)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;c.location.assign(U)}u&&g&&g({action:h,location:N.location,delta:1})}function T(C,R){h="REPLACE";let k=cv(C)?C:ef(N.location,C,R);p=b();let _=uv(k,p),U=N.createHref(k.unstable_mask||k);m.replaceState(_,"",U),u&&g&&g({action:h,location:N.location,delta:0})}function E(C){return l2(C)}let N={get action(){return h},get location(){return t(c,m)},listen(C){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(iv,y),g=C,()=>{c.removeEventListener(iv,y),g=null}},createHref(C){return r(c,C)},createURL:E,encodeLocation(C){let R=E(C);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:S,replace:T,go(C){return m.go(C)}};return N}function l2(t,r=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),ot(l,"No window.location.(origin|href) available to create URL");let s=typeof t=="string"?t:Zo(t);return s=s.replace(/ $/,"%20"),!r&&s.startsWith("//")&&(s=l+s),new URL(s,l)}function x0(t,r,l="/"){return o2(t,r,l,!1)}function o2(t,r,l,s){let c=typeof r=="string"?Ol(r):r,u=ma(c.pathname||"/",l);if(u==null)return null;let m=S0(t);s2(m);let h=null;for(let g=0;h==null&&g<m.length;++g){let p=y2(u);h=g2(m[g],p,s)}return h}function S0(t,r=[],l=[],s="",c=!1){let u=(m,h,g=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)&&g)return;ot(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=Vn([s,b.relativePath]),S=l.concat(b);m.children&&m.children.length>0&&(ot(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),S0(m.children,r,S,y,g)),!(m.path==null&&!m.index)&&r.push({path:y,score:h2(y,m.index),routesMeta:S})};return t.forEach((m,h)=>{var g;if(m.path===""||!((g=m.path)!=null&&g.includes("?")))u(m,h);else for(let p of w0(m.path))u(m,h,!0,p)}),r}function w0(t){let r=t.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=w0(s.join("/")),h=[];return h.push(...m.map(g=>g===""?u:[u,g].join("/"))),c&&h.push(...m),h.map(g=>t.startsWith("/")&&g===""?"/":g)}function s2(t){t.sort((r,l)=>r.score!==l.score?l.score-r.score:p2(r.routesMeta.map(s=>s.childrenIndex),l.routesMeta.map(s=>s.childrenIndex)))}var i2=/^:[\w-]+$/,c2=3,u2=2,d2=1,f2=10,m2=-2,dv=t=>t==="*";function h2(t,r){let l=t.split("/"),s=l.length;return l.some(dv)&&(s+=m2),r&&(s+=u2),l.filter(c=>!dv(c)).reduce((c,u)=>c+(i2.test(u)?c2:u===""?d2:f2),s)}function p2(t,r){return t.length===r.length&&t.slice(0,-1).every((s,c)=>s===r[c])?t[t.length-1]-r[r.length-1]:0}function g2(t,r,l=!1){let{routesMeta:s}=t,c={},u="/",m=[];for(let h=0;h<s.length;++h){let g=s[h],p=h===s.length-1,b=u==="/"?r:r.slice(u.length)||"/",y=Di({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},b),S=g.route;if(!y&&p&&l&&!s[s.length-1].route.index&&(y=Di({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},b)),!y)return null;Object.assign(c,y.params),m.push({params:c,pathname:Vn([u,y.pathname]),pathnameBase:w2(Vn([u,y.pathnameBase])),route:S}),y.pathnameBase!=="/"&&(u=Vn([u,y.pathnameBase]))}return m}function Di(t,r){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[l,s]=v2(t.path,t.caseSensitive,t.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 E=h[S]||"";m=u.slice(0,u.length-E.length).replace(/(.)\/+$/,"$1")}const T=h[S];return y&&!T?p[b]=void 0:p[b]=(T||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:m,pattern:t}}function v2(t,r=!1,l=!0){An(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let s=[],c="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,h,g,p,b)=>{if(s.push({paramName:h,isOptional:g!=null}),g){let y=b.charAt(p+m.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(s.push({paramName:"*"}),c+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?c+="\\/*$":t!==""&&t!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,r?void 0:"i"),s]}function y2(t){try{return t.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return An(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),t}}function ma(t,r){if(r==="/")return t;if(!t.toLowerCase().startsWith(r.toLowerCase()))return null;let l=r.endsWith("/")?r.length-1:r.length,s=t.charAt(l);return s&&s!=="/"?null:t.slice(l)||"/"}var b2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function x2(t,r="/"){let{pathname:l,search:s="",hash:c=""}=typeof t=="string"?Ol(t):t,u;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?u=fv(l.substring(1),"/"):u=fv(l,r)):u=r,{pathname:u,search:E2(s),hash:N2(c)}}function fv(t,r){let l=r.replace(/\/+$/,"").split("/");return t.split("/").forEach(c=>{c===".."?l.length>1&&l.pop():c!=="."&&l.push(c)}),l.length>1?l.join("/"):"/"}function Md(t,r,l,s){return`Cannot include a '${t}' 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 S2(t){return t.filter((r,l)=>l===0||r.route.path&&r.route.path.length>0)}function Af(t){let r=S2(t);return r.map((l,s)=>s===r.length-1?l.pathname:l.pathnameBase)}function nc(t,r,l,s=!1){let c;typeof t=="string"?c=Ol(t):(c={...t},ot(!c.pathname||!c.pathname.includes("?"),Md("?","pathname","search",c)),ot(!c.pathname||!c.pathname.includes("#"),Md("#","pathname","hash",c)),ot(!c.search||!c.search.includes("#"),Md("#","search","hash",c)));let u=t===""||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 g=x2(c,h),p=m&&m!=="/"&&m.endsWith("/"),b=(u||m===".")&&l.endsWith("/");return!g.pathname.endsWith("/")&&(p||b)&&(g.pathname+="/"),g}var Vn=t=>t.join("/").replace(/\/\/+/g,"/"),w2=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),E2=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,N2=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,T2=class{constructor(t,r,l,s=!1){this.status=t,this.statusText=r||"",this.internal=s,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function C2(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function R2(t){return t.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var E0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function N0(t,r){let l=t;if(typeof l!="string"||!b2.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let s=l,c=!1;if(E0)try{let u=new URL(window.location.href),m=l.startsWith("//")?new URL(u.protocol+l):new URL(l),h=ma(m.pathname,r);m.origin===u.origin&&h!=null?l=h+m.search+m.hash:c=!0}catch{An(!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 T0=["POST","PUT","PATCH","DELETE"];new Set(T0);var A2=["GET",...T0];new Set(A2);var Dl=v.createContext(null);Dl.displayName="DataRouter";var ac=v.createContext(null);ac.displayName="DataRouterState";var k2=v.createContext(!1),C0=v.createContext({isTransitioning:!1});C0.displayName="ViewTransition";var j2=v.createContext(new Map);j2.displayName="Fetchers";var _2=v.createContext(null);_2.displayName="Await";var ln=v.createContext(null);ln.displayName="Navigation";var es=v.createContext(null);es.displayName="Location";var vn=v.createContext({outlet:null,matches:[],isDataRoute:!1});vn.displayName="Route";var kf=v.createContext(null);kf.displayName="RouteError";var R0="REACT_ROUTER_ERROR",M2="REDIRECT",O2="ROUTE_ERROR_RESPONSE";function D2(t){if(t.startsWith(`${R0}:${M2}:{`))try{let r=JSON.parse(t.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 z2(t){if(t.startsWith(`${R0}:${O2}:{`))try{let r=JSON.parse(t.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new T2(r.status,r.statusText,r.data)}catch{}}function L2(t,{relative:r}={}){ot(zl(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:s}=v.useContext(ln),{hash:c,pathname:u,search:m}=ts(t,{relative:r}),h=u;return l!=="/"&&(h=u==="/"?l:Vn([l,u])),s.createHref({pathname:h,search:m,hash:c})}function zl(){return v.useContext(es)!=null}function Gn(){return ot(zl(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(es).location}var A0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function k0(t){v.useContext(ln).static||v.useLayoutEffect(t)}function j0(){let{isDataRoute:t}=v.useContext(vn);return t?Z2():U2()}function U2(){ot(zl(),"useNavigate() may be used only in the context of a <Router> component.");let t=v.useContext(Dl),{basename:r,navigator:l}=v.useContext(ln),{matches:s}=v.useContext(vn),{pathname:c}=Gn(),u=JSON.stringify(Af(s)),m=v.useRef(!1);return k0(()=>{m.current=!0}),v.useCallback((g,p={})=>{if(An(m.current,A0),!m.current)return;if(typeof g=="number"){l.go(g);return}let b=nc(g,JSON.parse(u),c,p.relative==="path");t==null&&r!=="/"&&(b.pathname=b.pathname==="/"?r:Vn([r,b.pathname])),(p.replace?l.replace:l.push)(b,p.state,p)},[r,l,u,c,t])}var _0=v.createContext(null);function E_(){return v.useContext(_0)}function B2(t){let r=v.useContext(vn).outlet;return v.useMemo(()=>r&&v.createElement(_0.Provider,{value:t},r),[r,t])}function N_(){let{matches:t}=v.useContext(vn),r=t[t.length-1];return r?r.params:{}}function ts(t,{relative:r}={}){let{matches:l}=v.useContext(vn),{pathname:s}=Gn(),c=JSON.stringify(Af(l));return v.useMemo(()=>nc(t,JSON.parse(c),s,r==="path"),[t,c,s,r])}function H2(t,r){return M0(t,r)}function M0(t,r,l){var C;ot(zl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=v.useContext(ln),{matches:c}=v.useContext(vn),u=c[c.length-1],m=u?u.params:{},h=u?u.pathname:"/",g=u?u.pathnameBase:"/",p=u&&u.route;{let R=p&&p.path||"";D0(h,!p||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${R}">) 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="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let b=Gn(),y;if(r){let R=typeof r=="string"?Ol(r):r;ot(g==="/"||((C=R.pathname)==null?void 0:C.startsWith(g)),`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 "${g}" but pathname "${R.pathname}" was given in the \`location\` prop.`),y=R}else y=b;let S=y.pathname||"/",T=S;if(g!=="/"){let R=g.replace(/^\//,"").split("/");T="/"+S.replace(/^\//,"").split("/").slice(R.length).join("/")}let E=x0(t,{pathname:T});An(p||E!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),An(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.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 N=Y2(E&&E.map(R=>Object.assign({},R,{params:Object.assign({},m,R.params),pathname:Vn([g,s.encodeLocation?s.encodeLocation(R.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?g:Vn([g,s.encodeLocation?s.encodeLocation(R.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),c,l);return r&&N?v.createElement(es.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},N):N}function $2(){let t=K2(),r=C2(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),l=t instanceof Error?t.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:",t),m=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:u},"ErrorBoundary")," or"," ",v.createElement("code",{style:u},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},r),l?v.createElement("pre",{style:c},l):null,m)}var P2=v.createElement($2,null),O0=class extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){this.props.onError?this.props.onError(t,r):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const l=z2(t.digest);l&&(t=l)}let r=t!==void 0?v.createElement(vn.Provider,{value:this.props.routeContext},v.createElement(kf.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?v.createElement(q2,{error:t},r):r}};O0.contextType=k2;var Od=new WeakMap;function q2({children:t,error:r}){let{basename:l}=v.useContext(ln);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let s=D2(r.digest);if(s){let c=Od.get(r);if(c)throw c;let u=N0(s.location,l);if(E0&&!Od.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 Od.set(r,m),m}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return t}function V2({routeContext:t,match:r,children:l}){let s=v.useContext(Dl);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),v.createElement(vn.Provider,{value:t},l)}function Y2(t,r=[],l){let s=l==null?void 0:l.state;if(t==null){if(!s)return null;if(s.errors)t=s.matches;else if(r.length===0&&!s.initialized&&s.matches.length>0)t=s.matches;else return null}let c=t,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);ot(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:T}=s,E=y.route.loader&&!S.hasOwnProperty(y.route.id)&&(!T||T[y.route.id]===void 0);if(y.route.lazy||E){l.isStatic&&(m=!0),h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}}let g=l==null?void 0:l.onError,p=s&&g?(b,y)=>{var S,T;g(b,{location:s.location,params:((T=(S=s.matches)==null?void 0:S[0])==null?void 0:T.params)??{},unstable_pattern:R2(s.matches),errorInfo:y})}:void 0;return c.reduceRight((b,y,S)=>{let T,E=!1,N=null,C=null;s&&(T=u&&y.route.id?u[y.route.id]:void 0,N=y.route.errorElement||P2,m&&(h<0&&S===0?(D0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,C=null):h===S&&(E=!0,C=y.route.hydrateFallbackElement||null)));let R=r.concat(c.slice(0,S+1)),k=()=>{let _;return T?_=N:E?_=C:y.route.Component?_=v.createElement(y.route.Component,null):y.route.element?_=y.route.element:_=b,v.createElement(V2,{match:y,routeContext:{outlet:b,matches:R,isDataRoute:s!=null},children:_})};return s&&(y.route.ErrorBoundary||y.route.errorElement||S===0)?v.createElement(O0,{location:s.location,revalidation:s.revalidation,component:N,error:T,children:k(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:p}):k()},null)}function jf(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function G2(t){let r=v.useContext(Dl);return ot(r,jf(t)),r}function I2(t){let r=v.useContext(ac);return ot(r,jf(t)),r}function X2(t){let r=v.useContext(vn);return ot(r,jf(t)),r}function _f(t){let r=X2(t),l=r.matches[r.matches.length-1];return ot(l.route.id,`${t} can only be used on routes that contain a unique "id"`),l.route.id}function Q2(){return _f("useRouteId")}function K2(){var s;let t=v.useContext(kf),r=I2("useRouteError"),l=_f("useRouteError");return t!==void 0?t:(s=r.errors)==null?void 0:s[l]}function Z2(){let{router:t}=G2("useNavigate"),r=_f("useNavigate"),l=v.useRef(!1);return k0(()=>{l.current=!0}),v.useCallback(async(c,u={})=>{An(l.current,A0),l.current&&(typeof c=="number"?await t.navigate(c):await t.navigate(c,{fromRouteId:r,...u}))},[t,r])}var mv={};function D0(t,r,l){!r&&!mv[t]&&(mv[t]=!0,An(!1,l))}v.memo(F2);function F2({routes:t,future:r,state:l,isStatic:s,onError:c}){return M0(t,void 0,{state:l,isStatic:s,onError:c})}function hv({to:t,replace:r,state:l,relative:s}){ot(zl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=v.useContext(ln);An(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=v.useContext(vn),{pathname:m}=Gn(),h=j0(),g=nc(t,Af(u),m,s==="path"),p=JSON.stringify(g);return v.useEffect(()=>{h(JSON.parse(p),{replace:r,state:l,relative:s})},[h,p,s,r,l]),null}function W2(t){return B2(t.context)}function Nr(t){ot(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function J2({basename:t="/",children:r=null,location:l,navigationType:s="POP",navigator:c,static:u=!1,unstable_useTransitions:m}){ot(!zl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=t.replace(/^\/*/,"/"),g=v.useMemo(()=>({basename:h,navigator:c,static:u,unstable_useTransitions:m,future:{}}),[h,c,u,m]);typeof l=="string"&&(l=Ol(l));let{pathname:p="/",search:b="",hash:y="",state:S=null,key:T="default",unstable_mask:E}=l,N=v.useMemo(()=>{let C=ma(p,h);return C==null?null:{location:{pathname:C,search:b,hash:y,state:S,key:T,unstable_mask:E},navigationType:s}},[h,p,b,y,S,T,s,E]);return An(N!=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.`),N==null?null:v.createElement(ln.Provider,{value:g},v.createElement(es.Provider,{children:r,value:N}))}function eE({children:t,location:r}){return H2(tf(t),r)}function tf(t,r=[]){let l=[];return v.Children.forEach(t,(s,c)=>{if(!v.isValidElement(s))return;let u=[...r,c];if(s.type===v.Fragment){l.push.apply(l,tf(s.props.children,u));return}ot(s.type===Nr,`[${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>`),ot(!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=tf(s.props.children,u)),l.push(m)}),l}var Ci="get",Ri="application/x-www-form-urlencoded";function rc(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function tE(t){return rc(t)&&t.tagName.toLowerCase()==="button"}function nE(t){return rc(t)&&t.tagName.toLowerCase()==="form"}function aE(t){return rc(t)&&t.tagName.toLowerCase()==="input"}function rE(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function lE(t,r){return t.button===0&&(!r||r==="_self")&&!rE(t)}var pi=null;function oE(){if(pi===null)try{new FormData(document.createElement("form"),0),pi=!1}catch{pi=!0}return pi}var sE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Dd(t){return t!=null&&!sE.has(t)?(An(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ri}"`),null):t}function iE(t,r){let l,s,c,u,m;if(nE(t)){let h=t.getAttribute("action");s=h?ma(h,r):null,l=t.getAttribute("method")||Ci,c=Dd(t.getAttribute("enctype"))||Ri,u=new FormData(t)}else if(tE(t)||aE(t)&&(t.type==="submit"||t.type==="image")){let h=t.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=t.getAttribute("formaction")||h.getAttribute("action");if(s=g?ma(g,r):null,l=t.getAttribute("formmethod")||h.getAttribute("method")||Ci,c=Dd(t.getAttribute("formenctype"))||Dd(h.getAttribute("enctype"))||Ri,u=new FormData(h,t),!oE()){let{name:p,type:b,value:y}=t;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(rc(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=Ci,s=null,c=Ri,m=t}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 Mf(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}function cE(t,r,l,s){let c=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return l?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${s}`:c.pathname=`${c.pathname}.${s}`:c.pathname==="/"?c.pathname=`_root.${s}`:r&&ma(c.pathname,r)==="/"?c.pathname=`${r.replace(/\/$/,"")}/_root.${s}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${s}`,c}async function uE(t,r){if(t.id in r)return r[t.id];try{let l=await import(t.module);return r[t.id]=l,l}catch(l){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function dE(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function fE(t,r,l){let s=await Promise.all(t.map(async c=>{let u=r.routes[c.route.id];if(u){let m=await uE(u,l);return m.links?m.links():[]}return[]}));return gE(s.flat(1).filter(dE).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function pv(t,r,l,s,c,u){let m=(g,p)=>l[p]?g.route.id!==l[p].route.id:!0,h=(g,p)=>{var b;return l[p].pathname!==g.pathname||((b=l[p].route.path)==null?void 0:b.endsWith("*"))&&l[p].params["*"]!==g.params["*"]};return u==="assets"?r.filter((g,p)=>m(g,p)||h(g,p)):u==="data"?r.filter((g,p)=>{var y;let b=s.routes[g.route.id];if(!b||!b.hasLoader)return!1;if(m(g,p)||h(g,p))return!0;if(g.route.shouldRevalidate){let S=g.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(t,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function mE(t,r,{includeHydrateFallback:l}={}){return hE(t.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 hE(t){return[...new Set(t)]}function pE(t){let r={},l=Object.keys(t).sort();for(let s of l)r[s]=t[s];return r}function gE(t,r){let l=new Set;return new Set(r),t.reduce((s,c)=>{let u=JSON.stringify(pE(c));return l.has(u)||(l.add(u),s.push({key:u,link:c})),s},[])}function z0(){let t=v.useContext(Dl);return Mf(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function vE(){let t=v.useContext(ac);return Mf(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Of=v.createContext(void 0);Of.displayName="FrameworkContext";function L0(){let t=v.useContext(Of);return Mf(t,"You must render this element inside a <HydratedRouter> element"),t}function yE(t,r){let l=v.useContext(Of),[s,c]=v.useState(!1),[u,m]=v.useState(!1),{onFocus:h,onBlur:g,onMouseEnter:p,onMouseLeave:b,onTouchStart:y}=r,S=v.useRef(null);v.useEffect(()=>{if(t==="render"&&m(!0),t==="viewport"){let N=R=>{R.forEach(k=>{m(k.isIntersecting)})},C=new IntersectionObserver(N,{threshold:.5});return S.current&&C.observe(S.current),()=>{C.disconnect()}}},[t]),v.useEffect(()=>{if(s){let N=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(N)}}},[s]);let T=()=>{c(!0)},E=()=>{c(!1),m(!1)};return l?t!=="intent"?[u,S,{}]:[u,S,{onFocus:Bo(h,T),onBlur:Bo(g,E),onMouseEnter:Bo(p,T),onMouseLeave:Bo(b,E),onTouchStart:Bo(y,T)}]:[!1,S,{}]}function Bo(t,r){return l=>{t&&t(l),l.defaultPrevented||r(l)}}function bE({page:t,...r}){let{router:l}=z0(),s=v.useMemo(()=>x0(l.routes,t,l.basename),[l.routes,t,l.basename]);return s?v.createElement(SE,{page:t,matches:s,...r}):null}function xE(t){let{manifest:r,routeModules:l}=L0(),[s,c]=v.useState([]);return v.useEffect(()=>{let u=!1;return fE(t,r,l).then(m=>{u||c(m)}),()=>{u=!0}},[t,r,l]),s}function SE({page:t,matches:r,...l}){let s=Gn(),{future:c,manifest:u,routeModules:m}=L0(),{basename:h}=z0(),{loaderData:g,matches:p}=vE(),b=v.useMemo(()=>pv(t,r,p,u,s,"data"),[t,r,p,u,s]),y=v.useMemo(()=>pv(t,r,p,u,s,"assets"),[t,r,p,u,s]),S=v.useMemo(()=>{if(t===s.pathname+s.search+s.hash)return[];let N=new Set,C=!1;if(r.forEach(k=>{var U;let _=u.routes[k.route.id];!_||!_.hasLoader||(!b.some(z=>z.route.id===k.route.id)&&k.route.id in g&&((U=m[k.route.id])!=null&&U.shouldRevalidate)||_.hasClientLoader?C=!0:N.add(k.route.id))}),N.size===0)return[];let R=cE(t,h,c.unstable_trailingSlashAwareDataRequests,"data");return C&&N.size>0&&R.searchParams.set("_routes",r.filter(k=>N.has(k.route.id)).map(k=>k.route.id).join(",")),[R.pathname+R.search]},[h,c.unstable_trailingSlashAwareDataRequests,g,s,u,b,r,t,m]),T=v.useMemo(()=>mE(y,u),[y,u]),E=xE(y);return v.createElement(v.Fragment,null,S.map(N=>v.createElement("link",{key:N,rel:"prefetch",as:"fetch",href:N,...l})),T.map(N=>v.createElement("link",{key:N,rel:"modulepreload",href:N,...l})),E.map(({key:N,link:C})=>v.createElement("link",{key:N,nonce:l.nonce,...C,crossOrigin:C.crossOrigin??l.crossOrigin})))}function wE(...t){return r=>{t.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 NE({basename:t,children:r,unstable_useTransitions:l,window:s}){let c=v.useRef();c.current==null&&(c.current=n2({window:s,v5Compat:!0}));let u=c.current,[m,h]=v.useState({action:u.action,location:u.location}),g=v.useCallback(p=>{l===!1?h(p):v.startTransition(()=>h(p))},[l]);return v.useLayoutEffect(()=>u.listen(g),[u,g]),v.createElement(J2,{basename:t,children:r,location:m.location,navigationType:m.action,navigator:u,unstable_useTransitions:l})}var U0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,B0=v.forwardRef(function({onClick:r,discover:l="render",prefetch:s="none",relative:c,reloadDocument:u,replace:m,unstable_mask:h,state:g,target:p,to:b,preventScrollReset:y,viewTransition:S,unstable_defaultShouldRevalidate:T,...E},N){let{basename:C,navigator:R,unstable_useTransitions:k}=v.useContext(ln),_=typeof b=="string"&&U0.test(b),U=N0(b,C);b=U.to;let z=L2(b,{relative:c}),G=Gn(),V=null;if(h){let J=nc(h,[],G.unstable_mask?G.unstable_mask.pathname:"/",!0);C!=="/"&&(J.pathname=J.pathname==="/"?C:Vn([C,J.pathname])),V=R.createHref(J)}let[$,le,de]=yE(s,E),fe=RE(b,{replace:m,unstable_mask:h,state:g,target:p,preventScrollReset:y,relative:c,viewTransition:S,unstable_defaultShouldRevalidate:T,unstable_useTransitions:k});function F(J){r&&r(J),J.defaultPrevented||fe(J)}let te=!(U.isExternal||u),ie=v.createElement("a",{...E,...de,href:(te?V:void 0)||U.absoluteURL||z,onClick:te?F:r,ref:wE(N,le),target:p,"data-discover":!_&&l==="render"?"true":void 0});return $&&!_?v.createElement(v.Fragment,null,ie,v.createElement(bE,{page:z})):ie});B0.displayName="Link";var nf=v.forwardRef(function({"aria-current":r="page",caseSensitive:l=!1,className:s="",end:c=!1,style:u,to:m,viewTransition:h,children:g,...p},b){let y=ts(m,{relative:p.relative}),S=Gn(),T=v.useContext(ac),{navigator:E,basename:N}=v.useContext(ln),C=T!=null&&ME(y)&&h===!0,R=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,k=S.pathname,_=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;l||(k=k.toLowerCase(),_=_?_.toLowerCase():null,R=R.toLowerCase()),_&&N&&(_=ma(_,N)||_);const U=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let z=k===R||!c&&k.startsWith(R)&&k.charAt(U)==="/",G=_!=null&&(_===R||!c&&_.startsWith(R)&&_.charAt(R.length)==="/"),V={isActive:z,isPending:G,isTransitioning:C},$=z?r:void 0,le;typeof s=="function"?le=s(V):le=[s,z?"active":null,G?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let de=typeof u=="function"?u(V):u;return v.createElement(B0,{...p,"aria-current":$,className:le,ref:b,style:de,to:m,viewTransition:h},typeof g=="function"?g(V):g)});nf.displayName="NavLink";var TE=v.forwardRef(({discover:t="render",fetcherKey:r,navigate:l,reloadDocument:s,replace:c,state:u,method:m=Ci,action:h,onSubmit:g,relative:p,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:S,...T},E)=>{let{unstable_useTransitions:N}=v.useContext(ln),C=jE(),R=_E(h,{relative:p}),k=m.toLowerCase()==="get"?"get":"post",_=typeof h=="string"&&U0.test(h),U=z=>{if(g&&g(z),z.defaultPrevented)return;z.preventDefault();let G=z.nativeEvent.submitter,V=(G==null?void 0:G.getAttribute("formmethod"))||m,$=()=>C(G||z.currentTarget,{fetcherKey:r,method:V,navigate:l,replace:c,state:u,relative:p,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:S});N&&l!==!1?v.startTransition(()=>$()):$()};return v.createElement("form",{ref:E,method:k,action:R,onSubmit:s?g:U,...T,"data-discover":!_&&t==="render"?"true":void 0})});TE.displayName="Form";function CE(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function H0(t){let r=v.useContext(Dl);return ot(r,CE(t)),r}function RE(t,{target:r,replace:l,unstable_mask:s,state:c,preventScrollReset:u,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:g,unstable_useTransitions:p}={}){let b=j0(),y=Gn(),S=ts(t,{relative:m});return v.useCallback(T=>{if(lE(T,r)){T.preventDefault();let E=l!==void 0?l:Zo(y)===Zo(S),N=()=>b(t,{replace:E,unstable_mask:s,state:c,preventScrollReset:u,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:g});p?v.startTransition(()=>N()):N()}},[y,b,S,l,s,c,r,t,u,m,h,g,p])}var AE=0,kE=()=>`__${String(++AE)}__`;function jE(){let{router:t}=H0("useSubmit"),{basename:r}=v.useContext(ln),l=Q2(),s=t.fetch,c=t.navigate;return v.useCallback(async(u,m={})=>{let{action:h,method:g,encType:p,formData:b,body:y}=iE(u,r);if(m.navigate===!1){let S=m.fetcherKey||kE();await s(S,l,m.action||h,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,body:y,formMethod:m.method||g,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||g,formEncType:m.encType||p,replace:m.replace,state:m.state,fromRouteId:l,flushSync:m.flushSync,viewTransition:m.viewTransition})},[s,c,r,l])}function _E(t,{relative:r}={}){let{basename:l}=v.useContext(ln),s=v.useContext(vn);ot(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),u={...ts(t||".",{relative:r})},m=Gn();if(t==null){u.search=m.search;let h=new URLSearchParams(u.search),g=h.getAll("index");if(g.some(b=>b==="")){h.delete("index"),g.filter(y=>y).forEach(y=>h.append("index",y));let b=h.toString();u.search=b?`?${b}`:""}}return(!t||t===".")&&c.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(u.pathname=u.pathname==="/"?l:Vn([l,u.pathname])),Zo(u)}function ME(t,{relative:r}={}){let l=v.useContext(C0);ot(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=H0("useViewTransitionState"),c=ts(t,{relative:r});if(!l.isTransitioning)return!1;let u=ma(l.currentLocation.pathname,s)||l.currentLocation.pathname,m=ma(l.nextLocation.pathname,s)||l.nextLocation.pathname;return Di(c.pathname,m)!=null||Di(c.pathname,u)!=null}var ns=y0();const $0=v0(ns),OE="/api";function DE(t){const r=new Headers(t==null?void 0:t.headers);return(t==null?void 0:t.body)!==void 0&&t.body!==null&&!r.has("Content-Type")&&r.set("Content-Type","application/json"),r}function zE(t,r){if(typeof t=="string"&&t)return t;if(t&&typeof t=="object"){const l=t,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 Se(t,r){const l=await fetch(`${OE}${t}`,{...r,headers:DE(r)});if(!l.ok){const s=await l.json().catch(()=>l.statusText);throw new Error(zE(s,`HTTP ${l.status}`))}return l.json()}function Ll(t,r){return Se(t,{...r,cache:"no-store"})}function P0(t){return Se(`/node-operations/${t}`)}async function q0(t={}){const r=new URLSearchParams;t.nodeId&&r.set("nodeId",t.nodeId),t.status&&r.set("status",t.status),t.kind&&r.set("kind",t.kind);const l=r.toString();return(await Se(`/node-operations${l?`?${l}`:""}`)).operations}function LE(t){return Se(`/nodes/${t}/copilot-tunnel/enable`,{method:"POST"})}function gv(t){return Se(`/nodes/${t}/copilot-tunnel/status`,{method:"POST"})}function UE(t){return Se(`/nodes/${t}/copilot-tunnel/disable`,{method:"POST"})}function BE(){return Se("/system/info")}function T_(t){return Se("/system/transport",{method:"POST",body:JSON.stringify({type:t})})}function V0(t){return Se("/system/runtime/restart",{method:"POST",body:JSON.stringify(t)})}function HE(){return Se("/system/runtime/stop",{method:"POST"})}function $E(){return Se("/cluster/state")}function C_(){return Se("/cluster/promote",{method:"POST"})}function R_(t){return Se("/cluster/connect",{method:"POST",body:JSON.stringify(t)})}function A_(){return Se("/cluster/disconnect",{method:"POST"})}function PE(t,r){return Se(`/nodes/${t}/agents/${r}/upgrade`,{method:"POST"})}function qE(t,r){return Se(`/nodes/${t}/runtime/restart`,{method:"POST",body:JSON.stringify(r)})}async function k_(){return(await Se("/devboxes")).devboxes}function j_(t,r){return Se(`/nodes/${t}/devbox/configure`,{method:"POST",body:JSON.stringify({devbox:r})})}function __(t){return Se(`/nodes/${t}/devbox/status`)}function M_(t){return Se(`/nodes/${t}/devbox/start`,{method:"POST"})}function O_(t,r){return Se(`/nodes/${t}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:r})})}function D_(t,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 Se(`/nodes/${t}/workdir/tree${s?`?${s}`:""}`)}function z_(t,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 Se(`/nodes/${t}/workdir/branch${s?`?${s}`:""}`)}function L_(t,r){const l=new URLSearchParams;return l.set("agent",r.agent),l.set("limit",String(Math.min(Math.max(1,r.limit),100))),Se(`/nodes/${t}/native-sessions?${l.toString()}`)}function U_(t,r){return Se(`/nodes/${t}/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 B_(t,r){return Se(`/nodes/${t}/terminal/sessions`,{method:"POST",body:JSON.stringify(r)})}function H_(t){return Se(`/nodes/${t}/terminal/sessions`)}function $_(t,r){return Se(`/nodes/${t}/terminal/sessions/${r}`)}function P_(t,r){return Se(`/nodes/${t}/terminal/sessions/${r}/stop`,{method:"POST"})}function Df(t,r){t.set("scope",r.kind),r.kind==="project"&&t.set("projectPath",r.projectPath)}function q_(t,r){var s;const l=new URLSearchParams;return Df(l,r.scope),(s=r.agents)!=null&&s.length&&l.set("agents",r.agents.join(",")),Se(`/nodes/${encodeURIComponent(t)}/capabilities?${l.toString()}`)}function V_(t,r,l){const s=new URLSearchParams;l&&Df(s,l);const c=s.toString();return Se(`/nodes/${encodeURIComponent(t)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`)}function Y_(t,r,l){const s=new URLSearchParams;l&&Df(s,l);const c=s.toString();return Se(`/nodes/${encodeURIComponent(t)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`,{method:"DELETE"})}function G_(t){return Se("/capabilities/conflict-check",{method:"POST",body:JSON.stringify(t)})}function I_(t){return Se("/capabilities/share",{method:"POST",body:JSON.stringify(t)})}async function X_(t){const r=new URLSearchParams;if(t!=null&&t.status&&r.set("status",t.status),t!=null&&t.assignedTo&&r.set("assignedTo",t.assignedTo),t!=null&&t.priority&&r.set("priority",t.priority),t!=null&&t.limit){const s=Math.min(Math.max(1,t.limit),100);r.set("limit",String(s))}if(t!=null&&t.offset&&r.set("offset",String(t.offset)),t!=null&&t.projectPath&&r.set("projectPath",t.projectPath),t!=null&&t.cursor&&r.set("cursor",t.cursor),(t==null?void 0:t.completedLimitPerProject)!==void 0){const s=Math.min(Math.max(1,t.completedLimitPerProject),100);r.set("completedLimitPerProject",String(s))}const l=r.toString();return Se(`/tasks${l?`?${l}`:""}`)}function Q_(t){return Se(`/tasks/${t}`)}function K_(t){return Se("/tasks",{method:"POST",body:JSON.stringify(t)})}function Z_(t){return Se("/tasks/import-session",{method:"POST",body:JSON.stringify(t)})}function F_(t){return Se("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:t})})}function W_(t){return Se("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:t})})}function J_(t){return Se(`/tasks/${t}/cancel`,{method:"POST"})}function eM(t){return Se(`/tasks/${t}/retry`,{method:"POST"})}function tM(t,r){return Se(`/tasks/${t}/logs`)}function nM(t,r){return Se(`/tasks/${t}/message`,{method:"POST",body:JSON.stringify({content:r})})}function aM(t,r){return Se(`/tasks/${t}/queued-messages/${encodeURIComponent(r)}`,{method:"DELETE"})}function rM(t,r){return Se(`/tasks/${t}/share`,{method:"POST",body:JSON.stringify(r)})}function lM(t){return Se(`/tasks/${t}/share`,{method:"DELETE"})}function oM(t){return Ll(`/shared/conversations/${encodeURIComponent(t)}`)}function sM(t,r){return Ll(`/shared/conversations/${encodeURIComponent(t)}/logs`)}function iM(t){return Ll(`/shared/conversations/${encodeURIComponent(t)}/output`)}function cM(t,r="."){return Ll(`/shared/conversations/${encodeURIComponent(t)}/output/tree?path=${encodeURIComponent(r)}`)}function uM(t,r){return Ll(`/shared/conversations/${encodeURIComponent(t)}/output/content?path=${encodeURIComponent(r)}`)}function dM(t,r){return Ll(`/shared/conversations/${encodeURIComponent(t)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(r?{path:r}:{})})}function Y0(t){return t?typeof t=="string"?{path:t}:{...t.path?{path:t.path}:{},...t.port!==void 0?{port:t.port}:{}}:{}}function fM(t){return Se(`/tasks/${t}/output`)}function mM(t,r="."){return Se(`/tasks/${t}/output/tree?path=${encodeURIComponent(r)}`)}function hM(t,r){return Se(`/tasks/${t}/output/content?path=${encodeURIComponent(r)}`)}function pM(t,r){return Se(`/tasks/${t}/output/preview-sessions`,{method:"POST",body:JSON.stringify(Y0(r))})}function gM(t,r){return Se(`/nodes/${t}/preview-sessions`,{method:"POST",body:JSON.stringify(Y0(r))})}function vM(t){return Se(`/tasks/${t}/output/diff`)}function VE({hasStarted:t,enabled:r}){return r&&!t}function YE(t,r,l=!0){const s=v.useRef(t),c=v.useRef(!1);v.useEffect(()=>{s.current=t},[t]),v.useEffect(()=>{if(!l)return;const u=()=>s.current();VE({hasStarted:c.current,enabled:l})&&(c.current=!0,u());const m=setInterval(u,r);return()=>clearInterval(m)},[r,l])}function GE(t){return t?t.replace(/\/+$/,""):""}function IE(t){const r=t??"/api";return r?r.startsWith("/")?r.replace(/\/+$/,""):`/${r.replace(/\/+$/,"")}`:""}function vv(...t){const r=new Headers;for(const l of t){if(!l)continue;new Headers(l).forEach((c,u)=>r.set(u,c))}return r}var XE=class extends Error{constructor(r,l){super(r);it(this,"status");it(this,"statusText");it(this,"code");it(this,"details");it(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 QE(t,r){if(typeof t=="string"&&t)return{message:t};if(t&&typeof t=="object"){const l=t,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 Ho(t,r){const l=r.toString();return l?`${t}?${l}`:t}function nn(t,r,l){l!==void 0&&t.set(r,String(l))}function yv(t){return t===null||Array.isArray(t)||typeof t=="object"&&t!==null&&!(t instanceof ArrayBuffer)}function KE(t){return t?typeof t=="string"?{path:t}:{...t.path?{path:t.path}:{},...t.port!==void 0?{port:t.port}:{}}:{}}var ZE=class{constructor(t={}){it(this,"baseUrl");it(this,"apiPrefix");it(this,"defaultHeaders");it(this,"credentials");it(this,"fetchImpl");it(this,"config");const r=t.fetchImpl??((l,s)=>globalThis.fetch(l,s));if(!r)throw new Error("MeshyClient requires a fetch implementation");this.fetchImpl=r,this.baseUrl=GE(t.baseUrl),this.apiPrefix=IE(t.apiPrefix),this.defaultHeaders=vv(t.defaultHeaders),this.credentials=t.credentials,this.config=t}buildApiUrl(t){const r=t.startsWith("/")?t:`/${t}`;return`${this.baseUrl}${this.apiPrefix}${r}`}buildApiurl(t){return this.buildApiUrl(t)}async request(t,r={}){var b,y,S,T;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((T=(S=this.config).headersProvider)==null?void 0:T.call(S)),h=r.credentials??this.config.credentials,g=vv({Accept:"application/json"},yv(r.body)?{"Content-Type":"application/json"}:void 0,this.config.defaultHeaders,m,u?{Authorization:`Bearer ${u}`}:void 0,r.headers),p=yv(r.body)?JSON.stringify(r.body):r.body;try{const E=await this.fetchImpl(this.buildApiUrl(t),{...r,headers:g,body:p,credentials:h,signal:r.signal??(s==null?void 0:s.signal)});if(!E.ok){const N=await E.json().catch(()=>E.statusText),C=QE(N,`HTTP ${E.status}`);throw new XE(C.message,{status:E.status,statusText:E.statusText,code:C.code,details:C.details,body:N})}return E.status===204?void 0:await E.json()}finally{c&&clearTimeout(c)}}getSystemInfo(){return this.request("/system/info")}getSystemMetrics(){return this.request("/system/metrics")}switchTransport(t){return this.request("/system/transport",{method:"POST",body:{type:t}})}restartRuntime(t){return this.request("/system/runtime/restart",{method:"POST",body:t})}stopRuntime(){return this.request("/system/runtime/stop",{method:"POST"})}getClusterState(){return this.request("/cluster/state")}promoteToLeader(){return this.request("/cluster/promote",{method:"POST"})}joinCluster(t){return this.request("/cluster/join",{method:"POST",body:t})}connectToCluster(t){return this.request("/cluster/connect",{method:"POST",body:t})}disconnectFromCluster(){return this.request("/cluster/disconnect",{method:"POST"})}async getNodes(t={}){const r=new URLSearchParams;return nn(r,"status",t.status),nn(r,"capability",t.capability),(await this.request(Ho("/nodes",r))).nodes}getNode(t){return this.request(`/nodes/${encodeURIComponent(t)}`)}getNodeStatus(t){return this.request(`/nodes/${encodeURIComponent(t)}/status`)}removeNode(t){return this.request(`/nodes/${encodeURIComponent(t)}`,{method:"DELETE"})}leaveCluster(t){return this.request("/cluster/leave",{method:"POST",body:{nodeId:t}})}updateNode(t,r){return this.request(`/nodes/${encodeURIComponent(t)}`,{method:"PATCH",body:r})}toggleNodeDevTunnel(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/devtunnel`,{method:"POST",body:{enabled:r}})}getNodeOperation(t){return this.request(`/node-operations/${encodeURIComponent(t)}`)}async listNodeOperations(t={}){const r=new URLSearchParams;return nn(r,"nodeId",t.nodeId),nn(r,"status",t.status),nn(r,"kind",t.kind),(await this.request(Ho("/node-operations",r))).operations}upgradeNodeAgent(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/agents/${r}/upgrade`,{method:"POST"})}restartNodeRuntime(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/runtime/restart`,{method:"POST",body:r})}getNodeWorkDirTree(t,r={}){const l=new URLSearchParams;return nn(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))),nn(l,"directoriesOnly",r.directoriesOnly),nn(l,"allowAbsolute",r.allowAbsolute),this.request(Ho(`/nodes/${encodeURIComponent(t)}/workdir/tree`,l))}getNodeWorkDirBranchInfo(t,r={}){const l=new URLSearchParams;return nn(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))),nn(l,"allowAbsolute",r.allowAbsolute),this.request(Ho(`/nodes/${encodeURIComponent(t)}/workdir/branch`,l))}createNodeWorkDirBranch(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/workdir/branch`,{method:"POST",body:r})}getNodeNativeSessions(t,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(t)}/native-sessions?${l.toString()}`)}startNodeTerminalSession(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/terminal/sessions`,{method:"POST",body:r})}listNodeTerminalSessions(t){return this.request(`/nodes/${encodeURIComponent(t)}/terminal/sessions`)}getNodeTerminalSession(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/terminal/sessions/${encodeURIComponent(r)}`)}stopNodeTerminalSession(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/terminal/sessions/${encodeURIComponent(r)}/stop`,{method:"POST"})}async getTasks(t={}){const r=new URLSearchParams;return nn(r,"status",t.status),nn(r,"assignedTo",t.assignedTo),nn(r,"priority",t.priority),t.limit&&r.set("limit",String(Math.min(Math.max(1,t.limit),100))),t.offset&&r.set("offset",String(t.offset)),(await this.request(Ho("/tasks",r))).tasks}getTask(t){return this.request(`/tasks/${encodeURIComponent(t)}`)}createTask(t){return this.request("/tasks",{method:"POST",body:t})}attachNativeSession(t){return this.request("/tasks/import-session",{method:"POST",body:t})}deleteTask(t){return this.request(`/tasks/${encodeURIComponent(t)}`,{method:"DELETE"})}batchDeleteTasks(t){return this.request("/tasks/batch/delete",{method:"POST",body:{ids:t}})}batchArchiveTasks(t){return this.request("/tasks/batch/archive",{method:"POST",body:{ids:t}})}archiveTask(t){return this.request(`/tasks/${encodeURIComponent(t)}`,{method:"PATCH",body:{status:"archived"}})}cancelTask(t){return this.request(`/tasks/${encodeURIComponent(t)}/cancel`,{method:"POST"})}retryTask(t){return this.request(`/tasks/${encodeURIComponent(t)}/retry`,{method:"POST"})}assignTask(t,r){return this.request(`/tasks/${encodeURIComponent(t)}/assign`,{method:"POST",body:{nodeId:r}})}getTaskLogs(t,r){return this.request(`/tasks/${encodeURIComponent(t)}/logs${r!==void 0?`?after=${r}`:""}`)}sendTaskMessage(t,r){return this.request(`/tasks/${encodeURIComponent(t)}/message`,{method:"POST",body:{content:r}})}createTaskShare(t,r){return this.request(`/tasks/${encodeURIComponent(t)}/share`,{method:"POST",body:r})}deleteTaskShare(t){return this.request(`/tasks/${encodeURIComponent(t)}/share`,{method:"DELETE"})}getSharedConversation(t){return this.request(`/shared/conversations/${encodeURIComponent(t)}`)}getSharedConversationLogs(t,r){return this.request(`/shared/conversations/${encodeURIComponent(t)}/logs${r!==void 0?`?after=${r}`:""}`)}getSharedTaskOutput(t){return this.request(`/shared/conversations/${encodeURIComponent(t)}/output`)}getSharedTaskOutputTree(t,r="."){return this.request(`/shared/conversations/${encodeURIComponent(t)}/output/tree?path=${encodeURIComponent(r)}`)}getSharedTaskOutputContent(t,r){return this.request(`/shared/conversations/${encodeURIComponent(t)}/output/content?path=${encodeURIComponent(r)}`)}createSharedTaskPreviewSession(t,r){return this.request(`/shared/conversations/${encodeURIComponent(t)}/output/preview-sessions`,{method:"POST",body:r?{path:r}:{}})}getTaskOutput(t){return this.request(`/tasks/${encodeURIComponent(t)}/output`)}getTaskOutputTree(t,r="."){return this.request(`/tasks/${encodeURIComponent(t)}/output/tree?path=${encodeURIComponent(r)}`)}getTaskOutputContent(t,r){return this.request(`/tasks/${encodeURIComponent(t)}/output/content?path=${encodeURIComponent(r)}`)}createTaskPreviewSession(t,r){return this.request(`/tasks/${encodeURIComponent(t)}/output/preview-sessions`,{method:"POST",body:KE(r)})}getTaskOutputDiff(t){return this.request(`/tasks/${encodeURIComponent(t)}/output/diff`)}},FE=new ZE,WE=["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"],JE=0,eN=class{constructor(t){it(this,"client");it(this,"eventTypes");it(this,"eventSourceFactory");it(this,"pollIntervalMs");it(this,"poll");it(this,"eventSource",null);it(this,"pollTimer",null);it(this,"listeners",new Map);it(this,"connectionListeners",new Map);it(this,"listenerId",0);it(this,"connected",!1);this.client=t.client,this.eventTypes=t.eventTypes??WE,this.eventSourceFactory=t.eventSourceFactory??(tN(t.client)?void 0:aN()),this.pollIntervalMs=t.pollIntervalMs??1e4,this.poll=t.poll}start(){if(!(this.eventSource||this.pollTimer)){if(this.eventSourceFactory){const t=new this.eventSourceFactory(nN(this.client,"/events"),this.client.credentials==="include"?{withCredentials:!0}:void 0);this.eventSource=t,t.onopen=()=>this.setConnected(!0),t.onerror=()=>{this.setConnected(!1),this.startPolling()};for(const r of this.eventTypes)t.addEventListener(r,l=>this.emit({id:String(++JE),type:r,data:JSON.parse(l.data),timestamp:Date.now()}));return}this.startPolling()}}stop(){var t;(t=this.eventSource)==null||t.close(),this.eventSource=null,this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null),this.setConnected(!1)}subscribe(t,r){const l=++this.listenerId;return this.listeners.set(l,{pattern:t,callback:r}),()=>this.listeners.delete(l)}onConnectionChange(t){const r=++this.listenerId;return this.connectionListeners.set(r,t),t(this.connected),()=>this.connectionListeners.delete(r)}isConnected(){return this.connected}emit(t){for(const{pattern:r,callback:l}of this.listeners.values())t.type.startsWith(r)&&l(t)}setConnected(t){if(this.connected!==t){this.connected=t;for(const r of this.connectionListeners.values())r(t)}}startPolling(){!this.poll||this.pollTimer||(this.pollTimer=setInterval(()=>{var t;(t=this.poll)==null||t.call(this).then(()=>this.setConnected(!0)).catch(()=>{this.setConnected(!1)})},this.pollIntervalMs))}};function tN(t){return t.defaultHeaders.has("x-tunnel-authorization")}function nN(t,r){const l=t.buildApiUrl??t.buildApiurl;if(!l)throw new Error("MeshyClient is missing buildApiUrl");return l.call(t,r)}function aN(){return globalThis.EventSource}function rN(t=50){const[r,l]=v.useState([]),[s,c]=v.useState(!1),u=v.useRef(null),m=v.useRef(0),h=v.useRef(new Map);v.useEffect(()=>{const b=new eN({client:FE});u.current=b;const y=b.subscribe("",T=>{const E=T;l(N=>[E,...N].slice(0,t));for(const[,{pattern:N,callback:C}]of h.current)E.type.startsWith(N)&&C(E)}),S=b.onConnectionChange(c);return b.start(),()=>{y(),S(),b.stop(),u.current=null}},[t]);const g=v.useCallback((b,y)=>{const S=++m.current;return h.current.set(S,{pattern:b,callback:y}),()=>{h.current.delete(S)}},[]),p=v.useCallback(()=>l([]),[]);return{events:r,connected:s,subscribe:g,clearEvents:p}}const lN=1e4,oN=6e4,sN=lN,iN=250,cN=new Set(["node.joined","node.left","task.created","task.assigned","task.deleted"]),uN=new Set(["task.created","task.assigned","task.status","task.deleted"]);function dN(t){return t?oN:sN}function yM(t){return cN.has(t)}function fN(t){return uN.has(t)}function mN(t,r){if(!r)return!0;const l=t.leaderId,s=t.term,c=t.nodeCount;return typeof l!="string"&&l!==null||typeof s!="number"||typeof c!="number"?!0:r.leaderId!==l||r.term!==s||r.nodeCount!==c}function hN(t,r,l){if(t==="node.joined"||t==="node.left"||t!=="node.status")return!0;const s=r.nodeId,c=r.status;return typeof s!="string"||typeof c!="string"?!0:l.get(s)!==c}function bM(t,r){const l=r.taskId,s=r.status;if(typeof l!="string"||typeof s!="string")return t;let c=!1;const u=t.map(m=>{if(m.id!==l)return m;c=!0;const h="result"in r?r.result:s==="completed"?null:m.result,g="error"in r?r.error:s==="completed"?null:m.error;return{...m,status:s,result:h,error:g}});return c?u:t}function xM(t,r){const l=r.taskId;if(typeof l!="string")return t;const s=t.filter(c=>c.id!==l);return s.length===t.length?t:s}const G0=v.createContext(null);function pN({children:t}){const[r,l]=v.useState(null),[s,c]=v.useState(null),[u,m]=v.useState(!0),[h,g]=v.useState(null),p=v.useRef(null),b=v.useRef(null),y=v.useRef(new Map),{events:S,connected:T,subscribe:E}=rN(),N=v.useCallback(async()=>{var R;try{const[k,_]=await Promise.all([$E(),BE()]),U=k,z=_.nodeId??_.id,G=U.nodes??[],V=G.find(de=>de.id===z)??{id:z,name:_.name,endpoint:_.endpoint,role:_.role,status:_.status,capabilities:_.capabilities,joinedAt:_.joinedAt,lastHeartbeat:_.lastHeartbeat},$=U.leaderId?G.find(de=>de.id===U.leaderId)??null:null,le={leader:$?{id:$.id,name:$.name,endpoint:$.endpoint,...$.dashboardOrigin?{dashboardOrigin:$.dashboardOrigin}:{}}:null,term:U.term??0,nodes:G,self:V,taskSummary:U.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}};b.current={leaderId:((R=le.leader)==null?void 0:R.id)??null,term:le.term,nodeCount:le.nodes.length},y.current=new Map(le.nodes.map(de=>[de.id,de.status])),y.current.set(le.self.id,le.self.status),l(le),c(_),g(null)}catch(k){g(k instanceof Error?k.message:"Failed to fetch cluster state")}finally{m(!1)}},[]),C=v.useCallback(()=>{p.current===null&&(p.current=window.setTimeout(()=>{p.current=null,N()},iN))},[N]);return YE(N,dN(T)),v.useEffect(()=>()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},[]),v.useEffect(()=>{const R=[E("cluster",k=>{mN(k.data,b.current)&&C()}),E("election",C),E("node",k=>{hN(k.type,k.data,y.current)&&C()}),E("transport",C),E("task",k=>{fN(k.type)&&C()})];return()=>R.forEach(k=>k())},[E,C]),f.jsx(G0.Provider,{value:{cluster:r,systemInfo:s,events:S,sseConnected:T,subscribe:E,refresh:N,loading:u,error:h},children:t})}function I0(){const t=v.useContext(G0);if(!t)throw new Error("useCluster must be used within ClusterProvider");return t}/**
|
|
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 X0=(...t)=>t.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 gN=t=>t.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 vN=t=>t.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 bv=t=>{const r=vN(t);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 zd={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 yN=t=>{for(const r in t)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},bN=v.createContext({}),xN=()=>v.useContext(bN),SN=v.forwardRef(({color:t,size:r,strokeWidth:l,absoluteStrokeWidth:s,className:c="",children:u,iconNode:m,...h},g)=>{const{size:p=24,strokeWidth:b=2,absoluteStrokeWidth:y=!1,color:S="currentColor",className:T=""}=xN()??{},E=s??y?Number(l??b)*24/Number(r??p):l??b;return v.createElement("svg",{ref:g,...zd,width:r??p??zd.width,height:r??p??zd.height,stroke:t??S,strokeWidth:E,className:X0("lucide",T,c),...!u&&!yN(h)&&{"aria-hidden":"true"},...h},[...m.map(([N,C])=>v.createElement(N,C)),...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 Ae=(t,r)=>{const l=v.forwardRef(({className:s,...c},u)=>v.createElement(SN,{ref:u,iconNode:r,className:X0(`lucide-${gN(bv(t))}`,`lucide-${t}`,s),...c}));return l.displayName=bv(t),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 wN=[["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"}]],zi=Ae("activity",wN);/**
|
|
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 EN=[["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"}]],NN=Ae("book-open",EN);/**
|
|
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 TN=[["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"}]],Q0=Ae("bot",TN);/**
|
|
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 CN=[["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"}]],K0=Ae("cable",CN);/**
|
|
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 RN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Li=Ae("check",RN);/**
|
|
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 AN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Fo=Ae("chevron-down",AN);/**
|
|
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 kN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],af=Ae("chevron-right",kN);/**
|
|
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 jN=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],_N=Ae("chevron-up",jN);/**
|
|
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 MN=[["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"}]],gi=Ae("circle-alert",MN);/**
|
|
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 ON=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Cl=Ae("circle-check",ON);/**
|
|
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 DN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],xv=Ae("circle-dot",DN);/**
|
|
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 zN=[["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"}]],rf=Ae("circle-x",zN);/**
|
|
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 LN=[["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"}]],Z0=Ae("copy",LN);/**
|
|
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 UN=[["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"}]],BN=Ae("cpu",UN);/**
|
|
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 HN=[["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"}]],F0=Ae("external-link",HN);/**
|
|
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 $N=[["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"}]],PN=Ae("folder-tree",$N);/**
|
|
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 qN=[["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"}]],VN=Ae("folder",qN);/**
|
|
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 YN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],GN=Ae("info",YN);/**
|
|
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 IN=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],XN=Ae("key-round",IN);/**
|
|
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 QN=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],W0=Ae("loader-circle",QN);/**
|
|
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 KN=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],J0=Ae("message-square-text",KN);/**
|
|
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 ZN=[["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"}]],FN=Ae("monitor-cog",ZN);/**
|
|
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 WN=[["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"}]],ey=Ae("monitor",WN);/**
|
|
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 JN=[["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"}]],ty=Ae("moon",JN);/**
|
|
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 eT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],tT=Ae("plus",eT);/**
|
|
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 nT=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],aT=Ae("power",nT);/**
|
|
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 rT=[["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"}]],lT=Ae("radio",rT);/**
|
|
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 oT=[["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"}]],Ai=Ae("refresh-cw",oT);/**
|
|
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 sT=[["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"}]],Sv=Ae("rocket",sT);/**
|
|
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 iT=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],cT=Ae("save",iT);/**
|
|
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 uT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],dT=Ae("search",uT);/**
|
|
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 fT=[["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"}]],ny=Ae("server",fT);/**
|
|
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 mT=[["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"}]],hT=Ae("settings",mT);/**
|
|
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 pT=[["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"}]],gT=Ae("shield",pT);/**
|
|
267
|
-
* @license lucide-react v1.7.0 - ISC
|
|
268
|
-
*
|
|
269
|
-
* This source code is licensed under the ISC license.
|
|
270
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
-
*/const vT=[["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"}]],yT=Ae("sparkles",vT);/**
|
|
272
|
-
* @license lucide-react v1.7.0 - ISC
|
|
273
|
-
*
|
|
274
|
-
* This source code is licensed under the ISC license.
|
|
275
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
-
*/const bT=[["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"}]],ay=Ae("sun",bT);/**
|
|
277
|
-
* @license lucide-react v1.7.0 - ISC
|
|
278
|
-
*
|
|
279
|
-
* This source code is licensed under the ISC license.
|
|
280
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
-
*/const xT=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],ry=Ae("terminal",xT);/**
|
|
282
|
-
* @license lucide-react v1.7.0 - ISC
|
|
283
|
-
*
|
|
284
|
-
* This source code is licensed under the ISC license.
|
|
285
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
-
*/const ST=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],wT=Ae("trash-2",ST);/**
|
|
287
|
-
* @license lucide-react v1.7.0 - ISC
|
|
288
|
-
*
|
|
289
|
-
* This source code is licensed under the ISC license.
|
|
290
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
-
*/const ET=[["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"}]],NT=Ae("wifi-off",ET);/**
|
|
292
|
-
* @license lucide-react v1.7.0 - ISC
|
|
293
|
-
*
|
|
294
|
-
* This source code is licensed under the ISC license.
|
|
295
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
-
*/const TT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ly=Ae("x",TT);function oy(t){var r,l,s="";if(typeof t=="string"||typeof t=="number")s+=t;else if(typeof t=="object")if(Array.isArray(t)){var c=t.length;for(r=0;r<c;r++)t[r]&&(l=oy(t[r]))&&(s&&(s+=" "),s+=l)}else for(l in t)t[l]&&(s&&(s+=" "),s+=l);return s}function sy(){for(var t,r,l=0,s="",c=arguments.length;l<c;l++)(t=arguments[l])&&(r=oy(t))&&(s&&(s+=" "),s+=r);return s}const CT=(t,r)=>{const l=new Array(t.length+r.length);for(let s=0;s<t.length;s++)l[s]=t[s];for(let s=0;s<r.length;s++)l[t.length+s]=r[s];return l},RT=(t,r)=>({classGroupId:t,validator:r}),iy=(t=new Map,r=null,l)=>({nextPart:t,validators:r,classGroupId:l}),Ui="-",wv=[],AT="arbitrary..",kT=t=>{const r=_T(t),{conflictingClassGroups:l,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return jT(m);const h=m.split(Ui),g=h[0]===""&&h.length>1?1:0;return cy(h,g,r)},getConflictingClassGroupIds:(m,h)=>{if(h){const g=s[m],p=l[m];return g?p?CT(p,g):g:p||wv}return l[m]||wv}}},cy=(t,r,l)=>{if(t.length-r===0)return l.classGroupId;const c=t[r],u=l.nextPart.get(c);if(u){const p=cy(t,r+1,u);if(p)return p}const m=l.validators;if(m===null)return;const h=r===0?t.join(Ui):t.slice(r).join(Ui),g=m.length;for(let p=0;p<g;p++){const b=m[p];if(b.validator(h))return b.classGroupId}},jT=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=t.slice(1,-1),l=r.indexOf(":"),s=r.slice(0,l);return s?AT+s:void 0})(),_T=t=>{const{theme:r,classGroups:l}=t;return MT(l,r)},MT=(t,r)=>{const l=iy();for(const s in t){const c=t[s];zf(c,l,s,r)}return l},zf=(t,r,l,s)=>{const c=t.length;for(let u=0;u<c;u++){const m=t[u];OT(m,r,l,s)}},OT=(t,r,l,s)=>{if(typeof t=="string"){DT(t,r,l);return}if(typeof t=="function"){zT(t,r,l,s);return}LT(t,r,l,s)},DT=(t,r,l)=>{const s=t===""?r:uy(r,t);s.classGroupId=l},zT=(t,r,l,s)=>{if(UT(t)){zf(t(s),r,l,s);return}r.validators===null&&(r.validators=[]),r.validators.push(RT(l,t))},LT=(t,r,l,s)=>{const c=Object.entries(t),u=c.length;for(let m=0;m<u;m++){const[h,g]=c[m];zf(g,uy(r,h),l,s)}},uy=(t,r)=>{let l=t;const s=r.split(Ui),c=s.length;for(let u=0;u<c;u++){const m=s[u];let h=l.nextPart.get(m);h||(h=iy(),l.nextPart.set(m,h)),l=h}return l},UT=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,BT=t=>{if(t<1)return{get:()=>{},set:()=>{}};let r=0,l=Object.create(null),s=Object.create(null);const c=(u,m)=>{l[u]=m,r++,r>t&&(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)}}},lf="!",Ev=":",HT=[],Nv=(t,r,l,s,c)=>({modifiers:t,hasImportantModifier:r,baseClassName:l,maybePostfixModifierPosition:s,isExternal:c}),$T=t=>{const{prefix:r,experimentalParseClassName:l}=t;let s=c=>{const u=[];let m=0,h=0,g=0,p;const b=c.length;for(let N=0;N<b;N++){const C=c[N];if(m===0&&h===0){if(C===Ev){u.push(c.slice(g,N)),g=N+1;continue}if(C==="/"){p=N;continue}}C==="["?m++:C==="]"?m--:C==="("?h++:C===")"&&h--}const y=u.length===0?c:c.slice(g);let S=y,T=!1;y.endsWith(lf)?(S=y.slice(0,-1),T=!0):y.startsWith(lf)&&(S=y.slice(1),T=!0);const E=p&&p>g?p-g:void 0;return Nv(u,T,S,E)};if(r){const c=r+Ev,u=s;s=m=>m.startsWith(c)?u(m.slice(c.length)):Nv(HT,!1,m,void 0,!0)}if(l){const c=s;s=u=>l({className:u,parseClassName:c})}return s},PT=t=>{const r=new Map;return t.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]==="[",g=r.has(m);h||g?(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}},qT=t=>({cache:BT(t.cacheSize),parseClassName:$T(t),sortModifiers:PT(t),...kT(t)}),VT=/\s+/,YT=(t,r)=>{const{parseClassName:l,getClassGroupId:s,getConflictingClassGroupIds:c,sortModifiers:u}=r,m=[],h=t.trim().split(VT);let g="";for(let p=h.length-1;p>=0;p-=1){const b=h[p],{isExternal:y,modifiers:S,hasImportantModifier:T,baseClassName:E,maybePostfixModifierPosition:N}=l(b);if(y){g=b+(g.length>0?" "+g:g);continue}let C=!!N,R=s(C?E.substring(0,N):E);if(!R){if(!C){g=b+(g.length>0?" "+g:g);continue}if(R=s(E),!R){g=b+(g.length>0?" "+g:g);continue}C=!1}const k=S.length===0?"":S.length===1?S[0]:u(S).join(":"),_=T?k+lf:k,U=_+R;if(m.indexOf(U)>-1)continue;m.push(U);const z=c(R,C);for(let G=0;G<z.length;++G){const V=z[G];m.push(_+V)}g=b+(g.length>0?" "+g:g)}return g},GT=(...t)=>{let r=0,l,s,c="";for(;r<t.length;)(l=t[r++])&&(s=dy(l))&&(c&&(c+=" "),c+=s);return c},dy=t=>{if(typeof t=="string")return t;let r,l="";for(let s=0;s<t.length;s++)t[s]&&(r=dy(t[s]))&&(l&&(l+=" "),l+=r);return l},IT=(t,...r)=>{let l,s,c,u;const m=g=>{const p=r.reduce((b,y)=>y(b),t());return l=qT(p),s=l.cache.get,c=l.cache.set,u=h,h(g)},h=g=>{const p=s(g);if(p)return p;const b=YT(g,l);return c(g,b),b};return u=m,(...g)=>u(GT(...g))},XT=[],Et=t=>{const r=l=>l[t]||XT;return r.isThemeGetter=!0,r},fy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,my=/^\((?:(\w[\w-]*):)?(.+)\)$/i,QT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,KT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,FT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,WT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,JT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ya=t=>QT.test(t),je=t=>!!t&&!Number.isNaN(Number(t)),Ga=t=>!!t&&Number.isInteger(Number(t)),Ld=t=>t.endsWith("%")&&je(t.slice(0,-1)),fa=t=>KT.test(t),hy=()=>!0,eC=t=>ZT.test(t)&&!FT.test(t),Lf=()=>!1,tC=t=>WT.test(t),nC=t=>JT.test(t),aC=t=>!ge(t)&&!ve(t),rC=t=>Wa(t,vy,Lf),ge=t=>fy.test(t),Sr=t=>Wa(t,yy,eC),Tv=t=>Wa(t,fC,je),lC=t=>Wa(t,xy,hy),oC=t=>Wa(t,by,Lf),Cv=t=>Wa(t,py,Lf),sC=t=>Wa(t,gy,nC),vi=t=>Wa(t,Sy,tC),ve=t=>my.test(t),$o=t=>jr(t,yy),iC=t=>jr(t,by),Rv=t=>jr(t,py),cC=t=>jr(t,vy),uC=t=>jr(t,gy),yi=t=>jr(t,Sy,!0),dC=t=>jr(t,xy,!0),Wa=(t,r,l)=>{const s=fy.exec(t);return s?s[1]?r(s[1]):l(s[2]):!1},jr=(t,r,l=!1)=>{const s=my.exec(t);return s?s[1]?r(s[1]):l:!1},py=t=>t==="position"||t==="percentage",gy=t=>t==="image"||t==="url",vy=t=>t==="length"||t==="size"||t==="bg-size",yy=t=>t==="length",fC=t=>t==="number",by=t=>t==="family-name",xy=t=>t==="number"||t==="weight",Sy=t=>t==="shadow",mC=()=>{const t=Et("color"),r=Et("font"),l=Et("text"),s=Et("font-weight"),c=Et("tracking"),u=Et("leading"),m=Et("breakpoint"),h=Et("container"),g=Et("spacing"),p=Et("radius"),b=Et("shadow"),y=Et("inset-shadow"),S=Et("text-shadow"),T=Et("drop-shadow"),E=Et("blur"),N=Et("perspective"),C=Et("aspect"),R=Et("ease"),k=Et("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...U(),ve,ge],G=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],$=()=>[ve,ge,g],le=()=>[Ya,"full","auto",...$()],de=()=>[Ga,"none","subgrid",ve,ge],fe=()=>["auto",{span:["full",Ga,ve,ge]},Ga,ve,ge],F=()=>[Ga,"auto",ve,ge],te=()=>["auto","min","max","fr",ve,ge],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...$()],q=()=>[Ya,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],K=()=>[Ya,"screen","full","dvw","lvw","svw","min","max","fit",...$()],me=()=>[Ya,"screen","full","lh","dvh","lvh","svh","min","max","fit",...$()],A=()=>[t,ve,ge],Y=()=>[...U(),Rv,Cv,{position:[ve,ge]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",cC,rC,{size:[ve,ge]}],ne=()=>[Ld,$o,Sr],W=()=>["","none","full",p,ve,ge],ee=()=>["",je,$o,Sr],ue=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>[je,Ld,Rv,Cv],we=()=>["","none",E,ve,ge],ye=()=>["none",je,ve,ge],Ee=()=>["none",je,ve,ge],He=()=>[je,ve,ge],Ye=()=>[Ya,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fa],breakpoint:[fa],color:[hy],container:[fa],"drop-shadow":[fa],ease:["in","out","in-out"],font:[aC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fa],shadow:[fa],spacing:["px",je],text:[fa],"text-shadow":[fa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ya,ge,ve,C]}],container:["container"],columns:[{columns:[je,ge,ve,h]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:le()}],"inset-x":[{"inset-x":le()}],"inset-y":[{"inset-y":le()}],start:[{"inset-s":le(),start:le()}],end:[{"inset-e":le(),end:le()}],"inset-bs":[{"inset-bs":le()}],"inset-be":[{"inset-be":le()}],top:[{top:le()}],right:[{right:le()}],bottom:[{bottom:le()}],left:[{left:le()}],visibility:["visible","invisible","collapse"],z:[{z:[Ga,"auto",ve,ge]}],basis:[{basis:[Ya,"full","auto",h,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,Ya,"auto","initial","none",ge]}],grow:[{grow:["",je,ve,ge]}],shrink:[{shrink:["",je,ve,ge]}],order:[{order:[Ga,"first","last","none",ve,ge]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pbs:[{pbs:$()}],pbe:[{pbe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],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":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...K()]}],"min-inline-size":[{"min-inline":["auto",...K()]}],"max-inline-size":[{"max-inline":["none",...K()]}],"block-size":[{block:["auto",...me()]}],"min-block-size":[{"min-block":["auto",...me()]}],"max-block-size":[{"max-block":["none",...me()]}],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,$o,Sr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,dC,lC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ld,ge]}],"font-family":[{font:[iC,oC,r]}],"font-features":[{"font-features":[ge]}],"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,ve,ge]}],"line-clamp":[{"line-clamp":[je,"none",ve,Tv]}],leading:[{leading:[u,...$()]}],"list-image":[{"list-image":["none",ve,ge]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,ge]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",ve,Sr]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[je,"auto",ve,ge]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,ge]}],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",ve,ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Y()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ga,ve,ge],radial:["",ve,ge],conic:[Ga,ve,ge]},uC,sC]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-bs":[{"border-bs":ee()}],"border-w-be":[{"border-be":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,ve,ge]}],"outline-w":[{outline:["",je,$o,Sr]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",b,yi,vi]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",y,yi,vi]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[je,Sr]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",S,yi,vi]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[je,ve,ge]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"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":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[ve,ge]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Y()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,ge]}],filter:[{filter:["","none",ve,ge]}],blur:[{blur:we()}],brightness:[{brightness:[je,ve,ge]}],contrast:[{contrast:[je,ve,ge]}],"drop-shadow":[{"drop-shadow":["","none",T,yi,vi]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",je,ve,ge]}],"hue-rotate":[{"hue-rotate":[je,ve,ge]}],invert:[{invert:["",je,ve,ge]}],saturate:[{saturate:[je,ve,ge]}],sepia:[{sepia:["",je,ve,ge]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,ge]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[je,ve,ge]}],"backdrop-contrast":[{"backdrop-contrast":[je,ve,ge]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,ve,ge]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,ve,ge]}],"backdrop-invert":[{"backdrop-invert":["",je,ve,ge]}],"backdrop-opacity":[{"backdrop-opacity":[je,ve,ge]}],"backdrop-saturate":[{"backdrop-saturate":[je,ve,ge]}],"backdrop-sepia":[{"backdrop-sepia":["",je,ve,ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,ge]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",ve,ge]}],ease:[{ease:["linear","initial",R,ve,ge]}],delay:[{delay:[je,ve,ge]}],animate:[{animate:["none",k,ve,ge]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,ve,ge]}],"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:Ee()}],"scale-x":[{"scale-x":Ee()}],"scale-y":[{"scale-y":Ee()}],"scale-z":[{"scale-z":Ee()}],"scale-3d":["scale-3d"],skew:[{skew:He()}],"skew-x":[{"skew-x":He()}],"skew-y":[{"skew-y":He()}],transform:[{transform:[ve,ge,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ye()}],"translate-x":[{"translate-x":Ye()}],"translate-y":[{"translate-y":Ye()}],"translate-z":[{"translate-z":Ye()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"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",ve,ge]}],"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":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mbs":[{"scroll-mbs":$()}],"scroll-mbe":[{"scroll-mbe":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pbs":[{"scroll-pbs":$()}],"scroll-pbe":[{"scroll-pbe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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",ve,ge]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[je,$o,Sr,Tv]}],stroke:[{stroke:["none",...A()]}],"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"]}},hC=IT(mC);function re(...t){return hC(sy(t))}function pC(t){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=t:l.appendChild(document.createTextNode(t))}const gC=t=>{switch(t){case"success":return bC;case"info":return SC;case"warning":return xC;case"error":return wC;default:return null}},vC=Array(12).fill(0),yC=({visible:t,className:r})=>oe.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":t},oe.createElement("div",{className:"sonner-spinner"},vC.map((l,s)=>oe.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),bC=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.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"})),xC=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},oe.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"})),SC=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.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"})),wC=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.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"})),EC=oe.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"},oe.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),oe.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),NC=()=>{const[t,r]=oe.useState(document.hidden);return oe.useEffect(()=>{const l=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",l),()=>window.removeEventListener("visibilitychange",l)},[]),t};let of=1;class TC{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:of++,m=this.toasts.find(g=>g.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(g=>g.id===u?(this.publish({...g,...r,id:u,title:s}),{...g,...r,id:u,dismissible:h,title:s}):g):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],oe.isValidElement(p))u=!1,this.create({id:s,type:"default",message:p});else if(RC(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,E=typeof y=="object"&&!oe.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:S,...E})}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,E=typeof y=="object"&&!oe.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:S,...E})}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,E=typeof y=="object"&&!oe.isValidElement(y)?y:{message:y};this.create({id:s,type:"success",description:S,...E})}}).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,T=typeof b=="object"&&!oe.isValidElement(b)?b:{message:b};this.create({id:s,type:"error",description:y,...T})}}).finally(()=>{u&&(this.dismiss(s),s=void 0),l.finally==null||l.finally.call(l)}),g=()=>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:g}:Object.assign(s,{unwrap:g})},this.custom=(r,l)=>{const s=(l==null?void 0:l.id)||of++;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 Xt=new TC,CC=(t,r)=>{const l=(r==null?void 0:r.id)||of++;return Xt.addToast({title:t,...r,id:l}),l},RC=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",AC=CC,kC=()=>Xt.toasts,jC=()=>Xt.getActiveToasts(),_e=Object.assign(AC,{success:Xt.success,info:Xt.info,warning:Xt.warning,error:Xt.error,custom:Xt.custom,message:Xt.message,promise:Xt.promise,dismiss:Xt.dismiss,loading:Xt.loading},{getHistory:kC,getToasts:jC});pC("[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 bi(t){return t.label!==void 0}const _C=3,MC="24px",OC="16px",Av=4e3,DC=356,zC=14,LC=45,UC=200;function $n(...t){return t.filter(Boolean).join(" ")}function BC(t){const[r,l]=t.split("-"),s=[];return r&&s.push(r),l&&s.push(l),s}const HC=t=>{var r,l,s,c,u,m,h,g,p;const{invert:b,toast:y,unstyled:S,interacting:T,setHeights:E,visibleToasts:N,heights:C,index:R,toasts:k,expanded:_,removeToast:U,defaultRichColors:z,closeButton:G,style:V,cancelButtonStyle:$,actionButtonStyle:le,className:de="",descriptionClassName:fe="",duration:F,position:te,gap:ie,expandByDefault:J,classNames:M,icons:q,closeButtonAriaLabel:K="Close toast"}=t,[me,A]=oe.useState(null),[Y,se]=oe.useState(null),[X,ne]=oe.useState(!1),[W,ee]=oe.useState(!1),[ue,ce]=oe.useState(!1),[ae,we]=oe.useState(!1),[ye,Ee]=oe.useState(!1),[He,Ye]=oe.useState(0),[Pe,yt]=oe.useState(0),qe=oe.useRef(y.duration||F||Av),Bt=oe.useRef(null),rt=oe.useRef(null),_r=R===0,Xn=R+1<=N,dt=y.type,yn=y.dismissible!==!1,Mr=y.className||"",ya=y.descriptionClassName||"",Qt=oe.useMemo(()=>C.findIndex(he=>he.toastId===y.id)||0,[C,y.id]),jt=oe.useMemo(()=>{var he;return(he=y.closeButton)!=null?he:G},[y.closeButton,G]),$t=oe.useMemo(()=>y.duration||F||Av,[y.duration,F]),at=oe.useRef(0),Mn=oe.useRef(0),Or=oe.useRef(0),On=oe.useRef(null),[ba,xa]=te.split("-"),on=oe.useMemo(()=>C.reduce((he,Ue,We)=>We>=Qt?he:he+Ue.height,0),[C,Qt]),Qn=NC(),Kn=y.invert||b,Sa=dt==="loading";Mn.current=oe.useMemo(()=>Qt*ie+on,[Qt,on]),oe.useEffect(()=>{qe.current=$t},[$t]),oe.useEffect(()=>{ne(!0)},[]),oe.useEffect(()=>{const he=rt.current;if(he){const Ue=he.getBoundingClientRect().height;return yt(Ue),E(We=>[{toastId:y.id,height:Ue,position:y.position},...We]),()=>E(We=>We.filter(bt=>bt.toastId!==y.id))}},[E,y.id]),oe.useLayoutEffect(()=>{if(!X)return;const he=rt.current,Ue=he.style.height;he.style.height="auto";const We=he.getBoundingClientRect().height;he.style.height=Ue,yt(We),E(bt=>bt.find(xt=>xt.toastId===y.id)?bt.map(xt=>xt.toastId===y.id?{...xt,height:We}:xt):[{toastId:y.id,height:We,position:y.position},...bt])},[X,y.title,y.description,E,y.id,y.jsx,y.action,y.cancel]);const Pt=oe.useCallback(()=>{ee(!0),Ye(Mn.current),E(he=>he.filter(Ue=>Ue.toastId!==y.id)),setTimeout(()=>{U(y)},UC)},[y,U,E,Mn]);oe.useEffect(()=>{if(y.promise&&dt==="loading"||y.duration===1/0||y.type==="loading")return;let he;return _||T||Qn?(()=>{if(Or.current<at.current){const bt=new Date().getTime()-at.current;qe.current=qe.current-bt}Or.current=new Date().getTime()})():(()=>{qe.current!==1/0&&(at.current=new Date().getTime(),he=setTimeout(()=>{y.onAutoClose==null||y.onAutoClose.call(y,y),Pt()},qe.current))})(),()=>clearTimeout(he)},[_,T,y,dt,Qn,Pt]),oe.useEffect(()=>{y.delete&&(Pt(),y.onDismiss==null||y.onDismiss.call(y,y))},[Pt,y.delete]);function nr(){var he;if(q!=null&&q.loading){var Ue;return oe.createElement("div",{className:$n(M==null?void 0:M.loader,y==null||(Ue=y.classNames)==null?void 0:Ue.loader,"sonner-loader"),"data-visible":dt==="loading"},q.loading)}return oe.createElement(yC,{className:$n(M==null?void 0:M.loader,y==null||(he=y.classNames)==null?void 0:he.loader),visible:dt==="loading"})}const ar=y.icon||(q==null?void 0:q[dt])||gC(dt);var xe,Ge;return oe.createElement("li",{tabIndex:0,ref:rt,className:$n(de,Mr,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[dt],y==null||(l=y.classNames)==null?void 0:l[dt]),"data-sonner-toast":"","data-rich-colors":(xe=y.richColors)!=null?xe:z,"data-styled":!(y.jsx||y.unstyled||S),"data-mounted":X,"data-promise":!!y.promise,"data-swiped":ye,"data-removed":W,"data-visible":Xn,"data-y-position":ba,"data-x-position":xa,"data-index":R,"data-front":_r,"data-swiping":ue,"data-dismissible":yn,"data-type":dt,"data-invert":Kn,"data-swipe-out":ae,"data-swipe-direction":Y,"data-expanded":!!(_||J&&X),"data-testid":y.testId,style:{"--index":R,"--toasts-before":R,"--z-index":k.length-R,"--offset":`${W?He:Mn.current}px`,"--initial-height":J?"auto":`${Pe}px`,...V,...y.style},onDragEnd:()=>{ce(!1),A(null),On.current=null},onPointerDown:he=>{he.button!==2&&(Sa||!yn||(Bt.current=new Date,Ye(Mn.current),he.target.setPointerCapture(he.pointerId),he.target.tagName!=="BUTTON"&&(ce(!0),On.current={x:he.clientX,y:he.clientY})))},onPointerUp:()=>{var he,Ue,We;if(ae||!yn)return;On.current=null;const bt=Number(((he=rt.current)==null?void 0:he.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Dn=Number(((Ue=rt.current)==null?void 0:Ue.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),xt=new Date().getTime()-((We=Bt.current)==null?void 0:We.getTime()),ft=me==="x"?bt:Dn,mt=Math.abs(ft)/xt;if(Math.abs(ft)>=LC||mt>.11){Ye(Mn.current),y.onDismiss==null||y.onDismiss.call(y,y),se(me==="x"?bt>0?"right":"left":Dn>0?"down":"up"),Pt(),we(!0);return}else{var Je,Nt;(Je=rt.current)==null||Je.style.setProperty("--swipe-amount-x","0px"),(Nt=rt.current)==null||Nt.style.setProperty("--swipe-amount-y","0px")}Ee(!1),ce(!1),A(null)},onPointerMove:he=>{var Ue,We,bt;if(!On.current||!yn||((Ue=window.getSelection())==null?void 0:Ue.toString().length)>0)return;const xt=he.clientY-On.current.y,ft=he.clientX-On.current.x;var mt;const Je=(mt=t.swipeDirections)!=null?mt:BC(te);!me&&(Math.abs(ft)>1||Math.abs(xt)>1)&&A(Math.abs(ft)>Math.abs(xt)?"x":"y");let Nt={x:0,y:0};const Dr=Zn=>1/(1.5+Math.abs(Zn)/20);if(me==="y"){if(Je.includes("top")||Je.includes("bottom"))if(Je.includes("top")&&xt<0||Je.includes("bottom")&&xt>0)Nt.y=xt;else{const Zn=xt*Dr(xt);Nt.y=Math.abs(Zn)<Math.abs(xt)?Zn:xt}}else if(me==="x"&&(Je.includes("left")||Je.includes("right")))if(Je.includes("left")&&ft<0||Je.includes("right")&&ft>0)Nt.x=ft;else{const Zn=ft*Dr(ft);Nt.x=Math.abs(Zn)<Math.abs(ft)?Zn:ft}(Math.abs(Nt.x)>0||Math.abs(Nt.y)>0)&&Ee(!0),(We=rt.current)==null||We.style.setProperty("--swipe-amount-x",`${Nt.x}px`),(bt=rt.current)==null||bt.style.setProperty("--swipe-amount-y",`${Nt.y}px`)}},jt&&!y.jsx&&dt!=="loading"?oe.createElement("button",{"aria-label":K,"data-disabled":Sa,"data-close-button":!0,onClick:Sa||!yn?()=>{}:()=>{Pt(),y.onDismiss==null||y.onDismiss.call(y,y)},className:$n(M==null?void 0:M.closeButton,y==null||(s=y.classNames)==null?void 0:s.closeButton)},(Ge=q==null?void 0:q.close)!=null?Ge:EC):null,(dt||y.icon||y.promise)&&y.icon!==null&&((q==null?void 0:q[dt])!==null||y.icon)?oe.createElement("div",{"data-icon":"",className:$n(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||nr():null,y.type!=="loading"?ar:null):null,oe.createElement("div",{"data-content":"",className:$n(M==null?void 0:M.content,y==null||(u=y.classNames)==null?void 0:u.content)},oe.createElement("div",{"data-title":"",className:$n(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?oe.createElement("div",{"data-description":"",className:$n(fe,ya,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),oe.isValidElement(y.cancel)?y.cancel:y.cancel&&bi(y.cancel)?oe.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||$,onClick:he=>{bi(y.cancel)&&yn&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,he),Pt())},className:$n(M==null?void 0:M.cancelButton,y==null||(g=y.classNames)==null?void 0:g.cancelButton)},y.cancel.label):null,oe.isValidElement(y.action)?y.action:y.action&&bi(y.action)?oe.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||le,onClick:he=>{bi(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,he),!he.defaultPrevented&&Pt())},className:$n(M==null?void 0:M.actionButton,y==null||(p=y.classNames)==null?void 0:p.actionButton)},y.action.label):null)};function kv(){if(typeof window>"u"||typeof document>"u")return"ltr";const t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function $C(t,r){const l={};return[t,r].forEach((s,c)=>{const u=c===1,m=u?"--mobile-offset":"--offset",h=u?OC:MC;function g(p){["top","right","bottom","left"].forEach(b=>{l[`${m}-${b}`]=typeof p=="number"?`${p}px`:p})}typeof s=="number"||typeof s=="string"?g(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]}):g(h)}),l}const PC=oe.forwardRef(function(r,l){const{id:s,invert:c,position:u="bottom-right",hotkey:m=["altKey","KeyT"],expand:h,closeButton:g,className:p,offset:b,mobileOffset:y,theme:S="light",richColors:T,duration:E,style:N,visibleToasts:C=_C,toastOptions:R,dir:k=kv(),gap:_=zC,icons:U,containerAriaLabel:z="Notifications"}=r,[G,V]=oe.useState([]),$=oe.useMemo(()=>s?G.filter(X=>X.toasterId===s):G.filter(X=>!X.toasterId),[G,s]),le=oe.useMemo(()=>Array.from(new Set([u].concat($.filter(X=>X.position).map(X=>X.position)))),[$,u]),[de,fe]=oe.useState([]),[F,te]=oe.useState(!1),[ie,J]=oe.useState(!1),[M,q]=oe.useState(S!=="system"?S:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=oe.useRef(null),me=m.join("+").replace(/Key/g,"").replace(/Digit/g,""),A=oe.useRef(null),Y=oe.useRef(!1),se=oe.useCallback(X=>{V(ne=>{var W;return(W=ne.find(ee=>ee.id===X.id))!=null&&W.delete||Xt.dismiss(X.id),ne.filter(({id:ee})=>ee!==X.id)})},[]);return oe.useEffect(()=>Xt.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{V(ne=>ne.map(W=>W.id===X.id?{...W,delete:!0}:W))});return}setTimeout(()=>{$0.flushSync(()=>{V(ne=>{const W=ne.findIndex(ee=>ee.id===X.id);return W!==-1?[...ne.slice(0,W),{...ne[W],...X},...ne.slice(W+1)]:[X,...ne]})})})}),[G]),oe.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 X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:ne})=>{q(ne?"dark":"light")})}catch{X.addListener(({matches:W})=>{try{q(W?"dark":"light")}catch(ee){console.error(ee)}})}},[S]),oe.useEffect(()=>{G.length<=1&&te(!1)},[G]),oe.useEffect(()=>{const X=ne=>{var W;if(m.every(ce=>ne[ce]||ne.code===ce)){var ue;te(!0),(ue=K.current)==null||ue.focus()}ne.code==="Escape"&&(document.activeElement===K.current||(W=K.current)!=null&&W.contains(document.activeElement))&&te(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[m]),oe.useEffect(()=>{if(K.current)return()=>{A.current&&(A.current.focus({preventScroll:!0}),A.current=null,Y.current=!1)}},[K.current]),oe.createElement("section",{ref:l,"aria-label":`${z} ${me}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},le.map((X,ne)=>{var W;const[ee,ue]=X.split("-");return $.length?oe.createElement("ol",{key:X,dir:k==="auto"?kv():k,tabIndex:-1,ref:K,className:p,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":ee,"data-x-position":ue,style:{"--front-toast-height":`${((W=de[0])==null?void 0:W.height)||0}px`,"--width":`${DC}px`,"--gap":`${_}px`,...N,...$C(b,y)},onBlur:ce=>{Y.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(Y.current=!1,A.current&&(A.current.focus({preventScroll:!0}),A.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||Y.current||(Y.current=!0,A.current=ce.relatedTarget)},onMouseEnter:()=>te(!0),onMouseMove:()=>te(!0),onMouseLeave:()=>{ie||te(!1)},onDragEnd:()=>te(!1),onPointerDown:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},$.filter(ce=>!ce.position&&ne===0||ce.position===X).map((ce,ae)=>{var we,ye;return oe.createElement(HC,{key:ce.id,icons:U,index:ae,toast:ce,defaultRichColors:T,duration:(we=R==null?void 0:R.duration)!=null?we:E,className:R==null?void 0:R.className,descriptionClassName:R==null?void 0:R.descriptionClassName,invert:c,visibleToasts:C,closeButton:(ye=R==null?void 0:R.closeButton)!=null?ye:g,interacting:ie,position:X,style:R==null?void 0:R.style,unstyled:R==null?void 0:R.unstyled,classNames:R==null?void 0:R.classNames,cancelButtonStyle:R==null?void 0:R.cancelButtonStyle,actionButtonStyle:R==null?void 0:R.actionButtonStyle,closeButtonAriaLabel:R==null?void 0:R.closeButtonAriaLabel,removeToast:se,toasts:$.filter(Ee=>Ee.position==ce.position),heights:de.filter(Ee=>Ee.position==ce.position),setHeights:fe,expandByDefault:h,gap:_,expanded:F,swipeDirections:r.swipeDirections})})):null}))}),jv=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,_v=sy,wy=(t,r)=>l=>{var s;if((r==null?void 0:r.variants)==null)return _v(t,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=jv(b)||jv(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},{}),g=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((p,b)=>{let{class:y,className:S,...T}=b;return Object.entries(T).every(E=>{let[N,C]=E;return Array.isArray(C)?C.includes({...u,...h}[N]):{...u,...h}[N]===C})?[...p,y,S]:p},[]);return _v(t,m,g,l==null?void 0:l.class,l==null?void 0:l.className)},qC=wy("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 Dt({className:t,variant:r,...l}){return f.jsx("div",{className:re(qC({variant:r}),t),...l})}const En=v.forwardRef(({className:t,...r},l)=>f.jsx("div",{ref:l,className:re("rounded-sm border border-border/70 bg-card/80 text-card-foreground shadow-none",t),...r}));En.displayName="Card";const Nn=v.forwardRef(({className:t,...r},l)=>f.jsx("div",{ref:l,className:re("flex flex-col space-y-1 p-3",t),...r}));Nn.displayName="CardHeader";const Tn=v.forwardRef(({className:t,...r},l)=>f.jsx("div",{ref:l,className:re("text-[12px] font-semibold leading-none tracking-tight",t),...r}));Tn.displayName="CardTitle";const Cn=v.forwardRef(({className:t,...r},l)=>f.jsx("div",{ref:l,className:re("text-[10px] text-muted-foreground",t),...r}));Cn.displayName="CardDescription";const Rn=v.forwardRef(({className:t,...r},l)=>f.jsx("div",{ref:l,className:re("p-3 pt-0",t),...r}));Rn.displayName="CardContent";const VC=v.forwardRef(({className:t,...r},l)=>f.jsx("div",{ref:l,className:re("flex items-center p-3 pt-0",t),...r}));VC.displayName="CardFooter";function Mv(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}function Uf(...t){return r=>{let l=!1;const s=t.map(c=>{const u=Mv(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():Mv(t[c],null)}}}}function nt(...t){return v.useCallback(Uf(...t),t)}var YC=Symbol.for("react.lazy"),Bi=Rf[" use ".trim().toString()];function GC(t){return typeof t=="object"&&t!==null&&"then"in t}function Ey(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===YC&&"_payload"in t&&GC(t._payload)}function IC(t){const r=QC(t),l=v.forwardRef((s,c)=>{let{children:u,...m}=s;Ey(u)&&typeof Bi=="function"&&(u=Bi(u._payload));const h=v.Children.toArray(u),g=h.find(ZC);if(g){const p=g.props.children,b=h.map(y=>y===g?v.Children.count(p)>1?v.Children.only(null):v.isValidElement(p)?p.props.children:null:y);return f.jsx(r,{...m,ref:c,children:v.isValidElement(p)?v.cloneElement(p,void 0,b):null})}return f.jsx(r,{...m,ref:c,children:u})});return l.displayName=`${t}.Slot`,l}var XC=IC("Slot");function QC(t){const r=v.forwardRef((l,s)=>{let{children:c,...u}=l;if(Ey(c)&&typeof Bi=="function"&&(c=Bi(c._payload)),v.isValidElement(c)){const m=WC(c),h=FC(u,c.props);return c.type!==v.Fragment&&(h.ref=s?Uf(s,m):m),v.cloneElement(c,h)}return v.Children.count(c)>1?v.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}var KC=Symbol("radix.slottable");function ZC(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===KC}function FC(t,r){const l={...r};for(const s in r){const c=t[s],u=r[s];/^on[A-Z]/.test(s)?c&&u?l[s]=(...h)=>{const g=u(...h);return c(...h),g}:c&&(l[s]=c):s==="style"?l[s]={...c,...u}:s==="className"&&(l[s]=[c,u].filter(Boolean).join(" "))}return{...t,...l}}function WC(t){var s,c;let r=(s=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:s.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?t.ref:(r=(c=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:c.get,l=r&&"isReactWarning"in r&&r.isReactWarning,l?t.props.ref:t.props.ref||t.ref)}const Bf=wy("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"}}),kt=v.forwardRef(({className:t,variant:r,size:l,asChild:s=!1,...c},u)=>{const m=s?XC:"button";return f.jsx(m,{className:re(Bf({variant:r,size:l,className:t})),ref:u,...c})});kt.displayName="Button";async function JC(t,r={}){try{await Se("/telemetry/events",{method:"POST",body:JSON.stringify({name:`feature.${t}`,appType:"browser",dimensions:r})})}catch{}}function ze(t,r,{checkForDefaultPrevented:l=!0}={}){return function(c){if(t==null||t(c),l===!1||!c.defaultPrevented)return r==null?void 0:r(c)}}function eR(t,r){const l=v.createContext(r),s=u=>{const{children:m,...h}=u,g=v.useMemo(()=>h,Object.values(h));return f.jsx(l.Provider,{value:g,children:m})};s.displayName=t+"Provider";function c(u){const m=v.useContext(l);if(m)return m;if(r!==void 0)return r;throw new Error(`\`${u}\` must be used within \`${t}\``)}return[s,c]}function Ja(t,r=[]){let l=[];function s(u,m){const h=v.createContext(m),g=l.length;l=[...l,m];const p=y=>{var R;const{scope:S,children:T,...E}=y,N=((R=S==null?void 0:S[t])==null?void 0:R[g])||h,C=v.useMemo(()=>E,Object.values(E));return f.jsx(N.Provider,{value:C,children:T})};p.displayName=u+"Provider";function b(y,S){var N;const T=((N=S==null?void 0:S[t])==null?void 0:N[g])||h,E=v.useContext(T);if(E)return E;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=>v.createContext(m));return function(h){const g=(h==null?void 0:h[t])||u;return v.useMemo(()=>({[`__scope${t}`]:{...h,[t]:g}}),[h,g])}};return c.scopeName=t,[s,tR(c,...r)]}function tR(...t){const r=t[0];if(t.length===1)return r;const l=()=>{const s=t.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(u){const m=s.reduce((h,{useScope:g,scopeName:p})=>{const y=g(u)[`__scope${p}`];return{...h,...y}},{});return v.useMemo(()=>({[`__scope${r.scopeName}`]:m}),[m])}};return l.scopeName=r.scopeName,l}var Ut=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},nR=Rf[" useId ".trim().toString()]||(()=>{}),aR=0;function Xa(t){const[r,l]=v.useState(nR());return Ut(()=>{l(s=>s??String(aR++))},[t]),r?`radix-${r}`:""}var rR=Rf[" useInsertionEffect ".trim().toString()]||Ut;function _l({prop:t,defaultProp:r,onChange:l=()=>{},caller:s}){const[c,u,m]=lR({defaultProp:r,onChange:l}),h=t!==void 0,g=h?t:c;{const b=v.useRef(t!==void 0);v.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=v.useCallback(b=>{var y;if(h){const S=oR(b)?b(t):b;S!==t&&((y=m.current)==null||y.call(m,S))}else u(b)},[h,t,u,m]);return[g,p]}function lR({defaultProp:t,onChange:r}){const[l,s]=v.useState(t),c=v.useRef(l),u=v.useRef(r);return rR(()=>{u.current=r},[r]),v.useEffect(()=>{var m;c.current!==l&&((m=u.current)==null||m.call(u,l),c.current=l)},[l,c]),[l,s,u]}function oR(t){return typeof t=="function"}function Wo(t){const r=sR(t),l=v.forwardRef((s,c)=>{const{children:u,...m}=s,h=v.Children.toArray(u),g=h.find(cR);if(g){const p=g.props.children,b=h.map(y=>y===g?v.Children.count(p)>1?v.Children.only(null):v.isValidElement(p)?p.props.children:null:y);return f.jsx(r,{...m,ref:c,children:v.isValidElement(p)?v.cloneElement(p,void 0,b):null})}return f.jsx(r,{...m,ref:c,children:u})});return l.displayName=`${t}.Slot`,l}function sR(t){const r=v.forwardRef((l,s)=>{const{children:c,...u}=l;if(v.isValidElement(c)){const m=dR(c),h=uR(u,c.props);return c.type!==v.Fragment&&(h.ref=s?Uf(s,m):m),v.cloneElement(c,h)}return v.Children.count(c)>1?v.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}var Ny=Symbol("radix.slottable");function iR(t){const r=({children:l})=>f.jsx(f.Fragment,{children:l});return r.displayName=`${t}.Slottable`,r.__radixId=Ny,r}function cR(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Ny}function uR(t,r){const l={...r};for(const s in r){const c=t[s],u=r[s];/^on[A-Z]/.test(s)?c&&u?l[s]=(...h)=>{const g=u(...h);return c(...h),g}:c&&(l[s]=c):s==="style"?l[s]={...c,...u}:s==="className"&&(l[s]=[c,u].filter(Boolean).join(" "))}return{...t,...l}}function dR(t){var s,c;let r=(s=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:s.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?t.ref:(r=(c=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:c.get,l=r&&"isReactWarning"in r&&r.isReactWarning,l?t.props.ref:t.props.ref||t.ref)}var fR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Le=fR.reduce((t,r)=>{const l=Wo(`Primitive.${r}`),s=v.forwardRef((c,u)=>{const{asChild:m,...h}=c,g=m?l:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(g,{...h,ref:u})});return s.displayName=`Primitive.${r}`,{...t,[r]:s}},{});function mR(t,r){t&&ns.flushSync(()=>t.dispatchEvent(r))}function Ka(t){const r=v.useRef(t);return v.useEffect(()=>{r.current=t}),v.useMemo(()=>(...l)=>{var s;return(s=r.current)==null?void 0:s.call(r,...l)},[])}function hR(t,r=globalThis==null?void 0:globalThis.document){const l=Ka(t);v.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 pR="DismissableLayer",sf="dismissableLayer.update",gR="dismissableLayer.pointerDownOutside",vR="dismissableLayer.focusOutside",Ov,Ty=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Hf=v.forwardRef((t,r)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:m,onDismiss:h,...g}=t,p=v.useContext(Ty),[b,y]=v.useState(null),S=(b==null?void 0:b.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,T]=v.useState({}),E=nt(r,V=>y(V)),N=Array.from(p.layers),[C]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),R=N.indexOf(C),k=b?N.indexOf(b):-1,_=p.layersWithOutsidePointerEventsDisabled.size>0,U=k>=R,z=xR(V=>{const $=V.target,le=[...p.branches].some(de=>de.contains($));!U||le||(c==null||c(V),m==null||m(V),V.defaultPrevented||h==null||h())},S),G=SR(V=>{const $=V.target;[...p.branches].some(de=>de.contains($))||(u==null||u(V),m==null||m(V),V.defaultPrevented||h==null||h())},S);return hR(V=>{k===p.layers.size-1&&(s==null||s(V),!V.defaultPrevented&&h&&(V.preventDefault(),h()))},S),v.useEffect(()=>{if(b)return l&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Ov=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(b)),p.layers.add(b),Dv(),()=>{l&&p.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=Ov)}},[b,S,l,p]),v.useEffect(()=>()=>{b&&(p.layers.delete(b),p.layersWithOutsidePointerEventsDisabled.delete(b),Dv())},[b,p]),v.useEffect(()=>{const V=()=>T({});return document.addEventListener(sf,V),()=>document.removeEventListener(sf,V)},[]),f.jsx(Le.div,{...g,ref:E,style:{pointerEvents:_?U?"auto":"none":void 0,...t.style},onFocusCapture:ze(t.onFocusCapture,G.onFocusCapture),onBlurCapture:ze(t.onBlurCapture,G.onBlurCapture),onPointerDownCapture:ze(t.onPointerDownCapture,z.onPointerDownCapture)})});Hf.displayName=pR;var yR="DismissableLayerBranch",bR=v.forwardRef((t,r)=>{const l=v.useContext(Ty),s=v.useRef(null),c=nt(r,s);return v.useEffect(()=>{const u=s.current;if(u)return l.branches.add(u),()=>{l.branches.delete(u)}},[l.branches]),f.jsx(Le.div,{...t,ref:c})});bR.displayName=yR;function xR(t,r=globalThis==null?void 0:globalThis.document){const l=Ka(t),s=v.useRef(!1),c=v.useRef(()=>{});return v.useEffect(()=>{const u=h=>{if(h.target&&!s.current){let g=function(){Cy(gR,l,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(r.removeEventListener("click",c.current),c.current=g,r.addEventListener("click",c.current,{once:!0})):g()}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 SR(t,r=globalThis==null?void 0:globalThis.document){const l=Ka(t),s=v.useRef(!1);return v.useEffect(()=>{const c=u=>{u.target&&!s.current&&Cy(vR,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 Dv(){const t=new CustomEvent(sf);document.dispatchEvent(t)}function Cy(t,r,l,{discrete:s}){const c=l.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:l});r&&c.addEventListener(t,r,{once:!0}),s?mR(c,u):c.dispatchEvent(u)}var Ud="focusScope.autoFocusOnMount",Bd="focusScope.autoFocusOnUnmount",zv={bubbles:!1,cancelable:!0},wR="FocusScope",$f=v.forwardRef((t,r)=>{const{loop:l=!1,trapped:s=!1,onMountAutoFocus:c,onUnmountAutoFocus:u,...m}=t,[h,g]=v.useState(null),p=Ka(c),b=Ka(u),y=v.useRef(null),S=nt(r,N=>g(N)),T=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(s){let N=function(_){if(T.paused||!h)return;const U=_.target;h.contains(U)?y.current=U:Ia(y.current,{select:!0})},C=function(_){if(T.paused||!h)return;const U=_.relatedTarget;U!==null&&(h.contains(U)||Ia(y.current,{select:!0}))},R=function(_){if(document.activeElement===document.body)for(const z of _)z.removedNodes.length>0&&Ia(h)};document.addEventListener("focusin",N),document.addEventListener("focusout",C);const k=new MutationObserver(R);return h&&k.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",N),document.removeEventListener("focusout",C),k.disconnect()}}},[s,h,T.paused]),v.useEffect(()=>{if(h){Uv.add(T);const N=document.activeElement;if(!h.contains(N)){const R=new CustomEvent(Ud,zv);h.addEventListener(Ud,p),h.dispatchEvent(R),R.defaultPrevented||(ER(AR(Ry(h)),{select:!0}),document.activeElement===N&&Ia(h))}return()=>{h.removeEventListener(Ud,p),setTimeout(()=>{const R=new CustomEvent(Bd,zv);h.addEventListener(Bd,b),h.dispatchEvent(R),R.defaultPrevented||Ia(N??document.body,{select:!0}),h.removeEventListener(Bd,b),Uv.remove(T)},0)}}},[h,p,b,T]);const E=v.useCallback(N=>{if(!l&&!s||T.paused)return;const C=N.key==="Tab"&&!N.altKey&&!N.ctrlKey&&!N.metaKey,R=document.activeElement;if(C&&R){const k=N.currentTarget,[_,U]=NR(k);_&&U?!N.shiftKey&&R===U?(N.preventDefault(),l&&Ia(_,{select:!0})):N.shiftKey&&R===_&&(N.preventDefault(),l&&Ia(U,{select:!0})):R===k&&N.preventDefault()}},[l,s,T.paused]);return f.jsx(Le.div,{tabIndex:-1,...m,ref:S,onKeyDown:E})});$f.displayName=wR;function ER(t,{select:r=!1}={}){const l=document.activeElement;for(const s of t)if(Ia(s,{select:r}),document.activeElement!==l)return}function NR(t){const r=Ry(t),l=Lv(r,t),s=Lv(r.reverse(),t);return[l,s]}function Ry(t){const r=[],l=document.createTreeWalker(t,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 Lv(t,r){for(const l of t)if(!TR(l,{upTo:r}))return l}function TR(t,{upTo:r}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(r!==void 0&&t===r)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function CR(t){return t instanceof HTMLInputElement&&"select"in t}function Ia(t,{select:r=!1}={}){if(t&&t.focus){const l=document.activeElement;t.focus({preventScroll:!0}),t!==l&&CR(t)&&r&&t.select()}}var Uv=RR();function RR(){let t=[];return{add(r){const l=t[0];r!==l&&(l==null||l.pause()),t=Bv(t,r),t.unshift(r)},remove(r){var l;t=Bv(t,r),(l=t[0])==null||l.resume()}}}function Bv(t,r){const l=[...t],s=l.indexOf(r);return s!==-1&&l.splice(s,1),l}function AR(t){return t.filter(r=>r.tagName!=="A")}var kR="Portal",Pf=v.forwardRef((t,r)=>{var h;const{container:l,...s}=t,[c,u]=v.useState(!1);Ut(()=>u(!0),[]);const m=l||c&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return m?$0.createPortal(f.jsx(Le.div,{...s,ref:r}),m):null});Pf.displayName=kR;function jR(t,r){return v.useReducer((l,s)=>r[l][s]??l,t)}var Ul=t=>{const{present:r,children:l}=t,s=_R(r),c=typeof l=="function"?l({present:s.isPresent}):v.Children.only(l),u=nt(s.ref,MR(c));return typeof l=="function"||s.isPresent?v.cloneElement(c,{ref:u}):null};Ul.displayName="Presence";function _R(t){const[r,l]=v.useState(),s=v.useRef(null),c=v.useRef(t),u=v.useRef("none"),m=t?"mounted":"unmounted",[h,g]=jR(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=xi(s.current);u.current=h==="mounted"?p:"none"},[h]),Ut(()=>{const p=s.current,b=c.current;if(b!==t){const S=u.current,T=xi(p);t?g("MOUNT"):T==="none"||(p==null?void 0:p.display)==="none"?g("UNMOUNT"):g(b&&S!==T?"ANIMATION_OUT":"UNMOUNT"),c.current=t}},[t,g]),Ut(()=>{if(r){let p;const b=r.ownerDocument.defaultView??window,y=T=>{const N=xi(s.current).includes(CSS.escape(T.animationName));if(T.target===r&&N&&(g("ANIMATION_END"),!c.current)){const C=r.style.animationFillMode;r.style.animationFillMode="forwards",p=b.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=C)})}},S=T=>{T.target===r&&(u.current=xi(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 g("ANIMATION_END")},[r,g]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:v.useCallback(p=>{s.current=p?getComputedStyle(p):null,l(p)},[])}}function xi(t){return(t==null?void 0:t.animationName)||"none"}function MR(t){var s,c;let r=(s=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:s.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?t.ref:(r=(c=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:c.get,l=r&&"isReactWarning"in r&&r.isReactWarning,l?t.props.ref:t.props.ref||t.ref)}var Hd=0;function Ay(){v.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Hv()),document.body.insertAdjacentElement("beforeend",t[1]??Hv()),Hd++,()=>{Hd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Hd--}},[])}function Hv(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Pn=function(){return Pn=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},Pn.apply(this,arguments)};function ky(t,r){var l={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&r.indexOf(s)<0&&(l[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(t);c<s.length;c++)r.indexOf(s[c])<0&&Object.prototype.propertyIsEnumerable.call(t,s[c])&&(l[s[c]]=t[s[c]]);return l}function OR(t,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 t.concat(u||Array.prototype.slice.call(r))}var ki="right-scroll-bar-position",ji="width-before-scroll-bar",DR="with-scroll-bars-hidden",zR="--removed-body-scroll-bar-size";function $d(t,r){return typeof t=="function"?t(r):t&&(t.current=r),t}function LR(t,r){var l=v.useState(function(){return{value:t,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 UR=typeof window<"u"?v.useLayoutEffect:v.useEffect,$v=new WeakMap;function BR(t,r){var l=LR(null,function(s){return t.forEach(function(c){return $d(c,s)})});return UR(function(){var s=$v.get(l);if(s){var c=new Set(s),u=new Set(t),m=l.current;c.forEach(function(h){u.has(h)||$d(h,null)}),u.forEach(function(h){c.has(h)||$d(h,m)})}$v.set(l,t)},[t]),l}function HR(t){return t}function $R(t,r){r===void 0&&(r=HR);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]:t},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 g=function(){var b=m;m=[],b.forEach(u)},p=function(){return Promise.resolve().then(g)};p(),l={push:function(b){m.push(b),p()},filter:function(b){return m=m.filter(b),l}}}};return c}function PR(t){t===void 0&&(t={});var r=$R(null);return r.options=Pn({async:!0,ssr:!1},t),r}var jy=function(t){var r=t.sideCar,l=ky(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=r.read();if(!s)throw new Error("Sidecar medium not found");return v.createElement(s,Pn({},l))};jy.isSideCarExport=!0;function qR(t,r){return t.useMedium(r),jy}var _y=PR(),Pd=function(){},lc=v.forwardRef(function(t,r){var l=v.useRef(null),s=v.useState({onScrollCapture:Pd,onWheelCapture:Pd,onTouchMoveCapture:Pd}),c=s[0],u=s[1],m=t.forwardProps,h=t.children,g=t.className,p=t.removeScrollBar,b=t.enabled,y=t.shards,S=t.sideCar,T=t.noRelative,E=t.noIsolation,N=t.inert,C=t.allowPinchZoom,R=t.as,k=R===void 0?"div":R,_=t.gapMode,U=ky(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=S,G=BR([l,r]),V=Pn(Pn({},U),c);return v.createElement(v.Fragment,null,b&&v.createElement(z,{sideCar:_y,removeScrollBar:p,shards:y,noRelative:T,noIsolation:E,inert:N,setCallbacks:u,allowPinchZoom:!!C,lockRef:l,gapMode:_}),m?v.cloneElement(v.Children.only(h),Pn(Pn({},V),{ref:G})):v.createElement(k,Pn({},V,{className:g,ref:G}),h))});lc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};lc.classNames={fullWidth:ji,zeroRight:ki};var VR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YR(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var r=VR();return r&&t.setAttribute("nonce",r),t}function GR(t,r){t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}function IR(t){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(t)}var XR=function(){var t=0,r=null;return{add:function(l){t==0&&(r=YR())&&(GR(r,l),IR(r)),t++},remove:function(){t--,!t&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},QR=function(){var t=XR();return function(r,l){v.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&l])}},My=function(){var t=QR(),r=function(l){var s=l.styles,c=l.dynamic;return t(s,c),null};return r},KR={left:0,top:0,right:0,gap:0},qd=function(t){return parseInt(t||"",10)||0},ZR=function(t){var r=window.getComputedStyle(document.body),l=r[t==="padding"?"paddingLeft":"marginLeft"],s=r[t==="padding"?"paddingTop":"marginTop"],c=r[t==="padding"?"paddingRight":"marginRight"];return[qd(l),qd(s),qd(c)]},FR=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return KR;var r=ZR(t),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])}},WR=My(),Al="data-scroll-locked",JR=function(t,r,l,s){var c=t.left,u=t.top,m=t.right,h=t.gap;return l===void 0&&(l="margin"),`
|
|
297
|
-
.`.concat(DR,` {
|
|
298
|
-
overflow: hidden `).concat(s,`;
|
|
299
|
-
padding-right: `).concat(h,"px ").concat(s,`;
|
|
300
|
-
}
|
|
301
|
-
body[`).concat(Al,`] {
|
|
302
|
-
overflow: hidden `).concat(s,`;
|
|
303
|
-
overscroll-behavior: contain;
|
|
304
|
-
`).concat([r&&"position: relative ".concat(s,";"),l==="margin"&&`
|
|
305
|
-
padding-left: `.concat(c,`px;
|
|
306
|
-
padding-top: `).concat(u,`px;
|
|
307
|
-
padding-right: `).concat(m,`px;
|
|
308
|
-
margin-left:0;
|
|
309
|
-
margin-top:0;
|
|
310
|
-
margin-right: `).concat(h,"px ").concat(s,`;
|
|
311
|
-
`),l==="padding"&&"padding-right: ".concat(h,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.`).concat(ki,` {
|
|
315
|
-
right: `).concat(h,"px ").concat(s,`;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.`).concat(ji,` {
|
|
319
|
-
margin-right: `).concat(h,"px ").concat(s,`;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
.`).concat(ki," .").concat(ki,` {
|
|
323
|
-
right: 0 `).concat(s,`;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
.`).concat(ji," .").concat(ji,` {
|
|
327
|
-
margin-right: 0 `).concat(s,`;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
body[`).concat(Al,`] {
|
|
331
|
-
`).concat(zR,": ").concat(h,`px;
|
|
332
|
-
}
|
|
333
|
-
`)},Pv=function(){var t=parseInt(document.body.getAttribute(Al)||"0",10);return isFinite(t)?t:0},e5=function(){v.useEffect(function(){return document.body.setAttribute(Al,(Pv()+1).toString()),function(){var t=Pv()-1;t<=0?document.body.removeAttribute(Al):document.body.setAttribute(Al,t.toString())}},[])},t5=function(t){var r=t.noRelative,l=t.noImportant,s=t.gapMode,c=s===void 0?"margin":s;e5();var u=v.useMemo(function(){return FR(c)},[c]);return v.createElement(WR,{styles:JR(u,!r,c,l?"":"!important")})},cf=!1;if(typeof window<"u")try{var Si=Object.defineProperty({},"passive",{get:function(){return cf=!0,!0}});window.addEventListener("test",Si,Si),window.removeEventListener("test",Si,Si)}catch{cf=!1}var bl=cf?{passive:!1}:!1,n5=function(t){return t.tagName==="TEXTAREA"},Oy=function(t,r){if(!(t instanceof Element))return!1;var l=window.getComputedStyle(t);return l[r]!=="hidden"&&!(l.overflowY===l.overflowX&&!n5(t)&&l[r]==="visible")},a5=function(t){return Oy(t,"overflowY")},r5=function(t){return Oy(t,"overflowX")},qv=function(t,r){var l=r.ownerDocument,s=r;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var c=Dy(t,s);if(c){var u=zy(t,s),m=u[1],h=u[2];if(m>h)return!0}s=s.parentNode}while(s&&s!==l.body);return!1},l5=function(t){var r=t.scrollTop,l=t.scrollHeight,s=t.clientHeight;return[r,l,s]},o5=function(t){var r=t.scrollLeft,l=t.scrollWidth,s=t.clientWidth;return[r,l,s]},Dy=function(t,r){return t==="v"?a5(r):r5(r)},zy=function(t,r){return t==="v"?l5(r):o5(r)},s5=function(t,r){return t==="h"&&r==="rtl"?-1:1},i5=function(t,r,l,s,c){var u=s5(t,window.getComputedStyle(r).direction),m=u*s,h=l.target,g=r.contains(h),p=!1,b=m>0,y=0,S=0;do{if(!h)break;var T=zy(t,h),E=T[0],N=T[1],C=T[2],R=N-C-u*E;(E||R)&&Dy(t,h)&&(y+=R,S+=E);var k=h.parentNode;h=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!g&&h!==document.body||g&&(r.contains(h)||r===h));return(b&&Math.abs(y)<1||!b&&Math.abs(S)<1)&&(p=!0),p},wi=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Vv=function(t){return[t.deltaX,t.deltaY]},Yv=function(t){return t&&"current"in t?t.current:t},c5=function(t,r){return t[0]===r[0]&&t[1]===r[1]},u5=function(t){return`
|
|
334
|
-
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
335
|
-
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
336
|
-
`)},d5=0,xl=[];function f5(t){var r=v.useRef([]),l=v.useRef([0,0]),s=v.useRef(),c=v.useState(d5++)[0],u=v.useState(My)[0],m=v.useRef(t);v.useEffect(function(){m.current=t},[t]),v.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(c));var N=OR([t.lockRef.current],(t.shards||[]).map(Yv),!0).filter(Boolean);return N.forEach(function(C){return C.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),N.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(c))})}}},[t.inert,t.lockRef.current,t.shards]);var h=v.useCallback(function(N,C){if("touches"in N&&N.touches.length===2||N.type==="wheel"&&N.ctrlKey)return!m.current.allowPinchZoom;var R=wi(N),k=l.current,_="deltaX"in N?N.deltaX:k[0]-R[0],U="deltaY"in N?N.deltaY:k[1]-R[1],z,G=N.target,V=Math.abs(_)>Math.abs(U)?"h":"v";if("touches"in N&&V==="h"&&G.type==="range")return!1;var $=window.getSelection(),le=$&&$.anchorNode,de=le?le===G||le.contains(G):!1;if(de)return!1;var fe=qv(V,G);if(!fe)return!0;if(fe?z=V:(z=V==="v"?"h":"v",fe=qv(V,G)),!fe)return!1;if(!s.current&&"changedTouches"in N&&(_||U)&&(s.current=z),!z)return!0;var F=s.current||z;return i5(F,C,N,F==="h"?_:U)},[]),g=v.useCallback(function(N){var C=N;if(!(!xl.length||xl[xl.length-1]!==u)){var R="deltaY"in C?Vv(C):wi(C),k=r.current.filter(function(z){return z.name===C.type&&(z.target===C.target||C.target===z.shadowParent)&&c5(z.delta,R)})[0];if(k&&k.should){C.cancelable&&C.preventDefault();return}if(!k){var _=(m.current.shards||[]).map(Yv).filter(Boolean).filter(function(z){return z.contains(C.target)}),U=_.length>0?h(C,_[0]):!m.current.noIsolation;U&&C.cancelable&&C.preventDefault()}}},[]),p=v.useCallback(function(N,C,R,k){var _={name:N,delta:C,target:R,should:k,shadowParent:m5(R)};r.current.push(_),setTimeout(function(){r.current=r.current.filter(function(U){return U!==_})},1)},[]),b=v.useCallback(function(N){l.current=wi(N),s.current=void 0},[]),y=v.useCallback(function(N){p(N.type,Vv(N),N.target,h(N,t.lockRef.current))},[]),S=v.useCallback(function(N){p(N.type,wi(N),N.target,h(N,t.lockRef.current))},[]);v.useEffect(function(){return xl.push(u),t.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:S}),document.addEventListener("wheel",g,bl),document.addEventListener("touchmove",g,bl),document.addEventListener("touchstart",b,bl),function(){xl=xl.filter(function(N){return N!==u}),document.removeEventListener("wheel",g,bl),document.removeEventListener("touchmove",g,bl),document.removeEventListener("touchstart",b,bl)}},[]);var T=t.removeScrollBar,E=t.inert;return v.createElement(v.Fragment,null,E?v.createElement(u,{styles:u5(c)}):null,T?v.createElement(t5,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function m5(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const h5=qR(_y,f5);var qf=v.forwardRef(function(t,r){return v.createElement(lc,Pn({},t,{ref:r,sideCar:h5}))});qf.classNames=lc.classNames;var p5=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},Sl=new WeakMap,Ei=new WeakMap,Ni={},Vd=0,Ly=function(t){return t&&(t.host||Ly(t.parentNode))},g5=function(t,r){return r.map(function(l){if(t.contains(l))return l;var s=Ly(l);return s&&t.contains(s)?s:(console.error("aria-hidden",l,"in not contained inside",t,". Doing nothing"),null)}).filter(function(l){return!!l})},v5=function(t,r,l,s){var c=g5(r,Array.isArray(t)?t:[t]);Ni[l]||(Ni[l]=new WeakMap);var u=Ni[l],m=[],h=new Set,g=new Set(c),p=function(y){!y||h.has(y)||(h.add(y),p(y.parentNode))};c.forEach(p);var b=function(y){!y||g.has(y)||Array.prototype.forEach.call(y.children,function(S){if(h.has(S))b(S);else try{var T=S.getAttribute(s),E=T!==null&&T!=="false",N=(Sl.get(S)||0)+1,C=(u.get(S)||0)+1;Sl.set(S,N),u.set(S,C),m.push(S),N===1&&E&&Ei.set(S,!0),C===1&&S.setAttribute(l,"true"),E||S.setAttribute(s,"true")}catch(R){console.error("aria-hidden: cannot operate on ",S,R)}})};return b(r),h.clear(),Vd++,function(){m.forEach(function(y){var S=Sl.get(y)-1,T=u.get(y)-1;Sl.set(y,S),u.set(y,T),S||(Ei.has(y)||y.removeAttribute(s),Ei.delete(y)),T||y.removeAttribute(l)}),Vd--,Vd||(Sl=new WeakMap,Sl=new WeakMap,Ei=new WeakMap,Ni={})}},Uy=function(t,r,l){l===void 0&&(l="data-aria-hidden");var s=Array.from(Array.isArray(t)?t:[t]),c=p5(t);return c?(s.push.apply(s,Array.from(c.querySelectorAll("[aria-live], script"))),v5(s,c,l,"aria-hidden")):function(){return null}},oc="Dialog",[By,Hy]=Ja(oc),[y5,_n]=By(oc),$y=t=>{const{__scopeDialog:r,children:l,open:s,defaultOpen:c,onOpenChange:u,modal:m=!0}=t,h=v.useRef(null),g=v.useRef(null),[p,b]=_l({prop:s,defaultProp:c??!1,onChange:u,caller:oc});return f.jsx(y5,{scope:r,triggerRef:h,contentRef:g,contentId:Xa(),titleId:Xa(),descriptionId:Xa(),open:p,onOpenChange:b,onOpenToggle:v.useCallback(()=>b(y=>!y),[b]),modal:m,children:l})};$y.displayName=oc;var Py="DialogTrigger",qy=v.forwardRef((t,r)=>{const{__scopeDialog:l,...s}=t,c=_n(Py,l),u=nt(r,c.triggerRef);return f.jsx(Le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":Gf(c.open),...s,ref:u,onClick:ze(t.onClick,c.onOpenToggle)})});qy.displayName=Py;var Vf="DialogPortal",[b5,Vy]=By(Vf,{forceMount:void 0}),Yy=t=>{const{__scopeDialog:r,forceMount:l,children:s,container:c}=t,u=_n(Vf,r);return f.jsx(b5,{scope:r,forceMount:l,children:v.Children.map(s,m=>f.jsx(Ul,{present:l||u.open,children:f.jsx(Pf,{asChild:!0,container:c,children:m})}))})};Yy.displayName=Vf;var Hi="DialogOverlay",Gy=v.forwardRef((t,r)=>{const l=Vy(Hi,t.__scopeDialog),{forceMount:s=l.forceMount,...c}=t,u=_n(Hi,t.__scopeDialog);return u.modal?f.jsx(Ul,{present:s||u.open,children:f.jsx(S5,{...c,ref:r})}):null});Gy.displayName=Hi;var x5=Wo("DialogOverlay.RemoveScroll"),S5=v.forwardRef((t,r)=>{const{__scopeDialog:l,...s}=t,c=_n(Hi,l);return f.jsx(qf,{as:x5,allowPinchZoom:!0,shards:[c.contentRef],children:f.jsx(Le.div,{"data-state":Gf(c.open),...s,ref:r,style:{pointerEvents:"auto",...s.style}})})}),Tr="DialogContent",Iy=v.forwardRef((t,r)=>{const l=Vy(Tr,t.__scopeDialog),{forceMount:s=l.forceMount,...c}=t,u=_n(Tr,t.__scopeDialog);return f.jsx(Ul,{present:s||u.open,children:u.modal?f.jsx(w5,{...c,ref:r}):f.jsx(E5,{...c,ref:r})})});Iy.displayName=Tr;var w5=v.forwardRef((t,r)=>{const l=_n(Tr,t.__scopeDialog),s=v.useRef(null),c=nt(r,l.contentRef,s);return v.useEffect(()=>{const u=s.current;if(u)return Uy(u)},[]),f.jsx(Xy,{...t,ref:c,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ze(t.onCloseAutoFocus,u=>{var m;u.preventDefault(),(m=l.triggerRef.current)==null||m.focus()}),onPointerDownOutside:ze(t.onPointerDownOutside,u=>{const m=u.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0;(m.button===2||h)&&u.preventDefault()}),onFocusOutside:ze(t.onFocusOutside,u=>u.preventDefault())})}),E5=v.forwardRef((t,r)=>{const l=_n(Tr,t.__scopeDialog),s=v.useRef(!1),c=v.useRef(!1);return f.jsx(Xy,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var m,h;(m=t.onCloseAutoFocus)==null||m.call(t,u),u.defaultPrevented||(s.current||(h=l.triggerRef.current)==null||h.focus(),u.preventDefault()),s.current=!1,c.current=!1},onInteractOutside:u=>{var g,p;(g=t.onInteractOutside)==null||g.call(t,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()}})}),Xy=v.forwardRef((t,r)=>{const{__scopeDialog:l,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:u,...m}=t,h=_n(Tr,l),g=v.useRef(null),p=nt(r,g);return Ay(),f.jsxs(f.Fragment,{children:[f.jsx($f,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:c,onUnmountAutoFocus:u,children:f.jsx(Hf,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Gf(h.open),...m,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(T5,{titleId:h.titleId}),f.jsx(R5,{contentRef:g,descriptionId:h.descriptionId})]})]})}),Yf="DialogTitle",Qy=v.forwardRef((t,r)=>{const{__scopeDialog:l,...s}=t,c=_n(Yf,l);return f.jsx(Le.h2,{id:c.titleId,...s,ref:r})});Qy.displayName=Yf;var Ky="DialogDescription",Zy=v.forwardRef((t,r)=>{const{__scopeDialog:l,...s}=t,c=_n(Ky,l);return f.jsx(Le.p,{id:c.descriptionId,...s,ref:r})});Zy.displayName=Ky;var Fy="DialogClose",Wy=v.forwardRef((t,r)=>{const{__scopeDialog:l,...s}=t,c=_n(Fy,l);return f.jsx(Le.button,{type:"button",...s,ref:r,onClick:ze(t.onClick,()=>c.onOpenChange(!1))})});Wy.displayName=Fy;function Gf(t){return t?"open":"closed"}var Jy="DialogTitleWarning",[N5,eb]=eR(Jy,{contentName:Tr,titleName:Yf,docsSlug:"dialog"}),T5=({titleId:t})=>{const r=eb(Jy),l=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
|
|
337
|
-
|
|
338
|
-
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
339
|
-
|
|
340
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return v.useEffect(()=>{t&&(document.getElementById(t)||console.error(l))},[l,t]),null},C5="DialogDescriptionWarning",R5=({contentRef:t,descriptionId:r})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${eb(C5).contentName}}.`;return v.useEffect(()=>{var u;const c=(u=t.current)==null?void 0:u.getAttribute("aria-describedby");r&&c&&(document.getElementById(r)||console.warn(s))},[s,t,r]),null},tb=$y,nb=qy,ab=Yy,If=Gy,Xf=Iy,Qf=Qy,Kf=Zy,sc=Wy;const A5=tb,k5=nb,j5=ab,SM=sc,rb=v.forwardRef(({className:t,...r},l)=>f.jsx(If,{ref:l,className:re("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",t),...r}));rb.displayName=If.displayName;const lb=v.forwardRef(({className:t,children:r,...l},s)=>f.jsxs(j5,{children:[f.jsx(rb,{}),f.jsxs(Xf,{ref:s,className:re("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%]",t),...l,children:[r,f.jsxs(sc,{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(ly,{className:"h-3.5 w-3.5"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));lb.displayName=Xf.displayName;const ob=({className:t,...r})=>f.jsx("div",{className:re("flex flex-col space-y-1.5 text-center sm:text-left",t),...r});ob.displayName="DialogHeader";const _5=({className:t,...r})=>f.jsx("div",{className:re("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r});_5.displayName="DialogFooter";const sb=v.forwardRef(({className:t,...r},l)=>f.jsx(Qf,{ref:l,className:re("text-sm font-semibold leading-none tracking-tight",t),...r}));sb.displayName=Qf.displayName;const ib=v.forwardRef(({className:t,...r},l)=>f.jsx(Kf,{ref:l,className:re("text-[11px] text-muted-foreground",t),...r}));ib.displayName=Kf.displayName;function M5({children:t,open:r,onOpenChange:l,showTrigger:s=!0}){const[c,u]=v.useState(!1),m=r??c,h=v.useCallback(g=>{g&&JC("settings.opened",{surface:"settings"}),r===void 0&&u(g),l==null||l(g)},[r,l]);return f.jsxs(A5,{open:m,onOpenChange:h,children:[s&&f.jsx(k5,{asChild:!0,children:f.jsx(kt,{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(hT,{className:"h-4 w-4"})})}),f.jsxs(lb,{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(ob,{className:"shrink-0 border-b border-border/60 px-3 py-1.5 sm:px-3.5",children:[f.jsxs(sb,{className:"flex items-center gap-1.5 text-[11px]",children:[f.jsx(FN,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),f.jsx(ib,{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:t})]})]})}function Gv(t,[r,l]){return Math.min(l,Math.max(r,t))}function cb(t){const r=t+"CollectionProvider",[l,s]=Ja(r),[c,u]=l(r,{collectionRef:{current:null},itemMap:new Map}),m=N=>{const{scope:C,children:R}=N,k=oe.useRef(null),_=oe.useRef(new Map).current;return f.jsx(c,{scope:C,itemMap:_,collectionRef:k,children:R})};m.displayName=r;const h=t+"CollectionSlot",g=Wo(h),p=oe.forwardRef((N,C)=>{const{scope:R,children:k}=N,_=u(h,R),U=nt(C,_.collectionRef);return f.jsx(g,{ref:U,children:k})});p.displayName=h;const b=t+"CollectionItemSlot",y="data-radix-collection-item",S=Wo(b),T=oe.forwardRef((N,C)=>{const{scope:R,children:k,..._}=N,U=oe.useRef(null),z=nt(C,U),G=u(b,R);return oe.useEffect(()=>(G.itemMap.set(U,{ref:U,..._}),()=>void G.itemMap.delete(U))),f.jsx(S,{[y]:"",ref:z,children:k})});T.displayName=b;function E(N){const C=u(t+"CollectionConsumer",N);return oe.useCallback(()=>{const k=C.collectionRef.current;if(!k)return[];const _=Array.from(k.querySelectorAll(`[${y}]`));return Array.from(C.itemMap.values()).sort((G,V)=>_.indexOf(G.ref.current)-_.indexOf(V.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:m,Slot:p,ItemSlot:T},E,s]}var O5=v.createContext(void 0);function Zf(t){const r=v.useContext(O5);return t||r||"ltr"}const D5=["top","right","bottom","left"],Za=Math.min,an=Math.max,$i=Math.round,Ti=Math.floor,Yn=t=>({x:t,y:t}),z5={left:"right",right:"left",bottom:"top",top:"bottom"};function uf(t,r,l){return an(t,Za(r,l))}function ha(t,r){return typeof t=="function"?t(r):t}function pa(t){return t.split("-")[0]}function Bl(t){return t.split("-")[1]}function Ff(t){return t==="x"?"y":"x"}function Wf(t){return t==="y"?"height":"width"}function qn(t){const r=t[0];return r==="t"||r==="b"?"y":"x"}function Jf(t){return Ff(qn(t))}function L5(t,r,l){l===void 0&&(l=!1);const s=Bl(t),c=Jf(t),u=Wf(c);let m=c==="x"?s===(l?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(m=Pi(m)),[m,Pi(m)]}function U5(t){const r=Pi(t);return[df(t),r,df(r)]}function df(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Iv=["left","right"],Xv=["right","left"],B5=["top","bottom"],H5=["bottom","top"];function $5(t,r,l){switch(t){case"top":case"bottom":return l?r?Xv:Iv:r?Iv:Xv;case"left":case"right":return r?B5:H5;default:return[]}}function P5(t,r,l,s){const c=Bl(t);let u=$5(pa(t),l==="start",s);return c&&(u=u.map(m=>m+"-"+c),r&&(u=u.concat(u.map(df)))),u}function Pi(t){const r=pa(t);return z5[r]+t.slice(r.length)}function q5(t){return{top:0,right:0,bottom:0,left:0,...t}}function ub(t){return typeof t!="number"?q5(t):{top:t,right:t,bottom:t,left:t}}function qi(t){const{x:r,y:l,width:s,height:c}=t;return{width:s,height:c,top:l,left:r,right:r+s,bottom:l+c,x:r,y:l}}function Qv(t,r,l){let{reference:s,floating:c}=t;const u=qn(r),m=Jf(r),h=Wf(m),g=pa(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 T;switch(g){case"top":T={x:b,y:s.y-c.height};break;case"bottom":T={x:b,y:s.y+s.height};break;case"right":T={x:s.x+s.width,y};break;case"left":T={x:s.x-c.width,y};break;default:T={x:s.x,y:s.y}}switch(Bl(r)){case"start":T[m]-=S*(l&&p?-1:1);break;case"end":T[m]+=S*(l&&p?-1:1);break}return T}async function V5(t,r){var l;r===void 0&&(r={});const{x:s,y:c,platform:u,rects:m,elements:h,strategy:g}=t,{boundary:p="clippingAncestors",rootBoundary:b="viewport",elementContext:y="floating",altBoundary:S=!1,padding:T=0}=ha(r,t),E=ub(T),C=h[S?y==="floating"?"reference":"floating":y],R=qi(await u.getClippingRect({element:(l=await(u.isElement==null?void 0:u.isElement(C)))==null||l?C:C.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:p,rootBoundary:b,strategy:g})),k=y==="floating"?{x:s,y:c,width:m.floating.width,height:m.floating.height}:m.reference,_=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h.floating)),U=await(u.isElement==null?void 0:u.isElement(_))?await(u.getScale==null?void 0:u.getScale(_))||{x:1,y:1}:{x:1,y:1},z=qi(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:k,offsetParent:_,strategy:g}):k);return{top:(R.top-z.top+E.top)/U.y,bottom:(z.bottom-R.bottom+E.bottom)/U.y,left:(R.left-z.left+E.left)/U.x,right:(z.right-R.right+E.right)/U.x}}const Y5=50,G5=async(t,r,l)=>{const{placement:s="bottom",strategy:c="absolute",middleware:u=[],platform:m}=l,h=m.detectOverflow?m:{...m,detectOverflow:V5},g=await(m.isRTL==null?void 0:m.isRTL(r));let p=await m.getElementRects({reference:t,floating:r,strategy:c}),{x:b,y}=Qv(p,s,g),S=s,T=0;const E={};for(let N=0;N<u.length;N++){const C=u[N];if(!C)continue;const{name:R,fn:k}=C,{x:_,y:U,data:z,reset:G}=await k({x:b,y,initialPlacement:s,placement:S,strategy:c,middlewareData:E,rects:p,platform:h,elements:{reference:t,floating:r}});b=_??b,y=U??y,E[R]={...E[R],...z},G&&T<Y5&&(T++,typeof G=="object"&&(G.placement&&(S=G.placement),G.rects&&(p=G.rects===!0?await m.getElementRects({reference:t,floating:r,strategy:c}):G.rects),{x:b,y}=Qv(p,S,g)),N=-1)}return{x:b,y,placement:S,strategy:c,middlewareData:E}},I5=t=>({name:"arrow",options:t,async fn(r){const{x:l,y:s,placement:c,rects:u,platform:m,elements:h,middlewareData:g}=r,{element:p,padding:b=0}=ha(t,r)||{};if(p==null)return{};const y=ub(b),S={x:l,y:s},T=Jf(c),E=Wf(T),N=await m.getDimensions(p),C=T==="y",R=C?"top":"left",k=C?"bottom":"right",_=C?"clientHeight":"clientWidth",U=u.reference[E]+u.reference[T]-S[T]-u.floating[E],z=S[T]-u.reference[T],G=await(m.getOffsetParent==null?void 0:m.getOffsetParent(p));let V=G?G[_]:0;(!V||!await(m.isElement==null?void 0:m.isElement(G)))&&(V=h.floating[_]||u.floating[E]);const $=U/2-z/2,le=V/2-N[E]/2-1,de=Za(y[R],le),fe=Za(y[k],le),F=de,te=V-N[E]-fe,ie=V/2-N[E]/2+$,J=uf(F,ie,te),M=!g.arrow&&Bl(c)!=null&&ie!==J&&u.reference[E]/2-(ie<F?de:fe)-N[E]/2<0,q=M?ie<F?ie-F:ie-te:0;return{[T]:S[T]+q,data:{[T]:J,centerOffset:ie-J-q,...M&&{alignmentOffset:q}},reset:M}}}),X5=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var l,s;const{placement:c,middlewareData:u,rects:m,initialPlacement:h,platform:g,elements:p}=r,{mainAxis:b=!0,crossAxis:y=!0,fallbackPlacements:S,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:N=!0,...C}=ha(t,r);if((l=u.arrow)!=null&&l.alignmentOffset)return{};const R=pa(c),k=qn(h),_=pa(h)===h,U=await(g.isRTL==null?void 0:g.isRTL(p.floating)),z=S||(_||!N?[Pi(h)]:U5(h)),G=E!=="none";!S&&G&&z.push(...P5(h,N,E,U));const V=[h,...z],$=await g.detectOverflow(r,C),le=[];let de=((s=u.flip)==null?void 0:s.overflows)||[];if(b&&le.push($[R]),y){const ie=L5(c,m,U);le.push($[ie[0]],$[ie[1]])}if(de=[...de,{placement:c,overflows:le}],!le.every(ie=>ie<=0)){var fe,F;const ie=(((fe=u.flip)==null?void 0:fe.index)||0)+1,J=V[ie];if(J&&(!(y==="alignment"?k!==qn(J):!1)||de.every(K=>qn(K.placement)===k?K.overflows[0]>0:!0)))return{data:{index:ie,overflows:de},reset:{placement:J}};let M=(F=de.filter(q=>q.overflows[0]<=0).sort((q,K)=>q.overflows[1]-K.overflows[1])[0])==null?void 0:F.placement;if(!M)switch(T){case"bestFit":{var te;const q=(te=de.filter(K=>{if(G){const me=qn(K.placement);return me===k||me==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(me=>me>0).reduce((me,A)=>me+A,0)]).sort((K,me)=>K[1]-me[1])[0])==null?void 0:te[0];q&&(M=q);break}case"initialPlacement":M=h;break}if(c!==M)return{reset:{placement:M}}}return{}}}};function Kv(t,r){return{top:t.top-r.height,right:t.right-r.width,bottom:t.bottom-r.height,left:t.left-r.width}}function Zv(t){return D5.some(r=>t[r]>=0)}const Q5=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(r){const{rects:l,platform:s}=r,{strategy:c="referenceHidden",...u}=ha(t,r);switch(c){case"referenceHidden":{const m=await s.detectOverflow(r,{...u,elementContext:"reference"}),h=Kv(m,l.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Zv(h)}}}case"escaped":{const m=await s.detectOverflow(r,{...u,altBoundary:!0}),h=Kv(m,l.floating);return{data:{escapedOffsets:h,escaped:Zv(h)}}}default:return{}}}}},db=new Set(["left","top"]);async function K5(t,r){const{placement:l,platform:s,elements:c}=t,u=await(s.isRTL==null?void 0:s.isRTL(c.floating)),m=pa(l),h=Bl(l),g=qn(l)==="y",p=db.has(m)?-1:1,b=u&&g?-1:1,y=ha(r,t);let{mainAxis:S,crossAxis:T,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return h&&typeof E=="number"&&(T=h==="end"?E*-1:E),g?{x:T*b,y:S*p}:{x:S*p,y:T*b}}const Z5=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){var l,s;const{x:c,y:u,placement:m,middlewareData:h}=r,g=await K5(r,t);return m===((l=h.offset)==null?void 0:l.placement)&&(s=h.arrow)!=null&&s.alignmentOffset?{}:{x:c+g.x,y:u+g.y,data:{...g,placement:m}}}}},F5=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){const{x:l,y:s,placement:c,platform:u}=r,{mainAxis:m=!0,crossAxis:h=!1,limiter:g={fn:R=>{let{x:k,y:_}=R;return{x:k,y:_}}},...p}=ha(t,r),b={x:l,y:s},y=await u.detectOverflow(r,p),S=qn(pa(c)),T=Ff(S);let E=b[T],N=b[S];if(m){const R=T==="y"?"top":"left",k=T==="y"?"bottom":"right",_=E+y[R],U=E-y[k];E=uf(_,E,U)}if(h){const R=S==="y"?"top":"left",k=S==="y"?"bottom":"right",_=N+y[R],U=N-y[k];N=uf(_,N,U)}const C=g.fn({...r,[T]:E,[S]:N});return{...C,data:{x:C.x-l,y:C.y-s,enabled:{[T]:m,[S]:h}}}}}},W5=function(t){return t===void 0&&(t={}),{options:t,fn(r){const{x:l,y:s,placement:c,rects:u,middlewareData:m}=r,{offset:h=0,mainAxis:g=!0,crossAxis:p=!0}=ha(t,r),b={x:l,y:s},y=qn(c),S=Ff(y);let T=b[S],E=b[y];const N=ha(h,r),C=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:0,crossAxis:0,...N};if(g){const _=S==="y"?"height":"width",U=u.reference[S]-u.floating[_]+C.mainAxis,z=u.reference[S]+u.reference[_]-C.mainAxis;T<U?T=U:T>z&&(T=z)}if(p){var R,k;const _=S==="y"?"width":"height",U=db.has(pa(c)),z=u.reference[y]-u.floating[_]+(U&&((R=m.offset)==null?void 0:R[y])||0)+(U?0:C.crossAxis),G=u.reference[y]+u.reference[_]+(U?0:((k=m.offset)==null?void 0:k[y])||0)-(U?C.crossAxis:0);E<z?E=z:E>G&&(E=G)}return{[S]:T,[y]:E}}}},J5=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){var l,s;const{placement:c,rects:u,platform:m,elements:h}=r,{apply:g=()=>{},...p}=ha(t,r),b=await m.detectOverflow(r,p),y=pa(c),S=Bl(c),T=qn(c)==="y",{width:E,height:N}=u.floating;let C,R;y==="top"||y==="bottom"?(C=y,R=S===(await(m.isRTL==null?void 0:m.isRTL(h.floating))?"start":"end")?"left":"right"):(R=y,C=S==="end"?"top":"bottom");const k=N-b.top-b.bottom,_=E-b.left-b.right,U=Za(N-b[C],k),z=Za(E-b[R],_),G=!r.middlewareData.shift;let V=U,$=z;if((l=r.middlewareData.shift)!=null&&l.enabled.x&&($=_),(s=r.middlewareData.shift)!=null&&s.enabled.y&&(V=k),G&&!S){const de=an(b.left,0),fe=an(b.right,0),F=an(b.top,0),te=an(b.bottom,0);T?$=E-2*(de!==0||fe!==0?de+fe:an(b.left,b.right)):V=N-2*(F!==0||te!==0?F+te:an(b.top,b.bottom))}await g({...r,availableWidth:$,availableHeight:V});const le=await m.getDimensions(h.floating);return E!==le.width||N!==le.height?{reset:{rects:!0}}:{}}}};function ic(){return typeof window<"u"}function Hl(t){return fb(t)?(t.nodeName||"").toLowerCase():"#document"}function rn(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function In(t){var r;return(r=(fb(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function fb(t){return ic()?t instanceof Node||t instanceof rn(t).Node:!1}function kn(t){return ic()?t instanceof Element||t instanceof rn(t).Element:!1}function ga(t){return ic()?t instanceof HTMLElement||t instanceof rn(t).HTMLElement:!1}function Fv(t){return!ic()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof rn(t).ShadowRoot}function as(t){const{overflow:r,overflowX:l,overflowY:s,display:c}=jn(t);return/auto|scroll|overlay|hidden|clip/.test(r+s+l)&&c!=="inline"&&c!=="contents"}function eA(t){return/^(table|td|th)$/.test(Hl(t))}function cc(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const tA=/transform|translate|scale|rotate|perspective|filter/,nA=/paint|layout|strict|content/,wr=t=>!!t&&t!=="none";let Yd;function em(t){const r=kn(t)?jn(t):t;return wr(r.transform)||wr(r.translate)||wr(r.scale)||wr(r.rotate)||wr(r.perspective)||!tm()&&(wr(r.backdropFilter)||wr(r.filter))||tA.test(r.willChange||"")||nA.test(r.contain||"")}function aA(t){let r=Fa(t);for(;ga(r)&&!Ml(r);){if(em(r))return r;if(cc(r))return null;r=Fa(r)}return null}function tm(){return Yd==null&&(Yd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Yd}function Ml(t){return/^(html|body|#document)$/.test(Hl(t))}function jn(t){return rn(t).getComputedStyle(t)}function uc(t){return kn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Fa(t){if(Hl(t)==="html")return t;const r=t.assignedSlot||t.parentNode||Fv(t)&&t.host||In(t);return Fv(r)?r.host:r}function mb(t){const r=Fa(t);return Ml(r)?t.ownerDocument?t.ownerDocument.body:t.body:ga(r)&&as(r)?r:mb(r)}function Jo(t,r,l){var s;r===void 0&&(r=[]),l===void 0&&(l=!0);const c=mb(t),u=c===((s=t.ownerDocument)==null?void 0:s.body),m=rn(c);if(u){const h=ff(m);return r.concat(m,m.visualViewport||[],as(c)?c:[],h&&l?Jo(h):[])}else return r.concat(c,Jo(c,[],l))}function ff(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function hb(t){const r=jn(t);let l=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const c=ga(t),u=c?t.offsetWidth:l,m=c?t.offsetHeight:s,h=$i(l)!==u||$i(s)!==m;return h&&(l=u,s=m),{width:l,height:s,$:h}}function nm(t){return kn(t)?t:t.contextElement}function kl(t){const r=nm(t);if(!ga(r))return Yn(1);const l=r.getBoundingClientRect(),{width:s,height:c,$:u}=hb(r);let m=(u?$i(l.width):l.width)/s,h=(u?$i(l.height):l.height)/c;return(!m||!Number.isFinite(m))&&(m=1),(!h||!Number.isFinite(h))&&(h=1),{x:m,y:h}}const rA=Yn(0);function pb(t){const r=rn(t);return!tm()||!r.visualViewport?rA:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function lA(t,r,l){return r===void 0&&(r=!1),!l||r&&l!==rn(t)?!1:r}function Cr(t,r,l,s){r===void 0&&(r=!1),l===void 0&&(l=!1);const c=t.getBoundingClientRect(),u=nm(t);let m=Yn(1);r&&(s?kn(s)&&(m=kl(s)):m=kl(t));const h=lA(u,l,s)?pb(u):Yn(0);let g=(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=rn(u),T=s&&kn(s)?rn(s):s;let E=S,N=ff(E);for(;N&&s&&T!==E;){const C=kl(N),R=N.getBoundingClientRect(),k=jn(N),_=R.left+(N.clientLeft+parseFloat(k.paddingLeft))*C.x,U=R.top+(N.clientTop+parseFloat(k.paddingTop))*C.y;g*=C.x,p*=C.y,b*=C.x,y*=C.y,g+=_,p+=U,E=rn(N),N=ff(E)}}return qi({width:b,height:y,x:g,y:p})}function dc(t,r){const l=uc(t).scrollLeft;return r?r.left+l:Cr(In(t)).left+l}function gb(t,r){const l=t.getBoundingClientRect(),s=l.left+r.scrollLeft-dc(t,l),c=l.top+r.scrollTop;return{x:s,y:c}}function oA(t){let{elements:r,rect:l,offsetParent:s,strategy:c}=t;const u=c==="fixed",m=In(s),h=r?cc(r.floating):!1;if(s===m||h&&u)return l;let g={scrollLeft:0,scrollTop:0},p=Yn(1);const b=Yn(0),y=ga(s);if((y||!y&&!u)&&((Hl(s)!=="body"||as(m))&&(g=uc(s)),y)){const T=Cr(s);p=kl(s),b.x=T.x+s.clientLeft,b.y=T.y+s.clientTop}const S=m&&!y&&!u?gb(m,g):Yn(0);return{width:l.width*p.x,height:l.height*p.y,x:l.x*p.x-g.scrollLeft*p.x+b.x+S.x,y:l.y*p.y-g.scrollTop*p.y+b.y+S.y}}function sA(t){return Array.from(t.getClientRects())}function iA(t){const r=In(t),l=uc(t),s=t.ownerDocument.body,c=an(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),u=an(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let m=-l.scrollLeft+dc(t);const h=-l.scrollTop;return jn(s).direction==="rtl"&&(m+=an(r.clientWidth,s.clientWidth)-c),{width:c,height:u,x:m,y:h}}const Wv=25;function cA(t,r){const l=rn(t),s=In(t),c=l.visualViewport;let u=s.clientWidth,m=s.clientHeight,h=0,g=0;if(c){u=c.width,m=c.height;const b=tm();(!b||b&&r==="fixed")&&(h=c.offsetLeft,g=c.offsetTop)}const p=dc(s);if(p<=0){const b=s.ownerDocument,y=b.body,S=getComputedStyle(y),T=b.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,E=Math.abs(s.clientWidth-y.clientWidth-T);E<=Wv&&(u-=E)}else p<=Wv&&(u+=p);return{width:u,height:m,x:h,y:g}}function uA(t,r){const l=Cr(t,!0,r==="fixed"),s=l.top+t.clientTop,c=l.left+t.clientLeft,u=ga(t)?kl(t):Yn(1),m=t.clientWidth*u.x,h=t.clientHeight*u.y,g=c*u.x,p=s*u.y;return{width:m,height:h,x:g,y:p}}function Jv(t,r,l){let s;if(r==="viewport")s=cA(t,l);else if(r==="document")s=iA(In(t));else if(kn(r))s=uA(r,l);else{const c=pb(t);s={x:r.x-c.x,y:r.y-c.y,width:r.width,height:r.height}}return qi(s)}function vb(t,r){const l=Fa(t);return l===r||!kn(l)||Ml(l)?!1:jn(l).position==="fixed"||vb(l,r)}function dA(t,r){const l=r.get(t);if(l)return l;let s=Jo(t,[],!1).filter(h=>kn(h)&&Hl(h)!=="body"),c=null;const u=jn(t).position==="fixed";let m=u?Fa(t):t;for(;kn(m)&&!Ml(m);){const h=jn(m),g=em(m);!g&&h.position==="fixed"&&(c=null),(u?!g&&!c:!g&&h.position==="static"&&!!c&&(c.position==="absolute"||c.position==="fixed")||as(m)&&!g&&vb(t,m))?s=s.filter(b=>b!==m):c=h,m=Fa(m)}return r.set(t,s),s}function fA(t){let{element:r,boundary:l,rootBoundary:s,strategy:c}=t;const m=[...l==="clippingAncestors"?cc(r)?[]:dA(r,this._c):[].concat(l),s],h=Jv(r,m[0],c);let g=h.top,p=h.right,b=h.bottom,y=h.left;for(let S=1;S<m.length;S++){const T=Jv(r,m[S],c);g=an(T.top,g),p=Za(T.right,p),b=Za(T.bottom,b),y=an(T.left,y)}return{width:p-y,height:b-g,x:y,y:g}}function mA(t){const{width:r,height:l}=hb(t);return{width:r,height:l}}function hA(t,r,l){const s=ga(r),c=In(r),u=l==="fixed",m=Cr(t,!0,u,r);let h={scrollLeft:0,scrollTop:0};const g=Yn(0);function p(){g.x=dc(c)}if(s||!s&&!u)if((Hl(r)!=="body"||as(c))&&(h=uc(r)),s){const T=Cr(r,!0,u,r);g.x=T.x+r.clientLeft,g.y=T.y+r.clientTop}else c&&p();u&&!s&&c&&p();const b=c&&!s&&!u?gb(c,h):Yn(0),y=m.left+h.scrollLeft-g.x-b.x,S=m.top+h.scrollTop-g.y-b.y;return{x:y,y:S,width:m.width,height:m.height}}function Gd(t){return jn(t).position==="static"}function e0(t,r){if(!ga(t)||jn(t).position==="fixed")return null;if(r)return r(t);let l=t.offsetParent;return In(t)===l&&(l=l.ownerDocument.body),l}function yb(t,r){const l=rn(t);if(cc(t))return l;if(!ga(t)){let c=Fa(t);for(;c&&!Ml(c);){if(kn(c)&&!Gd(c))return c;c=Fa(c)}return l}let s=e0(t,r);for(;s&&eA(s)&&Gd(s);)s=e0(s,r);return s&&Ml(s)&&Gd(s)&&!em(s)?l:s||aA(t)||l}const pA=async function(t){const r=this.getOffsetParent||yb,l=this.getDimensions,s=await l(t.floating);return{reference:hA(t.reference,await r(t.floating),t.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function gA(t){return jn(t).direction==="rtl"}const vA={convertOffsetParentRelativeRectToViewportRelativeRect:oA,getDocumentElement:In,getClippingRect:fA,getOffsetParent:yb,getElementRects:pA,getClientRects:sA,getDimensions:mA,getScale:kl,isElement:kn,isRTL:gA};function bb(t,r){return t.x===r.x&&t.y===r.y&&t.width===r.width&&t.height===r.height}function yA(t,r){let l=null,s;const c=In(t);function u(){var h;clearTimeout(s),(h=l)==null||h.disconnect(),l=null}function m(h,g){h===void 0&&(h=!1),g===void 0&&(g=1),u();const p=t.getBoundingClientRect(),{left:b,top:y,width:S,height:T}=p;if(h||r(),!S||!T)return;const E=Ti(y),N=Ti(c.clientWidth-(b+S)),C=Ti(c.clientHeight-(y+T)),R=Ti(b),_={rootMargin:-E+"px "+-N+"px "+-C+"px "+-R+"px",threshold:an(0,Za(1,g))||1};let U=!0;function z(G){const V=G[0].intersectionRatio;if(V!==g){if(!U)return m();V?m(!1,V):s=setTimeout(()=>{m(!1,1e-7)},1e3)}V===1&&!bb(p,t.getBoundingClientRect())&&m(),U=!1}try{l=new IntersectionObserver(z,{..._,root:c.ownerDocument})}catch{l=new IntersectionObserver(z,_)}l.observe(t)}return m(!0),u}function bA(t,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:g=!1}=s,p=nm(t),b=c||u?[...p?Jo(p):[],...r?Jo(r):[]]:[];b.forEach(R=>{c&&R.addEventListener("scroll",l,{passive:!0}),u&&R.addEventListener("resize",l)});const y=p&&h?yA(p,l):null;let S=-1,T=null;m&&(T=new ResizeObserver(R=>{let[k]=R;k&&k.target===p&&T&&r&&(T.unobserve(r),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var _;(_=T)==null||_.observe(r)})),l()}),p&&!g&&T.observe(p),r&&T.observe(r));let E,N=g?Cr(t):null;g&&C();function C(){const R=Cr(t);N&&!bb(N,R)&&l(),N=R,E=requestAnimationFrame(C)}return l(),()=>{var R;b.forEach(k=>{c&&k.removeEventListener("scroll",l),u&&k.removeEventListener("resize",l)}),y==null||y(),(R=T)==null||R.disconnect(),T=null,g&&cancelAnimationFrame(E)}}const xA=Z5,SA=F5,wA=X5,EA=J5,NA=Q5,t0=I5,TA=W5,CA=(t,r,l)=>{const s=new Map,c={platform:vA,...l},u={...c.platform,_c:s};return G5(t,r,{...c,platform:u})};var RA=typeof document<"u",AA=function(){},_i=RA?v.useLayoutEffect:AA;function Vi(t,r){if(t===r)return!0;if(typeof t!=typeof r)return!1;if(typeof t=="function"&&t.toString()===r.toString())return!0;let l,s,c;if(t&&r&&typeof t=="object"){if(Array.isArray(t)){if(l=t.length,l!==r.length)return!1;for(s=l;s--!==0;)if(!Vi(t[s],r[s]))return!1;return!0}if(c=Object.keys(t),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"&&t.$$typeof)&&!Vi(t[u],r[u]))return!1}return!0}return t!==t&&r!==r}function xb(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function n0(t,r){const l=xb(t);return Math.round(r*l)/l}function Id(t){const r=v.useRef(t);return _i(()=>{r.current=t}),r}function kA(t){t===void 0&&(t={});const{placement:r="bottom",strategy:l="absolute",middleware:s=[],platform:c,elements:{reference:u,floating:m}={},transform:h=!0,whileElementsMounted:g,open:p}=t,[b,y]=v.useState({x:0,y:0,strategy:l,placement:r,middlewareData:{},isPositioned:!1}),[S,T]=v.useState(s);Vi(S,s)||T(s);const[E,N]=v.useState(null),[C,R]=v.useState(null),k=v.useCallback(K=>{K!==G.current&&(G.current=K,N(K))},[]),_=v.useCallback(K=>{K!==V.current&&(V.current=K,R(K))},[]),U=u||E,z=m||C,G=v.useRef(null),V=v.useRef(null),$=v.useRef(b),le=g!=null,de=Id(g),fe=Id(c),F=Id(p),te=v.useCallback(()=>{if(!G.current||!V.current)return;const K={placement:r,strategy:l,middleware:S};fe.current&&(K.platform=fe.current),CA(G.current,V.current,K).then(me=>{const A={...me,isPositioned:F.current!==!1};ie.current&&!Vi($.current,A)&&($.current=A,ns.flushSync(()=>{y(A)}))})},[S,r,l,fe,F]);_i(()=>{p===!1&&$.current.isPositioned&&($.current.isPositioned=!1,y(K=>({...K,isPositioned:!1})))},[p]);const ie=v.useRef(!1);_i(()=>(ie.current=!0,()=>{ie.current=!1}),[]),_i(()=>{if(U&&(G.current=U),z&&(V.current=z),U&&z){if(de.current)return de.current(U,z,te);te()}},[U,z,te,de,le]);const J=v.useMemo(()=>({reference:G,floating:V,setReference:k,setFloating:_}),[k,_]),M=v.useMemo(()=>({reference:U,floating:z}),[U,z]),q=v.useMemo(()=>{const K={position:l,left:0,top:0};if(!M.floating)return K;const me=n0(M.floating,b.x),A=n0(M.floating,b.y);return h?{...K,transform:"translate("+me+"px, "+A+"px)",...xb(M.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:me,top:A}},[l,h,M.floating,b.x,b.y]);return v.useMemo(()=>({...b,update:te,refs:J,elements:M,floatingStyles:q}),[b,te,J,M,q])}const jA=t=>{function r(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:t,fn(l){const{element:s,padding:c}=typeof t=="function"?t(l):t;return s&&r(s)?s.current!=null?t0({element:s.current,padding:c}).fn(l):{}:s?t0({element:s,padding:c}).fn(l):{}}}},_A=(t,r)=>{const l=xA(t);return{name:l.name,fn:l.fn,options:[t,r]}},MA=(t,r)=>{const l=SA(t);return{name:l.name,fn:l.fn,options:[t,r]}},OA=(t,r)=>({fn:TA(t).fn,options:[t,r]}),DA=(t,r)=>{const l=wA(t);return{name:l.name,fn:l.fn,options:[t,r]}},zA=(t,r)=>{const l=EA(t);return{name:l.name,fn:l.fn,options:[t,r]}},LA=(t,r)=>{const l=NA(t);return{name:l.name,fn:l.fn,options:[t,r]}},UA=(t,r)=>{const l=jA(t);return{name:l.name,fn:l.fn,options:[t,r]}};var BA="Arrow",Sb=v.forwardRef((t,r)=>{const{children:l,width:s=10,height:c=5,...u}=t;return f.jsx(Le.svg,{...u,ref:r,width:s,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?l:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Sb.displayName=BA;var HA=Sb;function wb(t){const[r,l]=v.useState(void 0);return Ut(()=>{if(t){l({width:t.offsetWidth,height:t.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 g=u.borderBoxSize,p=Array.isArray(g)?g[0]:g;m=p.inlineSize,h=p.blockSize}else m=t.offsetWidth,h=t.offsetHeight;l({width:m,height:h})});return s.observe(t,{box:"border-box"}),()=>s.unobserve(t)}else l(void 0)},[t]),r}var am="Popper",[Eb,Nb]=Ja(am),[$A,Tb]=Eb(am),Cb=t=>{const{__scopePopper:r,children:l}=t,[s,c]=v.useState(null);return f.jsx($A,{scope:r,anchor:s,onAnchorChange:c,children:l})};Cb.displayName=am;var Rb="PopperAnchor",Ab=v.forwardRef((t,r)=>{const{__scopePopper:l,virtualRef:s,...c}=t,u=Tb(Rb,l),m=v.useRef(null),h=nt(r,m),g=v.useRef(null);return v.useEffect(()=>{const p=g.current;g.current=(s==null?void 0:s.current)||m.current,p!==g.current&&u.onAnchorChange(g.current)}),s?null:f.jsx(Le.div,{...c,ref:h})});Ab.displayName=Rb;var rm="PopperContent",[PA,qA]=Eb(rm),kb=v.forwardRef((t,r)=>{var ue,ce,ae,we,ye,Ee;const{__scopePopper:l,side:s="bottom",sideOffset:c=0,align:u="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:p=[],collisionPadding:b=0,sticky:y="partial",hideWhenDetached:S=!1,updatePositionStrategy:T="optimized",onPlaced:E,...N}=t,C=Tb(rm,l),[R,k]=v.useState(null),_=nt(r,He=>k(He)),[U,z]=v.useState(null),G=wb(U),V=(G==null?void 0:G.width)??0,$=(G==null?void 0:G.height)??0,le=s+(u!=="center"?"-"+u:""),de=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},fe=Array.isArray(p)?p:[p],F=fe.length>0,te={padding:de,boundary:fe.filter(YA),altBoundary:F},{refs:ie,floatingStyles:J,placement:M,isPositioned:q,middlewareData:K}=kA({strategy:"fixed",placement:le,whileElementsMounted:(...He)=>bA(...He,{animationFrame:T==="always"}),elements:{reference:C.anchor},middleware:[_A({mainAxis:c+$,alignmentAxis:m}),g&&MA({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?OA():void 0,...te}),g&&DA({...te}),zA({...te,apply:({elements:He,rects:Ye,availableWidth:Pe,availableHeight:yt})=>{const{width:qe,height:Bt}=Ye.reference,rt=He.floating.style;rt.setProperty("--radix-popper-available-width",`${Pe}px`),rt.setProperty("--radix-popper-available-height",`${yt}px`),rt.setProperty("--radix-popper-anchor-width",`${qe}px`),rt.setProperty("--radix-popper-anchor-height",`${Bt}px`)}}),U&&UA({element:U,padding:h}),GA({arrowWidth:V,arrowHeight:$}),S&&LA({strategy:"referenceHidden",...te})]}),[me,A]=Mb(M),Y=Ka(E);Ut(()=>{q&&(Y==null||Y())},[q,Y]);const se=(ue=K.arrow)==null?void 0:ue.x,X=(ce=K.arrow)==null?void 0:ce.y,ne=((ae=K.arrow)==null?void 0:ae.centerOffset)!==0,[W,ee]=v.useState();return Ut(()=>{R&&ee(window.getComputedStyle(R).zIndex)},[R]),f.jsx("div",{ref:ie.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:q?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[(we=K.transformOrigin)==null?void 0:we.x,(ye=K.transformOrigin)==null?void 0:ye.y].join(" "),...((Ee=K.hide)==null?void 0:Ee.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:f.jsx(PA,{scope:l,placedSide:me,onArrowChange:z,arrowX:se,arrowY:X,shouldHideArrow:ne,children:f.jsx(Le.div,{"data-side":me,"data-align":A,...N,ref:_,style:{...N.style,animation:q?void 0:"none"}})})})});kb.displayName=rm;var jb="PopperArrow",VA={top:"bottom",right:"left",bottom:"top",left:"right"},_b=v.forwardRef(function(r,l){const{__scopePopper:s,...c}=r,u=qA(jb,s),m=VA[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(HA,{...c,ref:l,style:{...c.style,display:"block"}})})});_b.displayName=jb;function YA(t){return t!==null}var GA=t=>({name:"transformOrigin",options:t,fn(r){var C,R,k;const{placement:l,rects:s,middlewareData:c}=r,m=((C=c.arrow)==null?void 0:C.centerOffset)!==0,h=m?0:t.arrowWidth,g=m?0:t.arrowHeight,[p,b]=Mb(l),y={start:"0%",center:"50%",end:"100%"}[b],S=(((R=c.arrow)==null?void 0:R.x)??0)+h/2,T=(((k=c.arrow)==null?void 0:k.y)??0)+g/2;let E="",N="";return p==="bottom"?(E=m?y:`${S}px`,N=`${-g}px`):p==="top"?(E=m?y:`${S}px`,N=`${s.floating.height+g}px`):p==="right"?(E=`${-g}px`,N=m?y:`${T}px`):p==="left"&&(E=`${s.floating.width+g}px`,N=m?y:`${T}px`),{data:{x:E,y:N}}}});function Mb(t){const[r,l="center"]=t.split("-");return[r,l]}var IA=Cb,XA=Ab,QA=kb,KA=_b;function Ob(t){const r=v.useRef({value:t,previous:t});return v.useMemo(()=>(r.current.value!==t&&(r.current.previous=r.current.value,r.current.value=t),r.current.previous),[t])}var Db=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"}),ZA="VisuallyHidden",FA=v.forwardRef((t,r)=>f.jsx(Le.span,{...t,ref:r,style:{...Db,...t.style}}));FA.displayName=ZA;var WA=[" ","Enter","ArrowUp","ArrowDown"],JA=[" ","Enter"],Rr="Select",[fc,mc,ek]=cb(Rr),[$l]=Ja(Rr,[ek,Nb]),hc=Nb(),[tk,er]=$l(Rr),[nk,ak]=$l(Rr),zb=t=>{const{__scopeSelect:r,children:l,open:s,defaultOpen:c,onOpenChange:u,value:m,defaultValue:h,onValueChange:g,dir:p,name:b,autoComplete:y,disabled:S,required:T,form:E}=t,N=hc(r),[C,R]=v.useState(null),[k,_]=v.useState(null),[U,z]=v.useState(!1),G=Zf(p),[V,$]=_l({prop:s,defaultProp:c??!1,onChange:u,caller:Rr}),[le,de]=_l({prop:m,defaultProp:h,onChange:g,caller:Rr}),fe=v.useRef(null),F=C?E||!!C.closest("form"):!0,[te,ie]=v.useState(new Set),J=Array.from(te).map(M=>M.props.value).join(";");return f.jsx(IA,{...N,children:f.jsxs(tk,{required:T,scope:r,trigger:C,onTriggerChange:R,valueNode:k,onValueNodeChange:_,valueNodeHasChildren:U,onValueNodeHasChildrenChange:z,contentId:Xa(),value:le,onValueChange:de,open:V,onOpenChange:$,dir:G,triggerPointerDownPosRef:fe,disabled:S,children:[f.jsx(fc.Provider,{scope:r,children:f.jsx(nk,{scope:t.__scopeSelect,onNativeOptionAdd:v.useCallback(M=>{ie(q=>new Set(q).add(M))},[]),onNativeOptionRemove:v.useCallback(M=>{ie(q=>{const K=new Set(q);return K.delete(M),K})},[]),children:l})}),F?f.jsxs(lx,{"aria-hidden":!0,required:T,tabIndex:-1,name:b,autoComplete:y,value:le,onChange:M=>de(M.target.value),disabled:S,form:E,children:[le===void 0?f.jsx("option",{value:""}):null,Array.from(te)]},J):null]})})};zb.displayName=Rr;var Lb="SelectTrigger",Ub=v.forwardRef((t,r)=>{const{__scopeSelect:l,disabled:s=!1,...c}=t,u=hc(l),m=er(Lb,l),h=m.disabled||s,g=nt(r,m.onTriggerChange),p=mc(l),b=v.useRef("touch"),[y,S,T]=sx(N=>{const C=p().filter(_=>!_.disabled),R=C.find(_=>_.value===m.value),k=ix(C,N,R);k!==void 0&&m.onValueChange(k.value)}),E=N=>{h||(m.onOpenChange(!0),T()),N&&(m.triggerPointerDownPosRef.current={x:Math.round(N.pageX),y:Math.round(N.pageY)})};return f.jsx(XA,{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":ox(m.value)?"":void 0,...c,ref:g,onClick:ze(c.onClick,N=>{N.currentTarget.focus(),b.current!=="mouse"&&E(N)}),onPointerDown:ze(c.onPointerDown,N=>{b.current=N.pointerType;const C=N.target;C.hasPointerCapture(N.pointerId)&&C.releasePointerCapture(N.pointerId),N.button===0&&N.ctrlKey===!1&&N.pointerType==="mouse"&&(E(N),N.preventDefault())}),onKeyDown:ze(c.onKeyDown,N=>{const C=y.current!=="";!(N.ctrlKey||N.altKey||N.metaKey)&&N.key.length===1&&S(N.key),!(C&&N.key===" ")&&WA.includes(N.key)&&(E(),N.preventDefault())})})})});Ub.displayName=Lb;var Bb="SelectValue",Hb=v.forwardRef((t,r)=>{const{__scopeSelect:l,className:s,style:c,children:u,placeholder:m="",...h}=t,g=er(Bb,l),{onValueNodeHasChildrenChange:p}=g,b=u!==void 0,y=nt(r,g.onValueNodeChange);return Ut(()=>{p(b)},[p,b]),f.jsx(Le.span,{...h,ref:y,style:{pointerEvents:"none"},children:ox(g.value)?f.jsx(f.Fragment,{children:m}):u})});Hb.displayName=Bb;var rk="SelectIcon",$b=v.forwardRef((t,r)=>{const{__scopeSelect:l,children:s,...c}=t;return f.jsx(Le.span,{"aria-hidden":!0,...c,ref:r,children:s||"▼"})});$b.displayName=rk;var lk="SelectPortal",Pb=t=>f.jsx(Pf,{asChild:!0,...t});Pb.displayName=lk;var Ar="SelectContent",qb=v.forwardRef((t,r)=>{const l=er(Ar,t.__scopeSelect),[s,c]=v.useState();if(Ut(()=>{c(new DocumentFragment)},[]),!l.open){const u=s;return u?ns.createPortal(f.jsx(Vb,{scope:t.__scopeSelect,children:f.jsx(fc.Slot,{scope:t.__scopeSelect,children:f.jsx("div",{children:t.children})})}),u):null}return f.jsx(Yb,{...t,ref:r})});qb.displayName=Ar;var wn=10,[Vb,tr]=$l(Ar),ok="SelectContentImpl",sk=Wo("SelectContent.RemoveScroll"),Yb=v.forwardRef((t,r)=>{const{__scopeSelect:l,position:s="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:u,onPointerDownOutside:m,side:h,sideOffset:g,align:p,alignOffset:b,arrowPadding:y,collisionBoundary:S,collisionPadding:T,sticky:E,hideWhenDetached:N,avoidCollisions:C,...R}=t,k=er(Ar,l),[_,U]=v.useState(null),[z,G]=v.useState(null),V=nt(r,ue=>U(ue)),[$,le]=v.useState(null),[de,fe]=v.useState(null),F=mc(l),[te,ie]=v.useState(!1),J=v.useRef(!1);v.useEffect(()=>{if(_)return Uy(_)},[_]),Ay();const M=v.useCallback(ue=>{const[ce,...ae]=F().map(Ee=>Ee.ref.current),[we]=ae.slice(-1),ye=document.activeElement;for(const Ee of ue)if(Ee===ye||(Ee==null||Ee.scrollIntoView({block:"nearest"}),Ee===ce&&z&&(z.scrollTop=0),Ee===we&&z&&(z.scrollTop=z.scrollHeight),Ee==null||Ee.focus(),document.activeElement!==ye))return},[F,z]),q=v.useCallback(()=>M([$,_]),[M,$,_]);v.useEffect(()=>{te&&q()},[te,q]);const{onOpenChange:K,triggerPointerDownPosRef:me}=k;v.useEffect(()=>{if(_){let ue={x:0,y:0};const ce=we=>{var ye,Ee;ue={x:Math.abs(Math.round(we.pageX)-(((ye=me.current)==null?void 0:ye.x)??0)),y:Math.abs(Math.round(we.pageY)-(((Ee=me.current)==null?void 0:Ee.y)??0))}},ae=we=>{ue.x<=10&&ue.y<=10?we.preventDefault():_.contains(we.target)||K(!1),document.removeEventListener("pointermove",ce),me.current=null};return me.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",ae,{capture:!0})}}},[_,K,me]),v.useEffect(()=>{const ue=()=>K(!1);return window.addEventListener("blur",ue),window.addEventListener("resize",ue),()=>{window.removeEventListener("blur",ue),window.removeEventListener("resize",ue)}},[K]);const[A,Y]=sx(ue=>{const ce=F().filter(ye=>!ye.disabled),ae=ce.find(ye=>ye.ref.current===document.activeElement),we=ix(ce,ue,ae);we&&setTimeout(()=>we.ref.current.focus())}),se=v.useCallback((ue,ce,ae)=>{const we=!J.current&&!ae;(k.value!==void 0&&k.value===ce||we)&&(le(ue),we&&(J.current=!0))},[k.value]),X=v.useCallback(()=>_==null?void 0:_.focus(),[_]),ne=v.useCallback((ue,ce,ae)=>{const we=!J.current&&!ae;(k.value!==void 0&&k.value===ce||we)&&fe(ue)},[k.value]),W=s==="popper"?mf:Gb,ee=W===mf?{side:h,sideOffset:g,align:p,alignOffset:b,arrowPadding:y,collisionBoundary:S,collisionPadding:T,sticky:E,hideWhenDetached:N,avoidCollisions:C}:{};return f.jsx(Vb,{scope:l,content:_,viewport:z,onViewportChange:G,itemRefCallback:se,selectedItem:$,onItemLeave:X,itemTextRefCallback:ne,focusSelectedItem:q,selectedItemText:de,position:s,isPositioned:te,searchRef:A,children:f.jsx(qf,{as:sk,allowPinchZoom:!0,children:f.jsx($f,{asChild:!0,trapped:k.open,onMountAutoFocus:ue=>{ue.preventDefault()},onUnmountAutoFocus:ze(c,ue=>{var ce;(ce=k.trigger)==null||ce.focus({preventScroll:!0}),ue.preventDefault()}),children:f.jsx(Hf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:ue=>ue.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:f.jsx(W,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:ue=>ue.preventDefault(),...R,...ee,onPlaced:()=>ie(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:ze(R.onKeyDown,ue=>{const ce=ue.ctrlKey||ue.altKey||ue.metaKey;if(ue.key==="Tab"&&ue.preventDefault(),!ce&&ue.key.length===1&&Y(ue.key),["ArrowUp","ArrowDown","Home","End"].includes(ue.key)){let we=F().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(ue.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(ue.key)){const ye=ue.target,Ee=we.indexOf(ye);we=we.slice(Ee+1)}setTimeout(()=>M(we)),ue.preventDefault()}})})})})})})});Yb.displayName=ok;var ik="SelectItemAlignedPosition",Gb=v.forwardRef((t,r)=>{const{__scopeSelect:l,onPlaced:s,...c}=t,u=er(Ar,l),m=tr(Ar,l),[h,g]=v.useState(null),[p,b]=v.useState(null),y=nt(r,V=>b(V)),S=mc(l),T=v.useRef(!1),E=v.useRef(!0),{viewport:N,selectedItem:C,selectedItemText:R,focusSelectedItem:k}=m,_=v.useCallback(()=>{if(u.trigger&&u.valueNode&&h&&p&&N&&C&&R){const V=u.trigger.getBoundingClientRect(),$=p.getBoundingClientRect(),le=u.valueNode.getBoundingClientRect(),de=R.getBoundingClientRect();if(u.dir!=="rtl"){const ye=de.left-$.left,Ee=le.left-ye,He=V.left-Ee,Ye=V.width+He,Pe=Math.max(Ye,$.width),yt=window.innerWidth-wn,qe=Gv(Ee,[wn,Math.max(wn,yt-Pe)]);h.style.minWidth=Ye+"px",h.style.left=qe+"px"}else{const ye=$.right-de.right,Ee=window.innerWidth-le.right-ye,He=window.innerWidth-V.right-Ee,Ye=V.width+He,Pe=Math.max(Ye,$.width),yt=window.innerWidth-wn,qe=Gv(Ee,[wn,Math.max(wn,yt-Pe)]);h.style.minWidth=Ye+"px",h.style.right=qe+"px"}const fe=S(),F=window.innerHeight-wn*2,te=N.scrollHeight,ie=window.getComputedStyle(p),J=parseInt(ie.borderTopWidth,10),M=parseInt(ie.paddingTop,10),q=parseInt(ie.borderBottomWidth,10),K=parseInt(ie.paddingBottom,10),me=J+M+te+K+q,A=Math.min(C.offsetHeight*5,me),Y=window.getComputedStyle(N),se=parseInt(Y.paddingTop,10),X=parseInt(Y.paddingBottom,10),ne=V.top+V.height/2-wn,W=F-ne,ee=C.offsetHeight/2,ue=C.offsetTop+ee,ce=J+M+ue,ae=me-ce;if(ce<=ne){const ye=fe.length>0&&C===fe[fe.length-1].ref.current;h.style.bottom="0px";const Ee=p.clientHeight-N.offsetTop-N.offsetHeight,He=Math.max(W,ee+(ye?X:0)+Ee+q),Ye=ce+He;h.style.height=Ye+"px"}else{const ye=fe.length>0&&C===fe[0].ref.current;h.style.top="0px";const He=Math.max(ne,J+N.offsetTop+(ye?se:0)+ee)+ae;h.style.height=He+"px",N.scrollTop=ce-ne+N.offsetTop}h.style.margin=`${wn}px 0`,h.style.minHeight=A+"px",h.style.maxHeight=F+"px",s==null||s(),requestAnimationFrame(()=>T.current=!0)}},[S,u.trigger,u.valueNode,h,p,N,C,R,u.dir,s]);Ut(()=>_(),[_]);const[U,z]=v.useState();Ut(()=>{p&&z(window.getComputedStyle(p).zIndex)},[p]);const G=v.useCallback(V=>{V&&E.current===!0&&(_(),k==null||k(),E.current=!1)},[_,k]);return f.jsx(uk,{scope:l,contentWrapper:h,shouldExpandOnScrollRef:T,onScrollButtonChange:G,children:f.jsx("div",{ref:g,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}})})})});Gb.displayName=ik;var ck="SelectPopperPosition",mf=v.forwardRef((t,r)=>{const{__scopeSelect:l,align:s="start",collisionPadding:c=wn,...u}=t,m=hc(l);return f.jsx(QA,{...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)"}})});mf.displayName=ck;var[uk,lm]=$l(Ar,{}),hf="SelectViewport",Ib=v.forwardRef((t,r)=>{const{__scopeSelect:l,nonce:s,...c}=t,u=tr(hf,l),m=lm(hf,l),h=nt(r,u.onViewportChange),g=v.useRef(0);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),f.jsx(fc.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 T=Math.abs(g.current-b.scrollTop);if(T>0){const E=window.innerHeight-wn*2,N=parseFloat(y.style.minHeight),C=parseFloat(y.style.height),R=Math.max(N,C);if(R<E){const k=R+T,_=Math.min(E,k),U=k-_;y.style.height=_+"px",y.style.bottom==="0px"&&(b.scrollTop=U>0?U:0,y.style.justifyContent="flex-end")}}}g.current=b.scrollTop})})})]})});Ib.displayName=hf;var Xb="SelectGroup",[dk,fk]=$l(Xb),mk=v.forwardRef((t,r)=>{const{__scopeSelect:l,...s}=t,c=Xa();return f.jsx(dk,{scope:l,id:c,children:f.jsx(Le.div,{role:"group","aria-labelledby":c,...s,ref:r})})});mk.displayName=Xb;var Qb="SelectLabel",Kb=v.forwardRef((t,r)=>{const{__scopeSelect:l,...s}=t,c=fk(Qb,l);return f.jsx(Le.div,{id:c.id,...s,ref:r})});Kb.displayName=Qb;var Yi="SelectItem",[hk,Zb]=$l(Yi),Fb=v.forwardRef((t,r)=>{const{__scopeSelect:l,value:s,disabled:c=!1,textValue:u,...m}=t,h=er(Yi,l),g=tr(Yi,l),p=h.value===s,[b,y]=v.useState(u??""),[S,T]=v.useState(!1),E=nt(r,k=>{var _;return(_=g.itemRefCallback)==null?void 0:_.call(g,k,s,c)}),N=Xa(),C=v.useRef("touch"),R=()=>{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(hk,{scope:l,value:s,disabled:c,textId:N,isSelected:p,onItemTextChange:v.useCallback(k=>{y(_=>_||((k==null?void 0:k.textContent)??"").trim())},[]),children:f.jsx(fc.ItemSlot,{scope:l,value:s,disabled:c,textValue:b,children:f.jsx(Le.div,{role:"option","aria-labelledby":N,"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:E,onFocus:ze(m.onFocus,()=>T(!0)),onBlur:ze(m.onBlur,()=>T(!1)),onClick:ze(m.onClick,()=>{C.current!=="mouse"&&R()}),onPointerUp:ze(m.onPointerUp,()=>{C.current==="mouse"&&R()}),onPointerDown:ze(m.onPointerDown,k=>{C.current=k.pointerType}),onPointerMove:ze(m.onPointerMove,k=>{var _;C.current=k.pointerType,c?(_=g.onItemLeave)==null||_.call(g):C.current==="mouse"&&k.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ze(m.onPointerLeave,k=>{var _;k.currentTarget===document.activeElement&&((_=g.onItemLeave)==null||_.call(g))}),onKeyDown:ze(m.onKeyDown,k=>{var U;((U=g.searchRef)==null?void 0:U.current)!==""&&k.key===" "||(JA.includes(k.key)&&R(),k.key===" "&&k.preventDefault())})})})})});Fb.displayName=Yi;var Go="SelectItemText",Wb=v.forwardRef((t,r)=>{const{__scopeSelect:l,className:s,style:c,...u}=t,m=er(Go,l),h=tr(Go,l),g=Zb(Go,l),p=ak(Go,l),[b,y]=v.useState(null),S=nt(r,R=>y(R),g.onItemTextChange,R=>{var k;return(k=h.itemTextRefCallback)==null?void 0:k.call(h,R,g.value,g.disabled)}),T=b==null?void 0:b.textContent,E=v.useMemo(()=>f.jsx("option",{value:g.value,disabled:g.disabled,children:T},g.value),[g.disabled,g.value,T]),{onNativeOptionAdd:N,onNativeOptionRemove:C}=p;return Ut(()=>(N(E),()=>C(E)),[N,C,E]),f.jsxs(f.Fragment,{children:[f.jsx(Le.span,{id:g.textId,...u,ref:S}),g.isSelected&&m.valueNode&&!m.valueNodeHasChildren?ns.createPortal(u.children,m.valueNode):null]})});Wb.displayName=Go;var Jb="SelectItemIndicator",ex=v.forwardRef((t,r)=>{const{__scopeSelect:l,...s}=t;return Zb(Jb,l).isSelected?f.jsx(Le.span,{"aria-hidden":!0,...s,ref:r}):null});ex.displayName=Jb;var pf="SelectScrollUpButton",tx=v.forwardRef((t,r)=>{const l=tr(pf,t.__scopeSelect),s=lm(pf,t.__scopeSelect),[c,u]=v.useState(!1),m=nt(r,s.onScrollButtonChange);return Ut(()=>{if(l.viewport&&l.isPositioned){let h=function(){const p=g.scrollTop>0;u(p)};const g=l.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[l.viewport,l.isPositioned]),c?f.jsx(ax,{...t,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=l;h&&g&&(h.scrollTop=h.scrollTop-g.offsetHeight)}}):null});tx.displayName=pf;var gf="SelectScrollDownButton",nx=v.forwardRef((t,r)=>{const l=tr(gf,t.__scopeSelect),s=lm(gf,t.__scopeSelect),[c,u]=v.useState(!1),m=nt(r,s.onScrollButtonChange);return Ut(()=>{if(l.viewport&&l.isPositioned){let h=function(){const p=g.scrollHeight-g.clientHeight,b=Math.ceil(g.scrollTop)<p;u(b)};const g=l.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[l.viewport,l.isPositioned]),c?f.jsx(ax,{...t,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=l;h&&g&&(h.scrollTop=h.scrollTop+g.offsetHeight)}}):null});nx.displayName=gf;var ax=v.forwardRef((t,r)=>{const{__scopeSelect:l,onAutoScroll:s,...c}=t,u=tr("SelectScrollButton",l),m=v.useRef(null),h=mc(l),g=v.useCallback(()=>{m.current!==null&&(window.clearInterval(m.current),m.current=null)},[]);return v.useEffect(()=>()=>g(),[g]),Ut(()=>{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,()=>{g()})})}),pk="SelectSeparator",rx=v.forwardRef((t,r)=>{const{__scopeSelect:l,...s}=t;return f.jsx(Le.div,{"aria-hidden":!0,...s,ref:r})});rx.displayName=pk;var vf="SelectArrow",gk=v.forwardRef((t,r)=>{const{__scopeSelect:l,...s}=t,c=hc(l),u=er(vf,l),m=tr(vf,l);return u.open&&m.position==="popper"?f.jsx(KA,{...c,...s,ref:r}):null});gk.displayName=vf;var vk="SelectBubbleInput",lx=v.forwardRef(({__scopeSelect:t,value:r,...l},s)=>{const c=v.useRef(null),u=nt(s,c),m=Ob(r);return v.useEffect(()=>{const h=c.current;if(!h)return;const g=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(g,"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:{...Db,...l.style},ref:u,defaultValue:r})});lx.displayName=vk;function ox(t){return t===""||t===void 0}function sx(t){const r=Ka(t),l=v.useRef(""),s=v.useRef(0),c=v.useCallback(m=>{const h=l.current+m;r(h),(function g(p){l.current=p,window.clearTimeout(s.current),p!==""&&(s.current=window.setTimeout(()=>g(""),1e3))})(h)},[r]),u=v.useCallback(()=>{l.current="",window.clearTimeout(s.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(s.current),[]),[l,c,u]}function ix(t,r,l){const c=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,u=l?t.indexOf(l):-1;let m=yk(t,Math.max(u,0));c.length===1&&(m=m.filter(p=>p!==l));const g=m.find(p=>p.textValue.toLowerCase().startsWith(c.toLowerCase()));return g!==l?g:void 0}function yk(t,r){return t.map((l,s)=>t[(r+s)%t.length])}var bk=zb,cx=Ub,xk=Hb,Sk=$b,wk=Pb,ux=qb,Ek=Ib,dx=Kb,fx=Fb,Nk=Wb,Tk=ex,mx=tx,hx=nx,px=rx;const gx=bk,vx=xk,om=v.forwardRef(({className:t,children:r,...l},s)=>f.jsxs(cx,{ref:s,className:re("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",t),...l,children:[r,f.jsx(Sk,{asChild:!0,children:f.jsx(Fo,{className:"h-4 w-4 opacity-50"})})]}));om.displayName=cx.displayName;const yx=v.forwardRef(({className:t,...r},l)=>f.jsx(mx,{ref:l,className:re("flex cursor-default items-center justify-center py-1",t),...r,children:f.jsx(_N,{className:"h-4 w-4"})}));yx.displayName=mx.displayName;const bx=v.forwardRef(({className:t,...r},l)=>f.jsx(hx,{ref:l,className:re("flex cursor-default items-center justify-center py-1",t),...r,children:f.jsx(Fo,{className:"h-4 w-4"})}));bx.displayName=hx.displayName;const sm=v.forwardRef(({className:t,children:r,position:l="popper",...s},c)=>f.jsx(wk,{children:f.jsxs(ux,{ref:c,className:re("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",t),position:l,...s,children:[f.jsx(yx,{}),f.jsx(Ek,{className:re("p-1",l==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),f.jsx(bx,{})]})}));sm.displayName=ux.displayName;const Ck=v.forwardRef(({className:t,...r},l)=>f.jsx(dx,{ref:l,className:re("py-1 pl-6 pr-2 text-[10px] font-semibold",t),...r}));Ck.displayName=dx.displayName;const Rl=v.forwardRef(({className:t,children:r,...l},s)=>f.jsxs(fx,{ref:s,className:re("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",t),...l,children:[f.jsx("span",{className:"absolute left-1.5 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(Tk,{children:f.jsx(Li,{className:"h-3.5 w-3.5"})})}),f.jsx(Nk,{children:r})]}));Rl.displayName=fx.displayName;const Rk=v.forwardRef(({className:t,...r},l)=>f.jsx(px,{ref:l,className:re("-mx-1 my-1 h-px bg-muted",t),...r}));Rk.displayName=px.displayName;var Xd="rovingFocusGroup.onEntryFocus",Ak={bubbles:!1,cancelable:!0},rs="RovingFocusGroup",[yf,xx,kk]=cb(rs),[jk,Sx]=Ja(rs,[kk]),[_k,Mk]=jk(rs),wx=v.forwardRef((t,r)=>f.jsx(yf.Provider,{scope:t.__scopeRovingFocusGroup,children:f.jsx(yf.Slot,{scope:t.__scopeRovingFocusGroup,children:f.jsx(Ok,{...t,ref:r})})}));wx.displayName=rs;var Ok=v.forwardRef((t,r)=>{const{__scopeRovingFocusGroup:l,orientation:s,loop:c=!1,dir:u,currentTabStopId:m,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:g,onEntryFocus:p,preventScrollOnEntryFocus:b=!1,...y}=t,S=v.useRef(null),T=nt(r,S),E=Zf(u),[N,C]=_l({prop:m,defaultProp:h??null,onChange:g,caller:rs}),[R,k]=v.useState(!1),_=Ka(p),U=xx(l),z=v.useRef(!1),[G,V]=v.useState(0);return v.useEffect(()=>{const $=S.current;if($)return $.addEventListener(Xd,_),()=>$.removeEventListener(Xd,_)},[_]),f.jsx(_k,{scope:l,orientation:s,dir:E,loop:c,currentTabStopId:N,onItemFocus:v.useCallback($=>C($),[C]),onItemShiftTab:v.useCallback(()=>k(!0),[]),onFocusableItemAdd:v.useCallback(()=>V($=>$+1),[]),onFocusableItemRemove:v.useCallback(()=>V($=>$-1),[]),children:f.jsx(Le.div,{tabIndex:R||G===0?-1:0,"data-orientation":s,...y,ref:T,style:{outline:"none",...t.style},onMouseDown:ze(t.onMouseDown,()=>{z.current=!0}),onFocus:ze(t.onFocus,$=>{const le=!z.current;if($.target===$.currentTarget&&le&&!R){const de=new CustomEvent(Xd,Ak);if($.currentTarget.dispatchEvent(de),!de.defaultPrevented){const fe=U().filter(M=>M.focusable),F=fe.find(M=>M.active),te=fe.find(M=>M.id===N),J=[F,te,...fe].filter(Boolean).map(M=>M.ref.current);Tx(J,b)}}z.current=!1}),onBlur:ze(t.onBlur,()=>k(!1))})})}),Ex="RovingFocusGroupItem",Nx=v.forwardRef((t,r)=>{const{__scopeRovingFocusGroup:l,focusable:s=!0,active:c=!1,tabStopId:u,children:m,...h}=t,g=Xa(),p=u||g,b=Mk(Ex,l),y=b.currentTabStopId===p,S=xx(l),{onFocusableItemAdd:T,onFocusableItemRemove:E,currentTabStopId:N}=b;return v.useEffect(()=>{if(s)return T(),()=>E()},[s,T,E]),f.jsx(yf.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(t.onMouseDown,C=>{s?b.onItemFocus(p):C.preventDefault()}),onFocus:ze(t.onFocus,()=>b.onItemFocus(p)),onKeyDown:ze(t.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){b.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const R=Lk(C,b.orientation,b.dir);if(R!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let _=S().filter(U=>U.focusable).map(U=>U.ref.current);if(R==="last")_.reverse();else if(R==="prev"||R==="next"){R==="prev"&&_.reverse();const U=_.indexOf(C.currentTarget);_=b.loop?Uk(_,U+1):_.slice(U+1)}setTimeout(()=>Tx(_))}}),children:typeof m=="function"?m({isCurrentTabStop:y,hasTabStop:N!=null}):m})})});Nx.displayName=Ex;var Dk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zk(t,r){return r!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function Lk(t,r,l){const s=zk(t.key,l);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return Dk[s]}function Tx(t,r=!1){const l=document.activeElement;for(const s of t)if(s===l||(s.focus({preventScroll:r}),document.activeElement!==l))return}function Uk(t,r){return t.map((l,s)=>t[(r+s)%t.length])}var Bk=wx,Hk=Nx,pc="Tabs",[$k]=Ja(pc,[Sx]),Cx=Sx(),[Pk,im]=$k(pc),Rx=v.forwardRef((t,r)=>{const{__scopeTabs:l,value:s,onValueChange:c,defaultValue:u,orientation:m="horizontal",dir:h,activationMode:g="automatic",...p}=t,b=Zf(h),[y,S]=_l({prop:s,onChange:c,defaultProp:u??"",caller:pc});return f.jsx(Pk,{scope:l,baseId:Xa(),value:y,onValueChange:S,orientation:m,dir:b,activationMode:g,children:f.jsx(Le.div,{dir:b,"data-orientation":m,...p,ref:r})})});Rx.displayName=pc;var Ax="TabsList",kx=v.forwardRef((t,r)=>{const{__scopeTabs:l,loop:s=!0,...c}=t,u=im(Ax,l),m=Cx(l);return f.jsx(Bk,{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})})});kx.displayName=Ax;var jx="TabsTrigger",_x=v.forwardRef((t,r)=>{const{__scopeTabs:l,value:s,disabled:c=!1,...u}=t,m=im(jx,l),h=Cx(l),g=Dx(m.baseId,s),p=zx(m.baseId,s),b=s===m.value;return f.jsx(Hk,{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:g,...u,ref:r,onMouseDown:ze(t.onMouseDown,y=>{!c&&y.button===0&&y.ctrlKey===!1?m.onValueChange(s):y.preventDefault()}),onKeyDown:ze(t.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&m.onValueChange(s)}),onFocus:ze(t.onFocus,()=>{const y=m.activationMode!=="manual";!b&&!c&&y&&m.onValueChange(s)})})})});_x.displayName=jx;var Mx="TabsContent",Ox=v.forwardRef((t,r)=>{const{__scopeTabs:l,value:s,forceMount:c,children:u,...m}=t,h=im(Mx,l),g=Dx(h.baseId,s),p=zx(h.baseId,s),b=s===h.value,y=v.useRef(b);return v.useEffect(()=>{const S=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(S)},[]),f.jsx(Ul,{present:c||b,children:({present:S})=>f.jsx(Le.div,{"data-state":b?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":g,hidden:!S,id:p,tabIndex:0,...m,ref:r,style:{...t.style,animationDuration:y.current?"0s":void 0},children:S&&u})})});Ox.displayName=Mx;function Dx(t,r){return`${t}-trigger-${r}`}function zx(t,r){return`${t}-content-${r}`}var qk=Rx,Lx=kx,Ux=_x,Bx=Ox;const Vk=qk,Hx=v.forwardRef(({className:t,...r},l)=>f.jsx(Lx,{ref:l,className:re("inline-flex h-8 items-center justify-center rounded-sm bg-muted/72 p-0.5 text-muted-foreground shadow-inner shadow-background/40",t),...r}));Hx.displayName=Lx.displayName;const Io=v.forwardRef(({className:t,...r},l)=>f.jsx(Ux,{ref:l,className:re("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)]",t),...r}));Io.displayName=Ux.displayName;const Xo=v.forwardRef(({className:t,...r},l)=>f.jsx(Bx,{ref:l,className:re("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",t),...r}));Xo.displayName=Bx.displayName;var $x="AlertDialog",[Yk]=Ja($x,[Hy]),va=Hy(),Px=t=>{const{__scopeAlertDialog:r,...l}=t,s=va(r);return f.jsx(tb,{...s,...l,modal:!0})};Px.displayName=$x;var Gk="AlertDialogTrigger",qx=v.forwardRef((t,r)=>{const{__scopeAlertDialog:l,...s}=t,c=va(l);return f.jsx(nb,{...c,...s,ref:r})});qx.displayName=Gk;var Ik="AlertDialogPortal",Vx=t=>{const{__scopeAlertDialog:r,...l}=t,s=va(r);return f.jsx(ab,{...s,...l})};Vx.displayName=Ik;var Xk="AlertDialogOverlay",Yx=v.forwardRef((t,r)=>{const{__scopeAlertDialog:l,...s}=t,c=va(l);return f.jsx(If,{...c,...s,ref:r})});Yx.displayName=Xk;var jl="AlertDialogContent",[Qk,Kk]=Yk(jl),Zk=iR("AlertDialogContent"),Gx=v.forwardRef((t,r)=>{const{__scopeAlertDialog:l,children:s,...c}=t,u=va(l),m=v.useRef(null),h=nt(r,m),g=v.useRef(null);return f.jsx(N5,{contentName:jl,titleName:Ix,docsSlug:"alert-dialog",children:f.jsx(Qk,{scope:l,cancelRef:g,children:f.jsxs(Xf,{role:"alertdialog",...u,...c,ref:h,onOpenAutoFocus:ze(c.onOpenAutoFocus,p=>{var b;p.preventDefault(),(b=g.current)==null||b.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[f.jsx(Zk,{children:s}),f.jsx(Wk,{contentRef:m})]})})})});Gx.displayName=jl;var Ix="AlertDialogTitle",Xx=v.forwardRef((t,r)=>{const{__scopeAlertDialog:l,...s}=t,c=va(l);return f.jsx(Qf,{...c,...s,ref:r})});Xx.displayName=Ix;var Qx="AlertDialogDescription",Kx=v.forwardRef((t,r)=>{const{__scopeAlertDialog:l,...s}=t,c=va(l);return f.jsx(Kf,{...c,...s,ref:r})});Kx.displayName=Qx;var Fk="AlertDialogAction",Zx=v.forwardRef((t,r)=>{const{__scopeAlertDialog:l,...s}=t,c=va(l);return f.jsx(sc,{...c,...s,ref:r})});Zx.displayName=Fk;var Fx="AlertDialogCancel",Wx=v.forwardRef((t,r)=>{const{__scopeAlertDialog:l,...s}=t,{cancelRef:c}=Kk(Fx,l),u=va(l),m=nt(r,c);return f.jsx(sc,{...u,...s,ref:m})});Wx.displayName=Fx;var Wk=({contentRef:t})=>{const r=`\`${jl}\` requires a description for the component to be accessible for screen reader users.
|
|
341
|
-
|
|
342
|
-
You can add a description to the \`${jl}\` by passing a \`${Qx}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
343
|
-
|
|
344
|
-
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 \`${jl}\`. 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.
|
|
345
|
-
|
|
346
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return v.useEffect(()=>{var s;document.getElementById((s=t.current)==null?void 0:s.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},Jk=Px,ej=qx,tj=Vx,Jx=Yx,e1=Gx,t1=Zx,n1=Wx,a1=Xx,r1=Kx;const bf=Jk,xf=ej,nj=tj,l1=v.forwardRef(({className:t,...r},l)=>f.jsx(Jx,{className:re("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",t),...r,ref:l}));l1.displayName=Jx.displayName;const Gi=v.forwardRef(({className:t,...r},l)=>f.jsxs(nj,{children:[f.jsx(l1,{}),f.jsx(e1,{ref:l,className:re("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%]",t),...r})]}));Gi.displayName=e1.displayName;const Ii=({className:t,...r})=>f.jsx("div",{className:re("flex flex-col space-y-1.5 text-center sm:text-left",t),...r});Ii.displayName="AlertDialogHeader";const Xi=({className:t,...r})=>f.jsx("div",{className:re("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r});Xi.displayName="AlertDialogFooter";const Qi=v.forwardRef(({className:t,...r},l)=>f.jsx(a1,{ref:l,className:re("text-sm font-semibold",t),...r}));Qi.displayName=a1.displayName;const Ki=v.forwardRef(({className:t,...r},l)=>f.jsx(r1,{ref:l,className:re("text-[11px] text-muted-foreground",t),...r}));Ki.displayName=r1.displayName;const Zi=v.forwardRef(({className:t,...r},l)=>f.jsx(t1,{ref:l,className:re(Bf(),t),...r}));Zi.displayName=t1.displayName;const Fi=v.forwardRef(({className:t,...r},l)=>f.jsx(n1,{ref:l,className:re(Bf({variant:"outline"}),"mt-2 sm:mt-0",t),...r}));Fi.displayName=n1.displayName;const aj={online:"bg-emerald-500",busy:"bg-amber-500",offline:"bg-destructive"};function rj({status:t}){return f.jsxs("span",{className:"relative inline-flex h-2.5 w-2.5",children:[t==="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:re("relative inline-flex h-2.5 w-2.5 rounded-full",aj[t])})]})}function lj({role:t,size:r="default"}){return f.jsx(Dt,{variant:t==="leader"?"default":"secondary",className:re(r==="compact"?"px-1.5 py-0 text-[9px] leading-4":"text-[11px]"),children:t})}const o1={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 wM({status:t,size:r="default"}){const l=o1[t],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(Dt,{variant:l.variant,className:re("rounded-sm font-medium shadow-none",s,l.className),children:[f.jsx("span",{className:re("rounded-full",l.dotClass)}),t]})}function EM({status:t,isNative:r=!1,size:l="default",className:s}){const c=o1[t],u=[t,r?"native":null].filter(Boolean).join(", "),m=l==="compact"?"h-1.5 w-1.5":"h-2 w-2";return f.jsxs("span",{className:re("inline-flex shrink-0 items-center gap-1",s),title:u,"aria-label":u,children:[f.jsx("span",{className:re("rounded-full",m,c.dotClass),title:t}),r&&f.jsx("span",{className:re("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 NM({priority:t}){const r=oj[t];return f.jsx(Dt,{variant:r.variant,className:"rounded-sm px-1.5 py-0 text-[10px] leading-4 shadow-none",children:r.label})}function sj(t){return[{key:"workspace",label:"Workspace",value:t==null?void 0:t.workspace},{key:"node",label:"Node app",value:t==null?void 0:t.node},{key:"core",label:"Core",value:t==null?void 0:t.core},{key:"dashboard",label:"Dashboard",value:t==null?void 0:t.dashboard},{key:"api",label:"API",value:t==null?void 0:t.api}].filter(l=>l.value)}function wl({label:t,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:t}),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 ij({formatDateTime:t,viewInfo:r}){var s,c,u,m,h,g,p,b;const l=sj(r.packages);return f.jsxs(Xo,{value:"about","data-about-layout":"compact",className:"mt-0 space-y-2",children:[f.jsxs(En,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Nn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Tn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(NN,{className:"h-3.5 w-3.5 text-primary"}),"Repository & runtime"]}),f.jsx(Cn,{className:"text-[10px]",children:"Build source and runtime identity for this node."})]}),f.jsxs(Rn,{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(F0,{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(wl,{label:"Branch",value:((c=r.repository)==null?void 0:c.branch)??"Unavailable",mono:!!((u=r.repository)!=null&&u.branch)}),f.jsx(wl,{label:"Commit",value:((m=r.repository)==null?void 0:m.commit)??"Unavailable",mono:!!((h=r.repository)!=null&&h.commit)}),f.jsx(wl,{label:"Runtime",value:`${r.packageName??"meshy"} ${r.version}`,mono:!0}),f.jsx(wl,{label:"Node.js",value:((g=r.runtime)==null?void 0:g.nodeVersion)??"Unavailable",mono:!!((p=r.runtime)!=null&&p.nodeVersion)}),f.jsx(wl,{label:"PID",value:r.runtime?String(r.runtime.pid):"Unavailable",mono:!!r.runtime}),f.jsx(wl,{label:"Started",value:t((b=r.runtime)==null?void 0:b.startedAt)})]})]})]}),f.jsxs(En,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Nn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Tn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(GN,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),f.jsx(Cn,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),f.jsx(Rn,{"data-package-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:l.map(y=>{var S,T;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(Dt,{variant:"outline",className:"w-fit rounded-sm border-border/70 bg-background/60 font-mono text-[10px]",children:(T=y.value)==null?void 0:T.version})]},y.key)})})]})]})}const TM="codex",CM="bypass",cj=[{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"}],RM=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],AM=new Set(cj.filter(t=>t.supportsFollowUp).map(t=>t.value)),kM=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],jM=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],uj=new Set(["pending","assigned"]),dj=new Set(["running"]),fj=new Set(["completed","failed","cancelled"]),_M=10;function MM(t,r){switch(r){case"running":return dj.has(t.status);case"waiting":return uj.has(t.status);case"closed":return fj.has(t.status);case"shared":return!!t.activeShare;case"archived":return t.status==="archived";case"active":default:return t.status!=="archived"}}function OM(t,r){if(r==="all")return!0;const l=t.conversationKind==="nativeSession";return r==="native"?l:!l}function DM(t,r){const l=r.trim().toLowerCase();return l?[t.title,t.description,t.id,t.agent,t.assignedTo??"",t.assignedNodeName??"",t.project??"",t.effectiveProjectPath??"",t.conversationKind==="nativeSession"?"native session":"meshy chat",t.activeShare?"shared conversation":""].some(s=>s.toLowerCase().includes(l)):!0}function mj(t,r,l){if(!t)return"unassigned";const s=r==null?void 0:r.find(c=>c.id===t);return(s==null?void 0:s.name)??l??t.slice(0,8)}function zM(t,r,l){return mj(t,r,l).toLowerCase()}function LM(t){return t.type!=="node.status"&&t.type!=="cluster.state"}function UM(t,r,l){return!t.assignedTo||(l==null?void 0:l.id)===t.assignedTo?!0:(r==null?void 0:r.some(s=>s.id===t.assignedTo))??!1}function BM(t,r){return[...t].sort((l,s)=>l.id===r?-1:s.id===r?1:l.name.localeCompare(s.name))}function HM(t){if(!t||typeof t!="object")return null;const r=t,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 $M(t){return t==="default workspace"?t:t.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??t}function PM(t){const r=Date.now()-t;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 qM(t){return new Date(t).toLocaleString()}function VM(t){const r=Math.floor(t/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 s1(t,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(t),_e.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"),g=u.activeElement,p=g&&typeof g.focus=="function"?g:null;h.value=t,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 _e.success(r),!0}catch(u){return _e.error(u instanceof Error?u.message:"Failed to copy"),!1}}const hj="default workspace";function Mi(t){const r=t.replace(/\\/g,"/");return r==="/"||/^[A-Za-z]:\/$/.test(r)?r:r.replace(/\/+$/g,"")||r}function pj(t){const r=t.replace(/\\/g,"/");return r.startsWith("/")||r.startsWith("//")||/^[A-Za-z]:\//.test(r)}function gj(t,r){const l=Mi(t),s=r.replace(/\\/g,"/").replace(/^\/+|\/+$/g,"");return!s||s==="."?l:l==="/"||/^[A-Za-z]:\/$/.test(l)?`${l}${s}`:`${l}/${s}`}function vj(t,r){var u,m,h;const l=(u=t.effectiveProjectPath)==null?void 0:u.trim();if(l)return Mi(l);const s=(m=t.project)==null?void 0:m.trim();if(!s)return hj;if(pj(s)||!t.assignedTo)return Mi(s);const c=(h=r==null?void 0:r.get(t.assignedTo))==null?void 0:h.trim();return c?gj(c,s):Mi(s)}function YM(t,r,l,s){const c=new Map;for(const m of t){const h=m.assignedTo??null,g=h??"__unassigned__",p=h?r.get(h)??m.assignedNodeName??h.slice(0,8):"Unassigned",b=vj(m,s);c.has(g)||c.set(g,{nodeId:h,nodeName:p,dirMap:new Map});const y=c.get(g);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:g})=>{const p=Array.from(g.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 yj=["queued","running"],bj=["copilot.tunnel","copilot.tunnel.disable"],xj=1e4;function a0(t){return(t==null?void 0:t.status)==="succeeded"||(t==null?void 0:t.status)==="failed"}function Sj(t){return t.reduce((r,l)=>!r||l.updatedAt>r.updatedAt?l:r,null)}async function wj(t,r=q0){const l=await Promise.all(bj.flatMap(s=>yj.map(c=>r({kind:s,status:c,nodeId:t}))));return Sj(l.flat())}function r0(t){return(t==null?void 0:t.split(/\r?\n/).map(r=>r.trim()).filter(Boolean).at(-1))??null}function Ej(t,r){return[t,...r].join(" ")}function Nj(t,r,l){var s,c,u;return r&&!t?"Checking port 8314":t?t.status==="queued"?"Queued":t.status==="running"?t.kind==="copilot.tunnel.disable"?"Stopping Meshy-managed tunnel":t.kind==="copilot.tunnel"?((s=t.result)==null?void 0:s.status)==="auth-required"?"Waiting for GitHub device authorization":"Starting Copilot tunnel":"Checking port 8314":t.status==="succeeded"?(c=t.result)!=null&&c.available?t.result.status==="already-running"?"Port 8314 is already reachable":"Proxy is listening on 8314":((u=t.result)==null?void 0:u.status)==="stopped"?"Meshy-managed tunnel stopped":"Port 8314 is not listening":l??"Tunnel operation failed":"Port 8314 status has not been checked"}function Tj(t,r){var l;return r||(t==null?void 0:t.status)==="queued"||(t==null?void 0:t.status)==="running"?f.jsx(W0,{className:"h-3.5 w-3.5 animate-spin text-primary"}):(l=t==null?void 0:t.result)!=null&&l.available?f.jsx(Cl,{className:"h-3.5 w-3.5 text-emerald-500"}):(t==null?void 0:t.status)==="failed"?f.jsx(rf,{className:"h-3.5 w-3.5 text-destructive"}):f.jsx(rf,{className:"h-3.5 w-3.5 text-muted-foreground"})}function Cj({checked:t,disabled:r,onCheckedChange:l}){return f.jsx("button",{type:"button",role:"switch","aria-checked":t,"aria-label":"Toggle GitHub Copilot Tunnel",title:t?"Disable GitHub Copilot Tunnel":"Enable GitHub Copilot Tunnel","data-copilot-tunnel-switch":"true",disabled:r,onClick:()=>l(!t),className:re("relative h-5 w-9 shrink-0 rounded-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t?"bg-primary/85":"bg-muted"),children:f.jsx("span",{className:re("absolute left-0.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 rounded-sm bg-background shadow-sm transition-transform",t?"translate-x-4":"translate-x-0")})})}function Rj({nodeId:t,nodeName:r}){const[l,s]=v.useState(null),[c,u]=v.useState(!1),[m,h]=v.useState(!1),g=(l==null?void 0:l.status)==="queued"||(l==null?void 0:l.status)==="running",p=l==null?void 0:l.result,b=(p==null?void 0:p.auth)??null,y=(l==null?void 0:l.error)??(p==null?void 0:p.detail)??r0(p==null?void 0:p.stderr)??r0(p==null?void 0:p.stdout),S=p?Ej(p.command,p.args):"npx -y ghc-tunnel@latest -d",T=!!(p!=null&&p.available)||g&&(l==null?void 0:l.kind)==="copilot.tunnel",E=c||m||g,N=v.useMemo(()=>Nj(l,c,y),[c,y,l]);v.useEffect(()=>{let R=!1;async function k(){u(!0);try{const _=await wj(t);if(R)return;if(_){s(_);return}const U=await gv(t);R||s(U)}catch(_){R||_e.error(_ instanceof Error?_.message:"Failed to check Copilot tunnel")}finally{R||u(!1)}}return s(null),k(),()=>{R=!0}},[t]),v.useEffect(()=>{if(!l||a0(l))return;let R=!1;const k=l.id;async function _(){try{const z=await P0(k);if(R)return;if(z.kind==="copilot.tunnel.status"&&!a0(z)&&Date.now()-z.createdAt>xj){const G=await gv(t);R||s(G);return}s(z),z.status==="succeeded"&&z.kind==="copilot.tunnel"&&_e.success(`Copilot tunnel is available on ${r}`),z.status==="succeeded"&&z.kind==="copilot.tunnel.disable"&&_e.success(`Copilot tunnel stopped on ${r}`),z.status==="failed"&&z.kind!=="copilot.tunnel.status"&&_e.error(z.error??"Copilot tunnel failed")}catch(z){R||_e.error(z instanceof Error?z.message:"Failed to refresh Copilot tunnel")}}_();const U=window.setInterval(_,2e3);return()=>{R=!0,window.clearInterval(U)}},[t,r,l==null?void 0:l.id,l==null?void 0:l.status]);const C=v.useCallback(async R=>{h(!0);try{const k=R?await LE(t):await UE(t);s(k),_e.info(R?`Copilot tunnel enable requested on ${r}`:`Copilot tunnel stop requested on ${r}`)}catch(k){_e.error(k instanceof Error?k.message:"Failed to update Copilot tunnel")}finally{h(!1)}},[t,r]);return f.jsxs(En,{"data-copilot-tunnel-section":"true",className:"rounded-sm border-border/70 bg-background/75 shadow-none xl:col-span-2",children:[f.jsx(Nn,{className:"pb-1.5 pt-2.5 px-3",children:f.jsxs("div",{className:"flex items-start justify-between gap-3",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsxs(Tn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(K0,{className:"h-3.5 w-3.5 text-primary"}),"GitHub Copilot Tunnel"]}),f.jsx(Cn,{className:"text-[10px]",children:"Node-local Copilot proxy model provider."})]}),f.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[f.jsx("span",{"aria-label":N,title:N,className:"inline-flex h-5 w-5 items-center justify-center",children:Tj(l,c)}),f.jsx(Cj,{checked:T,disabled:E,onCheckedChange:R=>void C(R)})]})]})}),f.jsxs(Rn,{className:"space-y-2 px-3 pb-2.5",children:[f.jsxs("div",{className:"space-y-1.5 rounded-sm bg-background/55 px-2.5 py-2",children:[f.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] font-medium text-foreground",children:[f.jsx("span",{className:re("h-1.5 w-1.5 rounded-sm",p!=null&&p.available?"bg-emerald-500":g||c?"animate-pulse bg-amber-500":(l==null?void 0:l.status)==="failed"?"bg-destructive":"bg-muted-foreground/50")}),N]}),f.jsx("div",{className:"truncate font-mono text-[10px] text-muted-foreground",children:S}),(g||c||m)&&f.jsx("div",{className:"h-0.5 overflow-hidden rounded-sm bg-muted",children:f.jsx("div",{className:"h-full w-1/3 animate-indeterminate-bar bg-primary/70"})})]}),b&&g&&f.jsxs("div",{className:"grid gap-2 rounded-sm border border-primary/35 bg-primary/8 px-2.5 py-2 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center",children:[f.jsxs("div",{className:"min-w-0 space-y-1",children:[f.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] font-medium text-foreground",children:[f.jsx(XN,{className:"h-3.5 w-3.5 animate-pulse text-primary"}),"GitHub device login"]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 text-[10px] text-muted-foreground",children:[f.jsx("span",{className:"font-mono text-[11px] text-foreground",children:b.code}),b.expiresInSeconds?f.jsxs("span",{children:[Math.ceil(b.expiresInSeconds/60),"m expiry"]}):null]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(kt,{type:"button",variant:"outline",size:"icon",className:"h-7 w-7 rounded-sm",title:"Copy device code","aria-label":"Copy device code",onClick:()=>void s1(b.code,"Device code copied"),children:f.jsx(Z0,{className:"h-3.5 w-3.5"})}),f.jsx(kt,{asChild:!0,variant:"outline",size:"icon",className:"h-7 w-7 rounded-sm",title:"Open GitHub device login","aria-label":"Open GitHub device login",children:f.jsx("a",{href:b.url,target:"_blank",rel:"noreferrer",children:f.jsx(F0,{className:"h-3.5 w-3.5"})})})]})]}),y&&(l==null?void 0:l.status)!=="succeeded"&&f.jsx("div",{className:"rounded-sm border border-border/60 bg-muted/35 px-2 py-1 text-[10px] text-muted-foreground",children:y})]})]})}const gc=v.forwardRef(({className:t,type:r,...l},s)=>f.jsx("input",{type:r,className:re("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",t),ref:s,...l}));gc.displayName="Input";function Aj(){return Se("/system/quick-chats")}function kj(t){return Se("/system/quick-chats",{method:"PUT",body:JSON.stringify({quickChats:t})})}const Sf="quick-chats:updated";function jj(){typeof window>"u"||window.dispatchEvent(new CustomEvent(Sf))}function _j(){const[t,r]=v.useState([]),[l,s]=v.useState(!0),[c,u]=v.useState(!1),[m,h]=v.useState(null),g=v.useCallback(async()=>{s(!0);try{const b=await Aj();r(b.quickChats),h(null)}catch(b){h(b instanceof Error?b.message:"Failed to load quick chats")}finally{s(!1)}},[]),p=v.useCallback(async b=>{u(!0);try{const y=await kj(b);return r(y.quickChats),h(null),jj(),y.quickChats}catch(y){const S=y instanceof Error?y.message:"Failed to save quick chats";throw h(S),y}finally{u(!1)}},[]);return v.useEffect(()=>{g()},[g]),v.useEffect(()=>{if(typeof window>"u")return;const b=()=>{g()};return window.addEventListener(Sf,b),()=>window.removeEventListener(Sf,b)},[g]),{error:m,loading:l,quickChats:t,refresh:g,save:p,saving:c}}function i1(t){return t.trim().replace(/^\/+/,"").toLowerCase()}function c1(t,r){const l=t.trim();if(!l.startsWith("/"))return[];const s=i1(l);return r.filter(c=>c.alias.startsWith(s))}function Wi(t,r){return r<=0?-1:(t%r+r)%r}function GM(t,r,l=0){const s=c1(t,r),c=Wi(l,s.length);return c>=0?s[c]??null:null}function IM(t,r,l){const s=Wi(t,r);return s<0?0:Wi(s+l,r)}function XM({query:t,quickChats:r,selectedIndex:l=0,onSelect:s,onActiveIndexChange:c}){const u=c1(t,r);if(u.length===0)return null;const m=Wi(l,u.length);return f.jsxs("div",{"data-quick-chat-menu":"true",className:"mx-2 mb-0.5 rounded-sm bg-background/70 p-0.5 shadow-none sm:mx-5",children:[f.jsxs("div",{className:"flex items-center gap-1 px-1 py-0.5 text-[8px] uppercase tracking-[0.14em] text-muted-foreground/75",children:[f.jsx(J0,{className:"h-2.5 w-2.5 text-primary/55"}),"Quick chats"]}),f.jsx("div",{className:"max-h-24 overflow-y-auto",role:"listbox","aria-label":"Quick chats",children:u.map((h,g)=>f.jsxs("button",{type:"button",role:"option","aria-selected":g===m,"data-selected":g===m?"true":void 0,onMouseEnter:()=>c==null?void 0:c(g),onClick:()=>s(h),className:re("flex w-full min-w-0 items-start gap-1.5 rounded-sm px-1 py-1 text-left text-[9px] transition-colors hover:bg-muted/50 hover:text-foreground"),children:[f.jsxs("span",{"data-quick-chat-alias":"true",className:re("shrink-0 font-mono text-[9px] leading-3 text-primary/70",g===m&&"text-primary"),children:["/",h.alias]}),f.jsx("span",{"data-quick-chat-prompt":"true",className:re("line-clamp-1 min-w-0 text-[9px] leading-3 text-muted-foreground",g===m&&"text-primary/90"),children:h.prompt})]},h.alias))})]})}const Mj="h-14 w-full resize-none rounded-sm border border-border/70 bg-background/80 px-2 py-1.5 text-[11px] leading-4 ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50";let Oj=0;function Oi(t,r=0){return{id:t?`${t.alias}:${r}`:`new:${Oj++}`,alias:(t==null?void 0:t.alias)??"",prompt:(t==null?void 0:t.prompt)??""}}function wf(t){return{quickChats:t.map(r=>({alias:i1(r.alias),prompt:r.prompt.trim()})).filter(r=>r.alias.length>0&&r.prompt.length>0)}}function Dj(t,r){const l=wf(t).quickChats,s=r.map((u,m)=>Oi(u,m)),c=wf(s).quickChats;return JSON.stringify(l)!==JSON.stringify(c)}function zj(){const{error:t,loading:r,quickChats:l,save:s,saving:c}=_j(),[u,m]=v.useState(()=>l.map((y,S)=>Oi(y,S))),h=u.length>0,g=v.useMemo(()=>wf(u),[u]),p=v.useMemo(()=>Dj(u,l),[u,l]);v.useEffect(()=>{m(l.map((y,S)=>Oi(y,S)))},[l]);async function b(){try{await s(g.quickChats),_e.success("Quick chats saved")}catch(y){_e.error(y instanceof Error?y.message:"Failed to save quick chats")}}return f.jsxs("div",{className:"space-y-2",children:[f.jsx("div",{className:"rounded-sm border border-border/70 bg-background/75 px-3 py-2.5",children:f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-semibold text-foreground",children:[f.jsx(J0,{className:"h-3.5 w-3.5 text-primary"}),"Quick chats"]}),f.jsx("div",{className:"mt-0.5 text-[10px] text-muted-foreground",children:"Reusable slash aliases for chat composers on this leader."})]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsxs(kt,{type:"button",variant:"outline",onClick:()=>m(y=>[...y,Oi(void 0,y.length)]),className:"h-7 rounded-sm px-2 text-[10px]",children:[f.jsx(tT,{className:"h-3.5 w-3.5"}),"Add"]}),f.jsxs(kt,{type:"button",onClick:b,disabled:c||!p,className:"h-7 rounded-sm px-2 text-[10px]",children:[c?f.jsx(W0,{className:"h-3.5 w-3.5 animate-spin"}):f.jsx(cT,{className:"h-3.5 w-3.5"}),"Save"]})]})]})}),r&&!h?f.jsx("div",{className:"rounded-sm border border-dashed border-border/70 bg-muted/20 px-3 py-4 text-[11px] text-muted-foreground",children:"Loading quick chats..."}):h?f.jsx("div",{className:"space-y-1.5",children:u.map((y,S)=>f.jsxs("div",{className:"grid gap-1.5 rounded-sm border border-border/60 bg-background/70 px-2 py-2 md:grid-cols-[12rem_minmax(0,1fr)_auto]",children:[f.jsx(gc,{"aria-label":`Quick chat ${S+1} alias`,value:y.alias,onChange:T=>m(E=>E.map(N=>N.id===y.id?{...N,alias:T.target.value}:N)),placeholder:"alias",className:"h-7 rounded-sm border-border/70 bg-background/80 px-2 font-mono text-[11px]"}),f.jsx("textarea",{"aria-label":`Quick chat ${S+1} prompt`,value:y.prompt,onChange:T=>m(E=>E.map(N=>N.id===y.id?{...N,prompt:T.target.value}:N)),placeholder:"Prompt text",className:Mj}),f.jsx(kt,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(T=>T.filter(E=>E.id!==y.id)),"aria-label":`Remove quick chat ${S+1}`,className:"h-7 w-7 rounded-sm text-muted-foreground hover:bg-destructive/10 hover:text-destructive",children:f.jsx(wT,{className:"h-3.5 w-3.5"})})]},y.id))}):f.jsx("div",{className:"rounded-sm border border-dashed border-border/70 bg-muted/20 px-3 py-4 text-[11px] text-muted-foreground",children:"No quick chats configured."}),t&&f.jsx("div",{className:"rounded-sm border border-destructive/20 bg-destructive/10 px-3 py-2 text-[11px] text-destructive",children:t})]})}var vc="Checkbox",[Lj]=Ja(vc),[Uj,cm]=Lj(vc);function Bj(t){const{__scopeCheckbox:r,checked:l,children:s,defaultChecked:c,disabled:u,form:m,name:h,onCheckedChange:g,required:p,value:b="on",internal_do_not_use_render:y}=t,[S,T]=_l({prop:l,defaultProp:c??!1,onChange:g,caller:vc}),[E,N]=v.useState(null),[C,R]=v.useState(null),k=v.useRef(!1),_=E?!!m||!!E.closest("form"):!0,U={checked:S,disabled:u,setChecked:T,control:E,setControl:N,name:h,form:m,value:b,hasConsumerStoppedPropagationRef:k,required:p,defaultChecked:Qa(c)?!1:c,isFormControl:_,bubbleInput:C,setBubbleInput:R};return f.jsx(Uj,{scope:r,...U,children:Hj(y)?y(U):s})}var u1="CheckboxTrigger",d1=v.forwardRef(({__scopeCheckbox:t,onKeyDown:r,onClick:l,...s},c)=>{const{control:u,value:m,disabled:h,checked:g,required:p,setControl:b,setChecked:y,hasConsumerStoppedPropagationRef:S,isFormControl:T,bubbleInput:E}=cm(u1,t),N=nt(c,b),C=v.useRef(g);return v.useEffect(()=>{const R=u==null?void 0:u.form;if(R){const k=()=>y(C.current);return R.addEventListener("reset",k),()=>R.removeEventListener("reset",k)}},[u,y]),f.jsx(Le.button,{type:"button",role:"checkbox","aria-checked":Qa(g)?"mixed":g,"aria-required":p,"data-state":g1(g),"data-disabled":h?"":void 0,disabled:h,value:m,...s,ref:N,onKeyDown:ze(r,R=>{R.key==="Enter"&&R.preventDefault()}),onClick:ze(l,R=>{y(k=>Qa(k)?!0:!k),E&&T&&(S.current=R.isPropagationStopped(),S.current||R.stopPropagation())})})});d1.displayName=u1;var um=v.forwardRef((t,r)=>{const{__scopeCheckbox:l,name:s,checked:c,defaultChecked:u,required:m,disabled:h,value:g,onCheckedChange:p,form:b,...y}=t;return f.jsx(Bj,{__scopeCheckbox:l,checked:c,defaultChecked:u,disabled:h,required:m,onCheckedChange:p,name:s,form:b,value:g,internal_do_not_use_render:({isFormControl:S})=>f.jsxs(f.Fragment,{children:[f.jsx(d1,{...y,ref:r,__scopeCheckbox:l}),S&&f.jsx(p1,{__scopeCheckbox:l})]})})});um.displayName=vc;var f1="CheckboxIndicator",m1=v.forwardRef((t,r)=>{const{__scopeCheckbox:l,forceMount:s,...c}=t,u=cm(f1,l);return f.jsx(Ul,{present:s||Qa(u.checked)||u.checked===!0,children:f.jsx(Le.span,{"data-state":g1(u.checked),"data-disabled":u.disabled?"":void 0,...c,ref:r,style:{pointerEvents:"none",...t.style}})})});m1.displayName=f1;var h1="CheckboxBubbleInput",p1=v.forwardRef(({__scopeCheckbox:t,...r},l)=>{const{control:s,hasConsumerStoppedPropagationRef:c,checked:u,defaultChecked:m,required:h,disabled:g,name:p,value:b,form:y,bubbleInput:S,setBubbleInput:T}=cm(h1,t),E=nt(l,T),N=Ob(u),C=wb(s);v.useEffect(()=>{const k=S;if(!k)return;const _=window.HTMLInputElement.prototype,z=Object.getOwnPropertyDescriptor(_,"checked").set,G=!c.current;if(N!==u&&z){const V=new Event("click",{bubbles:G});k.indeterminate=Qa(u),z.call(k,Qa(u)?!1:u),k.dispatchEvent(V)}},[S,N,u,c]);const R=v.useRef(Qa(u)?!1:u);return f.jsx(Le.input,{type:"checkbox","aria-hidden":!0,defaultChecked:m??R.current,required:h,disabled:g,name:p,value:b,form:y,...r,tabIndex:-1,ref:E,style:{...r.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});p1.displayName=h1;function Hj(t){return typeof t=="function"}function Qa(t){return t==="indeterminate"}function g1(t){return Qa(t)?"indeterminate":t?"checked":"unchecked"}const v1=v.forwardRef(({className:t,...r},l)=>f.jsx(um,{ref:l,className:re("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",t),...r,children:f.jsx(m1,{className:re("flex items-center justify-center text-current"),children:f.jsx(Li,{className:"h-3.5 w-3.5"})})}));v1.displayName=um.displayName;const l0=["queued","running"];function $j(t){return t.map(r=>`${r.id}:${r.name}`).join("\0")}function Pj(t){return t==="claude"||t==="codex"||t==="copilot"}function y1(t){var l;if(t.kind!=="agent.upgrade")return null;const r=(l=t.payload)==null?void 0:l.agent;return Pj(r)?`${t.nodeId}:${r}`:null}function qj(t){return t.status==="succeeded"||t.status==="failed"}async function b1(t,r={}){const l=r.getOperation??P0,s=r.pollIntervalMs??2e3,c=r.timeoutMs??24e4,u=Date.now()+c;let m=t;for(;!qj(m)&&Date.now()<u;)await Yj(s),m=await l(t.id);return m}async function Vj(t,r=q0){const l=new Set(t),s=await Promise.all(l0.map(u=>r({kind:"agent.upgrade",status:u}))),c=new Map;for(const u of s.flat()){if(!l0.includes(u.status)||l.size>0&&!l.has(u.nodeId))continue;const m=y1(u);if(!m)continue;const h=c.get(m);(!h||u.updatedAt>h.updatedAt)&&c.set(m,u)}return c}function Yj(t){return new Promise(r=>setTimeout(r,t))}const Gj=1500,Ij=1e3,Xj=9e4;async function x1(t={}){const r=t.fetchHealth??Qj,l=t.initialDelayMs??Gj,s=t.pollIntervalMs??Ij,c=t.previousPid,u=t.reload??(()=>window.location.reload()),m=t.sleep??Zj,h=t.timeoutMs??Xj,g=Date.now()+h;let p=!1;for(l>0&&await m(l);Date.now()<=g;){const b=Kj(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 Qj(){try{const t=await fetch("/api/system/health",{cache:"no-store"}),r=await t.json().catch(()=>null),l=r&&typeof r=="object"&&typeof r.pid=="number"?r.pid:void 0;return{ok:t.ok,pid:l}}catch{return!1}}function Kj(t){return typeof t=="boolean"?{ok:t}:t}function Zj(t){return new Promise(r=>window.setTimeout(r,t))}function Fj(t,r=!0){return r?(t==null?void 0:t.restartMode)==="development"?"Restart dev runtime":t!=null&&t.updateAvailable?"Restart to update":"Restart runtime":t!=null&&t.updateAvailable?"Restart follower to update":"Restart follower"}function Wj({checkedLabel:t,disableAuthDefault:r,endpoint:l,isLiveLocalNode:s,nodeId:c,nodeName:u,onRefresh:m,pid:h,transportType:g,update:p,workDir:b}){const y=Fj(p,s),[S,T]=v.useState(null),[E,N]=v.useState(()=>o0({disableAuthDefault:r,endpoint:l,nodeName:u,transportType:g,workDir:b})),[C,R]=v.useState(!1),[k,_]=v.useState(!1),[U,z]=v.useState(!1);v.useEffect(()=>{N(o0({disableAuthDefault:r,endpoint:l,nodeName:u,transportType:g,workDir:b}))},[r,l,u,g,b]);async function G(){if(!c||C||k)return;const de=p.updateAvailable?"update":"restart",fe=t3(E);if(E.port.trim()&&(fe==null?void 0:fe.port)===void 0){_e.error("Runtime restart port must be a positive integer");return}const F=fe?{reason:de,startArgs:fe}:{reason:de};R(!0);try{if(s){const M=await V0(F);T({...M,pid:M.pid??h,status:"accepted"}),_e.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.`),x1({previousPid:M.pid??h}).then(q=>{q||(R(!1),_e.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout. Refresh the page after the node finishes starting."))}).catch(q=>{R(!1),_e.error(q instanceof Error?q.message:"Runtime restart recovery failed")});return}const te=await qE(c,F);T({operationId:te.id,pid:h,status:te.status}),_e.info(`Restart requested on ${u}. Operation ${Qd(te.id)} will hand off to a detached process, so the new runtime will not stay attached to the original terminal window.`);const ie=await b1(te,{timeoutMs:6e4}),J=e3(ie);T({command:J==null?void 0:J.command,logPath:J==null?void 0:J.logPath,mode:J==null?void 0:J.mode,operationId:ie.id,pid:(J==null?void 0:J.pid)??h,status:ie.status}),ie.status==="succeeded"?(await(m==null?void 0:m()),_e.success(`Restart handoff accepted on ${u}. Follow ${(J==null?void 0:J.logPath)??"the node restart log"} for launch output.`)):ie.status==="failed"?_e.error(ie.error??`Restart failed on ${u}`):_e.info(`Restart operation ${Qd(ie.id)} is still ${ie.status}. More details will update after the node reports back.`),R(!1)}catch(te){R(!1),_e.error(te instanceof Error?te.message:"Runtime restart failed")}}async function V(){if(!(!s||C||k)){_(!0);try{const de=await HE();_e.info(`Stopping Meshy process ${de.pid}`)}catch(de){_(!1),_e.error(de instanceof Error?de.message:"Runtime stop failed")}}}const $=C?"restarting":k?"stopping":(S==null?void 0:S.status)??"idle",le=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(zi,{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:le?"Development launcher":`Latest ${p.latestVersion??"—"}`})]})]}),f.jsx("div",{className:"flex items-center gap-1.5",children:f.jsx(Dt,{variant:p.updateAvailable?"default":"outline",className:"rounded-sm border-border/70 bg-background/60 px-1.5 py-0 font-mono text-[10px]",children:le?"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:$})]})]}),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 ",t]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[s&&f.jsxs(bf,{children:[f.jsx(xf,{asChild:!0,children:f.jsxs(kt,{type:"button",size:"sm",variant:"ghost",disabled:C||k,className:"h-7 rounded-sm px-2 text-[11px] text-muted-foreground hover:bg-destructive/10 hover:text-destructive",children:[f.jsx(aT,{className:re("mr-1 h-3.5 w-3.5",k&&"animate-pulse")}),k?"Stopping":"Stop"]})}),f.jsxs(Gi,{className:"max-w-[22rem] gap-2 rounded-sm p-4",children:[f.jsxs(Ii,{className:"space-y-1",children:[f.jsx(Qi,{className:"text-sm",children:"Stop runtime?"}),f.jsx(Ki,{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(Xi,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Fi,{className:"h-7 rounded-sm px-2 text-[11px]",children:"Cancel"}),f.jsx(Zi,{className:"h-7 rounded-sm bg-destructive px-2 text-[11px] text-destructive-foreground hover:bg-destructive/90",onClick:()=>void V(),children:"Stop runtime"})]})]})]}),f.jsxs(bf,{children:[f.jsx(xf,{asChild:!0,children:f.jsxs(kt,{type:"button",size:"sm",variant:p.updateAvailable?"default":"outline",disabled:!c||C||k,className:"h-7 rounded-sm px-2 text-[11px]",children:[f.jsx(Ai,{className:re("mr-1 h-3.5 w-3.5",C&&"animate-spin")}),C?"Restarting…":y]})}),f.jsxs(Gi,{className:"max-w-[28rem] gap-3 rounded-sm p-4",children:[f.jsxs(Ii,{className:"space-y-1",children:[f.jsxs(Qi,{className:"text-sm",children:[y,"?"]}),f.jsxs(Ki,{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:E,onChange:N}),f.jsxs(Xi,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Fi,{className:"h-7 rounded-sm px-2 text-[11px]",children:"Cancel"}),f.jsx(Zi,{className:"h-7 rounded-sm px-2 text-[11px]",onClick:()=>void G(),children:y})]})]})]})]})]}),f.jsxs("div",{className:"border-t border-border/50",children:[f.jsxs("button",{type:"button",onClick:()=>z(de=>!de),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(ry,{className:"h-3 w-3"}),"Restart details"]}),f.jsx(Fo,{className:re("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(Er,{label:"Current PID",value:h===void 0?"—":String(h),mono:h!==void 0}),f.jsx(Er,{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(Er,{label:"Operation",value:S!=null&&S.operationId?Qd(S.operationId):"Local direct request",mono:!!(S!=null&&S.operationId)}),f.jsx(Er,{label:"Status",value:(S==null?void 0:S.status)??(C?"requested":"idle")}),f.jsx(Er,{label:"Launcher",value:(S==null?void 0:S.command)??"Available after restart",mono:!!(S!=null&&S.command)}),f.jsx(Er,{label:"Log",value:(S==null?void 0:S.logPath)??"Available after restart",mono:!!(S!=null&&S.logPath)}),f.jsx(Er,{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:t,value:r}){const l=(s,c)=>{t({...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(Po,{label:"HTTP port",value:r.port,onChange:s=>l("port",s),inputMode:"numeric"}),f.jsx(Po,{label:"Node name",value:r.name,onChange:s=>l("name",s)}),f.jsx(Po,{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(gx,{value:r.transport,onValueChange:s=>l("transport",S1(s)),children:[f.jsx(om,{className:"h-7 rounded-md border-border/70 bg-background/70 px-2 text-[10px]",children:f.jsx(vx,{placeholder:"Transport"})}),f.jsxs(sm,{children:[f.jsx(Rl,{className:"py-1 text-[11px]",value:"inherit",children:"current / default"}),f.jsx(Rl,{className:"py-1 text-[11px]",value:"direct",children:"direct"}),f.jsx(Rl,{className:"py-1 text-[11px]",value:"devtunnel",children:"devtunnel"}),f.jsx(Rl,{className:"py-1 text-[11px]",value:"tailscale",children:"tailscale"})]})]})]}),f.jsx(Po,{label:"Working directory",value:r.workDir,onChange:s=>l("workDir",s)}),f.jsx(Po,{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(v1,{className:"h-3.5 w-3.5",checked:r.disableAuth,onCheckedChange:s=>t({...r,disableAuth:s===!0,disableAuthKnown:!0})}),"Disable auth"]})]})]})}function Po({className:t,inputMode:r,label:l,onChange:s,value:c}){return f.jsxs("label",{className:re("space-y-1",t),children:[f.jsx("span",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:l}),f.jsx(gc,{className:"h-7 rounded-md px-2 text-[10px]",inputMode:r,value:c,onChange:u=>s(u.target.value)})]})}function Er({label:t,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:t}),f.jsx("span",{className:re("break-all text-right text-foreground",l&&"font-mono"),children:r})]})}function e3(t){const r=t.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 o0(t){return{port:n3(t.endpoint),name:t.nodeName,join:"",transport:S1(t.transportType),workDir:t.workDir??"",config:"",disableAuth:t.disableAuthDefault===!0,disableAuthKnown:t.disableAuthDefault!==void 0}}function t3(t){const r={},l=Number(t.port.trim());return t.port.trim()&&Number.isInteger(l)&&l>0&&(r.port=l),t.name.trim()&&(r.name=t.name.trim()),t.join.trim()&&(r.join=t.join.trim()),t.transport!=="inherit"&&(r.transport=t.transport),t.workDir.trim()&&(r.workDir=t.workDir.trim()),t.config.trim()&&(r.config=t.config.trim()),t.disableAuthKnown&&(r.disableAuth=t.disableAuth),Object.keys(r).length>0?r:void 0}function S1(t){return t==="direct"||t==="devtunnel"||t==="tailscale"?t:"inherit"}function n3(t){if(!t)return"";try{return new URL(t).port||""}catch{return""}}function Qd(t){return t.length<=8?t:t.slice(0,8)}function qo({formatDateTime:t,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:t(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(Dt,{variant:l.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:l.authenticated?"auth ok":"auth required"}),f.jsx(Dt,{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 It(t){if(t==null||t==="")return"Unavailable";const r=new Date(t);return Number.isNaN(r.getTime())?"Unavailable":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(r)}function a3(t){const r=Math.max(0,Math.floor(t)),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 s0(t){if(t==null||Number.isNaN(t))return"Unavailable";const r=["B","KB","MB","GB","TB"];let l=t,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 Tl(t){return t==="ok"?"default":t==="missing"||t==="install-failed"||t==="login-failed"?"destructive":t==="not-authenticated"||t==="unsupported-platform"?"outline":"secondary"}function r3(t){return t.available?f.jsx("span",{"data-agent-availability":"available","aria-label":"Available",title:"Available",className:"inline-flex h-5 w-5 items-center justify-center text-emerald-500",children:f.jsx(Cl,{className:"h-3.5 w-3.5"})}):f.jsx("span",{"data-agent-availability":"unavailable","aria-label":"Unavailable",title:"Unavailable",className:"inline-flex h-5 w-5 items-center justify-center text-destructive",children:f.jsx(rf,{className:"h-3.5 w-3.5"})})}function l3(t){return t.update?t.update.updateAvailable?f.jsxs(Dt,{variant:"outline",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:["Update ",t.update.latestVersion]}):f.jsx(Dt,{variant:"secondary",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:"Up to date"}):null}function o3(t){return t.available?null:t.metadataStatus??null}function s3(t){var l;const r=`npm install -g ${(l=t.update)==null?void 0:l.packageName}@latest`;return t.id==="claude"?`${r} --include=optional --ignore-scripts=false`:r}function i3(t){if(t.error)return t.error;const r=t.result;return(r==null?void 0:r.detail)??null}function tt({label:t,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:t}),f.jsx("span",{className:re("break-all text-right text-[11px] text-foreground",l&&"font-mono text-[11px]"),children:r})]})}function Vo({label:t,value:r,mono:l=!1,className:s}){return f.jsxs("div",{className:re("min-w-0 space-y-0.5",s),children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:t}),f.jsx("div",{className:re("truncate text-[11px] text-foreground",l&&"font-mono",t==="Path"&&"break-all whitespace-normal"),children:r})]})}function c3({agent:t,nodeName:r,activeOperation:l,onUpgrade:s}){var g,p;const c=((g=t.update)==null?void 0:g.updateAvailable)===!0,u=l3(t),m=!!l,h=o3(t);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(Q0,{className:"h-3.5 w-3.5 shrink-0 text-primary"}),f.jsx("span",{className:"truncate",children:t.label})]}),f.jsxs("div",{className:"truncate text-[10px] text-muted-foreground",children:["Command: ",f.jsx("span",{className:"font-mono text-[10px]",children:t.command})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[r3(t),h&&f.jsx(Dt,{variant:Tl(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(Vo,{label:"Version",value:t.version??"Unavailable",mono:!!t.version}),t.update&&f.jsx(Vo,{label:"Latest",value:t.update.latestVersion??"Unavailable",mono:!!t.update.latestVersion}),f.jsx(Vo,{label:"Checked",value:It(t.checkedAt)}),t.update&&f.jsx(Vo,{label:"Update check",value:It(t.update.checkedAt)}),f.jsx(Vo,{label:"Path",value:t.path??"Not on PATH",mono:!!t.path,className:"sm:col-span-2"})]}),f.jsx("div",{className:"flex items-start justify-start lg:justify-end",children:l?f.jsxs(Dt,{variant:"outline",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:["Upgrade ",l.status]}):c?f.jsxs(bf,{children:[f.jsx(xf,{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(Gi,{children:[f.jsxs(Ii,{children:[f.jsxs(Qi,{children:["Upgrade ",t.label,"?"]}),f.jsxs(Ki,{children:["This runs ",s3(t)," on ",r,". Remote nodes execute the command on the remote machine."]})]}),f.jsxs(Xi,{children:[f.jsx(Fi,{children:"Cancel"}),f.jsx(Zi,{onClick:()=>s(t),children:"Upgrade"})]})]})]}):u})]}),((p=t.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:t.update.detail}),t.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:t.detail})]})}function u3(t,r){var l;return(l=t==null?void 0:t.nodes)!=null&&l.length?t.nodes:r?[r]:[]}function d3(t,r){var s;if(r&&t.id===r.nodeId)return r;const l=t.settingsSnapshot;return{...t,nodeId:t.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 f3(t,r){return t.id===r?`${t.name} (this node)`:`${t.name} (${t.role})`}function m3(t){return t==="claude"?"Claude Code":t==="copilot"?"Copilot CLI":"Codex"}function h3(t){var l;const r=(l=t.payload)==null?void 0:l.agent;return r==="claude"||r==="codex"||r==="copilot"?r:null}function p3({cluster:t,systemInfo:r,sseConnected:l,initialSelectedNodeId:s,onRefresh:c}){var le,de,fe,F,te,ie,J,M,q,K,me,A,Y,se,X,ne,W,ee,ue,ce;const u=v.useMemo(()=>u3(t,r),[t,r]),[m,h]=v.useState(()=>{var ae;return s??(r==null?void 0:r.nodeId)??((ae=t==null?void 0:t.self)==null?void 0:ae.id)??""}),[g,p]=v.useState(()=>new Map),b=v.useRef(new Set),y=v.useRef(new Set),S=(t==null?void 0:t.self)??r??u[0]??null,T=u.find(ae=>ae.id===m)??S,E=T?d3(T,r):null,N=!!(r&&T&&T.id===r.nodeId),C=N||!!(T!=null&&T.settingsSnapshot),R=E==null?void 0:E.runtimeUpdate,k=((le=E==null?void 0:E.startupRequirements)==null?void 0:le.components)??(E==null?void 0:E.components)??{},_=v.useMemo(()=>u.map(ae=>ae.id),[u]),U=_.join("\0"),z=$j(u),G=v.useMemo(()=>new Map(u.map(ae=>[ae.id,ae.name])),[z]);v.useEffect(()=>{s&&_.includes(s)&&h(s)},[s,U]);const V=v.useCallback(async(ae,we)=>{const ye=y1(ae);if(!ye||b.current.has(ae.id))return;const Ee=h3(ae),He=(we==null?void 0:we.agentLabel)??(Ee?m3(Ee):"Agent"),Ye=(we==null?void 0:we.nodeName)??G.get(ae.nodeId)??ae.nodeId;b.current.add(ae.id),p(Pe=>new Map(Pe).set(ye,ae));try{const Pe=await b1(ae);if(Pe.status==="succeeded")await(c==null?void 0:c()),y.current.has(Pe.id)||(_e.success(`${He} upgrade finished on ${Ye}`),y.current.add(Pe.id));else if(Pe.status==="failed")y.current.has(Pe.id)||(_e.error(i3(Pe)??`${He} upgrade failed`),y.current.add(Pe.id));else{p(yt=>new Map(yt).set(ye,Pe)),_e.info(`${He} upgrade is still ${Pe.status} on ${Ye}`);return}p(yt=>{const qe=new Map(yt),Bt=qe.get(ye);return(!Bt||Bt.id===Pe.id)&&qe.delete(ye),qe})}catch(Pe){p(yt=>{const qe=new Map(yt),Bt=qe.get(ye);return(!Bt||Bt.id===ae.id)&&qe.delete(ye),qe}),_e.error(Pe instanceof Error?Pe.message:`${He} upgrade failed`)}finally{b.current.delete(ae.id)}},[c,G]);v.useEffect(()=>{if(_.length===0)return;let ae=!1;async function we(){let ye;try{ye=await Vj(_)}catch{return}if(!ae){p(Ee=>{const He=new Map(Ee);for(const[Ye,Pe]of ye)He.set(Ye,Pe);return He});for(const Ee of ye.values())V(Ee)}}return we(),()=>{ae=!0}},[V,U]);async function $(ae){if(T)try{const we=await PE(T.id,ae.id);_e.info(`${ae.label} upgrade started on ${T.name}`),await V(we,{agentLabel:ae.label,nodeName:T.name})}catch(we){_e.error(we instanceof Error?we.message:`${ae.label} upgrade failed`)}}return!T||!E?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:[!N&&f.jsxs(Dt,{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 ",It((de=T.settingsSnapshot)==null?void 0:de.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(rj,{status:T.status}),f.jsx("span",{className:"font-medium text-foreground",children:T.name})]}),f.jsx(lj,{role:T.role}),f.jsx(Dt,{variant:"outline",className:"rounded-sm border-border/70 bg-background/60 px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:T.transportType??E.transportType??"direct"}),f.jsx(Dt,{variant:N?"default":"outline",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:N?"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(gx,{value:T.id,onValueChange:h,children:[f.jsx(om,{className:"h-7 rounded-sm border-border/70 bg-background/70 text-[11px]",children:f.jsx(vx,{placeholder:"Choose a node"})}),f.jsx(sm,{className:"settings-node-select-content rounded-sm text-[10px] leading-4",children:u.map(ae=>f.jsx(Rl,{value:ae.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:f3(ae,r==null?void 0:r.nodeId)},ae.id))})]})]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsxs(Dt,{variant:l?"default":"outline",className:"gap-1 rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:[f.jsx(lT,{className:"h-3 w-3"}),l?"Live link":"Reconnecting"]}),f.jsxs(Dt,{variant:"outline",className:"rounded-sm border-border/70 bg-background/60 px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:["Uptime ",a3(E.uptime)]})]})]})]}),!C&&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(Vk,{defaultValue:"session",className:"space-y-2",children:[f.jsxs(Hx,{className:"h-auto flex-wrap rounded-sm border border-border/60 bg-muted/40 p-0.5",children:[f.jsx(Io,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),f.jsx(Io,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),f.jsx(Io,{value:"quick-chats",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Quick chats"}),f.jsx(Io,{value:"about",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"About"})]}),f.jsxs(Xo,{value:"session",className:"mt-0 grid gap-2 xl:grid-cols-[1.15fr_0.85fr]",children:[f.jsxs(En,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Nn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Tn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(ny,{className:"h-3.5 w-3.5 text-primary"}),"Selected node"]}),f.jsx(Cn,{className:"text-[10px]",children:"Cluster role, identity, and node-scoped runtime state."})]}),f.jsxs(Rn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(tt,{label:"Node ID",value:E.nodeId,mono:!0}),f.jsx(tt,{label:"Status",value:T.status}),f.jsx(tt,{label:"Role",value:T.role}),f.jsx(tt,{label:"Endpoint",value:T.endpoint,mono:!0}),f.jsx(tt,{label:"Joined",value:It(T.joinedAt)}),f.jsx(tt,{label:"Heartbeat",value:It(T.lastHeartbeat)}),f.jsx(tt,{label:"Capabilities",value:T.capabilities.length>0?T.capabilities.join(", "):"None"})]})]}),f.jsxs(En,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Nn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Tn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(BN,{className:"h-3.5 w-3.5 text-primary"}),"OS info"]}),f.jsx(Cn,{className:"text-[10px]",children:"Host and resource details reported by the current process."})]}),f.jsxs(Rn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(tt,{label:"Host",value:((fe=E.os)==null?void 0:fe.hostname)??"Unavailable"}),f.jsx(tt,{label:"Platform",value:E.os?`${E.os.platform} ${E.os.release}`:"Unavailable"}),f.jsx(tt,{label:"Arch",value:((F=E.os)==null?void 0:F.arch)??"Unavailable"}),f.jsx(tt,{label:"CPU",value:((te=E.os)==null?void 0:te.cpuModel)??"Unavailable"}),f.jsx(tt,{label:"Cores",value:String(((ie=E.os)==null?void 0:ie.cpuCount)??"Unavailable")}),f.jsx(tt,{label:"Memory",value:E.os?`${s0(E.os.freeMemoryBytes)} free / ${s0(E.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),R&&f.jsx("div",{className:"xl:col-span-2",children:f.jsx(Wj,{checkedLabel:It(R.checkedAt),disableAuthDefault:((J=E.auth)==null?void 0:J.enabled)===void 0?void 0:E.auth.enabled===!1,endpoint:T.endpoint,isLiveLocalNode:N,nodeId:T.id,nodeName:T.name,onRefresh:c,pid:(M=E.runtime)==null?void 0:M.pid,transportType:T.transportType,update:R,workDir:((q=E.runtime)==null?void 0:q.workDir)??T.workDir})}),f.jsx(Rj,{nodeId:T.id,nodeName:T.name}),f.jsxs(En,{className:"rounded-sm border-border/70 bg-background/75 shadow-none xl:col-span-2",children:[f.jsxs(Nn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Tn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(Q0,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),f.jsx(Cn,{className:"text-[10px]",children:N?"Live command availability for runtime agents on this node.":"Most recent agent availability snapshot synced from this node."})]}),f.jsx(Rn,{"data-agent-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:(E.agents??[]).map(ae=>f.jsx(c3,{agent:ae,nodeName:T.name,activeOperation:g.get(`${T.id}:${ae.id}`),onUpgrade:$},ae.id))})]})]}),f.jsxs(Xo,{value:"access",className:"mt-0 grid gap-2 xl:grid-cols-2",children:[f.jsxs(En,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Nn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Tn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(K0,{className:"h-3.5 w-3.5 text-primary"}),"Access surface"]}),f.jsx(Cn,{className:"text-[10px]",children:"How this node is exposed to the dashboard and other peers."})]}),f.jsxs(Rn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(tt,{label:"Transport",value:T.transportType??E.transportType??"direct"}),f.jsx(tt,{label:"Node URL",value:T.endpoint,mono:!0}),f.jsx(tt,{label:"Node tunnel",value:T.devtunnelEndpoint??"Disabled",mono:!!T.devtunnelEndpoint}),f.jsx(tt,{label:"Dashboard URL",value:T.dashboardOrigin??E.localDashboardOrigin??"Unavailable",mono:!!(T.dashboardOrigin||E.localDashboardOrigin)}),f.jsx(tt,{label:"Local dashboard",value:E.localDashboardOrigin??"Unavailable",mono:!!E.localDashboardOrigin})]})]}),f.jsxs(En,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Nn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Tn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(gT,{className:"h-3.5 w-3.5 text-primary"}),"Auth"]}),f.jsx(Cn,{className:"text-[10px]",children:"Current bearer-auth and trusted access posture."})]}),f.jsxs(Rn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(tt,{label:"Enabled",value:(K=E.auth)!=null&&K.enabled?"Yes":"No"}),f.jsx(tt,{label:"Same tenant",value:(me=E.auth)!=null&&me.allowSameTenant?"Allowed":"Off"}),f.jsx(tt,{label:"Allowed users",value:(A=E.auth)!=null&&A.allowedUsers.length?E.auth.allowedUsers.join(", "):"None"})]})]}),f.jsxs(En,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Nn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Tn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(PN,{className:"h-3.5 w-3.5 text-primary"}),"Paths"]}),f.jsx(Cn,{className:"text-[10px]",children:"Workspace and runtime paths currently used by this node."})]}),f.jsxs(Rn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(tt,{label:"Work dir",value:((Y=E.runtime)==null?void 0:Y.workDir)??E.workDir??"Unavailable",mono:!!(((se=E.runtime)==null?void 0:se.workDir)??E.workDir)}),f.jsx(tt,{label:"Storage",value:((X=E.runtime)==null?void 0:X.storagePath)??"Unavailable",mono:!!((ne=E.runtime)!=null&&ne.storagePath)}),f.jsx(tt,{label:"Process cwd",value:((W=E.runtime)==null?void 0:W.cwd)??"Unavailable",mono:!!((ee=E.runtime)!=null&&ee.cwd)}),f.jsx(tt,{label:"Started",value:It((ue=E.runtime)==null?void 0:ue.startedAt)}),f.jsx(tt,{label:"PID",value:E.runtime?String(E.runtime.pid):"Unavailable",mono:!!E.runtime})]})]}),f.jsxs(En,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Nn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Tn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(zi,{className:"h-3.5 w-3.5 text-primary"}),"Startup checks"]}),f.jsx(Cn,{className:"text-[10px]",children:"Dependency preflight snapshot persisted during node startup."})]}),f.jsxs(Rn,{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:It((ce=E.startupRequirements)==null?void 0:ce.lastCheckedAt)})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(qo,{formatDateTime:It,name:"Azure CLI",status:k.az,statusVariant:Tl}),f.jsx(qo,{formatDateTime:It,name:"DevTunnel",status:k.devtunnel,statusVariant:Tl}),f.jsx(qo,{formatDateTime:It,name:"Claude Code",status:k.claude,statusVariant:Tl}),f.jsx(qo,{formatDateTime:It,name:"Codex",status:k.codex,statusVariant:Tl}),f.jsx(qo,{formatDateTime:It,name:"Copilot CLI",status:k.copilot,statusVariant:Tl})]})]})]})]}),f.jsx(Xo,{value:"quick-chats",className:"mt-0",children:f.jsx(zj,{})}),f.jsx(ij,{formatDateTime:It,viewInfo:E})]})]})}function g3({initialSelectedNodeId:t,open:r,onOpenChange:l,showTrigger:s=!0}={}){const{cluster:c,systemInfo:u,sseConnected:m,refresh:h}=I0();return f.jsx(M5,{open:r,onOpenChange:l,showTrigger:s,children:f.jsx(p3,{cluster:c,systemInfo:u,sseConnected:m,initialSelectedNodeId:t,onRefresh:h})})}const Ji="meshy:show-live-events";function w1(){const t=globalThis.window;if(!t)return;const r=typeof t.CustomEvent=="function"?new t.CustomEvent(Ji):new t.Event(Ji);t.dispatchEvent(r)}function QM(t){const r=globalThis.window;return r?(r.addEventListener(Ji,t),()=>r.removeEventListener(Ji,t)):()=>{}}const v3={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"},y3={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 b3(t){return t.split(".")[0]??"unknown"}function x3(t){return new Date(t).toLocaleTimeString("en-US",{hour12:!1})}function El(t,r,l){return typeof l=="string"&&l.length>0?l:(r==null?void 0:r.get(t))??t}function E1(t,r){const l=t.data,s=l.operation;switch(t.type){case"node.joined":return`${l.name} joined the cluster`;case"node.left":return`${El(l.nodeId,r,l.name)} left (${l.reason})`;case"node.status":return`${El(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 ${El(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 ${El(s==null?void 0:s.nodeId,r)}`;case"transport.changed":return`${El(l.nodeId,r)} transport switched to ${l.transportType}`;case"task.created":return`"${l.title}" created`;case"task.assigned":return`task assigned to ${El(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 S3(t){return JSON.stringify(t,null,2)}function w3({events:t,maxHeight:r="400px",nodeNameById:l,onDismiss:s,onSelect:c,density:u="default"}){if(t.length===0)return null;const m=u==="compact";return f.jsx("div",{className:"overflow-y-auto pr-1",style:{maxHeight:r},children:f.jsx("div",{className:"space-y-1.5",children:t.map(h=>{const g=b3(h.type);return f.jsx("div",{onClick:c?()=>c(h.id):void 0,onKeyDown:c?p=>{p.target===p.currentTarget&&(p.key!=="Enter"&&p.key!==" "||(p.preventDefault(),c(h.id)))}:void 0,"data-click-open-live-events":c?"true":void 0,role:c?"button":void 0,tabIndex:c?0:void 0,title:c?"Open in Live events":void 0,className:re("transition-colors hover:bg-muted/30",c&&"cursor-pointer",m?"rounded-sm px-1 py-0.5":"rounded-sm 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:re("font-mono text-muted-foreground",m?"text-[8px]":"text-[9px]"),children:x3(h.timestamp)}),m?f.jsx("span",{className:re("max-w-[8.5rem] truncate text-[7px] font-medium uppercase tracking-[0.08em] text-muted-foreground/70",y3[g]),children:h.type}):f.jsx(Dt,{variant:"outline",className:re("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",v3[g]),children:h.type})]}),f.jsxs("div",{className:re("flex shrink-0 items-center",m?"gap-px":"gap-0.5"),children:[f.jsx(kt,{type:"button",variant:"ghost",size:"icon",className:re("rounded-sm text-muted-foreground hover:text-foreground",m?"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:p=>{p.stopPropagation(),s1(S3(h),"Event copied")},"aria-label":`Copy ${h.type} event`,title:"Copy event",children:f.jsx(Z0,{className:m?"h-2.5 w-2.5":"h-3 w-3"})}),s&&f.jsx(kt,{type:"button",variant:"ghost",size:"icon",className:re("rounded-sm text-muted-foreground hover:text-foreground",m?"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:p=>{p.stopPropagation(),s(h.id)},"aria-label":`Dismiss ${h.type} event`,title:"Dismiss event",children:f.jsx(ly,{className:m?"h-2.5 w-2.5":"h-3 w-3"})})]})]}),f.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:E1(h,l)})]})},h.id)})})})}function N1(t){return t!==null}function T1(t){return t==="click"?t:"hover"}function Ef(t){return t==="hover"?null:t}function C1(t){return t==="click"?null:"click"}const E3=["node.","election.","transport."],N3="cluster.state";function T3(t){return t.type==="node.status"?!1:E3.some(r=>t.type.startsWith(r))}function C3(t){return new Date(t).toLocaleTimeString("en-US",{hour12:!1})}function R3(t,r){return t?{time:C3(t.timestamp),text:E1(t,r)}:null}function A3(t){return t.transportType==="devtunnel"||!!t.devtunnelEndpoint}function k3(t){if(t.length===0)return"No node tunnel";const r=t.filter(c=>c.status==="offline").length;if(r>0)return`${r} offline`;const l=t.filter(c=>{var u;return((u=c.devtunnelHealth)==null?void 0:u.status)==="failed"}).length;if(l>0)return`${l} failed`;const s=t.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 j3(t,r){var c;const l=(r==null?void 0:r.get(t.id))??t.name??t.id;if(t.status==="offline")return{label:l,status:"offline"};const s=((c=t.devtunnelHealth)==null?void 0:c.status)??"checking";return{label:l,status:s}}function _3(t){if(t.length===0)return"No nodes";const r=t.filter(s=>s.status==="offline").length;if(r>0)return`${r} offline`;const l=t.filter(s=>s.status==="busy").length;return l>0?`${l} busy`:"Healthy"}function M3(t,r){return{label:(r==null?void 0:r.get(t.id))??t.name??t.id,status:t.status}}function O3({connected:t,events:r,nodes:l=[],currentNode:s=null,nodeNameById:c,desktopUpdate:u=null,desktopUpdateCheckPending:m=!1,desktopUpdateProgress:h=null,defaultOpen:g=!1,defaultActionMenuOpen:p=!1,onDesktopUpdateCheck:b,onDesktopUpdate:y,onDesktopRestart:S,onReload:T,onRestart:E}){const[N,C]=v.useState(g?"click":null),[R,k]=v.useState(p),[_,U]=v.useState(!0),[z,G]=v.useState(new Set),[V,$]=v.useState(!1),[le,de]=v.useState(!1),fe=N1(N),F=v.useRef(null),te=v.useRef(null),ie=v.useMemo(()=>r.filter(xe=>T3(xe)&&!z.has(xe.id)),[r,z]),J=v.useMemo(()=>r.find(xe=>xe.type===N3)??ie[0],[r,ie]),M=v.useMemo(()=>R3(J,c),[J,c]),q=v.useMemo(()=>{const xe=new Map(l.map(Ge=>[Ge.id,Ge]));return s&&xe.set(s.id,s),Array.from(xe.values())},[s,l]),K=v.useMemo(()=>q.filter(A3),[q]),me=K.some(xe=>{var Ge;return xe.status==="offline"||((Ge=xe.devtunnelHealth)==null?void 0:Ge.status)==="failed"}),A=q.some(xe=>xe.status==="offline"),Y=q.some(xe=>xe.status==="busy"),se=q.length>0,X=(s==null?void 0:s.name)??"offline",ne=(s==null?void 0:s.role)==="leader"?"Leader":(s==null?void 0:s.role)==="follower"?"Follower":"Node",W=u!==null,ee=!!(W&&(u!=null&&u.updateAvailable)&&u.latestVersion),ue=(u==null?void 0:u.latestVersion)??null,ce=!!(W&&!ee&&ue),ae=!!(W&&(u==null?void 0:u.detail)==="Checking desktop update..."),we=!!(W&&!ee&&!ue&&(u!=null&&u.detail)&&!ae),ye=(h==null?void 0:h.percent)??null,Ee=ye===null?null:`${ye}%`,He=V?"Relaunching runtime...":"Relaunch to apply update",Ye=Ee?`Downloading ${Ee}`:le?"Downloading and installing desktop update...":ee&&ue?`Available version ${ue}`:we?(u==null?void 0:u.detail)??"Desktop update unavailable":"Desktop is current",Pe=!!T,yt=!!(W&&S),Bt=!!(W&&b)||Pe||yt,rt=W||!!E,_r=W||!!E||Pe,Xn=rt?W?ee?"Update":ce?"Latest":"Check":"Relaunch":"Reload",dt=W&&!ee,yn=dt?"Check":Xn,Mr=rt?W?Ye:He:"Reload dashboard page",ya=rt?W?le||h!==null:V:!1,Qt=rt?W?ya||!ee||!y:ya:!1,jt=m||le||!b,$t=W?ee&&ue?`Install desktop update ${ue}`:we?"Desktop update unavailable":"Desktop is current":rt?V?"Relaunching runtime":"Relaunch runtime":"Reload dashboard page";function at(){te.current&&(clearTimeout(te.current),te.current=null)}function Mn(){at(),C(xe=>T1(xe))}function Or(){at(),te.current=setTimeout(()=>{C(xe=>Ef(xe)),te.current=null},180)}function On(){at()}function ba(){at(),C(xe=>Ef(xe))}async function xa(){if(!(!E||V)){$(!0);try{await E()}finally{$(!1)}}}async function on(){if(!(!ee||!y||le)){de(!0);try{await y()}finally{de(!1)}}}async function Qn(){!b||m||le||await b()}async function Kn(){if(!(!S||V)){k(!1),$(!0);try{await S()}finally{$(!1)}}}async function Sa(){if(!rt){await Pt();return}if(W){await on();return}await xa()}async function Pt(){T&&(k(!1),await T())}function nr(){G(xe=>{const Ge=new Set(xe);return ie.forEach(he=>Ge.add(he.id)),Ge})}function ar(){w1(),C(null)}return v.useEffect(()=>()=>{at()},[]),v.useEffect(()=>{G(xe=>{if(xe.size===0)return xe;const Ge=new Set(r.map(Ue=>Ue.id)),he=new Set(Array.from(xe).filter(Ue=>Ge.has(Ue)));return he.size===xe.size?xe:he})},[r]),v.useEffect(()=>{fe||k(!1)},[fe]),v.useEffect(()=>{if(!fe)return;const xe=he=>{var Ue;(Ue=F.current)!=null&&Ue.contains(he.target)||(at(),k(!1),C(null))},Ge=he=>{he.key==="Escape"&&(at(),k(!1),C(null))};return document.addEventListener("pointerdown",xe),document.addEventListener("keydown",Ge),()=>{document.removeEventListener("pointerdown",xe),document.removeEventListener("keydown",Ge)}},[fe]),f.jsxs("div",{ref:F,className:"relative",children:[f.jsxs("button",{type:"button","aria-label":t?"Cluster link connected":"Cluster link reconnecting","aria-expanded":fe,"aria-haspopup":"dialog",onClick:()=>C(xe=>C1(xe)),onMouseEnter:Mn,onMouseLeave:Or,className:re("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]",t?"bg-muted/40 text-muted-foreground hover:bg-muted/60 hover:text-foreground":"bg-destructive/8 text-destructive hover:bg-destructive/12",fe&&(t?"bg-muted/60 text-foreground":"bg-destructive/12")),title:t?"Cluster link connected":"Cluster link reconnecting",children:[f.jsxs("span",{className:re("relative flex h-2 w-2 shrink-0"),children:[t&&f.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-emerald-400 opacity-60"}),f.jsx("span",{className:re("relative inline-flex h-2 w-2 rounded-full",t?"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:X}),f.jsx("span",{className:re("shrink-0 rounded border px-1 py-px text-[8px] font-semibold uppercase tracking-[0.1em]",t?"border-emerald-500/25 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:ne})]})]}),fe&&f.jsxs("div",{role:"dialog","aria-label":"Live link connection events",onMouseEnter:On,onMouseLeave:ba,className:"absolute right-0 top-[calc(100%+0.35rem)] z-50 w-[17rem] max-w-[calc(100vw-1.5rem)] overflow-hidden rounded-sm border border-border/60 bg-popover/98 shadow-[0_16px_44px_-34px_rgba(0,0,0,var(--panel-shadow-alpha))] backdrop-blur-sm 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:[t?f.jsx(zi,{className:"h-3 w-3 text-emerald-500"}):f.jsx(NT,{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:t?"· SSE connected":"· reconnecting"})]}),f.jsx("div",{className:re("rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.12em]",t?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:t?"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:ie.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"}),M?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"mt-0.5 truncate text-[9px] leading-snug text-foreground/80",children:M.text}),f.jsx("div",{className:"font-mono text-[8px] text-muted-foreground/60",children:M.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:[A?f.jsx(gi,{className:"h-3 w-3 shrink-0 text-destructive"}):Y?f.jsx(zi,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Cl,{className:re("h-3 w-3 shrink-0",se?"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:re("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",A?"border-destructive/30 bg-destructive/10 text-destructive":Y?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":se?"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:_3(q)})]}),q.length>0&&f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:q.map(xe=>{const{label:Ge,status:he}=M3(xe,c),Ue=he==="offline",We=he==="busy";return f.jsxs("div",{"aria-label":`${Ge} ${he}`,className:re("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",Ue?"bg-destructive/6":We?"bg-amber-500/6":"bg-emerald-500/5"),title:`${Ge} ${he}`,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:Ge}),Ue?f.jsx(gi,{className:"h-3 w-3 shrink-0 text-destructive"}):We?f.jsx(xv,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Cl,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},xe.id)})})]}),K.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:[me?f.jsx(gi,{className:"h-3 w-3 shrink-0 text-destructive"}):f.jsx(Cl,{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:re("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",me?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"),children:k3(K)})]}),f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:K.map(xe=>{var Dn;const{label:Ge,status:he}=j3(xe,c),Ue=he==="failed"||he==="offline",We=he!=="healthy"&&he!=="failed"&&he!=="offline",bt=(Dn=xe.devtunnelHealth)!=null&&Dn.reason?`${Ge} ${he}: ${xe.devtunnelHealth.reason}`:`${Ge} ${he}`;return f.jsxs("div",{"aria-label":`${Ge} ${he}`,className:re("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",Ue?"bg-destructive/6":We?"bg-muted/30":"bg-emerald-500/5"),title:bt,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:Ge}),Ue?f.jsx(gi,{className:"h-3 w-3 shrink-0 text-destructive"}):We?f.jsx(xv,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):f.jsx(Cl,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},xe.id)})})]}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-1 px-2 py-1",children:[f.jsxs("button",{type:"button",onClick:()=>U(xe=>!xe),className:"flex min-w-0 flex-1 items-center justify-between rounded-sm px-0.5 py-0.5 text-left hover:bg-muted/25",children:[f.jsxs("span",{className:"truncate text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:["Notifications ",ie.length>0&&`(${ie.length})`]}),_?f.jsx(Fo,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):f.jsx(af,{className:"h-3 w-3 shrink-0 text-muted-foreground"})]}),!_&&ie.length>0&&f.jsx(kt,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px] font-medium text-muted-foreground hover:text-foreground",onClick:nr,title:"Clear all notifications",children:"Clear all"})]}),_&&f.jsx("div",{className:"px-2 pb-1.5",children:f.jsx(w3,{events:ie,maxHeight:"10rem",density:"compact",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:c,onSelect:ar,onDismiss:xe=>G(Ge=>new Set(Ge).add(xe))})})]}),W&&(u==null?void 0:u.detail)&&!ae&&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:_r&&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(kt,{type:"button",variant:"ghost",size:"sm",className:re("relative h-5 overflow-hidden rounded-none border-0 px-1.5 text-[9px] font-medium hover:text-foreground [&_svg]:size-2.5",ee?"bg-primary/12 text-primary hover:bg-primary/18":"bg-background/45 text-muted-foreground hover:bg-emerald-500/10"),onClick:()=>void Sa(),disabled:Qt,"aria-label":$t,"aria-describedby":"live-link-restart-hint",title:Mr,children:[ye!==null&&f.jsx("span",{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":ye,className:"pointer-events-none absolute inset-y-0 left-0 bg-primary/24",style:{width:`${ye}%`}}),ye===null&&f.jsx(Sv,{className:re("relative z-10 h-2.5 w-2.5",ya&&"animate-pulse")}),f.jsx("span",{className:"relative z-10",children:Ee??Xn})]}),Bt&&f.jsx(kt,{type:"button",variant:"ghost",size:"sm",className:re("h-5 rounded-none border-l border-border/50 px-1 text-[9px] hover:text-foreground [&_svg]:size-2.5",ee?"bg-primary/12 text-primary hover:bg-primary/18":"bg-background/45 text-muted-foreground hover:bg-emerald-500/10"),onClick:()=>k(xe=>!xe),"aria-label":"Open live link actions","aria-expanded":R,title:"Live link actions",children:f.jsx(Fo,{className:"h-2.5 w-2.5"})})]}),Bt&&R&&f.jsxs("div",{className:"absolute bottom-[calc(100%+0.25rem)] left-0 z-20 min-w-28 overflow-hidden rounded-sm border border-border/70 bg-background text-[9px] shadow-sm",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(dt?Qn():Sa()),disabled:dt?jt:Qt,"aria-label":dt?"Check for desktop updates":$t,children:[dt?f.jsx(Ai,{className:re("h-2.5 w-2.5",m&&"animate-spin")}):f.jsx(Sv,{className:re("h-2.5 w-2.5",ya&&"animate-pulse")}),f.jsx("span",{children:yn})]}),Pe&&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 Pt(),"aria-label":"Reload dashboard page",children:[f.jsx(Ai,{className:"h-2.5 w-2.5"}),f.jsx("span",{children:"Reload"})]}),yt&&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 Kn(),disabled:V,"aria-label":"Restart Meshy Desktop",children:[f.jsx(Ai,{className:re("h-2.5 w-2.5",V&&"animate-spin")}),f.jsx("span",{children:"Restart"})]})]}),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:Mr})]})}),f.jsxs("div",{className:"flex items-center gap-1",children:[_&&f.jsx(kt,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:nr,disabled:ie.length===0,title:"Clear all notifications",children:"Clear all"}),f.jsx(kt,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>C(null),children:"Close"})]})]})]})]})}const i0="dark",kr="fluent",D3="clean",Kd="meshy-layout-default-migrated-to-compact",Nf="true",z3="compact",L3=new Set(["airy","clean","fluent"]);function U3(t){return t!==null&&L3.has(t)}function yc(t){return t===z3?"fluent":U3(t)?t:null}function B3(t,r){const l=yc(t);return l===D3&&r!==Nf?kr:l??kr}const ec="symphony",R1="default",H3=new Set(["light","dark","system"]),$3=new Set(["porcelain","warm","finsight","edge","symphony","launcher"]),A1=v.createContext(null);function P3(t){const r=new URLSearchParams(t).get("theme");return k1(r)?r:null}function q3(t){const r=new URLSearchParams(t).get("palette");return dm(r)}function V3(t){const r=new URLSearchParams(t).get("layout");return yc(r)}function Y3(){if(typeof document>"u")return null;const t=document.documentElement;return{theme:t.classList.contains("dark")?"dark":"light",palette:dm(t.getAttribute("data-palette"))??ec,layout:yc(t.getAttribute("data-layout"))??kr}}function KM(t,r=Y3()){if(!r)return t;try{const l=/^[a-z][a-z\d+\-.]*:/i.test(t),s=typeof window<"u"?window.location.href:"http://localhost",c=new URL(t,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 t}}const Zd=.9;function c0(t){const r=t.trim().match(/^(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)%\s+(-?\d+(?:\.\d+)?)%$/);if(!r)return null;const l=(Number(r[1])%360+360)%360/60,s=tc(Number(r[2])/100,0,1),c=tc(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,[g,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((g+h)*255),Math.round((p+h)*255),Math.round((b+h)*255),255]}function G3(t){const r=t.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[Nl(Number(l[1])),Nl(Number(l[2])),Nl(Number(l[3])),f0(l[4])];const s=r.match(/^rgba?\(\s*([+-]?\d+(?:\.\d+)?)\s+([+-]?\d+(?:\.\d+)?)\s+([+-]?\d+(?:\.\d+)?)(?:\s*\/\s*([+-]?\d+(?:\.\d+)?%?))?\s*\)$/i);return s?[Nl(Number(s[1])),Nl(Number(s[2])),Nl(Number(s[3])),f0(s[4])]:null}function I3(t,r,l){const s=c0(t);if(!s)return null;if(l==="clean"||l==="fluent")return s;const c=c0(r);return c?[Fd(s[0],c[0],Zd),Fd(s[1],c[1],Zd),Fd(s[2],c[2],Zd),255]:null}function X3(){const t=document.querySelector(".dashboard-shell-header-panel");if(!t)return null;const r=G3(getComputedStyle(t).backgroundColor);return!r||r[3]===0?null:r}function u0(){var m,h;if(typeof window>"u"||typeof document>"u")return;const t=((h=(m=window.__TAURI__)==null?void 0:m.core)==null?void 0:h.invoke)??null;if(!t)return;const r=document.documentElement,l=r.classList.contains("dark")?"dark":"light",s=getComputedStyle(r),c=yc(r.getAttribute("data-layout"))??kr,u=X3()??I3(s.getPropertyValue("--card"),s.getPropertyValue("--background"),c);t("sync_desktop_theme",{theme:l,backgroundColor:u}).catch(()=>{})}function d0(){if(typeof window>"u")return()=>{};if(u0(),typeof window.requestAnimationFrame!="function")return()=>{};const t=window.requestAnimationFrame(()=>u0());return()=>window.cancelAnimationFrame(t)}function Fd(t,r,l){return Math.round(t*l+r*(1-l))}function tc(t,r,l){return Math.min(Math.max(t,r),l)}function Nl(t){return Math.round(tc(t,0,255))}function f0(t){if(t==null||t==="")return 255;const r=t.endsWith("%")?Number(t.slice(0,-1))/100:Number(t);return Math.round(tc(r,0,1)*255)}function Q3({children:t}){const[r,l]=v.useState(()=>typeof window<"u"?P3(window.location.search)??F3(localStorage.getItem("meshy-theme"))??i0:i0),[s,c]=v.useState(()=>typeof window<"u"?q3(window.location.search)??W3(localStorage.getItem("meshy-palette"))??ec:ec),[u,m]=v.useState(()=>{if(typeof window<"u"){const h=V3(window.location.search);if(h)return localStorage.setItem(Kd,Nf),h;const g=B3(localStorage.getItem("meshy-layout"),localStorage.getItem(Kd));return localStorage.setItem(Kd,Nf),g}return kr});return v.useEffect(()=>{const h=document.documentElement,g=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(g(r),localStorage.setItem("meshy-theme",r),r==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)"),b=()=>{g("system"),d0()};return p.addEventListener("change",b),()=>p.removeEventListener("change",b)}},[r]),v.useEffect(()=>{document.documentElement.setAttribute("data-palette",s),localStorage.setItem("meshy-palette",s)},[s]),v.useEffect(()=>{const h=document.documentElement;u===kr?h.removeAttribute("data-layout"):h.setAttribute("data-layout",u),localStorage.setItem("meshy-layout",u)},[u]),v.useEffect(()=>d0(),[r,s,u]),f.jsx(A1.Provider,{value:{theme:r,setTheme:l,palette:s,setPalette:c,layout:u,setLayout:m},children:t})}function K3(){const t=v.useContext(A1);if(!t)throw new Error("useTheme must be used within ThemeProvider");return t}function k1(t){return t!==null&&H3.has(t)}function Z3(t){return t!==null&&$3.has(t)}function F3(t){return k1(t)?t:null}function dm(t){return t===R1?"porcelain":Z3(t)?t:null}function W3(t){return t===R1?null:dm(t)}const J3=[{value:"light",label:"Light",icon:ay},{value:"dark",label:"Dark",icon:ty},{value:"system",label:"System",icon:ey}],j1=[{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"}],_1=[{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 e_(){const{theme:t,setTheme:r,palette:l,setPalette:s,layout:c,setLayout:u}=K3(),[m,h]=v.useState(null),g=v.useRef(null),p=v.useRef(null),b=N1(m),y=t==="dark"?ty:t==="light"?ay:ey,S=()=>{g.current&&(clearTimeout(g.current),g.current=null)},T=()=>{S(),g.current=setTimeout(()=>h(E=>Ef(E)),180)};return v.useEffect(()=>{if(!b)return;const E=N=>{p.current&&!p.current.contains(N.target)&&h(null)};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[b]),v.useEffect(()=>()=>S(),[]),f.jsxs("div",{ref:p,className:"relative",onMouseEnter:()=>{S(),h(E=>T1(E))},onMouseLeave:T,children:[f.jsx(kt,{variant:"ghost",size:"icon",onClick:()=>h(E=>C1(E)),className:re("h-8 w-8 rounded-sm",l!==ec||c!==kr?"text-primary":"text-muted-foreground hover:bg-muted/50 hover:text-foreground"),title:"Appearance","aria-haspopup":"menu","aria-expanded":b,children:f.jsx(y,{className:"h-4 w-4"})}),b&&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:[t_(c)," / ",n_(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:t})]}),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:J3.map(({value:E,label:N,icon:C})=>{const R=t===E;return f.jsxs("button",{type:"button",onClick:()=>r(E),role:"menuitemradio","aria-checked":R,className:re("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(C,{className:"h-3 w-3"}),N]},E)})}),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:_1.map(({value:E,label:N,hint:C})=>{const R=c===E;return f.jsxs("button",{type:"button",onClick:()=>u(E),role:"menuitemradio","aria-checked":R,className:re("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:re("text-[10px] font-medium leading-tight",R?"text-primary":"text-foreground"),children:N}),f.jsx("div",{className:"mt-0.5 text-[8px] leading-tight text-muted-foreground",children:C})]}),R&&f.jsx(Li,{className:"h-3 w-3 text-primary"})]},E)})})]}),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(yT,{className:"h-2.5 w-2.5"}),"Palette"]}),f.jsx("div",{className:"space-y-1",children:j1.map(({value:E,label:N,hint:C})=>{const R=l===E;return f.jsxs("button",{type:"button",onClick:()=>s(E),role:"menuitemradio","aria-checked":R,className:re("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(a_,{value:E}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:re("text-[10px] font-medium leading-tight",R?"text-primary":"text-foreground"),children:N}),f.jsx("div",{className:"mt-0.5 text-[8px] leading-tight text-muted-foreground",children:C})]}),R&&f.jsx(Li,{className:"h-3 w-3 text-primary"})]},E)})})]})]})]})]})}function t_(t){var r;return((r=_1.find(l=>l.value===t))==null?void 0:r.label)??t}function n_(t){var r;return((r=j1.find(l=>l.value===t))==null?void 0:r.label)??t}function a_({value:t}){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[t];return f.jsxs("div",{className:re("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 Qo={tasks:{defaultSize:20,min:16,max:36,wheelStep:1},operations:{defaultSize:20,min:18,max:38,wheelStep:1},terminal:{defaultSize:18,min:10,max:30,wheelStep:1}},M1="meshy-dashboard-panel-state-v2",O1="meshy-dashboard-terminal-open-v1";function ZM({operationsOpen:t}){return{layout:{desktopTasksOpen:!0,operationsOpen:t},sizes:{tasks:Qo.tasks.defaultSize,operations:Qo.operations.defaultSize,terminal:Qo.terminal.defaultSize}}}function Wd(t){return typeof t=="object"&&t!==null}function m0(t,r){return typeof t=="boolean"?t:r}function Jd(t,r,l){return typeof r=="number"&&Number.isFinite(r)?Ko(t,r):l}function Ko(t,r){const l=Qo[t];return Math.min(l.max,Math.max(l.min,r))}function FM(t,r){if(!t)return r;try{const l=t.getItem(M1);if(!l)return r;const s=JSON.parse(l);if(!Wd(s))return r;const c=Wd(s.layout)?s.layout:{},u=Wd(s.sizes)?s.sizes:{};return{layout:{desktopTasksOpen:m0(c.desktopTasksOpen,r.layout.desktopTasksOpen),operationsOpen:m0(c.operationsOpen,r.layout.operationsOpen)},sizes:{tasks:Jd("tasks",u.tasks,r.sizes.tasks),operations:Jd("operations",u.operations,r.sizes.operations),terminal:Jd("terminal",u.terminal,r.sizes.terminal)}}}catch{return r}}function WM(t,r){if(t)try{t.setItem(M1,JSON.stringify(r))}catch{}}function r_(t,r){if(!t)return r;try{const l=t.getItem(O1);return l==="true"?!0:l==="false"?!1:r}catch{return r}}function l_(t,r){if(t)try{t.setItem(O1,String(r))}catch{}}function h0(){var t;try{return((t=globalThis.window)==null?void 0:t.localStorage)??globalThis.localStorage??null}catch{return null}}function JM(t){return`${Number(t.toFixed(2))}rem`}function eO(t,r,l,s,c,u,m){const h=Number.isFinite(m)&&m>0?m:16;return t==="tasks"?Ko(t,r+(c-l)/h):t==="operations"?Ko(t,r+(l-c)/h):Ko(t,r+(s-u)/h)}function tO(t,r,l){const s=l===0?0:l>0?-1:1;return Ko(t,r+s*Qo[t].wheelStep)}const o_=7200*1e3,s_=15*1e3,i_="meshy://desktop-update-progress",c_="Desktop update check timed out";function u_(){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 Yo(){var t,r;return typeof window>"u"?null:((r=(t=window.__TAURI__)==null?void 0:t.core)==null?void 0:r.invoke)??null}function d_(){var t,r;return typeof window>"u"?null:((r=(t=window.__TAURI__)==null?void 0:t.event)==null?void 0:r.listen)??null}function f_(t){if(!t||typeof t!="object")return null;const r=t;return r.phase!=="downloading"&&r.phase!=="installing"&&r.phase!=="complete"?null:{phase:r.phase,receivedBytes:typeof r.receivedBytes=="number"?r.receivedBytes:0,totalBytes:typeof r.totalBytes=="number"?r.totalBytes:null,percent:typeof r.percent=="number"?Math.max(0,Math.min(100,Math.round(r.percent))):null}}function p0(t){return{currentVersion:null,latestVersion:null,updateAvailable:!1,checkedAt:new Date().toISOString(),releaseUrl:null,assetName:null,installable:!1,detail:t}}async function m_(t,r,l){let s;const c=new Promise((u,m)=>{s=setTimeout(()=>{m(new Error(c_))},r)});try{return await Promise.race([t,c])}finally{s!==void 0&&clearTimeout(s)}}async function h_({activeCheck:t,startCheck:r,timeoutMs:l,shouldApply:s,applyUpdate:c,applyFailure:u,failureFallback:m="Desktop update check failed"}){let h=t.current;if(!h){let g;try{g=r()}catch(p){g=Promise.reject(p)}h=m_(g,l),t.current=h}try{const g=await h;return s()&&c(g),g}catch(g){return s()&&u(Tf(g,m)),null}finally{t.current===h&&(t.current=null)}}function Tf(t,r){if(t instanceof Error&&t.message.trim())return t.message;if(typeof t=="string"&&t.trim())return t;if(t&&typeof t=="object"&&"message"in t){const l=t.message;if(typeof l=="string"&&l.trim())return l}return r}function p_(t){return t.openedRelease?"Opened the latest Meshy release page.":t.installMethod==="tauri-updater"?"Installing desktop update. Meshy will relaunch to finish updating.":(t.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 g_(){const{cluster:t,events:r,sseConnected:l,systemInfo:s}=I0(),c=Gn(),[u,m]=v.useState(()=>r_(h0(),!1)),[h,g]=v.useState(""),[p,b]=v.useState(null),[y,S]=v.useState(null),[T,E]=v.useState(!1),[N,C]=v.useState(null),R=v.useRef(null),k=!!Yo(),_=k?"max-w-none":"max-w-[1760px]",U=c.pathname==="/"||/^\/tasks\/[^/]+$/.test(c.pathname),z=v.useMemo(()=>{const F=new Map;for(const te of(t==null?void 0:t.nodes)??[])F.set(te.id,te.name);return t!=null&&t.self&&F.set(t.self.id,t.self.name),F},[t==null?void 0:t.nodes,t==null?void 0:t.self]),G=v.useCallback(F=>{m(te=>typeof F=="function"?F(te):F)},[]);v.useEffect(()=>{l_(h0(),u)},[u]);const V=v.useCallback(async(F=!0,te=()=>!0)=>{const ie=Yo();return ie?(F&&te()&&S(p0("Checking desktop update...")),h_({activeCheck:R,startCheck:()=>ie("check_desktop_update"),timeoutMs:s_,shouldApply:te,applyUpdate:J=>S(J),applyFailure:J=>S(M=>M!=null&&M.updateAvailable?M:p0(J))})):(te()&&S(null),null)},[]);async function $(){E(!0);try{await V(!1)}finally{E(!1)}}v.useEffect(()=>{if(!Yo()){S(null);return}let F=!1;const te=()=>!F;V(!0,te);const ie=window.setInterval(()=>{V(!1,te)},o_);return()=>{F=!0,window.clearInterval(ie)}},[V,s==null?void 0:s.version]),v.useEffect(()=>{const F=d_();if(!F)return;let te=!1,ie;return F(i_,J=>{const M=f_(J.payload);M&&C(M)}).then(J=>{if(te){J();return}ie=J}).catch(()=>{}),()=>{te=!0,ie==null||ie()}},[]);async function le(){try{const F=await V0({reason:"restart"});_e.info(`Restarting runtime. Follow ${F.logPath} for launch output.`),await x1({previousPid:F.pid})||_e.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout.")}catch(F){_e.error(F instanceof Error?F.message:"Runtime restart failed")}}async function de(){const F=Yo();if(!F){_e.error("Desktop updater is not available in this window");return}try{_e.info("Downloading desktop update..."),C({phase:"downloading",receivedBytes:0,totalBytes:null,percent:0});const te=await F("install_desktop_update");C({phase:"complete",receivedBytes:1,totalBytes:1,percent:100}),_e.info(p_(te))}catch(te){_e.error(Tf(te,"Desktop update failed"))}finally{C(null)}}async function fe(){const F=Yo();if(!F){_e.error("Desktop restart is not available in this window");return}try{_e.info("Restarting Meshy Desktop..."),await F("restart_desktop_app")}catch(te){_e.error(Tf(te,"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:re("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",_),children:[f.jsx("div",{className:"flex shrink-0 items-center gap-3 pr-3",children:f.jsxs(nf,{to:"/","aria-label":"Meshy home",className:"flex items-center gap-2",children:[f.jsx(u_,{}),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"}),U&&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:()=>g(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(ny,{className:"h-3 w-3 shrink-0 text-primary/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.nodeName})]}),f.jsx(af,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsxs("button",{type:"button",onClick:()=>g(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(VN,{className:"h-3 w-3 shrink-0 text-muted-foreground/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.projectLabel})]}),f.jsx(af,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsx(nf,{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(dT,{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(gc,{"aria-label":"Search tasks",value:h,onChange:F=>g(F.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:[U&&f.jsx(kt,{variant:"ghost",size:"icon",onClick:()=>G(F=>!F),"aria-label":u?"Close terminal":"Open terminal",title:u?"Close terminal":"Open terminal",className:re("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(ry,{className:"h-4 w-4"})}),f.jsx(g3,{}),f.jsx(e_,{}),f.jsx("div",{className:"mx-0 h-4 w-px shrink-0 bg-border/50"}),f.jsx(O3,{connected:l,events:r,nodes:(t==null?void 0:t.nodes)??[],currentNode:(t==null?void 0:t.self)??null,nodeNameById:z,desktopUpdate:y,desktopUpdateCheckPending:T,desktopUpdateProgress:N,onDesktopUpdateCheck:k?$:void 0,onDesktopUpdate:y!=null&&y.updateAvailable?de:void 0,onDesktopRestart:k?fe:void 0,onReload:k?()=>window.location.reload():void 0,onRestart:le})]})]})}),f.jsx("main",{className:re("dashboard-shell-main min-h-0 flex-1 px-2 pb-2",U?"overflow-hidden":"overflow-y-auto"),children:f.jsx("div",{className:re("dashboard-shell-content mx-auto h-full min-h-0",_),children:f.jsx(W2,{context:{terminalOpen:u,setTerminalOpen:G,headerSearchQuery:h,setHeaderSearchQuery:g,setHeaderTaskContext:b}})})})]})]})}const g0=v.lazy(async()=>({default:(await b0(()=>import("./DashboardPage-BJhmjsGE.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4]))).DashboardPage})),v_=v.lazy(async()=>({default:(await b0(()=>import("./SharedConversationPage-Cp-wV5Db.js"),__vite__mapDeps([5,1]))).SharedConversationPage}));function y_(){return f.jsx(NE,{children:f.jsx(v.Suspense,{fallback:f.jsx(b_,{}),children:f.jsxs(eE,{children:[f.jsx(Nr,{path:"/shared/tasks/:shareId",element:f.jsx(v_,{})}),f.jsxs(Nr,{element:f.jsx(pN,{children:f.jsx(g_,{})}),children:[f.jsx(Nr,{path:"/",element:f.jsx(g0,{})}),f.jsx(Nr,{path:"/nodes",element:f.jsx(hv,{to:"/",replace:!0})}),f.jsx(Nr,{path:"/tasks",element:f.jsx(hv,{to:"/",replace:!0})}),f.jsx(Nr,{path:"/tasks/:id",element:f.jsx(g0,{})})]})]})})})}function b_(){return f.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function x_(t){const r=t??(typeof window>"u"?void 0:window);r!=null&&r.__TAURI__&&r.addEventListener("contextmenu",l=>{l.preventDefault()})}function S_(t){const{className:r,style:l,toastOptions:s,...c}=t;function u(m){const h=m.target;if(!(h instanceof Element)||h.closest("button, a, input, textarea, select, [data-close-button], [data-button]"))return;const g=h.closest("[data-sonner-toast]");g&&g.dataset.type!=="loading"&&w1()}return f.jsx("div",{onClick:u,children:f.jsx(PC,{className:["toaster group",r].filter(Boolean).join(" "),closeButton:!0,gap:6,offset:{right:"0.6rem",bottom:"0.6rem"},mobileOffset:{right:"0.5rem",bottom:"0.5rem",left:"0.5rem"},position:"bottom-right",visibleToasts:3,style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border) / 0.7)","--width":"17rem",...l},toastOptions:{duration:3e3,closeButton:!0,...s,classNames:{toast:"meshy-toast",title:"meshy-toast__title",description:"meshy-toast__description",content:"meshy-toast__content",icon:"meshy-toast__icon",closeButton:"meshy-toast__close",actionButton:"meshy-toast__action",cancelButton:"meshy-toast__cancel",success:"meshy-toast--success",error:"meshy-toast--error",info:"meshy-toast--info",warning:"meshy-toast--warning",...s==null?void 0:s.classNames}},...c})})}x_();Jw.createRoot(document.getElementById("root")).render(f.jsx(v.StrictMode,{children:f.jsxs(Q3,{children:[f.jsx(y_,{}),f.jsx(S_,{})]})}));export{Dt as $,TM as A,kt as B,Li as C,CM as D,K_ as E,PN as F,A5 as G,lb as H,gc as I,sb as J,KM as K,W0 as L,Z0 as M,s1 as N,Hx as O,tT as P,XM as Q,J0 as R,ny as S,RM as T,Io as U,mj as V,Q0 as W,ly as X,Vk as Y,EM as Z,NM as _,GM as a,tM as a$,qM as a0,Xo as a1,bf as a2,Gi as a3,Ii as a4,Qi as a5,Ki as a6,Xi as a7,Fi as a8,Zi as a9,ib as aA,Ai as aB,_M as aC,YM as aD,kM as aE,jM as aF,$M as aG,v1 as aH,PM as aI,xf as aJ,wT as aK,rM as aL,lM as aM,FM as aN,ZM as aO,h0 as aP,WM as aQ,tO as aR,JM as aS,eO as aT,X_ as aU,iN as aV,YE as aW,bM as aX,yM as aY,xM as aZ,dN as a_,b0 as aa,R_ as ab,ob as ac,_5 as ad,$_ as ae,ry as af,Cl as ag,rf as ah,H_ as ai,P_ as aj,B_ as ak,NT as al,hT as am,NN as an,FN as ao,ns as ap,BM as aq,lT as ar,w3 as as,rj as at,F0 as au,lj as av,VM as aw,uj as ax,gM as ay,JC as az,IC as b,__ as b0,k_ as b1,q0 as b2,j_ as b3,M_ as b4,g3 as b5,nM as b6,aM as b7,G_ as b8,q_ as b9,T_ as bA,O_ as bB,wM as bC,uM as bD,cM as bE,iM as bF,oM as bG,sM as bH,dM as bI,k5 as bJ,cj as bK,v0 as bL,_N as bM,hM as bN,mM as bO,fM as bP,pM as bQ,SM as bR,vM as bS,V_ as ba,Y_ as bb,I_ as bc,N_ as bd,Gn as be,j0 as bf,E_ as bg,I0 as bh,HM as bi,_j as bj,QM as bk,UM as bl,MM as bm,OM as bn,zM as bo,DM as bp,LM as bq,Q_ as br,AM as bs,dj as bt,J_ as bu,eM as bv,W_ as bw,F_ as bx,C_ as by,A_ as bz,Ae as c,re as d,wy as e,c1 as f,z_ as g,U_ as h,P0 as i,f as j,D_ as k,VN as l,IM as m,af as n,Rl as o,L_ as p,Z_ as q,v as r,gx as s,_e as t,om as u,vx as v,sm as w,dT as x,Fo as y,yT as z};
|