meshy-node 1.0.2 → 1.0.3
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-TE6tsOBU.js → DashboardPage-DNbe_gkN.js} +46 -51
- package/dashboard/assets/{DashboardShared-B6YLnjis.js → DashboardShared-BguS5rZM.js} +1 -1
- package/dashboard/assets/{DiffTab-B4hRGo1c.js → DiffTab-BQegvnuJ.js} +1 -1
- package/dashboard/assets/{FilesTab-By5MpB3q.js → FilesTab-BoVqZxQh.js} +1 -1
- package/dashboard/assets/{MarkdownPreviewFrame-C094uLQB.js → MarkdownPreviewFrame-Ch2MvGCr.js} +1 -1
- package/dashboard/assets/{PreviewTab-C_SvaL2_.js → PreviewTab-C06qRxmn.js} +5 -5
- package/dashboard/assets/{SharedConversationPage-8XehjzT5.js → SharedConversationPage-CzAKjW4S.js} +2 -2
- package/dashboard/assets/{file-C7Gl-F2G.js → file-tSdrAmCr.js} +1 -1
- package/dashboard/assets/index-DQFY3oGe.js +346 -0
- package/dashboard/index.html +1 -1
- package/main.cjs +150 -16
- package/package.json +1 -1
- package/runtime-metadata.json +4 -4
- package/dashboard/assets/index-Cw9E6sQy.js +0 -341
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-TE6tsOBU.js","assets/DashboardShared-B6YLnjis.js","assets/MarkdownPreviewFrame-C094uLQB.js","assets/PreviewTab-C_SvaL2_.js","assets/DashboardPage-BaHExl1O.css","assets/SharedConversationPage-8XehjzT5.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
function AS(t,r){for(var o=0;o<r.length;o++){const s=r[o];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in 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 o(c){const u={};return c.integrity&&(u.integrity=c.integrity),c.referrerPolicy&&(u.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?u.credentials="include":c.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(c){if(c.ep)return;c.ep=!0;const u=o(c);fetch(c.href,u)}})();function S0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ed={exports:{}},Rl={};/**
|
|
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 Wg;function kS(){if(Wg)return Rl;Wg=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(s,c,u){var m=null;if(u!==void 0&&(m=""+u),c.key!==void 0&&(m=""+c.key),"key"in c){u={};for(var h in c)h!=="key"&&(u[h]=c[h])}else u=c;return c=u.ref,{$$typeof:t,type:s,key:m,ref:c!==void 0?c:null,props:u}}return Rl.Fragment=r,Rl.jsx=o,Rl.jsxs=o,Rl}var Fg;function _S(){return Fg||(Fg=1,Ed.exports=kS()),Ed.exports}var f=_S(),Nd={exports:{}},Te={};/**
|
|
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 jS(){if(Jg)return Te;Jg=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.iterator;function S(N){return N===null||typeof N!="object"?null:(N=y&&N[y]||N["@@iterator"],typeof N=="function"?N:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,E={};function T(N,V,ne){this.props=N,this.context=V,this.refs=E,this.updater=ne||A}T.prototype.isReactComponent={},T.prototype.setState=function(N,V){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,V,"setState")},T.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function k(){}k.prototype=T.prototype;function C(N,V,ne){this.props=N,this.context=V,this.refs=E,this.updater=ne||A}var O=C.prototype=new k;O.constructor=C,R(O,T.prototype),O.isPureReactComponent=!0;var L=Array.isArray,U={H:null,A:null,T:null,S:null,V:null},G=Object.prototype.hasOwnProperty;function I(N,V,ne,X,F,ee){return ne=ee.ref,{$$typeof:t,type:N,key:V,ref:ne!==void 0?ne:null,props:ee}}function Y(N,V){return I(N.type,V,void 0,void 0,void 0,N.props)}function ae(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function fe(N){var V={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(ne){return V[ne]})}var ce=/\/+/g;function ue(N,V){return typeof N=="object"&&N!==null&&N.key!=null?fe(""+N.key):V.toString(36)}function de(){}function ie(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(de,de):(N.status="pending",N.then(function(V){N.status==="pending"&&(N.status="fulfilled",N.value=V)},function(V){N.status==="pending"&&(N.status="rejected",N.reason=V)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function le(N,V,ne,X,F){var ee=typeof N;(ee==="undefined"||ee==="boolean")&&(N=null);var te=!1;if(N===null)te=!0;else switch(ee){case"bigint":case"string":case"number":te=!0;break;case"object":switch(N.$$typeof){case t:case r:te=!0;break;case b:return te=N._init,le(te(N._payload),V,ne,X,F)}}if(te)return F=F(N),te=X===""?"."+ue(N,0):X,L(F)?(ne="",te!=null&&(ne=te.replace(ce,"$&/")+"/"),le(F,V,ne,"",function(xe){return xe})):F!=null&&(ae(F)&&(F=Y(F,ne+(F.key==null||N&&N.key===F.key?"":(""+F.key).replace(ce,"$&/")+"/")+te)),V.push(F)),1;te=0;var oe=X===""?".":X+":";if(L(N))for(var se=0;se<N.length;se++)X=N[se],ee=oe+ue(X,se),te+=le(X,V,ne,ee,F);else if(se=S(N),typeof se=="function")for(N=se.call(N),se=0;!(X=N.next()).done;)X=X.value,ee=oe+ue(X,se++),te+=le(X,V,ne,ee,F);else if(ee==="object"){if(typeof N.then=="function")return le(ie(N),V,ne,X,F);throw V=String(N),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return te}function j(N,V,ne){if(N==null)return N;var X=[],F=0;return le(N,X,"","",function(ee){return V.call(ne,ee,F++)}),X}function $(N){if(N._status===-1){var V=N._result;V=V(),V.then(function(ne){(N._status===0||N._status===-1)&&(N._status=1,N._result=ne)},function(ne){(N._status===0||N._status===-1)&&(N._status=2,N._result=ne)}),N._status===-1&&(N._status=0,N._result=V)}if(N._status===1)return N._result.default;throw N._result}var D=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function W(){}return Te.Children={map:j,forEach:function(N,V,ne){j(N,function(){V.apply(this,arguments)},ne)},count:function(N){var V=0;return j(N,function(){V++}),V},toArray:function(N){return j(N,function(V){return V})||[]},only:function(N){if(!ae(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Te.Component=T,Te.Fragment=o,Te.Profiler=c,Te.PureComponent=C,Te.StrictMode=s,Te.Suspense=g,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,Te.__COMPILER_RUNTIME={__proto__:null,c:function(N){return U.H.useMemoCache(N)}},Te.cache=function(N){return function(){return N.apply(null,arguments)}},Te.cloneElement=function(N,V,ne){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var X=R({},N.props),F=N.key,ee=void 0;if(V!=null)for(te in V.ref!==void 0&&(ee=void 0),V.key!==void 0&&(F=""+V.key),V)!G.call(V,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&V.ref===void 0||(X[te]=V[te]);var te=arguments.length-2;if(te===1)X.children=ne;else if(1<te){for(var oe=Array(te),se=0;se<te;se++)oe[se]=arguments[se+2];X.children=oe}return I(N.type,F,void 0,void 0,ee,X)},Te.createContext=function(N){return N={$$typeof:m,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:u,_context:N},N},Te.createElement=function(N,V,ne){var X,F={},ee=null;if(V!=null)for(X in V.key!==void 0&&(ee=""+V.key),V)G.call(V,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(F[X]=V[X]);var te=arguments.length-2;if(te===1)F.children=ne;else if(1<te){for(var oe=Array(te),se=0;se<te;se++)oe[se]=arguments[se+2];F.children=oe}if(N&&N.defaultProps)for(X in te=N.defaultProps,te)F[X]===void 0&&(F[X]=te[X]);return I(N,ee,void 0,void 0,null,F)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(N){return{$$typeof:h,render:N}},Te.isValidElement=ae,Te.lazy=function(N){return{$$typeof:b,_payload:{_status:-1,_result:N},_init:$}},Te.memo=function(N,V){return{$$typeof:p,type:N,compare:V===void 0?null:V}},Te.startTransition=function(N){var V=U.T,ne={};U.T=ne;try{var X=N(),F=U.S;F!==null&&F(ne,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(W,D)}catch(ee){D(ee)}finally{U.T=V}},Te.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},Te.use=function(N){return U.H.use(N)},Te.useActionState=function(N,V,ne){return U.H.useActionState(N,V,ne)},Te.useCallback=function(N,V){return U.H.useCallback(N,V)},Te.useContext=function(N){return U.H.useContext(N)},Te.useDebugValue=function(){},Te.useDeferredValue=function(N,V){return U.H.useDeferredValue(N,V)},Te.useEffect=function(N,V,ne){var X=U.H;if(typeof ne=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return X.useEffect(N,V)},Te.useId=function(){return U.H.useId()},Te.useImperativeHandle=function(N,V,ne){return U.H.useImperativeHandle(N,V,ne)},Te.useInsertionEffect=function(N,V){return U.H.useInsertionEffect(N,V)},Te.useLayoutEffect=function(N,V){return U.H.useLayoutEffect(N,V)},Te.useMemo=function(N,V){return U.H.useMemo(N,V)},Te.useOptimistic=function(N,V){return U.H.useOptimistic(N,V)},Te.useReducer=function(N,V,ne){return U.H.useReducer(N,V,ne)},Te.useRef=function(N){return U.H.useRef(N)},Te.useState=function(N){return U.H.useState(N)},Te.useSyncExternalStore=function(N,V,ne){return U.H.useSyncExternalStore(N,V,ne)},Te.useTransition=function(){return U.H.useTransition()},Te.version="19.1.0",Te}var ev;function Nf(){return ev||(ev=1,Nd.exports=jS()),Nd.exports}var v=Nf();const re=S0(v),Tf=AS({__proto__:null,default:re},[v]);var Td={exports:{}},Al={},Cd={exports:{}},Rd={};/**
|
|
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 OS(){return tv||(tv=1,(function(t){function r(j,$){var D=j.length;j.push($);e:for(;0<D;){var W=D-1>>>1,N=j[W];if(0<c(N,$))j[W]=$,j[D]=N,D=W;else break e}}function o(j){return j.length===0?null:j[0]}function s(j){if(j.length===0)return null;var $=j[0],D=j.pop();if(D!==$){j[0]=D;e:for(var W=0,N=j.length,V=N>>>1;W<V;){var ne=2*(W+1)-1,X=j[ne],F=ne+1,ee=j[F];if(0>c(X,D))F<N&&0>c(ee,X)?(j[W]=ee,j[F]=D,W=F):(j[W]=X,j[ne]=D,W=ne);else if(F<N&&0>c(ee,D))j[W]=ee,j[F]=D,W=F;else break e}}return $}function c(j,$){var D=j.sortIndex-$.sortIndex;return D!==0?D:j.id-$.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,A=!1,R=!1,E=!1,T=!1,k=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function L(j){for(var $=o(p);$!==null;){if($.callback===null)s(p);else if($.startTime<=j)s(p),$.sortIndex=$.expirationTime,r(g,$);else break;$=o(p)}}function U(j){if(E=!1,L(j),!R)if(o(g)!==null)R=!0,G||(G=!0,ue());else{var $=o(p);$!==null&&le(U,$.startTime-j)}}var G=!1,I=-1,Y=5,ae=-1;function fe(){return T?!0:!(t.unstable_now()-ae<Y)}function ce(){if(T=!1,G){var j=t.unstable_now();ae=j;var $=!0;try{e:{R=!1,E&&(E=!1,C(I),I=-1),A=!0;var D=S;try{t:{for(L(j),y=o(g);y!==null&&!(y.expirationTime>j&&fe());){var W=y.callback;if(typeof W=="function"){y.callback=null,S=y.priorityLevel;var N=W(y.expirationTime<=j);if(j=t.unstable_now(),typeof N=="function"){y.callback=N,L(j),$=!0;break t}y===o(g)&&s(g),L(j)}else s(g);y=o(g)}if(y!==null)$=!0;else{var V=o(p);V!==null&&le(U,V.startTime-j),$=!1}}break e}finally{y=null,S=D,A=!1}$=void 0}}finally{$?ue():G=!1}}}var ue;if(typeof O=="function")ue=function(){O(ce)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,ie=de.port2;de.port1.onmessage=ce,ue=function(){ie.postMessage(null)}}else ue=function(){k(ce,0)};function le(j,$){I=k(function(){j(t.unstable_now())},$)}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(j){j.callback=null},t.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<j?Math.floor(1e3/j):5},t.unstable_getCurrentPriorityLevel=function(){return S},t.unstable_next=function(j){switch(S){case 1:case 2:case 3:var $=3;break;default:$=S}var D=S;S=$;try{return j()}finally{S=D}},t.unstable_requestPaint=function(){T=!0},t.unstable_runWithPriority=function(j,$){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var D=S;S=j;try{return $()}finally{S=D}},t.unstable_scheduleCallback=function(j,$,D){var W=t.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?W+D:W):D=W,j){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=D+N,j={id:b++,callback:$,priorityLevel:j,startTime:D,expirationTime:N,sortIndex:-1},D>W?(j.sortIndex=D,r(p,j),o(g)===null&&j===o(p)&&(E?(C(I),I=-1):E=!0,le(U,D-W))):(j.sortIndex=N,r(g,j),R||A||(R=!0,G||(G=!0,ue()))),j},t.unstable_shouldYield=fe,t.unstable_wrapCallback=function(j){var $=S;return function(){var D=S;S=$;try{return j.apply(this,arguments)}finally{S=D}}}})(Rd)),Rd}var nv;function DS(){return nv||(nv=1,Cd.exports=OS()),Cd.exports}var Ad={exports:{}},jt={};/**
|
|
27
|
-
* @license React
|
|
28
|
-
* react-dom.production.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the MIT license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var av;function MS(){if(av)return jt;av=1;var t=Nf();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 o(){}var s={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function u(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 jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,jt.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)},jt.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()}},jt.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))},jt.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},jt.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,A=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:A}):b==="script"&&s.d.X(g,{crossOrigin:y,integrity:S,fetchPriority:A,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},jt.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)},jt.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})}},jt.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)},jt.requestFormReset=function(g){s.d.r(g)},jt.unstable_batchedUpdates=function(g,p){return g(p)},jt.useFormState=function(g,p,b){return m.H.useFormState(g,p,b)},jt.useFormStatus=function(){return m.H.useHostTransitionStatus()},jt.version="19.1.0",jt}var rv;function E0(){if(rv)return Ad.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(),Ad.exports=MS(),Ad.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 ov;function zS(){if(ov)return Al;ov=1;var t=DS(),r=Nf(),o=E0();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,l=n;;){var i=a.return;if(i===null)break;var d=i.alternate;if(d===null){if(l=i.return,l!==null){a=l;continue}break}if(i.child===d.child){for(d=i.child;d;){if(d===a)return h(i),e;if(d===l)return h(i),n;d=d.sibling}throw Error(s(188))}if(a.return!==l.return)a=i,l=d;else{for(var x=!1,w=i.child;w;){if(w===a){x=!0,a=i,l=d;break}if(w===l){x=!0,l=i,a=d;break}w=w.sibling}if(!x){for(w=d.child;w;){if(w===a){x=!0,a=d,l=i;break}if(w===l){x=!0,l=d,a=i;break}w=w.sibling}if(!x)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e: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"),A=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),O=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),fe=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function ue(e){return e===null||typeof e!="object"?null:(e=ce&&e[ce]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case T:return"Profiler";case E:return"StrictMode";case U:return"Suspense";case G:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case O:return(e.displayName||"Context")+".Provider";case C:return(e._context.displayName||"Context")+".Consumer";case L:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case I:return n=e.displayName||null,n!==null?n:ie(e.type)||"Memo";case Y:n=e._payload,e=e._init;try{return ie(e(n))}catch{}}return null}var le=Array.isArray,j=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},W=[],N=-1;function V(e){return{current:e}}function ne(e){0>N||(e.current=W[N],W[N]=null,N--)}function X(e,n){N++,W[N]=e.current,e.current=n}var F=V(null),ee=V(null),te=V(null),oe=V(null);function se(e,n){switch(X(te,n),X(ee,e),X(F,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}}ne(F),X(F,e)}function xe(){ne(F),ne(ee),ne(te)}function Re(e){e.memoizedState!==null&&X(oe,e);var n=F.current,a=Cg(n,e.type);n!==a&&(X(ee,e),X(F,a))}function Ne(e){ee.current===e&&(ne(F),ne(ee)),oe.current===e&&(ne(oe),Sl._currentValue=D)}var Ae=Object.prototype.hasOwnProperty,Je=t.unstable_scheduleCallback,at=t.unstable_cancelCallback,dn=t.unstable_shouldYield,fn=t.unstable_requestPaint,lt=t.unstable_now,Ia=t.unstable_getCurrentPriorityLevel,ht=t.unstable_ImmediatePriority,Nr=t.unstable_UserBlockingPriority,Ln=t.unstable_NormalPriority,st=t.unstable_LowPriority,mn=t.unstable_IdlePriority,Tr=t.log,sa=t.unstable_setDisableYieldValue,$t=null,Ct=null;function Mt(e){if(typeof Tr=="function"&&sa(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode($t,e)}catch{}}var We=Math.clz32?Math.clz32:Tn,Nn=Math.log,Cr=Math.LN2;function Tn(e){return e>>>=0,e===0?32:31-(Nn(e)/Cr|0)|0}var ia=256,ca=4194304;function Jt(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 Un(e,n,a){var l=e.pendingLanes;if(l===0)return 0;var i=0,d=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var w=l&134217727;return w!==0?(l=w&~d,l!==0?i=Jt(l):(x&=w,x!==0?i=Jt(x):a||(a=w&~e,a!==0&&(i=Jt(a))))):(w=l&~d,w!==0?i=Jt(w):x!==0?i=Jt(x):a||(a=l&~e,a!==0&&(i=Jt(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 Bn(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function ua(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 zt(){var e=ia;return ia<<=1,(ia&4194048)===0&&(ia=256),e}function Ga(){var e=ca;return ca<<=1,(ca&62914560)===0&&(ca=4194304),e}function Xa(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function be(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xe(e,n,a,l,i,d){var x=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var w=e.entanglements,_=e.expirationTimes,H=e.hiddenUpdates;for(a=x&~a;0<a;){var Q=31-We(a),Z=1<<Q;w[Q]=0,_[Q]=-1;var P=H[Q];if(P!==null)for(H[Q]=null,Q=0;Q<P.length;Q++){var q=P[Q];q!==null&&(q.lane&=-536870913)}a&=~Z}l!==0&&me(e,l,0),d!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=d&~(x&~n))}function me(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-We(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function Ue(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var l=31-We(a),i=1<<l;i&n|e[l]&n&&(e[l]|=n),a&=~i}}function Qe(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 pt(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Qa(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:Ig(e.type))}function gt(e,n){var a=$.p;try{return $.p=e,n()}finally{$.p=a}}var it=Math.random().toString(36).slice(2),ct="__reactFiber$"+it,Ke="__reactProps$"+it,xt="__reactContainer$"+it,Rr="__reactEvents$"+it,Hn="__reactListeners$"+it,fm="__reactHandles$"+it,mm="__reactResources$"+it,Do="__reactMarker$"+it;function gc(e){delete e[ct],delete e[Ke],delete e[Rr],delete e[Hn],delete e[fm]}function Ar(e){var n=e[ct];if(n)return n;for(var a=e.parentNode;a;){if(n=a[xt]||a[ct]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=_g(e);e!==null;){if(a=e[ct])return a;e=_g(e)}return n}e=a,a=e.parentNode}return null}function kr(e){if(e=e[ct]||e[xt]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function Mo(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(s(33))}function _r(e){var n=e[mm];return n||(n=e[mm]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function wt(e){e[Do]=!0}var hm=new Set,pm={};function Ka(e,n){jr(e,n),jr(e+"Capture",n)}function jr(e,n){for(pm[e]=n,e=0;e<n.length;e++)hm.add(n[e])}var x1=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 w1(e){return Ae.call(vm,e)?!0:Ae.call(gm,e)?!1:x1.test(e)?vm[e]=!0:(gm[e]=!0,!1)}function Zl(e,n,a){if(w1(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function Wl(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 Pn(e,n,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+l)}}var vc,ym;function Or(e){if(vc===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);vc=n&&n[1]||"",ym=-1<a.stack.indexOf(`
|
|
43
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+vc+e+ym}var yc=!1;function bc(e,n){if(!e||yc)return"";yc=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={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(q){var P=q}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(q){P=q}e.call(Z.prototype)}}else{try{throw Error()}catch(q){P=q}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(q){if(q&&P&&typeof q.stack=="string")return[q.stack,P.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=l.DetermineComponentFrameRoot(),x=d[0],w=d[1];if(x&&w){var _=x.split(`
|
|
45
|
-
`),H=w.split(`
|
|
46
|
-
`);for(i=l=0;l<_.length&&!_[l].includes("DetermineComponentFrameRoot");)l++;for(;i<H.length&&!H[i].includes("DetermineComponentFrameRoot");)i++;if(l===_.length||i===H.length)for(l=_.length-1,i=H.length-1;1<=l&&0<=i&&_[l]!==H[i];)i--;for(;1<=l&&0<=i;l--,i--)if(_[l]!==H[i]){if(l!==1||i!==1)do if(l--,i--,0>i||_[l]!==H[i]){var Q=`
|
|
47
|
-
`+_[l].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),Q}while(1<=l&&0<=i);break}}}finally{yc=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Or(a):""}function S1(e){switch(e.tag){case 26:case 27:case 5:return Or(e.type);case 16:return Or("Lazy");case 13:return Or("Suspense");case 19:return Or("SuspenseList");case 0:case 15:return bc(e.type,!1);case 11:return bc(e.type.render,!1);case 1:return bc(e.type,!0);case 31:return Or("Activity");default:return""}}function bm(e){try{var n="";do n+=S1(e),e=e.return;while(e);return n}catch(a){return`
|
|
48
|
-
Error generating stack: `+a.message+`
|
|
49
|
-
`+a.stack}}function en(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 E1(e){var n=xm(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),l=""+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){l=""+x,d.call(this,x)}}),Object.defineProperty(e,n,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Fl(e){e._valueTracker||(e._valueTracker=E1(e))}function wm(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),l="";return e&&(l=xm(e)?e.checked?"true":"false":e.value),e=l,e!==a?(n.setValue(e),!0):!1}function Jl(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 N1=/[\n"\\]/g;function tn(e){return e.replace(N1,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function xc(e,n,a,l,i,d,x,w){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),n!=null?x==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+en(n)):e.value!==""+en(n)&&(e.value=""+en(n)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),n!=null?wc(e,x,en(n)):a!=null?wc(e,x,en(a)):l!=null&&e.removeAttribute("value"),i==null&&d!=null&&(e.defaultChecked=!!d),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+en(w):e.removeAttribute("name")}function Sm(e,n,a,l,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?""+en(a):"",n=n!=null?""+en(n):a,w||n===e.value||(e.value=n),e.defaultValue=n}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=w?e.checked:!!l,e.defaultChecked=!!l,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x)}function wc(e,n,a){n==="number"&&Jl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Dr(e,n,a,l){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&&l&&(e[a].defaultSelected=!0)}else{for(a=""+en(a),n=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,l&&(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=""+en(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+en(a):""}function Nm(e,n,a,l){if(n==null){if(l!=null){if(a!=null)throw Error(s(92));if(le(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),n=a}a=en(n),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Mr(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var T1=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 l=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":l?e.setProperty(n,a):typeof a!="number"||a===0||T1.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 l in a)!a.hasOwnProperty(l)||n!=null&&n.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in n)l=n[i],n.hasOwnProperty(i)&&a[i]!==l&&Tm(e,i,l)}else for(var d in n)n.hasOwnProperty(d)&&Tm(e,d,n[d])}function Sc(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 C1=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"]]),R1=/^[\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 es(e){return R1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ec=null;function Nc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zr=null,Lr=null;function Rm(e){var n=kr(e);if(n&&(e=n.stateNode)){var a=e[Ke]||null;e:switch(e=n.stateNode,n.type){case"input":if(xc(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="'+tn(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var l=a[n];if(l!==e&&l.form===e.form){var i=l[Ke]||null;if(!i)throw Error(s(90));xc(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(n=0;n<a.length;n++)l=a[n],l.form===e.form&&wm(l)}break e;case"textarea":Em(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Dr(e,!!a.multiple,n,!1)}}}var Tc=!1;function Am(e,n,a){if(Tc)return e(n,a);Tc=!0;try{var l=e(n);return l}finally{if(Tc=!1,(zr!==null||Lr!==null)&&(Hs(),zr&&(n=zr,e=Lr,Lr=zr=null,Rm(n),e)))for(n=0;n<e.length;n++)Rm(e[n])}}function zo(e,n){var a=e.stateNode;if(a===null)return null;var l=a[Ke]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,n,typeof a));return a}var $n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cc=!1;if($n)try{var Lo={};Object.defineProperty(Lo,"passive",{get:function(){Cc=!0}}),window.addEventListener("test",Lo,Lo),window.removeEventListener("test",Lo,Lo)}catch{Cc=!1}var da=null,Rc=null,ts=null;function km(){if(ts)return ts;var e,n=Rc,a=n.length,l,i="value"in da?da.value:da.textContent,d=i.length;for(e=0;e<a&&n[e]===i[e];e++);var x=a-e;for(l=1;l<=x&&n[a-l]===i[d-l];l++);return ts=i.slice(e,1<l?1-l:void 0)}function ns(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 as(){return!0}function _m(){return!1}function Lt(e){function n(a,l,i,d,x){this._reactName=a,this._targetInst=i,this.type=l,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(a=e[w],this[w]=a?a(d):d[w]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?as:_m,this.isPropagationStopped=_m,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=as)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=as)},persist:function(){},isPersistent:as}),n}var Za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rs=Lt(Za),Uo=b({},Za,{view:0,detail:0}),A1=Lt(Uo),Ac,kc,Bo,os=b({},Uo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Bo&&(Bo&&e.type==="mousemove"?(Ac=e.screenX-Bo.screenX,kc=e.screenY-Bo.screenY):kc=Ac=0,Bo=e),Ac)},movementY:function(e){return"movementY"in e?e.movementY:kc}}),jm=Lt(os),k1=b({},os,{dataTransfer:0}),_1=Lt(k1),j1=b({},Uo,{relatedTarget:0}),_c=Lt(j1),O1=b({},Za,{animationName:0,elapsedTime:0,pseudoElement:0}),D1=Lt(O1),M1=b({},Za,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),z1=Lt(M1),L1=b({},Za,{data:0}),Om=Lt(L1),U1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},B1={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"},H1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function P1(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=H1[e])?!!n[e]:!1}function jc(){return P1}var $1=b({},Uo,{key:function(e){if(e.key){var n=U1[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=ns(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?B1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jc,charCode:function(e){return e.type==="keypress"?ns(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ns(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),q1=Lt($1),V1=b({},os,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dm=Lt(V1),Y1=b({},Uo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jc}),I1=Lt(Y1),G1=b({},Za,{propertyName:0,elapsedTime:0,pseudoElement:0}),X1=Lt(G1),Q1=b({},os,{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}),K1=Lt(Q1),Z1=b({},Za,{newState:0,oldState:0}),W1=Lt(Z1),F1=[9,13,27,32],Oc=$n&&"CompositionEvent"in window,Ho=null;$n&&"documentMode"in document&&(Ho=document.documentMode);var J1=$n&&"TextEvent"in window&&!Ho,Mm=$n&&(!Oc||Ho&&8<Ho&&11>=Ho),zm=" ",Lm=!1;function Um(e,n){switch(e){case"keyup":return F1.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 Ur=!1;function ew(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 tw(e,n){if(Ur)return e==="compositionend"||!Oc&&Um(e,n)?(e=km(),ts=Rc=da=null,Ur=!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 Mm&&n.locale!=="ko"?null:n.data;default:return null}}var nw={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"?!!nw[e.type]:n==="textarea"}function Pm(e,n,a,l){zr?Lr?Lr.push(l):Lr=[l]:zr=l,n=Is(n,"onChange"),0<n.length&&(a=new rs("onChange","change",null,a,l),e.push({event:a,listeners:n}))}var Po=null,$o=null;function aw(e){xg(e,0)}function ls(e){var n=Mo(e);if(wm(n))return e}function $m(e,n){if(e==="change")return n}var qm=!1;if($n){var Dc;if($n){var Mc="oninput"in document;if(!Mc){var Vm=document.createElement("div");Vm.setAttribute("oninput","return;"),Mc=typeof Vm.oninput=="function"}Dc=Mc}else Dc=!1;qm=Dc&&(!document.documentMode||9<document.documentMode)}function Ym(){Po&&(Po.detachEvent("onpropertychange",Im),$o=Po=null)}function Im(e){if(e.propertyName==="value"&&ls($o)){var n=[];Pm(n,$o,e,Nc(e)),Am(aw,n)}}function rw(e,n,a){e==="focusin"?(Ym(),Po=n,$o=a,Po.attachEvent("onpropertychange",Im)):e==="focusout"&&Ym()}function ow(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ls($o)}function lw(e,n){if(e==="click")return ls(n)}function sw(e,n){if(e==="input"||e==="change")return ls(n)}function iw(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var qt=typeof Object.is=="function"?Object.is:iw;function qo(e,n){if(qt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),l=Object.keys(n);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var i=a[l];if(!Ae.call(n,i)||!qt(e[i],n[i]))return!1}return!0}function Gm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xm(e,n){var a=Gm(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=n&&l>=n)return{node:a,offset:n-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Gm(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=Jl(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=Jl(e.document)}return n}function zc(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 cw=$n&&"documentMode"in document&&11>=document.documentMode,Br=null,Lc=null,Vo=null,Uc=!1;function Zm(e,n,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Uc||Br==null||Br!==Jl(l)||(l=Br,"selectionStart"in l&&zc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Vo&&qo(Vo,l)||(Vo=l,l=Is(Lc,"onSelect"),0<l.length&&(n=new rs("onSelect","select",null,n,a),e.push({event:n,listeners:l}),n.target=Br)))}function Wa(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var Hr={animationend:Wa("Animation","AnimationEnd"),animationiteration:Wa("Animation","AnimationIteration"),animationstart:Wa("Animation","AnimationStart"),transitionrun:Wa("Transition","TransitionRun"),transitionstart:Wa("Transition","TransitionStart"),transitioncancel:Wa("Transition","TransitionCancel"),transitionend:Wa("Transition","TransitionEnd")},Bc={},Wm={};$n&&(Wm=document.createElement("div").style,"AnimationEvent"in window||(delete Hr.animationend.animation,delete Hr.animationiteration.animation,delete Hr.animationstart.animation),"TransitionEvent"in window||delete Hr.transitionend.transition);function Fa(e){if(Bc[e])return Bc[e];if(!Hr[e])return e;var n=Hr[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in Wm)return Bc[e]=n[a];return e}var Fm=Fa("animationend"),Jm=Fa("animationiteration"),eh=Fa("animationstart"),uw=Fa("transitionrun"),dw=Fa("transitionstart"),fw=Fa("transitioncancel"),th=Fa("transitionend"),nh=new Map,Hc="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(" ");Hc.push("scrollEnd");function hn(e,n){nh.set(e,n),Ka(n,[e])}var ah=new WeakMap;function nn(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 an=[],Pr=0,Pc=0;function ss(){for(var e=Pr,n=Pc=Pr=0;n<e;){var a=an[n];an[n++]=null;var l=an[n];an[n++]=null;var i=an[n];an[n++]=null;var d=an[n];if(an[n++]=null,l!==null&&i!==null){var x=l.pending;x===null?i.next=i:(i.next=x.next,x.next=i),l.pending=i}d!==0&&rh(a,i,d)}}function is(e,n,a,l){an[Pr++]=e,an[Pr++]=n,an[Pr++]=a,an[Pr++]=l,Pc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function $c(e,n,a,l){return is(e,n,a,l),cs(e)}function $r(e,n){return is(e,null,null,n),cs(e)}function rh(e,n,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var i=!1,d=e.return;d!==null;)d.childLanes|=a,l=d.alternate,l!==null&&(l.childLanes|=a),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(i=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,i&&n!==null&&(i=31-We(a),e=d.hiddenUpdates,l=e[i],l===null?e[i]=[n]:l.push(n),n.lane=a|536870912),d):null}function cs(e){if(50<hl)throw hl=0,Xu=null,Error(s(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var qr={};function mw(e,n,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(e,n,a,l){return new mw(e,n,a,l)}function qc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qn(e,n){var a=e.alternate;return a===null?(a=Vt(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 oh(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 us(e,n,a,l,i,d){var x=0;if(l=e,typeof e=="function")qc(e)&&(x=1);else if(typeof e=="string")x=pS(e,a,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Vt(31,a,n,i),e.elementType=ae,e.lanes=d,e;case R:return Ja(a.children,i,d,n);case E:x=8,i|=24;break;case T:return e=Vt(12,a,n,i|2),e.elementType=T,e.lanes=d,e;case U:return e=Vt(13,a,n,i),e.elementType=U,e.lanes=d,e;case G:return e=Vt(19,a,n,i),e.elementType=G,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case k:case O:x=10;break e;case C:x=9;break e;case L:x=11;break e;case I:x=14;break e;case Y:x=16,l=null;break e}x=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return n=Vt(x,a,n,i),n.elementType=e,n.type=l,n.lanes=d,n}function Ja(e,n,a,l){return e=Vt(7,e,l,n),e.lanes=a,e}function Vc(e,n,a){return e=Vt(6,e,null,n),e.lanes=a,e}function Yc(e,n,a){return n=Vt(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Vr=[],Yr=0,ds=null,fs=0,rn=[],on=0,er=null,Vn=1,Yn="";function tr(e,n){Vr[Yr++]=fs,Vr[Yr++]=ds,ds=e,fs=n}function lh(e,n,a){rn[on++]=Vn,rn[on++]=Yn,rn[on++]=er,er=e;var l=Vn;e=Yn;var i=32-We(l)-1;l&=~(1<<i),a+=1;var d=32-We(n)+i;if(30<d){var x=i-i%5;d=(l&(1<<x)-1).toString(32),l>>=x,i-=x,Vn=1<<32-We(n)+i|a<<i|l,Yn=d+e}else Vn=1<<d|a<<i|l,Yn=e}function Ic(e){e.return!==null&&(tr(e,1),lh(e,1,0))}function Gc(e){for(;e===ds;)ds=Vr[--Yr],Vr[Yr]=null,fs=Vr[--Yr],Vr[Yr]=null;for(;e===er;)er=rn[--on],rn[on]=null,Yn=rn[--on],rn[on]=null,Vn=rn[--on],rn[on]=null}var Dt=null,rt=null,Be=!1,nr=null,Cn=!1,Xc=Error(s(519));function ar(e){var n=Error(s(418,""));throw Go(nn(n,e)),Xc}function sh(e){var n=e.stateNode,a=e.type,l=e.memoizedProps;switch(n[ct]=e,n[Ke]=l,a){case"dialog":Me("cancel",n),Me("close",n);break;case"iframe":case"object":case"embed":Me("load",n);break;case"video":case"audio":for(a=0;a<gl.length;a++)Me(gl[a],n);break;case"source":Me("error",n);break;case"img":case"image":case"link":Me("error",n),Me("load",n);break;case"details":Me("toggle",n);break;case"input":Me("invalid",n),Sm(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Fl(n);break;case"select":Me("invalid",n);break;case"textarea":Me("invalid",n),Nm(n,l.value,l.defaultValue,l.children),Fl(n)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||l.suppressHydrationWarning===!0||Ng(n.textContent,a)?(l.popover!=null&&(Me("beforetoggle",n),Me("toggle",n)),l.onScroll!=null&&Me("scroll",n),l.onScrollEnd!=null&&Me("scrollend",n),l.onClick!=null&&(n.onclick=Gs),n=!0):n=!1,n||ar(e)}function ih(e){for(Dt=e.return;Dt;)switch(Dt.tag){case 5:case 13:Cn=!1;return;case 27:case 3:Cn=!0;return;default:Dt=Dt.return}}function Yo(e){if(e!==Dt)return!1;if(!Be)return ih(e),Be=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||cd(e.type,e.memoizedProps)),a=!a),a&&rt&&ar(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){rt=gn(e.nextSibling);break e}n--}else a!=="$"&&a!=="$!"&&a!=="$?"||n++;e=e.nextSibling}rt=null}}else n===27?(n=rt,Ra(e.type)?(e=md,md=null,rt=e):rt=n):rt=Dt?gn(e.stateNode.nextSibling):null;return!0}function Io(){rt=Dt=null,Be=!1}function ch(){var e=nr;return e!==null&&(Ht===null?Ht=e:Ht.push.apply(Ht,e),nr=null),e}function Go(e){nr===null?nr=[e]:nr.push(e)}var Qc=V(null),rr=null,In=null;function fa(e,n,a){X(Qc,n._currentValue),n._currentValue=a}function Gn(e){e._currentValue=Qc.current,ne(Qc)}function Kc(e,n,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===a)break;e=e.return}}function Zc(e,n,a,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var d=i.dependencies;if(d!==null){var x=i.child;d=d.firstContext;e:for(;d!==null;){var w=d;d=i;for(var _=0;_<n.length;_++)if(w.context===n[_]){d.lanes|=a,w=d.alternate,w!==null&&(w.lanes|=a),Kc(d.return,a,e),l||(x=null);break e}d=w.next}}else if(i.tag===18){if(x=i.return,x===null)throw Error(s(341));x.lanes|=a,d=x.alternate,d!==null&&(d.lanes|=a),Kc(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 Xo(e,n,a,l){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;qt(i.pendingProps.value,x.value)||(e!==null?e.push(w):e=[w])}}else if(i===oe.current){if(x=i.alternate,x===null)throw Error(s(387));x.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Sl):e=[Sl])}i=i.return}e!==null&&Zc(n,e,a,l),n.flags|=262144}function ms(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function or(e){rr=e,In=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _t(e){return uh(rr,e)}function hs(e,n){return rr===null&&or(e),uh(e,n)}function uh(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},In===null){if(e===null)throw Error(s(308));In=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else In=In.next=n;return a}var hw=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},pw=t.unstable_scheduleCallback,gw=t.unstable_NormalPriority,vt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wc(){return{controller:new hw,data:new Map,refCount:0}}function Qo(e){e.refCount--,e.refCount===0&&pw(gw,function(){e.controller.abort()})}var Ko=null,Fc=0,Ir=0,Gr=null;function vw(e,n){if(Ko===null){var a=Ko=[];Fc=0,Ir=ed(),Gr={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Fc++,n.then(dh,dh),n}function dh(){if(--Fc===0&&Ko!==null){Gr!==null&&(Gr.status="fulfilled");var e=Ko;Ko=null,Ir=0,Gr=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function yw(e,n){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){l.status="fulfilled",l.value=n;for(var i=0;i<a.length;i++)(0,a[i])(n)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var fh=j.S;j.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&vw(e,n),fh!==null&&fh(e,n)};var lr=V(null);function Jc(){var e=lr.current;return e!==null?e:Ze.pooledCache}function ps(e,n){n===null?X(lr,lr.current):X(lr,n.pool)}function mh(){var e=Jc();return e===null?null:{parent:vt._currentValue,pool:e}}var Zo=Error(s(460)),hh=Error(s(474)),gs=Error(s(542)),eu={then:function(){}};function ph(e){return e=e.status,e==="fulfilled"||e==="rejected"}function vs(){}function gh(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(vs,vs),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(vs,vs);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=n,e.status="pending",e.then(function(l){if(n.status==="pending"){var i=n;i.status="fulfilled",i.value=l}},function(l){if(n.status==="pending"){var i=n;i.status="rejected",i.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,yh(e),e}throw Wo=n,Zo}}var Wo=null;function vh(){if(Wo===null)throw Error(s(459));var e=Wo;return Wo=null,e}function yh(e){if(e===Zo||e===gs)throw Error(s(483))}var ma=!1;function tu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nu(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 ha(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pa(e,n,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(He&2)!==0){var i=l.pending;return i===null?n.next=n:(n.next=i.next,i.next=n),l.pending=n,n=cs(e),rh(e,null,a),n}return is(e,l,n,a),cs(e)}function Fo(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,Ue(e,a)}}function au(e,n){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,d=null;if(a=a.firstBaseUpdate,a!==null){do{var x={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?i=d=x:d=d.next=x,a=a.next}while(a!==null);d===null?i=d=n:d=d.next=n}else i=d=n;a={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:d,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var ru=!1;function Jo(){if(ru){var e=Gr;if(e!==null)throw e}}function el(e,n,a,l){ru=!1;var i=e.updateQueue;ma=!1;var d=i.firstBaseUpdate,x=i.lastBaseUpdate,w=i.shared.pending;if(w!==null){i.shared.pending=null;var _=w,H=_.next;_.next=null,x===null?d=H:x.next=H,x=_;var Q=e.alternate;Q!==null&&(Q=Q.updateQueue,w=Q.lastBaseUpdate,w!==x&&(w===null?Q.firstBaseUpdate=H:w.next=H,Q.lastBaseUpdate=_))}if(d!==null){var Z=i.baseState;x=0,Q=H=_=null,w=d;do{var P=w.lane&-536870913,q=P!==w.lane;if(q?(ze&P)===P:(l&P)===P){P!==0&&P===Ir&&(ru=!0),Q!==null&&(Q=Q.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var Ee=e,we=w;P=n;var Ye=a;switch(we.tag){case 1:if(Ee=we.payload,typeof Ee=="function"){Z=Ee.call(Ye,Z,P);break e}Z=Ee;break e;case 3:Ee.flags=Ee.flags&-65537|128;case 0:if(Ee=we.payload,P=typeof Ee=="function"?Ee.call(Ye,Z,P):Ee,P==null)break e;Z=b({},Z,P);break e;case 2:ma=!0}}P=w.callback,P!==null&&(e.flags|=64,q&&(e.flags|=8192),q=i.callbacks,q===null?i.callbacks=[P]:q.push(P))}else q={lane:P,tag:w.tag,payload:w.payload,callback:w.callback,next:null},Q===null?(H=Q=q,_=Z):Q=Q.next=q,x|=P;if(w=w.next,w===null){if(w=i.shared.pending,w===null)break;q=w,w=q.next,q.next=null,i.lastBaseUpdate=q,i.shared.pending=null}}while(!0);Q===null&&(_=Z),i.baseState=_,i.firstBaseUpdate=H,i.lastBaseUpdate=Q,d===null&&(i.shared.lanes=0),Ea|=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 Xr=V(null),ys=V(0);function wh(e,n){e=Jn,X(ys,e),X(Xr,n),Jn=e|n.baseLanes}function ou(){X(ys,Jn),X(Xr,Xr.current)}function lu(){Jn=ys.current,ne(Xr),ne(ys)}var ga=0,ke=null,qe=null,ft=null,bs=!1,Qr=!1,sr=!1,xs=0,tl=0,Kr=null,bw=0;function ut(){throw Error(s(321))}function su(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!qt(e[a],n[a]))return!1;return!0}function iu(e,n,a,l,i,d){return ga=d,ke=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,j.H=e===null||e.memoizedState===null?rp:op,sr=!1,d=a(l,i),sr=!1,Qr&&(d=Eh(n,a,l,i)),Sh(e),d}function Sh(e){j.H=Cs;var n=qe!==null&&qe.next!==null;if(ga=0,ft=qe=ke=null,bs=!1,tl=0,Kr=null,n)throw Error(s(300));e===null||St||(e=e.dependencies,e!==null&&ms(e)&&(St=!0))}function Eh(e,n,a,l){ke=e;var i=0;do{if(Qr&&(Kr=null),tl=0,Qr=!1,25<=i)throw Error(s(301));if(i+=1,ft=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)}j.H=Cw,d=n(a,l)}while(Qr);return d}function xw(){var e=j.H,n=e.useState()[0];return n=typeof n.then=="function"?nl(n):n,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(ke.flags|=1024),n}function cu(){var e=xs!==0;return xs=0,e}function uu(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function du(e){if(bs){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}bs=!1}ga=0,ft=qe=ke=null,Qr=!1,tl=xs=0,Kr=null}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?ke.memoizedState=ft=e:ft=ft.next=e,ft}function mt(){if(qe===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var n=ft===null?ke.memoizedState:ft.next;if(n!==null)ft=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},ft===null?ke.memoizedState=ft=e:ft=ft.next=e}return ft}function fu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nl(e){var n=tl;return tl+=1,Kr===null&&(Kr=[]),e=gh(Kr,e,n),n=ke,(ft===null?n.memoizedState:ft.next)===null&&(n=n.alternate,j.H=n===null||n.memoizedState===null?rp:op),e}function ws(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return nl(e);if(e.$$typeof===O)return _t(e)}throw Error(s(438,String(e)))}function mu(e){var n=null,a=ke.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var l=ke.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(i){return i.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=fu(),ke.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),l=0;l<e;l++)a[l]=fe;return n.index++,a}function Xn(e,n){return typeof n=="function"?n(e):n}function Ss(e){var n=mt();return hu(n,qe,e)}function hu(e,n,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var i=e.baseQueue,d=l.pending;if(d!==null){if(i!==null){var x=i.next;i.next=d.next,d.next=x}n.baseQueue=i=d,l.pending=null}if(d=e.baseState,i===null)e.memoizedState=d;else{n=i.next;var w=x=null,_=null,H=n,Q=!1;do{var Z=H.lane&-536870913;if(Z!==H.lane?(ze&Z)===Z:(ga&Z)===Z){var P=H.revertLane;if(P===0)_!==null&&(_=_.next={lane:0,revertLane:0,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),Z===Ir&&(Q=!0);else if((ga&P)===P){H=H.next,P===Ir&&(Q=!0);continue}else Z={lane:0,revertLane:H.revertLane,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},_===null?(w=_=Z,x=d):_=_.next=Z,ke.lanes|=P,Ea|=P;Z=H.action,sr&&a(d,Z),d=H.hasEagerState?H.eagerState:a(d,Z)}else P={lane:Z,revertLane:H.revertLane,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},_===null?(w=_=P,x=d):_=_.next=P,ke.lanes|=Z,Ea|=Z;H=H.next}while(H!==null&&H!==n);if(_===null?x=d:_.next=w,!qt(d,e.memoizedState)&&(St=!0,Q&&(a=Gr,a!==null)))throw a;e.memoizedState=d,e.baseState=x,e.baseQueue=_,l.lastRenderedState=d}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function pu(e){var n=mt(),a=n.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=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);qt(d,n.memoizedState)||(St=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),a.lastRenderedState=d}return[d,l]}function Nh(e,n,a){var l=ke,i=mt(),d=Be;if(d){if(a===void 0)throw Error(s(407));a=a()}else a=n();var x=!qt((qe||i).memoizedState,a);x&&(i.memoizedState=a,St=!0),i=i.queue;var w=Rh.bind(null,l,i,e);if(al(2048,8,w,[e]),i.getSnapshot!==n||x||ft!==null&&ft.memoizedState.tag&1){if(l.flags|=2048,Zr(9,Es(),Ch.bind(null,l,i,a,n),null),Ze===null)throw Error(s(349));d||(ga&124)!==0||Th(l,n,a)}return a}function Th(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=ke.updateQueue,n===null?(n=fu(),ke.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function Ch(e,n,a,l){n.value=a,n.getSnapshot=l,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!qt(e,a)}catch{return!0}}function kh(e){var n=$r(e,2);n!==null&&Qt(n,e,2)}function gu(e){var n=Ut();if(typeof e=="function"){var a=e;if(e=a(),sr){Mt(!0);try{a()}finally{Mt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:e},n}function _h(e,n,a,l){return e.baseState=a,hu(e,qe,typeof l=="function"?l:Xn)}function ww(e,n,a,l,i){if(Ts(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)}};j.T!==null?a(!0):d.isTransition=!1,l(d),a=n.pending,a===null?(d.next=n.pending=d,jh(n,d)):(d.next=a.next,n.pending=a.next=d)}}function jh(e,n){var a=n.action,l=n.payload,i=e.state;if(n.isTransition){var d=j.T,x={};j.T=x;try{var w=a(i,l),_=j.S;_!==null&&_(x,w),Oh(e,n,w)}catch(H){vu(e,n,H)}finally{j.T=d}}else try{d=a(i,l),Oh(e,n,d)}catch(H){vu(e,n,H)}}function Oh(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Dh(e,n,l)},function(l){return vu(e,n,l)}):Dh(e,n,a)}function Dh(e,n,a){n.status="fulfilled",n.value=a,Mh(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,jh(e,a)))}function vu(e,n,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=a,Mh(n),n=n.next;while(n!==l)}e.action=null}function Mh(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(Be){var a=Ze.formState;if(a!==null){e:{var l=ke;if(Be){if(rt){t:{for(var i=rt,d=Cn;i.nodeType!==8;){if(!d){i=null;break t}if(i=gn(i.nextSibling),i===null){i=null;break t}}d=i.data,i=d==="F!"||d==="F"?i:null}if(i){rt=gn(i.nextSibling),l=i.data==="F!";break e}}ar(l)}l=!1}l&&(n=a[0])}}return a=Ut(),a.memoizedState=a.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zh,lastRenderedState:n},a.queue=l,a=tp.bind(null,ke,l),l.dispatch=a,l=gu(!1),d=Su.bind(null,ke,!1,l.queue),l=Ut(),i={state:n,dispatch:null,action:e,pending:null},l.queue=i,a=ww.bind(null,ke,i,d,a),i.dispatch=a,l.memoizedState=e,[n,a,!1]}function Uh(e){var n=mt();return Bh(n,qe,e)}function Bh(e,n,a){if(n=hu(e,n,zh)[0],e=Ss(Xn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=nl(n)}catch(x){throw x===Zo?gs:x}else l=n;n=mt();var i=n.queue,d=i.dispatch;return a!==n.memoizedState&&(ke.flags|=2048,Zr(9,Es(),Sw.bind(null,i,a),null)),[l,d,e]}function Sw(e,n){e.action=n}function Hh(e){var n=mt(),a=qe;if(a!==null)return Bh(n,a,e);mt(),n=n.memoizedState,a=mt();var l=a.queue.dispatch;return a.memoizedState=e,[n,l,!1]}function Zr(e,n,a,l){return e={tag:e,create:a,deps:l,inst:n,next:null},n=ke.updateQueue,n===null&&(n=fu(),ke.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,n.lastEffect=e),e}function Es(){return{destroy:void 0,resource:void 0}}function Ph(){return mt().memoizedState}function Ns(e,n,a,l){var i=Ut();l=l===void 0?null:l,ke.flags|=e,i.memoizedState=Zr(1|n,Es(),a,l)}function al(e,n,a,l){var i=mt();l=l===void 0?null:l;var d=i.memoizedState.inst;qe!==null&&l!==null&&su(l,qe.memoizedState.deps)?i.memoizedState=Zr(n,d,a,l):(ke.flags|=e,i.memoizedState=Zr(1|n,d,a,l))}function $h(e,n){Ns(8390656,8,e,n)}function qh(e,n){al(2048,8,e,n)}function Vh(e,n){return al(4,2,e,n)}function Yh(e,n){return al(4,4,e,n)}function Ih(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 Gh(e,n,a){a=a!=null?a.concat([e]):null,al(4,4,Ih.bind(null,n,e),a)}function yu(){}function Xh(e,n){var a=mt();n=n===void 0?null:n;var l=a.memoizedState;return n!==null&&su(n,l[1])?l[0]:(a.memoizedState=[e,n],e)}function Qh(e,n){var a=mt();n=n===void 0?null:n;var l=a.memoizedState;if(n!==null&&su(n,l[1]))return l[0];if(l=e(),sr){Mt(!0);try{e()}finally{Mt(!1)}}return a.memoizedState=[l,n],l}function bu(e,n,a){return a===void 0||(ga&1073741824)!==0?e.memoizedState=n:(e.memoizedState=a,e=Wp(),ke.lanes|=e,Ea|=e,a)}function Kh(e,n,a,l){return qt(a,n)?a:Xr.current!==null?(e=bu(e,a,l),qt(e,n)||(St=!0),e):(ga&42)===0?(St=!0,e.memoizedState=a):(e=Wp(),ke.lanes|=e,Ea|=e,n)}function Zh(e,n,a,l,i){var d=$.p;$.p=d!==0&&8>d?d:8;var x=j.T,w={};j.T=w,Su(e,!1,n,a);try{var _=i(),H=j.S;if(H!==null&&H(w,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var Q=yw(_,l);rl(e,n,Q,Xt(e))}else rl(e,n,l,Xt(e))}catch(Z){rl(e,n,{then:function(){},status:"rejected",reason:Z},Xt())}finally{$.p=d,j.T=x}}function Ew(){}function xu(e,n,a,l){if(e.tag!==5)throw Error(s(476));var i=Wh(e).queue;Zh(e,i,n,D,a===null?Ew:function(){return Fh(e),a(l)})}function Wh(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:D},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Fh(e){var n=Wh(e).next.queue;rl(e,n,{},Xt())}function wu(){return _t(Sl)}function Jh(){return mt().memoizedState}function ep(){return mt().memoizedState}function Nw(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=Xt();e=ha(a);var l=pa(n,e,a);l!==null&&(Qt(l,n,a),Fo(l,n,a)),n={cache:Wc()},e.payload=n;return}n=n.return}}function Tw(e,n,a){var l=Xt();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Ts(e)?np(n,a):(a=$c(e,n,a,l),a!==null&&(Qt(a,e,l),ap(a,n,l)))}function tp(e,n,a){var l=Xt();rl(e,n,a,l)}function rl(e,n,a,l){var i={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ts(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,qt(w,x))return is(e,n,i,0),Ze===null&&ss(),!1}catch{}if(a=$c(e,n,i,l),a!==null)return Qt(a,e,l),ap(a,n,l),!0}return!1}function Su(e,n,a,l){if(l={lane:2,revertLane:ed(),action:l,hasEagerState:!1,eagerState:null,next:null},Ts(e)){if(n)throw Error(s(479))}else n=$c(e,a,l,2),n!==null&&Qt(n,e,2)}function Ts(e){var n=e.alternate;return e===ke||n!==null&&n===ke}function np(e,n){Qr=bs=!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 l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,Ue(e,a)}}var Cs={readContext:_t,use:ws,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut},rp={readContext:_t,use:ws,useCallback:function(e,n){return Ut().memoizedState=[e,n===void 0?null:n],e},useContext:_t,useEffect:$h,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,Ns(4194308,4,Ih.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Ns(4194308,4,e,n)},useInsertionEffect:function(e,n){Ns(4,2,e,n)},useMemo:function(e,n){var a=Ut();n=n===void 0?null:n;var l=e();if(sr){Mt(!0);try{e()}finally{Mt(!1)}}return a.memoizedState=[l,n],l},useReducer:function(e,n,a){var l=Ut();if(a!==void 0){var i=a(n);if(sr){Mt(!0);try{a(n)}finally{Mt(!1)}}}else i=n;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=Tw.bind(null,ke,e),[l.memoizedState,e]},useRef:function(e){var n=Ut();return e={current:e},n.memoizedState=e},useState:function(e){e=gu(e);var n=e.queue,a=tp.bind(null,ke,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:yu,useDeferredValue:function(e,n){var a=Ut();return bu(a,e,n)},useTransition:function(){var e=gu(!1);return e=Zh.bind(null,ke,e.queue,!0,!1),Ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var l=ke,i=Ut();if(Be){if(a===void 0)throw Error(s(407));a=a()}else{if(a=n(),Ze===null)throw Error(s(349));(ze&124)!==0||Th(l,n,a)}i.memoizedState=a;var d={value:a,getSnapshot:n};return i.queue=d,$h(Rh.bind(null,l,d,e),[e]),l.flags|=2048,Zr(9,Es(),Ch.bind(null,l,d,a,n),null),a},useId:function(){var e=Ut(),n=Ze.identifierPrefix;if(Be){var a=Yn,l=Vn;a=(l&~(1<<32-We(l)-1)).toString(32)+a,n="«"+n+"R"+a,a=xs++,0<a&&(n+="H"+a.toString(32)),n+="»"}else a=bw++,n="«"+n+"r"+a.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:wu,useFormState:Lh,useActionState:Lh,useOptimistic:function(e){var n=Ut();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Su.bind(null,ke,!0,a),a.dispatch=n,[e,n]},useMemoCache:mu,useCacheRefresh:function(){return Ut().memoizedState=Nw.bind(null,ke)}},op={readContext:_t,use:ws,useCallback:Xh,useContext:_t,useEffect:qh,useImperativeHandle:Gh,useInsertionEffect:Vh,useLayoutEffect:Yh,useMemo:Qh,useReducer:Ss,useRef:Ph,useState:function(){return Ss(Xn)},useDebugValue:yu,useDeferredValue:function(e,n){var a=mt();return Kh(a,qe.memoizedState,e,n)},useTransition:function(){var e=Ss(Xn)[0],n=mt().memoizedState;return[typeof e=="boolean"?e:nl(e),n]},useSyncExternalStore:Nh,useId:Jh,useHostTransitionStatus:wu,useFormState:Uh,useActionState:Uh,useOptimistic:function(e,n){var a=mt();return _h(a,qe,e,n)},useMemoCache:mu,useCacheRefresh:ep},Cw={readContext:_t,use:ws,useCallback:Xh,useContext:_t,useEffect:qh,useImperativeHandle:Gh,useInsertionEffect:Vh,useLayoutEffect:Yh,useMemo:Qh,useReducer:pu,useRef:Ph,useState:function(){return pu(Xn)},useDebugValue:yu,useDeferredValue:function(e,n){var a=mt();return qe===null?bu(a,e,n):Kh(a,qe.memoizedState,e,n)},useTransition:function(){var e=pu(Xn)[0],n=mt().memoizedState;return[typeof e=="boolean"?e:nl(e),n]},useSyncExternalStore:Nh,useId:Jh,useHostTransitionStatus:wu,useFormState:Hh,useActionState:Hh,useOptimistic:function(e,n){var a=mt();return qe!==null?_h(a,qe,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:mu,useCacheRefresh:ep},Wr=null,ol=0;function Rs(e){var n=ol;return ol+=1,Wr===null&&(Wr=[]),gh(Wr,e,n)}function ll(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function As(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 lp(e){var n=e._init;return n(e._payload)}function sp(e){function n(z,M){if(e){var B=z.deletions;B===null?(z.deletions=[M],z.flags|=16):B.push(M)}}function a(z,M){if(!e)return null;for(;M!==null;)n(z,M),M=M.sibling;return null}function l(z){for(var M=new Map;z!==null;)z.key!==null?M.set(z.key,z):M.set(z.index,z),z=z.sibling;return M}function i(z,M){return z=qn(z,M),z.index=0,z.sibling=null,z}function d(z,M,B){return z.index=B,e?(B=z.alternate,B!==null?(B=B.index,B<M?(z.flags|=67108866,M):B):(z.flags|=67108866,M)):(z.flags|=1048576,M)}function x(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function w(z,M,B,K){return M===null||M.tag!==6?(M=Vc(B,z.mode,K),M.return=z,M):(M=i(M,B),M.return=z,M)}function _(z,M,B,K){var he=B.type;return he===R?Q(z,M,B.props.children,K,B.key):M!==null&&(M.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===Y&&lp(he)===M.type)?(M=i(M,B.props),ll(M,B),M.return=z,M):(M=us(B.type,B.key,B.props,null,z.mode,K),ll(M,B),M.return=z,M)}function H(z,M,B,K){return M===null||M.tag!==4||M.stateNode.containerInfo!==B.containerInfo||M.stateNode.implementation!==B.implementation?(M=Yc(B,z.mode,K),M.return=z,M):(M=i(M,B.children||[]),M.return=z,M)}function Q(z,M,B,K,he){return M===null||M.tag!==7?(M=Ja(B,z.mode,K,he),M.return=z,M):(M=i(M,B),M.return=z,M)}function Z(z,M,B){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Vc(""+M,z.mode,B),M.return=z,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case S:return B=us(M.type,M.key,M.props,null,z.mode,B),ll(B,M),B.return=z,B;case A:return M=Yc(M,z.mode,B),M.return=z,M;case Y:var K=M._init;return M=K(M._payload),Z(z,M,B)}if(le(M)||ue(M))return M=Ja(M,z.mode,B,null),M.return=z,M;if(typeof M.then=="function")return Z(z,Rs(M),B);if(M.$$typeof===O)return Z(z,hs(z,M),B);As(z,M)}return null}function P(z,M,B,K){var he=M!==null?M.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return he!==null?null:w(z,M,""+B,K);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case S:return B.key===he?_(z,M,B,K):null;case A:return B.key===he?H(z,M,B,K):null;case Y:return he=B._init,B=he(B._payload),P(z,M,B,K)}if(le(B)||ue(B))return he!==null?null:Q(z,M,B,K,null);if(typeof B.then=="function")return P(z,M,Rs(B),K);if(B.$$typeof===O)return P(z,M,hs(z,B),K);As(z,B)}return null}function q(z,M,B,K,he){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return z=z.get(B)||null,w(M,z,""+K,he);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case S:return z=z.get(K.key===null?B:K.key)||null,_(M,z,K,he);case A:return z=z.get(K.key===null?B:K.key)||null,H(M,z,K,he);case Y:var Oe=K._init;return K=Oe(K._payload),q(z,M,B,K,he)}if(le(K)||ue(K))return z=z.get(B)||null,Q(M,z,K,he,null);if(typeof K.then=="function")return q(z,M,B,Rs(K),he);if(K.$$typeof===O)return q(z,M,B,hs(M,K),he);As(M,K)}return null}function Ee(z,M,B,K){for(var he=null,Oe=null,ye=M,Se=M=0,Nt=null;ye!==null&&Se<B.length;Se++){ye.index>Se?(Nt=ye,ye=null):Nt=ye.sibling;var Le=P(z,ye,B[Se],K);if(Le===null){ye===null&&(ye=Nt);break}e&&ye&&Le.alternate===null&&n(z,ye),M=d(Le,M,Se),Oe===null?he=Le:Oe.sibling=Le,Oe=Le,ye=Nt}if(Se===B.length)return a(z,ye),Be&&tr(z,Se),he;if(ye===null){for(;Se<B.length;Se++)ye=Z(z,B[Se],K),ye!==null&&(M=d(ye,M,Se),Oe===null?he=ye:Oe.sibling=ye,Oe=ye);return Be&&tr(z,Se),he}for(ye=l(ye);Se<B.length;Se++)Nt=q(ye,z,Se,B[Se],K),Nt!==null&&(e&&Nt.alternate!==null&&ye.delete(Nt.key===null?Se:Nt.key),M=d(Nt,M,Se),Oe===null?he=Nt:Oe.sibling=Nt,Oe=Nt);return e&&ye.forEach(function(Oa){return n(z,Oa)}),Be&&tr(z,Se),he}function we(z,M,B,K){if(B==null)throw Error(s(151));for(var he=null,Oe=null,ye=M,Se=M=0,Nt=null,Le=B.next();ye!==null&&!Le.done;Se++,Le=B.next()){ye.index>Se?(Nt=ye,ye=null):Nt=ye.sibling;var Oa=P(z,ye,Le.value,K);if(Oa===null){ye===null&&(ye=Nt);break}e&&ye&&Oa.alternate===null&&n(z,ye),M=d(Oa,M,Se),Oe===null?he=Oa:Oe.sibling=Oa,Oe=Oa,ye=Nt}if(Le.done)return a(z,ye),Be&&tr(z,Se),he;if(ye===null){for(;!Le.done;Se++,Le=B.next())Le=Z(z,Le.value,K),Le!==null&&(M=d(Le,M,Se),Oe===null?he=Le:Oe.sibling=Le,Oe=Le);return Be&&tr(z,Se),he}for(ye=l(ye);!Le.done;Se++,Le=B.next())Le=q(ye,z,Se,Le.value,K),Le!==null&&(e&&Le.alternate!==null&&ye.delete(Le.key===null?Se:Le.key),M=d(Le,M,Se),Oe===null?he=Le:Oe.sibling=Le,Oe=Le);return e&&ye.forEach(function(RS){return n(z,RS)}),Be&&tr(z,Se),he}function Ye(z,M,B,K){if(typeof B=="object"&&B!==null&&B.type===R&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case S:e:{for(var he=B.key;M!==null;){if(M.key===he){if(he=B.type,he===R){if(M.tag===7){a(z,M.sibling),K=i(M,B.props.children),K.return=z,z=K;break e}}else if(M.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===Y&&lp(he)===M.type){a(z,M.sibling),K=i(M,B.props),ll(K,B),K.return=z,z=K;break e}a(z,M);break}else n(z,M);M=M.sibling}B.type===R?(K=Ja(B.props.children,z.mode,K,B.key),K.return=z,z=K):(K=us(B.type,B.key,B.props,null,z.mode,K),ll(K,B),K.return=z,z=K)}return x(z);case A:e:{for(he=B.key;M!==null;){if(M.key===he)if(M.tag===4&&M.stateNode.containerInfo===B.containerInfo&&M.stateNode.implementation===B.implementation){a(z,M.sibling),K=i(M,B.children||[]),K.return=z,z=K;break e}else{a(z,M);break}else n(z,M);M=M.sibling}K=Yc(B,z.mode,K),K.return=z,z=K}return x(z);case Y:return he=B._init,B=he(B._payload),Ye(z,M,B,K)}if(le(B))return Ee(z,M,B,K);if(ue(B)){if(he=ue(B),typeof he!="function")throw Error(s(150));return B=he.call(B),we(z,M,B,K)}if(typeof B.then=="function")return Ye(z,M,Rs(B),K);if(B.$$typeof===O)return Ye(z,M,hs(z,B),K);As(z,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,M!==null&&M.tag===6?(a(z,M.sibling),K=i(M,B),K.return=z,z=K):(a(z,M),K=Vc(B,z.mode,K),K.return=z,z=K),x(z)):a(z,M)}return function(z,M,B,K){try{ol=0;var he=Ye(z,M,B,K);return Wr=null,he}catch(ye){if(ye===Zo||ye===gs)throw ye;var Oe=Vt(29,ye,null,z.mode);return Oe.lanes=K,Oe.return=z,Oe}}}var Fr=sp(!0),ip=sp(!1),ln=V(null),Rn=null;function va(e){var n=e.alternate;X(yt,yt.current&1),X(ln,e),Rn===null&&(n===null||Xr.current!==null||n.memoizedState!==null)&&(Rn=e)}function cp(e){if(e.tag===22){if(X(yt,yt.current),X(ln,e),Rn===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(Rn=e)}}else ya()}function ya(){X(yt,yt.current),X(ln,ln.current)}function Qn(e){ne(ln),Rn===e&&(Rn=null),ne(yt)}var yt=V(0);function ks(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==="$?"||fd(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 Eu(e,n,a,l){n=e.memoizedState,a=a(l,n),a=a==null?n:b({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Nu={enqueueSetState:function(e,n,a){e=e._reactInternals;var l=Xt(),i=ha(l);i.payload=n,a!=null&&(i.callback=a),n=pa(e,i,l),n!==null&&(Qt(n,e,l),Fo(n,e,l))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var l=Xt(),i=ha(l);i.tag=1,i.payload=n,a!=null&&(i.callback=a),n=pa(e,i,l),n!==null&&(Qt(n,e,l),Fo(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=Xt(),l=ha(a);l.tag=2,n!=null&&(l.callback=n),n=pa(e,l,a),n!==null&&(Qt(n,e,a),Fo(n,e,a))}};function up(e,n,a,l,i,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,x):n.prototype&&n.prototype.isPureReactComponent?!qo(a,l)||!qo(i,d):!0}function dp(e,n,a,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,l),n.state!==e&&Nu.enqueueReplaceState(n,n.state,null)}function ir(e,n){var a=n;if("ref"in n){a={};for(var l in n)l!=="ref"&&(a[l]=n[l])}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 _s=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){_s(e)}function mp(e){console.error(e)}function hp(e){_s(e)}function js(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function pp(e,n,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Tu(e,n,a){return a=ha(a),a.tag=3,a.payload={element:null},a.callback=function(){js(e,n)},a}function gp(e){return e=ha(e),e.tag=3,e}function vp(e,n,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var d=l.value;e.payload=function(){return i(d)},e.callback=function(){pp(n,a,l)}}var x=a.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){pp(n,a,l),typeof i!="function"&&(Na===null?Na=new Set([this]):Na.add(this));var w=l.stack;this.componentDidCatch(l.value,{componentStack:w!==null?w:""})})}function Rw(e,n,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=a.alternate,n!==null&&Xo(n,a,i,!0),a=ln.current,a!==null){switch(a.tag){case 13:return Rn===null?Ku():a.alternate===null&&ot===0&&(ot=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===eu?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([l]):n.add(l),Wu(e,l,i)),!1;case 22:return a.flags|=65536,l===eu?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([l]):a.add(l)),Wu(e,l,i)),!1}throw Error(s(435,a.tag))}return Wu(e,l,i),Ku(),!1}if(Be)return n=ln.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=i,l!==Xc&&(e=Error(s(422),{cause:l}),Go(nn(e,a)))):(l!==Xc&&(n=Error(s(423),{cause:l}),Go(nn(n,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=nn(l,a),i=Tu(e.stateNode,l,i),au(e,i),ot!==4&&(ot=2)),!1;var d=Error(s(520),{cause:l});if(d=nn(d,a),ml===null?ml=[d]:ml.push(d),ot!==4&&(ot=2),n===null)return!0;l=nn(l,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Tu(a.stateNode,l,e),au(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"&&(Na===null||!Na.has(d))))return a.flags|=65536,i&=-i,a.lanes|=i,i=gp(i),vp(i,e,a,l),au(a,i),!1}a=a.return}while(a!==null);return!1}var yp=Error(s(461)),St=!1;function Rt(e,n,a,l){n.child=e===null?ip(n,null,a,l):Fr(n,e.child,a,l)}function bp(e,n,a,l,i){a=a.render;var d=n.ref;if("ref"in l){var x={};for(var w in l)w!=="ref"&&(x[w]=l[w])}else x=l;return or(n),l=iu(e,n,a,x,d,i),w=cu(),e!==null&&!St?(uu(e,n,i),Kn(e,n,i)):(Be&&w&&Ic(n),n.flags|=1,Rt(e,n,l,i),n.child)}function xp(e,n,a,l,i){if(e===null){var d=a.type;return typeof d=="function"&&!qc(d)&&d.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=d,wp(e,n,d,l,i)):(e=us(a.type,null,l,n,n.mode,i),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!Du(e,i)){var x=d.memoizedProps;if(a=a.compare,a=a!==null?a:qo,a(x,l)&&e.ref===n.ref)return Kn(e,n,i)}return n.flags|=1,e=qn(d,l),e.ref=n.ref,e.return=n,n.child=e}function wp(e,n,a,l,i){if(e!==null){var d=e.memoizedProps;if(qo(d,l)&&e.ref===n.ref)if(St=!1,n.pendingProps=l=d,Du(e,i))(e.flags&131072)!==0&&(St=!0);else return n.lanes=e.lanes,Kn(e,n,i)}return Cu(e,n,a,l,i)}function Sp(e,n,a){var l=n.pendingProps,i=l.children,d=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((n.flags&128)!==0){if(l=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&~l}else n.childLanes=0,n.child=null;return Ep(e,n,l,a)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&ps(n,d!==null?d.cachePool:null),d!==null?wh(n,d):ou(),cp(n);else return n.lanes=n.childLanes=536870912,Ep(e,n,d!==null?d.baseLanes|a:a,a)}else d!==null?(ps(n,d.cachePool),wh(n,d),ya(),n.memoizedState=null):(e!==null&&ps(n,null),ou(),ya());return Rt(e,n,i,a),n.child}function Ep(e,n,a,l){var i=Jc();return i=i===null?null:{parent:vt._currentValue,pool:i},n.memoizedState={baseLanes:a,cachePool:i},e!==null&&ps(n,null),ou(),cp(n),e!==null&&Xo(e,n,l,!0),null}function Os(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 Cu(e,n,a,l,i){return or(n),a=iu(e,n,a,l,void 0,i),l=cu(),e!==null&&!St?(uu(e,n,i),Kn(e,n,i)):(Be&&l&&Ic(n),n.flags|=1,Rt(e,n,a,i),n.child)}function Np(e,n,a,l,i,d){return or(n),n.updateQueue=null,a=Eh(n,l,a,i),Sh(e),l=cu(),e!==null&&!St?(uu(e,n,d),Kn(e,n,d)):(Be&&l&&Ic(n),n.flags|=1,Rt(e,n,a,d),n.child)}function Tp(e,n,a,l,i){if(or(n),n.stateNode===null){var d=qr,x=a.contextType;typeof x=="object"&&x!==null&&(d=_t(x)),d=new a(l,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Nu,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=l,d.state=n.memoizedState,d.refs={},tu(n),x=a.contextType,d.context=typeof x=="object"&&x!==null?_t(x):qr,d.state=n.memoizedState,x=a.getDerivedStateFromProps,typeof x=="function"&&(Eu(n,a,x,l),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&&Nu.enqueueReplaceState(d,d.state,null),el(n,l,d,i),Jo(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(e===null){d=n.stateNode;var w=n.memoizedProps,_=ir(a,w);d.props=_;var H=d.context,Q=a.contextType;x=qr,typeof Q=="object"&&Q!==null&&(x=_t(Q));var Z=a.getDerivedStateFromProps;Q=typeof Z=="function"||typeof d.getSnapshotBeforeUpdate=="function",w=n.pendingProps!==w,Q||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(w||H!==x)&&dp(n,d,l,x),ma=!1;var P=n.memoizedState;d.state=P,el(n,l,d,i),Jo(),H=n.memoizedState,w||P!==H||ma?(typeof Z=="function"&&(Eu(n,a,Z,l),H=n.memoizedState),(_=ma||up(n,a,_,l,P,H,x))?(Q||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=l,n.memoizedState=H),d.props=l,d.state=H,d.context=x,l=_):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{d=n.stateNode,nu(e,n),x=n.memoizedProps,Q=ir(a,x),d.props=Q,Z=n.pendingProps,P=d.context,H=a.contextType,_=qr,typeof H=="object"&&H!==null&&(_=_t(H)),w=a.getDerivedStateFromProps,(H=typeof w=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x!==Z||P!==_)&&dp(n,d,l,_),ma=!1,P=n.memoizedState,d.state=P,el(n,l,d,i),Jo();var q=n.memoizedState;x!==Z||P!==q||ma||e!==null&&e.dependencies!==null&&ms(e.dependencies)?(typeof w=="function"&&(Eu(n,a,w,l),q=n.memoizedState),(Q=ma||up(n,a,Q,l,P,q,_)||e!==null&&e.dependencies!==null&&ms(e.dependencies))?(H||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,q,_),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,q,_)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&P===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&P===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=q),d.props=l,d.state=q,d.context=_,l=Q):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&P===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&P===e.memoizedState||(n.flags|=1024),l=!1)}return d=l,Os(e,n),l=(n.flags&128)!==0,d||l?(d=n.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,e!==null&&l?(n.child=Fr(n,e.child,null,i),n.child=Fr(n,null,a,i)):Rt(e,n,a,i),n.memoizedState=d.state,e=n.child):e=Kn(e,n,i),e}function Cp(e,n,a,l){return Io(),n.flags|=256,Rt(e,n,a,l),n.child}var Ru={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Au(e){return{baseLanes:e,cachePool:mh()}}function ku(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=sn),e}function Rp(e,n,a){var l=n.pendingProps,i=!1,d=(n.flags&128)!==0,x;if((x=d)||(x=e!==null&&e.memoizedState===null?!1:(yt.current&2)!==0),x&&(i=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,e===null){if(Be){if(i?va(n):ya(),Be){var w=rt,_;if(_=w){e:{for(_=w,w=Cn;_.nodeType!==8;){if(!w){w=null;break e}if(_=gn(_.nextSibling),_===null){w=null;break e}}w=_}w!==null?(n.memoizedState={dehydrated:w,treeContext:er!==null?{id:Vn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},_=Vt(18,null,null,0),_.stateNode=w,_.return=n,n.child=_,Dt=n,rt=null,_=!0):_=!1}_||ar(n)}if(w=n.memoizedState,w!==null&&(w=w.dehydrated,w!==null))return fd(w)?n.lanes=32:n.lanes=536870912,null;Qn(n)}return w=l.children,l=l.fallback,i?(ya(),i=n.mode,w=Ds({mode:"hidden",children:w},i),l=Ja(l,i,a,null),w.return=n,l.return=n,w.sibling=l,n.child=w,i=n.child,i.memoizedState=Au(a),i.childLanes=ku(e,x,a),n.memoizedState=Ru,l):(va(n),_u(n,w))}if(_=e.memoizedState,_!==null&&(w=_.dehydrated,w!==null)){if(d)n.flags&256?(va(n),n.flags&=-257,n=ju(e,n,a)):n.memoizedState!==null?(ya(),n.child=e.child,n.flags|=128,n=null):(ya(),i=l.fallback,w=n.mode,l=Ds({mode:"visible",children:l.children},w),i=Ja(i,w,a,null),i.flags|=2,l.return=n,i.return=n,l.sibling=i,n.child=l,Fr(n,e.child,null,a),l=n.child,l.memoizedState=Au(a),l.childLanes=ku(e,x,a),n.memoizedState=Ru,n=i);else if(va(n),fd(w)){if(x=w.nextSibling&&w.nextSibling.dataset,x)var H=x.dgst;x=H,l=Error(s(419)),l.stack="",l.digest=x,Go({value:l,source:null,stack:null}),n=ju(e,n,a)}else if(St||Xo(e,n,a,!1),x=(a&e.childLanes)!==0,St||x){if(x=Ze,x!==null&&(l=a&-a,l=(l&42)!==0?1:Qe(l),l=(l&(x.suspendedLanes|a))!==0?0:l,l!==0&&l!==_.retryLane))throw _.retryLane=l,$r(e,l),Qt(x,e,l),yp;w.data==="$?"||Ku(),n=ju(e,n,a)}else w.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=_.treeContext,rt=gn(w.nextSibling),Dt=n,Be=!0,nr=null,Cn=!1,e!==null&&(rn[on++]=Vn,rn[on++]=Yn,rn[on++]=er,Vn=e.id,Yn=e.overflow,er=n),n=_u(n,l.children),n.flags|=4096);return n}return i?(ya(),i=l.fallback,w=n.mode,_=e.child,H=_.sibling,l=qn(_,{mode:"hidden",children:l.children}),l.subtreeFlags=_.subtreeFlags&65011712,H!==null?i=qn(H,i):(i=Ja(i,w,a,null),i.flags|=2),i.return=n,l.return=n,l.sibling=i,n.child=l,l=i,i=n.child,w=e.child.memoizedState,w===null?w=Au(a):(_=w.cachePool,_!==null?(H=vt._currentValue,_=_.parent!==H?{parent:H,pool:H}:_):_=mh(),w={baseLanes:w.baseLanes|a,cachePool:_}),i.memoizedState=w,i.childLanes=ku(e,x,a),n.memoizedState=Ru,l):(va(n),a=e.child,e=a.sibling,a=qn(a,{mode:"visible",children:l.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 _u(e,n){return n=Ds({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Ds(e,n){return e=Vt(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function ju(e,n,a){return Fr(n,e.child,null,a),e=_u(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Ap(e,n,a){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),Kc(e.return,n,a)}function Ou(e,n,a,l,i){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=a,d.tailMode=i)}function kp(e,n,a){var l=n.pendingProps,i=l.revealOrder,d=l.tail;if(Rt(e,n,l.children,a),l=yt.current,(l&2)!==0)l=l&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}l&=1}switch(X(yt,l),i){case"forwards":for(a=n.child,i=null;a!==null;)e=a.alternate,e!==null&&ks(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=n.child,n.child=null):(i=a.sibling,a.sibling=null),Ou(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&&ks(e)===null){n.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}Ou(n,!0,a,null,d);break;case"together":Ou(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Kn(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Ea|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Xo(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=qn(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=qn(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Du(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&ms(e)))}function Aw(e,n,a){switch(n.tag){case 3:se(n,n.stateNode.containerInfo),fa(n,vt,e.memoizedState.cache),Io();break;case 27:case 5:Re(n);break;case 4:se(n,n.stateNode.containerInfo);break;case 10:fa(n,n.type,n.memoizedProps.value);break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(va(n),n.flags|=128,null):(a&n.child.childLanes)!==0?Rp(e,n,a):(va(n),e=Kn(e,n,a),e!==null?e.sibling:null);va(n);break;case 19:var i=(e.flags&128)!==0;if(l=(a&n.childLanes)!==0,l||(Xo(e,n,a,!1),l=(a&n.childLanes)!==0),i){if(l)return kp(e,n,a);n.flags|=128}if(i=n.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),X(yt,yt.current),l)break;return null;case 22:case 23:return n.lanes=0,Sp(e,n,a);case 24:fa(n,vt,e.memoizedState.cache)}return Kn(e,n,a)}function _p(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)St=!0;else{if(!Du(e,a)&&(n.flags&128)===0)return St=!1,Aw(e,n,a);St=(e.flags&131072)!==0}else St=!1,Be&&(n.flags&1048576)!==0&&lh(n,fs,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var l=n.elementType,i=l._init;if(l=i(l._payload),n.type=l,typeof l=="function")qc(l)?(e=ir(l,e),n.tag=1,n=Tp(null,n,l,e,a)):(n.tag=0,n=Cu(null,n,l,e,a));else{if(l!=null){if(i=l.$$typeof,i===L){n.tag=11,n=bp(null,n,l,e,a);break e}else if(i===I){n.tag=14,n=xp(null,n,l,e,a);break e}}throw n=ie(l)||l,Error(s(306,n,""))}}return n;case 0:return Cu(e,n,n.type,n.pendingProps,a);case 1:return l=n.type,i=ir(l,n.pendingProps),Tp(e,n,l,i,a);case 3:e:{if(se(n,n.stateNode.containerInfo),e===null)throw Error(s(387));l=n.pendingProps;var d=n.memoizedState;i=d.element,nu(e,n),el(n,l,null,a);var x=n.memoizedState;if(l=x.cache,fa(n,vt,l),l!==d.cache&&Zc(n,[vt],a,!0),Jo(),l=x.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=Cp(e,n,l,a);break e}else if(l!==i){i=nn(Error(s(424)),n),Go(i),n=Cp(e,n,l,a);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,rt=gn(e.firstChild),Dt=n,Be=!0,nr=null,Cn=!0,a=ip(n,null,l,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Io(),l===i){n=Kn(e,n,a);break e}Rt(e,n,l,a)}n=n.child}return n;case 26:return Os(e,n),e===null?(a=Mg(n.type,null,n.pendingProps,null))?n.memoizedState=a:Be||(a=n.type,e=n.pendingProps,l=Xs(te.current).createElement(a),l[ct]=n,l[Ke]=e,kt(l,a,e),wt(l),n.stateNode=l):n.memoizedState=Mg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Re(n),e===null&&Be&&(l=n.stateNode=jg(n.type,n.pendingProps,te.current),Dt=n,Cn=!0,i=rt,Ra(n.type)?(md=i,rt=gn(l.firstChild)):rt=i),Rt(e,n,n.pendingProps.children,a),Os(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Be&&((i=l=rt)&&(l=nS(l,n.type,n.pendingProps,Cn),l!==null?(n.stateNode=l,Dt=n,rt=gn(l.firstChild),Cn=!1,i=!0):i=!1),i||ar(n)),Re(n),i=n.type,d=n.pendingProps,x=e!==null?e.memoizedProps:null,l=d.children,cd(i,d)?l=null:x!==null&&cd(i,x)&&(n.flags|=32),n.memoizedState!==null&&(i=iu(e,n,xw,null,null,a),Sl._currentValue=i),Os(e,n),Rt(e,n,l,a),n.child;case 6:return e===null&&Be&&((e=a=rt)&&(a=aS(a,n.pendingProps,Cn),a!==null?(n.stateNode=a,Dt=n,rt=null,e=!0):e=!1),e||ar(n)),null;case 13:return Rp(e,n,a);case 4:return se(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=Fr(n,null,l,a):Rt(e,n,l,a),n.child;case 11:return bp(e,n,n.type,n.pendingProps,a);case 7:return Rt(e,n,n.pendingProps,a),n.child;case 8:return Rt(e,n,n.pendingProps.children,a),n.child;case 12:return Rt(e,n,n.pendingProps.children,a),n.child;case 10:return l=n.pendingProps,fa(n,n.type,l.value),Rt(e,n,l.children,a),n.child;case 9:return i=n.type._context,l=n.pendingProps.children,or(n),i=_t(i),l=l(i),n.flags|=1,Rt(e,n,l,a),n.child;case 14:return xp(e,n,n.type,n.pendingProps,a);case 15:return wp(e,n,n.type,n.pendingProps,a);case 19:return kp(e,n,a);case 31:return l=n.pendingProps,a=n.mode,l={mode:l.mode,children:l.children},e===null?(a=Ds(l,a),a.ref=n.ref,n.child=a,a.return=n,n=a):(a=qn(e.child,l),a.ref=n.ref,n.child=a,a.return=n,n=a),n;case 22:return Sp(e,n,a);case 24:return or(n),l=_t(vt),e===null?(i=Jc(),i===null&&(i=Ze,d=Wc(),i.pooledCache=d,d.refCount++,d!==null&&(i.pooledCacheLanes|=a),i=d),n.memoizedState={parent:l,cache:i},tu(n),fa(n,vt,i)):((e.lanes&a)!==0&&(nu(e,n),el(n,null,null,a),Jo()),i=e.memoizedState,d=n.memoizedState,i.parent!==l?(i={parent:l,cache:l},n.memoizedState=i,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=i),fa(n,vt,l)):(l=d.cache,fa(n,vt,l),l!==i.cache&&Zc(n,[vt],a,!0))),Rt(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}function Zn(e){e.flags|=4}function jp(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Hg(n)){if(n=ln.current,n!==null&&((ze&4194048)===ze?Rn!==null:(ze&62914560)!==ze&&(ze&536870912)===0||n!==Rn))throw Wo=eu,hh;e.flags|=8192}}function Ms(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Ga():536870912,e.lanes|=n,no|=n)}function sl(e,n){if(!Be)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 l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function nt(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(n)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=a,n}function kw(e,n,a){var l=n.pendingProps;switch(Gc(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(n),null;case 1:return nt(n),null;case 3:return a=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),Gn(vt),xe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Yo(n)?Zn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,ch())),nt(n),null;case 26:return a=n.memoizedState,e===null?(Zn(n),a!==null?(nt(n),jp(n,a)):(nt(n),n.flags&=-16777217)):a?a!==e.memoizedState?(Zn(n),nt(n),jp(n,a)):(nt(n),n.flags&=-16777217):(e.memoizedProps!==l&&Zn(n),nt(n),n.flags&=-16777217),null;case 27:Ne(n),a=te.current;var i=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==l&&Zn(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return nt(n),null}e=F.current,Yo(n)?sh(n):(e=jg(i,l,a),n.stateNode=e,Zn(n))}return nt(n),null;case 5:if(Ne(n),a=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&Zn(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return nt(n),null}if(e=F.current,Yo(n))sh(n);else{switch(i=Xs(te.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?i.createElement("select",{is:l.is}):i.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?i.createElement(a,{is:l.is}):i.createElement(a)}}e[ct]=n,e[Ke]=l;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(kt(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Zn(n)}}return nt(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&Zn(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(s(166));if(e=te.current,Yo(n)){if(e=n.stateNode,a=n.memoizedProps,l=null,i=Dt,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[ct]=n,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Ng(e.nodeValue,a)),e||ar(n)}else e=Xs(e).createTextNode(l),e[ct]=n,n.stateNode=e}return nt(n),null;case 13:if(l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Yo(n),l!==null&&l.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[ct]=n}else Io(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;nt(n),i=!1}else i=ch(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return n.flags&256?(Qn(n),n):(Qn(n),null)}if(Qn(n),(n.flags&128)!==0)return n.lanes=a,n;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=n.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool);var d=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==i&&(l.flags|=2048)}return a!==e&&a&&(n.child.flags|=8192),Ms(n,n.updateQueue),nt(n),null;case 4:return xe(),e===null&&rd(n.stateNode.containerInfo),nt(n),null;case 10:return Gn(n.type),nt(n),null;case 19:if(ne(yt),i=n.memoizedState,i===null)return nt(n),null;if(l=(n.flags&128)!==0,d=i.rendering,d===null)if(l)sl(i,!1);else{if(ot!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(d=ks(e),d!==null){for(n.flags|=128,sl(i,!1),e=d.updateQueue,n.updateQueue=e,Ms(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)oh(a,e),a=a.sibling;return X(yt,yt.current&1|2),n.child}e=e.sibling}i.tail!==null&<()>Us&&(n.flags|=128,l=!0,sl(i,!1),n.lanes=4194304)}else{if(!l)if(e=ks(d),e!==null){if(n.flags|=128,l=!0,e=e.updateQueue,n.updateQueue=e,Ms(n,e),sl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Be)return nt(n),null}else 2*lt()-i.renderingStartTime>Us&&a!==536870912&&(n.flags|=128,l=!0,sl(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=lt(),n.sibling=null,e=yt.current,X(yt,l?e&1|2:e&1),n):(nt(n),null);case 22:case 23:return Qn(n),lu(),l=n.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(a&536870912)!==0&&(n.flags&128)===0&&(nt(n),n.subtreeFlags&6&&(n.flags|=8192)):nt(n),a=n.updateQueue,a!==null&&Ms(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==a&&(n.flags|=2048),e!==null&&ne(lr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),Gn(vt),nt(n),null;case 25:return null;case 30:return null}throw Error(s(156,n.tag))}function _w(e,n){switch(Gc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Gn(vt),xe(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Ne(n),null;case 13:if(Qn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(s(340));Io()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return ne(yt),null;case 4:return xe(),null;case 10:return Gn(n.type),null;case 22:case 23:return Qn(n),lu(),e!==null&&ne(lr),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Gn(vt),null;case 25:return null;default:return null}}function Op(e,n){switch(Gc(n),n.tag){case 3:Gn(vt),xe();break;case 26:case 27:case 5:Ne(n);break;case 4:xe();break;case 13:Qn(n);break;case 19:ne(yt);break;case 10:Gn(n.type);break;case 22:case 23:Qn(n),lu(),e!==null&&ne(lr);break;case 24:Gn(vt)}}function il(e,n){try{var a=n.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){l=void 0;var d=a.create,x=a.inst;l=d(),x.destroy=l}a=a.next}while(a!==i)}}catch(w){Ge(n,n.return,w)}}function ba(e,n,a){try{var l=n.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var d=i.next;l=d;do{if((l.tag&e)===e){var x=l.inst,w=x.destroy;if(w!==void 0){x.destroy=void 0,i=n;var _=a,H=w;try{H()}catch(Q){Ge(i,_,Q)}}}l=l.next}while(l!==d)}}catch(Q){Ge(n,n.return,Q)}}function Dp(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{xh(n,a)}catch(l){Ge(e,e.return,l)}}}function Mp(e,n,a){a.props=ir(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ge(e,n,l)}}function cl(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(i){Ge(e,n,i)}}function An(e,n){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Ge(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){Ge(e,n,i)}else a.current=null}function zp(e){var n=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(i){Ge(e,e.return,i)}}function Mu(e,n,a){try{var l=e.stateNode;Ww(l,e.type,a,n),l[Ke]=n}catch(i){Ge(e,e.return,i)}}function Lp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ra(e.type)||e.tag===4}function zu(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&&Ra(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 Lu(e,n,a){var l=e.tag;if(l===5||l===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=Gs));else if(l!==4&&(l===27&&Ra(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(Lu(e,n,a),e=e.sibling;e!==null;)Lu(e,n,a),e=e.sibling}function zs(e,n,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(l!==4&&(l===27&&Ra(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(zs(e,n,a),e=e.sibling;e!==null;)zs(e,n,a),e=e.sibling}function Up(e){var n=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=n.attributes;i.length;)n.removeAttributeNode(i[0]);kt(n,l,a),n[ct]=e,n[Ke]=a}catch(d){Ge(e,e.return,d)}}var Wn=!1,dt=!1,Uu=!1,Bp=typeof WeakSet=="function"?WeakSet:Set,Et=null;function jw(e,n){if(e=e.containerInfo,sd=Js,e=Km(e),zc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var x=0,w=-1,_=-1,H=0,Q=0,Z=e,P=null;t:for(;;){for(var q;Z!==a||i!==0&&Z.nodeType!==3||(w=x+i),Z!==d||l!==0&&Z.nodeType!==3||(_=x+l),Z.nodeType===3&&(x+=Z.nodeValue.length),(q=Z.firstChild)!==null;)P=Z,Z=q;for(;;){if(Z===e)break t;if(P===a&&++H===i&&(w=x),P===d&&++Q===l&&(_=x),(q=Z.nextSibling)!==null)break;Z=P,P=Z.parentNode}Z=q}a=w===-1||_===-1?null:{start:w,end:_}}else a=null}a=a||{start:0,end:0}}else a=null;for(id={focusedElem:e,selectionRange:a},Js=!1,Et=n;Et!==null;)if(n=Et,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,Et=e;else for(;Et!==null;){switch(n=Et,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,l=a.stateNode;try{var Ee=ir(a.type,i,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(Ee,d),l.__reactInternalSnapshotBeforeUpdate=e}catch(we){Ge(a,a.return,we)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)dd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":dd(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,Et=e;break}Et=n.return}}function Hp(e,n,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:xa(e,a),l&4&&il(5,a);break;case 1:if(xa(e,a),l&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(x){Ge(a,a.return,x)}else{var i=ir(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(i,n,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ge(a,a.return,x)}}l&64&&Dp(a),l&512&&cl(a,a.return);break;case 3:if(xa(e,a),l&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){Ge(a,a.return,x)}}break;case 27:n===null&&l&4&&Up(a);case 26:case 5:xa(e,a),n===null&&l&4&&zp(a),l&512&&cl(a,a.return);break;case 12:xa(e,a);break;case 13:xa(e,a),l&4&&qp(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Pw.bind(null,a),rS(e,a))));break;case 22:if(l=a.memoizedState!==null||Wn,!l){n=n!==null&&n.memoizedState!==null||dt,i=Wn;var d=dt;Wn=l,(dt=n)&&!d?wa(e,a,(a.subtreeFlags&8772)!==0):xa(e,a),Wn=i,dt=d}break;case 30:break;default:xa(e,a)}}function Pp(e){var n=e.alternate;n!==null&&(e.alternate=null,Pp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&gc(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 et=null,Bt=!1;function Fn(e,n,a){for(a=a.child;a!==null;)$p(e,n,a),a=a.sibling}function $p(e,n,a){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount($t,a)}catch{}switch(a.tag){case 26:dt||An(a,n),Fn(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:dt||An(a,n);var l=et,i=Bt;Ra(a.type)&&(et=a.stateNode,Bt=!1),Fn(e,n,a),yl(a.stateNode),et=l,Bt=i;break;case 5:dt||An(a,n);case 6:if(l=et,i=Bt,et=null,Fn(e,n,a),et=l,Bt=i,et!==null)if(Bt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(a.stateNode)}catch(d){Ge(a,n,d)}else try{et.removeChild(a.stateNode)}catch(d){Ge(a,n,d)}break;case 18:et!==null&&(Bt?(e=et,kg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Cl(e)):kg(et,a.stateNode));break;case 4:l=et,i=Bt,et=a.stateNode.containerInfo,Bt=!0,Fn(e,n,a),et=l,Bt=i;break;case 0:case 11:case 14:case 15:dt||ba(2,a,n),dt||ba(4,a,n),Fn(e,n,a);break;case 1:dt||(An(a,n),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Mp(a,n,l)),Fn(e,n,a);break;case 21:Fn(e,n,a);break;case 22:dt=(l=dt)||a.memoizedState!==null,Fn(e,n,a),dt=l;break;default:Fn(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{Cl(e)}catch(a){Ge(n,n.return,a)}}function Ow(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 Bu(e,n){var a=Ow(e);n.forEach(function(l){var i=$w.bind(null,e,l);a.has(l)||(a.add(l),l.then(i,i))})}function Yt(e,n){var a=n.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],d=e,x=n,w=x;e:for(;w!==null;){switch(w.tag){case 27:if(Ra(w.type)){et=w.stateNode,Bt=!1;break e}break;case 5:et=w.stateNode,Bt=!1;break e;case 3:case 4:et=w.stateNode.containerInfo,Bt=!0;break e}w=w.return}if(et===null)throw Error(s(160));$p(d,x,i),et=null,Bt=!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 pn=null;function Vp(e,n){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yt(n,e),It(e),l&4&&(ba(3,e,e.return),il(3,e),ba(5,e,e.return));break;case 1:Yt(n,e),It(e),l&512&&(dt||a===null||An(a,a.return)),l&64&&Wn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var i=pn;if(Yt(n,e),It(e),l&512&&(dt||a===null||An(a,a.return)),l&4){var d=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":d=i.getElementsByTagName("title")[0],(!d||d[Do]||d[ct]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=i.createElement(l),i.head.insertBefore(d,i.querySelector("head > title"))),kt(d,l,a),d[ct]=e,wt(d),l=d;break e;case"link":var x=Ug("link","href",i).get(l+(a.href||""));if(x){for(var w=0;w<x.length;w++)if(d=x[w],d.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&d.getAttribute("rel")===(a.rel==null?null:a.rel)&&d.getAttribute("title")===(a.title==null?null:a.title)&&d.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){x.splice(w,1);break t}}d=i.createElement(l),kt(d,l,a),i.head.appendChild(d);break;case"meta":if(x=Ug("meta","content",i).get(l+(a.content||""))){for(w=0;w<x.length;w++)if(d=x[w],d.getAttribute("content")===(a.content==null?null:""+a.content)&&d.getAttribute("name")===(a.name==null?null:a.name)&&d.getAttribute("property")===(a.property==null?null:a.property)&&d.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&d.getAttribute("charset")===(a.charSet==null?null:a.charSet)){x.splice(w,1);break t}}d=i.createElement(l),kt(d,l,a),i.head.appendChild(d);break;default:throw Error(s(468,l))}d[ct]=e,wt(d),l=d}e.stateNode=l}else Bg(i,e.type,e.stateNode);else e.stateNode=Lg(i,l,e.memoizedProps);else d!==l?(d===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):d.count--,l===null?Bg(i,e.type,e.stateNode):Lg(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Mu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Yt(n,e),It(e),l&512&&(dt||a===null||An(a,a.return)),a!==null&&l&4&&Mu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Yt(n,e),It(e),l&512&&(dt||a===null||An(a,a.return)),e.flags&32){i=e.stateNode;try{Mr(i,"")}catch(q){Ge(e,e.return,q)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,Mu(e,i,a!==null?a.memoizedProps:i)),l&1024&&(Uu=!0);break;case 6:if(Yt(n,e),It(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(q){Ge(e,e.return,q)}}break;case 3:if(Zs=null,i=pn,pn=Qs(n.containerInfo),Yt(n,e),pn=i,It(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Cl(n.containerInfo)}catch(q){Ge(e,e.return,q)}Uu&&(Uu=!1,Yp(e));break;case 4:l=pn,pn=Qs(e.stateNode.containerInfo),Yt(n,e),It(e),pn=l;break;case 12:Yt(n,e),It(e);break;case 13:Yt(n,e),It(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Yu=lt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bu(e,l)));break;case 22:i=e.memoizedState!==null;var _=a!==null&&a.memoizedState!==null,H=Wn,Q=dt;if(Wn=H||i,dt=Q||_,Yt(n,e),dt=Q,Wn=H,It(e),l&8192)e:for(n=e.stateNode,n._visibility=i?n._visibility&-2:n._visibility|1,i&&(a===null||_||Wn||dt||cr(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){_=a=n;try{if(d=_.stateNode,i)x=d.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{w=_.stateNode;var Z=_.memoizedProps.style,P=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;w.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(q){Ge(_,_.return,q)}}}else if(n.tag===6){if(a===null){_=n;try{_.stateNode.nodeValue=i?"":_.memoizedProps}catch(q){Ge(_,_.return,q)}}}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}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Bu(e,a))));break;case 19:Yt(n,e),It(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bu(e,l)));break;case 30:break;case 21:break;default:Yt(n,e),It(e)}}function It(e){var n=e.flags;if(n&2){try{for(var a,l=e.return;l!==null;){if(Lp(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var i=a.stateNode,d=zu(e);zs(e,d,i);break;case 5:var x=a.stateNode;a.flags&32&&(Mr(x,""),a.flags&=-33);var w=zu(e);zs(e,w,x);break;case 3:case 4:var _=a.stateNode.containerInfo,H=zu(e);Lu(e,H,_);break;default:throw Error(s(161))}}catch(Q){Ge(e,e.return,Q)}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 xa(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Hp(e,n.alternate,n),n=n.sibling}function cr(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:ba(4,n,n.return),cr(n);break;case 1:An(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Mp(n,n.return,a),cr(n);break;case 27:yl(n.stateNode);case 26:case 5:An(n,n.return),cr(n);break;case 22:n.memoizedState===null&&cr(n);break;case 30:cr(n);break;default:cr(n)}e=e.sibling}}function wa(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var l=n.alternate,i=e,d=n,x=d.flags;switch(d.tag){case 0:case 11:case 15:wa(i,d,a),il(4,d);break;case 1:if(wa(i,d,a),l=d,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(H){Ge(l,l.return,H)}if(l=d,i=l.updateQueue,i!==null){var w=l.stateNode;try{var _=i.shared.hiddenCallbacks;if(_!==null)for(i.shared.hiddenCallbacks=null,i=0;i<_.length;i++)bh(_[i],w)}catch(H){Ge(l,l.return,H)}}a&&x&64&&Dp(d),cl(d,d.return);break;case 27:Up(d);case 26:case 5:wa(i,d,a),a&&l===null&&x&4&&zp(d),cl(d,d.return);break;case 12:wa(i,d,a);break;case 13:wa(i,d,a),a&&x&4&&qp(i,d);break;case 22:d.memoizedState===null&&wa(i,d,a),cl(d,d.return);break;case 30:break;default:wa(i,d,a)}n=n.sibling}}function Hu(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&&Qo(a))}function Pu(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Qo(e))}function kn(e,n,a,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Ip(e,n,a,l),n=n.sibling}function Ip(e,n,a,l){var i=n.flags;switch(n.tag){case 0:case 11:case 15:kn(e,n,a,l),i&2048&&il(9,n);break;case 1:kn(e,n,a,l);break;case 3:kn(e,n,a,l),i&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Qo(e)));break;case 12:if(i&2048){kn(e,n,a,l),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(_){Ge(n,n.return,_)}}else kn(e,n,a,l);break;case 13:kn(e,n,a,l);break;case 23:break;case 22:d=n.stateNode,x=n.alternate,n.memoizedState!==null?d._visibility&2?kn(e,n,a,l):ul(e,n):d._visibility&2?kn(e,n,a,l):(d._visibility|=2,Jr(e,n,a,l,(n.subtreeFlags&10256)!==0)),i&2048&&Hu(x,n);break;case 24:kn(e,n,a,l),i&2048&&Pu(n.alternate,n);break;default:kn(e,n,a,l)}}function Jr(e,n,a,l,i){for(i=i&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var d=e,x=n,w=a,_=l,H=x.flags;switch(x.tag){case 0:case 11:case 15:Jr(d,x,w,_,i),il(8,x);break;case 23:break;case 22:var Q=x.stateNode;x.memoizedState!==null?Q._visibility&2?Jr(d,x,w,_,i):ul(d,x):(Q._visibility|=2,Jr(d,x,w,_,i)),i&&H&2048&&Hu(x.alternate,x);break;case 24:Jr(d,x,w,_,i),i&&H&2048&&Pu(x.alternate,x);break;default:Jr(d,x,w,_,i)}n=n.sibling}}function ul(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,l=n,i=l.flags;switch(l.tag){case 22:ul(a,l),i&2048&&Hu(l.alternate,l);break;case 24:ul(a,l),i&2048&&Pu(l.alternate,l);break;default:ul(a,l)}n=n.sibling}}var dl=8192;function eo(e){if(e.subtreeFlags&dl)for(e=e.child;e!==null;)Gp(e),e=e.sibling}function Gp(e){switch(e.tag){case 26:eo(e),e.flags&dl&&e.memoizedState!==null&&vS(pn,e.memoizedState,e.memoizedProps);break;case 5:eo(e);break;case 3:case 4:var n=pn;pn=Qs(e.stateNode.containerInfo),eo(e),pn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=dl,dl=16777216,eo(e),dl=n):eo(e));break;default:eo(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 fl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];Et=l,Kp(l,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:fl(e),e.flags&2048&&ba(9,e,e.return);break;case 3:fl(e);break;case 12:fl(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Ls(e)):fl(e);break;default:fl(e)}}function Ls(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];Et=l,Kp(l,e)}Xp(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:ba(8,n,n.return),Ls(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Ls(n));break;default:Ls(n)}e=e.sibling}}function Kp(e,n){for(;Et!==null;){var a=Et;switch(a.tag){case 0:case 11:case 15:ba(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Qo(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Et=l;else e:for(a=e;Et!==null;){l=Et;var i=l.sibling,d=l.return;if(Pp(l),l===a){Et=null;break e}if(i!==null){i.return=d,Et=i;break e}Et=d}}}var Dw={getCacheForType:function(e){var n=_t(vt),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a}},Mw=typeof WeakMap=="function"?WeakMap:Map,He=0,Ze=null,De=null,ze=0,Pe=0,Gt=null,Sa=!1,to=!1,$u=!1,Jn=0,ot=0,Ea=0,ur=0,qu=0,sn=0,no=0,ml=null,Ht=null,Vu=!1,Yu=0,Us=1/0,Bs=null,Na=null,At=0,Ta=null,ao=null,ro=0,Iu=0,Gu=null,Zp=null,hl=0,Xu=null;function Xt(){if((He&2)!==0&&ze!==0)return ze&-ze;if(j.T!==null){var e=Ir;return e!==0?e:ed()}return Qa()}function Wp(){sn===0&&(sn=(ze&536870912)===0||Be?zt():536870912);var e=ln.current;return e!==null&&(e.flags|=32),sn}function Qt(e,n,a){(e===Ze&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)&&(oo(e,0),Ca(e,ze,sn,!1)),be(e,a),((He&2)===0||e!==Ze)&&(e===Ze&&((He&2)===0&&(ur|=a),ot===4&&Ca(e,ze,sn,!1)),_n(e))}function Fp(e,n,a){if((He&6)!==0)throw Error(s(327));var l=!a&&(n&124)===0&&(n&e.expiredLanes)===0||Bn(e,n),i=l?Uw(e,n):Zu(e,n,!0),d=l;do{if(i===0){to&&!l&&Ca(e,n,0,!1);break}else{if(a=e.current.alternate,d&&!zw(a)){i=Zu(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=ml;var _=w.current.memoizedState.isDehydrated;if(_&&(oo(w,x).flags|=256),x=Zu(w,x,!1),x!==2){if($u&&!_){w.errorRecoveryDisabledLanes|=d,ur|=d,i=4;break e}d=Ht,Ht=i,d!==null&&(Ht===null?Ht=d:Ht.push.apply(Ht,d))}i=x}if(d=!1,i!==2)continue}}if(i===1){oo(e,0),Ca(e,n,0,!0);break}e:{switch(l=e,d=i,d){case 0:case 1:throw Error(s(345));case 4:if((n&4194048)!==n)break;case 6:Ca(l,n,sn,!Sa);break e;case 2:Ht=null;break;case 3:case 5:break;default:throw Error(s(329))}if((n&62914560)===n&&(i=Yu+300-lt(),10<i)){if(Ca(l,n,sn,!Sa),Un(l,0,!0)!==0)break e;l.timeoutHandle=Rg(Jp.bind(null,l,a,Ht,Bs,Vu,n,sn,ur,no,Sa,d,2,-0,0),i);break e}Jp(l,a,Ht,Bs,Vu,n,sn,ur,no,Sa,d,0,-0,0)}}break}while(!0);_n(e)}function Jp(e,n,a,l,i,d,x,w,_,H,Q,Z,P,q){if(e.timeoutHandle=-1,Z=n.subtreeFlags,(Z&8192||(Z&16785408)===16785408)&&(wl={stylesheets:null,count:0,unsuspend:gS},Gp(n),Z=yS(),Z!==null)){e.cancelPendingCommit=Z(lg.bind(null,e,n,d,a,l,i,x,w,_,Q,1,P,q)),Ca(e,d,x,!H);return}lg(e,n,d,a,l,i,x,w,_)}function zw(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 l=0;l<a.length;l++){var i=a[l],d=i.getSnapshot;i=i.value;try{if(!qt(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 Ca(e,n,a,l){n&=~qu,n&=~ur,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var i=n;0<i;){var d=31-We(i),x=1<<d;l[d]=-1,i&=~x}a!==0&&me(e,a,n)}function Hs(){return(He&6)===0?(pl(0),!1):!0}function Qu(){if(De!==null){if(Pe===0)var e=De.return;else e=De,In=rr=null,du(e),Wr=null,ol=0,e=De;for(;e!==null;)Op(e.alternate,e),e=e.return;De=null}}function oo(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Jw(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Qu(),Ze=e,De=a=qn(e.current,null),ze=n,Pe=0,Gt=null,Sa=!1,to=Bn(e,n),$u=!1,no=sn=qu=ur=Ea=ot=0,Ht=ml=null,Vu=!1,(n&8)!==0&&(n|=n&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=n;0<l;){var i=31-We(l),d=1<<i;n|=e[i],l&=~d}return Jn=n,ss(),a}function eg(e,n){ke=null,j.H=Cs,n===Zo||n===gs?(n=vh(),Pe=3):n===hh?(n=vh(),Pe=4):Pe=n===yp?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Gt=n,De===null&&(ot=1,js(e,nn(n,e.current)))}function tg(){var e=j.H;return j.H=Cs,e===null?Cs:e}function ng(){var e=j.A;return j.A=Dw,e}function Ku(){ot=4,Sa||(ze&4194048)!==ze&&ln.current!==null||(to=!0),(Ea&134217727)===0&&(ur&134217727)===0||Ze===null||Ca(Ze,ze,sn,!1)}function Zu(e,n,a){var l=He;He|=2;var i=tg(),d=ng();(Ze!==e||ze!==n)&&(Bs=null,oo(e,n)),n=!1;var x=ot;e:do try{if(Pe!==0&&De!==null){var w=De,_=Gt;switch(Pe){case 8:Qu(),x=6;break e;case 3:case 2:case 9:case 6:ln.current===null&&(n=!0);var H=Pe;if(Pe=0,Gt=null,lo(e,w,_,H),a&&to){x=0;break e}break;default:H=Pe,Pe=0,Gt=null,lo(e,w,_,H)}}Lw(),x=ot;break}catch(Q){eg(e,Q)}while(!0);return n&&e.shellSuspendCounter++,In=rr=null,He=l,j.H=i,j.A=d,De===null&&(Ze=null,ze=0,ss()),x}function Lw(){for(;De!==null;)ag(De)}function Uw(e,n){var a=He;He|=2;var l=tg(),i=ng();Ze!==e||ze!==n?(Bs=null,Us=lt()+500,oo(e,n)):to=Bn(e,n);e:do try{if(Pe!==0&&De!==null){n=De;var d=Gt;t:switch(Pe){case 1:Pe=0,Gt=null,lo(e,n,d,1);break;case 2:case 9:if(ph(d)){Pe=0,Gt=null,rg(n);break}n=function(){Pe!==2&&Pe!==9||Ze!==e||(Pe=7),_n(e)},d.then(n,n);break e;case 3:Pe=7;break e;case 4:Pe=5;break e;case 7:ph(d)?(Pe=0,Gt=null,rg(n)):(Pe=0,Gt=null,lo(e,n,d,7));break;case 5:var x=null;switch(De.tag){case 26:x=De.memoizedState;case 5:case 27:var w=De;if(!x||Hg(x)){Pe=0,Gt=null;var _=w.sibling;if(_!==null)De=_;else{var H=w.return;H!==null?(De=H,Ps(H)):De=null}break t}}Pe=0,Gt=null,lo(e,n,d,5);break;case 6:Pe=0,Gt=null,lo(e,n,d,6);break;case 8:Qu(),ot=6;break e;default:throw Error(s(462))}}Bw();break}catch(Q){eg(e,Q)}while(!0);return In=rr=null,j.H=l,j.A=i,He=a,De!==null?0:(Ze=null,ze=0,ss(),ot)}function Bw(){for(;De!==null&&!dn();)ag(De)}function ag(e){var n=_p(e.alternate,e,Jn);e.memoizedProps=e.pendingProps,n===null?Ps(e):De=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,ze);break;case 11:n=Np(a,n,n.pendingProps,n.type.render,n.ref,ze);break;case 5:du(n);default:Op(a,n),n=De=oh(n,Jn),n=_p(a,n,Jn)}e.memoizedProps=e.pendingProps,n===null?Ps(e):De=n}function lo(e,n,a,l){In=rr=null,du(n),Wr=null,ol=0;var i=n.return;try{if(Rw(e,i,n,a,ze)){ot=1,js(e,nn(a,e.current)),De=null;return}}catch(d){if(i!==null)throw De=i,d;ot=1,js(e,nn(a,e.current)),De=null;return}n.flags&32768?(Be||l===1?e=!0:to||(ze&536870912)!==0?e=!1:(Sa=e=!0,(l===2||l===9||l===3||l===6)&&(l=ln.current,l!==null&&l.tag===13&&(l.flags|=16384))),og(n,e)):Ps(n)}function Ps(e){var n=e;do{if((n.flags&32768)!==0){og(n,Sa);return}e=n.return;var a=kw(n.alternate,n,Jn);if(a!==null){De=a;return}if(n=n.sibling,n!==null){De=n;return}De=n=e}while(n!==null);ot===0&&(ot=5)}function og(e,n){do{var a=_w(e.alternate,e);if(a!==null){a.flags&=32767,De=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){De=e;return}De=e=a}while(e!==null);ot=6,De=null}function lg(e,n,a,l,i,d,x,w,_){e.cancelPendingCommit=null;do $s();while(At!==0);if((He&6)!==0)throw Error(s(327));if(n!==null){if(n===e.current)throw Error(s(177));if(d=n.lanes|n.childLanes,d|=Pc,Xe(e,a,d,x,w,_),e===Ze&&(De=Ze=null,ze=0),ao=n,Ta=e,ro=a,Iu=d,Gu=i,Zp=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,qw(Ln,function(){return dg(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=j.T,j.T=null,i=$.p,$.p=2,x=He,He|=4;try{jw(e,n,a)}finally{He=x,$.p=i,j.T=l}}At=1,sg(),ig(),cg()}}function sg(){if(At===1){At=0;var e=Ta,n=ao,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=j.T,j.T=null;var l=$.p;$.p=2;var i=He;He|=4;try{Vp(n,e);var d=id,x=Km(e.containerInfo),w=d.focusedElem,_=d.selectionRange;if(x!==w&&w&&w.ownerDocument&&Qm(w.ownerDocument.documentElement,w)){if(_!==null&&zc(w)){var H=_.start,Q=_.end;if(Q===void 0&&(Q=H),"selectionStart"in w)w.selectionStart=H,w.selectionEnd=Math.min(Q,w.value.length);else{var Z=w.ownerDocument||document,P=Z&&Z.defaultView||window;if(P.getSelection){var q=P.getSelection(),Ee=w.textContent.length,we=Math.min(_.start,Ee),Ye=_.end===void 0?we:Math.min(_.end,Ee);!q.extend&&we>Ye&&(x=Ye,Ye=we,we=x);var z=Xm(w,we),M=Xm(w,Ye);if(z&&M&&(q.rangeCount!==1||q.anchorNode!==z.node||q.anchorOffset!==z.offset||q.focusNode!==M.node||q.focusOffset!==M.offset)){var B=Z.createRange();B.setStart(z.node,z.offset),q.removeAllRanges(),we>Ye?(q.addRange(B),q.extend(M.node,M.offset)):(B.setEnd(M.node,M.offset),q.addRange(B))}}}}for(Z=[],q=w;q=q.parentNode;)q.nodeType===1&&Z.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<Z.length;w++){var K=Z[w];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Js=!!sd,id=sd=null}finally{He=i,$.p=l,j.T=a}}e.current=n,At=2}}function ig(){if(At===2){At=0;var e=Ta,n=ao,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=j.T,j.T=null;var l=$.p;$.p=2;var i=He;He|=4;try{Hp(e,n.alternate,n)}finally{He=i,$.p=l,j.T=a}}At=3}}function cg(){if(At===4||At===3){At=0,fn();var e=Ta,n=ao,a=ro,l=Zp;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?At=5:(At=0,ao=Ta=null,ug(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Na=null),pt(a),n=n.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot($t,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=j.T,i=$.p,$.p=2,j.T=null;try{for(var d=e.onRecoverableError,x=0;x<l.length;x++){var w=l[x];d(w.value,{componentStack:w.stack})}}finally{j.T=n,$.p=i}}(ro&3)!==0&&$s(),_n(e),i=e.pendingLanes,(a&4194090)!==0&&(i&42)!==0?e===Xu?hl++:(hl=0,Xu=e):hl=0,pl(0)}}function ug(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Qo(n)))}function $s(e){return sg(),ig(),cg(),dg()}function dg(){if(At!==5)return!1;var e=Ta,n=Iu;Iu=0;var a=pt(ro),l=j.T,i=$.p;try{$.p=32>a?32:a,j.T=null,a=Gu,Gu=null;var d=Ta,x=ro;if(At=0,ao=Ta=null,ro=0,(He&6)!==0)throw Error(s(331));var w=He;if(He|=4,Qp(d.current),Ip(d,d.current,x,a),He=w,pl(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot($t,d)}catch{}return!0}finally{$.p=i,j.T=l,ug(e,n)}}function fg(e,n,a){n=nn(a,n),n=Tu(e.stateNode,n,2),e=pa(e,n,2),e!==null&&(be(e,2),_n(e))}function Ge(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 l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Na===null||!Na.has(l))){e=nn(a,e),a=gp(2),l=pa(n,a,2),l!==null&&(vp(a,l,n,e),be(l,2),_n(l));break}}n=n.return}}function Wu(e,n,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Mw;var i=new Set;l.set(n,i)}else i=l.get(n),i===void 0&&(i=new Set,l.set(n,i));i.has(a)||($u=!0,i.add(a),e=Hw.bind(null,e,n,a),n.then(e,e))}function Hw(e,n,a){var l=e.pingCache;l!==null&&l.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ze===e&&(ze&a)===a&&(ot===4||ot===3&&(ze&62914560)===ze&&300>lt()-Yu?(He&2)===0&&oo(e,0):qu|=a,no===ze&&(no=0)),_n(e)}function mg(e,n){n===0&&(n=Ga()),e=$r(e,n),e!==null&&(be(e,n),_n(e))}function Pw(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),mg(e,a)}function $w(e,n){var a=0;switch(e.tag){case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(n),mg(e,a)}function qw(e,n){return Je(e,n)}var qs=null,so=null,Fu=!1,Vs=!1,Ju=!1,dr=0;function _n(e){e!==so&&e.next===null&&(so===null?qs=so=e:so=so.next=e),Vs=!0,Fu||(Fu=!0,Yw())}function pl(e,n){if(!Ju&&Vs){Ju=!0;do for(var a=!1,l=qs;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var d=0;else{var x=l.suspendedLanes,w=l.pingedLanes;d=(1<<31-We(42|e)+1)-1,d&=i&~(x&~w),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,vg(l,d))}else d=ze,d=Un(l,l===Ze?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||Bn(l,d)||(a=!0,vg(l,d));l=l.next}while(a);Ju=!1}}function Vw(){hg()}function hg(){Vs=Fu=!1;var e=0;dr!==0&&(Fw()&&(e=dr),dr=0);for(var n=lt(),a=null,l=qs;l!==null;){var i=l.next,d=pg(l,n);d===0?(l.next=null,a===null?qs=i:a.next=i,i===null&&(so=a)):(a=l,(e!==0||(d&3)!==0)&&(Vs=!0)),l=i}pl(e)}function pg(e,n){for(var a=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var x=31-We(d),w=1<<x,_=i[x];_===-1?((w&a)===0||(w&l)!==0)&&(i[x]=ua(w,n)):_<=n&&(e.expiredLanes|=w),d&=~w}if(n=Ze,a=ze,a=Un(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===n&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&at(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Bn(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(l!==null&&at(l),pt(a)){case 2:case 8:a=Nr;break;case 32:a=Ln;break;case 268435456:a=mn;break;default:a=Ln}return l=gg.bind(null,e),a=Je(a,l),e.callbackPriority=n,e.callbackNode=a,n}return l!==null&&l!==null&&at(l),e.callbackPriority=2,e.callbackNode=null,2}function gg(e,n){if(At!==0&&At!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if($s()&&e.callbackNode!==a)return null;var l=ze;return l=Un(e,e===Ze?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Fp(e,l,n),pg(e,lt()),e.callbackNode!=null&&e.callbackNode===a?gg.bind(null,e):null)}function vg(e,n){if($s())return null;Fp(e,n,!0)}function Yw(){eS(function(){(He&6)!==0?Je(ht,Vw):hg()})}function ed(){return dr===0&&(dr=zt()),dr}function yg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:es(""+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 Iw(e,n,a,l,i){if(n==="submit"&&a&&a.stateNode===i){var d=yg((i[Ke]||null).action),x=l.submitter;x&&(n=(n=x[Ke]||null)?yg(n.formAction):x.getAttribute("formAction"),n!==null&&(d=n,x=null));var w=new rs("action","action",null,l,i);e.push({event:w,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(dr!==0){var _=x?bg(i,x):new FormData(i);xu(a,{pending:!0,data:_,method:i.method,action:d},null,_)}}else typeof d=="function"&&(w.preventDefault(),_=x?bg(i,x):new FormData(i),xu(a,{pending:!0,data:_,method:i.method,action:d},d,_))},currentTarget:i}]})}}for(var td=0;td<Hc.length;td++){var nd=Hc[td],Gw=nd.toLowerCase(),Xw=nd[0].toUpperCase()+nd.slice(1);hn(Gw,"on"+Xw)}hn(Fm,"onAnimationEnd"),hn(Jm,"onAnimationIteration"),hn(eh,"onAnimationStart"),hn("dblclick","onDoubleClick"),hn("focusin","onFocus"),hn("focusout","onBlur"),hn(uw,"onTransitionRun"),hn(dw,"onTransitionStart"),hn(fw,"onTransitionCancel"),hn(th,"onTransitionEnd"),jr("onMouseEnter",["mouseout","mouseover"]),jr("onMouseLeave",["mouseout","mouseover"]),jr("onPointerEnter",["pointerout","pointerover"]),jr("onPointerLeave",["pointerout","pointerover"]),Ka("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ka("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ka("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ka("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gl="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(" "),Qw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gl));function xg(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],i=l.event;l=l.listeners;e:{var d=void 0;if(n)for(var x=l.length-1;0<=x;x--){var w=l[x],_=w.instance,H=w.currentTarget;if(w=w.listener,_!==d&&i.isPropagationStopped())break e;d=w,i.currentTarget=H;try{d(i)}catch(Q){_s(Q)}i.currentTarget=null,d=_}else for(x=0;x<l.length;x++){if(w=l[x],_=w.instance,H=w.currentTarget,w=w.listener,_!==d&&i.isPropagationStopped())break e;d=w,i.currentTarget=H;try{d(i)}catch(Q){_s(Q)}i.currentTarget=null,d=_}}}}function Me(e,n){var a=n[Rr];a===void 0&&(a=n[Rr]=new Set);var l=e+"__bubble";a.has(l)||(wg(n,e,2,!1),a.add(l))}function ad(e,n,a){var l=0;n&&(l|=4),wg(a,e,l,n)}var Ys="_reactListening"+Math.random().toString(36).slice(2);function rd(e){if(!e[Ys]){e[Ys]=!0,hm.forEach(function(a){a!=="selectionchange"&&(Qw.has(a)||ad(a,!1,e),ad(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ys]||(n[Ys]=!0,ad("selectionchange",!1,n))}}function wg(e,n,a,l){switch(Ig(n)){case 2:var i=wS;break;case 8:i=SS;break;default:i=yd}a=i.bind(null,n,a,e),i=void 0,!Cc||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(i=!0),l?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 od(e,n,a,l,i){var d=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var x=l.tag;if(x===3||x===4){var w=l.stateNode.containerInfo;if(w===i)break;if(x===4)for(x=l.return;x!==null;){var _=x.tag;if((_===3||_===4)&&x.stateNode.containerInfo===i)return;x=x.return}for(;w!==null;){if(x=Ar(w),x===null)return;if(_=x.tag,_===5||_===6||_===26||_===27){l=d=x;continue e}w=w.parentNode}}l=l.return}Am(function(){var H=d,Q=Nc(a),Z=[];e:{var P=nh.get(e);if(P!==void 0){var q=rs,Ee=e;switch(e){case"keypress":if(ns(a)===0)break e;case"keydown":case"keyup":q=q1;break;case"focusin":Ee="focus",q=_c;break;case"focusout":Ee="blur",q=_c;break;case"beforeblur":case"afterblur":q=_c;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=jm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=_1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=I1;break;case Fm:case Jm:case eh:q=D1;break;case th:q=X1;break;case"scroll":case"scrollend":q=A1;break;case"wheel":q=K1;break;case"copy":case"cut":case"paste":q=z1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=Dm;break;case"toggle":case"beforetoggle":q=W1}var we=(n&4)!==0,Ye=!we&&(e==="scroll"||e==="scrollend"),z=we?P!==null?P+"Capture":null:P;we=[];for(var M=H,B;M!==null;){var K=M;if(B=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||B===null||z===null||(K=zo(M,z),K!=null&&we.push(vl(M,K,B))),Ye)break;M=M.return}0<we.length&&(P=new q(P,Ee,null,a,Q),Z.push({event:P,listeners:we}))}}if((n&7)===0){e:{if(P=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",P&&a!==Ec&&(Ee=a.relatedTarget||a.fromElement)&&(Ar(Ee)||Ee[xt]))break e;if((q||P)&&(P=Q.window===Q?Q:(P=Q.ownerDocument)?P.defaultView||P.parentWindow:window,q?(Ee=a.relatedTarget||a.toElement,q=H,Ee=Ee?Ar(Ee):null,Ee!==null&&(Ye=u(Ee),we=Ee.tag,Ee!==Ye||we!==5&&we!==27&&we!==6)&&(Ee=null)):(q=null,Ee=H),q!==Ee)){if(we=jm,K="onMouseLeave",z="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(we=Dm,K="onPointerLeave",z="onPointerEnter",M="pointer"),Ye=q==null?P:Mo(q),B=Ee==null?P:Mo(Ee),P=new we(K,M+"leave",q,a,Q),P.target=Ye,P.relatedTarget=B,K=null,Ar(Q)===H&&(we=new we(z,M+"enter",Ee,a,Q),we.target=B,we.relatedTarget=Ye,K=we),Ye=K,q&&Ee)t:{for(we=q,z=Ee,M=0,B=we;B;B=io(B))M++;for(B=0,K=z;K;K=io(K))B++;for(;0<M-B;)we=io(we),M--;for(;0<B-M;)z=io(z),B--;for(;M--;){if(we===z||z!==null&&we===z.alternate)break t;we=io(we),z=io(z)}we=null}else we=null;q!==null&&Sg(Z,P,q,we,!1),Ee!==null&&Ye!==null&&Sg(Z,Ye,Ee,we,!0)}}e:{if(P=H?Mo(H):window,q=P.nodeName&&P.nodeName.toLowerCase(),q==="select"||q==="input"&&P.type==="file")var he=$m;else if(Hm(P))if(qm)he=sw;else{he=ow;var Oe=rw}else q=P.nodeName,!q||q.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?H&&Sc(H.elementType)&&(he=$m):he=lw;if(he&&(he=he(e,H))){Pm(Z,he,a,Q);break e}Oe&&Oe(e,P,H),e==="focusout"&&H&&P.type==="number"&&H.memoizedProps.value!=null&&wc(P,"number",P.value)}switch(Oe=H?Mo(H):window,e){case"focusin":(Hm(Oe)||Oe.contentEditable==="true")&&(Br=Oe,Lc=H,Vo=null);break;case"focusout":Vo=Lc=Br=null;break;case"mousedown":Uc=!0;break;case"contextmenu":case"mouseup":case"dragend":Uc=!1,Zm(Z,a,Q);break;case"selectionchange":if(cw)break;case"keydown":case"keyup":Zm(Z,a,Q)}var ye;if(Oc)e:{switch(e){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else Ur?Um(e,a)&&(Se="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Se="onCompositionStart");Se&&(Mm&&a.locale!=="ko"&&(Ur||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&Ur&&(ye=km()):(da=Q,Rc="value"in da?da.value:da.textContent,Ur=!0)),Oe=Is(H,Se),0<Oe.length&&(Se=new Om(Se,e,null,a,Q),Z.push({event:Se,listeners:Oe}),ye?Se.data=ye:(ye=Bm(a),ye!==null&&(Se.data=ye)))),(ye=J1?ew(e,a):tw(e,a))&&(Se=Is(H,"onBeforeInput"),0<Se.length&&(Oe=new Om("onBeforeInput","beforeinput",null,a,Q),Z.push({event:Oe,listeners:Se}),Oe.data=ye)),Iw(Z,e,H,a,Q)}xg(Z,n)})}function vl(e,n,a){return{instance:e,listener:n,currentTarget:a}}function Is(e,n){for(var a=n+"Capture",l=[];e!==null;){var i=e,d=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||d===null||(i=zo(e,a),i!=null&&l.unshift(vl(e,i,d)),i=zo(e,n),i!=null&&l.push(vl(e,i,d))),e.tag===3)return l;e=e.return}return[]}function io(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Sg(e,n,a,l,i){for(var d=n._reactName,x=[];a!==null&&a!==l;){var w=a,_=w.alternate,H=w.stateNode;if(w=w.tag,_!==null&&_===l)break;w!==5&&w!==26&&w!==27||H===null||(_=H,i?(H=zo(a,d),H!=null&&x.unshift(vl(a,H,_))):i||(H=zo(a,d),H!=null&&x.push(vl(a,H,_)))),a=a.return}x.length!==0&&e.push({event:n,listeners:x})}var Kw=/\r\n?/g,Zw=/\u0000|\uFFFD/g;function Eg(e){return(typeof e=="string"?e:""+e).replace(Kw,`
|
|
50
|
-
`).replace(Zw,"")}function Ng(e,n){return n=Eg(n),Eg(e)===n}function Gs(){}function Ve(e,n,a,l,i,d){switch(a){case"children":typeof l=="string"?n==="body"||n==="textarea"&&l===""||Mr(e,l):(typeof l=="number"||typeof l=="bigint")&&n!=="body"&&Mr(e,""+l);break;case"className":Wl(e,"class",l);break;case"tabIndex":Wl(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Wl(e,a,l);break;case"style":Cm(e,l,d);break;case"data":if(n!=="object"){Wl(e,"data",l);break}case"src":case"href":if(l===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=es(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(a==="formAction"?(n!=="input"&&Ve(e,n,"name",i.name,i,null),Ve(e,n,"formEncType",i.formEncType,i,null),Ve(e,n,"formMethod",i.formMethod,i,null),Ve(e,n,"formTarget",i.formTarget,i,null)):(Ve(e,n,"encType",i.encType,i,null),Ve(e,n,"method",i.method,i,null),Ve(e,n,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=es(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Gs);break;case"onScroll":l!=null&&Me("scroll",e);break;case"onScrollEnd":l!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=es(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Me("beforetoggle",e),Me("toggle",e),Zl(e,"popover",l);break;case"xlinkActuate":Pn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Pn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Pn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Pn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Pn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Pn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Pn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Pn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Pn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Zl(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=C1.get(a)||a,Zl(e,a,l))}}function ld(e,n,a,l,i,d){switch(a){case"style":Cm(e,l,d);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Mr(e,l):(typeof l=="number"||typeof l=="bigint")&&Mr(e,""+l);break;case"onScroll":l!=null&&Me("scroll",e);break;case"onScrollEnd":l!=null&&Me("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Gs);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[Ke]||null,d=d!=null?d[a]:null,typeof d=="function"&&e.removeEventListener(n,d,i),typeof l=="function")){typeof d!="function"&&d!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,l,i);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Zl(e,a,l)}}}function kt(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var l=!1,i=!1,d;for(d in a)if(a.hasOwnProperty(d)){var x=a[d];if(x!=null)switch(d){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:Ve(e,n,d,x,a,null)}}i&&Ve(e,n,"srcSet",a.srcSet,a,null),l&&Ve(e,n,"src",a.src,a,null);return;case"input":Me("invalid",e);var w=d=x=i=null,_=null,H=null;for(l in a)if(a.hasOwnProperty(l)){var Q=a[l];if(Q!=null)switch(l){case"name":i=Q;break;case"type":x=Q;break;case"checked":_=Q;break;case"defaultChecked":H=Q;break;case"value":d=Q;break;case"defaultValue":w=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(s(137,n));break;default:Ve(e,n,l,Q,a,null)}}Sm(e,d,w,_,H,x,i,!1),Fl(e);return;case"select":Me("invalid",e),l=x=d=null;for(i in a)if(a.hasOwnProperty(i)&&(w=a[i],w!=null))switch(i){case"value":d=w;break;case"defaultValue":x=w;break;case"multiple":l=w;default:Ve(e,n,i,w,a,null)}n=d,a=x,e.multiple=!!l,n!=null?Dr(e,!!l,n,!1):a!=null&&Dr(e,!!l,a,!0);return;case"textarea":Me("invalid",e),d=i=l=null;for(x in a)if(a.hasOwnProperty(x)&&(w=a[x],w!=null))switch(x){case"value":l=w;break;case"defaultValue":i=w;break;case"children":d=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(s(91));break;default:Ve(e,n,x,w,a,null)}Nm(e,l,i,d),Fl(e);return;case"option":for(_ in a)a.hasOwnProperty(_)&&(l=a[_],l!=null)&&(_==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Ve(e,n,_,l,a,null));return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(l=0;l<gl.length;l++)Me(gl[l],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("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(H in a)if(a.hasOwnProperty(H)&&(l=a[H],l!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:Ve(e,n,H,l,a,null)}return;default:if(Sc(n)){for(Q in a)a.hasOwnProperty(Q)&&(l=a[Q],l!==void 0&&ld(e,n,Q,l,a,void 0));return}}for(w in a)a.hasOwnProperty(w)&&(l=a[w],l!=null&&Ve(e,n,w,l,a,null))}function Ww(e,n,a,l){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,_=null,H=null,Q=null;for(q in a){var Z=a[q];if(a.hasOwnProperty(q)&&Z!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":_=Z;default:l.hasOwnProperty(q)||Ve(e,n,q,null,l,Z)}}for(var P in l){var q=l[P];if(Z=a[P],l.hasOwnProperty(P)&&(q!=null||Z!=null))switch(P){case"type":d=q;break;case"name":i=q;break;case"checked":H=q;break;case"defaultChecked":Q=q;break;case"value":x=q;break;case"defaultValue":w=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,n));break;default:q!==Z&&Ve(e,n,P,q,l,Z)}}xc(e,x,w,_,H,Q,d,i);return;case"select":q=x=w=P=null;for(d in a)if(_=a[d],a.hasOwnProperty(d)&&_!=null)switch(d){case"value":break;case"multiple":q=_;default:l.hasOwnProperty(d)||Ve(e,n,d,null,l,_)}for(i in l)if(d=l[i],_=a[i],l.hasOwnProperty(i)&&(d!=null||_!=null))switch(i){case"value":P=d;break;case"defaultValue":w=d;break;case"multiple":x=d;default:d!==_&&Ve(e,n,i,d,l,_)}n=w,a=x,l=q,P!=null?Dr(e,!!a,P,!1):!!l!=!!a&&(n!=null?Dr(e,!!a,n,!0):Dr(e,!!a,a?[]:"",!1));return;case"textarea":q=P=null;for(w in a)if(i=a[w],a.hasOwnProperty(w)&&i!=null&&!l.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ve(e,n,w,null,l,i)}for(x in l)if(i=l[x],d=a[x],l.hasOwnProperty(x)&&(i!=null||d!=null))switch(x){case"value":P=i;break;case"defaultValue":q=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(s(91));break;default:i!==d&&Ve(e,n,x,i,l,d)}Em(e,P,q);return;case"option":for(var Ee in a)P=a[Ee],a.hasOwnProperty(Ee)&&P!=null&&!l.hasOwnProperty(Ee)&&(Ee==="selected"?e.selected=!1:Ve(e,n,Ee,null,l,P));for(_ in l)P=l[_],q=a[_],l.hasOwnProperty(_)&&P!==q&&(P!=null||q!=null)&&(_==="selected"?e.selected=P&&typeof P!="function"&&typeof P!="symbol":Ve(e,n,_,P,l,q));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var we in a)P=a[we],a.hasOwnProperty(we)&&P!=null&&!l.hasOwnProperty(we)&&Ve(e,n,we,null,l,P);for(H in l)if(P=l[H],q=a[H],l.hasOwnProperty(H)&&P!==q&&(P!=null||q!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(s(137,n));break;default:Ve(e,n,H,P,l,q)}return;default:if(Sc(n)){for(var Ye in a)P=a[Ye],a.hasOwnProperty(Ye)&&P!==void 0&&!l.hasOwnProperty(Ye)&&ld(e,n,Ye,void 0,l,P);for(Q in l)P=l[Q],q=a[Q],!l.hasOwnProperty(Q)||P===q||P===void 0&&q===void 0||ld(e,n,Q,P,l,q);return}}for(var z in a)P=a[z],a.hasOwnProperty(z)&&P!=null&&!l.hasOwnProperty(z)&&Ve(e,n,z,null,l,P);for(Z in l)P=l[Z],q=a[Z],!l.hasOwnProperty(Z)||P===q||P==null&&q==null||Ve(e,n,Z,P,l,q)}var sd=null,id=null;function Xs(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 cd(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 ud=null;function Fw(){var e=window.event;return e&&e.type==="popstate"?e===ud?!1:(ud=e,!0):(ud=null,!1)}var Rg=typeof setTimeout=="function"?setTimeout:void 0,Jw=typeof clearTimeout=="function"?clearTimeout:void 0,Ag=typeof Promise=="function"?Promise:void 0,eS=typeof queueMicrotask=="function"?queueMicrotask:typeof Ag<"u"?function(e){return Ag.resolve(null).then(e).catch(tS)}:Rg;function tS(e){setTimeout(function(){throw e})}function Ra(e){return e==="head"}function kg(e,n){var a=n,l=0,i=0;do{var d=a.nextSibling;if(e.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"){if(0<l&&8>l){a=l;var x=e.ownerDocument;if(a&1&&yl(x.documentElement),a&2&&yl(x.body),a&4)for(a=x.head,yl(a),x=a.firstChild;x;){var w=x.nextSibling,_=x.nodeName;x[Do]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&x.rel.toLowerCase()==="stylesheet"||a.removeChild(x),x=w}}if(i===0){e.removeChild(d),Cl(n);return}i--}else a==="$"||a==="$?"||a==="$!"?i++:l=a.charCodeAt(0)-48;else l=0;a=d}while(a);Cl(n)}function dd(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":dd(a),gc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function nS(e,n,a,l){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Do])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=gn(e.nextSibling),e===null)break}return null}function aS(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=gn(e.nextSibling),e===null))return null;return e}function fd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function rS(e,n){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")n();else{var l=function(){n(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function gn(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 md=null;function _g(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 jg(e,n,a){switch(n=Xs(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 yl(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);gc(e)}var cn=new Map,Og=new Set;function Qs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ea=$.d;$.d={f:oS,r:lS,D:sS,C:iS,L:cS,m:uS,X:fS,S:dS,M:mS};function oS(){var e=ea.f(),n=Hs();return e||n}function lS(e){var n=kr(e);n!==null&&n.tag===5&&n.type==="form"?Fh(n):ea.r(e)}var co=typeof document>"u"?null:document;function Dg(e,n,a){var l=co;if(l&&typeof n=="string"&&n){var i=tn(n);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),Og.has(i)||(Og.add(i),e={rel:e,crossOrigin:a,href:n},l.querySelector(i)===null&&(n=l.createElement("link"),kt(n,"link",e),wt(n),l.head.appendChild(n)))}}function sS(e){ea.D(e),Dg("dns-prefetch",e,null)}function iS(e,n){ea.C(e,n),Dg("preconnect",e,n)}function cS(e,n,a){ea.L(e,n,a);var l=co;if(l&&e&&n){var i='link[rel="preload"][as="'+tn(n)+'"]';n==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+tn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+tn(a.imageSizes)+'"]')):i+='[href="'+tn(e)+'"]';var d=i;switch(n){case"style":d=uo(e);break;case"script":d=fo(e)}cn.has(d)||(e=b({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),cn.set(d,e),l.querySelector(i)!==null||n==="style"&&l.querySelector(bl(d))||n==="script"&&l.querySelector(xl(d))||(n=l.createElement("link"),kt(n,"link",e),wt(n),l.head.appendChild(n)))}}function uS(e,n){ea.m(e,n);var a=co;if(a&&e){var l=n&&typeof n.as=="string"?n.as:"script",i='link[rel="modulepreload"][as="'+tn(l)+'"][href="'+tn(e)+'"]',d=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=fo(e)}if(!cn.has(d)&&(e=b({rel:"modulepreload",href:e},n),cn.set(d,e),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(xl(d)))return}l=a.createElement("link"),kt(l,"link",e),wt(l),a.head.appendChild(l)}}}function dS(e,n,a){ea.S(e,n,a);var l=co;if(l&&e){var i=_r(l).hoistableStyles,d=uo(e);n=n||"default";var x=i.get(d);if(!x){var w={loading:0,preload:null};if(x=l.querySelector(bl(d)))w.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":n},a),(a=cn.get(d))&&hd(e,a);var _=x=l.createElement("link");wt(_),kt(_,"link",e),_._p=new Promise(function(H,Q){_.onload=H,_.onerror=Q}),_.addEventListener("load",function(){w.loading|=1}),_.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Ks(x,n,l)}x={type:"stylesheet",instance:x,count:1,state:w},i.set(d,x)}}}function fS(e,n){ea.X(e,n);var a=co;if(a&&e){var l=_r(a).hoistableScripts,i=fo(e),d=l.get(i);d||(d=a.querySelector(xl(i)),d||(e=b({src:e,async:!0},n),(n=cn.get(i))&&pd(e,n),d=a.createElement("script"),wt(d),kt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(i,d))}}function mS(e,n){ea.M(e,n);var a=co;if(a&&e){var l=_r(a).hoistableScripts,i=fo(e),d=l.get(i);d||(d=a.querySelector(xl(i)),d||(e=b({src:e,async:!0,type:"module"},n),(n=cn.get(i))&&pd(e,n),d=a.createElement("script"),wt(d),kt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(i,d))}}function Mg(e,n,a,l){var i=(i=te.current)?Qs(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=uo(a.href),a=_r(i).hoistableStyles,l=a.get(n),l||(l={type:"style",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=uo(a.href);var d=_r(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(bl(e)))&&!d._p&&(x.instance=d,x.state.loading=5),cn.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},cn.set(e,a),d||hS(i,e,a,x.state))),n&&l===null)throw Error(s(528,""));return x}if(n&&l!==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=fo(a),a=_r(i).hoistableScripts,l=a.get(n),l||(l={type:"script",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function uo(e){return'href="'+tn(e)+'"'}function bl(e){return'link[rel="stylesheet"]['+e+"]"}function zg(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function hS(e,n,a,l){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=e.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),kt(n,"link",a),wt(n),e.head.appendChild(n))}function fo(e){return'[src="'+tn(e)+'"]'}function xl(e){return"script[async]"+e}function Lg(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+tn(a.href)+'"]');if(l)return n.instance=l,wt(l),l;var i=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),wt(l),kt(l,"style",i),Ks(l,a.precedence,e),n.instance=l;case"stylesheet":i=uo(a.href);var d=e.querySelector(bl(i));if(d)return n.state.loading|=4,n.instance=d,wt(d),d;l=zg(a),(i=cn.get(i))&&hd(l,i),d=(e.ownerDocument||e).createElement("link"),wt(d);var x=d;return x._p=new Promise(function(w,_){x.onload=w,x.onerror=_}),kt(d,"link",l),n.state.loading|=4,Ks(d,a.precedence,e),n.instance=d;case"script":return d=fo(a.src),(i=e.querySelector(xl(d)))?(n.instance=i,wt(i),i):(l=a,(i=cn.get(d))&&(l=b({},a),pd(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),wt(i),kt(i,"link",l),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&&(l=n.instance,n.state.loading|=4,Ks(l,a.precedence,e));return n.instance}function Ks(e,n,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,d=i,x=0;x<l.length;x++){var w=l[x];if(w.dataset.precedence===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 hd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function pd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Zs=null;function Ug(e,n,a){if(Zs===null){var l=new Map,i=Zs=new Map;i.set(a,l)}else i=Zs,l=i.get(a),l||(l=new Map,i.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var d=a[i];if(!(d[Do]||d[ct]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var x=d.getAttribute(n)||"";x=e+x;var w=l.get(x);w?w.push(d):l.set(x,[d])}}return l}function Bg(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function pS(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;return n.rel==="stylesheet"?(e=n.disabled,typeof n.precedence=="string"&&e==null):!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 wl=null;function gS(){}function vS(e,n,a){if(wl===null)throw Error(s(475));var l=wl;if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=uo(a.href),d=e.querySelector(bl(i));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=Ws.bind(l),e.then(l,l)),n.state.loading|=4,n.instance=d,wt(d);return}d=e.ownerDocument||e,a=zg(a),(i=cn.get(i))&&hd(a,i),d=d.createElement("link"),wt(d);var x=d;x._p=new Promise(function(w,_){x.onload=w,x.onerror=_}),kt(d,"link",a),n.instance=d}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(l.count++,n=Ws.bind(l),e.addEventListener("load",n),e.addEventListener("error",n))}}function yS(){if(wl===null)throw Error(s(475));var e=wl;return e.stylesheets&&e.count===0&&gd(e,e.stylesheets),0<e.count?function(n){var a=setTimeout(function(){if(e.stylesheets&&gd(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a)}}:null}function Ws(){if(this.count--,this.count===0){if(this.stylesheets)gd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fs=null;function gd(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fs=new Map,n.forEach(bS,e),Fs=null,Ws.call(e))}function bS(e,n){if(!(n.state.loading&4)){var a=Fs.get(e);if(a)var l=a.get(null);else{a=new Map,Fs.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<i.length;d++){var x=i[d];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(a.set(x.dataset.precedence,x),l=x)}l&&a.set(null,l)}i=n.instance,x=i.getAttribute("data-precedence"),d=a.get(x)||l,d===l&&a.set(null,i),a.set(x,i),this.count++,l=Ws.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),d?d.parentNode.insertBefore(i,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),n.state.loading|=4}}var Sl={$$typeof:O,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function xS(e,n,a,l,i,d,x,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xa(0),this.hiddenUpdates=Xa(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=d,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function Pg(e,n,a,l,i,d,x,w,_,H,Q,Z){return e=new xS(e,n,a,x,w,_,H,Z),n=1,d===!0&&(n|=24),d=Vt(3,null,null,n),e.current=d,d.stateNode=e,n=Wc(),n.refCount++,e.pooledCache=n,n.refCount++,d.memoizedState={element:l,isDehydrated:a,cache:n},tu(d),e}function $g(e){return e?(e=qr,e):qr}function qg(e,n,a,l,i,d){i=$g(i),l.context===null?l.context=i:l.pendingContext=i,l=ha(n),l.payload={element:a},d=d===void 0?null:d,d!==null&&(l.callback=d),a=pa(e,l,n),a!==null&&(Qt(a,e,n),Fo(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 vd(e,n){Vg(e,n),(e=e.alternate)&&Vg(e,n)}function Yg(e){if(e.tag===13){var n=$r(e,67108864);n!==null&&Qt(n,e,67108864),vd(e,67108864)}}var Js=!0;function wS(e,n,a,l){var i=j.T;j.T=null;var d=$.p;try{$.p=2,yd(e,n,a,l)}finally{$.p=d,j.T=i}}function SS(e,n,a,l){var i=j.T;j.T=null;var d=$.p;try{$.p=8,yd(e,n,a,l)}finally{$.p=d,j.T=i}}function yd(e,n,a,l){if(Js){var i=bd(l);if(i===null)od(e,n,l,ei,a),Gg(e,l);else if(NS(i,e,n,a,l))l.stopPropagation();else if(Gg(e,l),n&4&&-1<ES.indexOf(e)){for(;i!==null;){var d=kr(i);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var x=Jt(d.pendingLanes);if(x!==0){var w=d;for(w.pendingLanes|=2,w.entangledLanes|=2;x;){var _=1<<31-We(x);w.entanglements[1]|=_,x&=~_}_n(d),(He&6)===0&&(Us=lt()+500,pl(0))}}break;case 13:w=$r(d,2),w!==null&&Qt(w,d,2),Hs(),vd(d,2)}if(d=bd(l),d===null&&od(e,n,l,ei,a),d===i)break;i=d}i!==null&&l.stopPropagation()}else od(e,n,l,null,a)}}function bd(e){return e=Nc(e),xd(e)}var ei=null;function xd(e){if(ei=null,e=Ar(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 ei=e,null}function Ig(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(Ia()){case ht:return 2;case Nr:return 8;case Ln:case st:return 32;case mn:return 268435456;default:return 32}default:return 32}}var wd=!1,Aa=null,ka=null,_a=null,El=new Map,Nl=new Map,ja=[],ES="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 Gg(e,n){switch(e){case"focusin":case"focusout":Aa=null;break;case"dragenter":case"dragleave":ka=null;break;case"mouseover":case"mouseout":_a=null;break;case"pointerover":case"pointerout":El.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nl.delete(n.pointerId)}}function Tl(e,n,a,l,i,d){return e===null||e.nativeEvent!==d?(e={blockedOn:n,domEventName:a,eventSystemFlags:l,nativeEvent:d,targetContainers:[i]},n!==null&&(n=kr(n),n!==null&&Yg(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,i!==null&&n.indexOf(i)===-1&&n.push(i),e)}function NS(e,n,a,l,i){switch(n){case"focusin":return Aa=Tl(Aa,e,n,a,l,i),!0;case"dragenter":return ka=Tl(ka,e,n,a,l,i),!0;case"mouseover":return _a=Tl(_a,e,n,a,l,i),!0;case"pointerover":var d=i.pointerId;return El.set(d,Tl(El.get(d)||null,e,n,a,l,i)),!0;case"gotpointercapture":return d=i.pointerId,Nl.set(d,Tl(Nl.get(d)||null,e,n,a,l,i)),!0}return!1}function Xg(e){var n=Ar(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,gt(e.priority,function(){if(a.tag===13){var l=Xt();l=Qe(l);var i=$r(a,l);i!==null&&Qt(i,a,l),vd(a,l)}});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ti(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=bd(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Ec=l,a.target.dispatchEvent(l),Ec=null}else return n=kr(a),n!==null&&Yg(n),e.blockedOn=a,!1;n.shift()}return!0}function Qg(e,n,a){ti(e)&&a.delete(n)}function TS(){wd=!1,Aa!==null&&ti(Aa)&&(Aa=null),ka!==null&&ti(ka)&&(ka=null),_a!==null&&ti(_a)&&(_a=null),El.forEach(Qg),Nl.forEach(Qg)}function ni(e,n){e.blockedOn===n&&(e.blockedOn=null,wd||(wd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,TS)))}var ai=null;function Kg(e){ai!==e&&(ai=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){ai===e&&(ai=null);for(var n=0;n<e.length;n+=3){var a=e[n],l=e[n+1],i=e[n+2];if(typeof l!="function"){if(xd(l||a)===null)continue;break}var d=kr(a);d!==null&&(e.splice(n,3),n-=3,xu(d,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function Cl(e){function n(_){return ni(_,e)}Aa!==null&&ni(Aa,e),ka!==null&&ni(ka,e),_a!==null&&ni(_a,e),El.forEach(n),Nl.forEach(n);for(var a=0;a<ja.length;a++){var l=ja[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ja.length&&(a=ja[0],a.blockedOn===null);)Xg(a),a.blockedOn===null&&ja.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var i=a[l],d=a[l+1],x=i[Ke]||null;if(typeof d=="function")x||Kg(a);else if(x){var w=null;if(d&&d.hasAttribute("formAction")){if(i=d,x=d[Ke]||null)w=x.formAction;else if(xd(i)!==null)continue}else w=x.action;typeof w=="function"?a[l+1]=w:(a.splice(l,3),l-=3),Kg(a)}}}function Sd(e){this._internalRoot=e}ri.prototype.render=Sd.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(s(409));var a=n.current,l=Xt();qg(a,l,e,n,null,null)},ri.prototype.unmount=Sd.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),Hs(),n[xt]=null}};function ri(e){this._internalRoot=e}ri.prototype.unstable_scheduleHydration=function(e){if(e){var n=Qa();e={blockedOn:null,target:e,priority:n};for(var a=0;a<ja.length&&n!==0&&n<ja[a].priority;a++);ja.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"));$.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 CS={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oi.isDisabled&&oi.supportsFiber)try{$t=oi.inject(CS),Ct=oi}catch{}}return Al.createRoot=function(e,n){if(!c(e))throw Error(s(299));var a=!1,l="",i=fp,d=mp,x=hp,w=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=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=Pg(e,1,!1,null,null,a,l,i,d,x,w,null),e[xt]=n.current,rd(e),new Sd(n)},Al.hydrateRoot=function(e,n,a){if(!c(e))throw Error(s(299));var l=!1,i="",d=fp,x=mp,w=hp,_=null,H=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(x=a.onCaughtError),a.onRecoverableError!==void 0&&(w=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(_=a.unstable_transitionCallbacks),a.formState!==void 0&&(H=a.formState)),n=Pg(e,1,!0,n,a??null,l,i,d,x,w,_,H),n.context=$g(null),a=n.current,l=Xt(),l=Qe(l),i=ha(l),i.callback=null,pa(a,i,l),a=l,n.current.lanes=a,be(n,a),_n(n),e[xt]=n.current,rd(e),new ri(n)},Al.version="19.1.0",Al}var lv;function LS(){if(lv)return Td.exports;lv=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(),Td.exports=zS(),Td.exports}var US=LS();const BS="modulepreload",HS=function(t){return"/"+t},sv={},N0=function(r,o,s){let c=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(b=>Promise.resolve(b).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),g=h?.nonce||h?.getAttribute("nonce");c=m(o.map(p=>{if(p=HS(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":BS,b||(S.as="script"),S.crossOrigin="",S.href=p,g&&S.setAttribute("nonce",g),document.head.appendChild(S),b)return new Promise((A,R)=>{S.addEventListener("load",A),S.addEventListener("error",()=>R(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.18.0
|
|
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 Cf=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,T0=/^[\\/]{2}/;function PS(t,r){return r+t.replace(/\\/g,"/")}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 $S(t={}){function r(s,c){let u=c.state?.masked,{pathname:m,search:h,hash:g}=u||s.location;return Fd("",{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 o(s,c){return typeof c=="string"?c:Ul(c)}return VS(r,o,null,t)}function tt(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}function bn(t,r){if(!t){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function qS(){return Math.random().toString(36).substring(2,10)}function uv(t,r){return{usr:t.state,key:t.key,idx:r,masked:t.mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function Fd(t,r,o=null,s,c){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof r=="string"?To(r):r,state:o,key:r&&r.key||s||qS(),mask:c}}function Ul({pathname:t="/",search:r="",hash:o=""}){return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(t+=o.charAt(0)==="#"?o:"#"+o),t}function To(t){let r={};if(t){let o=t.indexOf("#");o>=0&&(r.hash=t.substring(o),t=t.substring(0,o));let s=t.indexOf("?");s>=0&&(r.search=t.substring(s),t=t.substring(0,s)),t&&(r.pathname=t)}return r}function VS(t,r,o,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 T=b(),k=T==null?null:T-p;p=T,g&&g({action:h,location:E.location,delta:k})}function S(T,k){h="PUSH";let C=cv(T)?T:Fd(E.location,T,k);p=b()+1;let O=uv(C,p),L=E.createHref(C.mask||C);try{m.pushState(O,"",L)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;c.location.assign(L)}u&&g&&g({action:h,location:E.location,delta:1})}function A(T,k){h="REPLACE";let C=cv(T)?T:Fd(E.location,T,k);p=b();let O=uv(C,p),L=E.createHref(C.mask||C);m.replaceState(O,"",L),u&&g&&g({action:h,location:E.location,delta:0})}function R(T){return YS(c,T)}let E={get action(){return h},get location(){return t(c,m)},listen(T){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(iv,y),g=T,()=>{c.removeEventListener(iv,y),g=null}},createHref(T){return r(c,T)},createURL:R,encodeLocation(T){let k=R(T);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:S,replace:A,go(T){return m.go(T)}};return E}function YS(t,r,o=!1){let s="http://localhost";t&&(s=t.location.origin!=="null"?t.location.origin:t.location.href),tt(s,"No window.location.(origin|href) available to create URL");let c=typeof r=="string"?r:Ul(r);return c=c.replace(/ $/,"%20"),!o&&T0.test(c)&&(c=s+c),new URL(c,s)}function C0(t,r,o="/"){return IS(t,r,o,!1)}function IS(t,r,o,s,c){let u=typeof r=="string"?To(r):r,m=na(u.pathname||"/",o);if(m==null)return null;let h=GS(t),g=null,p=a2(m);for(let b=0;g==null&&b<h.length;++b)g=n2(h[b],p,s);return g}function GS(t){let r=R0(t);return XS(r),r}function R0(t,r=[],o=[],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;tt(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=yn([s,b.relativePath]),S=o.concat(b);m.children&&m.children.length>0&&(tt(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),R0(m.children,r,S,y,g)),!(m.path==null&&!m.index)&&r.push({path:y,score:e2(y,m.index),routesMeta:S.map((A,R)=>{let[E,T]=_0(A.relativePath,A.caseSensitive,R===S.length-1);return{...A,matcher:E,compiledParams:T}})})};return t.forEach((m,h)=>{if(m.path===""||!m.path?.includes("?"))u(m,h);else for(let g of A0(m.path))u(m,h,!0,g)}),r}function A0(t){let r=t.split("/");if(r.length===0)return[];let[o,...s]=r,c=o.endsWith("?"),u=o.replace(/\?$/,"");if(s.length===0)return c?[u,""]:[u];let m=A0(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 XS(t){t.sort((r,o)=>r.score!==o.score?o.score-r.score:t2(r.routesMeta.map(s=>s.childrenIndex),o.routesMeta.map(s=>s.childrenIndex)))}var QS=/^:[\w-]+$/,KS=3,ZS=2,WS=1,FS=10,JS=-2,dv=t=>t==="*";function e2(t,r){let o=t.split("/"),s=o.length;return o.some(dv)&&(s+=JS),r&&(s+=ZS),o.filter(c=>!dv(c)).reduce((c,u)=>c+(QS.test(u)?KS:u===""?WS:FS),s)}function t2(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 n2(t,r,o=!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={path:g.relativePath,caseSensitive:g.caseSensitive,end:p},S=g.matcher&&g.compiledParams?k0(y,b,g.matcher,g.compiledParams):Ri(y,b),A=g.route;if(!S&&p&&o&&!s[s.length-1].route.index&&(S=Ri({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},b)),!S)return null;Object.assign(c,S.params),m.push({params:c,pathname:yn([u,S.pathname]),pathnameBase:l2(yn([u,S.pathnameBase])),route:A}),S.pathnameBase!=="/"&&(u=yn([u,S.pathnameBase]))}return m}function Ri(t,r){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[o,s]=_0(t.path,t.caseSensitive,t.end);return k0(t,r,o,s)}function k0(t,r,o,s){let c=r.match(o);if(!c)return null;let u=c[0],m=u.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:s.reduce((p,{paramName:b,isOptional:y},S)=>{if(b==="*"){let R=h[S]||"";m=u.slice(0,u.length-R.length).replace(/(.)\/+$/,"$1")}const A=h[S];return y&&!A?p[b]=void 0:p[b]=(A||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:m,pattern:t}}function _0(t,r=!1,o=!0){bn(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==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?c+="\\/*$":t!==""&&t!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,r?void 0:"i"),s]}function a2(t){try{return t.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return bn(!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 na(t,r){if(r==="/")return t;if(!t.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,s=t.charAt(o);return s&&s!=="/"?null:t.slice(o)||"/"}function r2(t,r="/"){let{pathname:o,search:s="",hash:c=""}=typeof t=="string"?To(t):t,u;return o?(o=j0(o),o.startsWith("/")?u=fv(o.substring(1),"/"):u=fv(o,r)):u=r,{pathname:u,search:s2(s),hash:i2(c)}}function fv(t,r){let o=Ai(r).split("/");return t.split("/").forEach(c=>{c===".."?o.length>1&&o.pop():c!=="."&&o.push(c)}),o.length>1?o.join("/"):"/"}function kd(t,r,o,s){return`Cannot include a '${t}' character in a manually specified \`to.${r}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function o2(t){return t.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function Rf(t){let r=o2(t);return r.map((o,s)=>s===r.length-1?o.pathname:o.pathnameBase)}function Ji(t,r,o,s=!1){let c;typeof t=="string"?c=To(t):(c={...t},tt(!c.pathname||!c.pathname.includes("?"),kd("?","pathname","search",c)),tt(!c.pathname||!c.pathname.includes("#"),kd("#","pathname","hash",c)),tt(!c.search||!c.search.includes("#"),kd("#","search","hash",c)));let u=t===""||c.pathname==="",m=u?"/":c.pathname,h;if(m==null)h=o;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=r2(c,h),p=m&&m!=="/"&&m.endsWith("/"),b=(u||m===".")&&o.endsWith("/");return!g.pathname.endsWith("/")&&(p||b)&&(g.pathname+="/"),g}var j0=t=>t.replace(/[\\/]{2,}/g,"/"),yn=t=>j0(t.join("/")),Ai=t=>t.replace(/\/+$/,""),l2=t=>Ai(t).replace(/^\/*/,"/"),s2=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,i2=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,c2=class{constructor(t,r,o,s=!1){this.status=t,this.statusText=r||"",this.internal=s,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function u2(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function d2(t){let r=t.map(o=>o.route.path).filter(Boolean);return yn(r)||"/"}var O0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function D0(t,r){let o=t;if(typeof o!="string"||!Cf.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let s=o,c=!1;if(O0)try{let u=new URL(window.location.href),m=T0.test(o)?new URL(PS(o,u.protocol)):new URL(o),h=na(m.pathname,r);m.origin===u.origin&&h!=null?o=h+m.search+m.hash:c=!0}catch{bn(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:c,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var M0=["POST","PUT","PATCH","DELETE"];new Set(M0);var f2=["GET",...M0];new Set(f2);var m2=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function h2(t){try{return m2.includes(new URL(t).protocol)}catch{return!1}}var Co=v.createContext(null);Co.displayName="DataRouter";var ec=v.createContext(null);ec.displayName="DataRouterState";var z0=v.createContext(!1);function p2(){return v.useContext(z0)}var L0=v.createContext({isTransitioning:!1});L0.displayName="ViewTransition";var g2=v.createContext(new Map);g2.displayName="Fetchers";var v2=v.createContext(null);v2.displayName="Await";var Ft=v.createContext(null);Ft.displayName="Navigation";var Il=v.createContext(null);Il.displayName="Location";var un=v.createContext({outlet:null,matches:[],isDataRoute:!1});un.displayName="Route";var Af=v.createContext(null);Af.displayName="RouteError";var U0="REACT_ROUTER_ERROR",y2="REDIRECT",b2="ROUTE_ERROR_RESPONSE";function x2(t){if(t.startsWith(`${U0}:${y2}:{`))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 w2(t){if(t.startsWith(`${U0}:${b2}:{`))try{let r=JSON.parse(t.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new c2(r.status,r.statusText,r.data)}catch{}}function S2(t,{relative:r}={}){tt(Ro(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:s}=v.useContext(Ft),{hash:c,pathname:u,search:m}=Gl(t,{relative:r}),h=u;return o!=="/"&&(h=u==="/"?o:yn([o,u])),s.createHref({pathname:h,search:m,hash:c})}function Ro(){return v.useContext(Il)!=null}function Sn(){return tt(Ro(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Il).location}var B0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function H0(t){v.useContext(Ft).static||v.useLayoutEffect(t)}function P0(){let{isDataRoute:t}=v.useContext(un);return t?L2():E2()}function E2(){tt(Ro(),"useNavigate() may be used only in the context of a <Router> component.");let t=v.useContext(Co),{basename:r,navigator:o}=v.useContext(Ft),{matches:s}=v.useContext(un),{pathname:c}=Sn(),u=JSON.stringify(Rf(s)),m=v.useRef(!1);return H0(()=>{m.current=!0}),v.useCallback((g,p={})=>{if(bn(m.current,B0),!m.current)return;if(typeof g=="number"){o.go(g);return}let b=Ji(g,JSON.parse(u),c,p.relative==="path");t==null&&r!=="/"&&(b.pathname=b.pathname==="/"?r:yn([r,b.pathname])),(p.replace?o.replace:o.push)(b,p.state,p)},[r,o,u,c,t])}var $0=v.createContext(null);function m3(){return v.useContext($0)}function N2(t){let r=v.useContext(un).outlet;return v.useMemo(()=>r&&v.createElement($0.Provider,{value:t},r),[r,t])}function h3(){let{matches:t}=v.useContext(un);return t[t.length-1]?.params??{}}function Gl(t,{relative:r}={}){let{matches:o}=v.useContext(un),{pathname:s}=Sn(),c=JSON.stringify(Rf(o));return v.useMemo(()=>Ji(t,JSON.parse(c),s,r==="path"),[t,c,s,r])}function T2(t,r){return q0(t,r)}function q0(t,r,o){tt(Ro(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=v.useContext(Ft),{matches:c}=v.useContext(un),u=c[c.length-1],m=u?u.params:{},h=u?u.pathname:"/",g=u?u.pathnameBase:"/",p=u&&u.route;{let T=p&&p.path||"";Y0(h,!p||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
60
|
-
|
|
61
|
-
Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let b=Sn(),y;if(r){let T=typeof r=="string"?To(r):r;tt(g==="/"||T.pathname?.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 "${T.pathname}" was given in the \`location\` prop.`),y=T}else y=b;let S=y.pathname||"/",A=S;if(g!=="/"){let T=g.replace(/^\//,"").split("/");A="/"+S.replace(/^\//,"").split("/").slice(T.length).join("/")}let R=o&&o.state.matches.length?o.state.matches.map(T=>Object.assign(T,{route:o.manifest[T.route.id]||T.route})):C0(t,{pathname:A});bn(p||R!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),bn(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=_2(R&&R.map(T=>Object.assign({},T,{params:Object.assign({},m,T.params),pathname:yn([g,s.encodeLocation?s.encodeLocation(T.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?g:yn([g,s.encodeLocation?s.encodeLocation(T.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathnameBase])})),c,o);return r&&E?v.createElement(Il.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...y},navigationType:"POP"}},E):E}function C2(){let t=z2(),r=u2(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),o=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),o?v.createElement("pre",{style:c},o):null,m)}var R2=v.createElement(C2,null),V0=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 o=w2(t.digest);o&&(t=o)}let r=t!==void 0?v.createElement(un.Provider,{value:this.props.routeContext},v.createElement(Af.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?v.createElement(A2,{error:t},r):r}};V0.contextType=z0;var _d=new WeakMap;function A2({children:t,error:r}){let{basename:o}=v.useContext(Ft);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let s=x2(r.digest);if(s){let c=_d.get(r);if(c)throw c;let u=D0(s.location,o),m=u.absoluteURL||u.to;if(h2(m))throw new Error("Invalid redirect location");if(O0&&!_d.get(r))if(u.isExternal||s.reloadDocument)window.location.href=m;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:s.replace}));throw _d.set(r,h),h}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m}`})}}return t}function k2({routeContext:t,match:r,children:o}){let s=v.useContext(Co);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),v.createElement(un.Provider,{value:t},o)}function _2(t,r=[],o){let s=o?.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?.errors;if(u!=null){let b=c.findIndex(y=>y.route.id&&u?.[y.route.id]!==void 0);tt(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),c=c.slice(0,Math.min(c.length,b+1))}let m=!1,h=-1;if(o&&s){m=s.renderFallback;for(let b=0;b<c.length;b++){let y=c[b];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(h=b),y.route.id){let{loaderData:S,errors:A}=s,R=y.route.loader&&!S.hasOwnProperty(y.route.id)&&(!A||A[y.route.id]===void 0);if(y.route.lazy||R){o.isStatic&&(m=!0),h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}}let g=o?.onError,p=s&&g?(b,y)=>{g(b,{location:s.location,params:s.matches?.[0]?.params??{},pattern:d2(s.matches),errorInfo:y})}:void 0;return c.reduceRight((b,y,S)=>{let A,R=!1,E=null,T=null;s&&(A=u&&y.route.id?u[y.route.id]:void 0,E=y.route.errorElement||R2,m&&(h<0&&S===0?(Y0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,T=null):h===S&&(R=!0,T=y.route.hydrateFallbackElement||null)));let k=r.concat(c.slice(0,S+1)),C=()=>{let O;return A?O=E:R?O=T:y.route.Component?O=v.createElement(y.route.Component,null):y.route.element?O=y.route.element:O=b,v.createElement(k2,{match:y,routeContext:{outlet:b,matches:k,isDataRoute:s!=null},children:O})};return s&&(y.route.ErrorBoundary||y.route.errorElement||S===0)?v.createElement(V0,{location:s.location,revalidation:s.revalidation,component:E,error:A,children:C(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:p}):C()},null)}function kf(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function j2(t){let r=v.useContext(Co);return tt(r,kf(t)),r}function O2(t){let r=v.useContext(ec);return tt(r,kf(t)),r}function D2(t){let r=v.useContext(un);return tt(r,kf(t)),r}function _f(t){let r=D2(t),o=r.matches[r.matches.length-1];return tt(o.route.id,`${t} can only be used on routes that contain a unique "id"`),o.route.id}function M2(){return _f("useRouteId")}function z2(){let t=v.useContext(Af),r=O2("useRouteError"),o=_f("useRouteError");return t!==void 0?t:r.errors?.[o]}function L2(){let{router:t}=j2("useNavigate"),r=_f("useNavigate"),o=v.useRef(!1);return H0(()=>{o.current=!0}),v.useCallback(async(c,u={})=>{bn(o.current,B0),o.current&&(typeof c=="number"?await t.navigate(c):await t.navigate(c,{fromRouteId:r,...u}))},[t,r])}var mv={};function Y0(t,r,o){!r&&!mv[t]&&(mv[t]=!0,bn(!1,o))}v.memo(U2);function U2({routes:t,manifest:r,future:o,state:s,isStatic:c,onError:u}){return q0(t,void 0,{manifest:r,state:s,isStatic:c,onError:u})}function hv({to:t,replace:r,state:o,relative:s}){tt(Ro(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=v.useContext(Ft);bn(!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(un),{pathname:m}=Sn(),h=P0(),g=Ji(t,Rf(u),m,s==="path"),p=JSON.stringify(g);return v.useEffect(()=>{h(JSON.parse(p),{replace:r,state:o,relative:s})},[h,p,s,r,o]),null}function B2(t){return N2(t.context)}function pr(t){tt(!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 H2({basename:t="/",children:r=null,location:o,navigationType:s="POP",navigator:c,static:u=!1,useTransitions:m}){tt(!Ro(),"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,useTransitions:m,future:{}}),[h,c,u,m]);typeof o=="string"&&(o=To(o));let{pathname:p="/",search:b="",hash:y="",state:S=null,key:A="default",mask:R}=o,E=v.useMemo(()=>{let T=na(p,h);return T==null?null:{location:{pathname:T,search:b,hash:y,state:S,key:A,mask:R},navigationType:s}},[h,p,b,y,S,A,s,R]);return bn(E!=null,`<Router basename="${h}"> is not able to match the URL "${p}${b}${y}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:v.createElement(Ft.Provider,{value:g},v.createElement(Il.Provider,{children:r,value:E}))}function P2({children:t,location:r}){return T2(Jd(t),r)}function Jd(t,r=[]){let o=[];return v.Children.forEach(t,(s,c)=>{if(!v.isValidElement(s))return;let u=[...r,c];if(s.type===v.Fragment){o.push.apply(o,Jd(s.props.children,u));return}tt(s.type===pr,`[${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>`),tt(!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=Jd(s.props.children,u)),o.push(m)}),o}var yi="get",bi="application/x-www-form-urlencoded";function tc(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function $2(t){return tc(t)&&t.tagName.toLowerCase()==="button"}function q2(t){return tc(t)&&t.tagName.toLowerCase()==="form"}function V2(t){return tc(t)&&t.tagName.toLowerCase()==="input"}function Y2(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function I2(t,r){return t.button===0&&(!r||r==="_self")&&!Y2(t)}var li=null;function G2(){if(li===null)try{new FormData(document.createElement("form"),0),li=!1}catch{li=!0}return li}var X2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function jd(t){return t!=null&&!X2.has(t)?(bn(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bi}"`),null):t}function Q2(t,r){let o,s,c,u,m;if(q2(t)){let h=t.getAttribute("action");s=h?na(h,r):null,o=t.getAttribute("method")||yi,c=jd(t.getAttribute("enctype"))||bi,u=new FormData(t)}else if($2(t)||V2(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?na(g,r):null,o=t.getAttribute("formmethod")||h.getAttribute("method")||yi,c=jd(t.getAttribute("formenctype"))||jd(h.getAttribute("enctype"))||bi,u=new FormData(h,t),!G2()){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(tc(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=yi,s=null,c=bi,m=t}return u&&c==="text/plain"&&(m=u,u=void 0),{action:s,method:o.toLowerCase(),encType:c,formData:u,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function jf(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}function I0(t,r,o,s){let c=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return o?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${s}`:c.pathname=`${c.pathname}.${s}`:c.pathname==="/"?c.pathname=`_root.${s}`:r&&na(c.pathname,r)==="/"?c.pathname=`${Ai(r)}/_root.${s}`:c.pathname=`${Ai(c.pathname)}.${s}`,c}async function K2(t,r){if(t.id in r)return r[t.id];try{let o=await import(t.module);return r[t.id]=o,o}catch(o){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Z2(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 W2(t,r,o){let s=await Promise.all(t.map(async c=>{let u=r.routes[c.route.id];if(u){let m=await K2(u,o);return m.links?m.links():[]}return[]}));return tE(s.flat(1).filter(Z2).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,o,s,c,u){let m=(g,p)=>o[p]?g.route.id!==o[p].route.id:!0,h=(g,p)=>o[p].pathname!==g.pathname||o[p].route.path?.endsWith("*")&&o[p].params["*"]!==g.params["*"];return u==="assets"?r.filter((g,p)=>m(g,p)||h(g,p)):u==="data"?r.filter((g,p)=>{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 y=g.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:o[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function F2(t,r,{includeHydrateFallback:o}={}){return J2(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)),o&&c.hydrateFallbackModule&&(u=u.concat(c.hydrateFallbackModule)),c.imports&&(u=u.concat(c.imports)),u}).flat(1))}function J2(t){return[...new Set(t)]}function eE(t){let r={},o=Object.keys(t).sort();for(let s of o)r[s]=t[s];return r}function tE(t,r){let o=new Set;return new Set(r),t.reduce((s,c)=>{let u=JSON.stringify(eE(c));return o.has(u)||(o.add(u),s.push({key:u,link:c})),s},[])}function Of(){let t=v.useContext(Co);return jf(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function nE(){let t=v.useContext(ec);return jf(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Df=v.createContext(void 0);Df.displayName="FrameworkContext";function nc(){let t=v.useContext(Df);return jf(t,"You must render this element inside a <HydratedRouter> element"),t}function aE(t,r){let o=v.useContext(Df),[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 E=k=>{k.forEach(C=>{m(C.isIntersecting)})},T=new IntersectionObserver(E,{threshold:.5});return S.current&&T.observe(S.current),()=>{T.disconnect()}}},[t]),v.useEffect(()=>{if(s){let E=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(E)}}},[s]);let A=()=>{c(!0)},R=()=>{c(!1),m(!1)};return o?t!=="intent"?[u,S,{}]:[u,S,{onFocus:kl(h,A),onBlur:kl(g,R),onMouseEnter:kl(p,A),onMouseLeave:kl(b,R),onTouchStart:kl(y,A)}]:[!1,S,{}]}function kl(t,r){return o=>{t&&t(o),o.defaultPrevented||r(o)}}function rE({page:t,...r}){let o=p2(),{nonce:s}=nc(),{router:c}=Of(),u=v.useMemo(()=>C0(c.routes,t,c.basename),[c.routes,t,c.basename]);return u?(r.nonce==null&&s&&(r={...r,nonce:s}),o?v.createElement(lE,{page:t,matches:u,...r}):v.createElement(sE,{page:t,matches:u,...r})):null}function oE(t){let{manifest:r,routeModules:o}=nc(),[s,c]=v.useState([]);return v.useEffect(()=>{let u=!1;return W2(t,r,o).then(m=>{u||c(m)}),()=>{u=!0}},[t,r,o]),s}function lE({page:t,matches:r,...o}){let s=Sn(),{future:c}=nc(),{basename:u}=Of(),m=v.useMemo(()=>{if(t===s.pathname+s.search+s.hash)return[];let h=I0(t,u,c.v8_trailingSlashAwareDataRequests,"rsc"),g=!1,p=[];for(let b of r)typeof b.route.shouldRevalidate=="function"?g=!0:p.push(b.route.id);return g&&p.length>0&&h.searchParams.set("_routes",p.join(",")),[h.pathname+h.search]},[u,c.v8_trailingSlashAwareDataRequests,t,s,r]);return v.createElement(v.Fragment,null,m.map(h=>v.createElement("link",{key:h,rel:"prefetch",as:"fetch",href:h,...o})))}function sE({page:t,matches:r,...o}){let s=Sn(),{future:c,manifest:u,routeModules:m}=nc(),{basename:h}=Of(),{loaderData:g,matches:p}=nE(),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 E=new Set,T=!1;if(r.forEach(C=>{let O=u.routes[C.route.id];!O||!O.hasLoader||(!b.some(L=>L.route.id===C.route.id)&&C.route.id in g&&m[C.route.id]?.shouldRevalidate||O.hasClientLoader?T=!0:E.add(C.route.id))}),E.size===0)return[];let k=I0(t,h,c.v8_trailingSlashAwareDataRequests,"data");return T&&E.size>0&&k.searchParams.set("_routes",r.filter(C=>E.has(C.route.id)).map(C=>C.route.id).join(",")),[k.pathname+k.search]},[h,c.v8_trailingSlashAwareDataRequests,g,s,u,b,r,t,m]),A=v.useMemo(()=>F2(y,u),[y,u]),R=oE(y);return v.createElement(v.Fragment,null,S.map(E=>v.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...o})),A.map(E=>v.createElement("link",{key:E,rel:"modulepreload",href:E,...o})),R.map(({key:E,link:T})=>v.createElement("link",{key:E,nonce:o.nonce,...T,crossOrigin:T.crossOrigin??o.crossOrigin})))}function iE(...t){return r=>{t.forEach(o=>{typeof o=="function"?o(r):o!=null&&(o.current=r)})}}var cE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{cE&&(window.__reactRouterVersion="7.18.0")}catch{}function uE({basename:t,children:r,useTransitions:o,window:s}){let c=v.useRef();c.current==null&&(c.current=$S({window:s,v5Compat:!0}));let u=c.current,[m,h]=v.useState({action:u.action,location:u.location}),g=v.useCallback(p=>{o===!1?h(p):v.startTransition(()=>h(p))},[o]);return v.useLayoutEffect(()=>u.listen(g),[u,g]),v.createElement(H2,{basename:t,children:r,location:m.location,navigationType:m.action,navigator:u,useTransitions:o})}var G0=v.forwardRef(function({onClick:r,discover:o="render",prefetch:s="none",relative:c,reloadDocument:u,replace:m,mask:h,state:g,target:p,to:b,preventScrollReset:y,viewTransition:S,defaultShouldRevalidate:A,...R},E){let{basename:T,navigator:k,useTransitions:C}=v.useContext(Ft),O=typeof b=="string"&&Cf.test(b),L=D0(b,T);b=L.to;let U=S2(b,{relative:c}),G=Sn(),I=null;if(h){let le=Ji(h,[],G.mask?G.mask.pathname:"/",!0);T!=="/"&&(le.pathname=le.pathname==="/"?T:yn([T,le.pathname])),I=k.createHref(le)}let[Y,ae,fe]=aE(s,R),ce=mE(b,{replace:m,mask:h,state:g,target:p,preventScrollReset:y,relative:c,viewTransition:S,defaultShouldRevalidate:A,useTransitions:C});function ue(le){r&&r(le),le.defaultPrevented||ce(le)}let de=!(L.isExternal||u),ie=v.createElement("a",{...R,...fe,href:(de?I:void 0)||L.absoluteURL||U,onClick:de?ue:r,ref:iE(E,ae),target:p,"data-discover":!O&&o==="render"?"true":void 0});return Y&&!O?v.createElement(v.Fragment,null,ie,v.createElement(rE,{page:U})):ie});G0.displayName="Link";var ef=v.forwardRef(function({"aria-current":r="page",caseSensitive:o=!1,className:s="",end:c=!1,style:u,to:m,viewTransition:h,children:g,...p},b){let y=Gl(m,{relative:p.relative}),S=Sn(),A=v.useContext(ec),{navigator:R,basename:E}=v.useContext(Ft),T=A!=null&&yE(y)&&h===!0,k=R.encodeLocation?R.encodeLocation(y).pathname:y.pathname,C=S.pathname,O=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;o||(C=C.toLowerCase(),O=O?O.toLowerCase():null,k=k.toLowerCase()),O&&E&&(O=na(O,E)||O);const L=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let U=C===k||!c&&C.startsWith(k)&&C.charAt(L)==="/",G=O!=null&&(O===k||!c&&O.startsWith(k)&&O.charAt(k.length)==="/"),I={isActive:U,isPending:G,isTransitioning:T},Y=U?r:void 0,ae;typeof s=="function"?ae=s(I):ae=[s,U?"active":null,G?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let fe=typeof u=="function"?u(I):u;return v.createElement(G0,{...p,"aria-current":Y,className:ae,ref:b,style:fe,to:m,viewTransition:h},typeof g=="function"?g(I):g)});ef.displayName="NavLink";var dE=v.forwardRef(({discover:t="render",fetcherKey:r,navigate:o,reloadDocument:s,replace:c,state:u,method:m=yi,action:h,onSubmit:g,relative:p,preventScrollReset:b,viewTransition:y,defaultShouldRevalidate:S,...A},R)=>{let{useTransitions:E}=v.useContext(Ft),T=gE(),k=vE(h,{relative:p}),C=m.toLowerCase()==="get"?"get":"post",O=typeof h=="string"&&Cf.test(h),L=U=>{if(g&&g(U),U.defaultPrevented)return;U.preventDefault();let G=U.nativeEvent.submitter,I=G?.getAttribute("formmethod")||m,Y=()=>T(G||U.currentTarget,{fetcherKey:r,method:I,navigate:o,replace:c,state:u,relative:p,preventScrollReset:b,viewTransition:y,defaultShouldRevalidate:S});E&&o!==!1?v.startTransition(()=>Y()):Y()};return v.createElement("form",{ref:R,method:C,action:k,onSubmit:s?g:L,...A,"data-discover":!O&&t==="render"?"true":void 0})});dE.displayName="Form";function fE(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function X0(t){let r=v.useContext(Co);return tt(r,fE(t)),r}function mE(t,{target:r,replace:o,mask:s,state:c,preventScrollReset:u,relative:m,viewTransition:h,defaultShouldRevalidate:g,useTransitions:p}={}){let b=P0(),y=Sn(),S=Gl(t,{relative:m});return v.useCallback(A=>{if(I2(A,r)){A.preventDefault();let R=o!==void 0?o:Ul(y)===Ul(S),E=()=>b(t,{replace:R,mask:s,state:c,preventScrollReset:u,relative:m,viewTransition:h,defaultShouldRevalidate:g});p?v.startTransition(()=>E()):E()}},[y,b,S,o,s,c,r,t,u,m,h,g,p])}var hE=0,pE=()=>`__${String(++hE)}__`;function gE(){let{router:t}=X0("useSubmit"),{basename:r}=v.useContext(Ft),o=M2(),s=t.fetch,c=t.navigate;return v.useCallback(async(u,m={})=>{let{action:h,method:g,encType:p,formData:b,body:y}=Q2(u,r);if(m.navigate===!1){let S=m.fetcherKey||pE();await s(S,o,m.action||h,{defaultShouldRevalidate:m.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,{defaultShouldRevalidate:m.defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,body:y,formMethod:m.method||g,formEncType:m.encType||p,replace:m.replace,state:m.state,fromRouteId:o,flushSync:m.flushSync,viewTransition:m.viewTransition})},[s,c,r,o])}function vE(t,{relative:r}={}){let{basename:o}=v.useContext(Ft),s=v.useContext(un);tt(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),u={...Gl(t||".",{relative:r})},m=Sn();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"),o!=="/"&&(u.pathname=u.pathname==="/"?o:yn([o,u.pathname])),Ul(u)}function yE(t,{relative:r}={}){let o=v.useContext(L0);tt(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=X0("useViewTransitionState"),c=Gl(t,{relative:r});if(!o.isTransitioning)return!1;let u=na(o.currentLocation.pathname,s)||o.currentLocation.pathname,m=na(o.nextLocation.pathname,s)||o.nextLocation.pathname;return Ri(c.pathname,m)!=null||Ri(c.pathname,u)!=null}var Xl=E0();const Q0=S0(Xl),bE="/api";function xE(t){const r=new Headers(t?.headers);return t?.body!==void 0&&t.body!==null&&!r.has("Content-Type")&&r.set("Content-Type","application/json"),r}function wE(t,r){if(typeof t=="string"&&t)return t;if(t&&typeof t=="object"){const o=t,s=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return o.error;if(typeof s?.message=="string"&&s.message)return s.message;if(typeof o.message=="string"&&o.message)return o.message}return r}async function ve(t,r){const o=await fetch(`${bE}${t}`,{...r,headers:xE(r)});if(!o.ok){const s=await o.json().catch(()=>o.statusText);throw new Error(wE(s,`HTTP ${o.status}`))}return o.json()}function Ao(t,r){return ve(t,{...r,cache:"no-store"})}function K0(t){return ve(`/node-operations/${t}`)}async function Z0(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 o=r.toString();return(await ve(`/node-operations${o?`?${o}`:""}`)).operations}function SE(t){return ve(`/nodes/${t}/copilot-tunnel/enable`,{method:"POST"})}function gv(t){return ve(`/nodes/${t}/copilot-tunnel/status`,{method:"POST"})}function EE(t){return ve(`/nodes/${t}/copilot-tunnel/disable`,{method:"POST"})}function NE(){return ve("/system/info")}function TE(t){return ve("/system/default-task-agent",{method:"PUT",body:JSON.stringify({defaultTaskAgent:t})})}function p3(t){return ve("/system/transport",{method:"POST",body:JSON.stringify({type:t})})}function W0(t){return ve("/system/runtime/restart",{method:"POST",body:JSON.stringify(t)})}function CE(){return ve("/system/runtime/stop",{method:"POST"})}function RE(){return ve("/cluster/state")}function g3(){return ve("/cluster/promote",{method:"POST"})}function v3(t){return ve("/cluster/connect",{method:"POST",body:JSON.stringify(t)})}function y3(){return ve("/cluster/disconnect",{method:"POST"})}function b3(t={}){return ve("/mobile/pairings",{method:"POST",body:JSON.stringify(t)})}function x3(t){return ve(`/mobile/pairings/${encodeURIComponent(t)}`)}function AE(t,r){return ve(`/nodes/${t}/agents/${r}/upgrade`,{method:"POST"})}function kE(t,r){return ve(`/nodes/${t}/runtime/restart`,{method:"POST",body:JSON.stringify(r)})}async function w3(){return(await ve("/devboxes")).devboxes}function S3(t,r){return ve(`/nodes/${t}/devbox/configure`,{method:"POST",body:JSON.stringify({devbox:r})})}function E3(t){return ve(`/nodes/${t}/devbox/status`)}function N3(t){return ve(`/nodes/${t}/devbox/start`,{method:"POST"})}function T3(t,r){return ve(`/nodes/${t}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:r})})}function C3(t,r={}){const o=new URLSearchParams;r.path&&o.set("path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),100))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),r.directoriesOnly!==void 0&&o.set("directoriesOnly",String(r.directoriesOnly)),r.allowAbsolute!==void 0&&o.set("allowAbsolute",String(r.allowAbsolute));const s=o.toString();return ve(`/nodes/${t}/workdir/tree${s?`?${s}`:""}`)}function R3(t,r={}){const o=new URLSearchParams;r.path&&o.set("path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),20))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),r.allowAbsolute!==void 0&&o.set("allowAbsolute",String(r.allowAbsolute));const s=o.toString();return ve(`/nodes/${t}/workdir/branch${s?`?${s}`:""}`)}function A3(t,r){const o=new URLSearchParams;return o.set("agent",r.agent),o.set("limit",String(Math.min(Math.max(1,r.limit),100))),ve(`/nodes/${t}/native-sessions?${o.toString()}`)}function k3(t,r){return ve(`/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 _3(t,r){return ve(`/nodes/${t}/terminal/sessions`,{method:"POST",body:JSON.stringify(r)})}function j3(t){return ve(`/nodes/${t}/terminal/sessions`)}function O3(t,r){return ve(`/nodes/${t}/terminal/sessions/${r}`)}function D3(t,r){return ve(`/nodes/${t}/terminal/sessions/${r}/stop`,{method:"POST"})}function Mf(t,r){t.set("scope",r.kind),r.kind==="project"&&t.set("projectPath",r.projectPath)}function M3(t,r){const o=new URLSearchParams;return Mf(o,r.scope),r.agents?.length&&o.set("agents",r.agents.join(",")),ve(`/nodes/${encodeURIComponent(t)}/capabilities?${o.toString()}`)}function z3(t,r,o){const s=new URLSearchParams;o&&Mf(s,o);const c=s.toString();return ve(`/nodes/${encodeURIComponent(t)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`)}function L3(t,r,o){const s=new URLSearchParams;o&&Mf(s,o);const c=s.toString();return ve(`/nodes/${encodeURIComponent(t)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`,{method:"DELETE"})}function U3(t){return ve("/capabilities/conflict-check",{method:"POST",body:JSON.stringify(t)})}function B3(t){return ve("/capabilities/share",{method:"POST",body:JSON.stringify(t)})}async function H3(t){const r=new URLSearchParams;if(t?.status&&r.set("status",t.status),t?.assignedTo&&r.set("assignedTo",t.assignedTo),t?.priority&&r.set("priority",t.priority),t?.limit){const s=Math.min(Math.max(1,t.limit),100);r.set("limit",String(s))}if(t?.offset&&r.set("offset",String(t.offset)),t?.projectPath&&r.set("projectPath",t.projectPath),t?.cursor&&r.set("cursor",t.cursor),t?.completedLimitPerProject!==void 0){const s=Math.min(Math.max(1,t.completedLimitPerProject),100);r.set("completedLimitPerProject",String(s))}const o=r.toString();return ve(`/tasks${o?`?${o}`:""}`)}function P3(t){return ve(`/tasks/${t}`)}function $3(t){return ve("/tasks",{method:"POST",body:JSON.stringify(t)})}function q3(t){return ve("/tasks/import-session",{method:"POST",body:JSON.stringify(t)})}function V3(t){return ve(`/tasks/${t}`,{method:"DELETE"})}function Y3(t,r){return ve(`/tasks/${t}`,{method:"PATCH",body:JSON.stringify(r)})}function I3(t){return ve("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:t})})}function G3(t){return ve("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:t})})}function X3(t){return ve(`/tasks/${t}`,{method:"PATCH",body:JSON.stringify({status:"archived"})})}function Q3(t){return ve(`/tasks/${t}/cancel`,{method:"POST"})}function K3(t){return ve(`/tasks/${t}/retry`,{method:"POST"})}function Z3(t,r,o={}){const s=new URLSearchParams;r!==void 0&&s.set("after",String(r)),o.minTotal!==void 0&&s.set("minTotal",String(o.minTotal));const c=s.size>0?`?${s.toString()}`:"";return ve(`/tasks/${t}/logs${c}`)}function W3(t,r,o){return ve(`/tasks/${t}/message`,{method:"POST",body:JSON.stringify({content:r,...o?{targetAgent:o}:{}})})}function F3(t,r){return ve(`/tasks/${t}/queued-messages/${encodeURIComponent(r)}`,{method:"DELETE"})}function J3(t,r){return ve(`/tasks/${t}/share`,{method:"POST",body:JSON.stringify(r)})}function eO(t){return ve(`/tasks/${t}/share`,{method:"DELETE"})}function tO(t){return Ao(`/shared/conversations/${encodeURIComponent(t)}`)}function nO(t,r){return Ao(`/shared/conversations/${encodeURIComponent(t)}/logs`)}function aO(t){return Ao(`/shared/conversations/${encodeURIComponent(t)}/output`)}function rO(t,r="."){return Ao(`/shared/conversations/${encodeURIComponent(t)}/output/tree?path=${encodeURIComponent(r)}`)}function oO(t,r){return Ao(`/shared/conversations/${encodeURIComponent(t)}/output/content?path=${encodeURIComponent(r)}`)}function lO(t,r){return Ao(`/shared/conversations/${encodeURIComponent(t)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(r?{path:r}:{})})}function F0(t){return t?typeof t=="string"?{path:t}:{...t.path?{path:t.path}:{},...t.port!==void 0?{port:t.port}:{}}:{}}function sO(t){return ve(`/tasks/${t}/output`)}function iO(t,r="."){return ve(`/tasks/${t}/output/tree?path=${encodeURIComponent(r)}`)}function cO(t,r){return ve(`/tasks/${t}/output/content?path=${encodeURIComponent(r)}`)}function uO(t,r){return ve(`/tasks/${t}/output/preview-sessions`,{method:"POST",body:JSON.stringify(F0(r))})}function dO(t,r){return ve(`/nodes/${t}/preview-sessions`,{method:"POST",body:JSON.stringify(F0(r))})}function fO(t){return ve(`/tasks/${t}/output/diff`)}function _E({hasStarted:t,enabled:r}){return r&&!t}function jE(t,r,o=!0){const s=v.useRef(t),c=v.useRef(!1);v.useEffect(()=>{s.current=t},[t]),v.useEffect(()=>{if(!o)return;const u=()=>s.current();_E({hasStarted:c.current,enabled:o})&&(c.current=!0,u());const m=setInterval(u,r);return()=>clearInterval(m)},[r,o])}function OE(t){return t?t.replace(/\/+$/,""):""}function DE(t){const r=t??"/api";return r?r.startsWith("/")?r.replace(/\/+$/,""):`/${r.replace(/\/+$/,"")}`:""}function Od(...t){const r=new Headers;for(const o of t){if(!o)continue;new Headers(o).forEach((c,u)=>r.set(u,c))}return r}var ME=class extends Error{status;statusText;code;details;body;constructor(t,r){super(t),this.name="MeshyApiError",this.status=r.status,this.statusText=r.statusText,this.code=r.code,this.details=r.details,this.body=r.body}};function zE(t,r){if(typeof t=="string"&&t)return{message:t};if(t&&typeof t=="object"){const o=t,s=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return{message:o.error};if(typeof s?.message=="string"&&s.message)return{message:s.message,code:s.code,details:s.details};if(typeof o.message=="string"&&o.message)return{message:o.message}}return{message:r}}function _l(t,r){const o=r.toString();return o?`${t}?${o}`:t}function Kt(t,r,o){o!==void 0&&t.set(r,String(o))}function si(t){return t===null||Array.isArray(t)||typeof t=="object"&&t!==null&&!(t instanceof ArrayBuffer)}function vv(t){return t?typeof t=="string"?{path:t}:{...t.path?{path:t.path}:{},...t.port!==void 0?{port:t.port}:{}}:{}}var LE=class{baseUrl;apiPrefix;defaultHeaders;credentials;fetchImpl;config;constructor(t={}){const r=t.fetchImpl??((o,s)=>globalThis.fetch(o,s));if(!r)throw new Error("MeshyClient requires a fetch implementation");this.fetchImpl=r,this.baseUrl=OE(t.baseUrl),this.apiPrefix=DE(t.apiPrefix),this.defaultHeaders=Od(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 buildRequestHeaders(t={}){const r=await this.config.tokenProvider?.(),o=await this.config.headersProvider?.();return Od(t.accept?{Accept:t.accept}:{Accept:"application/json"},t.json?{"Content-Type":"application/json"}:void 0,this.config.defaultHeaders,o,r?{Authorization:`Bearer ${r}`}:void 0,t.headers)}async fetchApi(t,r={}){const o=r.timeoutMs??this.config.timeoutMs,s=o?new AbortController:null;let c=null;s&&(c=setTimeout(()=>s.abort(),o));const u=await this.buildRequestHeaders({json:si(r.body),headers:r.headers}),m=si(r.body)?JSON.stringify(r.body):r.body;try{return await this.fetchImpl(this.buildApiUrl(t),{...r,headers:u,body:m,credentials:r.credentials??this.config.credentials,signal:r.signal??s?.signal})}finally{c&&clearTimeout(c)}}async request(t,r={}){const o=r.timeoutMs??this.config.timeoutMs,s=o?new AbortController:null;let c=null;s&&(c=setTimeout(()=>s.abort(),o));const u=await this.config.tokenProvider?.(),m=await this.config.headersProvider?.(),h=r.credentials??this.config.credentials,g=Od({Accept:"application/json"},si(r.body)?{"Content-Type":"application/json"}:void 0,this.config.defaultHeaders,m,u?{Authorization:`Bearer ${u}`}:void 0,r.headers),p=si(r.body)?JSON.stringify(r.body):r.body;try{const b=await this.fetchImpl(this.buildApiUrl(t),{...r,headers:g,body:p,credentials:h,signal:r.signal??s?.signal});if(!b.ok){const y=await b.json().catch(()=>b.statusText),S=zE(y,`HTTP ${b.status}`);throw new ME(S.message,{status:b.status,statusText:b.statusText,code:S.code,details:S.details,body:y})}return b.status===204?void 0:await b.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 Kt(r,"status",t.status),Kt(r,"capability",t.capability),(await this.request(_l("/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 Kt(r,"nodeId",t.nodeId),Kt(r,"status",t.status),Kt(r,"kind",t.kind),(await this.request(_l("/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 o=new URLSearchParams;return Kt(o,"path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),100))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),Kt(o,"directoriesOnly",r.directoriesOnly),Kt(o,"allowAbsolute",r.allowAbsolute),this.request(_l(`/nodes/${encodeURIComponent(t)}/workdir/tree`,o))}getNodeWorkDirBranchInfo(t,r={}){const o=new URLSearchParams;return Kt(o,"path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),20))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),Kt(o,"allowAbsolute",r.allowAbsolute),this.request(_l(`/nodes/${encodeURIComponent(t)}/workdir/branch`,o))}createNodeWorkDirBranch(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/workdir/branch`,{method:"POST",body:r})}createNodePreviewSession(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/preview-sessions`,{method:"POST",body:vv(r)})}getNodeNativeSessions(t,r){const o=new URLSearchParams;return o.set("agent",r.agent),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),100))),this.request(`/nodes/${encodeURIComponent(t)}/native-sessions?${o.toString()}`)}hideNodeNativeSession(t,r,o){return this.request(`/nodes/${encodeURIComponent(t)}/native-sessions/${encodeURIComponent(r)}/${encodeURIComponent(o)}`,{method:"DELETE"})}hideNodeNativeSessionFolder(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/native-sessions/folders/hide`,{method:"POST",body:r})}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 Kt(r,"status",t.status),Kt(r,"assignedTo",t.assignedTo),Kt(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(_l("/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"}})}updateTaskTitle(t,r){return this.request(`/tasks/${encodeURIComponent(t)}`,{method:"PATCH",body:{title:r}})}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:vv(r)})}getTaskOutputDiff(t){return this.request(`/tasks/${encodeURIComponent(t)}/output/diff`)}},UE=new LE,BE=["node.joined","node.left","node.status","node.operation.created","node.operation.updated","node.nativeSessions.changed","task.created","task.assigned","task.status","task.updated","task.deleted","task.output","task.logs.ready","election.started","election.complete","cluster.state","transport.changed"],HE=0,PE=class{client;eventTypes;eventSourceFactory;pollIntervalMs;poll;eventSource=null;pollTimer=null;listeners=new Map;connectionListeners=new Map;listenerId=0;connected=!1;constructor(t){this.client=t.client,this.eventTypes=t.eventTypes??BE,this.eventSourceFactory=t.eventSourceFactory??($E(t.client)?void 0:VE()),this.pollIntervalMs=t.pollIntervalMs??1e4,this.poll=t.poll}start(){if(!(this.eventSource||this.pollTimer)){if(this.eventSourceFactory){const t=new this.eventSourceFactory(qE(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,o=>this.emit({id:String(++HE),type:r,data:JSON.parse(o.data),timestamp:Date.now()}));return}this.startPolling()}}stop(){this.eventSource?.close(),this.eventSource=null,this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null),this.setConnected(!1)}subscribe(t,r){const o=++this.listenerId;return this.listeners.set(o,{pattern:t,callback:r}),()=>this.listeners.delete(o)}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:o}of this.listeners.values())t.type.startsWith(r)&&o(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(()=>{this.poll?.().then(()=>this.setConnected(!0)).catch(()=>{this.setConnected(!1)})},this.pollIntervalMs))}};function $E(t){return t.defaultHeaders.has("x-tunnel-authorization")}function qE(t,r){const o=t.buildApiUrl??t.buildApiurl;if(!o)throw new Error("MeshyClient is missing buildApiUrl");return o.call(t,r)}function VE(){return globalThis.EventSource}var YE=3,IE="mmp";function mO(t){return JSON.stringify({t:IE,v:YE,n:t.nodeId,N:t.nodeName,u:t.apiBaseUrl,p:t.pairingId,e:t.expiresAt,m:t.maxUses,a:{t:t.aad.tenantId,c:t.aad.clientId,s:t.aad.scopes}})}function GE(t=50){const[r,o]=v.useState([]),[s,c]=v.useState(!1),u=v.useRef(null),m=v.useRef(0),h=v.useRef(new Map);v.useEffect(()=>{const b=new PE({client:UE});u.current=b;const y=b.subscribe("",A=>{const R=A;o(E=>[R,...E].slice(0,t));for(const[,{pattern:E,callback:T}]of h.current)R.type.startsWith(E)&&T(R)}),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(()=>o([]),[]);return{events:r,connected:s,subscribe:g,clearEvents:p}}const XE=1e4,QE=6e4,KE=XE,ZE=250,WE=new Set(["node.joined","node.left","task.created","task.assigned","task.deleted"]),FE=new Set(["task.created","task.assigned","task.status","task.deleted"]);function JE(t){return t?QE:KE}function hO(t){return WE.has(t)}function eN(t){return FE.has(t)}function tN(t,r){if(!r)return!0;const o=t.leaderId,s=t.term,c=t.nodeCount;return typeof o!="string"&&o!==null||typeof s!="number"||typeof c!="number"?!0:r.leaderId!==o||r.term!==s||r.nodeCount!==c}function nN(t,r,o){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:o.get(s)!==c}function pO(t,r){const o=r.taskId,s=r.status;if(typeof o!="string"||typeof s!="string")return t;let c=!1;const u=t.map(m=>{if(m.id!==o)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 gO(t,r){const o=r.taskId;if(typeof o!="string")return t;const s=t.filter(c=>c.id!==o);return s.length===t.length?t:s}const zf=v.createContext(null);function aN({children:t}){const[r,o]=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:A,subscribe:R}=GE(),E=v.useCallback(async()=>{try{const[k,C]=await Promise.all([RE(),NE()]),O=k,L=C.nodeId??C.id,U=O.nodes??[],G=U.find(ae=>ae.id===L)??{id:L,name:C.name,endpoint:C.endpoint,role:C.role,status:C.status,capabilities:C.capabilities,joinedAt:C.joinedAt,lastHeartbeat:C.lastHeartbeat},I=O.leaderId?U.find(ae=>ae.id===O.leaderId)??null:null,Y={leader:I?{id:I.id,name:I.name,endpoint:I.endpoint,...I.dashboardOrigin?{dashboardOrigin:I.dashboardOrigin}:{}}:null,term:O.term??0,nodes:U,self:G,taskSummary:O.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}};b.current={leaderId:Y.leader?.id??null,term:Y.term,nodeCount:Y.nodes.length},y.current=new Map(Y.nodes.map(ae=>[ae.id,ae.status])),y.current.set(Y.self.id,Y.self.status),o(Y),c(C),g(null)}catch(k){g(k instanceof Error?k.message:"Failed to fetch cluster state")}finally{m(!1)}},[]),T=v.useCallback(()=>{p.current===null&&(p.current=window.setTimeout(()=>{p.current=null,E()},ZE))},[E]);return jE(E,JE(A)),v.useEffect(()=>()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},[]),v.useEffect(()=>{const k=[R("cluster",C=>{tN(C.data,b.current)&&T()}),R("election",T),R("node",C=>{nN(C.type,C.data,y.current)&&T()}),R("transport",T),R("task",C=>{eN(C.type)&&T()})];return()=>k.forEach(C=>C())},[R,T]),f.jsx(zf.Provider,{value:{cluster:r,systemInfo:s,events:S,sseConnected:A,subscribe:R,refresh:E,loading:u,error:h},children:t})}function J0(){const t=v.useContext(zf);if(!t)throw new Error("useCluster must be used within ClusterProvider");return t}function vO(){return v.useContext(zf)}/**
|
|
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 ey=(...t)=>t.filter((r,o,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===o).join(" ").trim();/**
|
|
67
|
-
* @license lucide-react v1.7.0 - ISC
|
|
68
|
-
*
|
|
69
|
-
* This source code is licensed under the ISC license.
|
|
70
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const rN=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 oN=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,s)=>s?s.toUpperCase():o.toLowerCase());/**
|
|
77
|
-
* @license lucide-react v1.7.0 - ISC
|
|
78
|
-
*
|
|
79
|
-
* This source code is licensed under the ISC license.
|
|
80
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const yv=t=>{const r=oN(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 Dd={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 lN=t=>{for(const r in t)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},sN=v.createContext({}),iN=()=>v.useContext(sN),cN=v.forwardRef(({color:t,size:r,strokeWidth:o,absoluteStrokeWidth:s,className:c="",children:u,iconNode:m,...h},g)=>{const{size:p=24,strokeWidth:b=2,absoluteStrokeWidth:y=!1,color:S="currentColor",className:A=""}=iN()??{},R=s??y?Number(o??b)*24/Number(r??p):o??b;return v.createElement("svg",{ref:g,...Dd,width:r??p??Dd.width,height:r??p??Dd.height,stroke:t??S,strokeWidth:R,className:ey("lucide",A,c),...!u&&!lN(h)&&{"aria-hidden":"true"},...h},[...m.map(([E,T])=>v.createElement(E,T)),...Array.isArray(u)?u:[u]])});/**
|
|
92
|
-
* @license lucide-react v1.7.0 - ISC
|
|
93
|
-
*
|
|
94
|
-
* This source code is licensed under the ISC license.
|
|
95
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const je=(t,r)=>{const o=v.forwardRef(({className:s,...c},u)=>v.createElement(cN,{ref:u,iconNode:r,className:ey(`lucide-${rN(yv(t))}`,`lucide-${t}`,s),...c}));return o.displayName=yv(t),o};/**
|
|
97
|
-
* @license lucide-react v1.7.0 - ISC
|
|
98
|
-
*
|
|
99
|
-
* This source code is licensed under the ISC license.
|
|
100
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const uN=[["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"}]],ki=je("activity",uN);/**
|
|
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 dN=[["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"}]],fN=je("book-open",dN);/**
|
|
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 mN=[["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"}]],_i=je("bot",mN);/**
|
|
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 hN=[["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"}]],ty=je("cable",hN);/**
|
|
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 pN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ji=je("check",pN);/**
|
|
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 gN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],gr=je("chevron-down",gN);/**
|
|
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 vN=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],yN=je("chevron-left",vN);/**
|
|
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 bN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Oi=je("chevron-right",bN);/**
|
|
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 xN=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],wN=je("chevron-up",xN);/**
|
|
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 SN=[["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"}]],Dl=je("circle-alert",SN);/**
|
|
147
|
-
* @license lucide-react v1.7.0 - ISC
|
|
148
|
-
*
|
|
149
|
-
* This source code is licensed under the ISC license.
|
|
150
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const EN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],bo=je("circle-check",EN);/**
|
|
152
|
-
* @license lucide-react v1.7.0 - ISC
|
|
153
|
-
*
|
|
154
|
-
* This source code is licensed under the ISC license.
|
|
155
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const NN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],bv=je("circle-dot",NN);/**
|
|
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 TN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],xv=je("circle-x",TN);/**
|
|
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 CN=[["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"}]],ny=je("copy",CN);/**
|
|
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 RN=[["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"}]],ay=je("external-link",RN);/**
|
|
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 AN=[["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"}]],kN=je("folder",AN);/**
|
|
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 _N=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ry=je("info",_N);/**
|
|
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 jN=[["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"}]],ON=je("key-round",jN);/**
|
|
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 DN=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Lf=je("loader-circle",DN);/**
|
|
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 MN=[["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"}]],Uf=je("message-square-text",MN);/**
|
|
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 zN=[["path",{d:"M5 12h14",key:"1ays0h"}]],LN=je("minus",zN);/**
|
|
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 UN=[["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"}]],BN=je("monitor-cog",UN);/**
|
|
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 HN=[["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"}]],oy=je("monitor",HN);/**
|
|
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 PN=[["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"}]],ly=je("moon",PN);/**
|
|
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 $N=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],qN=je("plus",$N);/**
|
|
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 VN=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],YN=je("power",VN);/**
|
|
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 IN=[["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"}]],xi=je("refresh-cw",IN);/**
|
|
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 GN=[["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"}]],wv=je("rocket",GN);/**
|
|
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 XN=[["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"}]],QN=je("save",XN);/**
|
|
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 KN=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ZN=je("search",KN);/**
|
|
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 WN=[["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"}]],FN=je("server",WN);/**
|
|
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 JN=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],eT=je("settings",JN);/**
|
|
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 tT=[["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"}]],nT=je("sparkles",tT);/**
|
|
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 aT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],rT=je("square",aT);/**
|
|
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 oT=[["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"}]],sy=je("sun",oT);/**
|
|
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 lT=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],iy=je("terminal",lT);/**
|
|
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 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"}]],iT=je("trash-2",sT);/**
|
|
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 cT=[["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"}]],uT=je("wifi-off",cT);/**
|
|
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 dT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Bf=je("x",dT);function cy(t){var r,o,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]&&(o=cy(t[r]))&&(s&&(s+=" "),s+=o)}else for(o in t)t[o]&&(s&&(s+=" "),s+=o);return s}function uy(){for(var t,r,o=0,s="",c=arguments.length;o<c;o++)(t=arguments[o])&&(r=cy(t))&&(s&&(s+=" "),s+=r);return s}const fT=(t,r)=>{const o=new Array(t.length+r.length);for(let s=0;s<t.length;s++)o[s]=t[s];for(let s=0;s<r.length;s++)o[t.length+s]=r[s];return o},mT=(t,r)=>({classGroupId:t,validator:r}),dy=(t=new Map,r=null,o)=>({nextPart:t,validators:r,classGroupId:o}),Di="-",Sv=[],hT="arbitrary..",pT=t=>{const r=vT(t),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return gT(m);const h=m.split(Di),g=h[0]===""&&h.length>1?1:0;return fy(h,g,r)},getConflictingClassGroupIds:(m,h)=>{if(h){const g=s[m],p=o[m];return g?p?fT(p,g):g:p||Sv}return o[m]||Sv}}},fy=(t,r,o)=>{if(t.length-r===0)return o.classGroupId;const c=t[r],u=o.nextPart.get(c);if(u){const p=fy(t,r+1,u);if(p)return p}const m=o.validators;if(m===null)return;const h=r===0?t.join(Di):t.slice(r).join(Di),g=m.length;for(let p=0;p<g;p++){const b=m[p];if(b.validator(h))return b.classGroupId}},gT=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=t.slice(1,-1),o=r.indexOf(":"),s=r.slice(0,o);return s?hT+s:void 0})(),vT=t=>{const{theme:r,classGroups:o}=t;return yT(o,r)},yT=(t,r)=>{const o=dy();for(const s in t){const c=t[s];Hf(c,o,s,r)}return o},Hf=(t,r,o,s)=>{const c=t.length;for(let u=0;u<c;u++){const m=t[u];bT(m,r,o,s)}},bT=(t,r,o,s)=>{if(typeof t=="string"){xT(t,r,o);return}if(typeof t=="function"){wT(t,r,o,s);return}ST(t,r,o,s)},xT=(t,r,o)=>{const s=t===""?r:my(r,t);s.classGroupId=o},wT=(t,r,o,s)=>{if(ET(t)){Hf(t(s),r,o,s);return}r.validators===null&&(r.validators=[]),r.validators.push(mT(o,t))},ST=(t,r,o,s)=>{const c=Object.entries(t),u=c.length;for(let m=0;m<u;m++){const[h,g]=c[m];Hf(g,my(r,h),o,s)}},my=(t,r)=>{let o=t;const s=r.split(Di),c=s.length;for(let u=0;u<c;u++){const m=s[u];let h=o.nextPart.get(m);h||(h=dy(),o.nextPart.set(m,h)),o=h}return o},ET=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,NT=t=>{if(t<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),s=Object.create(null);const c=(u,m)=>{o[u]=m,r++,r>t&&(r=0,s=o,o=Object.create(null))};return{get(u){let m=o[u];if(m!==void 0)return m;if((m=s[u])!==void 0)return c(u,m),m},set(u,m){u in o?o[u]=m:c(u,m)}}},tf="!",Ev=":",TT=[],Nv=(t,r,o,s,c)=>({modifiers:t,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:s,isExternal:c}),CT=t=>{const{prefix:r,experimentalParseClassName:o}=t;let s=c=>{const u=[];let m=0,h=0,g=0,p;const b=c.length;for(let E=0;E<b;E++){const T=c[E];if(m===0&&h===0){if(T===Ev){u.push(c.slice(g,E)),g=E+1;continue}if(T==="/"){p=E;continue}}T==="["?m++:T==="]"?m--:T==="("?h++:T===")"&&h--}const y=u.length===0?c:c.slice(g);let S=y,A=!1;y.endsWith(tf)?(S=y.slice(0,-1),A=!0):y.startsWith(tf)&&(S=y.slice(1),A=!0);const R=p&&p>g?p-g:void 0;return Nv(u,A,S,R)};if(r){const c=r+Ev,u=s;s=m=>m.startsWith(c)?u(m.slice(c.length)):Nv(TT,!1,m,void 0,!0)}if(o){const c=s;s=u=>o({className:u,parseClassName:c})}return s},RT=t=>{const r=new Map;return t.orderSensitiveModifiers.forEach((o,s)=>{r.set(o,1e6+s)}),o=>{const s=[];let c=[];for(let u=0;u<o.length;u++){const m=o[u],h=m[0]==="[",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}},AT=t=>({cache:NT(t.cacheSize),parseClassName:CT(t),sortModifiers:RT(t),...pT(t)}),kT=/\s+/,_T=(t,r)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:c,sortModifiers:u}=r,m=[],h=t.trim().split(kT);let g="";for(let p=h.length-1;p>=0;p-=1){const b=h[p],{isExternal:y,modifiers:S,hasImportantModifier:A,baseClassName:R,maybePostfixModifierPosition:E}=o(b);if(y){g=b+(g.length>0?" "+g:g);continue}let T=!!E,k=s(T?R.substring(0,E):R);if(!k){if(!T){g=b+(g.length>0?" "+g:g);continue}if(k=s(R),!k){g=b+(g.length>0?" "+g:g);continue}T=!1}const C=S.length===0?"":S.length===1?S[0]:u(S).join(":"),O=A?C+tf:C,L=O+k;if(m.indexOf(L)>-1)continue;m.push(L);const U=c(k,T);for(let G=0;G<U.length;++G){const I=U[G];m.push(O+I)}g=b+(g.length>0?" "+g:g)}return g},jT=(...t)=>{let r=0,o,s,c="";for(;r<t.length;)(o=t[r++])&&(s=hy(o))&&(c&&(c+=" "),c+=s);return c},hy=t=>{if(typeof t=="string")return t;let r,o="";for(let s=0;s<t.length;s++)t[s]&&(r=hy(t[s]))&&(o&&(o+=" "),o+=r);return o},OT=(t,...r)=>{let o,s,c,u;const m=g=>{const p=r.reduce((b,y)=>y(b),t());return o=AT(p),s=o.cache.get,c=o.cache.set,u=h,h(g)},h=g=>{const p=s(g);if(p)return p;const b=_T(g,o);return c(g,b),b};return u=m,(...g)=>u(jT(...g))},DT=[],bt=t=>{const r=o=>o[t]||DT;return r.isThemeGetter=!0,r},py=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,gy=/^\((?:(\w[\w-]*):)?(.+)\)$/i,MT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,zT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,LT=/\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$/,UT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,BT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,HT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Da=t=>MT.test(t),_e=t=>!!t&&!Number.isNaN(Number(t)),Ma=t=>!!t&&Number.isInteger(Number(t)),Md=t=>t.endsWith("%")&&_e(t.slice(0,-1)),ta=t=>zT.test(t),vy=()=>!0,PT=t=>LT.test(t)&&!UT.test(t),Pf=()=>!1,$T=t=>BT.test(t),qT=t=>HT.test(t),VT=t=>!pe(t)&&!ge(t),YT=t=>$a(t,xy,Pf),pe=t=>py.test(t),fr=t=>$a(t,wy,PT),Tv=t=>$a(t,FT,_e),IT=t=>$a(t,Ey,vy),GT=t=>$a(t,Sy,Pf),Cv=t=>$a(t,yy,Pf),XT=t=>$a(t,by,qT),ii=t=>$a(t,Ny,$T),ge=t=>gy.test(t),jl=t=>Er(t,wy),QT=t=>Er(t,Sy),Rv=t=>Er(t,yy),KT=t=>Er(t,xy),ZT=t=>Er(t,by),ci=t=>Er(t,Ny,!0),WT=t=>Er(t,Ey,!0),$a=(t,r,o)=>{const s=py.exec(t);return s?s[1]?r(s[1]):o(s[2]):!1},Er=(t,r,o=!1)=>{const s=gy.exec(t);return s?s[1]?r(s[1]):o:!1},yy=t=>t==="position"||t==="percentage",by=t=>t==="image"||t==="url",xy=t=>t==="length"||t==="size"||t==="bg-size",wy=t=>t==="length",FT=t=>t==="number",Sy=t=>t==="family-name",Ey=t=>t==="number"||t==="weight",Ny=t=>t==="shadow",JT=()=>{const t=bt("color"),r=bt("font"),o=bt("text"),s=bt("font-weight"),c=bt("tracking"),u=bt("leading"),m=bt("breakpoint"),h=bt("container"),g=bt("spacing"),p=bt("radius"),b=bt("shadow"),y=bt("inset-shadow"),S=bt("text-shadow"),A=bt("drop-shadow"),R=bt("blur"),E=bt("perspective"),T=bt("aspect"),k=bt("ease"),C=bt("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...L(),ge,pe],G=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],Y=()=>[ge,pe,g],ae=()=>[Da,"full","auto",...Y()],fe=()=>[Ma,"none","subgrid",ge,pe],ce=()=>["auto",{span:["full",Ma,ge,pe]},Ma,ge,pe],ue=()=>[Ma,"auto",ge,pe],de=()=>["auto","min","max","fr",ge,pe],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...Y()],$=()=>[Da,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Y()],D=()=>[Da,"screen","full","dvw","lvw","svw","min","max","fit",...Y()],W=()=>[Da,"screen","full","lh","dvh","lvh","svh","min","max","fit",...Y()],N=()=>[t,ge,pe],V=()=>[...L(),Rv,Cv,{position:[ge,pe]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",KT,YT,{size:[ge,pe]}],F=()=>[Md,jl,fr],ee=()=>["","none","full",p,ge,pe],te=()=>["",_e,jl,fr],oe=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>[_e,Md,Rv,Cv],Re=()=>["","none",R,ge,pe],Ne=()=>["none",_e,ge,pe],Ae=()=>["none",_e,ge,pe],Je=()=>[_e,ge,pe],at=()=>[Da,"full",...Y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ta],breakpoint:[ta],color:[vy],container:[ta],"drop-shadow":[ta],ease:["in","out","in-out"],font:[VT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ta],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ta],shadow:[ta],spacing:["px",_e],text:[ta],"text-shadow":[ta],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Da,pe,ge,T]}],container:["container"],columns:[{columns:[_e,pe,ge,h]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:U()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{"inset-s":ae(),start:ae()}],end:[{"inset-e":ae(),end:ae()}],"inset-bs":[{"inset-bs":ae()}],"inset-be":[{"inset-be":ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Ma,"auto",ge,pe]}],basis:[{basis:[Da,"full","auto",h,...Y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Da,"auto","initial","none",pe]}],grow:[{grow:["",_e,ge,pe]}],shrink:[{shrink:["",_e,ge,pe]}],order:[{order:[Ma,"first","last","none",ge,pe]}],"grid-cols":[{"grid-cols":fe()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":ue()}],"col-end":[{"col-end":ue()}],"grid-rows":[{"grid-rows":fe()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":ue()}],"row-end":[{"row-end":ue()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:Y()}],"gap-x":[{"gap-x":Y()}],"gap-y":[{"gap-y":Y()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:Y()}],px:[{px:Y()}],py:[{py:Y()}],ps:[{ps:Y()}],pe:[{pe:Y()}],pbs:[{pbs:Y()}],pbe:[{pbe:Y()}],pt:[{pt:Y()}],pr:[{pr:Y()}],pb:[{pb:Y()}],pl:[{pl:Y()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":Y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Y()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...D()]}],"min-inline-size":[{"min-inline":["auto",...D()]}],"max-inline-size":[{"max-inline":["none",...D()]}],"block-size":[{block:["auto",...W()]}],"min-block-size":[{"min-block":["auto",...W()]}],"max-block-size":[{"max-block":["none",...W()]}],w:[{w:[h,"screen",...$()]}],"min-w":[{"min-w":[h,"screen","none",...$()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[m]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",o,jl,fr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,WT,IT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Md,pe]}],"font-family":[{font:[QT,GT,r]}],"font-features":[{"font-features":[pe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,ge,pe]}],"line-clamp":[{"line-clamp":[_e,"none",ge,Tv]}],leading:[{leading:[u,...Y()]}],"list-image":[{"list-image":["none",ge,pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",ge,fr]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[_e,"auto",ge,pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge,pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:V()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ma,ge,pe],radial:["",ge,pe],conic:[Ma,ge,pe]},ZT,XT]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-bs":[{"border-bs":te()}],"border-w-be":[{"border-be":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,ge,pe]}],"outline-w":[{outline:["",_e,jl,fr]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",b,ci,ii]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",y,ci,ii]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[_e,fr]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",S,ci,ii]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[_e,ge,pe]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":xe()}],"mask-image-linear-to-pos":[{"mask-linear-to":xe()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":xe()}],"mask-image-t-to-pos":[{"mask-t-to":xe()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":xe()}],"mask-image-r-to-pos":[{"mask-r-to":xe()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":xe()}],"mask-image-b-to-pos":[{"mask-b-to":xe()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":xe()}],"mask-image-l-to-pos":[{"mask-l-to":xe()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":xe()}],"mask-image-x-to-pos":[{"mask-x-to":xe()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":xe()}],"mask-image-y-to-pos":[{"mask-y-to":xe()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[ge,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":xe()}],"mask-image-radial-to-pos":[{"mask-radial-to":xe()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"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":L()}],"mask-image-conic-pos":[{"mask-conic":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":xe()}],"mask-image-conic-to-pos":[{"mask-conic-to":xe()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,pe]}],filter:[{filter:["","none",ge,pe]}],blur:[{blur:Re()}],brightness:[{brightness:[_e,ge,pe]}],contrast:[{contrast:[_e,ge,pe]}],"drop-shadow":[{"drop-shadow":["","none",A,ci,ii]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",_e,ge,pe]}],"hue-rotate":[{"hue-rotate":[_e,ge,pe]}],invert:[{invert:["",_e,ge,pe]}],saturate:[{saturate:[_e,ge,pe]}],sepia:[{sepia:["",_e,ge,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,pe]}],"backdrop-blur":[{"backdrop-blur":Re()}],"backdrop-brightness":[{"backdrop-brightness":[_e,ge,pe]}],"backdrop-contrast":[{"backdrop-contrast":[_e,ge,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,ge,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,ge,pe]}],"backdrop-invert":[{"backdrop-invert":["",_e,ge,pe]}],"backdrop-opacity":[{"backdrop-opacity":[_e,ge,pe]}],"backdrop-saturate":[{"backdrop-saturate":[_e,ge,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,ge,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Y()}],"border-spacing-x":[{"border-spacing-x":Y()}],"border-spacing-y":[{"border-spacing-y":Y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",ge,pe]}],ease:[{ease:["linear","initial",k,ge,pe]}],delay:[{delay:[_e,ge,pe]}],animate:[{animate:["none",C,ge,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ge,pe]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:Je()}],"skew-x":[{"skew-x":Je()}],"skew-y":[{"skew-y":Je()}],transform:[{transform:[ge,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:at()}],"translate-x":[{"translate-x":at()}],"translate-y":[{"translate-y":at()}],"translate-z":[{"translate-z":at()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge,pe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mbs":[{"scroll-mbs":Y()}],"scroll-mbe":[{"scroll-mbe":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pbs":[{"scroll-pbs":Y()}],"scroll-pbe":[{"scroll-pbe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge,pe]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[_e,jl,fr,Tv]}],stroke:[{stroke:["none",...N()]}],"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"]}},eC=OT(JT);function J(...t){return eC(uy(t))}function tC(t){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}const nC=t=>{switch(t){case"success":return oC;case"info":return sC;case"warning":return lC;case"error":return iC;default:return null}},aC=Array(12).fill(0),rC=({visible:t,className:r})=>re.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":t},re.createElement("div",{className:"sonner-spinner"},aC.map((o,s)=>re.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),oC=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.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"})),lC=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},re.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=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.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"})),iC=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),cC=re.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"},re.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),re.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),uC=()=>{const[t,r]=re.useState(document.hidden);return re.useEffect(()=>{const o=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),t};let nf=1;class dC{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{const o=this.subscribers.indexOf(r);this.subscribers.splice(o,1)}),this.publish=r=>{this.subscribers.forEach(o=>o(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var o;const{message:s,...c}=r,u=typeof r?.id=="number"||((o=r.id)==null?void 0:o.length)>0?r.id:nf++,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(o=>o({id:r,dismiss:!0})))):this.toasts.forEach(o=>{this.subscribers.forEach(s=>s({id:o.id,dismiss:!0}))}),r),this.message=(r,o)=>this.create({...o,message:r}),this.error=(r,o)=>this.create({...o,message:r,type:"error"}),this.success=(r,o)=>this.create({...o,type:"success",message:r}),this.info=(r,o)=>this.create({...o,type:"info",message:r}),this.warning=(r,o)=>this.create({...o,type:"warning",message:r}),this.loading=(r,o)=>this.create({...o,type:"loading",message:r}),this.promise=(r,o)=>{if(!o)return;let s;o.loading!==void 0&&(s=this.create({...o,promise:r,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));const c=Promise.resolve(r instanceof Function?r():r);let u=s!==void 0,m;const h=c.then(async p=>{if(m=["resolve",p],re.isValidElement(p))u=!1,this.create({id:s,type:"default",message:p});else if(mC(p)&&!p.ok){u=!1;const y=typeof o.error=="function"?await o.error(`HTTP error! status: ${p.status}`):o.error,S=typeof o.description=="function"?await o.description(`HTTP error! status: ${p.status}`):o.description,R=typeof y=="object"&&!re.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:S,...R})}else if(p instanceof Error){u=!1;const y=typeof o.error=="function"?await o.error(p):o.error,S=typeof o.description=="function"?await o.description(p):o.description,R=typeof y=="object"&&!re.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:S,...R})}else if(o.success!==void 0){u=!1;const y=typeof o.success=="function"?await o.success(p):o.success,S=typeof o.description=="function"?await o.description(p):o.description,R=typeof y=="object"&&!re.isValidElement(y)?y:{message:y};this.create({id:s,type:"success",description:S,...R})}}).catch(async p=>{if(m=["reject",p],o.error!==void 0){u=!1;const b=typeof o.error=="function"?await o.error(p):o.error,y=typeof o.description=="function"?await o.description(p):o.description,A=typeof b=="object"&&!re.isValidElement(b)?b:{message:b};this.create({id:s,type:"error",description:y,...A})}}).finally(()=>{u&&(this.dismiss(s),s=void 0),o.finally==null||o.finally.call(o)}),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,o)=>{const s=o?.id||nf++;return this.create({jsx:r(s),id:s,...o}),s},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Pt=new dC,fC=(t,r)=>{const o=r?.id||nf++;return Pt.addToast({title:t,...r,id:o}),o},mC=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",hC=fC,pC=()=>Pt.toasts,gC=()=>Pt.getActiveToasts(),Ce=Object.assign(hC,{success:Pt.success,info:Pt.info,warning:Pt.warning,error:Pt.error,custom:Pt.custom,message:Pt.message,promise:Pt.promise,dismiss:Pt.dismiss,loading:Pt.loading},{getHistory:pC,getToasts:gC});tC("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function ui(t){return t.label!==void 0}const vC=3,yC="24px",bC="16px",Av=4e3,xC=356,wC=14,SC=45,EC=200;function jn(...t){return t.filter(Boolean).join(" ")}function NC(t){const[r,o]=t.split("-"),s=[];return r&&s.push(r),o&&s.push(o),s}const TC=t=>{var r,o,s,c,u,m,h,g,p;const{invert:b,toast:y,unstyled:S,interacting:A,setHeights:R,visibleToasts:E,heights:T,index:k,toasts:C,expanded:O,removeToast:L,defaultRichColors:U,closeButton:G,style:I,cancelButtonStyle:Y,actionButtonStyle:ae,className:fe="",descriptionClassName:ce="",duration:ue,position:de,gap:ie,expandByDefault:le,classNames:j,icons:$,closeButtonAriaLabel:D="Close toast"}=t,[W,N]=re.useState(null),[V,ne]=re.useState(null),[X,F]=re.useState(!1),[ee,te]=re.useState(!1),[oe,se]=re.useState(!1),[xe,Re]=re.useState(!1),[Ne,Ae]=re.useState(!1),[Je,at]=re.useState(0),[dn,fn]=re.useState(0),lt=re.useRef(y.duration||ue||Av),Ia=re.useRef(null),ht=re.useRef(null),Nr=k===0,Ln=k+1<=E,st=y.type,mn=y.dismissible!==!1,Tr=y.className||"",sa=y.descriptionClassName||"",$t=re.useMemo(()=>T.findIndex(me=>me.toastId===y.id)||0,[T,y.id]),Ct=re.useMemo(()=>{var me;return(me=y.closeButton)!=null?me:G},[y.closeButton,G]),Mt=re.useMemo(()=>y.duration||ue||Av,[y.duration,ue]),We=re.useRef(0),Nn=re.useRef(0),Cr=re.useRef(0),Tn=re.useRef(null),[ia,ca]=de.split("-"),Jt=re.useMemo(()=>T.reduce((me,Ue,Qe)=>Qe>=$t?me:me+Ue.height,0),[T,$t]),Un=uC(),Bn=y.invert||b,ua=st==="loading";Nn.current=re.useMemo(()=>$t*ie+Jt,[$t,Jt]),re.useEffect(()=>{lt.current=Mt},[Mt]),re.useEffect(()=>{F(!0)},[]),re.useEffect(()=>{const me=ht.current;if(me){const Ue=me.getBoundingClientRect().height;return fn(Ue),R(Qe=>[{toastId:y.id,height:Ue,position:y.position},...Qe]),()=>R(Qe=>Qe.filter(pt=>pt.toastId!==y.id))}},[R,y.id]),re.useLayoutEffect(()=>{if(!X)return;const me=ht.current,Ue=me.style.height;me.style.height="auto";const Qe=me.getBoundingClientRect().height;me.style.height=Ue,fn(Qe),R(pt=>pt.find(gt=>gt.toastId===y.id)?pt.map(gt=>gt.toastId===y.id?{...gt,height:Qe}:gt):[{toastId:y.id,height:Qe,position:y.position},...pt])},[X,y.title,y.description,R,y.id,y.jsx,y.action,y.cancel]);const zt=re.useCallback(()=>{te(!0),at(Nn.current),R(me=>me.filter(Ue=>Ue.toastId!==y.id)),setTimeout(()=>{L(y)},EC)},[y,L,R,Nn]);re.useEffect(()=>{if(y.promise&&st==="loading"||y.duration===1/0||y.type==="loading")return;let me;return O||A||Un?(()=>{if(Cr.current<We.current){const pt=new Date().getTime()-We.current;lt.current=lt.current-pt}Cr.current=new Date().getTime()})():lt.current!==1/0&&(We.current=new Date().getTime(),me=setTimeout(()=>{y.onAutoClose==null||y.onAutoClose.call(y,y),zt()},lt.current)),()=>clearTimeout(me)},[O,A,y,st,Un,zt]),re.useEffect(()=>{y.delete&&(zt(),y.onDismiss==null||y.onDismiss.call(y,y))},[zt,y.delete]);function Ga(){var me;if($?.loading){var Ue;return re.createElement("div",{className:jn(j?.loader,y==null||(Ue=y.classNames)==null?void 0:Ue.loader,"sonner-loader"),"data-visible":st==="loading"},$.loading)}return re.createElement(rC,{className:jn(j?.loader,y==null||(me=y.classNames)==null?void 0:me.loader),visible:st==="loading"})}const Xa=y.icon||$?.[st]||nC(st);var be,Xe;return re.createElement("li",{tabIndex:0,ref:ht,className:jn(fe,Tr,j?.toast,y==null||(r=y.classNames)==null?void 0:r.toast,j?.default,j?.[st],y==null||(o=y.classNames)==null?void 0:o[st]),"data-sonner-toast":"","data-rich-colors":(be=y.richColors)!=null?be:U,"data-styled":!(y.jsx||y.unstyled||S),"data-mounted":X,"data-promise":!!y.promise,"data-swiped":Ne,"data-removed":ee,"data-visible":Ln,"data-y-position":ia,"data-x-position":ca,"data-index":k,"data-front":Nr,"data-swiping":oe,"data-dismissible":mn,"data-type":st,"data-invert":Bn,"data-swipe-out":xe,"data-swipe-direction":V,"data-expanded":!!(O||le&&X),"data-testid":y.testId,style:{"--index":k,"--toasts-before":k,"--z-index":C.length-k,"--offset":`${ee?Je:Nn.current}px`,"--initial-height":le?"auto":`${dn}px`,...I,...y.style},onDragEnd:()=>{se(!1),N(null),Tn.current=null},onPointerDown:me=>{me.button!==2&&(ua||!mn||(Ia.current=new Date,at(Nn.current),me.target.setPointerCapture(me.pointerId),me.target.tagName!=="BUTTON"&&(se(!0),Tn.current={x:me.clientX,y:me.clientY})))},onPointerUp:()=>{var me,Ue,Qe;if(xe||!mn)return;Tn.current=null;const pt=Number(((me=ht.current)==null?void 0:me.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Qa=Number(((Ue=ht.current)==null?void 0:Ue.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),gt=new Date().getTime()-((Qe=Ia.current)==null?void 0:Qe.getTime()),it=W==="x"?pt:Qa,ct=Math.abs(it)/gt;if(Math.abs(it)>=SC||ct>.11){at(Nn.current),y.onDismiss==null||y.onDismiss.call(y,y),ne(W==="x"?pt>0?"right":"left":Qa>0?"down":"up"),zt(),Re(!0);return}else{var Ke,xt;(Ke=ht.current)==null||Ke.style.setProperty("--swipe-amount-x","0px"),(xt=ht.current)==null||xt.style.setProperty("--swipe-amount-y","0px")}Ae(!1),se(!1),N(null)},onPointerMove:me=>{var Ue,Qe,pt;if(!Tn.current||!mn||((Ue=window.getSelection())==null?void 0:Ue.toString().length)>0)return;const gt=me.clientY-Tn.current.y,it=me.clientX-Tn.current.x;var ct;const Ke=(ct=t.swipeDirections)!=null?ct:NC(de);!W&&(Math.abs(it)>1||Math.abs(gt)>1)&&N(Math.abs(it)>Math.abs(gt)?"x":"y");let xt={x:0,y:0};const Rr=Hn=>1/(1.5+Math.abs(Hn)/20);if(W==="y"){if(Ke.includes("top")||Ke.includes("bottom"))if(Ke.includes("top")&><0||Ke.includes("bottom")&>>0)xt.y=gt;else{const Hn=gt*Rr(gt);xt.y=Math.abs(Hn)<Math.abs(gt)?Hn:gt}}else if(W==="x"&&(Ke.includes("left")||Ke.includes("right")))if(Ke.includes("left")&&it<0||Ke.includes("right")&&it>0)xt.x=it;else{const Hn=it*Rr(it);xt.x=Math.abs(Hn)<Math.abs(it)?Hn:it}(Math.abs(xt.x)>0||Math.abs(xt.y)>0)&&Ae(!0),(Qe=ht.current)==null||Qe.style.setProperty("--swipe-amount-x",`${xt.x}px`),(pt=ht.current)==null||pt.style.setProperty("--swipe-amount-y",`${xt.y}px`)}},Ct&&!y.jsx&&st!=="loading"?re.createElement("button",{"aria-label":D,"data-disabled":ua,"data-close-button":!0,onClick:ua||!mn?()=>{}:()=>{zt(),y.onDismiss==null||y.onDismiss.call(y,y)},className:jn(j?.closeButton,y==null||(s=y.classNames)==null?void 0:s.closeButton)},(Xe=$?.close)!=null?Xe:cC):null,(st||y.icon||y.promise)&&y.icon!==null&&($?.[st]!==null||y.icon)?re.createElement("div",{"data-icon":"",className:jn(j?.icon,y==null||(c=y.classNames)==null?void 0:c.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||Ga():null,y.type!=="loading"?Xa:null):null,re.createElement("div",{"data-content":"",className:jn(j?.content,y==null||(u=y.classNames)==null?void 0:u.content)},re.createElement("div",{"data-title":"",className:jn(j?.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?re.createElement("div",{"data-description":"",className:jn(ce,sa,j?.description,y==null||(h=y.classNames)==null?void 0:h.description)},typeof y.description=="function"?y.description():y.description):null),re.isValidElement(y.cancel)?y.cancel:y.cancel&&ui(y.cancel)?re.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||Y,onClick:me=>{ui(y.cancel)&&mn&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,me),zt())},className:jn(j?.cancelButton,y==null||(g=y.classNames)==null?void 0:g.cancelButton)},y.cancel.label):null,re.isValidElement(y.action)?y.action:y.action&&ui(y.action)?re.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||ae,onClick:me=>{ui(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,me),!me.defaultPrevented&&zt())},className:jn(j?.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 CC(t,r){const o={};return[t,r].forEach((s,c)=>{const u=c===1,m=u?"--mobile-offset":"--offset",h=u?bC:yC;function g(p){["top","right","bottom","left"].forEach(b=>{o[`${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?o[`${m}-${p}`]=h:o[`${m}-${p}`]=typeof s[p]=="number"?`${s[p]}px`:s[p]}):g(h)}),o}const RC=re.forwardRef(function(r,o){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:A,duration:R,style:E,visibleToasts:T=vC,toastOptions:k,dir:C=kv(),gap:O=wC,icons:L,containerAriaLabel:U="Notifications"}=r,[G,I]=re.useState([]),Y=re.useMemo(()=>s?G.filter(X=>X.toasterId===s):G.filter(X=>!X.toasterId),[G,s]),ae=re.useMemo(()=>Array.from(new Set([u].concat(Y.filter(X=>X.position).map(X=>X.position)))),[Y,u]),[fe,ce]=re.useState([]),[ue,de]=re.useState(!1),[ie,le]=re.useState(!1),[j,$]=re.useState(S!=="system"?S:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),D=re.useRef(null),W=m.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=re.useRef(null),V=re.useRef(!1),ne=re.useCallback(X=>{I(F=>{var ee;return(ee=F.find(te=>te.id===X.id))!=null&&ee.delete||Pt.dismiss(X.id),F.filter(({id:te})=>te!==X.id)})},[]);return re.useEffect(()=>Pt.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{I(F=>F.map(ee=>ee.id===X.id?{...ee,delete:!0}:ee))});return}setTimeout(()=>{Q0.flushSync(()=>{I(F=>{const ee=F.findIndex(te=>te.id===X.id);return ee!==-1?[...F.slice(0,ee),{...F[ee],...X},...F.slice(ee+1)]:[X,...F]})})})}),[G]),re.useEffect(()=>{if(S!=="system"){$(S);return}if(S==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:F})=>{$(F?"dark":"light")})}catch{X.addListener(({matches:ee})=>{try{$(ee?"dark":"light")}catch(te){console.error(te)}})}},[S]),re.useEffect(()=>{G.length<=1&&de(!1)},[G]),re.useEffect(()=>{const X=F=>{var ee;if(m.every(se=>F[se]||F.code===se)){var oe;de(!0),(oe=D.current)==null||oe.focus()}F.code==="Escape"&&(document.activeElement===D.current||(ee=D.current)!=null&&ee.contains(document.activeElement))&&de(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[m]),re.useEffect(()=>{if(D.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,V.current=!1)}},[D.current]),re.createElement("section",{ref:o,"aria-label":`${U} ${W}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ae.map((X,F)=>{var ee;const[te,oe]=X.split("-");return Y.length?re.createElement("ol",{key:X,dir:C==="auto"?kv():C,tabIndex:-1,ref:D,className:p,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":te,"data-x-position":oe,style:{"--front-toast-height":`${((ee=fe[0])==null?void 0:ee.height)||0}px`,"--width":`${xC}px`,"--gap":`${O}px`,...E,...CC(b,y)},onBlur:se=>{V.current&&!se.currentTarget.contains(se.relatedTarget)&&(V.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:se=>{se.target instanceof HTMLElement&&se.target.dataset.dismissible==="false"||V.current||(V.current=!0,N.current=se.relatedTarget)},onMouseEnter:()=>de(!0),onMouseMove:()=>de(!0),onMouseLeave:()=>{ie||de(!1)},onDragEnd:()=>de(!1),onPointerDown:se=>{se.target instanceof HTMLElement&&se.target.dataset.dismissible==="false"||le(!0)},onPointerUp:()=>le(!1)},Y.filter(se=>!se.position&&F===0||se.position===X).map((se,xe)=>{var Re,Ne;return re.createElement(TC,{key:se.id,icons:L,index:xe,toast:se,defaultRichColors:A,duration:(Re=k?.duration)!=null?Re:R,className:k?.className,descriptionClassName:k?.descriptionClassName,invert:c,visibleToasts:T,closeButton:(Ne=k?.closeButton)!=null?Ne:g,interacting:ie,position:X,style:k?.style,unstyled:k?.unstyled,classNames:k?.classNames,cancelButtonStyle:k?.cancelButtonStyle,actionButtonStyle:k?.actionButtonStyle,closeButtonAriaLabel:k?.closeButtonAriaLabel,removeToast:ne,toasts:Y.filter(Ae=>Ae.position==se.position),heights:fe.filter(Ae=>Ae.position==se.position),setHeights:ce,expandByDefault:h,gap:O,expanded:ue,swipeDirections:r.swipeDirections})})):null}))}),_v=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,jv=uy,Ty=(t,r)=>o=>{var s;if(r?.variants==null)return jv(t,o?.class,o?.className);const{variants:c,defaultVariants:u}=r,m=Object.keys(c).map(p=>{const b=o?.[p],y=u?.[p];if(b===null)return null;const S=_v(b)||_v(y);return c[p][S]}),h=o&&Object.entries(o).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,...A}=b;return Object.entries(A).every(R=>{let[E,T]=R;return Array.isArray(T)?T.includes({...u,...h}[E]):{...u,...h}[E]===T})?[...p,y,S]:p},[]);return jv(t,m,g,o?.class,o?.className)},AC=Ty("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 qa({className:t,variant:r,...o}){return f.jsx("div",{className:J(AC({variant:r}),t),...o})}const Bl=v.forwardRef(({className:t,...r},o)=>f.jsx("div",{ref:o,className:J("rounded-sm border border-border/70 bg-card/80 text-card-foreground shadow-none",t),...r}));Bl.displayName="Card";const Hl=v.forwardRef(({className:t,...r},o)=>f.jsx("div",{ref:o,className:J("flex flex-col space-y-1 p-3",t),...r}));Hl.displayName="CardHeader";const Pl=v.forwardRef(({className:t,...r},o)=>f.jsx("div",{ref:o,className:J("text-[12px] font-semibold leading-none tracking-tight",t),...r}));Pl.displayName="CardTitle";const $l=v.forwardRef(({className:t,...r},o)=>f.jsx("div",{ref:o,className:J("text-[10px] text-muted-foreground",t),...r}));$l.displayName="CardDescription";const ql=v.forwardRef(({className:t,...r},o)=>f.jsx("div",{ref:o,className:J("p-3 pt-0",t),...r}));ql.displayName="CardContent";const kC=v.forwardRef(({className:t,...r},o)=>f.jsx("div",{ref:o,className:J("flex items-center p-3 pt-0",t),...r}));kC.displayName="CardFooter";function Ov(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}function $f(...t){return r=>{let o=!1;const s=t.map(c=>{const u=Ov(c,r);return!o&&typeof u=="function"&&(o=!0),u});if(o)return()=>{for(let c=0;c<s.length;c++){const u=s[c];typeof u=="function"?u():Ov(t[c],null)}}}}function Fe(...t){return v.useCallback($f(...t),t)}var _C=Symbol.for("react.lazy"),Mi=Tf[" use ".trim().toString()];function jC(t){return typeof t=="object"&&t!==null&&"then"in t}function Cy(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===_C&&"_payload"in t&&jC(t._payload)}function OC(t){const r=MC(t),o=v.forwardRef((s,c)=>{let{children:u,...m}=s;Cy(u)&&typeof Mi=="function"&&(u=Mi(u._payload));const h=v.Children.toArray(u),g=h.find(LC);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 o.displayName=`${t}.Slot`,o}var DC=OC("Slot");function MC(t){const r=v.forwardRef((o,s)=>{let{children:c,...u}=o;if(Cy(c)&&typeof Mi=="function"&&(c=Mi(c._payload)),v.isValidElement(c)){const m=BC(c),h=UC(u,c.props);return c.type!==v.Fragment&&(h.ref=s?$f(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 zC=Symbol("radix.slottable");function LC(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===zC}function UC(t,r){const o={...r};for(const s in r){const c=t[s],u=r[s];/^on[A-Z]/.test(s)?c&&u?o[s]=(...h)=>{const g=u(...h);return c(...h),g}:c&&(o[s]=c):s==="style"?o[s]={...c,...u}:s==="className"&&(o[s]=[c,u].filter(Boolean).join(" "))}return{...t,...o}}function BC(t){let r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?t.ref:(r=Object.getOwnPropertyDescriptor(t,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}const qf=Ty("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-sm border-0 text-[11px] font-semibold shadow-none transition-colors duration-150 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 active:bg-muted/70 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"bg-muted/55 text-foreground hover:bg-muted/75 hover:text-foreground",secondary:"bg-muted/55 text-foreground hover:bg-muted/75",ghost:"bg-transparent text-muted-foreground hover:bg-muted/55 hover:text-foreground",link:"bg-transparent 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-8 rounded-sm px-4 text-[11px]",icon:"h-8 w-8 rounded-sm"}},defaultVariants:{variant:"default",size:"default"}}),Tt=v.forwardRef(({className:t,variant:r,size:o,asChild:s=!1,...c},u)=>{const m=s?DC:"button";return f.jsx(m,{className:J(qf({variant:r,size:o,className:t})),ref:u,...c})});Tt.displayName="Button";async function HC(t,r={}){try{await ve("/telemetry/events",{method:"POST",body:JSON.stringify({name:`feature.${t}`,appType:"browser",dimensions:r})})}catch{}}function Ie(t,r,{checkForDefaultPrevented:o=!0}={}){return function(c){if(t?.(c),o===!1||!c.defaultPrevented)return r?.(c)}}function PC(t,r){const o=v.createContext(r),s=u=>{const{children:m,...h}=u,g=v.useMemo(()=>h,Object.values(h));return f.jsx(o.Provider,{value:g,children:m})};s.displayName=t+"Provider";function c(u){const m=v.useContext(o);if(m)return m;if(r!==void 0)return r;throw new Error(`\`${u}\` must be used within \`${t}\``)}return[s,c]}function ko(t,r=[]){let o=[];function s(u,m){const h=v.createContext(m),g=o.length;o=[...o,m];const p=y=>{const{scope:S,children:A,...R}=y,E=S?.[t]?.[g]||h,T=v.useMemo(()=>R,Object.values(R));return f.jsx(E.Provider,{value:T,children:A})};p.displayName=u+"Provider";function b(y,S){const A=S?.[t]?.[g]||h,R=v.useContext(A);if(R)return R;if(m!==void 0)return m;throw new Error(`\`${y}\` must be used within \`${u}\``)}return[p,b]}const c=()=>{const u=o.map(m=>v.createContext(m));return function(h){const g=h?.[t]||u;return v.useMemo(()=>({[`__scope${t}`]:{...h,[t]:g}}),[h,g])}};return c.scopeName=t,[s,$C(c,...r)]}function $C(...t){const r=t[0];if(t.length===1)return r;const o=()=>{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 o.scopeName=r.scopeName,o}var Ot=globalThis?.document?v.useLayoutEffect:()=>{},qC=Tf[" useId ".trim().toString()]||(()=>{}),VC=0;function xo(t){const[r,o]=v.useState(qC());return Ot(()=>{o(s=>s??String(VC++))},[t]),r?`radix-${r}`:""}var YC=Tf[" useInsertionEffect ".trim().toString()]||Ot;function zi({prop:t,defaultProp:r,onChange:o=()=>{},caller:s}){const[c,u,m]=IC({defaultProp:r,onChange:o}),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=>{if(h){const y=GC(b)?b(t):b;y!==t&&m.current?.(y)}else u(b)},[h,t,u,m]);return[g,p]}function IC({defaultProp:t,onChange:r}){const[o,s]=v.useState(t),c=v.useRef(o),u=v.useRef(r);return YC(()=>{u.current=r},[r]),v.useEffect(()=>{c.current!==o&&(u.current?.(o),c.current=o)},[o,c]),[o,s,u]}function GC(t){return typeof t=="function"}function Vl(t){const r=XC(t),o=v.forwardRef((s,c)=>{const{children:u,...m}=s,h=v.Children.toArray(u),g=h.find(KC);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 o.displayName=`${t}.Slot`,o}function XC(t){const r=v.forwardRef((o,s)=>{const{children:c,...u}=o;if(v.isValidElement(c)){const m=WC(c),h=ZC(u,c.props);return c.type!==v.Fragment&&(h.ref=s?$f(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 Ry=Symbol("radix.slottable");function QC(t){const r=({children:o})=>f.jsx(f.Fragment,{children:o});return r.displayName=`${t}.Slottable`,r.__radixId=Ry,r}function KC(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Ry}function ZC(t,r){const o={...r};for(const s in r){const c=t[s],u=r[s];/^on[A-Z]/.test(s)?c&&u?o[s]=(...h)=>{const g=u(...h);return c(...h),g}:c&&(o[s]=c):s==="style"?o[s]={...c,...u}:s==="className"&&(o[s]=[c,u].filter(Boolean).join(" "))}return{...t,...o}}function WC(t){let r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?t.ref:(r=Object.getOwnPropertyDescriptor(t,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}var FC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$e=FC.reduce((t,r)=>{const o=Vl(`Primitive.${r}`),s=v.forwardRef((c,u)=>{const{asChild:m,...h}=c,g=m?o: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 JC(t,r){t&&Xl.flushSync(()=>t.dispatchEvent(r))}function vr(t){const r=v.useRef(t);return v.useEffect(()=>{r.current=t}),v.useMemo(()=>(...o)=>r.current?.(...o),[])}function eR(t,r=globalThis?.document){const o=vr(t);v.useEffect(()=>{const s=c=>{c.key==="Escape"&&o(c)};return r.addEventListener("keydown",s,{capture:!0}),()=>r.removeEventListener("keydown",s,{capture:!0})},[o,r])}var tR="DismissableLayer",af="dismissableLayer.update",nR="dismissableLayer.pointerDownOutside",aR="dismissableLayer.focusOutside",Dv,Ay=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vf=v.forwardRef((t,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:m,onDismiss:h,...g}=t,p=v.useContext(Ay),[b,y]=v.useState(null),S=b?.ownerDocument??globalThis?.document,[,A]=v.useState({}),R=Fe(r,I=>y(I)),E=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),k=E.indexOf(T),C=b?E.indexOf(b):-1,O=p.layersWithOutsidePointerEventsDisabled.size>0,L=C>=k,U=lR(I=>{const Y=I.target,ae=[...p.branches].some(fe=>fe.contains(Y));!L||ae||(c?.(I),m?.(I),I.defaultPrevented||h?.())},S),G=sR(I=>{const Y=I.target;[...p.branches].some(fe=>fe.contains(Y))||(u?.(I),m?.(I),I.defaultPrevented||h?.())},S);return eR(I=>{C===p.layers.size-1&&(s?.(I),!I.defaultPrevented&&h&&(I.preventDefault(),h()))},S),v.useEffect(()=>{if(b)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Dv=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(b)),p.layers.add(b),Mv(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=Dv)}},[b,S,o,p]),v.useEffect(()=>()=>{b&&(p.layers.delete(b),p.layersWithOutsidePointerEventsDisabled.delete(b),Mv())},[b,p]),v.useEffect(()=>{const I=()=>A({});return document.addEventListener(af,I),()=>document.removeEventListener(af,I)},[]),f.jsx($e.div,{...g,ref:R,style:{pointerEvents:O?L?"auto":"none":void 0,...t.style},onFocusCapture:Ie(t.onFocusCapture,G.onFocusCapture),onBlurCapture:Ie(t.onBlurCapture,G.onBlurCapture),onPointerDownCapture:Ie(t.onPointerDownCapture,U.onPointerDownCapture)})});Vf.displayName=tR;var rR="DismissableLayerBranch",oR=v.forwardRef((t,r)=>{const o=v.useContext(Ay),s=v.useRef(null),c=Fe(r,s);return v.useEffect(()=>{const u=s.current;if(u)return o.branches.add(u),()=>{o.branches.delete(u)}},[o.branches]),f.jsx($e.div,{...t,ref:c})});oR.displayName=rR;function lR(t,r=globalThis?.document){const o=vr(t),s=v.useRef(!1),c=v.useRef(()=>{});return v.useEffect(()=>{const u=h=>{if(h.target&&!s.current){let g=function(){ky(nR,o,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,o]),{onPointerDownCapture:()=>s.current=!0}}function sR(t,r=globalThis?.document){const o=vr(t),s=v.useRef(!1);return v.useEffect(()=>{const c=u=>{u.target&&!s.current&&ky(aR,o,{originalEvent:u},{discrete:!1})};return r.addEventListener("focusin",c),()=>r.removeEventListener("focusin",c)},[r,o]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Mv(){const t=new CustomEvent(af);document.dispatchEvent(t)}function ky(t,r,o,{discrete:s}){const c=o.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:o});r&&c.addEventListener(t,r,{once:!0}),s?JC(c,u):c.dispatchEvent(u)}var zd="focusScope.autoFocusOnMount",Ld="focusScope.autoFocusOnUnmount",zv={bubbles:!1,cancelable:!0},iR="FocusScope",Yf=v.forwardRef((t,r)=>{const{loop:o=!1,trapped:s=!1,onMountAutoFocus:c,onUnmountAutoFocus:u,...m}=t,[h,g]=v.useState(null),p=vr(c),b=vr(u),y=v.useRef(null),S=Fe(r,E=>g(E)),A=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(s){let E=function(O){if(A.paused||!h)return;const L=O.target;h.contains(L)?y.current=L:za(y.current,{select:!0})},T=function(O){if(A.paused||!h)return;const L=O.relatedTarget;L!==null&&(h.contains(L)||za(y.current,{select:!0}))},k=function(O){if(document.activeElement===document.body)for(const U of O)U.removedNodes.length>0&&za(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",T);const C=new MutationObserver(k);return h&&C.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",T),C.disconnect()}}},[s,h,A.paused]),v.useEffect(()=>{if(h){Uv.add(A);const E=document.activeElement;if(!h.contains(E)){const k=new CustomEvent(zd,zv);h.addEventListener(zd,p),h.dispatchEvent(k),k.defaultPrevented||(cR(hR(_y(h)),{select:!0}),document.activeElement===E&&za(h))}return()=>{h.removeEventListener(zd,p),setTimeout(()=>{const k=new CustomEvent(Ld,zv);h.addEventListener(Ld,b),h.dispatchEvent(k),k.defaultPrevented||za(E??document.body,{select:!0}),h.removeEventListener(Ld,b),Uv.remove(A)},0)}}},[h,p,b,A]);const R=v.useCallback(E=>{if(!o&&!s||A.paused)return;const T=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,k=document.activeElement;if(T&&k){const C=E.currentTarget,[O,L]=uR(C);O&&L?!E.shiftKey&&k===L?(E.preventDefault(),o&&za(O,{select:!0})):E.shiftKey&&k===O&&(E.preventDefault(),o&&za(L,{select:!0})):k===C&&E.preventDefault()}},[o,s,A.paused]);return f.jsx($e.div,{tabIndex:-1,...m,ref:S,onKeyDown:R})});Yf.displayName=iR;function cR(t,{select:r=!1}={}){const o=document.activeElement;for(const s of t)if(za(s,{select:r}),document.activeElement!==o)return}function uR(t){const r=_y(t),o=Lv(r,t),s=Lv(r.reverse(),t);return[o,s]}function _y(t){const r=[],o=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(;o.nextNode();)r.push(o.currentNode);return r}function Lv(t,r){for(const o of t)if(!dR(o,{upTo:r}))return o}function dR(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 fR(t){return t instanceof HTMLInputElement&&"select"in t}function za(t,{select:r=!1}={}){if(t&&t.focus){const o=document.activeElement;t.focus({preventScroll:!0}),t!==o&&fR(t)&&r&&t.select()}}var Uv=mR();function mR(){let t=[];return{add(r){const o=t[0];r!==o&&o?.pause(),t=Bv(t,r),t.unshift(r)},remove(r){t=Bv(t,r),t[0]?.resume()}}}function Bv(t,r){const o=[...t],s=o.indexOf(r);return s!==-1&&o.splice(s,1),o}function hR(t){return t.filter(r=>r.tagName!=="A")}var pR="Portal",If=v.forwardRef((t,r)=>{const{container:o,...s}=t,[c,u]=v.useState(!1);Ot(()=>u(!0),[]);const m=o||c&&globalThis?.document?.body;return m?Q0.createPortal(f.jsx($e.div,{...s,ref:r}),m):null});If.displayName=pR;function gR(t,r){return v.useReducer((o,s)=>r[o][s]??o,t)}var Ql=t=>{const{present:r,children:o}=t,s=vR(r),c=typeof o=="function"?o({present:s.isPresent}):v.Children.only(o),u=Fe(s.ref,yR(c));return typeof o=="function"||s.isPresent?v.cloneElement(c,{ref:u}):null};Ql.displayName="Presence";function vR(t){const[r,o]=v.useState(),s=v.useRef(null),c=v.useRef(t),u=v.useRef("none"),m=t?"mounted":"unmounted",[h,g]=gR(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=di(s.current);u.current=h==="mounted"?p:"none"},[h]),Ot(()=>{const p=s.current,b=c.current;if(b!==t){const S=u.current,A=di(p);t?g("MOUNT"):A==="none"||p?.display==="none"?g("UNMOUNT"):g(b&&S!==A?"ANIMATION_OUT":"UNMOUNT"),c.current=t}},[t,g]),Ot(()=>{if(r){let p;const b=r.ownerDocument.defaultView??window,y=A=>{const E=di(s.current).includes(CSS.escape(A.animationName));if(A.target===r&&E&&(g("ANIMATION_END"),!c.current)){const T=r.style.animationFillMode;r.style.animationFillMode="forwards",p=b.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=T)})}},S=A=>{A.target===r&&(u.current=di(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,o(p)},[])}}function di(t){return t?.animationName||"none"}function yR(t){let r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?t.ref:(r=Object.getOwnPropertyDescriptor(t,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}var Ud=0;function jy(){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()),Ud++,()=>{Ud===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Ud--}},[])}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 On=function(){return On=Object.assign||function(r){for(var o,s=1,c=arguments.length;s<c;s++){o=arguments[s];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(r[u]=o[u])}return r},On.apply(this,arguments)};function Oy(t,r){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&r.indexOf(s)<0&&(o[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])&&(o[s[c]]=t[s[c]]);return o}function bR(t,r,o){if(o||arguments.length===2)for(var s=0,c=r.length,u;s<c;s++)(u||!(s in r))&&(u||(u=Array.prototype.slice.call(r,0,s)),u[s]=r[s]);return t.concat(u||Array.prototype.slice.call(r))}var wi="right-scroll-bar-position",Si="width-before-scroll-bar",xR="with-scroll-bars-hidden",wR="--removed-body-scroll-bar-size";function Bd(t,r){return typeof t=="function"?t(r):t&&(t.current=r),t}function SR(t,r){var o=v.useState(function(){return{value:t,callback:r,facade:{get current(){return o.value},set current(s){var c=o.value;c!==s&&(o.value=s,o.callback(s,c))}}}})[0];return o.callback=r,o.facade}var ER=typeof window<"u"?v.useLayoutEffect:v.useEffect,Pv=new WeakMap;function NR(t,r){var o=SR(null,function(s){return t.forEach(function(c){return Bd(c,s)})});return ER(function(){var s=Pv.get(o);if(s){var c=new Set(s),u=new Set(t),m=o.current;c.forEach(function(h){u.has(h)||Bd(h,null)}),u.forEach(function(h){c.has(h)||Bd(h,m)})}Pv.set(o,t)},[t]),o}function TR(t){return t}function CR(t,r){r===void 0&&(r=TR);var o=[],s=!1,c={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:t},useMedium:function(u){var m=r(u,s);return o.push(m),function(){o=o.filter(function(h){return h!==m})}},assignSyncMedium:function(u){for(s=!0;o.length;){var m=o;o=[],m.forEach(u)}o={push:function(h){return u(h)},filter:function(){return o}}},assignMedium:function(u){s=!0;var m=[];if(o.length){var h=o;o=[],h.forEach(u),m=o}var g=function(){var b=m;m=[],b.forEach(u)},p=function(){return Promise.resolve().then(g)};p(),o={push:function(b){m.push(b),p()},filter:function(b){return m=m.filter(b),o}}}};return c}function RR(t){t===void 0&&(t={});var r=CR(null);return r.options=On({async:!0,ssr:!1},t),r}var Dy=function(t){var r=t.sideCar,o=Oy(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,On({},o))};Dy.isSideCarExport=!0;function AR(t,r){return t.useMedium(r),Dy}var My=RR(),Hd=function(){},ac=v.forwardRef(function(t,r){var o=v.useRef(null),s=v.useState({onScrollCapture:Hd,onWheelCapture:Hd,onTouchMoveCapture:Hd}),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,A=t.noRelative,R=t.noIsolation,E=t.inert,T=t.allowPinchZoom,k=t.as,C=k===void 0?"div":k,O=t.gapMode,L=Oy(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),U=S,G=NR([o,r]),I=On(On({},L),c);return v.createElement(v.Fragment,null,b&&v.createElement(U,{sideCar:My,removeScrollBar:p,shards:y,noRelative:A,noIsolation:R,inert:E,setCallbacks:u,allowPinchZoom:!!T,lockRef:o,gapMode:O}),m?v.cloneElement(v.Children.only(h),On(On({},I),{ref:G})):v.createElement(C,On({},I,{className:g,ref:G}),h))});ac.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ac.classNames={fullWidth:Si,zeroRight:wi};var kR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _R(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var r=kR();return r&&t.setAttribute("nonce",r),t}function jR(t,r){t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}function OR(t){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(t)}var DR=function(){var t=0,r=null;return{add:function(o){t==0&&(r=_R())&&(jR(r,o),OR(r)),t++},remove:function(){t--,!t&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},MR=function(){var t=DR();return function(r,o){v.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&o])}},zy=function(){var t=MR(),r=function(o){var s=o.styles,c=o.dynamic;return t(s,c),null};return r},zR={left:0,top:0,right:0,gap:0},Pd=function(t){return parseInt(t||"",10)||0},LR=function(t){var r=window.getComputedStyle(document.body),o=r[t==="padding"?"paddingLeft":"marginLeft"],s=r[t==="padding"?"paddingTop":"marginTop"],c=r[t==="padding"?"paddingRight":"marginRight"];return[Pd(o),Pd(s),Pd(c)]},UR=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return zR;var r=LR(t),o=document.documentElement.clientWidth,s=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,s-o+r[2]-r[0])}},BR=zy(),wo="data-scroll-locked",HR=function(t,r,o,s){var c=t.left,u=t.top,m=t.right,h=t.gap;return o===void 0&&(o="margin"),`
|
|
292
|
-
.`.concat(xR,` {
|
|
293
|
-
overflow: hidden `).concat(s,`;
|
|
294
|
-
padding-right: `).concat(h,"px ").concat(s,`;
|
|
295
|
-
}
|
|
296
|
-
body[`).concat(wo,`] {
|
|
297
|
-
overflow: hidden `).concat(s,`;
|
|
298
|
-
overscroll-behavior: contain;
|
|
299
|
-
`).concat([r&&"position: relative ".concat(s,";"),o==="margin"&&`
|
|
300
|
-
padding-left: `.concat(c,`px;
|
|
301
|
-
padding-top: `).concat(u,`px;
|
|
302
|
-
padding-right: `).concat(m,`px;
|
|
303
|
-
margin-left:0;
|
|
304
|
-
margin-top:0;
|
|
305
|
-
margin-right: `).concat(h,"px ").concat(s,`;
|
|
306
|
-
`),o==="padding"&&"padding-right: ".concat(h,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.`).concat(wi,` {
|
|
310
|
-
right: `).concat(h,"px ").concat(s,`;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
.`).concat(Si,` {
|
|
314
|
-
margin-right: `).concat(h,"px ").concat(s,`;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
.`).concat(wi," .").concat(wi,` {
|
|
318
|
-
right: 0 `).concat(s,`;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
.`).concat(Si," .").concat(Si,` {
|
|
322
|
-
margin-right: 0 `).concat(s,`;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
body[`).concat(wo,`] {
|
|
326
|
-
`).concat(wR,": ").concat(h,`px;
|
|
327
|
-
}
|
|
328
|
-
`)},$v=function(){var t=parseInt(document.body.getAttribute(wo)||"0",10);return isFinite(t)?t:0},PR=function(){v.useEffect(function(){return document.body.setAttribute(wo,($v()+1).toString()),function(){var t=$v()-1;t<=0?document.body.removeAttribute(wo):document.body.setAttribute(wo,t.toString())}},[])},$R=function(t){var r=t.noRelative,o=t.noImportant,s=t.gapMode,c=s===void 0?"margin":s;PR();var u=v.useMemo(function(){return UR(c)},[c]);return v.createElement(BR,{styles:HR(u,!r,c,o?"":"!important")})},rf=!1;if(typeof window<"u")try{var fi=Object.defineProperty({},"passive",{get:function(){return rf=!0,!0}});window.addEventListener("test",fi,fi),window.removeEventListener("test",fi,fi)}catch{rf=!1}var mo=rf?{passive:!1}:!1,qR=function(t){return t.tagName==="TEXTAREA"},Ly=function(t,r){if(!(t instanceof Element))return!1;var o=window.getComputedStyle(t);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!qR(t)&&o[r]==="visible")},VR=function(t){return Ly(t,"overflowY")},YR=function(t){return Ly(t,"overflowX")},qv=function(t,r){var o=r.ownerDocument,s=r;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var c=Uy(t,s);if(c){var u=By(t,s),m=u[1],h=u[2];if(m>h)return!0}s=s.parentNode}while(s&&s!==o.body);return!1},IR=function(t){var r=t.scrollTop,o=t.scrollHeight,s=t.clientHeight;return[r,o,s]},GR=function(t){var r=t.scrollLeft,o=t.scrollWidth,s=t.clientWidth;return[r,o,s]},Uy=function(t,r){return t==="v"?VR(r):YR(r)},By=function(t,r){return t==="v"?IR(r):GR(r)},XR=function(t,r){return t==="h"&&r==="rtl"?-1:1},QR=function(t,r,o,s,c){var u=XR(t,window.getComputedStyle(r).direction),m=u*s,h=o.target,g=r.contains(h),p=!1,b=m>0,y=0,S=0;do{if(!h)break;var A=By(t,h),R=A[0],E=A[1],T=A[2],k=E-T-u*R;(R||k)&&Uy(t,h)&&(y+=k,S+=R);var C=h.parentNode;h=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}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},mi=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},KR=function(t,r){return t[0]===r[0]&&t[1]===r[1]},ZR=function(t){return`
|
|
329
|
-
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
330
|
-
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
331
|
-
`)},WR=0,ho=[];function FR(t){var r=v.useRef([]),o=v.useRef([0,0]),s=v.useRef(),c=v.useState(WR++)[0],u=v.useState(zy)[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 E=bR([t.lockRef.current],(t.shards||[]).map(Yv),!0).filter(Boolean);return E.forEach(function(T){return T.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),E.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(c))})}}},[t.inert,t.lockRef.current,t.shards]);var h=v.useCallback(function(E,T){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!m.current.allowPinchZoom;var k=mi(E),C=o.current,O="deltaX"in E?E.deltaX:C[0]-k[0],L="deltaY"in E?E.deltaY:C[1]-k[1],U,G=E.target,I=Math.abs(O)>Math.abs(L)?"h":"v";if("touches"in E&&I==="h"&&G.type==="range")return!1;var Y=window.getSelection(),ae=Y&&Y.anchorNode,fe=ae?ae===G||ae.contains(G):!1;if(fe)return!1;var ce=qv(I,G);if(!ce)return!0;if(ce?U=I:(U=I==="v"?"h":"v",ce=qv(I,G)),!ce)return!1;if(!s.current&&"changedTouches"in E&&(O||L)&&(s.current=U),!U)return!0;var ue=s.current||U;return QR(ue,T,E,ue==="h"?O:L)},[]),g=v.useCallback(function(E){var T=E;if(!(!ho.length||ho[ho.length-1]!==u)){var k="deltaY"in T?Vv(T):mi(T),C=r.current.filter(function(U){return U.name===T.type&&(U.target===T.target||T.target===U.shadowParent)&&KR(U.delta,k)})[0];if(C&&C.should){T.cancelable&&T.preventDefault();return}if(!C){var O=(m.current.shards||[]).map(Yv).filter(Boolean).filter(function(U){return U.contains(T.target)}),L=O.length>0?h(T,O[0]):!m.current.noIsolation;L&&T.cancelable&&T.preventDefault()}}},[]),p=v.useCallback(function(E,T,k,C){var O={name:E,delta:T,target:k,should:C,shadowParent:JR(k)};r.current.push(O),setTimeout(function(){r.current=r.current.filter(function(L){return L!==O})},1)},[]),b=v.useCallback(function(E){o.current=mi(E),s.current=void 0},[]),y=v.useCallback(function(E){p(E.type,Vv(E),E.target,h(E,t.lockRef.current))},[]),S=v.useCallback(function(E){p(E.type,mi(E),E.target,h(E,t.lockRef.current))},[]);v.useEffect(function(){return ho.push(u),t.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:S}),document.addEventListener("wheel",g,mo),document.addEventListener("touchmove",g,mo),document.addEventListener("touchstart",b,mo),function(){ho=ho.filter(function(E){return E!==u}),document.removeEventListener("wheel",g,mo),document.removeEventListener("touchmove",g,mo),document.removeEventListener("touchstart",b,mo)}},[]);var A=t.removeScrollBar,R=t.inert;return v.createElement(v.Fragment,null,R?v.createElement(u,{styles:ZR(c)}):null,A?v.createElement($R,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function JR(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const eA=AR(My,FR);var Gf=v.forwardRef(function(t,r){return v.createElement(ac,On({},t,{ref:r,sideCar:eA}))});Gf.classNames=ac.classNames;var tA=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},po=new WeakMap,hi=new WeakMap,pi={},$d=0,Hy=function(t){return t&&(t.host||Hy(t.parentNode))},nA=function(t,r){return r.map(function(o){if(t.contains(o))return o;var s=Hy(o);return s&&t.contains(s)?s:(console.error("aria-hidden",o,"in not contained inside",t,". Doing nothing"),null)}).filter(function(o){return!!o})},aA=function(t,r,o,s){var c=nA(r,Array.isArray(t)?t:[t]);pi[o]||(pi[o]=new WeakMap);var u=pi[o],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 A=S.getAttribute(s),R=A!==null&&A!=="false",E=(po.get(S)||0)+1,T=(u.get(S)||0)+1;po.set(S,E),u.set(S,T),m.push(S),E===1&&R&&hi.set(S,!0),T===1&&S.setAttribute(o,"true"),R||S.setAttribute(s,"true")}catch(k){console.error("aria-hidden: cannot operate on ",S,k)}})};return b(r),h.clear(),$d++,function(){m.forEach(function(y){var S=po.get(y)-1,A=u.get(y)-1;po.set(y,S),u.set(y,A),S||(hi.has(y)||y.removeAttribute(s),hi.delete(y)),A||y.removeAttribute(o)}),$d--,$d||(po=new WeakMap,po=new WeakMap,hi=new WeakMap,pi={})}},Py=function(t,r,o){o===void 0&&(o="data-aria-hidden");var s=Array.from(Array.isArray(t)?t:[t]),c=tA(t);return c?(s.push.apply(s,Array.from(c.querySelectorAll("[aria-live], script"))),aA(s,c,o,"aria-hidden")):function(){return null}},rc="Dialog",[$y,qy]=ko(rc),[rA,En]=$y(rc),Vy=t=>{const{__scopeDialog:r,children:o,open:s,defaultOpen:c,onOpenChange:u,modal:m=!0}=t,h=v.useRef(null),g=v.useRef(null),[p,b]=zi({prop:s,defaultProp:c??!1,onChange:u,caller:rc});return f.jsx(rA,{scope:r,triggerRef:h,contentRef:g,contentId:xo(),titleId:xo(),descriptionId:xo(),open:p,onOpenChange:b,onOpenToggle:v.useCallback(()=>b(y=>!y),[b]),modal:m,children:o})};Vy.displayName=rc;var Yy="DialogTrigger",Iy=v.forwardRef((t,r)=>{const{__scopeDialog:o,...s}=t,c=En(Yy,o),u=Fe(r,c.triggerRef);return f.jsx($e.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":Kf(c.open),...s,ref:u,onClick:Ie(t.onClick,c.onOpenToggle)})});Iy.displayName=Yy;var Xf="DialogPortal",[oA,Gy]=$y(Xf,{forceMount:void 0}),Xy=t=>{const{__scopeDialog:r,forceMount:o,children:s,container:c}=t,u=En(Xf,r);return f.jsx(oA,{scope:r,forceMount:o,children:v.Children.map(s,m=>f.jsx(Ql,{present:o||u.open,children:f.jsx(If,{asChild:!0,container:c,children:m})}))})};Xy.displayName=Xf;var Li="DialogOverlay",Qy=v.forwardRef((t,r)=>{const o=Gy(Li,t.__scopeDialog),{forceMount:s=o.forceMount,...c}=t,u=En(Li,t.__scopeDialog);return u.modal?f.jsx(Ql,{present:s||u.open,children:f.jsx(sA,{...c,ref:r})}):null});Qy.displayName=Li;var lA=Vl("DialogOverlay.RemoveScroll"),sA=v.forwardRef((t,r)=>{const{__scopeDialog:o,...s}=t,c=En(Li,o);return f.jsx(Gf,{as:lA,allowPinchZoom:!0,shards:[c.contentRef],children:f.jsx($e.div,{"data-state":Kf(c.open),...s,ref:r,style:{pointerEvents:"auto",...s.style}})})}),yr="DialogContent",Ky=v.forwardRef((t,r)=>{const o=Gy(yr,t.__scopeDialog),{forceMount:s=o.forceMount,...c}=t,u=En(yr,t.__scopeDialog);return f.jsx(Ql,{present:s||u.open,children:u.modal?f.jsx(iA,{...c,ref:r}):f.jsx(cA,{...c,ref:r})})});Ky.displayName=yr;var iA=v.forwardRef((t,r)=>{const o=En(yr,t.__scopeDialog),s=v.useRef(null),c=Fe(r,o.contentRef,s);return v.useEffect(()=>{const u=s.current;if(u)return Py(u)},[]),f.jsx(Zy,{...t,ref:c,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ie(t.onCloseAutoFocus,u=>{u.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:Ie(t.onPointerDownOutside,u=>{const m=u.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0;(m.button===2||h)&&u.preventDefault()}),onFocusOutside:Ie(t.onFocusOutside,u=>u.preventDefault())})}),cA=v.forwardRef((t,r)=>{const o=En(yr,t.__scopeDialog),s=v.useRef(!1),c=v.useRef(!1);return f.jsx(Zy,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{t.onCloseAutoFocus?.(u),u.defaultPrevented||(s.current||o.triggerRef.current?.focus(),u.preventDefault()),s.current=!1,c.current=!1},onInteractOutside:u=>{t.onInteractOutside?.(u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=u.target;o.triggerRef.current?.contains(m)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&c.current&&u.preventDefault()}})}),Zy=v.forwardRef((t,r)=>{const{__scopeDialog:o,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:u,...m}=t,h=En(yr,o),g=v.useRef(null),p=Fe(r,g);return jy(),f.jsxs(f.Fragment,{children:[f.jsx(Yf,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:c,onUnmountAutoFocus:u,children:f.jsx(Vf,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Kf(h.open),...m,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(dA,{titleId:h.titleId}),f.jsx(mA,{contentRef:g,descriptionId:h.descriptionId})]})]})}),Qf="DialogTitle",Wy=v.forwardRef((t,r)=>{const{__scopeDialog:o,...s}=t,c=En(Qf,o);return f.jsx($e.h2,{id:c.titleId,...s,ref:r})});Wy.displayName=Qf;var Fy="DialogDescription",Jy=v.forwardRef((t,r)=>{const{__scopeDialog:o,...s}=t,c=En(Fy,o);return f.jsx($e.p,{id:c.descriptionId,...s,ref:r})});Jy.displayName=Fy;var eb="DialogClose",tb=v.forwardRef((t,r)=>{const{__scopeDialog:o,...s}=t,c=En(eb,o);return f.jsx($e.button,{type:"button",...s,ref:r,onClick:Ie(t.onClick,()=>c.onOpenChange(!1))})});tb.displayName=eb;function Kf(t){return t?"open":"closed"}var nb="DialogTitleWarning",[uA,ab]=PC(nb,{contentName:yr,titleName:Qf,docsSlug:"dialog"}),dA=({titleId:t})=>{const r=ab(nb),o=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
|
|
332
|
-
|
|
333
|
-
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
334
|
-
|
|
335
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return v.useEffect(()=>{t&&(document.getElementById(t)||console.error(o))},[o,t]),null},fA="DialogDescriptionWarning",mA=({contentRef:t,descriptionId:r})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ab(fA).contentName}}.`;return v.useEffect(()=>{const c=t.current?.getAttribute("aria-describedby");r&&c&&(document.getElementById(r)||console.warn(s))},[s,t,r]),null},rb=Vy,ob=Iy,lb=Xy,Zf=Qy,Wf=Ky,Ff=Wy,Jf=Jy,oc=tb;const hA=rb,pA=ob,gA=lb,yO=oc,sb=v.forwardRef(({className:t,...r},o)=>f.jsx(Zf,{ref:o,className:J("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}));sb.displayName=Zf.displayName;const ib=v.forwardRef(({className:t,children:r,...o},s)=>f.jsxs(gA,{children:[f.jsx(sb,{}),f.jsxs(Wf,{ref:s,className:J("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),...o,children:[r,f.jsxs(oc,{className:"absolute right-2.5 top-2.5 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[f.jsx(Bf,{className:"h-3.5 w-3.5"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ib.displayName=Wf.displayName;const cb=({className:t,...r})=>f.jsx("div",{className:J("flex flex-col space-y-1.5 text-center sm:text-left",t),...r});cb.displayName="DialogHeader";const vA=({className:t,...r})=>f.jsx("div",{className:J("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r});vA.displayName="DialogFooter";const ub=v.forwardRef(({className:t,...r},o)=>f.jsx(Ff,{ref:o,className:J("text-sm font-semibold leading-none tracking-tight",t),...r}));ub.displayName=Ff.displayName;const db=v.forwardRef(({className:t,...r},o)=>f.jsx(Jf,{ref:o,className:J("text-[11px] text-muted-foreground",t),...r}));db.displayName=Jf.displayName;function yA({children:t,open:r,onOpenChange:o,showTrigger:s=!0}){const[c,u]=v.useState(!1),m=r??c,h=v.useCallback(g=>{g&&HC("settings.opened",{surface:"settings"}),r===void 0&&u(g),o?.(g)},[r,o]);return f.jsxs(hA,{open:m,onOpenChange:h,children:[s&&f.jsx(pA,{asChild:!0,children:f.jsx(Tt,{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(eT,{className:"h-4 w-4"})})}),f.jsxs(ib,{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(cb,{className:"shrink-0 border-b border-border/60 px-3 py-1.5 sm:px-3.5",children:[f.jsxs(ub,{className:"flex items-center gap-1.5 text-[11px]",children:[f.jsx(BN,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),f.jsx(db,{className:"sr-only",children:"Runtime, agents, and quick chats for the current Meshy node. For host and access diagnostics, open node Properties."})]}),f.jsx("div",{className:"min-h-0 overflow-y-auto px-2.5 pb-2 pt-1 sm:px-3 sm:pb-2.5",children:t})]})]})}var fb="AlertDialog",[bA]=ko(fb,[qy]),oa=qy(),mb=t=>{const{__scopeAlertDialog:r,...o}=t,s=oa(r);return f.jsx(rb,{...s,...o,modal:!0})};mb.displayName=fb;var xA="AlertDialogTrigger",hb=v.forwardRef((t,r)=>{const{__scopeAlertDialog:o,...s}=t,c=oa(o);return f.jsx(ob,{...c,...s,ref:r})});hb.displayName=xA;var wA="AlertDialogPortal",pb=t=>{const{__scopeAlertDialog:r,...o}=t,s=oa(r);return f.jsx(lb,{...s,...o})};pb.displayName=wA;var SA="AlertDialogOverlay",gb=v.forwardRef((t,r)=>{const{__scopeAlertDialog:o,...s}=t,c=oa(o);return f.jsx(Zf,{...c,...s,ref:r})});gb.displayName=SA;var So="AlertDialogContent",[EA,NA]=bA(So),TA=QC("AlertDialogContent"),vb=v.forwardRef((t,r)=>{const{__scopeAlertDialog:o,children:s,...c}=t,u=oa(o),m=v.useRef(null),h=Fe(r,m),g=v.useRef(null);return f.jsx(uA,{contentName:So,titleName:yb,docsSlug:"alert-dialog",children:f.jsx(EA,{scope:o,cancelRef:g,children:f.jsxs(Wf,{role:"alertdialog",...u,...c,ref:h,onOpenAutoFocus:Ie(c.onOpenAutoFocus,p=>{p.preventDefault(),g.current?.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[f.jsx(TA,{children:s}),f.jsx(RA,{contentRef:m})]})})})});vb.displayName=So;var yb="AlertDialogTitle",bb=v.forwardRef((t,r)=>{const{__scopeAlertDialog:o,...s}=t,c=oa(o);return f.jsx(Ff,{...c,...s,ref:r})});bb.displayName=yb;var xb="AlertDialogDescription",wb=v.forwardRef((t,r)=>{const{__scopeAlertDialog:o,...s}=t,c=oa(o);return f.jsx(Jf,{...c,...s,ref:r})});wb.displayName=xb;var CA="AlertDialogAction",Sb=v.forwardRef((t,r)=>{const{__scopeAlertDialog:o,...s}=t,c=oa(o);return f.jsx(oc,{...c,...s,ref:r})});Sb.displayName=CA;var Eb="AlertDialogCancel",Nb=v.forwardRef((t,r)=>{const{__scopeAlertDialog:o,...s}=t,{cancelRef:c}=NA(Eb,o),u=oa(o),m=Fe(r,c);return f.jsx(oc,{...u,...s,ref:m})});Nb.displayName=Eb;var RA=({contentRef:t})=>{const r=`\`${So}\` requires a description for the component to be accessible for screen reader users.
|
|
336
|
-
|
|
337
|
-
You can add a description to the \`${So}\` by passing a \`${xb}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
338
|
-
|
|
339
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${So}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
340
|
-
|
|
341
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return v.useEffect(()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},AA=mb,kA=hb,_A=pb,Tb=gb,Cb=vb,Rb=Sb,Ab=Nb,kb=bb,_b=wb;const of=AA,lf=kA,jA=_A,jb=v.forwardRef(({className:t,...r},o)=>f.jsx(Tb,{className:J("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:o}));jb.displayName=Tb.displayName;const Ui=v.forwardRef(({className:t,...r},o)=>f.jsxs(jA,{children:[f.jsx(jb,{}),f.jsx(Cb,{ref:o,className:J("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})]}));Ui.displayName=Cb.displayName;const Bi=({className:t,...r})=>f.jsx("div",{className:J("flex flex-col space-y-1.5 text-center sm:text-left",t),...r});Bi.displayName="AlertDialogHeader";const Hi=({className:t,...r})=>f.jsx("div",{className:J("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r});Hi.displayName="AlertDialogFooter";const Pi=v.forwardRef(({className:t,...r},o)=>f.jsx(kb,{ref:o,className:J("text-sm font-semibold",t),...r}));Pi.displayName=kb.displayName;const $i=v.forwardRef(({className:t,...r},o)=>f.jsx(_b,{ref:o,className:J("text-[11px] text-muted-foreground",t),...r}));$i.displayName=_b.displayName;const qi=v.forwardRef(({className:t,...r},o)=>f.jsx(Rb,{ref:o,className:J(qf(),t),...r}));qi.displayName=Rb.displayName;const Vi=v.forwardRef(({className:t,...r},o)=>f.jsx(Ab,{ref:o,className:J(qf({variant:"outline"}),"mt-2 sm:mt-0",t),...r}));Vi.displayName=Ab.displayName;function OA(t){return[{key:"workspace",label:"Workspace",value:t?.workspace},{key:"node",label:"Node app",value:t?.node},{key:"core",label:"Core",value:t?.core},{key:"dashboard",label:"Dashboard",value:t?.dashboard},{key:"api",label:"API",value:t?.api}].filter(o=>o.value)}function go({label:t,value:r,mono:o=!1}){return f.jsxs("div",{className:"min-w-0 rounded-sm border border-border/60 bg-background/65 px-2.5 py-1.5",children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:t}),f.jsx("div",{className:o?"mt-0.5 break-all font-mono text-[11px] text-foreground":"mt-0.5 break-all text-[11px] text-foreground",children:r})]})}function DA({formatDateTime:t,viewInfo:r}){const o=OA(r.packages);return f.jsxs("div",{"data-about-layout":"compact",className:"space-y-2",children:[f.jsxs(Bl,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Hl,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Pl,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(fN,{className:"h-3.5 w-3.5 text-primary"}),"Repository & runtime"]}),f.jsx($l,{className:"text-[10px]",children:"Build source and runtime identity for this node."})]}),f.jsxs(ql,{className:"space-y-2 px-3 pb-2.5",children:[r.repository?.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(ay,{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(go,{label:"Branch",value:r.repository?.branch??"Unavailable",mono:!!r.repository?.branch}),f.jsx(go,{label:"Commit",value:r.repository?.commit??"Unavailable",mono:!!r.repository?.commit}),f.jsx(go,{label:"Runtime",value:`${r.packageName??"meshy"} ${r.version}`,mono:!0}),f.jsx(go,{label:"Node.js",value:r.runtime?.nodeVersion??"Unavailable",mono:!!r.runtime?.nodeVersion}),f.jsx(go,{label:"PID",value:r.runtime?String(r.runtime.pid):"Unavailable",mono:!!r.runtime}),f.jsx(go,{label:"Started",value:t(r.runtime?.startedAt)})]})]})]}),f.jsxs(Bl,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Hl,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Pl,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(ry,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),f.jsx($l,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),f.jsx(ql,{"data-package-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:o.map(s=>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:s.label}),f.jsx("div",{className:"min-w-0 truncate text-[10px] text-muted-foreground",children:s.value?.name}),f.jsx(qa,{variant:"outline",className:"w-fit rounded-sm border-border/70 bg-background/60 font-mono text-[10px]",children:s.value?.version})]},s.key))})]})]})}const MA="codex",bO="bypass",Ob=[{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"}],Db=Ob.filter(t=>t.value==="codex"||t.value==="claudecode"||t.value==="copilot");function sf(t){return Db.some(r=>r.value===t)?t:MA}const xO=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],zA=new Set(Ob.filter(t=>t.supportsFollowUp).map(t=>t.value));function wO(t){const r=s=>typeof s=="string"&&zA.has(s),o=(t.nodeSupportedAgents??[]).filter(r);return o.length>0?Array.from(new Set(o)):Array.from(new Set([t.taskAgent,t.activeAgent].filter(r)))}const SO=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],EO=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],LA=new Set(["pending","assigned"]),UA=new Set(["running"]),BA=new Set(["completed","failed","cancelled"]),NO=10;function TO(t,r){switch(r){case"running":return UA.has(t.status);case"waiting":return LA.has(t.status);case"closed":return BA.has(t.status);case"shared":return!!t.activeShare;case"archived":return t.status==="archived";default:return t.status!=="archived"}}function CO(t,r){if(r==="all")return!0;const o=t.conversationKind==="nativeSession";return r==="native"?o:!o}function RO(t,r){const o=r.trim().toLowerCase();return o?[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(o)):!0}function HA(t,r,o){return t?r?.find(c=>c.id===t)?.name??o??t.slice(0,8):"unassigned"}function AO(t,r,o){return HA(t,r,o).toLowerCase()}function kO(t){return t.type!=="node.status"&&t.type!=="cluster.state"}function _O(t,r,o){return!t.assignedTo||o?.id===t.assignedTo?!0:r?.some(s=>s.id===t.assignedTo)??!1}function jO(t,r){return[...t].sort((o,s)=>o.id===r?-1:s.id===r?1:o.name.localeCompare(s.name))}function OO(t){if(!t||typeof t!="object")return null;const r=t,o=r.createMode,s=o==="chat"||o==="native"?o:void 0,c=r.createDefaults,u=c&&typeof c=="object"&&!Array.isArray(c)?c:null,m=u?{assignTo:typeof u.assignTo=="string"||u.assignTo===null?u.assignTo:void 0,project:typeof u.project=="string"||u.project===null?u.project:void 0}:void 0;return{draftNewTask:r.draftNewTask===!0,returnRoute:typeof r.returnRoute=="string"?r.returnRoute:void 0,returnTaskId:typeof r.returnTaskId=="string"||r.returnTaskId===null?r.returnTaskId:void 0,createMode:s,createDefaults:m}}function DO(t){return t==="default workspace"?t:t.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??t}function MO(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 zO(t){return new Date(t).toLocaleString()}function LO(t){const r=Math.floor(t/1e3),o=Math.floor(r/3600),s=Math.floor(r%3600/60),c=r%60;return`${String(o).padStart(2,"0")}:${String(s).padStart(2,"0")}:${String(c).padStart(2,"0")}`}async function Mb(t,r="Copied to clipboard"){try{if(globalThis.navigator?.clipboard?.writeText)return await globalThis.navigator.clipboard.writeText(t),Ce.success(r),!0;const o=globalThis.document,s=o?.execCommand?.bind(o);if(!o?.body||typeof o.createElement!="function"||typeof s!="function")throw new Error("Clipboard access is unavailable");const c=o.createElement("textarea"),u=o.activeElement,m=u&&typeof u.focus=="function"?u:null;c.value=t,c.setAttribute("readonly","true"),c.style.position="fixed",c.style.opacity="0",c.style.pointerEvents="none",o.body.appendChild(c),c.select(),c.setSelectionRange(0,c.value.length);const h=s("copy");if(o.body.removeChild(c),m?.focus(),!h)throw new Error("Clipboard access is unavailable");return Ce.success(r),!0}catch(o){return Ce.error(o instanceof Error?o.message:"Failed to copy"),!1}}const PA="default workspace";function Ei(t){const r=t.replace(/\\/g,"/");return r==="/"||/^[A-Za-z]:\/$/.test(r)?r:r.replace(/\/+$/g,"")||r}function $A(t){const r=t.replace(/\\/g,"/");return r.startsWith("/")||r.startsWith("//")||/^[A-Za-z]:\//.test(r)}function qA(t,r){const o=Ei(t),s=r.replace(/\\/g,"/").replace(/^\/+|\/+$/g,"");return!s||s==="."?o:o==="/"||/^[A-Za-z]:\/$/.test(o)?`${o}${s}`:`${o}/${s}`}function VA(t,r){const o=t.effectiveProjectPath?.trim();if(o)return Ei(o);const s=t.project?.trim();if(!s)return PA;if($A(s)||!t.assignedTo)return Ei(s);const c=r?.get(t.assignedTo)?.trim();return c?qA(c,s):Ei(s)}function UO({nodeStatusById:t,nodeNameById:r,nodeFilter:o,searchQuery:s,nodeWorkDirById:c}){const u=o.trim().toLowerCase(),m=s.trim().toLowerCase(),h=[];for(const[g,p]of t){if(p==="offline"||u==="unassigned")continue;const b=r.get(g)??g.slice(0,8);if(!(u&&u!=="all"&&b.toLowerCase()!==u)){if(m){const y=c?.get(g)??"";if(![g,b,y].some(A=>A.toLowerCase().includes(m)))continue}h.push(g)}}return h}function BO(t,r,o,s,c){const u=new Map;for(const h of t){const g=h.assignedTo??null,p=g??"__unassigned__",b=g?r.get(g)??h.assignedNodeName??g.slice(0,8):"Unassigned",y=VA(h,s);u.has(p)||u.set(p,{nodeId:g,nodeName:b,dirMap:new Map});const S=u.get(p);S.dirMap.has(y)||S.dirMap.set(y,[]),S.dirMap.get(y).push(h)}for(const h of c??[])u.has(h)||u.set(h,{nodeId:h,nodeName:r.get(h)??h.slice(0,8),dirMap:new Map});const m=Array.from(u.values()).map(({nodeId:h,nodeName:g,dirMap:p})=>{const b=Array.from(p.entries()).map(([y,S])=>({path:y,tasks:S})).sort((y,S)=>S.tasks.length-y.tasks.length||y.path.localeCompare(S.path));return{nodeId:h,nodeName:g,dirs:b}});return m.sort((h,g)=>{if(o){if(h.nodeId===o)return-1;if(g.nodeId===o)return 1}return h.nodeId===null?1:g.nodeId===null?-1:h.nodeName.localeCompare(g.nodeName)}),m}const YA=["queued","running"],IA=["copilot.tunnel","copilot.tunnel.disable"],GA=1e4;function Iv(t){return t?.status==="succeeded"||t?.status==="failed"}function XA(t){return t.reduce((r,o)=>!r||o.updatedAt>r.updatedAt?o:r,null)}async function QA(t,r=Z0){const o=await Promise.all(IA.flatMap(s=>YA.map(c=>r({kind:s,status:c,nodeId:t}))));return XA(o.flat())}function Gv(t){return t?.split(/\r?\n/).map(r=>r.trim()).filter(Boolean).at(-1)??null}function KA(t,r){return[t,...r].join(" ")}function ZA(t,r,o){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"?t.result?.status==="auth-required"?"Waiting for GitHub device authorization":"Starting Copilot tunnel":"Checking port 8314":t.status==="succeeded"?t.result?.available?t.result.status==="already-running"?"Port 8314 is already reachable":"Proxy is listening on 8314":t.result?.status==="stopped"?"Meshy-managed tunnel stopped":"Port 8314 is not listening":o??"Tunnel operation failed":"Port 8314 status has not been checked"}function WA(t,r){return r||t?.status==="queued"||t?.status==="running"?f.jsx(Lf,{className:"h-3.5 w-3.5 animate-spin text-primary"}):t?.result?.available?f.jsx(bo,{className:"h-3.5 w-3.5 text-emerald-500"}):t?.status==="failed"?f.jsx(xv,{className:"h-3.5 w-3.5 text-destructive"}):f.jsx(xv,{className:"h-3.5 w-3.5 text-muted-foreground"})}function FA({checked:t,disabled:r,onCheckedChange:o}){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:()=>o(!t),className:J("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:J("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 JA({nodeId:t,nodeName:r}){const[o,s]=v.useState(null),[c,u]=v.useState(!1),[m,h]=v.useState(!1),g=o?.status==="queued"||o?.status==="running",p=o?.result,b=p?.auth??null,y=o?.error??p?.detail??Gv(p?.stderr)??Gv(p?.stdout),S=p?KA(p.command,p.args):"npx -y ghc-tunnel@latest -d",A=!!p?.available||g&&o?.kind==="copilot.tunnel",R=c||m||g,E=v.useMemo(()=>ZA(o,c,y),[c,y,o]);v.useEffect(()=>{let k=!1;async function C(){u(!0);try{const O=await QA(t);if(k)return;if(O){s(O);return}const L=await gv(t);k||s(L)}catch(O){k||Ce.error(O instanceof Error?O.message:"Failed to check Copilot tunnel")}finally{k||u(!1)}}return s(null),C(),()=>{k=!0}},[t]),v.useEffect(()=>{if(!o||Iv(o))return;let k=!1;const C=o.id;async function O(){try{const U=await K0(C);if(k)return;if(U.kind==="copilot.tunnel.status"&&!Iv(U)&&Date.now()-U.createdAt>GA){const G=await gv(t);k||s(G);return}s(U),U.status==="succeeded"&&U.kind==="copilot.tunnel"&&Ce.success(`Copilot tunnel is available on ${r}`),U.status==="succeeded"&&U.kind==="copilot.tunnel.disable"&&Ce.success(`Copilot tunnel stopped on ${r}`),U.status==="failed"&&U.kind!=="copilot.tunnel.status"&&Ce.error(U.error??"Copilot tunnel failed")}catch(U){k||Ce.error(U instanceof Error?U.message:"Failed to refresh Copilot tunnel")}}O();const L=window.setInterval(O,2e3);return()=>{k=!0,window.clearInterval(L)}},[t,r,o?.id,o?.status]);const T=v.useCallback(async k=>{h(!0);try{const C=k?await SE(t):await EE(t);s(C),Ce.info(k?`Copilot tunnel enable requested on ${r}`:`Copilot tunnel stop requested on ${r}`)}catch(C){Ce.error(C instanceof Error?C.message:"Failed to update Copilot tunnel")}finally{h(!1)}},[t,r]);return f.jsxs(Bl,{"data-copilot-tunnel-section":"true",className:"rounded-sm border-border/70 bg-background/75 shadow-none xl:col-span-2",children:[f.jsx(Hl,{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(Pl,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(ty,{className:"h-3.5 w-3.5 text-primary"}),"GitHub Copilot Tunnel"]}),f.jsx($l,{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":E,title:E,className:"inline-flex h-5 w-5 items-center justify-center",children:WA(o,c)}),f.jsx(FA,{checked:A,disabled:R,onCheckedChange:k=>{T(k)}})]})]})}),f.jsxs(ql,{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:J("h-1.5 w-1.5 rounded-sm",p?.available?"bg-emerald-500":g||c?"animate-pulse bg-amber-500":o?.status==="failed"?"bg-destructive":"bg-muted-foreground/50")}),E]}),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(ON,{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(Tt,{type:"button",variant:"outline",size:"icon",className:"h-7 w-7 rounded-sm",title:"Copy device code","aria-label":"Copy device code",onClick:()=>{Mb(b.code,"Device code copied")},children:f.jsx(ny,{className:"h-3.5 w-3.5"})}),f.jsx(Tt,{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(ay,{className:"h-3.5 w-3.5"})})})]})]}),y&&o?.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})]})]})}function e5({value:t,disabled:r=!1,saving:o=!1,onChange:s}){const c=sf(t);return f.jsxs("div",{"data-default-task-agent-selector":"true",className:"flex shrink-0 flex-col gap-1 sm:items-end",children:[f.jsxs("div",{className:"flex items-center gap-1 text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:[f.jsx(_i,{className:"h-3 w-3"}),"Default agent"]}),f.jsx("div",{className:"flex h-7 items-center gap-0.5 rounded-sm border border-border/60 bg-background/60 p-0.5",children:Db.map(u=>{const m=u.value===c;return f.jsx("button",{type:"button","data-default-task-agent-option":u.value,"aria-pressed":m,disabled:r||o,onClick:()=>s(u.value),className:J("h-6 rounded-sm border-0 px-2 text-[10px] font-medium shadow-none transition-colors disabled:cursor-not-allowed disabled:opacity-60",m?"bg-primary text-primary-foreground":"bg-muted/45 text-muted-foreground hover:bg-muted/65 hover:text-foreground"),children:u.label},u.value)})})]})}const t5={online:"bg-emerald-500",busy:"bg-amber-500",offline:"bg-destructive"},n5={online:"Online",busy:"Busy",offline:"Offline"},a5={default:"h-2.5 w-2.5",compact:"h-2 w-2"};function zb({className:t,pulse:r=!0,size:o="default",status:s}){const c=a5[o],u=n5[s];return f.jsxs("span",{role:"img","aria-label":u,title:u,className:J("relative inline-flex shrink-0",c,t),children:[r&&s==="online"&&f.jsx("span",{"aria-hidden":"true",className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-emerald-500 opacity-30"}),f.jsx("span",{"aria-hidden":"true",className:J("relative inline-flex rounded-full",c,t5[s])})]})}function r5({role:t,size:r="default"}){return f.jsx(qa,{variant:t==="leader"?"default":"secondary",className:J(r==="compact"?"px-1.5 py-0 text-[9px] leading-4":"text-[11px]"),children:t})}const Lb={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 HO({status:t,size:r="default"}){const o=Lb[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(qa,{variant:o.variant,className:J("rounded-sm font-medium shadow-none",s,o.className),children:[f.jsx("span",{className:J("rounded-full",o.dotClass)}),t]})}function PO({status:t,isNative:r=!1,size:o="default",className:s}){const c=Lb[t],u=[t,r?"native":null].filter(Boolean).join(", "),m=o==="compact"?"h-1.5 w-1.5":"h-2 w-2";return f.jsxs("span",{className:J("inline-flex shrink-0 items-center gap-1",s),title:u,"aria-label":u,children:[f.jsx("span",{className:J("rounded-full",m,c.dotClass),title:t}),r&&f.jsx("span",{className:J("rounded-full bg-sky-500",m),title:"native"})]})}const o5={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function $O({priority:t}){const r=o5[t];return f.jsx(qa,{variant:r.variant,className:"rounded-sm px-1.5 py-0 text-[10px] leading-4 shadow-none",children:r.label})}const l5={busy:"bg-amber-500",offline:"bg-destructive",online:"bg-emerald-500"},Xv="settings-node-selector-listbox";function Qv(t){return`settings-node-option-${t}`}function s5({decorative:t,node:r}){return t?f.jsx("span",{"aria-hidden":"true",className:"relative inline-flex h-2 w-2 shrink-0",children:f.jsx("span",{className:J("relative inline-flex h-2 w-2 rounded-full",l5[r.status])})}):f.jsx(zb,{status:r.status,size:"compact",pulse:!1})}function Kv({decorativeStatus:t=!1,node:r}){return f.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-1.5",children:[f.jsx(s5,{decorative:t,node:r}),f.jsx("span",{className:"min-w-0 flex-1 truncate",children:r.name})]})}function i5({formatDateTime:t,isLiveLocalNode:r,onSelectedNodeChange:o,selectableNodes:s,selectedNode:c}){const[u,m]=v.useState(!1),[h,g]=v.useState(0),p=v.useRef(null),b=Math.max(0,s.findIndex(C=>C.id===c.id)),y=Math.min(h,Math.max(s.length-1,0)),S=s[y]??s[b]??c,A=s.map(C=>C.id).join("\0");v.useEffect(()=>{if(!u)return;const C=L=>{const U=L.target,G=p.current;!G||!(U instanceof Node)||G.contains(U)||m(!1)},O=L=>{L.key==="Escape"&&m(!1)};return document.addEventListener("pointerdown",C),document.addEventListener("keydown",O),()=>{document.removeEventListener("pointerdown",C),document.removeEventListener("keydown",O)}},[u]),v.useEffect(()=>{g(b),m(!1)},[A,c.id,b]);function R(C){s.length!==0&&(m(!0),g(O=>((u?O:b)+C+s.length)%s.length))}function E(){S&&T(S.id)}function T(C){o(C),m(!1)}function k(C){if(s.length!==0){if(C.key==="ArrowDown"){C.preventDefault(),R(1);return}if(C.key==="ArrowUp"){C.preventDefault(),R(-1);return}if(C.key==="Home"||C.key==="End"){C.preventDefault(),m(!0),g(C.key==="Home"?0:s.length-1);return}if(C.key==="Enter"||C.key===" "){if(!u)return;C.preventDefault(),E();return}C.key==="Escape"&&(C.preventDefault(),m(!1))}}return f.jsxs("div",{"data-settings-node-selector":"true",className:"flex flex-wrap items-center justify-between gap-1.5",children:[s.length>1?f.jsxs("div",{ref:p,"data-settings-node-control":"true",className:"relative w-40 sm:w-44",children:[f.jsxs("button",{type:"button","aria-haspopup":"listbox","aria-controls":Xv,"aria-expanded":u,"aria-activedescendant":u?Qv(S.id):void 0,className:"flex h-7 w-full items-center justify-between rounded-sm border-0 bg-primary/10 px-2 text-left text-[11px] text-foreground !shadow-none hover:bg-primary/15 focus:bg-primary/12 focus:outline-none focus:ring-1 focus:ring-primary/25 [&>span:first-child]:!flex [&>span:first-child]:!min-w-0 [&>span:first-child]:!flex-1 [&>span:first-child]:!items-center",onClick:()=>{g(b),m(C=>!C)},onKeyDown:k,children:[f.jsx("span",{className:"flex min-w-0 items-center gap-1.5",children:f.jsx(Kv,{decorativeStatus:!0,node:c})}),f.jsx(gr,{className:J("ml-1 h-3.5 w-3.5 shrink-0 opacity-50 transition-transform",u&&"rotate-180")})]}),f.jsx("div",{id:Xv,role:"listbox","aria-label":"Choose settings node",hidden:!u,className:"settings-node-select-content z-[80] w-full rounded-sm border-border/70 bg-popover/96 text-[9px] leading-4 !shadow-none absolute left-0 top-full mt-1 max-h-56 overflow-y-auto border p-1",children:s.map((C,O)=>{const L=C.id===S.id;return f.jsx("button",{id:Qv(C.id),type:"button",role:"option","aria-selected":C.id===c.id,"data-active":L?"true":void 0,"data-settings-node-option":C.id,"data-settings-node-option-active":L?"true":void 0,className:J("settings-node-select-item flex w-full items-center rounded-sm py-1 pl-2 pr-2 text-left text-[9px] leading-4 whitespace-nowrap data-[active=true]:bg-primary/10 hover:bg-primary/10 hover:text-foreground focus:bg-primary/10 focus:text-foreground focus:outline-none",C.id===c.id?"bg-primary/10 text-foreground":"text-popover-foreground"),onClick:()=>T(C.id),onMouseEnter:()=>g(O),children:f.jsx(Kv,{node:C})},C.id)})})]}):f.jsxs("span",{"data-settings-node-control":"true",className:"flex h-7 w-40 items-center gap-1.5 rounded-sm border border-border/70 bg-background/75 px-2 text-[11px] text-muted-foreground sm:w-44",children:[f.jsx(zb,{status:c.status}),f.jsx("span",{className:"font-medium text-foreground",children:c.name})]}),f.jsxs("div",{"data-settings-node-badges":"true",className:"ml-auto flex flex-wrap items-center justify-end gap-1.5",children:[f.jsx(r5,{role:c.role,size:"compact"}),!r&&f.jsx(qa,{variant:"outline",title:`Updated ${t(c.settingsSnapshot?.collectedAt)}`,className:"rounded-sm border-border/70 bg-background/60 px-1.5 py-0 text-[10px] uppercase tracking-[0.16em] whitespace-nowrap",children:"Leader-synced snapshot"})]})]})}const lc=v.forwardRef(({className:t,type:r,...o},s)=>f.jsx("input",{type:r,className:J("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,...o}));lc.displayName="Input";function c5(){return ve("/system/quick-chats")}function u5(t){return ve("/system/quick-chats",{method:"PUT",body:JSON.stringify({quickChats:t})})}const cf="quick-chats:updated";function d5(){typeof window>"u"||window.dispatchEvent(new CustomEvent(cf))}function f5(){const[t,r]=v.useState([]),[o,s]=v.useState(!0),[c,u]=v.useState(!1),[m,h]=v.useState(null),g=v.useCallback(async()=>{s(!0);try{const b=await c5();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 u5(b);return r(y.quickChats),h(null),d5(),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(cf,b),()=>window.removeEventListener(cf,b)},[g]),{error:m,loading:o,quickChats:t,refresh:g,save:p,saving:c}}function Ub(t){return t.trim().replace(/^\/+/,"").toLowerCase()}function Bb(t,r){const o=t.trim();if(!o.startsWith("/"))return[];const s=Ub(o);return r.filter(c=>c.alias.startsWith(s))}function Yi(t,r){return r<=0?-1:(t%r+r)%r}function qO(t,r,o=0){const s=Bb(t,r),c=Yi(o,s.length);return c>=0?s[c]??null:null}function VO(t,r,o){const s=Yi(t,r);return s<0?0:Yi(s+o,r)}function YO({query:t,quickChats:r,selectedIndex:o=0,onSelect:s,onActiveIndexChange:c}){const u=Bb(t,r);if(u.length===0)return null;const m=Yi(o,u.length);return f.jsxs("div",{"data-quick-chat-menu":"true",className:"mx-2 mb-0.5 rounded-sm bg-background/70 p-0.5 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(Uf,{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?.(g),onClick:()=>s(h),className:J("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:J("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:J("line-clamp-1 min-w-0 text-[9px] leading-3 text-muted-foreground",g===m&&"text-primary/90"),children:h.prompt})]},h.alias))})]})}const m5="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 h5=0;function Ni(t,r=0){return{id:t?`${t.alias}:${r}`:`new:${h5++}`,alias:t?.alias??"",prompt:t?.prompt??""}}function uf(t){return{quickChats:t.map(r=>({alias:Ub(r.alias),prompt:r.prompt.trim()})).filter(r=>r.alias.length>0&&r.prompt.length>0)}}function p5(t,r){const o=uf(t).quickChats,s=r.map((u,m)=>Ni(u,m)),c=uf(s).quickChats;return JSON.stringify(o)!==JSON.stringify(c)}function g5(){const{error:t,loading:r,quickChats:o,save:s,saving:c}=f5(),[u,m]=v.useState(()=>o.map((y,S)=>Ni(y,S))),h=u.length>0,g=v.useMemo(()=>uf(u),[u]),p=v.useMemo(()=>p5(u,o),[u,o]);v.useEffect(()=>{m(o.map((y,S)=>Ni(y,S)))},[o]);async function b(){try{await s(g.quickChats),Ce.success("Quick chats saved")}catch(y){Ce.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(Uf,{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(Tt,{type:"button",variant:"outline",onClick:()=>m(y=>[...y,Ni(void 0,y.length)]),className:"h-7 rounded-sm px-2 text-[10px]",children:[f.jsx(qN,{className:"h-3.5 w-3.5"}),"Add"]}),f.jsxs(Tt,{type:"button",onClick:b,disabled:c||!p,className:"h-7 rounded-sm px-2 text-[10px]",children:[c?f.jsx(Lf,{className:"h-3.5 w-3.5 animate-spin"}):f.jsx(QN,{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(lc,{"aria-label":`Quick chat ${S+1} alias`,value:y.alias,onChange:A=>m(R=>R.map(E=>E.id===y.id?{...E,alias:A.target.value}:E)),placeholder:"alias",className:"h-7 rounded-sm border-border/70 bg-background/80 px-2 font-mono text-[11px]"}),f.jsx("textarea",{"aria-label":`Quick chat ${S+1} prompt`,value:y.prompt,onChange:A=>m(R=>R.map(E=>E.id===y.id?{...E,prompt:A.target.value}:E)),placeholder:"Prompt text",className:m5}),f.jsx(Tt,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(A=>A.filter(R=>R.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(iT,{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})]})}function Hb(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])}function Pb(t){const[r,o]=v.useState(void 0);return Ot(()=>{if(t){o({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;o({width:m,height:h})});return s.observe(t,{box:"border-box"}),()=>s.unobserve(t)}else o(void 0)},[t]),r}var sc="Checkbox",[v5]=ko(sc),[y5,em]=v5(sc);function b5(t){const{__scopeCheckbox:r,checked:o,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,A]=zi({prop:o,defaultProp:c??!1,onChange:g,caller:sc}),[R,E]=v.useState(null),[T,k]=v.useState(null),C=v.useRef(!1),O=R?!!m||!!R.closest("form"):!0,L={checked:S,disabled:u,setChecked:A,control:R,setControl:E,name:h,form:m,value:b,hasConsumerStoppedPropagationRef:C,required:p,defaultChecked:Ba(c)?!1:c,isFormControl:O,bubbleInput:T,setBubbleInput:k};return f.jsx(y5,{scope:r,...L,children:x5(y)?y(L):s})}var $b="CheckboxTrigger",qb=v.forwardRef(({__scopeCheckbox:t,onKeyDown:r,onClick:o,...s},c)=>{const{control:u,value:m,disabled:h,checked:g,required:p,setControl:b,setChecked:y,hasConsumerStoppedPropagationRef:S,isFormControl:A,bubbleInput:R}=em($b,t),E=Fe(c,b),T=v.useRef(g);return v.useEffect(()=>{const k=u?.form;if(k){const C=()=>y(T.current);return k.addEventListener("reset",C),()=>k.removeEventListener("reset",C)}},[u,y]),f.jsx($e.button,{type:"button",role:"checkbox","aria-checked":Ba(g)?"mixed":g,"aria-required":p,"data-state":Xb(g),"data-disabled":h?"":void 0,disabled:h,value:m,...s,ref:E,onKeyDown:Ie(r,k=>{k.key==="Enter"&&k.preventDefault()}),onClick:Ie(o,k=>{y(C=>Ba(C)?!0:!C),R&&A&&(S.current=k.isPropagationStopped(),S.current||k.stopPropagation())})})});qb.displayName=$b;var tm=v.forwardRef((t,r)=>{const{__scopeCheckbox:o,name:s,checked:c,defaultChecked:u,required:m,disabled:h,value:g,onCheckedChange:p,form:b,...y}=t;return f.jsx(b5,{__scopeCheckbox:o,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(qb,{...y,ref:r,__scopeCheckbox:o}),S&&f.jsx(Gb,{__scopeCheckbox:o})]})})});tm.displayName=sc;var Vb="CheckboxIndicator",Yb=v.forwardRef((t,r)=>{const{__scopeCheckbox:o,forceMount:s,...c}=t,u=em(Vb,o);return f.jsx(Ql,{present:s||Ba(u.checked)||u.checked===!0,children:f.jsx($e.span,{"data-state":Xb(u.checked),"data-disabled":u.disabled?"":void 0,...c,ref:r,style:{pointerEvents:"none",...t.style}})})});Yb.displayName=Vb;var Ib="CheckboxBubbleInput",Gb=v.forwardRef(({__scopeCheckbox:t,...r},o)=>{const{control:s,hasConsumerStoppedPropagationRef:c,checked:u,defaultChecked:m,required:h,disabled:g,name:p,value:b,form:y,bubbleInput:S,setBubbleInput:A}=em(Ib,t),R=Fe(o,A),E=Hb(u),T=Pb(s);v.useEffect(()=>{const C=S;if(!C)return;const O=window.HTMLInputElement.prototype,U=Object.getOwnPropertyDescriptor(O,"checked").set,G=!c.current;if(E!==u&&U){const I=new Event("click",{bubbles:G});C.indeterminate=Ba(u),U.call(C,Ba(u)?!1:u),C.dispatchEvent(I)}},[S,E,u,c]);const k=v.useRef(Ba(u)?!1:u);return f.jsx($e.input,{type:"checkbox","aria-hidden":!0,defaultChecked:m??k.current,required:h,disabled:g,name:p,value:b,form:y,...r,tabIndex:-1,ref:R,style:{...r.style,...T,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Gb.displayName=Ib;function x5(t){return typeof t=="function"}function Ba(t){return t==="indeterminate"}function Xb(t){return Ba(t)?"indeterminate":t?"checked":"unchecked"}const Qb=v.forwardRef(({className:t,...r},o)=>f.jsx(tm,{ref:o,className:J("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(Yb,{className:J("flex items-center justify-center text-current"),children:f.jsx(ji,{className:"h-3.5 w-3.5"})})}));Qb.displayName=tm.displayName;function Zv(t,[r,o]){return Math.min(o,Math.max(r,t))}function w5(t){const r=t+"CollectionProvider",[o,s]=ko(r),[c,u]=o(r,{collectionRef:{current:null},itemMap:new Map}),m=E=>{const{scope:T,children:k}=E,C=re.useRef(null),O=re.useRef(new Map).current;return f.jsx(c,{scope:T,itemMap:O,collectionRef:C,children:k})};m.displayName=r;const h=t+"CollectionSlot",g=Vl(h),p=re.forwardRef((E,T)=>{const{scope:k,children:C}=E,O=u(h,k),L=Fe(T,O.collectionRef);return f.jsx(g,{ref:L,children:C})});p.displayName=h;const b=t+"CollectionItemSlot",y="data-radix-collection-item",S=Vl(b),A=re.forwardRef((E,T)=>{const{scope:k,children:C,...O}=E,L=re.useRef(null),U=Fe(T,L),G=u(b,k);return re.useEffect(()=>(G.itemMap.set(L,{ref:L,...O}),()=>{G.itemMap.delete(L)})),f.jsx(S,{[y]:"",ref:U,children:C})});A.displayName=b;function R(E){const T=u(t+"CollectionConsumer",E);return re.useCallback(()=>{const C=T.collectionRef.current;if(!C)return[];const O=Array.from(C.querySelectorAll(`[${y}]`));return Array.from(T.itemMap.values()).sort((G,I)=>O.indexOf(G.ref.current)-O.indexOf(I.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:m,Slot:p,ItemSlot:A},R,s]}var S5=v.createContext(void 0);function E5(t){const r=v.useContext(S5);return t||r||"ltr"}const N5=["top","right","bottom","left"],Ha=Math.min,Zt=Math.max,Ii=Math.round,gi=Math.floor,Mn=t=>({x:t,y:t}),T5={left:"right",right:"left",bottom:"top",top:"bottom"};function df(t,r,o){return Zt(t,Ha(r,o))}function aa(t,r){return typeof t=="function"?t(r):t}function ra(t){return t.split("-")[0]}function _o(t){return t.split("-")[1]}function nm(t){return t==="x"?"y":"x"}function am(t){return t==="y"?"height":"width"}function Dn(t){const r=t[0];return r==="t"||r==="b"?"y":"x"}function rm(t){return nm(Dn(t))}function C5(t,r,o){o===void 0&&(o=!1);const s=_o(t),c=rm(t),u=am(c);let m=c==="x"?s===(o?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(m=Gi(m)),[m,Gi(m)]}function R5(t){const r=Gi(t);return[ff(t),r,ff(r)]}function ff(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Wv=["left","right"],Fv=["right","left"],A5=["top","bottom"],k5=["bottom","top"];function _5(t,r,o){switch(t){case"top":case"bottom":return o?r?Fv:Wv:r?Wv:Fv;case"left":case"right":return r?A5:k5;default:return[]}}function j5(t,r,o,s){const c=_o(t);let u=_5(ra(t),o==="start",s);return c&&(u=u.map(m=>m+"-"+c),r&&(u=u.concat(u.map(ff)))),u}function Gi(t){const r=ra(t);return T5[r]+t.slice(r.length)}function O5(t){return{top:0,right:0,bottom:0,left:0,...t}}function Kb(t){return typeof t!="number"?O5(t):{top:t,right:t,bottom:t,left:t}}function Xi(t){const{x:r,y:o,width:s,height:c}=t;return{width:s,height:c,top:o,left:r,right:r+s,bottom:o+c,x:r,y:o}}function Jv(t,r,o){let{reference:s,floating:c}=t;const u=Dn(r),m=rm(r),h=am(m),g=ra(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 A;switch(g){case"top":A={x:b,y:s.y-c.height};break;case"bottom":A={x:b,y:s.y+s.height};break;case"right":A={x:s.x+s.width,y};break;case"left":A={x:s.x-c.width,y};break;default:A={x:s.x,y:s.y}}switch(_o(r)){case"start":A[m]-=S*(o&&p?-1:1);break;case"end":A[m]+=S*(o&&p?-1:1);break}return A}async function D5(t,r){var o;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:A=0}=aa(r,t),R=Kb(A),T=h[S?y==="floating"?"reference":"floating":y],k=Xi(await u.getClippingRect({element:(o=await(u.isElement==null?void 0:u.isElement(T)))==null||o?T:T.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:p,rootBoundary:b,strategy:g})),C=y==="floating"?{x:s,y:c,width:m.floating.width,height:m.floating.height}:m.reference,O=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h.floating)),L=await(u.isElement==null?void 0:u.isElement(O))?await(u.getScale==null?void 0:u.getScale(O))||{x:1,y:1}:{x:1,y:1},U=Xi(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:C,offsetParent:O,strategy:g}):C);return{top:(k.top-U.top+R.top)/L.y,bottom:(U.bottom-k.bottom+R.bottom)/L.y,left:(k.left-U.left+R.left)/L.x,right:(U.right-k.right+R.right)/L.x}}const M5=50,z5=async(t,r,o)=>{const{placement:s="bottom",strategy:c="absolute",middleware:u=[],platform:m}=o,h=m.detectOverflow?m:{...m,detectOverflow:D5},g=await(m.isRTL==null?void 0:m.isRTL(r));let p=await m.getElementRects({reference:t,floating:r,strategy:c}),{x:b,y}=Jv(p,s,g),S=s,A=0;const R={};for(let E=0;E<u.length;E++){const T=u[E];if(!T)continue;const{name:k,fn:C}=T,{x:O,y:L,data:U,reset:G}=await C({x:b,y,initialPlacement:s,placement:S,strategy:c,middlewareData:R,rects:p,platform:h,elements:{reference:t,floating:r}});b=O??b,y=L??y,R[k]={...R[k],...U},G&&A<M5&&(A++,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}=Jv(p,S,g)),E=-1)}return{x:b,y,placement:S,strategy:c,middlewareData:R}},L5=t=>({name:"arrow",options:t,async fn(r){const{x:o,y:s,placement:c,rects:u,platform:m,elements:h,middlewareData:g}=r,{element:p,padding:b=0}=aa(t,r)||{};if(p==null)return{};const y=Kb(b),S={x:o,y:s},A=rm(c),R=am(A),E=await m.getDimensions(p),T=A==="y",k=T?"top":"left",C=T?"bottom":"right",O=T?"clientHeight":"clientWidth",L=u.reference[R]+u.reference[A]-S[A]-u.floating[R],U=S[A]-u.reference[A],G=await(m.getOffsetParent==null?void 0:m.getOffsetParent(p));let I=G?G[O]:0;(!I||!await(m.isElement==null?void 0:m.isElement(G)))&&(I=h.floating[O]||u.floating[R]);const Y=L/2-U/2,ae=I/2-E[R]/2-1,fe=Ha(y[k],ae),ce=Ha(y[C],ae),ue=fe,de=I-E[R]-ce,ie=I/2-E[R]/2+Y,le=df(ue,ie,de),j=!g.arrow&&_o(c)!=null&&ie!==le&&u.reference[R]/2-(ie<ue?fe:ce)-E[R]/2<0,$=j?ie<ue?ie-ue:ie-de:0;return{[A]:S[A]+$,data:{[A]:le,centerOffset:ie-le-$,...j&&{alignmentOffset:$}},reset:j}}}),U5=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var o,s;const{placement:c,middlewareData:u,rects:m,initialPlacement:h,platform:g,elements:p}=r,{mainAxis:b=!0,crossAxis:y=!0,fallbackPlacements:S,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:E=!0,...T}=aa(t,r);if((o=u.arrow)!=null&&o.alignmentOffset)return{};const k=ra(c),C=Dn(h),O=ra(h)===h,L=await(g.isRTL==null?void 0:g.isRTL(p.floating)),U=S||(O||!E?[Gi(h)]:R5(h)),G=R!=="none";!S&&G&&U.push(...j5(h,E,R,L));const I=[h,...U],Y=await g.detectOverflow(r,T),ae=[];let fe=((s=u.flip)==null?void 0:s.overflows)||[];if(b&&ae.push(Y[k]),y){const ie=C5(c,m,L);ae.push(Y[ie[0]],Y[ie[1]])}if(fe=[...fe,{placement:c,overflows:ae}],!ae.every(ie=>ie<=0)){var ce,ue;const ie=(((ce=u.flip)==null?void 0:ce.index)||0)+1,le=I[ie];if(le&&(!(y==="alignment"?C!==Dn(le):!1)||fe.every(D=>Dn(D.placement)===C?D.overflows[0]>0:!0)))return{data:{index:ie,overflows:fe},reset:{placement:le}};let j=(ue=fe.filter($=>$.overflows[0]<=0).sort(($,D)=>$.overflows[1]-D.overflows[1])[0])==null?void 0:ue.placement;if(!j)switch(A){case"bestFit":{var de;const $=(de=fe.filter(D=>{if(G){const W=Dn(D.placement);return W===C||W==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(W=>W>0).reduce((W,N)=>W+N,0)]).sort((D,W)=>D[1]-W[1])[0])==null?void 0:de[0];$&&(j=$);break}case"initialPlacement":j=h;break}if(c!==j)return{reset:{placement:j}}}return{}}}};function e0(t,r){return{top:t.top-r.height,right:t.right-r.width,bottom:t.bottom-r.height,left:t.left-r.width}}function t0(t){return N5.some(r=>t[r]>=0)}const B5=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(r){const{rects:o,platform:s}=r,{strategy:c="referenceHidden",...u}=aa(t,r);switch(c){case"referenceHidden":{const m=await s.detectOverflow(r,{...u,elementContext:"reference"}),h=e0(m,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:t0(h)}}}case"escaped":{const m=await s.detectOverflow(r,{...u,altBoundary:!0}),h=e0(m,o.floating);return{data:{escapedOffsets:h,escaped:t0(h)}}}default:return{}}}}},Zb=new Set(["left","top"]);async function H5(t,r){const{placement:o,platform:s,elements:c}=t,u=await(s.isRTL==null?void 0:s.isRTL(c.floating)),m=ra(o),h=_o(o),g=Dn(o)==="y",p=Zb.has(m)?-1:1,b=u&&g?-1:1,y=aa(r,t);let{mainAxis:S,crossAxis:A,alignmentAxis:R}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return h&&typeof R=="number"&&(A=h==="end"?R*-1:R),g?{x:A*b,y:S*p}:{x:S*p,y:A*b}}const P5=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){var o,s;const{x:c,y:u,placement:m,middlewareData:h}=r,g=await H5(r,t);return m===((o=h.offset)==null?void 0:o.placement)&&(s=h.arrow)!=null&&s.alignmentOffset?{}:{x:c+g.x,y:u+g.y,data:{...g,placement:m}}}}},$5=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){const{x:o,y:s,placement:c,platform:u}=r,{mainAxis:m=!0,crossAxis:h=!1,limiter:g={fn:k=>{let{x:C,y:O}=k;return{x:C,y:O}}},...p}=aa(t,r),b={x:o,y:s},y=await u.detectOverflow(r,p),S=Dn(ra(c)),A=nm(S);let R=b[A],E=b[S];if(m){const k=A==="y"?"top":"left",C=A==="y"?"bottom":"right",O=R+y[k],L=R-y[C];R=df(O,R,L)}if(h){const k=S==="y"?"top":"left",C=S==="y"?"bottom":"right",O=E+y[k],L=E-y[C];E=df(O,E,L)}const T=g.fn({...r,[A]:R,[S]:E});return{...T,data:{x:T.x-o,y:T.y-s,enabled:{[A]:m,[S]:h}}}}}},q5=function(t){return t===void 0&&(t={}),{options:t,fn(r){const{x:o,y:s,placement:c,rects:u,middlewareData:m}=r,{offset:h=0,mainAxis:g=!0,crossAxis:p=!0}=aa(t,r),b={x:o,y:s},y=Dn(c),S=nm(y);let A=b[S],R=b[y];const E=aa(h,r),T=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(g){const O=S==="y"?"height":"width",L=u.reference[S]-u.floating[O]+T.mainAxis,U=u.reference[S]+u.reference[O]-T.mainAxis;A<L?A=L:A>U&&(A=U)}if(p){var k,C;const O=S==="y"?"width":"height",L=Zb.has(ra(c)),U=u.reference[y]-u.floating[O]+(L&&((k=m.offset)==null?void 0:k[y])||0)+(L?0:T.crossAxis),G=u.reference[y]+u.reference[O]+(L?0:((C=m.offset)==null?void 0:C[y])||0)-(L?T.crossAxis:0);R<U?R=U:R>G&&(R=G)}return{[S]:A,[y]:R}}}},V5=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){var o,s;const{placement:c,rects:u,platform:m,elements:h}=r,{apply:g=()=>{},...p}=aa(t,r),b=await m.detectOverflow(r,p),y=ra(c),S=_o(c),A=Dn(c)==="y",{width:R,height:E}=u.floating;let T,k;y==="top"||y==="bottom"?(T=y,k=S===(await(m.isRTL==null?void 0:m.isRTL(h.floating))?"start":"end")?"left":"right"):(k=y,T=S==="end"?"top":"bottom");const C=E-b.top-b.bottom,O=R-b.left-b.right,L=Ha(E-b[T],C),U=Ha(R-b[k],O),G=!r.middlewareData.shift;let I=L,Y=U;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&(Y=O),(s=r.middlewareData.shift)!=null&&s.enabled.y&&(I=C),G&&!S){const fe=Zt(b.left,0),ce=Zt(b.right,0),ue=Zt(b.top,0),de=Zt(b.bottom,0);A?Y=R-2*(fe!==0||ce!==0?fe+ce:Zt(b.left,b.right)):I=E-2*(ue!==0||de!==0?ue+de:Zt(b.top,b.bottom))}await g({...r,availableWidth:Y,availableHeight:I});const ae=await m.getDimensions(h.floating);return R!==ae.width||E!==ae.height?{reset:{rects:!0}}:{}}}};function ic(){return typeof window<"u"}function jo(t){return Wb(t)?(t.nodeName||"").toLowerCase():"#document"}function Wt(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function zn(t){var r;return(r=(Wb(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function Wb(t){return ic()?t instanceof Node||t instanceof Wt(t).Node:!1}function xn(t){return ic()?t instanceof Element||t instanceof Wt(t).Element:!1}function la(t){return ic()?t instanceof HTMLElement||t instanceof Wt(t).HTMLElement:!1}function n0(t){return!ic()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Wt(t).ShadowRoot}function Kl(t){const{overflow:r,overflowX:o,overflowY:s,display:c}=wn(t);return/auto|scroll|overlay|hidden|clip/.test(r+s+o)&&c!=="inline"&&c!=="contents"}function Y5(t){return/^(table|td|th)$/.test(jo(t))}function cc(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const I5=/transform|translate|scale|rotate|perspective|filter/,G5=/paint|layout|strict|content/,mr=t=>!!t&&t!=="none";let qd;function om(t){const r=xn(t)?wn(t):t;return mr(r.transform)||mr(r.translate)||mr(r.scale)||mr(r.rotate)||mr(r.perspective)||!lm()&&(mr(r.backdropFilter)||mr(r.filter))||I5.test(r.willChange||"")||G5.test(r.contain||"")}function X5(t){let r=Pa(t);for(;la(r)&&!No(r);){if(om(r))return r;if(cc(r))return null;r=Pa(r)}return null}function lm(){return qd==null&&(qd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qd}function No(t){return/^(html|body|#document)$/.test(jo(t))}function wn(t){return Wt(t).getComputedStyle(t)}function uc(t){return xn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Pa(t){if(jo(t)==="html")return t;const r=t.assignedSlot||t.parentNode||n0(t)&&t.host||zn(t);return n0(r)?r.host:r}function Fb(t){const r=Pa(t);return No(r)?t.ownerDocument?t.ownerDocument.body:t.body:la(r)&&Kl(r)?r:Fb(r)}function Yl(t,r,o){var s;r===void 0&&(r=[]),o===void 0&&(o=!0);const c=Fb(t),u=c===((s=t.ownerDocument)==null?void 0:s.body),m=Wt(c);if(u){const h=mf(m);return r.concat(m,m.visualViewport||[],Kl(c)?c:[],h&&o?Yl(h):[])}else return r.concat(c,Yl(c,[],o))}function mf(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Jb(t){const r=wn(t);let o=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const c=la(t),u=c?t.offsetWidth:o,m=c?t.offsetHeight:s,h=Ii(o)!==u||Ii(s)!==m;return h&&(o=u,s=m),{width:o,height:s,$:h}}function sm(t){return xn(t)?t:t.contextElement}function Eo(t){const r=sm(t);if(!la(r))return Mn(1);const o=r.getBoundingClientRect(),{width:s,height:c,$:u}=Jb(r);let m=(u?Ii(o.width):o.width)/s,h=(u?Ii(o.height):o.height)/c;return(!m||!Number.isFinite(m))&&(m=1),(!h||!Number.isFinite(h))&&(h=1),{x:m,y:h}}const Q5=Mn(0);function ex(t){const r=Wt(t);return!lm()||!r.visualViewport?Q5:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function K5(t,r,o){return r===void 0&&(r=!1),!o||r&&o!==Wt(t)?!1:r}function br(t,r,o,s){r===void 0&&(r=!1),o===void 0&&(o=!1);const c=t.getBoundingClientRect(),u=sm(t);let m=Mn(1);r&&(s?xn(s)&&(m=Eo(s)):m=Eo(t));const h=K5(u,o,s)?ex(u):Mn(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=Wt(u),A=s&&xn(s)?Wt(s):s;let R=S,E=mf(R);for(;E&&s&&A!==R;){const T=Eo(E),k=E.getBoundingClientRect(),C=wn(E),O=k.left+(E.clientLeft+parseFloat(C.paddingLeft))*T.x,L=k.top+(E.clientTop+parseFloat(C.paddingTop))*T.y;g*=T.x,p*=T.y,b*=T.x,y*=T.y,g+=O,p+=L,R=Wt(E),E=mf(R)}}return Xi({width:b,height:y,x:g,y:p})}function dc(t,r){const o=uc(t).scrollLeft;return r?r.left+o:br(zn(t)).left+o}function tx(t,r){const o=t.getBoundingClientRect(),s=o.left+r.scrollLeft-dc(t,o),c=o.top+r.scrollTop;return{x:s,y:c}}function Z5(t){let{elements:r,rect:o,offsetParent:s,strategy:c}=t;const u=c==="fixed",m=zn(s),h=r?cc(r.floating):!1;if(s===m||h&&u)return o;let g={scrollLeft:0,scrollTop:0},p=Mn(1);const b=Mn(0),y=la(s);if((y||!y&&!u)&&((jo(s)!=="body"||Kl(m))&&(g=uc(s)),y)){const A=br(s);p=Eo(s),b.x=A.x+s.clientLeft,b.y=A.y+s.clientTop}const S=m&&!y&&!u?tx(m,g):Mn(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-g.scrollLeft*p.x+b.x+S.x,y:o.y*p.y-g.scrollTop*p.y+b.y+S.y}}function W5(t){return Array.from(t.getClientRects())}function F5(t){const r=zn(t),o=uc(t),s=t.ownerDocument.body,c=Zt(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),u=Zt(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let m=-o.scrollLeft+dc(t);const h=-o.scrollTop;return wn(s).direction==="rtl"&&(m+=Zt(r.clientWidth,s.clientWidth)-c),{width:c,height:u,x:m,y:h}}const a0=25;function J5(t,r){const o=Wt(t),s=zn(t),c=o.visualViewport;let u=s.clientWidth,m=s.clientHeight,h=0,g=0;if(c){u=c.width,m=c.height;const b=lm();(!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),A=b.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,R=Math.abs(s.clientWidth-y.clientWidth-A);R<=a0&&(u-=R)}else p<=a0&&(u+=p);return{width:u,height:m,x:h,y:g}}function ek(t,r){const o=br(t,!0,r==="fixed"),s=o.top+t.clientTop,c=o.left+t.clientLeft,u=la(t)?Eo(t):Mn(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 r0(t,r,o){let s;if(r==="viewport")s=J5(t,o);else if(r==="document")s=F5(zn(t));else if(xn(r))s=ek(r,o);else{const c=ex(t);s={x:r.x-c.x,y:r.y-c.y,width:r.width,height:r.height}}return Xi(s)}function nx(t,r){const o=Pa(t);return o===r||!xn(o)||No(o)?!1:wn(o).position==="fixed"||nx(o,r)}function tk(t,r){const o=r.get(t);if(o)return o;let s=Yl(t,[],!1).filter(h=>xn(h)&&jo(h)!=="body"),c=null;const u=wn(t).position==="fixed";let m=u?Pa(t):t;for(;xn(m)&&!No(m);){const h=wn(m),g=om(m);!g&&h.position==="fixed"&&(c=null),(u?!g&&!c:!g&&h.position==="static"&&!!c&&(c.position==="absolute"||c.position==="fixed")||Kl(m)&&!g&&nx(t,m))?s=s.filter(b=>b!==m):c=h,m=Pa(m)}return r.set(t,s),s}function nk(t){let{element:r,boundary:o,rootBoundary:s,strategy:c}=t;const m=[...o==="clippingAncestors"?cc(r)?[]:tk(r,this._c):[].concat(o),s],h=r0(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 A=r0(r,m[S],c);g=Zt(A.top,g),p=Ha(A.right,p),b=Ha(A.bottom,b),y=Zt(A.left,y)}return{width:p-y,height:b-g,x:y,y:g}}function ak(t){const{width:r,height:o}=Jb(t);return{width:r,height:o}}function rk(t,r,o){const s=la(r),c=zn(r),u=o==="fixed",m=br(t,!0,u,r);let h={scrollLeft:0,scrollTop:0};const g=Mn(0);function p(){g.x=dc(c)}if(s||!s&&!u)if((jo(r)!=="body"||Kl(c))&&(h=uc(r)),s){const A=br(r,!0,u,r);g.x=A.x+r.clientLeft,g.y=A.y+r.clientTop}else c&&p();u&&!s&&c&&p();const b=c&&!s&&!u?tx(c,h):Mn(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 Vd(t){return wn(t).position==="static"}function o0(t,r){if(!la(t)||wn(t).position==="fixed")return null;if(r)return r(t);let o=t.offsetParent;return zn(t)===o&&(o=o.ownerDocument.body),o}function ax(t,r){const o=Wt(t);if(cc(t))return o;if(!la(t)){let c=Pa(t);for(;c&&!No(c);){if(xn(c)&&!Vd(c))return c;c=Pa(c)}return o}let s=o0(t,r);for(;s&&Y5(s)&&Vd(s);)s=o0(s,r);return s&&No(s)&&Vd(s)&&!om(s)?o:s||X5(t)||o}const ok=async function(t){const r=this.getOffsetParent||ax,o=this.getDimensions,s=await o(t.floating);return{reference:rk(t.reference,await r(t.floating),t.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function lk(t){return wn(t).direction==="rtl"}const sk={convertOffsetParentRelativeRectToViewportRelativeRect:Z5,getDocumentElement:zn,getClippingRect:nk,getOffsetParent:ax,getElementRects:ok,getClientRects:W5,getDimensions:ak,getScale:Eo,isElement:xn,isRTL:lk};function rx(t,r){return t.x===r.x&&t.y===r.y&&t.width===r.width&&t.height===r.height}function ik(t,r){let o=null,s;const c=zn(t);function u(){var h;clearTimeout(s),(h=o)==null||h.disconnect(),o=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:A}=p;if(h||r(),!S||!A)return;const R=gi(y),E=gi(c.clientWidth-(b+S)),T=gi(c.clientHeight-(y+A)),k=gi(b),O={rootMargin:-R+"px "+-E+"px "+-T+"px "+-k+"px",threshold:Zt(0,Ha(1,g))||1};let L=!0;function U(G){const I=G[0].intersectionRatio;if(I!==g){if(!L)return m();I?m(!1,I):s=setTimeout(()=>{m(!1,1e-7)},1e3)}I===1&&!rx(p,t.getBoundingClientRect())&&m(),L=!1}try{o=new IntersectionObserver(U,{...O,root:c.ownerDocument})}catch{o=new IntersectionObserver(U,O)}o.observe(t)}return m(!0),u}function ck(t,r,o,s){s===void 0&&(s={});const{ancestorScroll:c=!0,ancestorResize:u=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:g=!1}=s,p=sm(t),b=c||u?[...p?Yl(p):[],...r?Yl(r):[]]:[];b.forEach(k=>{c&&k.addEventListener("scroll",o,{passive:!0}),u&&k.addEventListener("resize",o)});const y=p&&h?ik(p,o):null;let S=-1,A=null;m&&(A=new ResizeObserver(k=>{let[C]=k;C&&C.target===p&&A&&r&&(A.unobserve(r),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var O;(O=A)==null||O.observe(r)})),o()}),p&&!g&&A.observe(p),r&&A.observe(r));let R,E=g?br(t):null;g&&T();function T(){const k=br(t);E&&!rx(E,k)&&o(),E=k,R=requestAnimationFrame(T)}return o(),()=>{var k;b.forEach(C=>{c&&C.removeEventListener("scroll",o),u&&C.removeEventListener("resize",o)}),y?.(),(k=A)==null||k.disconnect(),A=null,g&&cancelAnimationFrame(R)}}const uk=P5,dk=$5,fk=U5,mk=V5,hk=B5,l0=L5,pk=q5,gk=(t,r,o)=>{const s=new Map,c={platform:sk,...o},u={...c.platform,_c:s};return z5(t,r,{...c,platform:u})};var vk=typeof document<"u",yk=function(){},Ti=vk?v.useLayoutEffect:yk;function Qi(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 o,s,c;if(t&&r&&typeof t=="object"){if(Array.isArray(t)){if(o=t.length,o!==r.length)return!1;for(s=o;s--!==0;)if(!Qi(t[s],r[s]))return!1;return!0}if(c=Object.keys(t),o=c.length,o!==Object.keys(r).length)return!1;for(s=o;s--!==0;)if(!{}.hasOwnProperty.call(r,c[s]))return!1;for(s=o;s--!==0;){const u=c[s];if(!(u==="_owner"&&t.$$typeof)&&!Qi(t[u],r[u]))return!1}return!0}return t!==t&&r!==r}function ox(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function s0(t,r){const o=ox(t);return Math.round(r*o)/o}function Yd(t){const r=v.useRef(t);return Ti(()=>{r.current=t}),r}function bk(t){t===void 0&&(t={});const{placement:r="bottom",strategy:o="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:o,placement:r,middlewareData:{},isPositioned:!1}),[S,A]=v.useState(s);Qi(S,s)||A(s);const[R,E]=v.useState(null),[T,k]=v.useState(null),C=v.useCallback(D=>{D!==G.current&&(G.current=D,E(D))},[]),O=v.useCallback(D=>{D!==I.current&&(I.current=D,k(D))},[]),L=u||R,U=m||T,G=v.useRef(null),I=v.useRef(null),Y=v.useRef(b),ae=g!=null,fe=Yd(g),ce=Yd(c),ue=Yd(p),de=v.useCallback(()=>{if(!G.current||!I.current)return;const D={placement:r,strategy:o,middleware:S};ce.current&&(D.platform=ce.current),gk(G.current,I.current,D).then(W=>{const N={...W,isPositioned:ue.current!==!1};ie.current&&!Qi(Y.current,N)&&(Y.current=N,Xl.flushSync(()=>{y(N)}))})},[S,r,o,ce,ue]);Ti(()=>{p===!1&&Y.current.isPositioned&&(Y.current.isPositioned=!1,y(D=>({...D,isPositioned:!1})))},[p]);const ie=v.useRef(!1);Ti(()=>(ie.current=!0,()=>{ie.current=!1}),[]),Ti(()=>{if(L&&(G.current=L),U&&(I.current=U),L&&U){if(fe.current)return fe.current(L,U,de);de()}},[L,U,de,fe,ae]);const le=v.useMemo(()=>({reference:G,floating:I,setReference:C,setFloating:O}),[C,O]),j=v.useMemo(()=>({reference:L,floating:U}),[L,U]),$=v.useMemo(()=>{const D={position:o,left:0,top:0};if(!j.floating)return D;const W=s0(j.floating,b.x),N=s0(j.floating,b.y);return h?{...D,transform:"translate("+W+"px, "+N+"px)",...ox(j.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:W,top:N}},[o,h,j.floating,b.x,b.y]);return v.useMemo(()=>({...b,update:de,refs:le,elements:j,floatingStyles:$}),[b,de,le,j,$])}const xk=t=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:t,fn(o){const{element:s,padding:c}=typeof t=="function"?t(o):t;return s&&r(s)?s.current!=null?l0({element:s.current,padding:c}).fn(o):{}:s?l0({element:s,padding:c}).fn(o):{}}}},wk=(t,r)=>{const o=uk(t);return{name:o.name,fn:o.fn,options:[t,r]}},Sk=(t,r)=>{const o=dk(t);return{name:o.name,fn:o.fn,options:[t,r]}},Ek=(t,r)=>({fn:pk(t).fn,options:[t,r]}),Nk=(t,r)=>{const o=fk(t);return{name:o.name,fn:o.fn,options:[t,r]}},Tk=(t,r)=>{const o=mk(t);return{name:o.name,fn:o.fn,options:[t,r]}},Ck=(t,r)=>{const o=hk(t);return{name:o.name,fn:o.fn,options:[t,r]}},Rk=(t,r)=>{const o=xk(t);return{name:o.name,fn:o.fn,options:[t,r]}};var Ak="Arrow",lx=v.forwardRef((t,r)=>{const{children:o,width:s=10,height:c=5,...u}=t;return f.jsx($e.svg,{...u,ref:r,width:s,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?o:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});lx.displayName=Ak;var kk=lx,im="Popper",[sx,ix]=ko(im),[_k,cx]=sx(im),ux=t=>{const{__scopePopper:r,children:o}=t,[s,c]=v.useState(null);return f.jsx(_k,{scope:r,anchor:s,onAnchorChange:c,children:o})};ux.displayName=im;var dx="PopperAnchor",fx=v.forwardRef((t,r)=>{const{__scopePopper:o,virtualRef:s,...c}=t,u=cx(dx,o),m=v.useRef(null),h=Fe(r,m),g=v.useRef(null);return v.useEffect(()=>{const p=g.current;g.current=s?.current||m.current,p!==g.current&&u.onAnchorChange(g.current)}),s?null:f.jsx($e.div,{...c,ref:h})});fx.displayName=dx;var cm="PopperContent",[jk,Ok]=sx(cm),mx=v.forwardRef((t,r)=>{const{__scopePopper:o,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:A="optimized",onPlaced:R,...E}=t,T=cx(cm,o),[k,C]=v.useState(null),O=Fe(r,oe=>C(oe)),[L,U]=v.useState(null),G=Pb(L),I=G?.width??0,Y=G?.height??0,ae=s+(u!=="center"?"-"+u:""),fe=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},ce=Array.isArray(p)?p:[p],ue=ce.length>0,de={padding:fe,boundary:ce.filter(Mk),altBoundary:ue},{refs:ie,floatingStyles:le,placement:j,isPositioned:$,middlewareData:D}=bk({strategy:"fixed",placement:ae,whileElementsMounted:(...oe)=>ck(...oe,{animationFrame:A==="always"}),elements:{reference:T.anchor},middleware:[wk({mainAxis:c+Y,alignmentAxis:m}),g&&Sk({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?Ek():void 0,...de}),g&&Nk({...de}),Tk({...de,apply:({elements:oe,rects:se,availableWidth:xe,availableHeight:Re})=>{const{width:Ne,height:Ae}=se.reference,Je=oe.floating.style;Je.setProperty("--radix-popper-available-width",`${xe}px`),Je.setProperty("--radix-popper-available-height",`${Re}px`),Je.setProperty("--radix-popper-anchor-width",`${Ne}px`),Je.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),L&&Rk({element:L,padding:h}),zk({arrowWidth:I,arrowHeight:Y}),S&&Ck({strategy:"referenceHidden",...de})]}),[W,N]=gx(j),V=vr(R);Ot(()=>{$&&V?.()},[$,V]);const ne=D.arrow?.x,X=D.arrow?.y,F=D.arrow?.centerOffset!==0,[ee,te]=v.useState();return Ot(()=>{k&&te(window.getComputedStyle(k).zIndex)},[k]),f.jsx("div",{ref:ie.setFloating,"data-radix-popper-content-wrapper":"",style:{...le,transform:$?le.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:f.jsx(jk,{scope:o,placedSide:W,onArrowChange:U,arrowX:ne,arrowY:X,shouldHideArrow:F,children:f.jsx($e.div,{"data-side":W,"data-align":N,...E,ref:O,style:{...E.style,animation:$?void 0:"none"}})})})});mx.displayName=cm;var hx="PopperArrow",Dk={top:"bottom",right:"left",bottom:"top",left:"right"},px=v.forwardRef(function(r,o){const{__scopePopper:s,...c}=r,u=Ok(hx,s),m=Dk[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(kk,{...c,ref:o,style:{...c.style,display:"block"}})})});px.displayName=hx;function Mk(t){return t!==null}var zk=t=>({name:"transformOrigin",options:t,fn(r){const{placement:o,rects:s,middlewareData:c}=r,m=c.arrow?.centerOffset!==0,h=m?0:t.arrowWidth,g=m?0:t.arrowHeight,[p,b]=gx(o),y={start:"0%",center:"50%",end:"100%"}[b],S=(c.arrow?.x??0)+h/2,A=(c.arrow?.y??0)+g/2;let R="",E="";return p==="bottom"?(R=m?y:`${S}px`,E=`${-g}px`):p==="top"?(R=m?y:`${S}px`,E=`${s.floating.height+g}px`):p==="right"?(R=`${-g}px`,E=m?y:`${A}px`):p==="left"&&(R=`${s.floating.width+g}px`,E=m?y:`${A}px`),{data:{x:R,y:E}}}});function gx(t){const[r,o="center"]=t.split("-");return[r,o]}var Lk=ux,Uk=fx,Bk=mx,Hk=px,vx=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"}),Pk="VisuallyHidden",$k=v.forwardRef((t,r)=>f.jsx($e.span,{...t,ref:r,style:{...vx,...t.style}}));$k.displayName=Pk;var qk=[" ","Enter","ArrowUp","ArrowDown"],Vk=[" ","Enter"],xr="Select",[fc,mc,Yk]=w5(xr),[Oo]=ko(xr,[Yk,ix]),hc=ix(),[Ik,Va]=Oo(xr),[Gk,Xk]=Oo(xr),yx=t=>{const{__scopeSelect:r,children:o,open:s,defaultOpen:c,onOpenChange:u,value:m,defaultValue:h,onValueChange:g,dir:p,name:b,autoComplete:y,disabled:S,required:A,form:R}=t,E=hc(r),[T,k]=v.useState(null),[C,O]=v.useState(null),[L,U]=v.useState(!1),G=E5(p),[I,Y]=zi({prop:s,defaultProp:c??!1,onChange:u,caller:xr}),[ae,fe]=zi({prop:m,defaultProp:h,onChange:g,caller:xr}),ce=v.useRef(null),ue=T?R||!!T.closest("form"):!0,[de,ie]=v.useState(new Set),le=Array.from(de).map(j=>j.props.value).join(";");return f.jsx(Lk,{...E,children:f.jsxs(Ik,{required:A,scope:r,trigger:T,onTriggerChange:k,valueNode:C,onValueNodeChange:O,valueNodeHasChildren:L,onValueNodeHasChildrenChange:U,contentId:xo(),value:ae,onValueChange:fe,open:I,onOpenChange:Y,dir:G,triggerPointerDownPosRef:ce,disabled:S,children:[f.jsx(fc.Provider,{scope:r,children:f.jsx(Gk,{scope:t.__scopeSelect,onNativeOptionAdd:v.useCallback(j=>{ie($=>new Set($).add(j))},[]),onNativeOptionRemove:v.useCallback(j=>{ie($=>{const D=new Set($);return D.delete(j),D})},[]),children:o})}),ue?f.jsxs(Vx,{"aria-hidden":!0,required:A,tabIndex:-1,name:b,autoComplete:y,value:ae,onChange:j=>fe(j.target.value),disabled:S,form:R,children:[ae===void 0?f.jsx("option",{value:""}):null,Array.from(de)]},le):null]})})};yx.displayName=xr;var bx="SelectTrigger",xx=v.forwardRef((t,r)=>{const{__scopeSelect:o,disabled:s=!1,...c}=t,u=hc(o),m=Va(bx,o),h=m.disabled||s,g=Fe(r,m.onTriggerChange),p=mc(o),b=v.useRef("touch"),[y,S,A]=Ix(E=>{const T=p().filter(O=>!O.disabled),k=T.find(O=>O.value===m.value),C=Gx(T,E,k);C!==void 0&&m.onValueChange(C.value)}),R=E=>{h||(m.onOpenChange(!0),A()),E&&(m.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return f.jsx(Uk,{asChild:!0,...u,children:f.jsx($e.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":Yx(m.value)?"":void 0,...c,ref:g,onClick:Ie(c.onClick,E=>{E.currentTarget.focus(),b.current!=="mouse"&&R(E)}),onPointerDown:Ie(c.onPointerDown,E=>{b.current=E.pointerType;const T=E.target;T.hasPointerCapture(E.pointerId)&&T.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(R(E),E.preventDefault())}),onKeyDown:Ie(c.onKeyDown,E=>{const T=y.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&S(E.key),!(T&&E.key===" ")&&qk.includes(E.key)&&(R(),E.preventDefault())})})})});xx.displayName=bx;var wx="SelectValue",Sx=v.forwardRef((t,r)=>{const{__scopeSelect:o,className:s,style:c,children:u,placeholder:m="",...h}=t,g=Va(wx,o),{onValueNodeHasChildrenChange:p}=g,b=u!==void 0,y=Fe(r,g.onValueNodeChange);return Ot(()=>{p(b)},[p,b]),f.jsx($e.span,{...h,ref:y,style:{pointerEvents:"none"},children:Yx(g.value)?f.jsx(f.Fragment,{children:m}):u})});Sx.displayName=wx;var Qk="SelectIcon",Ex=v.forwardRef((t,r)=>{const{__scopeSelect:o,children:s,...c}=t;return f.jsx($e.span,{"aria-hidden":!0,...c,ref:r,children:s||"▼"})});Ex.displayName=Qk;var Kk="SelectPortal",Nx=t=>f.jsx(If,{asChild:!0,...t});Nx.displayName=Kk;var wr="SelectContent",Tx=v.forwardRef((t,r)=>{const o=Va(wr,t.__scopeSelect),[s,c]=v.useState();if(Ot(()=>{c(new DocumentFragment)},[]),!o.open){const u=s;return u?Xl.createPortal(f.jsx(Cx,{scope:t.__scopeSelect,children:f.jsx(fc.Slot,{scope:t.__scopeSelect,children:f.jsx("div",{children:t.children})})}),u):null}return f.jsx(Rx,{...t,ref:r})});Tx.displayName=wr;var vn=10,[Cx,Ya]=Oo(wr),Zk="SelectContentImpl",Wk=Vl("SelectContent.RemoveScroll"),Rx=v.forwardRef((t,r)=>{const{__scopeSelect:o,position:s="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:u,onPointerDownOutside:m,side:h,sideOffset:g,align:p,alignOffset:b,arrowPadding:y,collisionBoundary:S,collisionPadding:A,sticky:R,hideWhenDetached:E,avoidCollisions:T,...k}=t,C=Va(wr,o),[O,L]=v.useState(null),[U,G]=v.useState(null),I=Fe(r,oe=>L(oe)),[Y,ae]=v.useState(null),[fe,ce]=v.useState(null),ue=mc(o),[de,ie]=v.useState(!1),le=v.useRef(!1);v.useEffect(()=>{if(O)return Py(O)},[O]),jy();const j=v.useCallback(oe=>{const[se,...xe]=ue().map(Ae=>Ae.ref.current),[Re]=xe.slice(-1),Ne=document.activeElement;for(const Ae of oe)if(Ae===Ne||(Ae?.scrollIntoView({block:"nearest"}),Ae===se&&U&&(U.scrollTop=0),Ae===Re&&U&&(U.scrollTop=U.scrollHeight),Ae?.focus(),document.activeElement!==Ne))return},[ue,U]),$=v.useCallback(()=>j([Y,O]),[j,Y,O]);v.useEffect(()=>{de&&$()},[de,$]);const{onOpenChange:D,triggerPointerDownPosRef:W}=C;v.useEffect(()=>{if(O){let oe={x:0,y:0};const se=Re=>{oe={x:Math.abs(Math.round(Re.pageX)-(W.current?.x??0)),y:Math.abs(Math.round(Re.pageY)-(W.current?.y??0))}},xe=Re=>{oe.x<=10&&oe.y<=10?Re.preventDefault():O.contains(Re.target)||D(!1),document.removeEventListener("pointermove",se),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",se),document.addEventListener("pointerup",xe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",se),document.removeEventListener("pointerup",xe,{capture:!0})}}},[O,D,W]),v.useEffect(()=>{const oe=()=>D(!1);return window.addEventListener("blur",oe),window.addEventListener("resize",oe),()=>{window.removeEventListener("blur",oe),window.removeEventListener("resize",oe)}},[D]);const[N,V]=Ix(oe=>{const se=ue().filter(Ne=>!Ne.disabled),xe=se.find(Ne=>Ne.ref.current===document.activeElement),Re=Gx(se,oe,xe);Re&&setTimeout(()=>Re.ref.current.focus())}),ne=v.useCallback((oe,se,xe)=>{const Re=!le.current&&!xe;(C.value!==void 0&&C.value===se||Re)&&(ae(oe),Re&&(le.current=!0))},[C.value]),X=v.useCallback(()=>O?.focus(),[O]),F=v.useCallback((oe,se,xe)=>{const Re=!le.current&&!xe;(C.value!==void 0&&C.value===se||Re)&&ce(oe)},[C.value]),ee=s==="popper"?hf:Ax,te=ee===hf?{side:h,sideOffset:g,align:p,alignOffset:b,arrowPadding:y,collisionBoundary:S,collisionPadding:A,sticky:R,hideWhenDetached:E,avoidCollisions:T}:{};return f.jsx(Cx,{scope:o,content:O,viewport:U,onViewportChange:G,itemRefCallback:ne,selectedItem:Y,onItemLeave:X,itemTextRefCallback:F,focusSelectedItem:$,selectedItemText:fe,position:s,isPositioned:de,searchRef:N,children:f.jsx(Gf,{as:Wk,allowPinchZoom:!0,children:f.jsx(Yf,{asChild:!0,trapped:C.open,onMountAutoFocus:oe=>{oe.preventDefault()},onUnmountAutoFocus:Ie(c,oe=>{C.trigger?.focus({preventScroll:!0}),oe.preventDefault()}),children:f.jsx(Vf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:oe=>oe.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:f.jsx(ee,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:oe=>oe.preventDefault(),...k,...te,onPlaced:()=>ie(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:Ie(k.onKeyDown,oe=>{const se=oe.ctrlKey||oe.altKey||oe.metaKey;if(oe.key==="Tab"&&oe.preventDefault(),!se&&oe.key.length===1&&V(oe.key),["ArrowUp","ArrowDown","Home","End"].includes(oe.key)){let Re=ue().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(oe.key)&&(Re=Re.slice().reverse()),["ArrowUp","ArrowDown"].includes(oe.key)){const Ne=oe.target,Ae=Re.indexOf(Ne);Re=Re.slice(Ae+1)}setTimeout(()=>j(Re)),oe.preventDefault()}})})})})})})});Rx.displayName=Zk;var Fk="SelectItemAlignedPosition",Ax=v.forwardRef((t,r)=>{const{__scopeSelect:o,onPlaced:s,...c}=t,u=Va(wr,o),m=Ya(wr,o),[h,g]=v.useState(null),[p,b]=v.useState(null),y=Fe(r,I=>b(I)),S=mc(o),A=v.useRef(!1),R=v.useRef(!0),{viewport:E,selectedItem:T,selectedItemText:k,focusSelectedItem:C}=m,O=v.useCallback(()=>{if(u.trigger&&u.valueNode&&h&&p&&E&&T&&k){const I=u.trigger.getBoundingClientRect(),Y=p.getBoundingClientRect(),ae=u.valueNode.getBoundingClientRect(),fe=k.getBoundingClientRect();if(u.dir!=="rtl"){const Ne=fe.left-Y.left,Ae=ae.left-Ne,Je=I.left-Ae,at=I.width+Je,dn=Math.max(at,Y.width),fn=window.innerWidth-vn,lt=Zv(Ae,[vn,Math.max(vn,fn-dn)]);h.style.minWidth=at+"px",h.style.left=lt+"px"}else{const Ne=Y.right-fe.right,Ae=window.innerWidth-ae.right-Ne,Je=window.innerWidth-I.right-Ae,at=I.width+Je,dn=Math.max(at,Y.width),fn=window.innerWidth-vn,lt=Zv(Ae,[vn,Math.max(vn,fn-dn)]);h.style.minWidth=at+"px",h.style.right=lt+"px"}const ce=S(),ue=window.innerHeight-vn*2,de=E.scrollHeight,ie=window.getComputedStyle(p),le=parseInt(ie.borderTopWidth,10),j=parseInt(ie.paddingTop,10),$=parseInt(ie.borderBottomWidth,10),D=parseInt(ie.paddingBottom,10),W=le+j+de+D+$,N=Math.min(T.offsetHeight*5,W),V=window.getComputedStyle(E),ne=parseInt(V.paddingTop,10),X=parseInt(V.paddingBottom,10),F=I.top+I.height/2-vn,ee=ue-F,te=T.offsetHeight/2,oe=T.offsetTop+te,se=le+j+oe,xe=W-se;if(se<=F){const Ne=ce.length>0&&T===ce[ce.length-1].ref.current;h.style.bottom="0px";const Ae=p.clientHeight-E.offsetTop-E.offsetHeight,Je=Math.max(ee,te+(Ne?X:0)+Ae+$),at=se+Je;h.style.height=at+"px"}else{const Ne=ce.length>0&&T===ce[0].ref.current;h.style.top="0px";const Je=Math.max(F,le+E.offsetTop+(Ne?ne:0)+te)+xe;h.style.height=Je+"px",E.scrollTop=se-F+E.offsetTop}h.style.margin=`${vn}px 0`,h.style.minHeight=N+"px",h.style.maxHeight=ue+"px",s?.(),requestAnimationFrame(()=>A.current=!0)}},[S,u.trigger,u.valueNode,h,p,E,T,k,u.dir,s]);Ot(()=>O(),[O]);const[L,U]=v.useState();Ot(()=>{p&&U(window.getComputedStyle(p).zIndex)},[p]);const G=v.useCallback(I=>{I&&R.current===!0&&(O(),C?.(),R.current=!1)},[O,C]);return f.jsx(e_,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:A,onScrollButtonChange:G,children:f.jsx("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:f.jsx($e.div,{...c,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});Ax.displayName=Fk;var Jk="SelectPopperPosition",hf=v.forwardRef((t,r)=>{const{__scopeSelect:o,align:s="start",collisionPadding:c=vn,...u}=t,m=hc(o);return f.jsx(Bk,{...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)"}})});hf.displayName=Jk;var[e_,um]=Oo(wr,{}),pf="SelectViewport",kx=v.forwardRef((t,r)=>{const{__scopeSelect:o,nonce:s,...c}=t,u=Ya(pf,o),m=um(pf,o),h=Fe(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:o,children:f.jsx($e.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:Ie(c.onScroll,p=>{const b=p.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:S}=m;if(S?.current&&y){const A=Math.abs(g.current-b.scrollTop);if(A>0){const R=window.innerHeight-vn*2,E=parseFloat(y.style.minHeight),T=parseFloat(y.style.height),k=Math.max(E,T);if(k<R){const C=k+A,O=Math.min(R,C),L=C-O;y.style.height=O+"px",y.style.bottom==="0px"&&(b.scrollTop=L>0?L:0,y.style.justifyContent="flex-end")}}}g.current=b.scrollTop})})})]})});kx.displayName=pf;var _x="SelectGroup",[t_,n_]=Oo(_x),jx=v.forwardRef((t,r)=>{const{__scopeSelect:o,...s}=t,c=xo();return f.jsx(t_,{scope:o,id:c,children:f.jsx($e.div,{role:"group","aria-labelledby":c,...s,ref:r})})});jx.displayName=_x;var Ox="SelectLabel",Dx=v.forwardRef((t,r)=>{const{__scopeSelect:o,...s}=t,c=n_(Ox,o);return f.jsx($e.div,{id:c.id,...s,ref:r})});Dx.displayName=Ox;var Ki="SelectItem",[a_,Mx]=Oo(Ki),zx=v.forwardRef((t,r)=>{const{__scopeSelect:o,value:s,disabled:c=!1,textValue:u,...m}=t,h=Va(Ki,o),g=Ya(Ki,o),p=h.value===s,[b,y]=v.useState(u??""),[S,A]=v.useState(!1),R=Fe(r,C=>g.itemRefCallback?.(C,s,c)),E=xo(),T=v.useRef("touch"),k=()=>{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(a_,{scope:o,value:s,disabled:c,textId:E,isSelected:p,onItemTextChange:v.useCallback(C=>{y(O=>O||(C?.textContent??"").trim())},[]),children:f.jsx(fc.ItemSlot,{scope:o,value:s,disabled:c,textValue:b,children:f.jsx($e.div,{role:"option","aria-labelledby":E,"data-highlighted":S?"":void 0,"aria-selected":p&&S,"data-state":p?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...m,ref:R,onFocus:Ie(m.onFocus,()=>A(!0)),onBlur:Ie(m.onBlur,()=>A(!1)),onClick:Ie(m.onClick,()=>{T.current!=="mouse"&&k()}),onPointerUp:Ie(m.onPointerUp,()=>{T.current==="mouse"&&k()}),onPointerDown:Ie(m.onPointerDown,C=>{T.current=C.pointerType}),onPointerMove:Ie(m.onPointerMove,C=>{T.current=C.pointerType,c?g.onItemLeave?.():T.current==="mouse"&&C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ie(m.onPointerLeave,C=>{C.currentTarget===document.activeElement&&g.onItemLeave?.()}),onKeyDown:Ie(m.onKeyDown,C=>{g.searchRef?.current!==""&&C.key===" "||(Vk.includes(C.key)&&k(),C.key===" "&&C.preventDefault())})})})})});zx.displayName=Ki;var Ml="SelectItemText",Lx=v.forwardRef((t,r)=>{const{__scopeSelect:o,className:s,style:c,...u}=t,m=Va(Ml,o),h=Ya(Ml,o),g=Mx(Ml,o),p=Xk(Ml,o),[b,y]=v.useState(null),S=Fe(r,k=>y(k),g.onItemTextChange,k=>h.itemTextRefCallback?.(k,g.value,g.disabled)),A=b?.textContent,R=v.useMemo(()=>f.jsx("option",{value:g.value,disabled:g.disabled,children:A},g.value),[g.disabled,g.value,A]),{onNativeOptionAdd:E,onNativeOptionRemove:T}=p;return Ot(()=>(E(R),()=>T(R)),[E,T,R]),f.jsxs(f.Fragment,{children:[f.jsx($e.span,{id:g.textId,...u,ref:S}),g.isSelected&&m.valueNode&&!m.valueNodeHasChildren?Xl.createPortal(u.children,m.valueNode):null]})});Lx.displayName=Ml;var Ux="SelectItemIndicator",Bx=v.forwardRef((t,r)=>{const{__scopeSelect:o,...s}=t;return Mx(Ux,o).isSelected?f.jsx($e.span,{"aria-hidden":!0,...s,ref:r}):null});Bx.displayName=Ux;var gf="SelectScrollUpButton",Hx=v.forwardRef((t,r)=>{const o=Ya(gf,t.__scopeSelect),s=um(gf,t.__scopeSelect),[c,u]=v.useState(!1),m=Fe(r,s.onScrollButtonChange);return Ot(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=g.scrollTop>0;u(p)};const g=o.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?f.jsx($x,{...t,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=o;h&&g&&(h.scrollTop=h.scrollTop-g.offsetHeight)}}):null});Hx.displayName=gf;var vf="SelectScrollDownButton",Px=v.forwardRef((t,r)=>{const o=Ya(vf,t.__scopeSelect),s=um(vf,t.__scopeSelect),[c,u]=v.useState(!1),m=Fe(r,s.onScrollButtonChange);return Ot(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=g.scrollHeight-g.clientHeight,b=Math.ceil(g.scrollTop)<p;u(b)};const g=o.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?f.jsx($x,{...t,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=o;h&&g&&(h.scrollTop=h.scrollTop+g.offsetHeight)}}):null});Px.displayName=vf;var $x=v.forwardRef((t,r)=>{const{__scopeSelect:o,onAutoScroll:s,...c}=t,u=Ya("SelectScrollButton",o),m=v.useRef(null),h=mc(o),g=v.useCallback(()=>{m.current!==null&&(window.clearInterval(m.current),m.current=null)},[]);return v.useEffect(()=>()=>g(),[g]),Ot(()=>{h().find(b=>b.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[h]),f.jsx($e.div,{"aria-hidden":!0,...c,ref:r,style:{flexShrink:0,...c.style},onPointerDown:Ie(c.onPointerDown,()=>{m.current===null&&(m.current=window.setInterval(s,50))}),onPointerMove:Ie(c.onPointerMove,()=>{u.onItemLeave?.(),m.current===null&&(m.current=window.setInterval(s,50))}),onPointerLeave:Ie(c.onPointerLeave,()=>{g()})})}),r_="SelectSeparator",qx=v.forwardRef((t,r)=>{const{__scopeSelect:o,...s}=t;return f.jsx($e.div,{"aria-hidden":!0,...s,ref:r})});qx.displayName=r_;var yf="SelectArrow",o_=v.forwardRef((t,r)=>{const{__scopeSelect:o,...s}=t,c=hc(o),u=Va(yf,o),m=Ya(yf,o);return u.open&&m.position==="popper"?f.jsx(Hk,{...c,...s,ref:r}):null});o_.displayName=yf;var l_="SelectBubbleInput",Vx=v.forwardRef(({__scopeSelect:t,value:r,...o},s)=>{const c=v.useRef(null),u=Fe(s,c),m=Hb(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($e.select,{...o,style:{...vx,...o.style},ref:u,defaultValue:r})});Vx.displayName=l_;function Yx(t){return t===""||t===void 0}function Ix(t){const r=vr(t),o=v.useRef(""),s=v.useRef(0),c=v.useCallback(m=>{const h=o.current+m;r(h),(function g(p){o.current=p,window.clearTimeout(s.current),p!==""&&(s.current=window.setTimeout(()=>g(""),1e3))})(h)},[r]),u=v.useCallback(()=>{o.current="",window.clearTimeout(s.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(s.current),[]),[o,c,u]}function Gx(t,r,o){const c=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,u=o?t.indexOf(o):-1;let m=s_(t,Math.max(u,0));c.length===1&&(m=m.filter(p=>p!==o));const g=m.find(p=>p.textValue.toLowerCase().startsWith(c.toLowerCase()));return g!==o?g:void 0}function s_(t,r){return t.map((o,s)=>t[(r+s)%t.length])}var i_=yx,Xx=xx,c_=Sx,u_=Ex,d_=Nx,Qx=Tx,f_=kx,m_=jx,Kx=Dx,Zx=zx,h_=Lx,p_=Bx,Wx=Hx,Fx=Px,Jx=qx;const i0=i_,IO=m_,c0=c_,bf=v.forwardRef(({className:t,children:r,...o},s)=>f.jsxs(Xx,{ref:s,className:J("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),...o,children:[r,f.jsx(u_,{asChild:!0,children:f.jsx(gr,{className:"h-4 w-4 opacity-50"})})]}));bf.displayName=Xx.displayName;const e1=v.forwardRef(({className:t,...r},o)=>f.jsx(Wx,{ref:o,className:J("flex cursor-default items-center justify-center py-1",t),...r,children:f.jsx(wN,{className:"h-4 w-4"})}));e1.displayName=Wx.displayName;const t1=v.forwardRef(({className:t,...r},o)=>f.jsx(Fx,{ref:o,className:J("flex cursor-default items-center justify-center py-1",t),...r,children:f.jsx(gr,{className:"h-4 w-4"})}));t1.displayName=Fx.displayName;const xf=v.forwardRef(({className:t,children:r,position:o="popper",viewportClassName:s,...c},u)=>f.jsx(d_,{children:f.jsxs(Qx,{ref:u,className:J("relative z-50 max-h-80 min-w-[8rem] overflow-hidden rounded-sm border border-border/70 bg-popover/96 text-popover-foreground shadow-[0_16px_48px_-34px_rgba(0,0,0,0.45)] backdrop-blur-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,...c,children:[f.jsx(e1,{}),f.jsx(f_,{className:J("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",s),children:r}),f.jsx(t1,{})]})}));xf.displayName=Qx.displayName;const g_=v.forwardRef(({className:t,...r},o)=>f.jsx(Kx,{ref:o,className:J("py-1 pl-6 pr-2 text-[10px] font-semibold",t),...r}));g_.displayName=Kx.displayName;const La=v.forwardRef(({className:t,children:r,...o},s)=>f.jsxs(Zx,{ref:s,className:J("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),...o,children:[f.jsx("span",{className:"absolute left-1.5 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(p_,{children:f.jsx(ji,{className:"h-3.5 w-3.5"})})}),f.jsx(h_,{children:r})]}));La.displayName=Zx.displayName;const v_=v.forwardRef(({className:t,...r},o)=>f.jsx(Jx,{ref:o,className:J("-mx-1 my-1 h-px bg-muted",t),...r}));v_.displayName=Jx.displayName;const u0=["queued","running"];function y_(t){return t.map(r=>`${r.id}:${r.name}`).join("\0")}function b_(t){return t==="claude"||t==="codex"||t==="copilot"}function n1(t){if(t.kind!=="agent.upgrade")return null;const r=t.payload?.agent;return b_(r)?`${t.nodeId}:${r}`:null}function x_(t){return t.status==="succeeded"||t.status==="failed"}async function a1(t,r={}){const o=r.getOperation??K0,s=r.pollIntervalMs??2e3,c=r.timeoutMs??24e4,u=Date.now()+c;let m=t;for(;!x_(m)&&Date.now()<u;)await S_(s),m=await o(t.id);return m}async function w_(t,r=Z0){const o=new Set(t),s=await Promise.all(u0.map(u=>r({kind:"agent.upgrade",status:u}))),c=new Map;for(const u of s.flat()){if(!u0.includes(u.status)||o.size>0&&!o.has(u.nodeId))continue;const m=n1(u);if(!m)continue;const h=c.get(m);(!h||u.updatedAt>h.updatedAt)&&c.set(m,u)}return c}function S_(t){return new Promise(r=>setTimeout(r,t))}const E_=1500,N_=1e3,T_=9e4;async function r1(t={}){const r=t.fetchHealth??C_,o=t.initialDelayMs??E_,s=t.pollIntervalMs??N_,c=t.previousPid,u=t.reload??(()=>window.location.reload()),m=t.sleep??A_,h=t.timeoutMs??T_,g=Date.now()+h;let p=!1;for(o>0&&await m(o);Date.now()<=g;){const b=R_(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 C_(){try{const t=await fetch("/api/system/health",{cache:"no-store"}),r=await t.json().catch(()=>null),o=r&&typeof r=="object"&&typeof r.pid=="number"?r.pid:void 0;return{ok:t.ok,pid:o}}catch{return!1}}function R_(t){return typeof t=="boolean"?{ok:t}:t}function A_(t){return new Promise(r=>window.setTimeout(r,t))}function k_(t,r=!0){return r?t?.restartMode==="development"?"Restart dev runtime":t?.updateAvailable?"Restart to update":"Restart":t?.updateAvailable?"Restart follower to update":"Restart follower"}const d0="h-6 rounded-sm border-0 bg-muted/55 px-2 text-[10px] text-muted-foreground shadow-none hover:bg-muted/75 hover:text-foreground";function __({checkedLabel:t,disableAuthDefault:r,endpoint:o,isLiveLocalNode:s,nodeId:c,nodeName:u,onRefresh:m,pid:h,transportType:g,update:p,workDir:b}){const y=k_(p,s),[S,A]=v.useState(null),[R,E]=v.useState(()=>f0({disableAuthDefault:r,endpoint:o,nodeName:u,transportType:g,workDir:b})),[T,k]=v.useState(!1),[C,O]=v.useState(!1),[L,U]=v.useState(!1);v.useEffect(()=>{E(f0({disableAuthDefault:r,endpoint:o,nodeName:u,transportType:g,workDir:b}))},[r,o,u,g,b]);async function G(){if(!c||T||C)return;const ce=p.updateAvailable?"update":"restart",ue=D_(R);if(R.port.trim()&&ue?.port===void 0){Ce.error("Runtime restart port must be a positive integer");return}const de=ue?{reason:ce,startArgs:ue}:{reason:ce};k(!0);try{if(s){const $=await W0(de);A({...$,pid:$.pid??h,status:"accepted"}),Ce.info(`Restarting ${u} from a detached helper. PID ${$.pid??h??"unknown"} will not stay attached to the original terminal window; follow ${$.logPath} for launch output.`),r1({previousPid:$.pid??h}).then(D=>{D||(k(!1),Ce.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout. Refresh the page after the node finishes starting."))}).catch(D=>{k(!1),Ce.error(D instanceof Error?D.message:"Runtime restart recovery failed")});return}const ie=await kE(c,de);A({operationId:ie.id,pid:h,status:ie.status}),Ce.info(`Restart requested on ${u}. Operation ${Id(ie.id)} will hand off to a detached process, so the new runtime will not stay attached to the original terminal window.`);const le=await a1(ie,{timeoutMs:6e4}),j=O_(le);A({command:j?.command,logPath:j?.logPath,mode:j?.mode,operationId:le.id,pid:j?.pid??h,status:le.status}),le.status==="succeeded"?(await m?.(),Ce.success(`Restart handoff accepted on ${u}. Follow ${j?.logPath??"the node restart log"} for launch output.`)):le.status==="failed"?Ce.error(le.error??`Restart failed on ${u}`):Ce.info(`Restart operation ${Id(le.id)} is still ${le.status}. More details will update after the node reports back.`),k(!1)}catch(ie){k(!1),Ce.error(ie instanceof Error?ie.message:"Runtime restart failed")}}async function I(){if(!(!s||T||C)){O(!0);try{const ce=await CE();Ce.info(`Stopping Meshy process ${ce.pid}`)}catch(ce){O(!1),Ce.error(ce instanceof Error?ce.message:"Runtime stop failed")}}}const Y=T?"restarting":C?"stopping":S?.status??"idle",ae=p.restartMode==="development",fe=ae?"dev":p.updateAvailable?`→ ${p.latestVersion}`:s?"Current":null;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(ki,{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:ae?"Development launcher":`Latest ${p.latestVersion??"—"}`})]})]}),fe&&f.jsx("div",{className:"flex items-center gap-1.5",children:f.jsx(qa,{variant:p.updateAvailable?"default":"outline",className:J("rounded-sm px-1.5 py-0 font-mono text-[10px]",fe==="Current"?"border-0 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-border/70 bg-background/60"),children:fe})})]}),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:Y})]})]}),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(of,{children:[f.jsx(lf,{asChild:!0,children:f.jsxs(Tt,{type:"button",size:"sm",variant:"ghost",disabled:T||C,className:"h-7 rounded-sm px-2 text-[11px] text-muted-foreground hover:bg-destructive/10 hover:text-destructive",children:[f.jsx(YN,{className:J("mr-1 h-3.5 w-3.5",C&&"animate-pulse")}),C?"Stopping":"Stop"]})}),f.jsxs(Ui,{className:"max-w-[22rem] gap-2 rounded-sm p-4",children:[f.jsxs(Bi,{className:"space-y-1",children:[f.jsx(Pi,{className:"text-[12px]",children:"Stop runtime?"}),f.jsx($i,{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(Hi,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Vi,{className:d0,children:"Cancel"}),f.jsx(qi,{className:"h-7 rounded-sm bg-destructive px-2 text-[11px] text-destructive-foreground hover:bg-destructive/90",onClick:()=>{I()},children:"Stop runtime"})]})]})]}),f.jsxs(of,{children:[f.jsx(lf,{asChild:!0,children:f.jsxs(Tt,{type:"button",size:"sm",variant:"ghost",disabled:!c||T||C,className:"h-7 rounded-sm border-0 bg-primary/10 px-2 text-[11px] text-primary shadow-none hover:translate-y-0 hover:bg-primary/15 hover:text-primary active:scale-100 disabled:bg-muted/35 disabled:text-muted-foreground",children:[f.jsx(xi,{className:J("mr-1 h-3.5 w-3.5",T&&"animate-spin")}),T?"Restarting…":y]})}),f.jsxs(Ui,{className:"max-w-[26rem] gap-2 rounded-sm p-3",children:[f.jsxs(Bi,{className:"space-y-1",children:[f.jsxs(Pi,{className:"text-[12px]",children:[y,"?"]}),f.jsxs($i,{className:"text-[10px] 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(j_,{value:R,onChange:E}),f.jsxs(Hi,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Vi,{className:d0,children:"Cancel"}),f.jsx(qi,{className:"h-6 rounded-sm px-2 text-[10px]",onClick:()=>{G()},children:y})]})]})]})]})]}),f.jsxs("div",{className:"border-t border-border/50",children:[f.jsxs("button",{type:"button",onClick:()=>U(ce=>!ce),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(iy,{className:"h-3 w-3"}),"Restart details"]}),f.jsx(gr,{className:J("h-3 w-3 transition-transform duration-150",L&&"rotate-180")})]}),L&&f.jsxs("div",{className:"border-t border-border/50 bg-muted/20 px-3 py-2 space-y-1",children:[f.jsx(hr,{label:"Current PID",value:h===void 0?"—":String(h),mono:h!==void 0}),f.jsx(hr,{label:"Restart PID",value:S?.pid===void 0?"Pending":String(S.pid),mono:S?.pid!==void 0}),f.jsx(hr,{label:"Operation",value:S?.operationId?Id(S.operationId):"Local direct request",mono:!!S?.operationId}),f.jsx(hr,{label:"Status",value:S?.status??(T?"requested":"idle")}),f.jsx(hr,{label:"Launcher",value:S?.command??"Available after restart",mono:!!S?.command}),f.jsx(hr,{label:"Log",value:S?.logPath??"Available after restart",mono:!!S?.logPath}),f.jsx(hr,{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 j_({onChange:t,value:r}){const o=(s,c)=>{t({...r,[s]:c})};return f.jsxs("div",{className:"space-y-2 rounded-sm border border-border/70 bg-muted/25 p-2.5 shadow-none",children:[f.jsx("div",{className:"text-[9px] font-semibold uppercase tracking-[0.14em] text-muted-foreground",children:"Startup arguments"}),f.jsxs("div",{className:"grid gap-1.5 sm:grid-cols-2",children:[f.jsx(Ol,{label:"HTTP port",value:r.port,onChange:s=>o("port",s),inputMode:"numeric"}),f.jsx(Ol,{label:"Node name",value:r.name,onChange:s=>o("name",s)}),f.jsx(Ol,{label:"Join endpoint",value:r.join,onChange:s=>o("join",s),className:"sm:col-span-2"}),f.jsxs("div",{className:"space-y-0.5",children:[f.jsx("label",{className:"text-[8px] uppercase tracking-[0.14em] text-muted-foreground",children:"Transport"}),f.jsxs(i0,{value:r.transport,onValueChange:s=>o("transport",o1(s)),children:[f.jsx(bf,{className:"h-6 rounded-sm border-border/60 bg-background/70 px-1.5 text-[9px] shadow-none focus:ring-1 focus:ring-offset-0 [&>svg]:h-3 [&>svg]:w-3",children:f.jsx(c0,{placeholder:"Transport"})}),f.jsxs(xf,{children:[f.jsx(La,{className:"py-0.5 text-[10px]",value:"inherit",children:"current / default"}),f.jsx(La,{className:"py-0.5 text-[10px]",value:"direct",children:"direct"}),f.jsx(La,{className:"py-0.5 text-[10px]",value:"devtunnel",children:"devtunnel"}),f.jsx(La,{className:"py-0.5 text-[10px]",value:"tailscale",children:"tailscale"})]})]})]}),f.jsx(Ol,{label:"Working directory",value:r.workDir,onChange:s=>o("workDir",s)}),f.jsx(Ol,{label:"Config path",value:r.config,onChange:s=>o("config",s),className:"sm:col-span-2"}),f.jsxs("div",{className:"space-y-0.5 sm:col-span-2",children:[f.jsx("label",{className:"text-[8px] uppercase tracking-[0.14em] text-muted-foreground",children:"GHC tunnel"}),f.jsxs(i0,{value:r.ghcTunnel,onValueChange:s=>o("ghcTunnel",M_(s)),children:[f.jsx(bf,{className:"h-6 rounded-sm border-border/60 bg-background/70 px-1.5 text-[9px] shadow-none focus:ring-1 focus:ring-offset-0 [&>svg]:h-3 [&>svg]:w-3",children:f.jsx(c0,{placeholder:"GHC tunnel"})}),f.jsxs(xf,{children:[f.jsx(La,{className:"py-0.5 text-[10px]",value:"inherit",children:"current / remembered"}),f.jsx(La,{className:"py-0.5 text-[10px]",value:"enable",children:"enable"}),f.jsx(La,{className:"py-0.5 text-[10px]",value:"disable",children:"disable"})]})]})]}),f.jsxs("label",{className:"flex cursor-pointer items-center gap-1.5 rounded-sm border border-border/60 bg-background/55 px-1.5 py-1 text-[9px] text-foreground shadow-none transition-colors hover:bg-muted/40 sm:col-span-2",children:[f.jsx(Qb,{className:"h-3 w-3",checked:r.disableAuth,onCheckedChange:s=>t({...r,disableAuth:s===!0,disableAuthKnown:!0})}),"Disable auth"]})]})]})}function Ol({className:t,inputMode:r,label:o,onChange:s,value:c}){return f.jsxs("label",{className:J("space-y-0.5",t),children:[f.jsx("span",{className:"text-[8px] uppercase tracking-[0.14em] text-muted-foreground",children:o}),f.jsx(lc,{className:"h-6 rounded-sm border-border/60 bg-background/70 px-1.5 py-0.5 text-[9px] shadow-none focus-visible:ring-1 focus-visible:ring-offset-0",inputMode:r,value:c,onChange:u=>s(u.target.value)})]})}function hr({label:t,value:r,mono:o=!1}){return f.jsxs("div",{className:"flex items-start justify-between gap-3 text-[10px]",children:[f.jsx("span",{className:"shrink-0 uppercase tracking-[0.14em] text-muted-foreground",children:t}),f.jsx("span",{className:J("break-all text-right text-foreground",o&&"font-mono"),children:r})]})}function O_(t){const r=t.result;if(!r||typeof r!="object")return null;const o=r;return o.ok!==!0||typeof o.command!="string"||typeof o.logPath!="string"?null:{ok:!0,mode:o.mode==="package"?"package":"development",command:o.command,logPath:o.logPath,pid:typeof o.pid=="number"?o.pid:void 0}}function f0(t){return{port:z_(t.endpoint),name:t.nodeName,join:"",transport:o1(t.transportType),workDir:t.workDir??"",config:"",disableAuth:t.disableAuthDefault===!0,disableAuthKnown:t.disableAuthDefault!==void 0,ghcTunnel:"inherit"}}function D_(t){const r={},o=Number(t.port.trim());return t.port.trim()&&Number.isInteger(o)&&o>0&&(r.port=o),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),t.ghcTunnel==="enable"&&(r.ghcTunnel=!0),t.ghcTunnel==="disable"&&(r.ghcTunnel=!1),Object.keys(r).length>0?r:void 0}function o1(t){return t==="direct"||t==="devtunnel"||t==="tailscale"?t:"inherit"}function M_(t){return t==="enable"||t==="disable"?t:"inherit"}function z_(t){if(!t)return"";try{return new URL(t).port||""}catch{return""}}function Id(t){return t.length<=8?t:t.slice(0,8)}function Ci(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 GO(t){const r=Math.max(0,Math.floor(t)),o=Math.floor(r/86400),s=Math.floor(r%86400/3600),c=Math.floor(r%3600/60);return o>0?`${o}d ${s}h`:s>0?`${s}h ${c}m`:`${c}m`}function XO(t){if(t==null||Number.isNaN(t))return"Unavailable";const r=["B","KB","MB","GB","TB"];let o=t,s=0;for(;o>=1024&&s<r.length-1;)o/=1024,s+=1;return`${o.toFixed(o>=10||s===0?0:1)} ${r[s]}`}function QO(t){return t==="ok"?"default":t==="missing"||t==="install-failed"||t==="login-failed"?"destructive":t==="not-authenticated"||t==="unsupported-platform"?"outline":"secondary"}function L_(t,r){return t?.nodes?.length?t.nodes:r?[r]:[]}function U_(t,r){if(r&&t.id===r.nodeId)return r;const o=t.settingsSnapshot;return{...t,nodeId:t.id,version:o?.version??"Unavailable",packageName:o?.packageName,uptime:o?.uptime??0,defaultTaskAgent:o?.defaultTaskAgent,localDashboardOrigin:o?.runtime?.localDashboardOrigin??void 0,auth:o?.auth,os:o?.os,runtime:o?.runtime,runtimeUpdate:o?.runtimeUpdate,agents:o?.agents,startupRequirements:o?.startupRequirements,components:o?.components,repository:o?.repository,packages:o?.packages}}function l1(t){return t.available?"available":t.metadataStatus??"unavailable"}function B_(t){if(t.available)return"Available";const r=t.metadataStatus;return r?r.split(/[-_\s]+/).filter(Boolean).map((o,s)=>s===0?o.charAt(0).toUpperCase()+o.slice(1):o).join(" "):"Unavailable"}const s1="grid grid-cols-[minmax(0,1.3fr)_5.75rem_minmax(0,1fr)_7.25rem] items-center gap-x-2",H_="h-6 rounded-sm border-0 bg-muted/55 px-2 text-[10px] text-muted-foreground shadow-none hover:bg-muted/75 hover:text-foreground";function P_({agent:t}){const r=l1(t),o=t.available;return f.jsx("span",{"data-agent-availability":o?"available":"unavailable","data-agent-status":r,"aria-hidden":"true",className:J("inline-flex h-1.5 w-1.5 shrink-0 rounded-full",o?"bg-emerald-500":r==="missing"?"bg-destructive":"bg-amber-500")})}function $_({activeOperation:t,agent:r,nodeName:o,onUpgrade:s,upgrading:c}){return t?f.jsxs(qa,{"data-agent-update-state":"upgrading",variant:"outline",className:"h-6 gap-1 rounded-sm border-amber-500/30 bg-amber-500/10 px-1.5 py-0 text-[10px] font-medium uppercase tracking-[0.1em] text-amber-700 dark:text-amber-300",children:[f.jsx(Lf,{className:"h-3 w-3 animate-spin"}),t.status]}):r.update?r.update.updateAvailable?f.jsxs(of,{children:[f.jsx(lf,{asChild:!0,children:f.jsx("button",{type:"button","data-agent-update-state":"available",disabled:c,"aria-label":`Update available — ${r.update.latestVersion}`,title:`Update available — ${r.update.latestVersion}`,onClick:u=>u.stopPropagation(),className:"inline-flex h-7 w-7 items-center justify-center rounded-sm border-0 bg-amber-500/10 text-amber-600 shadow-none transition-colors hover:bg-amber-500/15 hover:text-amber-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-500/45 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60 dark:text-amber-400 dark:hover:text-amber-400",children:f.jsx(Dl,{className:"h-4 w-4"})})}),f.jsxs(Ui,{className:"max-w-[24rem] gap-2 rounded-sm p-3",children:[f.jsxs(Bi,{className:"space-y-1",children:[f.jsxs(Pi,{className:"text-[12px]",children:["Upgrade ",r.label,"?"]}),f.jsxs($i,{className:"text-[10px] leading-4",children:["Runs the command below on ",o,". Remote nodes execute it on the remote machine."]})]}),f.jsx("div",{className:"rounded-sm border border-border/60 bg-muted/30 px-2 py-1.5 font-mono text-[10px] leading-4 text-foreground break-all",children:q_(r)}),f.jsxs(Hi,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Vi,{className:H_,children:"Cancel"}),f.jsx(qi,{className:"h-6 rounded-sm px-2 text-[10px]",onClick:()=>s(r),children:"Upgrade"})]})]})]}):f.jsx("span",{"data-agent-update-state":"current","aria-label":"Up to date",title:"Up to date",className:"inline-flex h-7 w-7 items-center justify-center text-emerald-600 dark:text-emerald-400",children:f.jsx(bo,{className:"h-3.5 w-3.5"})}):f.jsx("span",{"data-agent-update-state":"none",className:"text-[10px] text-muted-foreground/70",children:"—"})}function q_(t){const r=`npm install -g ${t.update?.packageName}@latest`;return t.id==="claude"?`${r} --include=optional --ignore-scripts=false`:r}function V_(t){return t.error?t.error:t.result?.detail??null}function Y_({agent:t}){return t.update?.updateAvailable&&t.version&&t.update.latestVersion?f.jsxs("span",{"data-agent-version-flow":"true",className:"inline-flex min-w-0 items-center gap-1 font-mono",children:[f.jsx("span",{className:"truncate text-foreground",children:t.version}),f.jsx("span",{className:"shrink-0 text-muted-foreground",children:"→"}),f.jsx("span",{className:"truncate text-primary",children:t.update.latestVersion})]}):t.version?f.jsx("span",{className:"block truncate font-mono text-foreground",children:t.version}):f.jsx("span",{className:"text-muted-foreground/60",children:"—"})}function vi({label:t,value:r,mono:o=!1}){return f.jsxs("div",{className:"flex items-start justify-between gap-3 text-[10px]",children:[f.jsx("span",{className:"shrink-0 uppercase tracking-[0.14em] text-muted-foreground",children:t}),f.jsx("span",{className:J("min-w-0 break-all text-right text-foreground/90",o&&"font-mono"),children:r})]})}function I_({agent:t,nodeName:r,activeOperation:o,onUpgrade:s}){const[c,u]=v.useState(!1),m=t.update?.updateAvailable===!0,h=!!o,g=t.available,p=l1(t),b=[t.detail,t.update?.detail].filter(S=>!!S),y=()=>u(S=>!S);return f.jsxs("div",{"data-agent-row":t.id,children:[f.jsxs("div",{role:"button",tabIndex:0,"aria-expanded":c,"aria-label":`Toggle ${t.label} details`,onClick:y,onKeyDown:S=>{S.target===S.currentTarget&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),y())},className:J(s1,"cursor-pointer px-2 py-1.5 transition-colors hover:bg-muted/40"),children:[f.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[f.jsx(gr,{"aria-hidden":"true",className:J("h-3 w-3 shrink-0 text-muted-foreground transition-transform duration-150",c&&"rotate-180")}),f.jsx(_i,{className:"h-3.5 w-3.5 shrink-0 text-primary"}),f.jsx("span",{className:"truncate text-[12px] font-medium leading-4 text-foreground",children:t.label})]}),f.jsxs("div",{className:"flex min-w-0 items-center gap-1.5 text-[10px]",children:[f.jsx(P_,{agent:t}),f.jsx("span",{className:J("truncate",g?"text-foreground/75":p==="missing"?"text-destructive":"text-amber-600 dark:text-amber-400"),children:B_(t)})]}),f.jsx("div",{className:"min-w-0 text-[11px]",children:f.jsx(Y_,{agent:t})}),f.jsx("div",{className:"flex items-center justify-end",children:f.jsx($_,{activeOperation:o,agent:t,nodeName:r,onUpgrade:s,upgrading:h||m===!1})})]}),c&&f.jsxs("div",{"data-agent-row-details":t.id,className:"space-y-1 border-t border-border/45 bg-muted/20 px-3 py-2",children:[f.jsx(vi,{label:"Command",value:t.command,mono:!0}),f.jsx(vi,{label:"Path",value:t.path??"Not on PATH",mono:!!t.path}),f.jsx(vi,{label:"Last checked",value:Ci(t.checkedAt)}),b.map((S,A)=>f.jsx(vi,{label:A===0?"Detail":"",value:S},A))]})]})}function G_({agents:t,nodeName:r,activeUpgradeFor:o,onUpgrade:s}){return f.jsxs("div",{"data-agent-table":"true",className:"overflow-hidden rounded-sm border border-border/60 bg-background/40",children:[f.jsxs("div",{className:J(s1,"border-b border-border/60 bg-muted/30 px-2 py-1 text-[9px] font-medium uppercase tracking-[0.16em] text-muted-foreground"),children:[f.jsx("span",{children:"Agent"}),f.jsx("span",{children:"Status"}),f.jsx("span",{children:"Version"}),f.jsx("span",{className:"text-right",children:"Update"})]}),f.jsx("div",{className:"divide-y divide-border/40",children:t.map(c=>f.jsx(I_,{agent:c,nodeName:r,activeOperation:o(c),onUpgrade:s},c.id))})]})}function X_(t){return t==="claude"?"Claude Code":t==="copilot"?"Copilot CLI":"Codex"}function Q_(t){const r=t.payload?.agent;return r==="claude"||r==="codex"||r==="copilot"?r:null}function K_({cluster:t,systemInfo:r,initialSelectedNodeId:o,onRefresh:s}){const c=v.useMemo(()=>L_(t,r),[t,r]),[u,m]=v.useState(()=>o??r?.nodeId??t?.self?.id??""),[h,g]=v.useState(()=>new Map),[p,b]=v.useState("codex"),[y,S]=v.useState(!1),[A,R]=v.useState("runtime"),[E,T]=v.useState(!1),k=v.useRef(new Set),C=v.useRef(new Set),O=t?.self??r??c[0]??null,L=c.find(D=>D.id===u)??O,U=L?U_(L,r):null,G=!!(r&&L&&L.id===r.nodeId),I=G||!!L?.settingsSnapshot,Y=U?.runtimeUpdate,ae=sf(U?.defaultTaskAgent),fe=v.useMemo(()=>c.map(D=>D.id),[c]),ce=fe.join("\0"),ue=y_(c),de=v.useMemo(()=>new Map(c.map(D=>[D.id,D.name])),[ue]);v.useEffect(()=>{o&&fe.includes(o)&&m(o)},[o,ce]),v.useEffect(()=>{b(ae)},[L?.id,ae]);const ie=v.useCallback(async(D,W)=>{const N=n1(D);if(!N||k.current.has(D.id))return;const V=Q_(D),ne=W?.agentLabel??(V?X_(V):"Agent"),X=W?.nodeName??de.get(D.nodeId)??D.nodeId;k.current.add(D.id),g(F=>new Map(F).set(N,D));try{const F=await a1(D);if(F.status==="succeeded")await s?.(),C.current.has(F.id)||(Ce.success(`${ne} upgrade finished on ${X}`),C.current.add(F.id));else if(F.status==="failed")C.current.has(F.id)||(Ce.error(V_(F)??`${ne} upgrade failed`),C.current.add(F.id));else{g(ee=>new Map(ee).set(N,F)),Ce.info(`${ne} upgrade is still ${F.status} on ${X}`);return}g(ee=>{const te=new Map(ee),oe=te.get(N);return(!oe||oe.id===F.id)&&te.delete(N),te})}catch(F){g(ee=>{const te=new Map(ee),oe=te.get(N);return(!oe||oe.id===D.id)&&te.delete(N),te}),Ce.error(F instanceof Error?F.message:`${ne} upgrade failed`)}finally{k.current.delete(D.id)}},[s,de]);v.useEffect(()=>{if(fe.length===0)return;let D=!1;async function W(){let N;try{N=await w_(fe)}catch{return}if(!D){g(V=>{const ne=new Map(V);for(const[X,F]of N)ne.set(X,F);return ne});for(const V of N.values())ie(V)}}return W(),()=>{D=!0}},[ie,ce]);async function le(D){if(L)try{const W=await AE(L.id,D.id);Ce.info(`${D.label} upgrade started on ${L.name}`),await ie(W,{agentLabel:D.label,nodeName:L.name})}catch(W){Ce.error(W instanceof Error?W.message:`${D.label} upgrade failed`)}}async function j(D){if(!G||D===ae)return;const W=p;b(D),S(!0);try{const N=await TE(D);b(sf(N.defaultTaskAgent)),await s?.(),Ce.success("Default agent updated")}catch(N){b(W),Ce.error(N instanceof Error?N.message:"Failed to update default agent")}finally{S(!1)}}if(!L||!U)return 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..."});const $=[{id:"runtime",icon:f.jsx(ki,{className:"h-3.5 w-3.5"}),title:"Runtime",description:"Runtime package, process state, and restart controls.",content:Y?f.jsx(__,{checkedLabel:Ci(Y.checkedAt),disableAuthDefault:U.auth?.enabled===void 0?void 0:U.auth.enabled===!1,endpoint:L.endpoint,isLiveLocalNode:G,nodeId:L.id,nodeName:L.name,onRefresh:s,pid:U.runtime?.pid,transportType:L.transportType,update:Y,workDir:U.runtime?.workDir??L.workDir}):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:"Runtime update metadata is unavailable for this node."})},{id:"copilot-tunnel",icon:f.jsx(ty,{className:"h-3.5 w-3.5"}),title:"GitHub Copilot Tunnel",description:"Node-local Copilot proxy provider on port 8314.",content:f.jsx(JA,{nodeId:L.id,nodeName:L.name})},{id:"agents",icon:f.jsx(_i,{className:"h-3.5 w-3.5"}),title:"Available Agents",description:"Agent availability, upgrades, and the default task agent.",content:f.jsxs(Bl,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsx(Hl,{className:"pb-1.5 pt-2.5 px-3",children:f.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between",children:[f.jsxs("div",{className:"min-w-0 space-y-1",children:[f.jsxs(Pl,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(_i,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),f.jsx($l,{className:"text-[10px]",children:G?"Live command availability for runtime agents on this node.":"Most recent agent availability snapshot synced from this node."})]}),f.jsx(e5,{value:y?p:ae,disabled:!G,saving:y,onChange:j})]})}),f.jsx(ql,{"data-agent-layout":"table",className:"px-3 pb-2.5",children:f.jsx(G_,{agents:U.agents??[],nodeName:L.name,activeUpgradeFor:D=>h.get(`${L.id}:${D.id}`),onUpgrade:le})})]})},{id:"quick-chat",icon:f.jsx(Uf,{className:"h-3.5 w-3.5"}),title:"Quick Chat",description:"Reusable slash aliases for chat composers.",content:f.jsx(g5,{})},{id:"about",icon:f.jsx(ry,{className:"h-3.5 w-3.5"}),title:"About",description:"Repository, runtime identity, and package versions.",content:f.jsx(DA,{formatDateTime:Ci,viewInfo:U})}];return f.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-2 pt-1",children:[f.jsx(i5,{formatDateTime:Ci,isLiveLocalNode:G,onSelectedNodeChange:m,selectableNodes:c,selectedNode:L}),!I&&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("div",{"data-settings-layout":"menu-details",className:"flex min-h-0 flex-1 items-stretch gap-2",children:[f.jsxs("aside",{"data-settings-menu-collapsed":String(E),className:J("group/settings-menu flex shrink-0 flex-col overflow-hidden rounded-sm border border-border/60 bg-background/70 shadow-none transition-[width] duration-150",E?"w-9":"w-40 sm:w-44"),children:[f.jsxs("div",{className:J("flex items-center gap-1.5 border-b border-border/45 py-1",E?"justify-center px-1":"justify-between px-1.5"),children:[!E&&f.jsx("span",{className:"min-w-0 truncate text-[8px] font-semibold uppercase tracking-[0.14em] text-muted-foreground",children:"Settings"}),f.jsx("button",{type:"button",className:"settings-menu-toggle flex h-6 w-6 shrink-0 items-center justify-center rounded-sm text-muted-foreground transition-colors hover:bg-muted/45 hover:text-foreground focus:outline-none focus-visible:ring-1 focus-visible:ring-primary/45","aria-label":E?"Expand settings menu":"Collapse settings menu",title:E?"Expand settings menu":"Collapse settings menu",onClick:()=>T(D=>!D),children:E?f.jsx(Oi,{className:"h-3 w-3"}):f.jsx(yN,{className:"h-3 w-3"})})]}),f.jsx("nav",{"aria-label":"Settings sections",className:"space-y-1 p-1",children:$.map(D=>{const W=D.id===A;return f.jsxs("button",{type:"button","data-settings-menu-item":D.title,"aria-current":W?"page":void 0,"aria-label":`Show ${D.title} settings`,"aria-pressed":W,title:E?D.title:void 0,onClick:()=>R(D.id),className:J("flex h-7 w-full items-center gap-1.5 rounded-sm px-1.5 text-[10px] leading-3.5 transition-colors hover:bg-muted/45 hover:text-foreground focus:outline-none focus-visible:ring-1 focus-visible:ring-primary/45",E&&"justify-center px-0",W?"bg-primary/10 text-foreground":"text-muted-foreground"),children:[f.jsx("span",{className:"shrink-0 text-primary/90 [&_svg]:h-3 [&_svg]:w-3",children:D.icon}),f.jsx("span",{className:J("settings-menu-label min-w-0 flex-1 truncate text-left",E&&"hidden"),children:D.title})]},D.id)})})]}),f.jsx("section",{"data-settings-details-pane":"true",className:"min-w-0 flex-1 rounded-sm border border-border/60 bg-background/70 p-1.5 shadow-none",children:f.jsx("div",{className:"space-y-2",children:$.map(D=>f.jsx("div",{"data-settings-details":D.title,hidden:D.id!==A,children:D.content},D.id))})})]})]})}function Z_({initialSelectedNodeId:t,open:r,onOpenChange:o,showTrigger:s=!0}={}){const{cluster:c,systemInfo:u,refresh:m}=J0();return f.jsx(yA,{open:r,onOpenChange:o,showTrigger:s,children:f.jsx(K_,{cluster:c,systemInfo:u,initialSelectedNodeId:t,onRefresh:m})})}const Zi="meshy:show-live-events";function i1(){const t=globalThis.window;if(!t)return;const r=typeof t.CustomEvent=="function"?new t.CustomEvent(Zi):new t.Event(Zi);t.dispatchEvent(r)}function KO(t){const r=globalThis.window;return r?(r.addEventListener(Zi,t),()=>r.removeEventListener(Zi,t)):()=>{}}const W_={node:"border-teal-500/30 bg-teal-500/10 text-teal-700 dark:text-teal-300",task:"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300",election:"border-indigo-500/30 bg-indigo-500/10 text-indigo-700 dark:text-indigo-300",cluster:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",transport:"border-sky-500/30 bg-sky-500/10 text-sky-700 dark:text-sky-300"},F_={node:"text-teal-700/70 dark:text-teal-300/70",task:"text-amber-700/70 dark:text-amber-300/70",election:"text-indigo-700/70 dark:text-indigo-300/70",cluster:"text-emerald-700/70 dark:text-emerald-300/70",transport:"text-sky-700/70 dark:text-sky-300/70"};function J_(t){return t.split(".")[0]??"unknown"}function ej(t){return new Date(t).toLocaleTimeString("en-US",{hour12:!1})}function vo(t,r,o){return typeof o=="string"&&o.length>0?o:r?.get(t)??t}function c1(t,r){const o=t.data,s=o.operation;switch(t.type){case"node.joined":return`${o.name} joined the cluster`;case"node.left":return`${vo(o.nodeId,r,o.name)} left (${o.reason})`;case"node.status":return`${vo(o.nodeId,r)} is now ${o.status}`;case"node.operation.created":return`${s?.kind} ${s?.status} on ${vo(s?.nodeId,r)}`;case"node.operation.updated":return`${s?.kind} ${s?.status} on ${vo(s?.nodeId,r)}`;case"transport.changed":return`${vo(o.nodeId,r)} transport switched to ${o.transportType}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${vo(o.nodeId,r)}`;case"task.status":return`task ${o.taskId.slice(0,8)} -> ${o.status}`;case"election.started":return`candidate ${o.candidateId.slice(0,8)} term ${o.term}`;case"election.complete":return`leader elected, term ${o.term}`;case"cluster.state":return`${o.nodeCount} nodes, term ${o.term}`;default:return JSON.stringify(o)}}function tj(t){return JSON.stringify(t,null,2)}function nj({events:t,maxHeight:r="400px",nodeNameById:o,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=J_(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:J("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:J("font-mono text-muted-foreground",m?"text-[8px]":"text-[9px]"),children:ej(h.timestamp)}),m?f.jsx("span",{className:J("max-w-[8.5rem] truncate text-[7px] font-medium uppercase tracking-[0.08em] text-muted-foreground/70",F_[g]),children:h.type}):f.jsx(qa,{variant:"outline",className:J("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",W_[g]),children:h.type})]}),f.jsxs("div",{className:J("flex shrink-0 items-center",m?"gap-px":"gap-0.5"),children:[f.jsx(Tt,{type:"button",variant:"ghost",size:"icon",className:J("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(),Mb(tj(h),"Event copied")},"aria-label":`Copy ${h.type} event`,title:"Copy event",children:f.jsx(ny,{className:m?"h-2.5 w-2.5":"h-3 w-3"})}),s&&f.jsx(Tt,{type:"button",variant:"ghost",size:"icon",className:J("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(Bf,{className:m?"h-2.5 w-2.5":"h-3 w-3"})})]})]}),f.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:c1(h,o)})]})},h.id)})})})}function u1(t){return t!==null}function d1(t){return t==="click"?t:"hover"}function wf(t){return t==="hover"?null:t}function f1(t){return t==="click"?null:"click"}const aj=["node.","election.","transport."],rj="cluster.state";function oj(t){return t.type==="node.status"?!1:aj.some(r=>t.type.startsWith(r))}function lj(t){return new Date(t).toLocaleTimeString("en-US",{hour12:!1})}function sj(t,r){return t?{time:lj(t.timestamp),text:c1(t,r)}:null}function ij(t){return t.transportType==="devtunnel"||!!t.devtunnelEndpoint}function cj(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 o=t.filter(c=>c.devtunnelHealth?.status==="failed").length;if(o>0)return`${o} failed`;const s=t.filter(c=>c.status!=="offline"&&c.devtunnelHealth?.status!=="healthy").length;return s>0?`${s} checking`:"Healthy"}function uj(t,r){const o=r?.get(t.id)??t.name??t.id;if(t.status==="offline")return{label:o,status:"offline"};const s=t.devtunnelHealth?.status??"checking";return{label:o,status:s}}function dj(t){if(t.length===0)return"No nodes";const r=t.filter(s=>s.status==="offline").length;if(r>0)return`${r} offline`;const o=t.filter(s=>s.status==="busy").length;return o>0?`${o} busy`:"Healthy"}function fj(t,r){return{label:r?.get(t.id)??t.name??t.id,status:t.status}}function mj({connected:t,events:r,nodes:o=[],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:A,onRestart:R}){const[E,T]=v.useState(g?"click":null),[k,C]=v.useState(p),[O,L]=v.useState(!0),[U,G]=v.useState(new Set),[I,Y]=v.useState(!1),[ae,fe]=v.useState(!1),ce=u1(E),ue=v.useRef(null),de=v.useRef(null),ie=v.useMemo(()=>r.filter(be=>oj(be)&&!U.has(be.id)),[r,U]),le=v.useMemo(()=>r.find(be=>be.type===rj)??ie[0],[r,ie]),j=v.useMemo(()=>sj(le,c),[le,c]),$=v.useMemo(()=>{const be=new Map(o.map(Xe=>[Xe.id,Xe]));return s&&be.set(s.id,s),Array.from(be.values())},[s,o]),D=v.useMemo(()=>$.filter(ij),[$]),W=D.some(be=>be.status==="offline"||be.devtunnelHealth?.status==="failed"),N=$.some(be=>be.status==="offline"),V=$.some(be=>be.status==="busy"),ne=$.length>0,X=s?.name??"offline",F=s?.role==="leader"?"Leader":s?.role==="follower"?"Follower":"Node",ee=u!==null,te=!!(ee&&u?.updateAvailable&&u.latestVersion),oe=u?.latestVersion??null,se=!!(ee&&!te&&oe),xe=!!(ee&&u?.detail==="Checking desktop update..."),Re=!!(ee&&!te&&!oe&&u?.detail&&!xe),Ne=h?.percent??null,Ae=Ne===null?null:`${Ne}%`,Je=I?"Relaunching runtime...":"Relaunch to apply update",at=Ae?`Downloading ${Ae}`:ae?"Downloading and installing desktop update...":te&&oe?`Available version ${oe}`:Re?u?.detail??"Desktop update unavailable":"Desktop is current",dn=!!A,fn=!!(ee&&S),Ia=!!(ee&&b)||dn||fn,ht=ee||!!R,Nr=ee||!!R||dn,Ln=ht?ee?te?"Update":se?"Latest":"Check":"Relaunch":"Reload",st=ee&&!te,mn=st?"Check":Ln,Tr=ht?ee?at:Je:"Reload dashboard page",sa=ht?ee?ae||h!==null:I:!1,$t=ht?ee?sa||!te||!y:sa:!1,Ct=m||ae||!b,Mt=ee?te&&oe?`Install desktop update ${oe}`:Re?"Desktop update unavailable":"Desktop is current":ht?I?"Relaunching runtime":"Relaunch runtime":"Reload dashboard page";function We(){de.current&&(clearTimeout(de.current),de.current=null)}function Nn(){We(),T(be=>d1(be))}function Cr(){We(),de.current=setTimeout(()=>{T(be=>wf(be)),de.current=null},180)}function Tn(){We()}function ia(){We(),T(be=>wf(be))}async function ca(){if(!(!R||I)){Y(!0);try{await R()}finally{Y(!1)}}}async function Jt(){if(!(!te||!y||ae)){fe(!0);try{await y()}finally{fe(!1)}}}async function Un(){!b||m||ae||await b()}async function Bn(){if(!(!S||I)){C(!1),Y(!0);try{await S()}finally{Y(!1)}}}async function ua(){if(!ht){await zt();return}if(ee){await Jt();return}await ca()}async function zt(){A&&(C(!1),await A())}function Ga(){G(be=>{const Xe=new Set(be);return ie.forEach(me=>Xe.add(me.id)),Xe})}function Xa(){i1(),T(null)}return v.useEffect(()=>()=>{We()},[]),v.useEffect(()=>{G(be=>{if(be.size===0)return be;const Xe=new Set(r.map(Ue=>Ue.id)),me=new Set(Array.from(be).filter(Ue=>Xe.has(Ue)));return me.size===be.size?be:me})},[r]),v.useEffect(()=>{ce||C(!1)},[ce]),v.useEffect(()=>{if(!ce)return;const be=me=>{ue.current?.contains(me.target)||(We(),C(!1),T(null))},Xe=me=>{me.key==="Escape"&&(We(),C(!1),T(null))};return document.addEventListener("pointerdown",be),document.addEventListener("keydown",Xe),()=>{document.removeEventListener("pointerdown",be),document.removeEventListener("keydown",Xe)}},[ce]),f.jsxs("div",{ref:ue,className:"relative",children:[f.jsxs("button",{type:"button","aria-label":t?"Cluster link connected":"Cluster link reconnecting","aria-expanded":ce,"aria-haspopup":"dialog",onClick:()=>T(be=>f1(be)),onMouseEnter:Nn,onMouseLeave:Cr,className:J("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",ce&&(t?"bg-muted/60 text-foreground":"bg-destructive/12")),title:t?"Cluster link connected":"Cluster link reconnecting",children:[f.jsxs("span",{className:J("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:J("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:J("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:F})]})]}),ce&&f.jsxs("div",{role:"dialog","aria-label":"Live link connection events",onMouseEnter:Tn,onMouseLeave:ia,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(ki,{className:"h-3 w-3 text-emerald-500"}):f.jsx(uT,{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:J("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"}),j?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"mt-0.5 truncate text-[9px] leading-snug text-foreground/80",children:j.text}),f.jsx("div",{className:"font-mono text-[8px] text-muted-foreground/60",children:j.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:[N?f.jsx(Dl,{className:"h-3 w-3 shrink-0 text-destructive"}):V?f.jsx(ki,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(bo,{className:J("h-3 w-3 shrink-0",ne?"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:J("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",N?"border-destructive/30 bg-destructive/10 text-destructive":V?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":ne?"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:dj($)})]}),$.length>0&&f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:$.map(be=>{const{label:Xe,status:me}=fj(be,c),Ue=me==="offline",Qe=me==="busy";return f.jsxs("div",{"aria-label":`${Xe} ${me}`,className:J("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",Ue?"bg-destructive/6":Qe?"bg-amber-500/6":"bg-emerald-500/5"),title:`${Xe} ${me}`,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:Xe}),Ue?f.jsx(Dl,{className:"h-3 w-3 shrink-0 text-destructive"}):Qe?f.jsx(bv,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(bo,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},be.id)})})]}),D.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:[W?f.jsx(Dl,{className:"h-3 w-3 shrink-0 text-destructive"}):f.jsx(bo,{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:J("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",W?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"),children:cj(D)})]}),f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:D.map(be=>{const{label:Xe,status:me}=uj(be,c),Ue=me==="failed"||me==="offline",Qe=me!=="healthy"&&me!=="failed"&&me!=="offline",pt=be.devtunnelHealth?.reason?`${Xe} ${me}: ${be.devtunnelHealth.reason}`:`${Xe} ${me}`;return f.jsxs("div",{"aria-label":`${Xe} ${me}`,className:J("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",Ue?"bg-destructive/6":Qe?"bg-muted/30":"bg-emerald-500/5"),title:pt,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:Xe}),Ue?f.jsx(Dl,{className:"h-3 w-3 shrink-0 text-destructive"}):Qe?f.jsx(bv,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):f.jsx(bo,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},be.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:()=>L(be=>!be),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})`]}),O?f.jsx(gr,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):f.jsx(Oi,{className:"h-3 w-3 shrink-0 text-muted-foreground"})]}),!O&&ie.length>0&&f.jsx(Tt,{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:Ga,title:"Clear all notifications",children:"Clear all"})]}),O&&f.jsx("div",{className:"px-2 pb-1.5",children:f.jsx(nj,{events:ie,maxHeight:"10rem",density:"compact",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:c,onSelect:Xa,onDismiss:be=>G(Xe=>new Set(Xe).add(be))})})]}),ee&&u?.detail&&!xe&&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:Nr&&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(Tt,{type:"button",variant:"ghost",size:"sm",className:J("relative h-5 overflow-hidden rounded-none border-0 px-1.5 text-[9px] font-medium hover:text-foreground [&_svg]:size-2.5",te?"bg-primary/12 text-primary hover:bg-primary/18":"bg-background/45 text-muted-foreground hover:bg-emerald-500/10"),onClick:()=>{ua()},disabled:$t,"aria-label":Mt,"aria-describedby":"live-link-restart-hint",title:Tr,children:[Ne!==null&&f.jsx("span",{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Ne,className:"pointer-events-none absolute inset-y-0 left-0 bg-primary/24",style:{width:`${Ne}%`}}),Ne===null&&f.jsx(wv,{className:J("relative z-10 h-2.5 w-2.5",sa&&"animate-pulse")}),f.jsx("span",{className:"relative z-10",children:Ae??Ln})]}),Ia&&f.jsx(Tt,{type:"button",variant:"ghost",size:"sm",className:J("h-5 rounded-none border-l border-border/50 px-1 text-[9px] hover:text-foreground [&_svg]:size-2.5",te?"bg-primary/12 text-primary hover:bg-primary/18":"bg-background/45 text-muted-foreground hover:bg-emerald-500/10"),onClick:()=>C(be=>!be),"aria-label":"Open live link actions","aria-expanded":k,title:"Live link actions",children:f.jsx(gr,{className:"h-2.5 w-2.5"})})]}),Ia&&k&&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:()=>{st?Un():ua()},disabled:st?Ct:$t,"aria-label":st?"Check for desktop updates":Mt,children:[st?f.jsx(xi,{className:J("h-2.5 w-2.5",m&&"animate-spin")}):f.jsx(wv,{className:J("h-2.5 w-2.5",sa&&"animate-pulse")}),f.jsx("span",{children:mn})]}),dn&&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:()=>{zt()},"aria-label":"Reload dashboard page",children:[f.jsx(xi,{className:"h-2.5 w-2.5"}),f.jsx("span",{children:"Reload"})]}),fn&&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:()=>{Bn()},disabled:I,"aria-label":"Restart Meshy Desktop",children:[f.jsx(xi,{className:J("h-2.5 w-2.5",I&&"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:Tr})]})}),f.jsxs("div",{className:"flex items-center gap-1",children:[O&&f.jsx(Tt,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:Ga,disabled:ie.length===0,title:"Clear all notifications",children:"Clear all"}),f.jsx(Tt,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>T(null),children:"Close"})]})]})]})]})}const m0="dark",Sr="fluent",hj="clean",Gd="meshy-layout-default-migrated-to-compact",Sf="true",pj="compact",gj=new Set(["airy","clean","fluent"]);function vj(t){return t!==null&&gj.has(t)}function pc(t){return t===pj?"fluent":vj(t)?t:null}function yj(t,r){const o=pc(t);return o===hj&&r!==Sf?Sr:o??Sr}const Wi="symphony",m1="default",bj=new Set(["light","dark","system"]),xj=new Set(["porcelain","warm","finsight","edge","symphony","launcher"]),h1=v.createContext(null);function wj(t){const r=new URLSearchParams(t).get("theme");return p1(r)?r:null}function Sj(t){const r=new URLSearchParams(t).get("palette");return dm(r)}function Ej(t){const r=new URLSearchParams(t).get("layout");return pc(r)}function Nj(){if(typeof document>"u")return null;const t=document.documentElement;return{theme:t.classList.contains("dark")?"dark":"light",palette:dm(t.getAttribute("data-palette"))??Wi,layout:pc(t.getAttribute("data-layout"))??Sr}}function ZO(t,r=Nj()){if(!r)return t;try{const o=/^[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),o?c.toString():`${c.pathname}${c.search}${c.hash}`}catch{return t}}const Xd=.9;function h0(t){const r=t.trim().match(/^(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)%\s+(-?\d+(?:\.\d+)?)%$/);if(!r)return null;const o=(Number(r[1])%360+360)%360/60,s=Fi(Number(r[2])/100,0,1),c=Fi(Number(r[3])/100,0,1),u=(1-Math.abs(2*c-1))*s,m=u*(1-Math.abs(o%2-1)),h=c-u/2,[g,p,b]=o<1?[u,m,0]:o<2?[m,u,0]:o<3?[0,u,m]:o<4?[0,m,u]:o<5?[m,0,u]:[u,0,m];return[Math.round((g+h)*255),Math.round((p+h)*255),Math.round((b+h)*255),255]}function Tj(t){const r=t.trim();if(!r||r==="transparent")return null;const o=r.match(/^rgba?\(\s*([+-]?\d+(?:\.\d+)?)\s*,\s*([+-]?\d+(?:\.\d+)?)\s*,\s*([+-]?\d+(?:\.\d+)?)(?:\s*,\s*([+-]?\d+(?:\.\d+)?))?\s*\)$/i);if(o)return[yo(Number(o[1])),yo(Number(o[2])),yo(Number(o[3])),v0(o[4])];const s=r.match(/^rgba?\(\s*([+-]?\d+(?:\.\d+)?)\s+([+-]?\d+(?:\.\d+)?)\s+([+-]?\d+(?:\.\d+)?)(?:\s*\/\s*([+-]?\d+(?:\.\d+)?%?))?\s*\)$/i);return s?[yo(Number(s[1])),yo(Number(s[2])),yo(Number(s[3])),v0(s[4])]:null}function Cj(t,r,o){const s=h0(t);if(!s)return null;if(o==="clean"||o==="fluent")return s;const c=h0(r);return c?[Qd(s[0],c[0],Xd),Qd(s[1],c[1],Xd),Qd(s[2],c[2],Xd),255]:null}function Rj(){const t=document.querySelector(".dashboard-shell-header-panel");if(!t)return null;const r=Tj(getComputedStyle(t).backgroundColor);return!r||r[3]===0?null:r}function p0(){if(typeof window>"u"||typeof document>"u")return;const t=window.__TAURI__?.core?.invoke??null;if(!t)return;const r=document.documentElement,o=r.classList.contains("dark")?"dark":"light",s=getComputedStyle(r),c=pc(r.getAttribute("data-layout"))??Sr,u=Rj()??Cj(s.getPropertyValue("--card"),s.getPropertyValue("--background"),c);t("sync_desktop_theme",{theme:o,backgroundColor:u}).catch(()=>{})}function g0(){if(typeof window>"u")return()=>{};if(p0(),typeof window.requestAnimationFrame!="function")return()=>{};const t=window.requestAnimationFrame(()=>p0());return()=>window.cancelAnimationFrame(t)}function Qd(t,r,o){return Math.round(t*o+r*(1-o))}function Fi(t,r,o){return Math.min(Math.max(t,r),o)}function yo(t){return Math.round(Fi(t,0,255))}function v0(t){if(t==null||t==="")return 255;const r=t.endsWith("%")?Number(t.slice(0,-1))/100:Number(t);return Math.round(Fi(r,0,1)*255)}function Aj({children:t}){const[r,o]=v.useState(()=>typeof window<"u"?wj(window.location.search)??jj(localStorage.getItem("meshy-theme"))??m0:m0),[s,c]=v.useState(()=>typeof window<"u"?Sj(window.location.search)??Oj(localStorage.getItem("meshy-palette"))??Wi:Wi),[u,m]=v.useState(()=>{if(typeof window<"u"){const h=Ej(window.location.search);if(h)return localStorage.setItem(Gd,Sf),h;const g=yj(localStorage.getItem("meshy-layout"),localStorage.getItem(Gd));return localStorage.setItem(Gd,Sf),g}return Sr});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"),g0()};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===Sr?h.removeAttribute("data-layout"):h.setAttribute("data-layout",u),localStorage.setItem("meshy-layout",u)},[u]),v.useEffect(()=>g0(),[r,s,u]),f.jsx(h1.Provider,{value:{theme:r,setTheme:o,palette:s,setPalette:c,layout:u,setLayout:m},children:t})}function kj(){const t=v.useContext(h1);if(!t)throw new Error("useTheme must be used within ThemeProvider");return t}function p1(t){return t!==null&&bj.has(t)}function _j(t){return t!==null&&xj.has(t)}function jj(t){return p1(t)?t:null}function dm(t){return t===m1?"porcelain":_j(t)?t:null}function Oj(t){return t===m1?null:dm(t)}const Dj=[{value:"light",label:"Light",icon:sy},{value:"dark",label:"Dark",icon:ly},{value:"system",label:"System",icon:oy}],g1=[{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"}],v1=[{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 Mj(){const{theme:t,setTheme:r,palette:o,setPalette:s,layout:c,setLayout:u}=kj(),[m,h]=v.useState(null),g=v.useRef(null),p=v.useRef(null),b=u1(m),y=t==="dark"?ly:t==="light"?sy:oy,S=()=>{g.current&&(clearTimeout(g.current),g.current=null)},A=()=>{S(),g.current=setTimeout(()=>h(R=>wf(R)),180)};return v.useEffect(()=>{if(!b)return;const R=E=>{p.current&&!p.current.contains(E.target)&&h(null)};return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[b]),v.useEffect(()=>()=>S(),[]),f.jsxs("div",{ref:p,className:"relative",onMouseEnter:()=>{S(),h(R=>d1(R))},onMouseLeave:A,children:[f.jsx(Tt,{variant:"ghost",size:"icon",onClick:()=>h(R=>f1(R)),className:J("h-8 w-8 rounded-sm",o!==Wi||c!==Sr?"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:[zj(c)," / ",Lj(o)]})]}),f.jsx("div",{className:"rounded-sm border border-border/60 bg-background/70 px-1.5 py-0.5 text-[8px] font-medium capitalize text-muted-foreground",children: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:Dj.map(({value:R,label:E,icon:T})=>{const k=t===R;return f.jsxs("button",{type:"button",onClick:()=>r(R),role:"menuitemradio","aria-checked":k,className:J("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",k?"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(T,{className:"h-3 w-3"}),E]},R)})}),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:v1.map(({value:R,label:E,hint:T})=>{const k=c===R;return f.jsxs("button",{type:"button",onClick:()=>u(R),role:"menuitemradio","aria-checked":k,className:J("flex min-h-[2.25rem] w-full items-center gap-1.5 rounded-sm border px-1.5 py-1 text-left transition-colors",k?"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:J("text-[10px] font-medium leading-tight",k?"text-primary":"text-foreground"),children:E}),f.jsx("div",{className:"mt-0.5 text-[8px] leading-tight text-muted-foreground",children:T})]}),k&&f.jsx(ji,{className:"h-3 w-3 text-primary"})]},R)})})]}),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(nT,{className:"h-2.5 w-2.5"}),"Palette"]}),f.jsx("div",{className:"space-y-1",children:g1.map(({value:R,label:E,hint:T})=>{const k=o===R;return f.jsxs("button",{type:"button",onClick:()=>s(R),role:"menuitemradio","aria-checked":k,className:J("flex min-h-[2.25rem] w-full items-center gap-1.5 rounded-sm border px-1.5 py-1 text-left transition-colors",k?"border-primary/55 bg-primary/10":"border-border/45 bg-background/45 hover:border-border hover:bg-muted/55"),children:[f.jsx(Uj,{value:R}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:J("text-[10px] font-medium leading-tight",k?"text-primary":"text-foreground"),children:E}),f.jsx("div",{className:"mt-0.5 text-[8px] leading-tight text-muted-foreground",children:T})]}),k&&f.jsx(ji,{className:"h-3 w-3 text-primary"})]},R)})})]})]})]})]})}function zj(t){return v1.find(r=>r.value===t)?.label??t}function Lj(t){return g1.find(r=>r.value===t)?.label??t}function Uj({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%)"]},[o,s,c]=r[t];return f.jsxs("div",{className:J("flex h-5 w-5 shrink-0 overflow-hidden border border-border/60 shadow-sm","rounded-sm"),children:[f.jsx("div",{className:"h-full w-1/3",style:{background:o}}),f.jsx("div",{className:"h-full w-1/3",style:{background:s}}),f.jsx("div",{className:"h-full w-1/3",style:{background:c}})]})}const zl={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}},y1="meshy-dashboard-panel-state-v2",b1="meshy-dashboard-terminal-open-v1";function WO({operationsOpen:t}){return{layout:{desktopTasksOpen:!0,operationsOpen:t},sizes:{tasks:zl.tasks.defaultSize,operations:zl.operations.defaultSize,terminal:zl.terminal.defaultSize}}}function Kd(t){return typeof t=="object"&&t!==null}function y0(t,r){return typeof t=="boolean"?t:r}function Zd(t,r,o){return typeof r=="number"&&Number.isFinite(r)?Ll(t,r):o}function Ll(t,r){const o=zl[t];return Math.min(o.max,Math.max(o.min,r))}function FO(t,r){if(!t)return r;try{const o=t.getItem(y1);if(!o)return r;const s=JSON.parse(o);if(!Kd(s))return r;const c=Kd(s.layout)?s.layout:{},u=Kd(s.sizes)?s.sizes:{};return{layout:{desktopTasksOpen:y0(c.desktopTasksOpen,r.layout.desktopTasksOpen),operationsOpen:y0(c.operationsOpen,r.layout.operationsOpen)},sizes:{tasks:Zd("tasks",u.tasks,r.sizes.tasks),operations:Zd("operations",u.operations,r.sizes.operations),terminal:Zd("terminal",u.terminal,r.sizes.terminal)}}}catch{return r}}function JO(t,r){if(t)try{t.setItem(y1,JSON.stringify(r))}catch{}}function Bj(t,r){if(!t)return r;try{const o=t.getItem(b1);return o==="true"?!0:o==="false"?!1:r}catch{return r}}function Hj(t,r){if(t)try{t.setItem(b1,String(r))}catch{}}function b0(){try{return globalThis.window?.localStorage??globalThis.localStorage??null}catch{return null}}function eD(t){return`${Number(t.toFixed(2))}rem`}function tD(t,r,o,s,c,u,m){const h=Number.isFinite(m)&&m>0?m:16;return t==="tasks"?Ll(t,r+(c-o)/h):t==="operations"?Ll(t,r+(o-c)/h):Ll(t,r+(s-u)/h)}function nD(t,r,o){const s=o===0?0:o>0?-1:1;return Ll(t,r+s*zl[t].wheelStep)}const Pj=7200*1e3,$j=15*1e3,qj="meshy://desktop-update-progress",Vj="start_desktop_window_drag",Yj="enable_windows_dashboard_titlebar",Ij="minimize_desktop_window",Gj="toggle_desktop_window_maximize",Xj="close_desktop_window",Qj="Desktop update check timed out",Kj='a,button,input,textarea,select,[role="button"],[role="menu"],[role="dialog"],[contenteditable="true"]';function Zj(t){const r=t?.closest;return typeof r!="function"?!1:!r.call(t,Kj)}function Wj(t,r=Ua()){if(!r||t.button!==void 0&&t.button!==0||t.isPrimary===!1||!Zj(t.target))return!1;t.preventDefault?.();try{return r(Vj).catch(()=>{}),!0}catch{return!1}}function Fj(){return f.jsxs("svg",{"data-meshy-app-icon":"header",viewBox:"0 0 1024 1024",className:"h-7 w-7","aria-hidden":"true",children:[f.jsx("defs",{children: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("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 Ua(){return typeof window>"u"?null:window.__TAURI__?.core?.invoke??null}function Jj(){return typeof window>"u"?null:window.__TAURI__?.event?.listen??null}function e3(t){const r=typeof window>"u"?void 0:window;if(!r?.__TAURI__)return!1;const o=r.navigator?.platform??"",s=r.navigator?.userAgent??"";return/Mac/i.test(o)||/Macintosh/i.test(s)}function t3(t){const r=typeof window>"u"?void 0:window;if(!r?.__TAURI__)return!1;const o=r.navigator?.platform??"",s=r.navigator?.userAgent??"";return/Win/i.test(o)||/Windows/i.test(s)}function Wd(t){const r=Ua();r&&r(t).catch(()=>{})}function n3(){return f.jsxs("div",{className:"dashboard-window-controls--windows flex shrink-0 items-stretch","data-window-control-set":"windows",children:[f.jsx("button",{type:"button",className:"dashboard-window-control flex w-10 items-center justify-center border-0 bg-transparent p-0 text-muted-foreground transition-colors hover:bg-muted/65 hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","aria-label":"Minimize window",title:"Minimize window","data-window-control":"minimize",onClick:()=>Wd(Ij),children:f.jsx(LN,{className:"h-3.5 w-3.5"})}),f.jsx("button",{type:"button",className:"dashboard-window-control flex w-10 items-center justify-center border-0 bg-transparent p-0 text-muted-foreground transition-colors hover:bg-muted/65 hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","aria-label":"Maximize or restore window",title:"Maximize or restore window","data-window-control":"maximize",onClick:()=>Wd(Gj),children:f.jsx(rT,{className:"h-3 w-3"})}),f.jsx("button",{type:"button",className:"dashboard-window-control flex w-10 items-center justify-center border-0 bg-transparent p-0 text-muted-foreground transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","aria-label":"Close window",title:"Close window","data-window-control":"close",onClick:()=>Wd(Xj),children:f.jsx(Bf,{className:"h-3.5 w-3.5"})})]})}function a3(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 x0(t){return{currentVersion:null,latestVersion:null,updateAvailable:!1,checkedAt:new Date().toISOString(),releaseUrl:null,assetName:null,installable:!1,detail:t}}async function r3(t,r,o){let s;const c=new Promise((u,m)=>{s=setTimeout(()=>{m(new Error(Qj))},r)});try{return await Promise.race([t,c])}finally{s!==void 0&&clearTimeout(s)}}async function o3({activeCheck:t,startCheck:r,timeoutMs:o,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=r3(g,o),t.current=h}try{const g=await h;return s()&&c(g),g}catch(g){return s()&&u(Ef(g,m)),null}finally{t.current===h&&(t.current=null)}}function Ef(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 o=t.message;if(typeof o=="string"&&o.trim())return o}return r}function l3(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 s3(){const{cluster:t,events:r,sseConnected:o,systemInfo:s}=J0(),c=Sn(),[u,m]=v.useState(()=>Bj(b0(),!1)),[h,g]=v.useState(""),[p,b]=v.useState(null),[y,S]=v.useState(null),[A,R]=v.useState(!1),[E,T]=v.useState(null),k=v.useRef(null),C=!!Ua(),O=e3(),L=t3(),U=O||L,G=U?{"data-tauri-drag-region":!0}:{},I=U?{...G,"data-meshy-desktop-titlebar":"dashboard"}:{},Y=v.useCallback(D=>{U&&Wj(D)},[U]),ae=C?"max-w-none":"max-w-[1760px]",fe=c.pathname==="/"||/^\/tasks\/[^/]+$/.test(c.pathname),ce=v.useMemo(()=>{const D=new Map;for(const W of t?.nodes??[])D.set(W.id,W.name);return t?.self&&D.set(t.self.id,t.self.name),D},[t?.nodes,t?.self]),ue=v.useCallback(D=>{m(W=>typeof D=="function"?D(W):D)},[]);v.useEffect(()=>{Hj(b0(),u)},[u]),v.useEffect(()=>{if(!L)return;const D=Ua();D&&D(Yj).catch(()=>{})},[L]);const de=v.useCallback(async(D=!0,W=()=>!0)=>{const N=Ua();return N?(D&&W()&&S(x0("Checking desktop update...")),o3({activeCheck:k,startCheck:()=>N("check_desktop_update"),timeoutMs:$j,shouldApply:W,applyUpdate:V=>S(V),applyFailure:V=>S(ne=>ne?.updateAvailable?ne:x0(V))})):(W()&&S(null),null)},[]);async function ie(){R(!0);try{await de(!1)}finally{R(!1)}}v.useEffect(()=>{if(!Ua()){S(null);return}let D=!1;const W=()=>!D;de(!0,W);const N=window.setInterval(()=>{de(!1,W)},Pj);return()=>{D=!0,window.clearInterval(N)}},[de,s?.version]),v.useEffect(()=>{const D=Jj();if(!D)return;let W=!1,N;return D(qj,V=>{const ne=a3(V.payload);ne&&T(ne)}).then(V=>{if(W){V();return}N=V}).catch(()=>{}),()=>{W=!0,N?.()}},[]);async function le(){try{const D=await W0({reason:"restart"});Ce.info(`Restarting runtime. Follow ${D.logPath} for launch output.`),await r1({previousPid:D.pid})||Ce.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout.")}catch(D){Ce.error(D instanceof Error?D.message:"Runtime restart failed")}}async function j(){const D=Ua();if(!D){Ce.error("Desktop updater is not available in this window");return}try{Ce.info("Downloading desktop update..."),T({phase:"downloading",receivedBytes:0,totalBytes:null,percent:0});const W=await D("install_desktop_update");T({phase:"complete",receivedBytes:1,totalBytes:1,percent:100}),Ce.info(l3(W))}catch(W){Ce.error(Ef(W,"Desktop update failed"))}finally{T(null)}}async function $(){const D=Ua();if(!D){Ce.error("Desktop restart is not available in this window");return}try{Ce.info("Restarting Meshy Desktop..."),await D("restart_desktop_app")}catch(W){Ce.error(Ef(W,"Desktop restart failed"))}}return f.jsxs("div",{className:J("relative h-full overflow-hidden bg-background text-foreground",O&&"dashboard-shell--macos-titlebar",L&&"dashboard-shell--windows-titlebar"),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:J("dashboard-shell-header relative z-50 shrink-0 px-2 py-2",O&&"dashboard-shell-header--macos-titlebar",L&&"dashboard-shell-header--windows-titlebar"),onPointerDownCapture:U?Y:void 0,...G,children:f.jsxs("div",{className:J("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",ae,O&&"dashboard-shell-header-panel--macos-titlebar",L&&"dashboard-shell-header-panel--windows-titlebar"),...I,children:[f.jsx("div",{className:"flex shrink-0 items-center gap-3 pr-3",...G,children:f.jsxs(ef,{to:"/","aria-label":"Meshy home",className:"flex items-center gap-2",children:[f.jsx(Fj,{}),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:"text-[10px] font-semibold uppercase tracking-[0.24em] text-muted-foreground",children:"Workspace"})]})]})}),f.jsx("div",{className:"mx-0 hidden h-4 w-px shrink-0 bg-border/50 md:block",...G}),fe&&f.jsxs("div",{className:"hidden min-w-0 flex-1 items-center px-3 md:flex",...G,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(FN,{className:"h-3 w-3 shrink-0 text-primary/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.nodeName})]}),f.jsx(Oi,{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(kN,{className:"h-3 w-3 shrink-0 text-muted-foreground/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.projectLabel})]}),f.jsx(Oi,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsx(ef,{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:"dashboard-header-search relative ml-auto w-[18rem] max-w-[28rem]",children:[f.jsx(ZN,{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(lc,{"aria-label":"Search tasks",value:h,onChange:D=>g(D.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",...G}),f.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-1.5 pl-3 sm:gap-2 md:ml-0",...G,children:[fe&&f.jsx(Tt,{variant:"ghost",size:"icon",onClick:()=>ue(D=>!D),"aria-label":u?"Close terminal":"Open terminal",title:u?"Close terminal":"Open terminal",className:J("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(iy,{className:"h-4 w-4"})}),f.jsx(Z_,{}),f.jsx(Mj,{}),f.jsx("div",{className:"mx-0 h-4 w-px shrink-0 bg-border/50",...G}),f.jsx(mj,{connected:o,events:r,nodes:t?.nodes??[],currentNode:t?.self??null,nodeNameById:ce,desktopUpdate:y,desktopUpdateCheckPending:A,desktopUpdateProgress:E,onDesktopUpdateCheck:C?ie:void 0,onDesktopUpdate:y?.updateAvailable?j:void 0,onDesktopRestart:C?$:void 0,onReload:C?()=>window.location.reload():void 0,onRestart:le}),L&&f.jsx(n3,{})]})]})}),f.jsx("main",{className:J("dashboard-shell-main min-h-0 flex-1 px-2 pb-2",fe?"overflow-hidden":"overflow-y-auto"),children:f.jsx("div",{className:J("dashboard-shell-content mx-auto h-full min-h-0",ae),children:f.jsx(B2,{context:{terminalOpen:u,setTerminalOpen:ue,headerSearchQuery:h,setHeaderSearchQuery:g,setHeaderTaskContext:b}})})})]})]})}const w0=v.lazy(async()=>({default:(await N0(()=>import("./DashboardPage-TE6tsOBU.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4]))).DashboardPage})),i3=v.lazy(async()=>({default:(await N0(()=>import("./SharedConversationPage-8XehjzT5.js"),__vite__mapDeps([5,1]))).SharedConversationPage}));function c3(){return f.jsx(uE,{children:f.jsx(v.Suspense,{fallback:f.jsx(u3,{}),children:f.jsxs(P2,{children:[f.jsx(pr,{path:"/shared/tasks/:shareId",element:f.jsx(i3,{})}),f.jsxs(pr,{element:f.jsx(aN,{children:f.jsx(s3,{})}),children:[f.jsx(pr,{path:"/",element:f.jsx(w0,{})}),f.jsx(pr,{path:"/nodes",element:f.jsx(hv,{to:"/",replace:!0})}),f.jsx(pr,{path:"/tasks",element:f.jsx(hv,{to:"/",replace:!0})}),f.jsx(pr,{path:"/tasks/:id",element:f.jsx(w0,{})})]})]})})})}function u3(){return f.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function d3(t){const r=t??(typeof window>"u"?void 0:window);r?.__TAURI__&&r.addEventListener("contextmenu",o=>{o.preventDefault()})}function f3(t){const{className:r,style:o,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"&&i1()}return f.jsx("div",{onClick:u,children:f.jsx(RC,{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",...o},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?.classNames}},...c})})}d3();US.createRoot(document.getElementById("root")).render(f.jsx(v.StrictMode,{children:f.jsxs(Aj,{children:[f.jsx(c3,{}),f.jsx(f3,{})]})}));export{Mb as $,q3 as A,Tt as B,ji as C,bO as D,Ce as E,kN as F,i0 as G,bf as H,lc as I,c0 as J,xf as K,Lf as L,ZN as M,gr as N,nT as O,$e as P,YO as Q,sf as R,FN as S,xO as T,$3 as U,hA as V,ib as W,Bf as X,ub as Y,ZO as Z,ny as _,qO as a,SO as a$,Uf as a0,yN as a1,wN as a2,HA as a3,wO as a4,_i as a5,PO as a6,$O as a7,qa as a8,zO as a9,vO as aA,U_ as aB,Ci as aC,XO as aD,ty as aE,QO as aF,ki as aG,zb as aH,r5 as aI,GO as aJ,uT as aK,Xl as aL,eT as aM,fN as aN,BN as aO,ry as aP,jO as aQ,nj as aR,ay as aS,LO as aT,LA as aU,dO as aV,HC as aW,NO as aX,iT as aY,UO as aZ,BO as a_,of as aa,Ui as ab,Bi as ac,Pi as ad,$i as ae,Hi as af,Vi as ag,qi as ah,N0 as ai,v3 as aj,cb as ak,vA as al,O3 as am,iy as an,bo as ao,xv as ap,rT as aq,j3 as ar,D3 as as,_3 as at,mO as au,b3 as av,x3 as aw,pA as ax,db as ay,xi as az,Ie as b,HO as b$,EO as b0,DO as b1,Qb as b2,MO as b3,lf as b4,J3 as b5,eO as b6,FO as b7,WO as b8,b0 as b9,X3 as bA,V3 as bB,h3 as bC,Sn as bD,P0 as bE,m3 as bF,J0 as bG,OO as bH,f5 as bI,KO as bJ,_O as bK,TO as bL,CO as bM,AO as bN,RO as bO,kO as bP,P3 as bQ,zA as bR,UA as bS,Q3 as bT,K3 as bU,G3 as bV,I3 as bW,g3 as bX,y3 as bY,p3 as bZ,T3 as b_,JO as ba,nD as bb,eD as bc,tD as bd,H3 as be,ZE as bf,jE as bg,pO as bh,hO as bi,gO as bj,JE as bk,Z3 as bl,E3 as bm,w3 as bn,Z0 as bo,S3 as bp,N3 as bq,Z_ as br,W3 as bs,F3 as bt,U3 as bu,M3 as bv,z3 as bw,L3 as bx,B3 as by,Y3 as bz,je as c,oO as c0,rO as c1,aO as c2,tO as c3,nO as c4,lO as c5,Ob as c6,v_ as c7,IO as c8,g_ as c9,S0 as ca,cO as cb,iO as cc,sO as cd,uO as ce,yO as cf,fO as cg,ko as d,w5 as e,Bb as f,Fe as g,E5 as h,zi as i,f as j,vr as k,Ql as l,VO as m,J as n,OC as o,Ty as p,R3 as q,v as r,k3 as s,qN as t,xo as u,K0 as v,C3 as w,Oi as x,La as y,A3 as z};
|