meshy-node 0.9.9 → 0.9.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dashboard/assets/{DashboardPage-DbD4Z2U0.js → DashboardPage-DL4PakzK.js} +3 -3
- package/dashboard/assets/{DashboardShared-1UhBYL1-.js → DashboardShared-DfyXgvZj.js} +1 -1
- package/dashboard/assets/{DiffTab-BygUE807.js → DiffTab-3q3jwsm4.js} +1 -1
- package/dashboard/assets/{FilesTab-C67Dnkts.js → FilesTab-jB5PuAMB.js} +1 -1
- package/dashboard/assets/{MarkdownPreviewFrame-CH3rgET1.js → MarkdownPreviewFrame-B1baNbJd.js} +1 -1
- package/dashboard/assets/{PreviewTab-C5m4cFxf.js → PreviewTab-5-N4l7V3.js} +1 -1
- package/dashboard/assets/{SharedConversationPage-CtQLabVf.js → SharedConversationPage-D8TaynWN.js} +2 -2
- package/dashboard/assets/{file-Ef280xPz.js → file-BO3_w-is.js} +1 -1
- package/dashboard/assets/index-C8zHV8VY.js +341 -0
- package/dashboard/assets/index-Dsqqe-oH.css +1 -0
- package/dashboard/index.html +2 -2
- package/main.cjs +1 -0
- package/package.json +1 -1
- package/runtime-metadata.json +4 -4
- package/dashboard/assets/index-C7-ljTCx.js +0 -341
- package/dashboard/assets/index-CcOCgrkm.css +0 -1
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-DL4PakzK.js","assets/DashboardShared-DfyXgvZj.js","assets/MarkdownPreviewFrame-B1baNbJd.js","assets/PreviewTab-5-N4l7V3.js","assets/DashboardPage-i714dDoR.css","assets/SharedConversationPage-D8TaynWN.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var jw=Object.defineProperty;var _w=(n,r,o)=>r in n?jw(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o;var ct=(n,r,o)=>_w(n,typeof r!="symbol"?r+"":r,o);function Mw(n,r){for(var o=0;o<r.length;o++){const s=r[o];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in n)){const u=Object.getOwnPropertyDescriptor(s,c);u&&Object.defineProperty(n,c,u.get?u:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const u of c)if(u.type==="childList")for(const m of u.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&s(m)}).observe(document,{childList:!0,subtree:!0});function o(c){const u={};return c.integrity&&(u.integrity=c.integrity),c.referrerPolicy&&(u.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?u.credentials="include":c.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(c){if(c.ep)return;c.ep=!0;const u=o(c);fetch(c.href,u)}})();function m0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Td={exports:{}},zl={};/**
|
|
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 Kg;function Ow(){if(Kg)return zl;Kg=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(s,c,u){var m=null;if(u!==void 0&&(m=""+u),c.key!==void 0&&(m=""+c.key),"key"in c){u={};for(var h in c)h!=="key"&&(u[h]=c[h])}else u=c;return c=u.ref,{$$typeof:n,type:s,key:m,ref:c!==void 0?c:null,props:u}}return zl.Fragment=r,zl.jsx=o,zl.jsxs=o,zl}var Zg;function Dw(){return Zg||(Zg=1,Td.exports=Ow()),Td.exports}var f=Dw(),Cd={exports:{}},Re={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var Fg;function zw(){if(Fg)return Re;Fg=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.iterator;function S(R){return R===null||typeof R!="object"?null:(R=y&&R[y]||R["@@iterator"],typeof R=="function"?R:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,N={};function C(R,Y,se){this.props=R,this.context=Y,this.refs=N,this.updater=se||T}C.prototype.isReactComponent={},C.prototype.setState=function(R,Y){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,Y,"setState")},C.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function A(){}A.prototype=C.prototype;function j(R,Y,se){this.props=R,this.context=Y,this.refs=N,this.updater=se||T}var M=j.prototype=new A;M.constructor=j,E(M,C.prototype),M.isPureReactComponent=!0;var U=Array.isArray,H={H:null,A:null,T:null,S:null,V:null},G=Object.prototype.hasOwnProperty;function V(R,Y,se,X,ne,W){return se=W.ref,{$$typeof:n,type:R,key:Y,ref:se!==void 0?se:null,props:W}}function $(R,Y){return V(R.type,Y,void 0,void 0,void 0,R.props)}function re(R){return typeof R=="object"&&R!==null&&R.$$typeof===n}function de(R){var Y={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(se){return Y[se]})}var fe=/\/+/g;function F(R,Y){return typeof R=="object"&&R!==null&&R.key!=null?de(""+R.key):Y.toString(36)}function te(){}function ce(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(te,te):(R.status="pending",R.then(function(Y){R.status==="pending"&&(R.status="fulfilled",R.value=Y)},function(Y){R.status==="pending"&&(R.status="rejected",R.reason=Y)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function J(R,Y,se,X,ne){var W=typeof R;(W==="undefined"||W==="boolean")&&(R=null);var ee=!1;if(R===null)ee=!0;else switch(W){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(R.$$typeof){case n:case r:ee=!0;break;case b:return ee=R._init,J(ee(R._payload),Y,se,X,ne)}}if(ee)return ne=ne(R),ee=X===""?"."+F(R,0):X,U(ne)?(se="",ee!=null&&(se=ee.replace(fe,"$&/")+"/"),J(ne,Y,se,"",function(ae){return ae})):ne!=null&&(re(ne)&&(ne=$(ne,se+(ne.key==null||R&&R.key===ne.key?"":(""+ne.key).replace(fe,"$&/")+"/")+ee)),Y.push(ne)),1;ee=0;var ue=X===""?".":X+":";if(U(R))for(var ie=0;ie<R.length;ie++)X=R[ie],W=ue+F(X,ie),ee+=J(X,Y,se,W,ne);else if(ie=S(R),typeof ie=="function")for(R=ie.call(R),ie=0;!(X=R.next()).done;)X=X.value,W=ue+F(X,ie++),ee+=J(X,Y,se,W,ne);else if(W==="object"){if(typeof R.then=="function")return J(ce(R),Y,se,X,ne);throw Y=String(R),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ee}function _(R,Y,se){if(R==null)return R;var X=[],ne=0;return J(R,X,"","",function(W){return Y.call(se,W,ne++)}),X}function q(R){if(R._status===-1){var Y=R._result;Y=Y(),Y.then(function(se){(R._status===0||R._status===-1)&&(R._status=1,R._result=se)},function(se){(R._status===0||R._status===-1)&&(R._status=2,R._result=se)}),R._status===-1&&(R._status=0,R._result=Y)}if(R._status===1)return R._result.default;throw R._result}var K=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function me(){}return Re.Children={map:_,forEach:function(R,Y,se){_(R,function(){Y.apply(this,arguments)},se)},count:function(R){var Y=0;return _(R,function(){Y++}),Y},toArray:function(R){return _(R,function(Y){return Y})||[]},only:function(R){if(!re(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},Re.Component=C,Re.Fragment=o,Re.Profiler=c,Re.PureComponent=j,Re.StrictMode=s,Re.Suspense=v,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Re.__COMPILER_RUNTIME={__proto__:null,c:function(R){return H.H.useMemoCache(R)}},Re.cache=function(R){return function(){return R.apply(null,arguments)}},Re.cloneElement=function(R,Y,se){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var X=E({},R.props),ne=R.key,W=void 0;if(Y!=null)for(ee in Y.ref!==void 0&&(W=void 0),Y.key!==void 0&&(ne=""+Y.key),Y)!G.call(Y,ee)||ee==="key"||ee==="__self"||ee==="__source"||ee==="ref"&&Y.ref===void 0||(X[ee]=Y[ee]);var ee=arguments.length-2;if(ee===1)X.children=se;else if(1<ee){for(var ue=Array(ee),ie=0;ie<ee;ie++)ue[ie]=arguments[ie+2];X.children=ue}return V(R.type,ne,void 0,void 0,W,X)},Re.createContext=function(R){return R={$$typeof:m,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:u,_context:R},R},Re.createElement=function(R,Y,se){var X,ne={},W=null;if(Y!=null)for(X in Y.key!==void 0&&(W=""+Y.key),Y)G.call(Y,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(ne[X]=Y[X]);var ee=arguments.length-2;if(ee===1)ne.children=se;else if(1<ee){for(var ue=Array(ee),ie=0;ie<ee;ie++)ue[ie]=arguments[ie+2];ne.children=ue}if(R&&R.defaultProps)for(X in ee=R.defaultProps,ee)ne[X]===void 0&&(ne[X]=ee[X]);return V(R,W,void 0,void 0,null,ne)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(R){return{$$typeof:h,render:R}},Re.isValidElement=re,Re.lazy=function(R){return{$$typeof:b,_payload:{_status:-1,_result:R},_init:q}},Re.memo=function(R,Y){return{$$typeof:p,type:R,compare:Y===void 0?null:Y}},Re.startTransition=function(R){var Y=H.T,se={};H.T=se;try{var X=R(),ne=H.S;ne!==null&&ne(se,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(me,K)}catch(W){K(W)}finally{H.T=Y}},Re.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Re.use=function(R){return H.H.use(R)},Re.useActionState=function(R,Y,se){return H.H.useActionState(R,Y,se)},Re.useCallback=function(R,Y){return H.H.useCallback(R,Y)},Re.useContext=function(R){return H.H.useContext(R)},Re.useDebugValue=function(){},Re.useDeferredValue=function(R,Y){return H.H.useDeferredValue(R,Y)},Re.useEffect=function(R,Y,se){var X=H.H;if(typeof se=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return X.useEffect(R,Y)},Re.useId=function(){return H.H.useId()},Re.useImperativeHandle=function(R,Y,se){return H.H.useImperativeHandle(R,Y,se)},Re.useInsertionEffect=function(R,Y){return H.H.useInsertionEffect(R,Y)},Re.useLayoutEffect=function(R,Y){return H.H.useLayoutEffect(R,Y)},Re.useMemo=function(R,Y){return H.H.useMemo(R,Y)},Re.useOptimistic=function(R,Y){return H.H.useOptimistic(R,Y)},Re.useReducer=function(R,Y,se){return H.H.useReducer(R,Y,se)},Re.useRef=function(R){return H.H.useRef(R)},Re.useState=function(R){return H.H.useState(R)},Re.useSyncExternalStore=function(R,Y,se){return H.H.useSyncExternalStore(R,Y,se)},Re.useTransition=function(){return H.H.useTransition()},Re.version="19.1.0",Re}var Wg;function Nf(){return Wg||(Wg=1,Cd.exports=zw()),Cd.exports}var g=Nf();const oe=m0(g),Tf=Mw({__proto__:null,default:oe},[g]);var Rd={exports:{}},Ll={},Ad={exports:{}},kd={};/**
|
|
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 Jg;function Lw(){return Jg||(Jg=1,(function(n){function r(_,q){var K=_.length;_.push(q);e:for(;0<K;){var me=K-1>>>1,R=_[me];if(0<c(R,q))_[me]=q,_[K]=R,K=me;else break e}}function o(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var q=_[0],K=_.pop();if(K!==q){_[0]=K;e:for(var me=0,R=_.length,Y=R>>>1;me<Y;){var se=2*(me+1)-1,X=_[se],ne=se+1,W=_[ne];if(0>c(X,K))ne<R&&0>c(W,X)?(_[me]=W,_[ne]=K,me=ne):(_[me]=X,_[se]=K,me=se);else if(ne<R&&0>c(W,K))_[me]=W,_[ne]=K,me=ne;else break e}}return q}function c(_,q){var K=_.sortIndex-q.sortIndex;return K!==0?K:_.id-q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var m=Date,h=m.now();n.unstable_now=function(){return m.now()-h}}var v=[],p=[],b=1,y=null,S=3,T=!1,E=!1,N=!1,C=!1,A=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function U(_){for(var q=o(p);q!==null;){if(q.callback===null)s(p);else if(q.startTime<=_)s(p),q.sortIndex=q.expirationTime,r(v,q);else break;q=o(p)}}function H(_){if(N=!1,U(_),!E)if(o(v)!==null)E=!0,G||(G=!0,F());else{var q=o(p);q!==null&&J(H,q.startTime-_)}}var G=!1,V=-1,$=5,re=-1;function de(){return C?!0:!(n.unstable_now()-re<$)}function fe(){if(C=!1,G){var _=n.unstable_now();re=_;var q=!0;try{e:{E=!1,N&&(N=!1,j(V),V=-1),T=!0;var K=S;try{t:{for(U(_),y=o(v);y!==null&&!(y.expirationTime>_&&de());){var me=y.callback;if(typeof me=="function"){y.callback=null,S=y.priorityLevel;var R=me(y.expirationTime<=_);if(_=n.unstable_now(),typeof R=="function"){y.callback=R,U(_),q=!0;break t}y===o(v)&&s(v),U(_)}else s(v);y=o(v)}if(y!==null)q=!0;else{var Y=o(p);Y!==null&&J(H,Y.startTime-_),q=!1}}break e}finally{y=null,S=K,T=!1}q=void 0}}finally{q?F():G=!1}}}var F;if(typeof M=="function")F=function(){M(fe)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ce=te.port2;te.port1.onmessage=fe,F=function(){ce.postMessage(null)}}else F=function(){A(fe,0)};function J(_,q){V=A(function(){_(n.unstable_now())},q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(_){_.callback=null},n.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<_?Math.floor(1e3/_):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(_){switch(S){case 1:case 2:case 3:var q=3;break;default:q=S}var K=S;S=q;try{return _()}finally{S=K}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(_,q){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var K=S;S=_;try{return q()}finally{S=K}},n.unstable_scheduleCallback=function(_,q,K){var me=n.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?me+K:me):K=me,_){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=K+R,_={id:b++,callback:q,priorityLevel:_,startTime:K,expirationTime:R,sortIndex:-1},K>me?(_.sortIndex=K,r(p,_),o(v)===null&&_===o(p)&&(N?(j(V),V=-1):N=!0,J(H,K-me))):(_.sortIndex=R,r(v,_),E||T||(E=!0,G||(G=!0,F()))),_},n.unstable_shouldYield=de,n.unstable_wrapCallback=function(_){var q=S;return function(){var K=S;S=q;try{return _.apply(this,arguments)}finally{S=K}}}})(kd)),kd}var ev;function Uw(){return ev||(ev=1,Ad.exports=Lw()),Ad.exports}var jd={exports:{}},Ut={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var tv;function Bw(){if(tv)return Ut;tv=1;var n=Nf();function r(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function 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(v,p,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:v,containerInfo:p,implementation:b}}var m=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ut.createPortal=function(v,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return u(v,p,null,b)},Ut.flushSync=function(v){var p=m.T,b=s.p;try{if(m.T=null,s.p=2,v)return v()}finally{m.T=p,s.p=b,s.d.f()}},Ut.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(v,p))},Ut.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},Ut.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var b=p.as,y=h(b,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?s.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:T}):b==="script"&&s.d.X(v,{crossOrigin:y,integrity:S,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ut.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=h(p.as,p.crossOrigin);s.d.M(v,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(v)},Ut.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,y=h(b,p.crossOrigin);s.d.L(v,b,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ut.preloadModule=function(v,p){if(typeof v=="string")if(p){var b=h(p.as,p.crossOrigin);s.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(v)},Ut.requestFormReset=function(v){s.d.r(v)},Ut.unstable_batchedUpdates=function(v,p){return v(p)},Ut.useFormState=function(v,p,b){return m.H.useFormState(v,p,b)},Ut.useFormStatus=function(){return m.H.useHostTransitionStatus()},Ut.version="19.1.0",Ut}var nv;function h0(){if(nv)return jd.exports;nv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),jd.exports=Bw(),jd.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var av;function Hw(){if(av)return Ll;av=1;var n=Uw(),r=Nf(),o=h0();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(u(e)!==e)throw Error(s(188))}function v(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var i=a.return;if(i===null)break;var d=i.alternate;if(d===null){if(l=i.return,l!==null){a=l;continue}break}if(i.child===d.child){for(d=i.child;d;){if(d===a)return h(i),e;if(d===l)return h(i),t;d=d.sibling}throw Error(s(188))}if(a.return!==l.return)a=i,l=d;else{for(var x=!1,w=i.child;w;){if(w===a){x=!0,a=i,l=d;break}if(w===l){x=!0,l=i,a=d;break}w=w.sibling}if(!x){for(w=d.child;w;){if(w===a){x=!0,a=d,l=i;break}if(w===l){x=!0,l=d,a=i;break}w=w.sibling}if(!x)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,y=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),j=Symbol.for("react.consumer"),M=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function F(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case C:return"Profiler";case N:return"StrictMode";case H:return"Suspense";case G:return"SuspenseList";case re:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case M:return(e.displayName||"Context")+".Provider";case j:return(e._context.displayName||"Context")+".Consumer";case U:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:ce(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var J=Array.isArray,_=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},me=[],R=-1;function Y(e){return{current:e}}function se(e){0>R||(e.current=me[R],me[R]=null,R--)}function X(e,t){R++,me[R]=e.current,e.current=t}var ne=Y(null),W=Y(null),ee=Y(null),ue=Y(null);function ie(e,t){switch(X(ee,t),X(W,e),X(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Eg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Eg(t),e=Ng(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}se(ne),X(ne,e)}function ae(){se(ne),se(W),se(ee)}function be(e){e.memoizedState!==null&&X(ue,e);var t=ne.current,a=Ng(t,e.type);t!==a&&(X(W,e),X(ne,a))}function ve(e){W.current===e&&(se(ne),se(W)),ue.current===e&&(se(ue),jl._currentValue=K)}var xe=Object.prototype.hasOwnProperty,Ue=n.unstable_scheduleCallback,Ve=n.unstable_cancelCallback,$e=n.unstable_shouldYield,bt=n.unstable_requestPaint,Pe=n.unstable_now,Ht=n.unstable_getCurrentPriorityLevel,at=n.unstable_ImmediatePriority,_r=n.unstable_UserBlockingPriority,Qn=n.unstable_NormalPriority,ft=n.unstable_LowPriority,xn=n.unstable_IdlePriority,Mr=n.log,ba=n.unstable_setDisableYieldValue,Zt=null,jt=null;function qt(e){if(typeof Mr=="function"&&ba(e),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(Zt,e)}catch{}}var nt=Math.clz32?Math.clz32:jn,kn=Math.log,Or=Math.LN2;function jn(e){return e>>>=0,e===0?32:31-(kn(e)/Or|0)|0}var xa=256,Sa=4194304;function cn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Kn(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var i=0,d=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var w=l&134217727;return w!==0?(l=w&~d,l!==0?i=cn(l):(x&=w,x!==0?i=cn(x):a||(a=w&~e,a!==0&&(i=cn(a))))):(w=l&~d,w!==0?i=cn(w):x!==0?i=cn(x):a||(a=l&~e,a!==0&&(i=cn(a)))),i===0?0:t!==0&&t!==i&&(t&d)===0&&(d=i&-i,a=t&-t,d>=a||d===32&&(a&4194048)!==0)?t:i}function Zn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function wa(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Vt(){var e=xa;return xa<<=1,(xa&4194048)===0&&(xa=256),e}function we(){var e=Sa;return Sa<<=1,(Sa&62914560)===0&&(Sa=4194304),e}function Ze(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ye(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _t(e,t,a,l,i,d){var x=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var w=e.entanglements,k=e.expirationTimes,L=e.hiddenUpdates;for(a=x&~a;0<a;){var I=31-nt(a),Z=1<<I;w[I]=0,k[I]=-1;var B=L[I];if(B!==null)for(L[I]=null,I=0;I<B.length;I++){var P=B[I];P!==null&&(P.lane&=-536870913)}a&=~Z}l!==0&&Ne(e,l,0),d!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=d&~(x&~t))}function Ne(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-nt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function lt(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-nt(a),i=1<<l;i&t|e[l]&t&&(e[l]|=t),a&=~i}}function st(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 Mt(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ar(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:Vg(e.type))}function xt(e,t){var a=q.p;try{return q.p=e,t()}finally{q.p=a}}var mt=Math.random().toString(36).slice(2),ht="__reactFiber$"+mt,We="__reactProps$"+mt,Tt="__reactContainer$"+mt,Dr="__reactEvents$"+mt,Fn="__reactListeners$"+mt,um="__reactHandles$"+mt,dm="__reactResources$"+mt,Po="__reactMarker$"+mt;function yc(e){delete e[ht],delete e[We],delete e[Dr],delete e[Fn],delete e[um]}function zr(e){var t=e[ht];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Tt]||a[ht]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Ag(e);e!==null;){if(a=e[ht])return a;e=Ag(e)}return t}e=a,a=e.parentNode}return null}function Lr(e){if(e=e[ht]||e[Tt]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function qo(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ur(e){var t=e[dm];return t||(t=e[dm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ct(e){e[Po]=!0}var fm=new Set,mm={};function rr(e,t){Br(e,t),Br(e+"Capture",t)}function Br(e,t){for(mm[e]=t,e=0;e<t.length;e++)fm.add(t[e])}var w1=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]*$"),hm={},pm={};function E1(e){return xe.call(pm,e)?!0:xe.call(hm,e)?!1:w1.test(e)?pm[e]=!0:(hm[e]=!0,!1)}function os(e,t,a){if(E1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ls(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Wn(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}var bc,gm;function Hr(e){if(bc===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);bc=t&&t[1]||"",gm=-1<a.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+bc+e+gm}var xc=!1;function Sc(e,t){if(!e||xc)return"";xc=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(P){var B=P}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(P){B=P}e.call(Z.prototype)}}else{try{throw Error()}catch(P){B=P}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(P){if(P&&B&&typeof P.stack=="string")return[P.stack,B.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=l.DetermineComponentFrameRoot(),x=d[0],w=d[1];if(x&&w){var k=x.split(`
|
|
45
|
+
`),L=w.split(`
|
|
46
|
+
`);for(i=l=0;l<k.length&&!k[l].includes("DetermineComponentFrameRoot");)l++;for(;i<L.length&&!L[i].includes("DetermineComponentFrameRoot");)i++;if(l===k.length||i===L.length)for(l=k.length-1,i=L.length-1;1<=l&&0<=i&&k[l]!==L[i];)i--;for(;1<=l&&0<=i;l--,i--)if(k[l]!==L[i]){if(l!==1||i!==1)do if(l--,i--,0>i||k[l]!==L[i]){var I=`
|
|
47
|
+
`+k[l].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=l&&0<=i);break}}}finally{xc=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Hr(a):""}function N1(e){switch(e.tag){case 26:case 27:case 5:return Hr(e.type);case 16:return Hr("Lazy");case 13:return Hr("Suspense");case 19:return Hr("SuspenseList");case 0:case 15:return Sc(e.type,!1);case 11:return Sc(e.type.render,!1);case 1:return Sc(e.type,!0);case 31:return Hr("Activity");default:return""}}function vm(e){try{var t="";do t+=N1(e),e=e.return;while(e);return t}catch(a){return`
|
|
48
|
+
Error generating stack: `+a.message+`
|
|
49
|
+
`+a.stack}}function un(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ym(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function T1(e){var t=ym(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,d=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(x){l=""+x,d.call(this,x)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ss(e){e._valueTracker||(e._valueTracker=T1(e))}function bm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=ym(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function is(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var C1=/[\n"\\]/g;function dn(e){return e.replace(C1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function wc(e,t,a,l,i,d,x,w){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+un(t)):e.value!==""+un(t)&&(e.value=""+un(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Ec(e,x,un(t)):a!=null?Ec(e,x,un(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=""+un(w):e.removeAttribute("name")}function xm(e,t,a,l,i,d,x,w){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||t!=null))return;a=a!=null?""+un(a):"",t=t!=null?""+un(t):a,w||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=w?e.checked:!!l,e.defaultChecked=!!l,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x)}function Ec(e,t,a){t==="number"&&is(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function $r(e,t,a,l){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&l&&(e[a].defaultSelected=!0)}else{for(a=""+un(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Sm(e,t,a){if(t!=null&&(t=""+un(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+un(a):""}function wm(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(J(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=un(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Pr(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var R1=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 Em(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||R1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Nm(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&a[i]!==l&&Em(e,i,l)}else for(var d in t)t.hasOwnProperty(d)&&Em(e,d,t[d])}function Nc(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 A1=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"]]),k1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function cs(e){return k1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Tc=null;function Cc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qr=null,Vr=null;function Tm(e){var t=Lr(e);if(t&&(e=t.stateNode)){var a=e[We]||null;e:switch(e=t.stateNode,t.type){case"input":if(wc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+dn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var i=l[We]||null;if(!i)throw Error(s(90));wc(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&bm(l)}break e;case"textarea":Sm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&$r(e,!!a.multiple,t,!1)}}}var Rc=!1;function Cm(e,t,a){if(Rc)return e(t,a);Rc=!0;try{var l=e(t);return l}finally{if(Rc=!1,(qr!==null||Vr!==null)&&(Qs(),qr&&(t=qr,e=Vr,Vr=qr=null,Tm(t),e)))for(t=0;t<e.length;t++)Tm(e[t])}}function Vo(e,t){var a=e.stateNode;if(a===null)return null;var l=a[We]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var Jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ac=!1;if(Jn)try{var Yo={};Object.defineProperty(Yo,"passive",{get:function(){Ac=!0}}),window.addEventListener("test",Yo,Yo),window.removeEventListener("test",Yo,Yo)}catch{Ac=!1}var Ea=null,kc=null,us=null;function Rm(){if(us)return us;var e,t=kc,a=t.length,l,i="value"in Ea?Ea.value:Ea.textContent,d=i.length;for(e=0;e<a&&t[e]===i[e];e++);var x=a-e;for(l=1;l<=x&&t[a-l]===i[d-l];l++);return us=i.slice(e,1<l?1-l:void 0)}function ds(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function fs(){return!0}function Am(){return!1}function Yt(e){function t(a,l,i,d,x){this._reactName=a,this._targetInst=i,this.type=l,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(a=e[w],this[w]=a?a(d):d[w]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?fs:Am,this.isPropagationStopped=Am,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=fs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=fs)},persist:function(){},isPersistent:fs}),t}var or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ms=Yt(or),Go=b({},or,{view:0,detail:0}),j1=Yt(Go),jc,_c,Io,hs=b({},Go,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oc,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!==Io&&(Io&&e.type==="mousemove"?(jc=e.screenX-Io.screenX,_c=e.screenY-Io.screenY):_c=jc=0,Io=e),jc)},movementY:function(e){return"movementY"in e?e.movementY:_c}}),km=Yt(hs),_1=b({},hs,{dataTransfer:0}),M1=Yt(_1),O1=b({},Go,{relatedTarget:0}),Mc=Yt(O1),D1=b({},or,{animationName:0,elapsedTime:0,pseudoElement:0}),z1=Yt(D1),L1=b({},or,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),U1=Yt(L1),B1=b({},or,{data:0}),jm=Yt(B1),H1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},P1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function q1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=P1[e])?!!t[e]:!1}function Oc(){return q1}var V1=b({},Go,{key:function(e){if(e.key){var t=H1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ds(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oc,charCode:function(e){return e.type==="keypress"?ds(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ds(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Y1=Yt(V1),G1=b({},hs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_m=Yt(G1),I1=b({},Go,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oc}),X1=Yt(I1),Q1=b({},or,{propertyName:0,elapsedTime:0,pseudoElement:0}),K1=Yt(Q1),Z1=b({},hs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),F1=Yt(Z1),W1=b({},or,{newState:0,oldState:0}),J1=Yt(W1),eS=[9,13,27,32],Dc=Jn&&"CompositionEvent"in window,Xo=null;Jn&&"documentMode"in document&&(Xo=document.documentMode);var tS=Jn&&"TextEvent"in window&&!Xo,Mm=Jn&&(!Dc||Xo&&8<Xo&&11>=Xo),Om=" ",Dm=!1;function zm(e,t){switch(e){case"keyup":return eS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yr=!1;function nS(e,t){switch(e){case"compositionend":return Lm(t);case"keypress":return t.which!==32?null:(Dm=!0,Om);case"textInput":return e=t.data,e===Om&&Dm?null:e;default:return null}}function aS(e,t){if(Yr)return e==="compositionend"||!Dc&&zm(e,t)?(e=Rm(),us=kc=Ea=null,Yr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mm&&t.locale!=="ko"?null:t.data;default:return null}}var rS={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 Um(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rS[e.type]:t==="textarea"}function Bm(e,t,a,l){qr?Vr?Vr.push(l):Vr=[l]:qr=l,t=ei(t,"onChange"),0<t.length&&(a=new ms("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Qo=null,Ko=null;function oS(e){yg(e,0)}function ps(e){var t=qo(e);if(bm(t))return e}function Hm(e,t){if(e==="change")return t}var $m=!1;if(Jn){var zc;if(Jn){var Lc="oninput"in document;if(!Lc){var Pm=document.createElement("div");Pm.setAttribute("oninput","return;"),Lc=typeof Pm.oninput=="function"}zc=Lc}else zc=!1;$m=zc&&(!document.documentMode||9<document.documentMode)}function qm(){Qo&&(Qo.detachEvent("onpropertychange",Vm),Ko=Qo=null)}function Vm(e){if(e.propertyName==="value"&&ps(Ko)){var t=[];Bm(t,Ko,e,Cc(e)),Cm(oS,t)}}function lS(e,t,a){e==="focusin"?(qm(),Qo=t,Ko=a,Qo.attachEvent("onpropertychange",Vm)):e==="focusout"&&qm()}function sS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ps(Ko)}function iS(e,t){if(e==="click")return ps(t)}function cS(e,t){if(e==="input"||e==="change")return ps(t)}function uS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ft=typeof Object.is=="function"?Object.is:uS;function Zo(e,t){if(Ft(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var i=a[l];if(!xe.call(t,i)||!Ft(e[i],t[i]))return!1}return!0}function Ym(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gm(e,t){var a=Ym(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ym(a)}}function Im(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Im(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=is(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=is(e.document)}return t}function Uc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var dS=Jn&&"documentMode"in document&&11>=document.documentMode,Gr=null,Bc=null,Fo=null,Hc=!1;function Qm(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Hc||Gr==null||Gr!==is(l)||(l=Gr,"selectionStart"in l&&Uc(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}),Fo&&Zo(Fo,l)||(Fo=l,l=ei(Bc,"onSelect"),0<l.length&&(t=new ms("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Gr)))}function lr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Ir={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},$c={},Km={};Jn&&(Km=document.createElement("div").style,"AnimationEvent"in window||(delete Ir.animationend.animation,delete Ir.animationiteration.animation,delete Ir.animationstart.animation),"TransitionEvent"in window||delete Ir.transitionend.transition);function sr(e){if($c[e])return $c[e];if(!Ir[e])return e;var t=Ir[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Km)return $c[e]=t[a];return e}var Zm=sr("animationend"),Fm=sr("animationiteration"),Wm=sr("animationstart"),fS=sr("transitionrun"),mS=sr("transitionstart"),hS=sr("transitioncancel"),Jm=sr("transitionend"),eh=new Map,Pc="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(" ");Pc.push("scrollEnd");function Sn(e,t){eh.set(e,t),rr(t,[e])}var th=new WeakMap;function fn(e,t){if(typeof e=="object"&&e!==null){var a=th.get(e);return a!==void 0?a:(t={value:e,source:t,stack:vm(t)},th.set(e,t),t)}return{value:e,source:t,stack:vm(t)}}var mn=[],Xr=0,qc=0;function gs(){for(var e=Xr,t=qc=Xr=0;t<e;){var a=mn[t];mn[t++]=null;var l=mn[t];mn[t++]=null;var i=mn[t];mn[t++]=null;var d=mn[t];if(mn[t++]=null,l!==null&&i!==null){var x=l.pending;x===null?i.next=i:(i.next=x.next,x.next=i),l.pending=i}d!==0&&nh(a,i,d)}}function vs(e,t,a,l){mn[Xr++]=e,mn[Xr++]=t,mn[Xr++]=a,mn[Xr++]=l,qc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Vc(e,t,a,l){return vs(e,t,a,l),ys(e)}function Qr(e,t){return vs(e,null,null,t),ys(e)}function nh(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var i=!1,d=e.return;d!==null;)d.childLanes|=a,l=d.alternate,l!==null&&(l.childLanes|=a),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(i=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,i&&t!==null&&(i=31-nt(a),e=d.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=a|536870912),d):null}function ys(e){if(50<wl)throw wl=0,Ku=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Kr={};function pS(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,a,l){return new pS(e,t,a,l)}function Yc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ea(e,t){var a=e.alternate;return a===null?(a=Wt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function ah(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function bs(e,t,a,l,i,d){var x=0;if(l=e,typeof e=="function")Yc(e)&&(x=1);else if(typeof e=="string")x=vw(e,a,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case re:return e=Wt(31,a,t,i),e.elementType=re,e.lanes=d,e;case E:return ir(a.children,i,d,t);case N:x=8,i|=24;break;case C:return e=Wt(12,a,t,i|2),e.elementType=C,e.lanes=d,e;case H:return e=Wt(13,a,t,i),e.elementType=H,e.lanes=d,e;case G:return e=Wt(19,a,t,i),e.elementType=G,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A:case M:x=10;break e;case j:x=9;break e;case U:x=11;break e;case V:x=14;break e;case $:x=16,l=null;break e}x=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Wt(x,a,t,i),t.elementType=e,t.type=l,t.lanes=d,t}function ir(e,t,a,l){return e=Wt(7,e,l,t),e.lanes=a,e}function Gc(e,t,a){return e=Wt(6,e,null,t),e.lanes=a,e}function Ic(e,t,a){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Zr=[],Fr=0,xs=null,Ss=0,hn=[],pn=0,cr=null,ta=1,na="";function ur(e,t){Zr[Fr++]=Ss,Zr[Fr++]=xs,xs=e,Ss=t}function rh(e,t,a){hn[pn++]=ta,hn[pn++]=na,hn[pn++]=cr,cr=e;var l=ta;e=na;var i=32-nt(l)-1;l&=~(1<<i),a+=1;var d=32-nt(t)+i;if(30<d){var x=i-i%5;d=(l&(1<<x)-1).toString(32),l>>=x,i-=x,ta=1<<32-nt(t)+i|a<<i|l,na=d+e}else ta=1<<d|a<<i|l,na=e}function Xc(e){e.return!==null&&(ur(e,1),rh(e,1,0))}function Qc(e){for(;e===xs;)xs=Zr[--Fr],Zr[Fr]=null,Ss=Zr[--Fr],Zr[Fr]=null;for(;e===cr;)cr=hn[--pn],hn[pn]=null,na=hn[--pn],hn[pn]=null,ta=hn[--pn],hn[pn]=null}var $t=null,ut=null,qe=!1,dr=null,_n=!1,Kc=Error(s(519));function fr(e){var t=Error(s(418,""));throw el(fn(t,e)),Kc}function oh(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[ht]=e,t[We]=l,a){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(a=0;a<Nl.length;a++)Oe(Nl[a],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),xm(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),ss(t);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),wm(t,l.value,l.defaultValue,l.children),ss(t)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||wg(t.textContent,a)?(l.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),l.onScroll!=null&&Oe("scroll",t),l.onScrollEnd!=null&&Oe("scrollend",t),l.onClick!=null&&(t.onclick=ti),t=!0):t=!1,t||fr(e)}function lh(e){for($t=e.return;$t;)switch($t.tag){case 5:case 13:_n=!1;return;case 27:case 3:_n=!0;return;default:$t=$t.return}}function Wo(e){if(e!==$t)return!1;if(!qe)return lh(e),qe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||dd(e.type,e.memoizedProps)),a=!a),a&&ut&&fr(e),lh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){ut=En(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}ut=null}}else t===27?(t=ut,Ha(e.type)?(e=pd,pd=null,ut=e):ut=t):ut=$t?En(e.stateNode.nextSibling):null;return!0}function Jo(){ut=$t=null,qe=!1}function sh(){var e=dr;return e!==null&&(Xt===null?Xt=e:Xt.push.apply(Xt,e),dr=null),e}function el(e){dr===null?dr=[e]:dr.push(e)}var Zc=Y(null),mr=null,aa=null;function Na(e,t,a){X(Zc,t._currentValue),t._currentValue=a}function ra(e){e._currentValue=Zc.current,se(Zc)}function Fc(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Wc(e,t,a,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var d=i.dependencies;if(d!==null){var x=i.child;d=d.firstContext;e:for(;d!==null;){var w=d;d=i;for(var k=0;k<t.length;k++)if(w.context===t[k]){d.lanes|=a,w=d.alternate,w!==null&&(w.lanes|=a),Fc(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),Fc(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 tl(e,t,a,l){e=null;for(var i=t,d=!1;i!==null;){if(!d){if((i.flags&524288)!==0)d=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var x=i.alternate;if(x===null)throw Error(s(387));if(x=x.memoizedProps,x!==null){var w=i.type;Ft(i.pendingProps.value,x.value)||(e!==null?e.push(w):e=[w])}}else if(i===ue.current){if(x=i.alternate,x===null)throw Error(s(387));x.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(jl):e=[jl])}i=i.return}e!==null&&Wc(t,e,a,l),t.flags|=262144}function ws(e){for(e=e.firstContext;e!==null;){if(!Ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function hr(e){mr=e,aa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Lt(e){return ih(mr,e)}function Es(e,t){return mr===null&&hr(e),ih(e,t)}function ih(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},aa===null){if(e===null)throw Error(s(308));aa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else aa=aa.next=t;return a}var gS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},vS=n.unstable_scheduleCallback,yS=n.unstable_NormalPriority,St={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jc(){return{controller:new gS,data:new Map,refCount:0}}function nl(e){e.refCount--,e.refCount===0&&vS(yS,function(){e.controller.abort()})}var al=null,eu=0,Wr=0,Jr=null;function bS(e,t){if(al===null){var a=al=[];eu=0,Wr=nd(),Jr={status:"pending",value:void 0,then:function(l){a.push(l)}}}return eu++,t.then(ch,ch),t}function ch(){if(--eu===0&&al!==null){Jr!==null&&(Jr.status="fulfilled");var e=al;al=null,Wr=0,Jr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function xS(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var uh=_.S;_.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&bS(e,t),uh!==null&&uh(e,t)};var pr=Y(null);function tu(){var e=pr.current;return e!==null?e:Je.pooledCache}function Ns(e,t){t===null?X(pr,pr.current):X(pr,t.pool)}function dh(){var e=tu();return e===null?null:{parent:St._currentValue,pool:e}}var rl=Error(s(460)),fh=Error(s(474)),Ts=Error(s(542)),nu={then:function(){}};function mh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Cs(){}function hh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Cs,Cs),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gh(e),e;default:if(typeof t.status=="string")t.then(Cs,Cs);else{if(e=Je,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gh(e),e}throw ol=t,rl}}var ol=null;function ph(){if(ol===null)throw Error(s(459));var e=ol;return ol=null,e}function gh(e){if(e===rl||e===Ts)throw Error(s(483))}var Ta=!1;function au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ru(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ca(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ge&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=ys(e),nh(e,null,a),t}return vs(e,l,t,a),ys(e)}function ll(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,lt(e,a)}}function ou(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,d=null;if(a=a.firstBaseUpdate,a!==null){do{var x={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?i=d=x:d=d.next=x,a=a.next}while(a!==null);d===null?i=d=t:d=d.next=t}else i=d=t;a={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:d,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var lu=!1;function sl(){if(lu){var e=Jr;if(e!==null)throw e}}function il(e,t,a,l){lu=!1;var i=e.updateQueue;Ta=!1;var d=i.firstBaseUpdate,x=i.lastBaseUpdate,w=i.shared.pending;if(w!==null){i.shared.pending=null;var k=w,L=k.next;k.next=null,x===null?d=L:x.next=L,x=k;var I=e.alternate;I!==null&&(I=I.updateQueue,w=I.lastBaseUpdate,w!==x&&(w===null?I.firstBaseUpdate=L:w.next=L,I.lastBaseUpdate=k))}if(d!==null){var Z=i.baseState;x=0,I=L=k=null,w=d;do{var B=w.lane&-536870913,P=B!==w.lane;if(P?(Le&B)===B:(l&B)===B){B!==0&&B===Wr&&(lu=!0),I!==null&&(I=I.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var Ce=e,Ee=w;B=t;var Ke=a;switch(Ee.tag){case 1:if(Ce=Ee.payload,typeof Ce=="function"){Z=Ce.call(Ke,Z,B);break e}Z=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=Ee.payload,B=typeof Ce=="function"?Ce.call(Ke,Z,B):Ce,B==null)break e;Z=b({},Z,B);break e;case 2:Ta=!0}}B=w.callback,B!==null&&(e.flags|=64,P&&(e.flags|=8192),P=i.callbacks,P===null?i.callbacks=[B]:P.push(B))}else P={lane:B,tag:w.tag,payload:w.payload,callback:w.callback,next:null},I===null?(L=I=P,k=Z):I=I.next=P,x|=B;if(w=w.next,w===null){if(w=i.shared.pending,w===null)break;P=w,w=P.next,P.next=null,i.lastBaseUpdate=P,i.shared.pending=null}}while(!0);I===null&&(k=Z),i.baseState=k,i.firstBaseUpdate=L,i.lastBaseUpdate=I,d===null&&(i.shared.lanes=0),za|=x,e.lanes=x,e.memoizedState=Z}}function vh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function yh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)vh(a[e],t)}var eo=Y(null),Rs=Y(0);function bh(e,t){e=da,X(Rs,e),X(eo,t),da=e|t.baseLanes}function su(){X(Rs,da),X(eo,eo.current)}function iu(){da=Rs.current,se(eo),se(Rs)}var Aa=0,Ae=null,Xe=null,vt=null,As=!1,to=!1,gr=!1,ks=0,cl=0,no=null,SS=0;function pt(){throw Error(s(321))}function cu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ft(e[a],t[a]))return!1;return!0}function uu(e,t,a,l,i,d){return Aa=d,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?np:ap,gr=!1,d=a(l,i),gr=!1,to&&(d=Sh(t,a,l,i)),xh(e),d}function xh(e){_.H=zs;var t=Xe!==null&&Xe.next!==null;if(Aa=0,vt=Xe=Ae=null,As=!1,cl=0,no=null,t)throw Error(s(300));e===null||Rt||(e=e.dependencies,e!==null&&ws(e)&&(Rt=!0))}function Sh(e,t,a,l){Ae=e;var i=0;do{if(to&&(no=null),cl=0,to=!1,25<=i)throw Error(s(301));if(i+=1,vt=Xe=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}_.H=AS,d=t(a,l)}while(to);return d}function wS(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?ul(t):t,e=e.useState()[0],(Xe!==null?Xe.memoizedState:null)!==e&&(Ae.flags|=1024),t}function du(){var e=ks!==0;return ks=0,e}function fu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function mu(e){if(As){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}As=!1}Aa=0,vt=Xe=Ae=null,to=!1,cl=ks=0,no=null}function Gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?Ae.memoizedState=vt=e:vt=vt.next=e,vt}function yt(){if(Xe===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=vt===null?Ae.memoizedState:vt.next;if(t!==null)vt=t,Xe=e;else{if(e===null)throw Ae.alternate===null?Error(s(467)):Error(s(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},vt===null?Ae.memoizedState=vt=e:vt=vt.next=e}return vt}function hu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ul(e){var t=cl;return cl+=1,no===null&&(no=[]),e=hh(no,e,t),t=Ae,(vt===null?t.memoizedState:vt.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?np:ap),e}function js(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ul(e);if(e.$$typeof===M)return Lt(e)}throw Error(s(438,String(e)))}function pu(e){var t=null,a=Ae.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=Ae.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=hu(),Ae.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=de;return t.index++,a}function oa(e,t){return typeof t=="function"?t(e):t}function _s(e){var t=yt();return gu(t,Xe,e)}function gu(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var i=e.baseQueue,d=l.pending;if(d!==null){if(i!==null){var x=i.next;i.next=d.next,d.next=x}t.baseQueue=i=d,l.pending=null}if(d=e.baseState,i===null)e.memoizedState=d;else{t=i.next;var w=x=null,k=null,L=t,I=!1;do{var Z=L.lane&-536870913;if(Z!==L.lane?(Le&Z)===Z:(Aa&Z)===Z){var B=L.revertLane;if(B===0)k!==null&&(k=k.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),Z===Wr&&(I=!0);else if((Aa&B)===B){L=L.next,B===Wr&&(I=!0);continue}else Z={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},k===null?(w=k=Z,x=d):k=k.next=Z,Ae.lanes|=B,za|=B;Z=L.action,gr&&a(d,Z),d=L.hasEagerState?L.eagerState:a(d,Z)}else B={lane:Z,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},k===null?(w=k=B,x=d):k=k.next=B,Ae.lanes|=Z,za|=Z;L=L.next}while(L!==null&&L!==t);if(k===null?x=d:k.next=w,!Ft(d,e.memoizedState)&&(Rt=!0,I&&(a=Jr,a!==null)))throw a;e.memoizedState=d,e.baseState=x,e.baseQueue=k,l.lastRenderedState=d}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function vu(e){var t=yt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,i=a.pending,d=t.memoizedState;if(i!==null){a.pending=null;var x=i=i.next;do d=e(d,x.action),x=x.next;while(x!==i);Ft(d,t.memoizedState)||(Rt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),a.lastRenderedState=d}return[d,l]}function wh(e,t,a){var l=Ae,i=yt(),d=qe;if(d){if(a===void 0)throw Error(s(407));a=a()}else a=t();var x=!Ft((Xe||i).memoizedState,a);x&&(i.memoizedState=a,Rt=!0),i=i.queue;var w=Th.bind(null,l,i,e);if(dl(2048,8,w,[e]),i.getSnapshot!==t||x||vt!==null&&vt.memoizedState.tag&1){if(l.flags|=2048,ao(9,Ms(),Nh.bind(null,l,i,a,t),null),Je===null)throw Error(s(349));d||(Aa&124)!==0||Eh(l,t,a)}return a}function Eh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ae.updateQueue,t===null?(t=hu(),Ae.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Nh(e,t,a,l){t.value=a,t.getSnapshot=l,Ch(t)&&Rh(e)}function Th(e,t,a){return a(function(){Ch(t)&&Rh(e)})}function Ch(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ft(e,a)}catch{return!0}}function Rh(e){var t=Qr(e,2);t!==null&&an(t,e,2)}function yu(e){var t=Gt();if(typeof e=="function"){var a=e;if(e=a(),gr){qt(!0);try{a()}finally{qt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:e},t}function Ah(e,t,a,l){return e.baseState=a,gu(e,Xe,typeof l=="function"?l:oa)}function ES(e,t,a,l,i){if(Ds(e))throw Error(s(485));if(e=t.action,e!==null){var d={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){d.listeners.push(x)}};_.T!==null?a(!0):d.isTransition=!1,l(d),a=t.pending,a===null?(d.next=t.pending=d,kh(t,d)):(d.next=a.next,t.pending=a.next=d)}}function kh(e,t){var a=t.action,l=t.payload,i=e.state;if(t.isTransition){var d=_.T,x={};_.T=x;try{var w=a(i,l),k=_.S;k!==null&&k(x,w),jh(e,t,w)}catch(L){bu(e,t,L)}finally{_.T=d}}else try{d=a(i,l),jh(e,t,d)}catch(L){bu(e,t,L)}}function jh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){_h(e,t,l)},function(l){return bu(e,t,l)}):_h(e,t,a)}function _h(e,t,a){t.status="fulfilled",t.value=a,Mh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,kh(e,a)))}function bu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Mh(t),t=t.next;while(t!==l)}e.action=null}function Mh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Oh(e,t){return t}function Dh(e,t){if(qe){var a=Je.formState;if(a!==null){e:{var l=Ae;if(qe){if(ut){t:{for(var i=ut,d=_n;i.nodeType!==8;){if(!d){i=null;break t}if(i=En(i.nextSibling),i===null){i=null;break t}}d=i.data,i=d==="F!"||d==="F"?i:null}if(i){ut=En(i.nextSibling),l=i.data==="F!";break e}}fr(l)}l=!1}l&&(t=a[0])}}return a=Gt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oh,lastRenderedState:t},a.queue=l,a=Jh.bind(null,Ae,l),l.dispatch=a,l=yu(!1),d=Nu.bind(null,Ae,!1,l.queue),l=Gt(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,a=ES.bind(null,Ae,i,d,a),i.dispatch=a,l.memoizedState=e,[t,a,!1]}function zh(e){var t=yt();return Lh(t,Xe,e)}function Lh(e,t,a){if(t=gu(e,t,Oh)[0],e=_s(oa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ul(t)}catch(x){throw x===rl?Ts:x}else l=t;t=yt();var i=t.queue,d=i.dispatch;return a!==t.memoizedState&&(Ae.flags|=2048,ao(9,Ms(),NS.bind(null,i,a),null)),[l,d,e]}function NS(e,t){e.action=t}function Uh(e){var t=yt(),a=Xe;if(a!==null)return Lh(t,a,e);yt(),t=t.memoizedState,a=yt();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function ao(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=hu(),Ae.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Ms(){return{destroy:void 0,resource:void 0}}function Bh(){return yt().memoizedState}function Os(e,t,a,l){var i=Gt();l=l===void 0?null:l,Ae.flags|=e,i.memoizedState=ao(1|t,Ms(),a,l)}function dl(e,t,a,l){var i=yt();l=l===void 0?null:l;var d=i.memoizedState.inst;Xe!==null&&l!==null&&cu(l,Xe.memoizedState.deps)?i.memoizedState=ao(t,d,a,l):(Ae.flags|=e,i.memoizedState=ao(1|t,d,a,l))}function Hh(e,t){Os(8390656,8,e,t)}function $h(e,t){dl(2048,8,e,t)}function Ph(e,t){return dl(4,2,e,t)}function qh(e,t){return dl(4,4,e,t)}function Vh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Yh(e,t,a){a=a!=null?a.concat([e]):null,dl(4,4,Vh.bind(null,t,e),a)}function xu(){}function Gh(e,t){var a=yt();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&cu(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Ih(e,t){var a=yt();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&cu(t,l[1]))return l[0];if(l=e(),gr){qt(!0);try{e()}finally{qt(!1)}}return a.memoizedState=[l,t],l}function Su(e,t,a){return a===void 0||(Aa&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=Kp(),Ae.lanes|=e,za|=e,a)}function Xh(e,t,a,l){return Ft(a,t)?a:eo.current!==null?(e=Su(e,a,l),Ft(e,t)||(Rt=!0),e):(Aa&42)===0?(Rt=!0,e.memoizedState=a):(e=Kp(),Ae.lanes|=e,za|=e,t)}function Qh(e,t,a,l,i){var d=q.p;q.p=d!==0&&8>d?d:8;var x=_.T,w={};_.T=w,Nu(e,!1,t,a);try{var k=i(),L=_.S;if(L!==null&&L(w,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var I=xS(k,l);fl(e,t,I,nn(e))}else fl(e,t,l,nn(e))}catch(Z){fl(e,t,{then:function(){},status:"rejected",reason:Z},nn())}finally{q.p=d,_.T=x}}function TS(){}function wu(e,t,a,l){if(e.tag!==5)throw Error(s(476));var i=Kh(e).queue;Qh(e,i,t,K,a===null?TS:function(){return Zh(e),a(l)})}function Kh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:K},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Zh(e){var t=Kh(e).next.queue;fl(e,t,{},nn())}function Eu(){return Lt(jl)}function Fh(){return yt().memoizedState}function Wh(){return yt().memoizedState}function CS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=nn();e=Ca(a);var l=Ra(t,e,a);l!==null&&(an(l,t,a),ll(l,t,a)),t={cache:Jc()},e.payload=t;return}t=t.return}}function RS(e,t,a){var l=nn();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Ds(e)?ep(t,a):(a=Vc(e,t,a,l),a!==null&&(an(a,e,l),tp(a,t,l)))}function Jh(e,t,a){var l=nn();fl(e,t,a,l)}function fl(e,t,a,l){var i={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ds(e))ep(t,i);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var x=t.lastRenderedState,w=d(x,a);if(i.hasEagerState=!0,i.eagerState=w,Ft(w,x))return vs(e,t,i,0),Je===null&&gs(),!1}catch{}finally{}if(a=Vc(e,t,i,l),a!==null)return an(a,e,l),tp(a,t,l),!0}return!1}function Nu(e,t,a,l){if(l={lane:2,revertLane:nd(),action:l,hasEagerState:!1,eagerState:null,next:null},Ds(e)){if(t)throw Error(s(479))}else t=Vc(e,a,l,2),t!==null&&an(t,e,2)}function Ds(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function ep(e,t){to=As=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function tp(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,lt(e,a)}}var zs={readContext:Lt,use:js,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt},np={readContext:Lt,use:js,useCallback:function(e,t){return Gt().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:Hh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Os(4194308,4,Vh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Os(4194308,4,e,t)},useInsertionEffect:function(e,t){Os(4,2,e,t)},useMemo:function(e,t){var a=Gt();t=t===void 0?null:t;var l=e();if(gr){qt(!0);try{e()}finally{qt(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Gt();if(a!==void 0){var i=a(t);if(gr){qt(!0);try{a(t)}finally{qt(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=RS.bind(null,Ae,e),[l.memoizedState,e]},useRef:function(e){var t=Gt();return e={current:e},t.memoizedState=e},useState:function(e){e=yu(e);var t=e.queue,a=Jh.bind(null,Ae,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:xu,useDeferredValue:function(e,t){var a=Gt();return Su(a,e,t)},useTransition:function(){var e=yu(!1);return e=Qh.bind(null,Ae,e.queue,!0,!1),Gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=Ae,i=Gt();if(qe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Je===null)throw Error(s(349));(Le&124)!==0||Eh(l,t,a)}i.memoizedState=a;var d={value:a,getSnapshot:t};return i.queue=d,Hh(Th.bind(null,l,d,e),[e]),l.flags|=2048,ao(9,Ms(),Nh.bind(null,l,d,a,t),null),a},useId:function(){var e=Gt(),t=Je.identifierPrefix;if(qe){var a=na,l=ta;a=(l&~(1<<32-nt(l)-1)).toString(32)+a,t="«"+t+"R"+a,a=ks++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=SS++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Eu,useFormState:Dh,useActionState:Dh,useOptimistic:function(e){var t=Gt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Nu.bind(null,Ae,!0,a),a.dispatch=t,[e,t]},useMemoCache:pu,useCacheRefresh:function(){return Gt().memoizedState=CS.bind(null,Ae)}},ap={readContext:Lt,use:js,useCallback:Gh,useContext:Lt,useEffect:$h,useImperativeHandle:Yh,useInsertionEffect:Ph,useLayoutEffect:qh,useMemo:Ih,useReducer:_s,useRef:Bh,useState:function(){return _s(oa)},useDebugValue:xu,useDeferredValue:function(e,t){var a=yt();return Xh(a,Xe.memoizedState,e,t)},useTransition:function(){var e=_s(oa)[0],t=yt().memoizedState;return[typeof e=="boolean"?e:ul(e),t]},useSyncExternalStore:wh,useId:Fh,useHostTransitionStatus:Eu,useFormState:zh,useActionState:zh,useOptimistic:function(e,t){var a=yt();return Ah(a,Xe,e,t)},useMemoCache:pu,useCacheRefresh:Wh},AS={readContext:Lt,use:js,useCallback:Gh,useContext:Lt,useEffect:$h,useImperativeHandle:Yh,useInsertionEffect:Ph,useLayoutEffect:qh,useMemo:Ih,useReducer:vu,useRef:Bh,useState:function(){return vu(oa)},useDebugValue:xu,useDeferredValue:function(e,t){var a=yt();return Xe===null?Su(a,e,t):Xh(a,Xe.memoizedState,e,t)},useTransition:function(){var e=vu(oa)[0],t=yt().memoizedState;return[typeof e=="boolean"?e:ul(e),t]},useSyncExternalStore:wh,useId:Fh,useHostTransitionStatus:Eu,useFormState:Uh,useActionState:Uh,useOptimistic:function(e,t){var a=yt();return Xe!==null?Ah(a,Xe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:pu,useCacheRefresh:Wh},ro=null,ml=0;function Ls(e){var t=ml;return ml+=1,ro===null&&(ro=[]),hh(ro,e,t)}function hl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Us(e,t){throw t.$$typeof===y?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function rp(e){var t=e._init;return t(e._payload)}function op(e){function t(D,O){if(e){var z=D.deletions;z===null?(D.deletions=[O],D.flags|=16):z.push(O)}}function a(D,O){if(!e)return null;for(;O!==null;)t(D,O),O=O.sibling;return null}function l(D){for(var O=new Map;D!==null;)D.key!==null?O.set(D.key,D):O.set(D.index,D),D=D.sibling;return O}function i(D,O){return D=ea(D,O),D.index=0,D.sibling=null,D}function d(D,O,z){return D.index=z,e?(z=D.alternate,z!==null?(z=z.index,z<O?(D.flags|=67108866,O):z):(D.flags|=67108866,O)):(D.flags|=1048576,O)}function x(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function w(D,O,z,Q){return O===null||O.tag!==6?(O=Gc(z,D.mode,Q),O.return=D,O):(O=i(O,z),O.return=D,O)}function k(D,O,z,Q){var he=z.type;return he===E?I(D,O,z.props.children,Q,z.key):O!==null&&(O.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===$&&rp(he)===O.type)?(O=i(O,z.props),hl(O,z),O.return=D,O):(O=bs(z.type,z.key,z.props,null,D.mode,Q),hl(O,z),O.return=D,O)}function L(D,O,z,Q){return O===null||O.tag!==4||O.stateNode.containerInfo!==z.containerInfo||O.stateNode.implementation!==z.implementation?(O=Ic(z,D.mode,Q),O.return=D,O):(O=i(O,z.children||[]),O.return=D,O)}function I(D,O,z,Q,he){return O===null||O.tag!==7?(O=ir(z,D.mode,Q,he),O.return=D,O):(O=i(O,z),O.return=D,O)}function Z(D,O,z){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Gc(""+O,D.mode,z),O.return=D,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return z=bs(O.type,O.key,O.props,null,D.mode,z),hl(z,O),z.return=D,z;case T:return O=Ic(O,D.mode,z),O.return=D,O;case $:var Q=O._init;return O=Q(O._payload),Z(D,O,z)}if(J(O)||F(O))return O=ir(O,D.mode,z,null),O.return=D,O;if(typeof O.then=="function")return Z(D,Ls(O),z);if(O.$$typeof===M)return Z(D,Es(D,O),z);Us(D,O)}return null}function B(D,O,z,Q){var he=O!==null?O.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return he!==null?null:w(D,O,""+z,Q);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case S:return z.key===he?k(D,O,z,Q):null;case T:return z.key===he?L(D,O,z,Q):null;case $:return he=z._init,z=he(z._payload),B(D,O,z,Q)}if(J(z)||F(z))return he!==null?null:I(D,O,z,Q,null);if(typeof z.then=="function")return B(D,O,Ls(z),Q);if(z.$$typeof===M)return B(D,O,Es(D,z),Q);Us(D,z)}return null}function P(D,O,z,Q,he){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return D=D.get(z)||null,w(O,D,""+Q,he);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case S:return D=D.get(Q.key===null?z:Q.key)||null,k(O,D,Q,he);case T:return D=D.get(Q.key===null?z:Q.key)||null,L(O,D,Q,he);case $:var _e=Q._init;return Q=_e(Q._payload),P(D,O,z,Q,he)}if(J(Q)||F(Q))return D=D.get(z)||null,I(O,D,Q,he,null);if(typeof Q.then=="function")return P(D,O,z,Ls(Q),he);if(Q.$$typeof===M)return P(D,O,z,Es(O,Q),he);Us(O,Q)}return null}function Ce(D,O,z,Q){for(var he=null,_e=null,ye=O,Te=O=0,kt=null;ye!==null&&Te<z.length;Te++){ye.index>Te?(kt=ye,ye=null):kt=ye.sibling;var Be=B(D,ye,z[Te],Q);if(Be===null){ye===null&&(ye=kt);break}e&&ye&&Be.alternate===null&&t(D,ye),O=d(Be,O,Te),_e===null?he=Be:_e.sibling=Be,_e=Be,ye=kt}if(Te===z.length)return a(D,ye),qe&&ur(D,Te),he;if(ye===null){for(;Te<z.length;Te++)ye=Z(D,z[Te],Q),ye!==null&&(O=d(ye,O,Te),_e===null?he=ye:_e.sibling=ye,_e=ye);return qe&&ur(D,Te),he}for(ye=l(ye);Te<z.length;Te++)kt=P(ye,D,Te,z[Te],Q),kt!==null&&(e&&kt.alternate!==null&&ye.delete(kt.key===null?Te:kt.key),O=d(kt,O,Te),_e===null?he=kt:_e.sibling=kt,_e=kt);return e&&ye.forEach(function(Ya){return t(D,Ya)}),qe&&ur(D,Te),he}function Ee(D,O,z,Q){if(z==null)throw Error(s(151));for(var he=null,_e=null,ye=O,Te=O=0,kt=null,Be=z.next();ye!==null&&!Be.done;Te++,Be=z.next()){ye.index>Te?(kt=ye,ye=null):kt=ye.sibling;var Ya=B(D,ye,Be.value,Q);if(Ya===null){ye===null&&(ye=kt);break}e&&ye&&Ya.alternate===null&&t(D,ye),O=d(Ya,O,Te),_e===null?he=Ya:_e.sibling=Ya,_e=Ya,ye=kt}if(Be.done)return a(D,ye),qe&&ur(D,Te),he;if(ye===null){for(;!Be.done;Te++,Be=z.next())Be=Z(D,Be.value,Q),Be!==null&&(O=d(Be,O,Te),_e===null?he=Be:_e.sibling=Be,_e=Be);return qe&&ur(D,Te),he}for(ye=l(ye);!Be.done;Te++,Be=z.next())Be=P(ye,D,Te,Be.value,Q),Be!==null&&(e&&Be.alternate!==null&&ye.delete(Be.key===null?Te:Be.key),O=d(Be,O,Te),_e===null?he=Be:_e.sibling=Be,_e=Be);return e&&ye.forEach(function(kw){return t(D,kw)}),qe&&ur(D,Te),he}function Ke(D,O,z,Q){if(typeof z=="object"&&z!==null&&z.type===E&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case S:e:{for(var he=z.key;O!==null;){if(O.key===he){if(he=z.type,he===E){if(O.tag===7){a(D,O.sibling),Q=i(O,z.props.children),Q.return=D,D=Q;break e}}else if(O.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===$&&rp(he)===O.type){a(D,O.sibling),Q=i(O,z.props),hl(Q,z),Q.return=D,D=Q;break e}a(D,O);break}else t(D,O);O=O.sibling}z.type===E?(Q=ir(z.props.children,D.mode,Q,z.key),Q.return=D,D=Q):(Q=bs(z.type,z.key,z.props,null,D.mode,Q),hl(Q,z),Q.return=D,D=Q)}return x(D);case T:e:{for(he=z.key;O!==null;){if(O.key===he)if(O.tag===4&&O.stateNode.containerInfo===z.containerInfo&&O.stateNode.implementation===z.implementation){a(D,O.sibling),Q=i(O,z.children||[]),Q.return=D,D=Q;break e}else{a(D,O);break}else t(D,O);O=O.sibling}Q=Ic(z,D.mode,Q),Q.return=D,D=Q}return x(D);case $:return he=z._init,z=he(z._payload),Ke(D,O,z,Q)}if(J(z))return Ce(D,O,z,Q);if(F(z)){if(he=F(z),typeof he!="function")throw Error(s(150));return z=he.call(z),Ee(D,O,z,Q)}if(typeof z.then=="function")return Ke(D,O,Ls(z),Q);if(z.$$typeof===M)return Ke(D,O,Es(D,z),Q);Us(D,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,O!==null&&O.tag===6?(a(D,O.sibling),Q=i(O,z),Q.return=D,D=Q):(a(D,O),Q=Gc(z,D.mode,Q),Q.return=D,D=Q),x(D)):a(D,O)}return function(D,O,z,Q){try{ml=0;var he=Ke(D,O,z,Q);return ro=null,he}catch(ye){if(ye===rl||ye===Ts)throw ye;var _e=Wt(29,ye,null,D.mode);return _e.lanes=Q,_e.return=D,_e}finally{}}}var oo=op(!0),lp=op(!1),gn=Y(null),Mn=null;function ka(e){var t=e.alternate;X(wt,wt.current&1),X(gn,e),Mn===null&&(t===null||eo.current!==null||t.memoizedState!==null)&&(Mn=e)}function sp(e){if(e.tag===22){if(X(wt,wt.current),X(gn,e),Mn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Mn=e)}}else ja()}function ja(){X(wt,wt.current),X(gn,gn.current)}function la(e){se(gn),Mn===e&&(Mn=null),se(wt)}var wt=Y(0);function Bs(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||hd(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Tu(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Cu={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=nn(),i=Ca(l);i.payload=t,a!=null&&(i.callback=a),t=Ra(e,i,l),t!==null&&(an(t,e,l),ll(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=nn(),i=Ca(l);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Ra(e,i,l),t!==null&&(an(t,e,l),ll(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=nn(),l=Ca(a);l.tag=2,t!=null&&(l.callback=t),t=Ra(e,l,a),t!==null&&(an(t,e,a),ll(t,e,a))}};function ip(e,t,a,l,i,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,x):t.prototype&&t.prototype.isPureReactComponent?!Zo(a,l)||!Zo(i,d):!0}function cp(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Cu.enqueueReplaceState(t,t.state,null)}function vr(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}var Hs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function up(e){Hs(e)}function dp(e){console.error(e)}function fp(e){Hs(e)}function $s(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function mp(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Ru(e,t,a){return a=Ca(a),a.tag=3,a.payload={element:null},a.callback=function(){$s(e,t)},a}function hp(e){return e=Ca(e),e.tag=3,e}function pp(e,t,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var d=l.value;e.payload=function(){return i(d)},e.callback=function(){mp(t,a,l)}}var x=a.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){mp(t,a,l),typeof i!="function"&&(La===null?La=new Set([this]):La.add(this));var w=l.stack;this.componentDidCatch(l.value,{componentStack:w!==null?w:""})})}function kS(e,t,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&tl(t,a,i,!0),a=gn.current,a!==null){switch(a.tag){case 13:return Mn===null?Fu():a.alternate===null&&dt===0&&(dt=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===nu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Ju(e,l,i)),!1;case 22:return a.flags|=65536,l===nu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Ju(e,l,i)),!1}throw Error(s(435,a.tag))}return Ju(e,l,i),Fu(),!1}if(qe)return t=gn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==Kc&&(e=Error(s(422),{cause:l}),el(fn(e,a)))):(l!==Kc&&(t=Error(s(423),{cause:l}),el(fn(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=fn(l,a),i=Ru(e.stateNode,l,i),ou(e,i),dt!==4&&(dt=2)),!1;var d=Error(s(520),{cause:l});if(d=fn(d,a),Sl===null?Sl=[d]:Sl.push(d),dt!==4&&(dt=2),t===null)return!0;l=fn(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Ru(a.stateNode,l,e),ou(a,e),!1;case 1:if(t=a.type,d=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(La===null||!La.has(d))))return a.flags|=65536,i&=-i,a.lanes|=i,i=hp(i),pp(i,e,a,l),ou(a,i),!1}a=a.return}while(a!==null);return!1}var gp=Error(s(461)),Rt=!1;function Ot(e,t,a,l){t.child=e===null?lp(t,null,a,l):oo(t,e.child,a,l)}function vp(e,t,a,l,i){a=a.render;var d=t.ref;if("ref"in l){var x={};for(var w in l)w!=="ref"&&(x[w]=l[w])}else x=l;return hr(t),l=uu(e,t,a,x,d,i),w=du(),e!==null&&!Rt?(fu(e,t,i),sa(e,t,i)):(qe&&w&&Xc(t),t.flags|=1,Ot(e,t,l,i),t.child)}function yp(e,t,a,l,i){if(e===null){var d=a.type;return typeof d=="function"&&!Yc(d)&&d.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=d,bp(e,t,d,l,i)):(e=bs(a.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!zu(e,i)){var x=d.memoizedProps;if(a=a.compare,a=a!==null?a:Zo,a(x,l)&&e.ref===t.ref)return sa(e,t,i)}return t.flags|=1,e=ea(d,l),e.ref=t.ref,e.return=t,t.child=e}function bp(e,t,a,l,i){if(e!==null){var d=e.memoizedProps;if(Zo(d,l)&&e.ref===t.ref)if(Rt=!1,t.pendingProps=l=d,zu(e,i))(e.flags&131072)!==0&&(Rt=!0);else return t.lanes=e.lanes,sa(e,t,i)}return Au(e,t,a,l,i)}function xp(e,t,a){var l=t.pendingProps,i=l.children,d=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=d!==null?d.baseLanes|a:a,e!==null){for(i=t.child=e.child,d=0;i!==null;)d=d|i.lanes|i.childLanes,i=i.sibling;t.childLanes=d&~l}else t.childLanes=0,t.child=null;return Sp(e,t,l,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ns(t,d!==null?d.cachePool:null),d!==null?bh(t,d):su(),sp(t);else return t.lanes=t.childLanes=536870912,Sp(e,t,d!==null?d.baseLanes|a:a,a)}else d!==null?(Ns(t,d.cachePool),bh(t,d),ja(),t.memoizedState=null):(e!==null&&Ns(t,null),su(),ja());return Ot(e,t,i,a),t.child}function Sp(e,t,a,l){var i=tu();return i=i===null?null:{parent:St._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&Ns(t,null),su(),sp(t),e!==null&&tl(e,t,l,!0),null}function Ps(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Au(e,t,a,l,i){return hr(t),a=uu(e,t,a,l,void 0,i),l=du(),e!==null&&!Rt?(fu(e,t,i),sa(e,t,i)):(qe&&l&&Xc(t),t.flags|=1,Ot(e,t,a,i),t.child)}function wp(e,t,a,l,i,d){return hr(t),t.updateQueue=null,a=Sh(t,l,a,i),xh(e),l=du(),e!==null&&!Rt?(fu(e,t,d),sa(e,t,d)):(qe&&l&&Xc(t),t.flags|=1,Ot(e,t,a,d),t.child)}function Ep(e,t,a,l,i){if(hr(t),t.stateNode===null){var d=Kr,x=a.contextType;typeof x=="object"&&x!==null&&(d=Lt(x)),d=new a(l,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Cu,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=l,d.state=t.memoizedState,d.refs={},au(t),x=a.contextType,d.context=typeof x=="object"&&x!==null?Lt(x):Kr,d.state=t.memoizedState,x=a.getDerivedStateFromProps,typeof x=="function"&&(Tu(t,a,x,l),d.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(x=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),x!==d.state&&Cu.enqueueReplaceState(d,d.state,null),il(t,l,d,i),sl(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){d=t.stateNode;var w=t.memoizedProps,k=vr(a,w);d.props=k;var L=d.context,I=a.contextType;x=Kr,typeof I=="object"&&I!==null&&(x=Lt(I));var Z=a.getDerivedStateFromProps;I=typeof Z=="function"||typeof d.getSnapshotBeforeUpdate=="function",w=t.pendingProps!==w,I||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(w||L!==x)&&cp(t,d,l,x),Ta=!1;var B=t.memoizedState;d.state=B,il(t,l,d,i),sl(),L=t.memoizedState,w||B!==L||Ta?(typeof Z=="function"&&(Tu(t,a,Z,l),L=t.memoizedState),(k=Ta||ip(t,a,k,l,B,L,x))?(I||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=L),d.props=l,d.state=L,d.context=x,l=k):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{d=t.stateNode,ru(e,t),x=t.memoizedProps,I=vr(a,x),d.props=I,Z=t.pendingProps,B=d.context,L=a.contextType,k=Kr,typeof L=="object"&&L!==null&&(k=Lt(L)),w=a.getDerivedStateFromProps,(L=typeof w=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x!==Z||B!==k)&&cp(t,d,l,k),Ta=!1,B=t.memoizedState,d.state=B,il(t,l,d,i),sl();var P=t.memoizedState;x!==Z||B!==P||Ta||e!==null&&e.dependencies!==null&&ws(e.dependencies)?(typeof w=="function"&&(Tu(t,a,w,l),P=t.memoizedState),(I=Ta||ip(t,a,I,l,B,P,k)||e!==null&&e.dependencies!==null&&ws(e.dependencies))?(L||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,P,k),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,P,k)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=P),d.props=l,d.state=P,d.context=k,l=I):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),l=!1)}return d=l,Ps(e,t),l=(t.flags&128)!==0,d||l?(d=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&l?(t.child=oo(t,e.child,null,i),t.child=oo(t,null,a,i)):Ot(e,t,a,i),t.memoizedState=d.state,e=t.child):e=sa(e,t,i),e}function Np(e,t,a,l){return Jo(),t.flags|=256,Ot(e,t,a,l),t.child}var ku={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ju(e){return{baseLanes:e,cachePool:dh()}}function _u(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=vn),e}function Tp(e,t,a){var l=t.pendingProps,i=!1,d=(t.flags&128)!==0,x;if((x=d)||(x=e!==null&&e.memoizedState===null?!1:(wt.current&2)!==0),x&&(i=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(qe){if(i?ka(t):ja(),qe){var w=ut,k;if(k=w){e:{for(k=w,w=_n;k.nodeType!==8;){if(!w){w=null;break e}if(k=En(k.nextSibling),k===null){w=null;break e}}w=k}w!==null?(t.memoizedState={dehydrated:w,treeContext:cr!==null?{id:ta,overflow:na}:null,retryLane:536870912,hydrationErrors:null},k=Wt(18,null,null,0),k.stateNode=w,k.return=t,t.child=k,$t=t,ut=null,k=!0):k=!1}k||fr(t)}if(w=t.memoizedState,w!==null&&(w=w.dehydrated,w!==null))return hd(w)?t.lanes=32:t.lanes=536870912,null;la(t)}return w=l.children,l=l.fallback,i?(ja(),i=t.mode,w=qs({mode:"hidden",children:w},i),l=ir(l,i,a,null),w.return=t,l.return=t,w.sibling=l,t.child=w,i=t.child,i.memoizedState=ju(a),i.childLanes=_u(e,x,a),t.memoizedState=ku,l):(ka(t),Mu(t,w))}if(k=e.memoizedState,k!==null&&(w=k.dehydrated,w!==null)){if(d)t.flags&256?(ka(t),t.flags&=-257,t=Ou(e,t,a)):t.memoizedState!==null?(ja(),t.child=e.child,t.flags|=128,t=null):(ja(),i=l.fallback,w=t.mode,l=qs({mode:"visible",children:l.children},w),i=ir(i,w,a,null),i.flags|=2,l.return=t,i.return=t,l.sibling=i,t.child=l,oo(t,e.child,null,a),l=t.child,l.memoizedState=ju(a),l.childLanes=_u(e,x,a),t.memoizedState=ku,t=i);else if(ka(t),hd(w)){if(x=w.nextSibling&&w.nextSibling.dataset,x)var L=x.dgst;x=L,l=Error(s(419)),l.stack="",l.digest=x,el({value:l,source:null,stack:null}),t=Ou(e,t,a)}else if(Rt||tl(e,t,a,!1),x=(a&e.childLanes)!==0,Rt||x){if(x=Je,x!==null&&(l=a&-a,l=(l&42)!==0?1:st(l),l=(l&(x.suspendedLanes|a))!==0?0:l,l!==0&&l!==k.retryLane))throw k.retryLane=l,Qr(e,l),an(x,e,l),gp;w.data==="$?"||Fu(),t=Ou(e,t,a)}else w.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=k.treeContext,ut=En(w.nextSibling),$t=t,qe=!0,dr=null,_n=!1,e!==null&&(hn[pn++]=ta,hn[pn++]=na,hn[pn++]=cr,ta=e.id,na=e.overflow,cr=t),t=Mu(t,l.children),t.flags|=4096);return t}return i?(ja(),i=l.fallback,w=t.mode,k=e.child,L=k.sibling,l=ea(k,{mode:"hidden",children:l.children}),l.subtreeFlags=k.subtreeFlags&65011712,L!==null?i=ea(L,i):(i=ir(i,w,a,null),i.flags|=2),i.return=t,l.return=t,l.sibling=i,t.child=l,l=i,i=t.child,w=e.child.memoizedState,w===null?w=ju(a):(k=w.cachePool,k!==null?(L=St._currentValue,k=k.parent!==L?{parent:L,pool:L}:k):k=dh(),w={baseLanes:w.baseLanes|a,cachePool:k}),i.memoizedState=w,i.childLanes=_u(e,x,a),t.memoizedState=ku,l):(ka(t),a=e.child,e=a.sibling,a=ea(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=a,t.memoizedState=null,a)}function Mu(e,t){return t=qs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function qs(e,t){return e=Wt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Ou(e,t,a){return oo(t,e.child,null,a),e=Mu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cp(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Fc(e.return,t,a)}function Du(e,t,a,l,i){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=a,d.tailMode=i)}function Rp(e,t,a){var l=t.pendingProps,i=l.revealOrder,d=l.tail;if(Ot(e,t,l.children,a),l=wt.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cp(e,a,t);else if(e.tag===19)Cp(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(X(wt,l),i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&Bs(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),Du(t,!1,i,a,d);break;case"backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Bs(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}Du(t,!0,a,null,d);break;case"together":Du(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function sa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),za|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(tl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=ea(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ea(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function zu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ws(e)))}function jS(e,t,a){switch(t.tag){case 3:ie(t,t.stateNode.containerInfo),Na(t,St,e.memoizedState.cache),Jo();break;case 27:case 5:be(t);break;case 4:ie(t,t.stateNode.containerInfo);break;case 10:Na(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ka(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Tp(e,t,a):(ka(t),e=sa(e,t,a),e!==null?e.sibling:null);ka(t);break;case 19:var i=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(tl(e,t,a,!1),l=(a&t.childLanes)!==0),i){if(l)return Rp(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),X(wt,wt.current),l)break;return null;case 22:case 23:return t.lanes=0,xp(e,t,a);case 24:Na(t,St,e.memoizedState.cache)}return sa(e,t,a)}function Ap(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Rt=!0;else{if(!zu(e,a)&&(t.flags&128)===0)return Rt=!1,jS(e,t,a);Rt=(e.flags&131072)!==0}else Rt=!1,qe&&(t.flags&1048576)!==0&&rh(t,Ss,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,i=l._init;if(l=i(l._payload),t.type=l,typeof l=="function")Yc(l)?(e=vr(l,e),t.tag=1,t=Ep(null,t,l,e,a)):(t.tag=0,t=Au(null,t,l,e,a));else{if(l!=null){if(i=l.$$typeof,i===U){t.tag=11,t=vp(null,t,l,e,a);break e}else if(i===V){t.tag=14,t=yp(null,t,l,e,a);break e}}throw t=ce(l)||l,Error(s(306,t,""))}}return t;case 0:return Au(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,i=vr(l,t.pendingProps),Ep(e,t,l,i,a);case 3:e:{if(ie(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var d=t.memoizedState;i=d.element,ru(e,t),il(t,l,null,a);var x=t.memoizedState;if(l=x.cache,Na(t,St,l),l!==d.cache&&Wc(t,[St],a,!0),sl(),l=x.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Np(e,t,l,a);break e}else if(l!==i){i=fn(Error(s(424)),t),el(i),t=Np(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ut=En(e.firstChild),$t=t,qe=!0,dr=null,_n=!0,a=lp(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Jo(),l===i){t=sa(e,t,a);break e}Ot(e,t,l,a)}t=t.child}return t;case 26:return Ps(e,t),e===null?(a=Mg(t.type,null,t.pendingProps,null))?t.memoizedState=a:qe||(a=t.type,e=t.pendingProps,l=ni(ee.current).createElement(a),l[ht]=t,l[We]=e,zt(l,a,e),Ct(l),t.stateNode=l):t.memoizedState=Mg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return be(t),e===null&&qe&&(l=t.stateNode=kg(t.type,t.pendingProps,ee.current),$t=t,_n=!0,i=ut,Ha(t.type)?(pd=i,ut=En(l.firstChild)):ut=i),Ot(e,t,t.pendingProps.children,a),Ps(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&qe&&((i=l=ut)&&(l=rw(l,t.type,t.pendingProps,_n),l!==null?(t.stateNode=l,$t=t,ut=En(l.firstChild),_n=!1,i=!0):i=!1),i||fr(t)),be(t),i=t.type,d=t.pendingProps,x=e!==null?e.memoizedProps:null,l=d.children,dd(i,d)?l=null:x!==null&&dd(i,x)&&(t.flags|=32),t.memoizedState!==null&&(i=uu(e,t,wS,null,null,a),jl._currentValue=i),Ps(e,t),Ot(e,t,l,a),t.child;case 6:return e===null&&qe&&((e=a=ut)&&(a=ow(a,t.pendingProps,_n),a!==null?(t.stateNode=a,$t=t,ut=null,e=!0):e=!1),e||fr(t)),null;case 13:return Tp(e,t,a);case 4:return ie(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=oo(t,null,l,a):Ot(e,t,l,a),t.child;case 11:return vp(e,t,t.type,t.pendingProps,a);case 7:return Ot(e,t,t.pendingProps,a),t.child;case 8:return Ot(e,t,t.pendingProps.children,a),t.child;case 12:return Ot(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Na(t,t.type,l.value),Ot(e,t,l.children,a),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,hr(t),i=Lt(i),l=l(i),t.flags|=1,Ot(e,t,l,a),t.child;case 14:return yp(e,t,t.type,t.pendingProps,a);case 15:return bp(e,t,t.type,t.pendingProps,a);case 19:return Rp(e,t,a);case 31:return l=t.pendingProps,a=t.mode,l={mode:l.mode,children:l.children},e===null?(a=qs(l,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=ea(e.child,l),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return xp(e,t,a);case 24:return hr(t),l=Lt(St),e===null?(i=tu(),i===null&&(i=Je,d=Jc(),i.pooledCache=d,d.refCount++,d!==null&&(i.pooledCacheLanes|=a),i=d),t.memoizedState={parent:l,cache:i},au(t),Na(t,St,i)):((e.lanes&a)!==0&&(ru(e,t),il(t,null,null,a),sl()),i=e.memoizedState,d=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Na(t,St,l)):(l=d.cache,Na(t,St,l),l!==i.cache&&Wc(t,[St],a,!0))),Ot(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ia(e){e.flags|=4}function kp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ug(t)){if(t=gn.current,t!==null&&((Le&4194048)===Le?Mn!==null:(Le&62914560)!==Le&&(Le&536870912)===0||t!==Mn))throw ol=nu,fh;e.flags|=8192}}function Vs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?we():536870912,e.lanes|=t,co|=t)}function pl(e,t){if(!qe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function it(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function _S(e,t,a){var l=t.pendingProps;switch(Qc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(t),null;case 1:return it(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ra(St),ae(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Wo(t)?ia(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sh())),it(t),null;case 26:return a=t.memoizedState,e===null?(ia(t),a!==null?(it(t),kp(t,a)):(it(t),t.flags&=-16777217)):a?a!==e.memoizedState?(ia(t),it(t),kp(t,a)):(it(t),t.flags&=-16777217):(e.memoizedProps!==l&&ia(t),it(t),t.flags&=-16777217),null;case 27:ve(t),a=ee.current;var i=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ia(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return it(t),null}e=ne.current,Wo(t)?oh(t):(e=kg(i,l,a),t.stateNode=e,ia(t))}return it(t),null;case 5:if(ve(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ia(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return it(t),null}if(e=ne.current,Wo(t))oh(t);else{switch(i=ni(ee.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof 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[ht]=t,e[We]=l;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(zt(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&&ia(t)}}return it(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ia(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ee.current,Wo(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,i=$t,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[ht]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||wg(e.nodeValue,a)),e||fr(t)}else e=ni(e).createTextNode(l),e[ht]=t,t.stateNode=e}return it(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Wo(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));i[ht]=t}else Jo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;it(t),i=!1}else i=sh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(la(t),t):(la(t),null)}if(la(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool);var d=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==i&&(l.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),Vs(t,t.updateQueue),it(t),null;case 4:return ae(),e===null&&ld(t.stateNode.containerInfo),it(t),null;case 10:return ra(t.type),it(t),null;case 19:if(se(wt),i=t.memoizedState,i===null)return it(t),null;if(l=(t.flags&128)!==0,d=i.rendering,d===null)if(l)pl(i,!1);else{if(dt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Bs(e),d!==null){for(t.flags|=128,pl(i,!1),e=d.updateQueue,t.updateQueue=e,Vs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)ah(a,e),a=a.sibling;return X(wt,wt.current&1|2),t.child}e=e.sibling}i.tail!==null&&Pe()>Is&&(t.flags|=128,l=!0,pl(i,!1),t.lanes=4194304)}else{if(!l)if(e=Bs(d),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Vs(t,e),pl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!qe)return it(t),null}else 2*Pe()-i.renderingStartTime>Is&&a!==536870912&&(t.flags|=128,l=!0,pl(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(e=i.last,e!==null?e.sibling=d:t.child=d,i.last=d)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Pe(),t.sibling=null,e=wt.current,X(wt,l?e&1|2:e&1),t):(it(t),null);case 22:case 23:return la(t),iu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(it(t),t.subtreeFlags&6&&(t.flags|=8192)):it(t),a=t.updateQueue,a!==null&&Vs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&se(pr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ra(St),it(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function MS(e,t){switch(Qc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ra(St),ae(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ve(t),null;case 13:if(la(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Jo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(wt),null;case 4:return ae(),null;case 10:return ra(t.type),null;case 22:case 23:return la(t),iu(),e!==null&&se(pr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ra(St),null;case 25:return null;default:return null}}function jp(e,t){switch(Qc(t),t.tag){case 3:ra(St),ae();break;case 26:case 27:case 5:ve(t);break;case 4:ae();break;case 13:la(t);break;case 19:se(wt);break;case 10:ra(t.type);break;case 22:case 23:la(t),iu(),e!==null&&se(pr);break;case 24:ra(St)}}function gl(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){l=void 0;var d=a.create,x=a.inst;l=d(),x.destroy=l}a=a.next}while(a!==i)}}catch(w){Fe(t,t.return,w)}}function _a(e,t,a){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var d=i.next;l=d;do{if((l.tag&e)===e){var x=l.inst,w=x.destroy;if(w!==void 0){x.destroy=void 0,i=t;var k=a,L=w;try{L()}catch(I){Fe(i,k,I)}}}l=l.next}while(l!==d)}}catch(I){Fe(t,t.return,I)}}function _p(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{yh(t,a)}catch(l){Fe(e,e.return,l)}}}function Mp(e,t,a){a.props=vr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Fe(e,t,l)}}function vl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(i){Fe(e,t,i)}}function On(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Fe(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Fe(e,t,i)}else a.current=null}function Op(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(i){Fe(e,e.return,i)}}function Lu(e,t,a){try{var l=e.stateNode;JS(l,e.type,a,t),l[We]=t}catch(i){Fe(e,e.return,i)}}function Dp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ha(e.type)||e.tag===4}function Uu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dp(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&&Ha(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Bu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ti));else if(l!==4&&(l===27&&Ha(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Bu(e,t,a),e=e.sibling;e!==null;)Bu(e,t,a),e=e.sibling}function Ys(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ha(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ys(e,t,a),e=e.sibling;e!==null;)Ys(e,t,a),e=e.sibling}function zp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);zt(t,l,a),t[ht]=e,t[We]=a}catch(d){Fe(e,e.return,d)}}var ca=!1,gt=!1,Hu=!1,Lp=typeof WeakSet=="function"?WeakSet:Set,At=null;function OS(e,t){if(e=e.containerInfo,cd=ii,e=Xm(e),Uc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var x=0,w=-1,k=-1,L=0,I=0,Z=e,B=null;t:for(;;){for(var P;Z!==a||i!==0&&Z.nodeType!==3||(w=x+i),Z!==d||l!==0&&Z.nodeType!==3||(k=x+l),Z.nodeType===3&&(x+=Z.nodeValue.length),(P=Z.firstChild)!==null;)B=Z,Z=P;for(;;){if(Z===e)break t;if(B===a&&++L===i&&(w=x),B===d&&++I===l&&(k=x),(P=Z.nextSibling)!==null)break;Z=B,B=Z.parentNode}Z=P}a=w===-1||k===-1?null:{start:w,end:k}}else a=null}a=a||{start:0,end:0}}else a=null;for(ud={focusedElem:e,selectionRange:a},ii=!1,At=t;At!==null;)if(t=At,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,At=e;else for(;At!==null;){switch(t=At,d=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,a=t,i=d.memoizedProps,d=d.memoizedState,l=a.stateNode;try{var Ce=vr(a.type,i,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(Ce,d),l.__reactInternalSnapshotBeforeUpdate=e}catch(Ee){Fe(a,a.return,Ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)md(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":md(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,At=e;break}At=t.return}}function Up(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Ma(e,a),l&4&&gl(5,a);break;case 1:if(Ma(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(x){Fe(a,a.return,x)}else{var i=vr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Fe(a,a.return,x)}}l&64&&_p(a),l&512&&vl(a,a.return);break;case 3:if(Ma(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{yh(e,t)}catch(x){Fe(a,a.return,x)}}break;case 27:t===null&&l&4&&zp(a);case 26:case 5:Ma(e,a),t===null&&l&4&&Op(a),l&512&&vl(a,a.return);break;case 12:Ma(e,a);break;case 13:Ma(e,a),l&4&&$p(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=qS.bind(null,a),lw(e,a))));break;case 22:if(l=a.memoizedState!==null||ca,!l){t=t!==null&&t.memoizedState!==null||gt,i=ca;var d=gt;ca=l,(gt=t)&&!d?Oa(e,a,(a.subtreeFlags&8772)!==0):Ma(e,a),ca=i,gt=d}break;case 30:break;default:Ma(e,a)}}function Bp(e){var t=e.alternate;t!==null&&(e.alternate=null,Bp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var rt=null,It=!1;function ua(e,t,a){for(a=a.child;a!==null;)Hp(e,t,a),a=a.sibling}function Hp(e,t,a){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(Zt,a)}catch{}switch(a.tag){case 26:gt||On(a,t),ua(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:gt||On(a,t);var l=rt,i=It;Ha(a.type)&&(rt=a.stateNode,It=!1),ua(e,t,a),Cl(a.stateNode),rt=l,It=i;break;case 5:gt||On(a,t);case 6:if(l=rt,i=It,rt=null,ua(e,t,a),rt=l,It=i,rt!==null)if(It)try{(rt.nodeType===9?rt.body:rt.nodeName==="HTML"?rt.ownerDocument.body:rt).removeChild(a.stateNode)}catch(d){Fe(a,t,d)}else try{rt.removeChild(a.stateNode)}catch(d){Fe(a,t,d)}break;case 18:rt!==null&&(It?(e=rt,Rg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Dl(e)):Rg(rt,a.stateNode));break;case 4:l=rt,i=It,rt=a.stateNode.containerInfo,It=!0,ua(e,t,a),rt=l,It=i;break;case 0:case 11:case 14:case 15:gt||_a(2,a,t),gt||_a(4,a,t),ua(e,t,a);break;case 1:gt||(On(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Mp(a,t,l)),ua(e,t,a);break;case 21:ua(e,t,a);break;case 22:gt=(l=gt)||a.memoizedState!==null,ua(e,t,a),gt=l;break;default:ua(e,t,a)}}function $p(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Dl(e)}catch(a){Fe(t,t.return,a)}}function DS(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Lp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Lp),t;default:throw Error(s(435,e.tag))}}function $u(e,t){var a=DS(e);t.forEach(function(l){var i=VS.bind(null,e,l);a.has(l)||(a.add(l),l.then(i,i))})}function Jt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],d=e,x=t,w=x;e:for(;w!==null;){switch(w.tag){case 27:if(Ha(w.type)){rt=w.stateNode,It=!1;break e}break;case 5:rt=w.stateNode,It=!1;break e;case 3:case 4:rt=w.stateNode.containerInfo,It=!0;break e}w=w.return}if(rt===null)throw Error(s(160));Hp(d,x,i),rt=null,It=!1,d=i.alternate,d!==null&&(d.return=null),i.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Pp(t,e),t=t.sibling}var wn=null;function Pp(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Jt(t,e),en(e),l&4&&(_a(3,e,e.return),gl(3,e),_a(5,e,e.return));break;case 1:Jt(t,e),en(e),l&512&&(gt||a===null||On(a,a.return)),l&64&&ca&&(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=wn;if(Jt(t,e),en(e),l&512&&(gt||a===null||On(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[Po]||d[ht]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=i.createElement(l),i.head.insertBefore(d,i.querySelector("head > title"))),zt(d,l,a),d[ht]=e,Ct(d),l=d;break e;case"link":var x=zg("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),zt(d,l,a),i.head.appendChild(d);break;case"meta":if(x=zg("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),zt(d,l,a),i.head.appendChild(d);break;default:throw Error(s(468,l))}d[ht]=e,Ct(d),l=d}e.stateNode=l}else Lg(i,e.type,e.stateNode);else e.stateNode=Dg(i,l,e.memoizedProps);else d!==l?(d===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):d.count--,l===null?Lg(i,e.type,e.stateNode):Dg(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Lu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Jt(t,e),en(e),l&512&&(gt||a===null||On(a,a.return)),a!==null&&l&4&&Lu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Jt(t,e),en(e),l&512&&(gt||a===null||On(a,a.return)),e.flags&32){i=e.stateNode;try{Pr(i,"")}catch(P){Fe(e,e.return,P)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,Lu(e,i,a!==null?a.memoizedProps:i)),l&1024&&(Hu=!0);break;case 6:if(Jt(t,e),en(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(P){Fe(e,e.return,P)}}break;case 3:if(oi=null,i=wn,wn=ai(t.containerInfo),Jt(t,e),wn=i,en(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Dl(t.containerInfo)}catch(P){Fe(e,e.return,P)}Hu&&(Hu=!1,qp(e));break;case 4:l=wn,wn=ai(e.stateNode.containerInfo),Jt(t,e),en(e),wn=l;break;case 12:Jt(t,e),en(e);break;case 13:Jt(t,e),en(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Iu=Pe()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,$u(e,l)));break;case 22:i=e.memoizedState!==null;var k=a!==null&&a.memoizedState!==null,L=ca,I=gt;if(ca=L||i,gt=I||k,Jt(t,e),gt=I,ca=L,en(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||k||ca||gt||yr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){k=a=t;try{if(d=k.stateNode,i)x=d.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{w=k.stateNode;var Z=k.memoizedProps.style,B=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;w.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(P){Fe(k,k.return,P)}}}else if(t.tag===6){if(a===null){k=t;try{k.stateNode.nodeValue=i?"":k.memoizedProps}catch(P){Fe(k,k.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,$u(e,a))));break;case 19:Jt(t,e),en(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,$u(e,l)));break;case 30:break;case 21:break;default:Jt(t,e),en(e)}}function en(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Dp(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var i=a.stateNode,d=Uu(e);Ys(e,d,i);break;case 5:var x=a.stateNode;a.flags&32&&(Pr(x,""),a.flags&=-33);var w=Uu(e);Ys(e,w,x);break;case 3:case 4:var k=a.stateNode.containerInfo,L=Uu(e);Bu(e,L,k);break;default:throw Error(s(161))}}catch(I){Fe(e,e.return,I)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ma(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Up(e,t.alternate,t),t=t.sibling}function yr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:_a(4,t,t.return),yr(t);break;case 1:On(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Mp(t,t.return,a),yr(t);break;case 27:Cl(t.stateNode);case 26:case 5:On(t,t.return),yr(t);break;case 22:t.memoizedState===null&&yr(t);break;case 30:yr(t);break;default:yr(t)}e=e.sibling}}function Oa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,d=t,x=d.flags;switch(d.tag){case 0:case 11:case 15:Oa(i,d,a),gl(4,d);break;case 1:if(Oa(i,d,a),l=d,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(L){Fe(l,l.return,L)}if(l=d,i=l.updateQueue,i!==null){var w=l.stateNode;try{var k=i.shared.hiddenCallbacks;if(k!==null)for(i.shared.hiddenCallbacks=null,i=0;i<k.length;i++)vh(k[i],w)}catch(L){Fe(l,l.return,L)}}a&&x&64&&_p(d),vl(d,d.return);break;case 27:zp(d);case 26:case 5:Oa(i,d,a),a&&l===null&&x&4&&Op(d),vl(d,d.return);break;case 12:Oa(i,d,a);break;case 13:Oa(i,d,a),a&&x&4&&$p(i,d);break;case 22:d.memoizedState===null&&Oa(i,d,a),vl(d,d.return);break;case 30:break;default:Oa(i,d,a)}t=t.sibling}}function Pu(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&nl(a))}function qu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nl(e))}function Dn(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Vp(e,t,a,l),t=t.sibling}function Vp(e,t,a,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Dn(e,t,a,l),i&2048&&gl(9,t);break;case 1:Dn(e,t,a,l);break;case 3:Dn(e,t,a,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nl(e)));break;case 12:if(i&2048){Dn(e,t,a,l),e=t.stateNode;try{var d=t.memoizedProps,x=d.id,w=d.onPostCommit;typeof w=="function"&&w(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(k){Fe(t,t.return,k)}}else Dn(e,t,a,l);break;case 13:Dn(e,t,a,l);break;case 23:break;case 22:d=t.stateNode,x=t.alternate,t.memoizedState!==null?d._visibility&2?Dn(e,t,a,l):yl(e,t):d._visibility&2?Dn(e,t,a,l):(d._visibility|=2,lo(e,t,a,l,(t.subtreeFlags&10256)!==0)),i&2048&&Pu(x,t);break;case 24:Dn(e,t,a,l),i&2048&&qu(t.alternate,t);break;default:Dn(e,t,a,l)}}function lo(e,t,a,l,i){for(i=i&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var d=e,x=t,w=a,k=l,L=x.flags;switch(x.tag){case 0:case 11:case 15:lo(d,x,w,k,i),gl(8,x);break;case 23:break;case 22:var I=x.stateNode;x.memoizedState!==null?I._visibility&2?lo(d,x,w,k,i):yl(d,x):(I._visibility|=2,lo(d,x,w,k,i)),i&&L&2048&&Pu(x.alternate,x);break;case 24:lo(d,x,w,k,i),i&&L&2048&&qu(x.alternate,x);break;default:lo(d,x,w,k,i)}t=t.sibling}}function yl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,i=l.flags;switch(l.tag){case 22:yl(a,l),i&2048&&Pu(l.alternate,l);break;case 24:yl(a,l),i&2048&&qu(l.alternate,l);break;default:yl(a,l)}t=t.sibling}}var bl=8192;function so(e){if(e.subtreeFlags&bl)for(e=e.child;e!==null;)Yp(e),e=e.sibling}function Yp(e){switch(e.tag){case 26:so(e),e.flags&bl&&e.memoizedState!==null&&bw(wn,e.memoizedState,e.memoizedProps);break;case 5:so(e);break;case 3:case 4:var t=wn;wn=ai(e.stateNode.containerInfo),so(e),wn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=bl,bl=16777216,so(e),bl=t):so(e));break;default:so(e)}}function Gp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function xl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];At=l,Xp(l,e)}Gp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ip(e),e=e.sibling}function Ip(e){switch(e.tag){case 0:case 11:case 15:xl(e),e.flags&2048&&_a(9,e,e.return);break;case 3:xl(e);break;case 12:xl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Gs(e)):xl(e);break;default:xl(e)}}function Gs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];At=l,Xp(l,e)}Gp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:_a(8,t,t.return),Gs(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Gs(t));break;default:Gs(t)}e=e.sibling}}function Xp(e,t){for(;At!==null;){var a=At;switch(a.tag){case 0:case 11:case 15:_a(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:nl(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,At=l;else e:for(a=e;At!==null;){l=At;var i=l.sibling,d=l.return;if(Bp(l),l===a){At=null;break e}if(i!==null){i.return=d,At=i;break e}At=d}}}var zS={getCacheForType:function(e){var t=Lt(St),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},LS=typeof WeakMap=="function"?WeakMap:Map,Ge=0,Je=null,Me=null,Le=0,Ie=0,tn=null,Da=!1,io=!1,Vu=!1,da=0,dt=0,za=0,br=0,Yu=0,vn=0,co=0,Sl=null,Xt=null,Gu=!1,Iu=0,Is=1/0,Xs=null,La=null,Dt=0,Ua=null,uo=null,fo=0,Xu=0,Qu=null,Qp=null,wl=0,Ku=null;function nn(){if((Ge&2)!==0&&Le!==0)return Le&-Le;if(_.T!==null){var e=Wr;return e!==0?e:nd()}return ar()}function Kp(){vn===0&&(vn=(Le&536870912)===0||qe?Vt():536870912);var e=gn.current;return e!==null&&(e.flags|=32),vn}function an(e,t,a){(e===Je&&(Ie===2||Ie===9)||e.cancelPendingCommit!==null)&&(mo(e,0),Ba(e,Le,vn,!1)),Ye(e,a),((Ge&2)===0||e!==Je)&&(e===Je&&((Ge&2)===0&&(br|=a),dt===4&&Ba(e,Le,vn,!1)),zn(e))}function Zp(e,t,a){if((Ge&6)!==0)throw Error(s(327));var l=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Zn(e,t),i=l?HS(e,t):Wu(e,t,!0),d=l;do{if(i===0){io&&!l&&Ba(e,t,0,!1);break}else{if(a=e.current.alternate,d&&!US(a)){i=Wu(e,t,!1),d=!1;continue}if(i===2){if(d=t,e.errorRecoveryDisabledLanes&d)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var w=e;i=Sl;var k=w.current.memoizedState.isDehydrated;if(k&&(mo(w,x).flags|=256),x=Wu(w,x,!1),x!==2){if(Vu&&!k){w.errorRecoveryDisabledLanes|=d,br|=d,i=4;break e}d=Xt,Xt=i,d!==null&&(Xt===null?Xt=d:Xt.push.apply(Xt,d))}i=x}if(d=!1,i!==2)continue}}if(i===1){mo(e,0),Ba(e,t,0,!0);break}e:{switch(l=e,d=i,d){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ba(l,t,vn,!Da);break e;case 2:Xt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=Iu+300-Pe(),10<i)){if(Ba(l,t,vn,!Da),Kn(l,0,!0)!==0)break e;l.timeoutHandle=Tg(Fp.bind(null,l,a,Xt,Xs,Gu,t,vn,br,co,Da,d,2,-0,0),i);break e}Fp(l,a,Xt,Xs,Gu,t,vn,br,co,Da,d,0,-0,0)}}break}while(!0);zn(e)}function Fp(e,t,a,l,i,d,x,w,k,L,I,Z,B,P){if(e.timeoutHandle=-1,Z=t.subtreeFlags,(Z&8192||(Z&16785408)===16785408)&&(kl={stylesheets:null,count:0,unsuspend:yw},Yp(t),Z=xw(),Z!==null)){e.cancelPendingCommit=Z(rg.bind(null,e,t,d,a,l,i,x,w,k,I,1,B,P)),Ba(e,d,x,!L);return}rg(e,t,d,a,l,i,x,w,k)}function US(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var i=a[l],d=i.getSnapshot;i=i.value;try{if(!Ft(d(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ba(e,t,a,l){t&=~Yu,t&=~br,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var d=31-nt(i),x=1<<d;l[d]=-1,i&=~x}a!==0&&Ne(e,a,t)}function Qs(){return(Ge&6)===0?(El(0),!1):!0}function Zu(){if(Me!==null){if(Ie===0)var e=Me.return;else e=Me,aa=mr=null,mu(e),ro=null,ml=0,e=Me;for(;e!==null;)jp(e.alternate,e),e=e.return;Me=null}}function mo(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,tw(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Zu(),Je=e,Me=a=ea(e.current,null),Le=t,Ie=0,tn=null,Da=!1,io=Zn(e,t),Vu=!1,co=vn=Yu=br=za=dt=0,Xt=Sl=null,Gu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-nt(l),d=1<<i;t|=e[i],l&=~d}return da=t,gs(),a}function Wp(e,t){Ae=null,_.H=zs,t===rl||t===Ts?(t=ph(),Ie=3):t===fh?(t=ph(),Ie=4):Ie=t===gp?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,tn=t,Me===null&&(dt=1,$s(e,fn(t,e.current)))}function Jp(){var e=_.H;return _.H=zs,e===null?zs:e}function eg(){var e=_.A;return _.A=zS,e}function Fu(){dt=4,Da||(Le&4194048)!==Le&&gn.current!==null||(io=!0),(za&134217727)===0&&(br&134217727)===0||Je===null||Ba(Je,Le,vn,!1)}function Wu(e,t,a){var l=Ge;Ge|=2;var i=Jp(),d=eg();(Je!==e||Le!==t)&&(Xs=null,mo(e,t)),t=!1;var x=dt;e:do try{if(Ie!==0&&Me!==null){var w=Me,k=tn;switch(Ie){case 8:Zu(),x=6;break e;case 3:case 2:case 9:case 6:gn.current===null&&(t=!0);var L=Ie;if(Ie=0,tn=null,ho(e,w,k,L),a&&io){x=0;break e}break;default:L=Ie,Ie=0,tn=null,ho(e,w,k,L)}}BS(),x=dt;break}catch(I){Wp(e,I)}while(!0);return t&&e.shellSuspendCounter++,aa=mr=null,Ge=l,_.H=i,_.A=d,Me===null&&(Je=null,Le=0,gs()),x}function BS(){for(;Me!==null;)tg(Me)}function HS(e,t){var a=Ge;Ge|=2;var l=Jp(),i=eg();Je!==e||Le!==t?(Xs=null,Is=Pe()+500,mo(e,t)):io=Zn(e,t);e:do try{if(Ie!==0&&Me!==null){t=Me;var d=tn;t:switch(Ie){case 1:Ie=0,tn=null,ho(e,t,d,1);break;case 2:case 9:if(mh(d)){Ie=0,tn=null,ng(t);break}t=function(){Ie!==2&&Ie!==9||Je!==e||(Ie=7),zn(e)},d.then(t,t);break e;case 3:Ie=7;break e;case 4:Ie=5;break e;case 7:mh(d)?(Ie=0,tn=null,ng(t)):(Ie=0,tn=null,ho(e,t,d,7));break;case 5:var x=null;switch(Me.tag){case 26:x=Me.memoizedState;case 5:case 27:var w=Me;if(!x||Ug(x)){Ie=0,tn=null;var k=w.sibling;if(k!==null)Me=k;else{var L=w.return;L!==null?(Me=L,Ks(L)):Me=null}break t}}Ie=0,tn=null,ho(e,t,d,5);break;case 6:Ie=0,tn=null,ho(e,t,d,6);break;case 8:Zu(),dt=6;break e;default:throw Error(s(462))}}$S();break}catch(I){Wp(e,I)}while(!0);return aa=mr=null,_.H=l,_.A=i,Ge=a,Me!==null?0:(Je=null,Le=0,gs(),dt)}function $S(){for(;Me!==null&&!$e();)tg(Me)}function tg(e){var t=Ap(e.alternate,e,da);e.memoizedProps=e.pendingProps,t===null?Ks(e):Me=t}function ng(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=wp(a,t,t.pendingProps,t.type,void 0,Le);break;case 11:t=wp(a,t,t.pendingProps,t.type.render,t.ref,Le);break;case 5:mu(t);default:jp(a,t),t=Me=ah(t,da),t=Ap(a,t,da)}e.memoizedProps=e.pendingProps,t===null?Ks(e):Me=t}function ho(e,t,a,l){aa=mr=null,mu(t),ro=null,ml=0;var i=t.return;try{if(kS(e,i,t,a,Le)){dt=1,$s(e,fn(a,e.current)),Me=null;return}}catch(d){if(i!==null)throw Me=i,d;dt=1,$s(e,fn(a,e.current)),Me=null;return}t.flags&32768?(qe||l===1?e=!0:io||(Le&536870912)!==0?e=!1:(Da=e=!0,(l===2||l===9||l===3||l===6)&&(l=gn.current,l!==null&&l.tag===13&&(l.flags|=16384))),ag(t,e)):Ks(t)}function Ks(e){var t=e;do{if((t.flags&32768)!==0){ag(t,Da);return}e=t.return;var a=_S(t.alternate,t,da);if(a!==null){Me=a;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);dt===0&&(dt=5)}function ag(e,t){do{var a=MS(e.alternate,e);if(a!==null){a.flags&=32767,Me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Me=e;return}Me=e=a}while(e!==null);dt=6,Me=null}function rg(e,t,a,l,i,d,x,w,k){e.cancelPendingCommit=null;do Zs();while(Dt!==0);if((Ge&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(d=t.lanes|t.childLanes,d|=qc,_t(e,a,d,x,w,k),e===Je&&(Me=Je=null,Le=0),uo=t,Ua=e,fo=a,Xu=d,Qu=i,Qp=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,YS(Qn,function(){return cg(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,i=q.p,q.p=2,x=Ge,Ge|=4;try{OS(e,t,a)}finally{Ge=x,q.p=i,_.T=l}}Dt=1,og(),lg(),sg()}}function og(){if(Dt===1){Dt=0;var e=Ua,t=uo,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null;var l=q.p;q.p=2;var i=Ge;Ge|=4;try{Pp(t,e);var d=ud,x=Xm(e.containerInfo),w=d.focusedElem,k=d.selectionRange;if(x!==w&&w&&w.ownerDocument&&Im(w.ownerDocument.documentElement,w)){if(k!==null&&Uc(w)){var L=k.start,I=k.end;if(I===void 0&&(I=L),"selectionStart"in w)w.selectionStart=L,w.selectionEnd=Math.min(I,w.value.length);else{var Z=w.ownerDocument||document,B=Z&&Z.defaultView||window;if(B.getSelection){var P=B.getSelection(),Ce=w.textContent.length,Ee=Math.min(k.start,Ce),Ke=k.end===void 0?Ee:Math.min(k.end,Ce);!P.extend&&Ee>Ke&&(x=Ke,Ke=Ee,Ee=x);var D=Gm(w,Ee),O=Gm(w,Ke);if(D&&O&&(P.rangeCount!==1||P.anchorNode!==D.node||P.anchorOffset!==D.offset||P.focusNode!==O.node||P.focusOffset!==O.offset)){var z=Z.createRange();z.setStart(D.node,D.offset),P.removeAllRanges(),Ee>Ke?(P.addRange(z),P.extend(O.node,O.offset)):(z.setEnd(O.node,O.offset),P.addRange(z))}}}}for(Z=[],P=w;P=P.parentNode;)P.nodeType===1&&Z.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<Z.length;w++){var Q=Z[w];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}ii=!!cd,ud=cd=null}finally{Ge=i,q.p=l,_.T=a}}e.current=t,Dt=2}}function lg(){if(Dt===2){Dt=0;var e=Ua,t=uo,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=_.T,_.T=null;var l=q.p;q.p=2;var i=Ge;Ge|=4;try{Up(e,t.alternate,t)}finally{Ge=i,q.p=l,_.T=a}}Dt=3}}function sg(){if(Dt===4||Dt===3){Dt=0,bt();var e=Ua,t=uo,a=fo,l=Qp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Dt=5:(Dt=0,uo=Ua=null,ig(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(La=null),Mt(a),t=t.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(Zt,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=_.T,i=q.p,q.p=2,_.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{_.T=t,q.p=i}}(fo&3)!==0&&Zs(),zn(e),i=e.pendingLanes,(a&4194090)!==0&&(i&42)!==0?e===Ku?wl++:(wl=0,Ku=e):wl=0,El(0)}}function ig(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,nl(t)))}function Zs(e){return og(),lg(),sg(),cg()}function cg(){if(Dt!==5)return!1;var e=Ua,t=Xu;Xu=0;var a=Mt(fo),l=_.T,i=q.p;try{q.p=32>a?32:a,_.T=null,a=Qu,Qu=null;var d=Ua,x=fo;if(Dt=0,uo=Ua=null,fo=0,(Ge&6)!==0)throw Error(s(331));var w=Ge;if(Ge|=4,Ip(d.current),Vp(d,d.current,x,a),Ge=w,El(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(Zt,d)}catch{}return!0}finally{q.p=i,_.T=l,ig(e,t)}}function ug(e,t,a){t=fn(a,t),t=Ru(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(Ye(e,2),zn(e))}function Fe(e,t,a){if(e.tag===3)ug(e,e,a);else for(;t!==null;){if(t.tag===3){ug(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(La===null||!La.has(l))){e=fn(a,e),a=hp(2),l=Ra(t,a,2),l!==null&&(pp(a,l,t,e),Ye(l,2),zn(l));break}}t=t.return}}function Ju(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new LS;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(a)||(Vu=!0,i.add(a),e=PS.bind(null,e,t,a),t.then(e,e))}function PS(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Je===e&&(Le&a)===a&&(dt===4||dt===3&&(Le&62914560)===Le&&300>Pe()-Iu?(Ge&2)===0&&mo(e,0):Yu|=a,co===Le&&(co=0)),zn(e)}function dg(e,t){t===0&&(t=we()),e=Qr(e,t),e!==null&&(Ye(e,t),zn(e))}function qS(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),dg(e,a)}function VS(e,t){var a=0;switch(e.tag){case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),dg(e,a)}function YS(e,t){return Ue(e,t)}var Fs=null,po=null,ed=!1,Ws=!1,td=!1,xr=0;function zn(e){e!==po&&e.next===null&&(po===null?Fs=po=e:po=po.next=e),Ws=!0,ed||(ed=!0,IS())}function El(e,t){if(!td&&Ws){td=!0;do for(var a=!1,l=Fs;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-nt(42|e)+1)-1,d&=i&~(x&~w),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,pg(l,d))}else d=Le,d=Kn(l,l===Je?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||Zn(l,d)||(a=!0,pg(l,d));l=l.next}while(a);td=!1}}function GS(){fg()}function fg(){Ws=ed=!1;var e=0;xr!==0&&(ew()&&(e=xr),xr=0);for(var t=Pe(),a=null,l=Fs;l!==null;){var i=l.next,d=mg(l,t);d===0?(l.next=null,a===null?Fs=i:a.next=i,i===null&&(po=a)):(a=l,(e!==0||(d&3)!==0)&&(Ws=!0)),l=i}El(e)}function mg(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var x=31-nt(d),w=1<<x,k=i[x];k===-1?((w&a)===0||(w&l)!==0)&&(i[x]=wa(w,t)):k<=t&&(e.expiredLanes|=w),d&=~w}if(t=Je,a=Le,a=Kn(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ie===2||Ie===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Ve(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Zn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Ve(l),Mt(a)){case 2:case 8:a=_r;break;case 32:a=Qn;break;case 268435456:a=xn;break;default:a=Qn}return l=hg.bind(null,e),a=Ue(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Ve(l),e.callbackPriority=2,e.callbackNode=null,2}function hg(e,t){if(Dt!==0&&Dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Zs()&&e.callbackNode!==a)return null;var l=Le;return l=Kn(e,e===Je?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Zp(e,l,t),mg(e,Pe()),e.callbackNode!=null&&e.callbackNode===a?hg.bind(null,e):null)}function pg(e,t){if(Zs())return null;Zp(e,t,!0)}function IS(){nw(function(){(Ge&6)!==0?Ue(at,GS):fg()})}function nd(){return xr===0&&(xr=Vt()),xr}function gg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:cs(""+e)}function vg(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function XS(e,t,a,l,i){if(t==="submit"&&a&&a.stateNode===i){var d=gg((i[We]||null).action),x=l.submitter;x&&(t=(t=x[We]||null)?gg(t.formAction):x.getAttribute("formAction"),t!==null&&(d=t,x=null));var w=new ms("action","action",null,l,i);e.push({event:w,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(xr!==0){var k=x?vg(i,x):new FormData(i);wu(a,{pending:!0,data:k,method:i.method,action:d},null,k)}}else typeof d=="function"&&(w.preventDefault(),k=x?vg(i,x):new FormData(i),wu(a,{pending:!0,data:k,method:i.method,action:d},d,k))},currentTarget:i}]})}}for(var ad=0;ad<Pc.length;ad++){var rd=Pc[ad],QS=rd.toLowerCase(),KS=rd[0].toUpperCase()+rd.slice(1);Sn(QS,"on"+KS)}Sn(Zm,"onAnimationEnd"),Sn(Fm,"onAnimationIteration"),Sn(Wm,"onAnimationStart"),Sn("dblclick","onDoubleClick"),Sn("focusin","onFocus"),Sn("focusout","onBlur"),Sn(fS,"onTransitionRun"),Sn(mS,"onTransitionStart"),Sn(hS,"onTransitionCancel"),Sn(Jm,"onTransitionEnd"),Br("onMouseEnter",["mouseout","mouseover"]),Br("onMouseLeave",["mouseout","mouseover"]),Br("onPointerEnter",["pointerout","pointerover"]),Br("onPointerLeave",["pointerout","pointerover"]),rr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rr("onBeforeInput",["compositionend","keypress","textInput","paste"]),rr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nl="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(" "),ZS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nl));function yg(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],i=l.event;l=l.listeners;e:{var d=void 0;if(t)for(var x=l.length-1;0<=x;x--){var w=l[x],k=w.instance,L=w.currentTarget;if(w=w.listener,k!==d&&i.isPropagationStopped())break e;d=w,i.currentTarget=L;try{d(i)}catch(I){Hs(I)}i.currentTarget=null,d=k}else for(x=0;x<l.length;x++){if(w=l[x],k=w.instance,L=w.currentTarget,w=w.listener,k!==d&&i.isPropagationStopped())break e;d=w,i.currentTarget=L;try{d(i)}catch(I){Hs(I)}i.currentTarget=null,d=k}}}}function Oe(e,t){var a=t[Dr];a===void 0&&(a=t[Dr]=new Set);var l=e+"__bubble";a.has(l)||(bg(t,e,2,!1),a.add(l))}function od(e,t,a){var l=0;t&&(l|=4),bg(a,e,l,t)}var Js="_reactListening"+Math.random().toString(36).slice(2);function ld(e){if(!e[Js]){e[Js]=!0,fm.forEach(function(a){a!=="selectionchange"&&(ZS.has(a)||od(a,!1,e),od(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Js]||(t[Js]=!0,od("selectionchange",!1,t))}}function bg(e,t,a,l){switch(Vg(t)){case 2:var i=Ew;break;case 8:i=Nw;break;default:i=xd}a=i.bind(null,t,a,e),i=void 0,!Ac||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function sd(e,t,a,l,i){var d=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var x=l.tag;if(x===3||x===4){var w=l.stateNode.containerInfo;if(w===i)break;if(x===4)for(x=l.return;x!==null;){var k=x.tag;if((k===3||k===4)&&x.stateNode.containerInfo===i)return;x=x.return}for(;w!==null;){if(x=zr(w),x===null)return;if(k=x.tag,k===5||k===6||k===26||k===27){l=d=x;continue e}w=w.parentNode}}l=l.return}Cm(function(){var L=d,I=Cc(a),Z=[];e:{var B=eh.get(e);if(B!==void 0){var P=ms,Ce=e;switch(e){case"keypress":if(ds(a)===0)break e;case"keydown":case"keyup":P=Y1;break;case"focusin":Ce="focus",P=Mc;break;case"focusout":Ce="blur",P=Mc;break;case"beforeblur":case"afterblur":P=Mc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=km;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=M1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=X1;break;case Zm:case Fm:case Wm:P=z1;break;case Jm:P=K1;break;case"scroll":case"scrollend":P=j1;break;case"wheel":P=F1;break;case"copy":case"cut":case"paste":P=U1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=_m;break;case"toggle":case"beforetoggle":P=J1}var Ee=(t&4)!==0,Ke=!Ee&&(e==="scroll"||e==="scrollend"),D=Ee?B!==null?B+"Capture":null:B;Ee=[];for(var O=L,z;O!==null;){var Q=O;if(z=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||z===null||D===null||(Q=Vo(O,D),Q!=null&&Ee.push(Tl(O,Q,z))),Ke)break;O=O.return}0<Ee.length&&(B=new P(B,Ce,null,a,I),Z.push({event:B,listeners:Ee}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",P=e==="mouseout"||e==="pointerout",B&&a!==Tc&&(Ce=a.relatedTarget||a.fromElement)&&(zr(Ce)||Ce[Tt]))break e;if((P||B)&&(B=I.window===I?I:(B=I.ownerDocument)?B.defaultView||B.parentWindow:window,P?(Ce=a.relatedTarget||a.toElement,P=L,Ce=Ce?zr(Ce):null,Ce!==null&&(Ke=u(Ce),Ee=Ce.tag,Ce!==Ke||Ee!==5&&Ee!==27&&Ee!==6)&&(Ce=null)):(P=null,Ce=L),P!==Ce)){if(Ee=km,Q="onMouseLeave",D="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Ee=_m,Q="onPointerLeave",D="onPointerEnter",O="pointer"),Ke=P==null?B:qo(P),z=Ce==null?B:qo(Ce),B=new Ee(Q,O+"leave",P,a,I),B.target=Ke,B.relatedTarget=z,Q=null,zr(I)===L&&(Ee=new Ee(D,O+"enter",Ce,a,I),Ee.target=z,Ee.relatedTarget=Ke,Q=Ee),Ke=Q,P&&Ce)t:{for(Ee=P,D=Ce,O=0,z=Ee;z;z=go(z))O++;for(z=0,Q=D;Q;Q=go(Q))z++;for(;0<O-z;)Ee=go(Ee),O--;for(;0<z-O;)D=go(D),z--;for(;O--;){if(Ee===D||D!==null&&Ee===D.alternate)break t;Ee=go(Ee),D=go(D)}Ee=null}else Ee=null;P!==null&&xg(Z,B,P,Ee,!1),Ce!==null&&Ke!==null&&xg(Z,Ke,Ce,Ee,!0)}}e:{if(B=L?qo(L):window,P=B.nodeName&&B.nodeName.toLowerCase(),P==="select"||P==="input"&&B.type==="file")var he=Hm;else if(Um(B))if($m)he=cS;else{he=sS;var _e=lS}else P=B.nodeName,!P||P.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?L&&Nc(L.elementType)&&(he=Hm):he=iS;if(he&&(he=he(e,L))){Bm(Z,he,a,I);break e}_e&&_e(e,B,L),e==="focusout"&&L&&B.type==="number"&&L.memoizedProps.value!=null&&Ec(B,"number",B.value)}switch(_e=L?qo(L):window,e){case"focusin":(Um(_e)||_e.contentEditable==="true")&&(Gr=_e,Bc=L,Fo=null);break;case"focusout":Fo=Bc=Gr=null;break;case"mousedown":Hc=!0;break;case"contextmenu":case"mouseup":case"dragend":Hc=!1,Qm(Z,a,I);break;case"selectionchange":if(dS)break;case"keydown":case"keyup":Qm(Z,a,I)}var ye;if(Dc)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Yr?zm(e,a)&&(Te="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Te="onCompositionStart");Te&&(Mm&&a.locale!=="ko"&&(Yr||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Yr&&(ye=Rm()):(Ea=I,kc="value"in Ea?Ea.value:Ea.textContent,Yr=!0)),_e=ei(L,Te),0<_e.length&&(Te=new jm(Te,e,null,a,I),Z.push({event:Te,listeners:_e}),ye?Te.data=ye:(ye=Lm(a),ye!==null&&(Te.data=ye)))),(ye=tS?nS(e,a):aS(e,a))&&(Te=ei(L,"onBeforeInput"),0<Te.length&&(_e=new jm("onBeforeInput","beforeinput",null,a,I),Z.push({event:_e,listeners:Te}),_e.data=ye)),XS(Z,e,L,a,I)}yg(Z,t)})}function Tl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ei(e,t){for(var a=t+"Capture",l=[];e!==null;){var i=e,d=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||d===null||(i=Vo(e,a),i!=null&&l.unshift(Tl(e,i,d)),i=Vo(e,t),i!=null&&l.push(Tl(e,i,d))),e.tag===3)return l;e=e.return}return[]}function go(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function xg(e,t,a,l,i){for(var d=t._reactName,x=[];a!==null&&a!==l;){var w=a,k=w.alternate,L=w.stateNode;if(w=w.tag,k!==null&&k===l)break;w!==5&&w!==26&&w!==27||L===null||(k=L,i?(L=Vo(a,d),L!=null&&x.unshift(Tl(a,L,k))):i||(L=Vo(a,d),L!=null&&x.push(Tl(a,L,k)))),a=a.return}x.length!==0&&e.push({event:t,listeners:x})}var FS=/\r\n?/g,WS=/\u0000|\uFFFD/g;function Sg(e){return(typeof e=="string"?e:""+e).replace(FS,`
|
|
50
|
+
`).replace(WS,"")}function wg(e,t){return t=Sg(t),Sg(e)===t}function ti(){}function Qe(e,t,a,l,i,d){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Pr(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Pr(e,""+l);break;case"className":ls(e,"class",l);break;case"tabIndex":ls(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ls(e,a,l);break;case"style":Nm(e,l,d);break;case"data":if(t!=="object"){ls(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=cs(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(a==="formAction"?(t!=="input"&&Qe(e,t,"name",i.name,i,null),Qe(e,t,"formEncType",i.formEncType,i,null),Qe(e,t,"formMethod",i.formMethod,i,null),Qe(e,t,"formTarget",i.formTarget,i,null)):(Qe(e,t,"encType",i.encType,i,null),Qe(e,t,"method",i.method,i,null),Qe(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=cs(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ti);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("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=cs(""+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":Oe("beforetoggle",e),Oe("toggle",e),os(e,"popover",l);break;case"xlinkActuate":Wn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Wn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Wn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Wn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Wn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Wn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Wn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Wn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Wn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":os(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=A1.get(a)||a,os(e,a,l))}}function id(e,t,a,l,i,d){switch(a){case"style":Nm(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"?Pr(e,l):(typeof l=="number"||typeof l=="bigint")&&Pr(e,""+l);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ti);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mm.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),d=e[We]||null,d=d!=null?d[a]:null,typeof d=="function"&&e.removeEventListener(t,d,i),typeof l=="function")){typeof d!="function"&&d!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,i);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):os(e,a,l)}}}function zt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var l=!1,i=!1,d;for(d in a)if(a.hasOwnProperty(d)){var x=a[d];if(x!=null)switch(d){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Qe(e,t,d,x,a,null)}}i&&Qe(e,t,"srcSet",a.srcSet,a,null),l&&Qe(e,t,"src",a.src,a,null);return;case"input":Oe("invalid",e);var w=d=x=i=null,k=null,L=null;for(l in a)if(a.hasOwnProperty(l)){var I=a[l];if(I!=null)switch(l){case"name":i=I;break;case"type":x=I;break;case"checked":k=I;break;case"defaultChecked":L=I;break;case"value":d=I;break;case"defaultValue":w=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(s(137,t));break;default:Qe(e,t,l,I,a,null)}}xm(e,d,w,k,L,x,i,!1),ss(e);return;case"select":Oe("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:Qe(e,t,i,w,a,null)}t=d,a=x,e.multiple=!!l,t!=null?$r(e,!!l,t,!1):a!=null&&$r(e,!!l,a,!0);return;case"textarea":Oe("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:Qe(e,t,x,w,a,null)}wm(e,l,i,d),ss(e);return;case"option":for(k in a)if(a.hasOwnProperty(k)&&(l=a[k],l!=null))switch(k){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Qe(e,t,k,l,a,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(l=0;l<Nl.length;l++)Oe(Nl[l],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in a)if(a.hasOwnProperty(L)&&(l=a[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Qe(e,t,L,l,a,null)}return;default:if(Nc(t)){for(I in a)a.hasOwnProperty(I)&&(l=a[I],l!==void 0&&id(e,t,I,l,a,void 0));return}}for(w in a)a.hasOwnProperty(w)&&(l=a[w],l!=null&&Qe(e,t,w,l,a,null))}function JS(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,d=null,x=null,w=null,k=null,L=null,I=null;for(P in a){var Z=a[P];if(a.hasOwnProperty(P)&&Z!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":k=Z;default:l.hasOwnProperty(P)||Qe(e,t,P,null,l,Z)}}for(var B in l){var P=l[B];if(Z=a[B],l.hasOwnProperty(B)&&(P!=null||Z!=null))switch(B){case"type":d=P;break;case"name":i=P;break;case"checked":L=P;break;case"defaultChecked":I=P;break;case"value":x=P;break;case"defaultValue":w=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(s(137,t));break;default:P!==Z&&Qe(e,t,B,P,l,Z)}}wc(e,x,w,k,L,I,d,i);return;case"select":P=x=w=B=null;for(d in a)if(k=a[d],a.hasOwnProperty(d)&&k!=null)switch(d){case"value":break;case"multiple":P=k;default:l.hasOwnProperty(d)||Qe(e,t,d,null,l,k)}for(i in l)if(d=l[i],k=a[i],l.hasOwnProperty(i)&&(d!=null||k!=null))switch(i){case"value":B=d;break;case"defaultValue":w=d;break;case"multiple":x=d;default:d!==k&&Qe(e,t,i,d,l,k)}t=w,a=x,l=P,B!=null?$r(e,!!a,B,!1):!!l!=!!a&&(t!=null?$r(e,!!a,t,!0):$r(e,!!a,a?[]:"",!1));return;case"textarea":P=B=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:Qe(e,t,w,null,l,i)}for(x in l)if(i=l[x],d=a[x],l.hasOwnProperty(x)&&(i!=null||d!=null))switch(x){case"value":B=i;break;case"defaultValue":P=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(s(91));break;default:i!==d&&Qe(e,t,x,i,l,d)}Sm(e,B,P);return;case"option":for(var Ce in a)if(B=a[Ce],a.hasOwnProperty(Ce)&&B!=null&&!l.hasOwnProperty(Ce))switch(Ce){case"selected":e.selected=!1;break;default:Qe(e,t,Ce,null,l,B)}for(k in l)if(B=l[k],P=a[k],l.hasOwnProperty(k)&&B!==P&&(B!=null||P!=null))switch(k){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Qe(e,t,k,B,l,P)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in a)B=a[Ee],a.hasOwnProperty(Ee)&&B!=null&&!l.hasOwnProperty(Ee)&&Qe(e,t,Ee,null,l,B);for(L in l)if(B=l[L],P=a[L],l.hasOwnProperty(L)&&B!==P&&(B!=null||P!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:Qe(e,t,L,B,l,P)}return;default:if(Nc(t)){for(var Ke in a)B=a[Ke],a.hasOwnProperty(Ke)&&B!==void 0&&!l.hasOwnProperty(Ke)&&id(e,t,Ke,void 0,l,B);for(I in l)B=l[I],P=a[I],!l.hasOwnProperty(I)||B===P||B===void 0&&P===void 0||id(e,t,I,B,l,P);return}}for(var D in a)B=a[D],a.hasOwnProperty(D)&&B!=null&&!l.hasOwnProperty(D)&&Qe(e,t,D,null,l,B);for(Z in l)B=l[Z],P=a[Z],!l.hasOwnProperty(Z)||B===P||B==null&&P==null||Qe(e,t,Z,B,l,P)}var cd=null,ud=null;function ni(e){return e.nodeType===9?e:e.ownerDocument}function Eg(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 Ng(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function dd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var fd=null;function ew(){var e=window.event;return e&&e.type==="popstate"?e===fd?!1:(fd=e,!0):(fd=null,!1)}var Tg=typeof setTimeout=="function"?setTimeout:void 0,tw=typeof clearTimeout=="function"?clearTimeout:void 0,Cg=typeof Promise=="function"?Promise:void 0,nw=typeof queueMicrotask=="function"?queueMicrotask:typeof Cg<"u"?function(e){return Cg.resolve(null).then(e).catch(aw)}:Tg;function aw(e){setTimeout(function(){throw e})}function Ha(e){return e==="head"}function Rg(e,t){var a=t,l=0,i=0;do{var d=a.nextSibling;if(e.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"){if(0<l&&8>l){a=l;var x=e.ownerDocument;if(a&1&&Cl(x.documentElement),a&2&&Cl(x.body),a&4)for(a=x.head,Cl(a),x=a.firstChild;x;){var w=x.nextSibling,k=x.nodeName;x[Po]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&x.rel.toLowerCase()==="stylesheet"||a.removeChild(x),x=w}}if(i===0){e.removeChild(d),Dl(t);return}i--}else a==="$"||a==="$?"||a==="$!"?i++:l=a.charCodeAt(0)-48;else l=0;a=d}while(a);Dl(t)}function md(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":md(a),yc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function rw(e,t,a,l){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Po])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=En(e.nextSibling),e===null)break}return null}function ow(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=En(e.nextSibling),e===null))return null;return e}function hd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function lw(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function En(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var pd=null;function Ag(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function kg(e,t,a){switch(t=ni(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Cl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yc(e)}var yn=new Map,jg=new Set;function ai(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var fa=q.d;q.d={f:sw,r:iw,D:cw,C:uw,L:dw,m:fw,X:hw,S:mw,M:pw};function sw(){var e=fa.f(),t=Qs();return e||t}function iw(e){var t=Lr(e);t!==null&&t.tag===5&&t.type==="form"?Zh(t):fa.r(e)}var vo=typeof document>"u"?null:document;function _g(e,t,a){var l=vo;if(l&&typeof t=="string"&&t){var i=dn(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),jg.has(i)||(jg.add(i),e={rel:e,crossOrigin:a,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),zt(t,"link",e),Ct(t),l.head.appendChild(t)))}}function cw(e){fa.D(e),_g("dns-prefetch",e,null)}function uw(e,t){fa.C(e,t),_g("preconnect",e,t)}function dw(e,t,a){fa.L(e,t,a);var l=vo;if(l&&e&&t){var i='link[rel="preload"][as="'+dn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+dn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+dn(a.imageSizes)+'"]')):i+='[href="'+dn(e)+'"]';var d=i;switch(t){case"style":d=yo(e);break;case"script":d=bo(e)}yn.has(d)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),yn.set(d,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(Rl(d))||t==="script"&&l.querySelector(Al(d))||(t=l.createElement("link"),zt(t,"link",e),Ct(t),l.head.appendChild(t)))}}function fw(e,t){fa.m(e,t);var a=vo;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+dn(l)+'"][href="'+dn(e)+'"]',d=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=bo(e)}if(!yn.has(d)&&(e=b({rel:"modulepreload",href:e},t),yn.set(d,e),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Al(d)))return}l=a.createElement("link"),zt(l,"link",e),Ct(l),a.head.appendChild(l)}}}function mw(e,t,a){fa.S(e,t,a);var l=vo;if(l&&e){var i=Ur(l).hoistableStyles,d=yo(e);t=t||"default";var x=i.get(d);if(!x){var w={loading:0,preload:null};if(x=l.querySelector(Rl(d)))w.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=yn.get(d))&&gd(e,a);var k=x=l.createElement("link");Ct(k),zt(k,"link",e),k._p=new Promise(function(L,I){k.onload=L,k.onerror=I}),k.addEventListener("load",function(){w.loading|=1}),k.addEventListener("error",function(){w.loading|=2}),w.loading|=4,ri(x,t,l)}x={type:"stylesheet",instance:x,count:1,state:w},i.set(d,x)}}}function hw(e,t){fa.X(e,t);var a=vo;if(a&&e){var l=Ur(a).hoistableScripts,i=bo(e),d=l.get(i);d||(d=a.querySelector(Al(i)),d||(e=b({src:e,async:!0},t),(t=yn.get(i))&&vd(e,t),d=a.createElement("script"),Ct(d),zt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(i,d))}}function pw(e,t){fa.M(e,t);var a=vo;if(a&&e){var l=Ur(a).hoistableScripts,i=bo(e),d=l.get(i);d||(d=a.querySelector(Al(i)),d||(e=b({src:e,async:!0,type:"module"},t),(t=yn.get(i))&&vd(e,t),d=a.createElement("script"),Ct(d),zt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(i,d))}}function Mg(e,t,a,l){var i=(i=ee.current)?ai(i):null;if(!i)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=yo(a.href),a=Ur(i).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=yo(a.href);var d=Ur(i).hoistableStyles,x=d.get(e);if(x||(i=i.ownerDocument||i,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,x),(d=i.querySelector(Rl(e)))&&!d._p&&(x.instance=d,x.state.loading=5),yn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},yn.set(e,a),d||gw(i,e,a,x.state))),t&&l===null)throw Error(s(528,""));return x}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=bo(a),a=Ur(i).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function yo(e){return'href="'+dn(e)+'"'}function Rl(e){return'link[rel="stylesheet"]['+e+"]"}function Og(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function gw(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),zt(t,"link",a),Ct(t),e.head.appendChild(t))}function bo(e){return'[src="'+dn(e)+'"]'}function Al(e){return"script[async]"+e}function Dg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+dn(a.href)+'"]');if(l)return t.instance=l,Ct(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"),Ct(l),zt(l,"style",i),ri(l,a.precedence,e),t.instance=l;case"stylesheet":i=yo(a.href);var d=e.querySelector(Rl(i));if(d)return t.state.loading|=4,t.instance=d,Ct(d),d;l=Og(a),(i=yn.get(i))&&gd(l,i),d=(e.ownerDocument||e).createElement("link"),Ct(d);var x=d;return x._p=new Promise(function(w,k){x.onload=w,x.onerror=k}),zt(d,"link",l),t.state.loading|=4,ri(d,a.precedence,e),t.instance=d;case"script":return d=bo(a.src),(i=e.querySelector(Al(d)))?(t.instance=i,Ct(i),i):(l=a,(i=yn.get(d))&&(l=b({},a),vd(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),Ct(i),zt(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ri(l,a.precedence,e));return t.instance}function ri(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,d=i,x=0;x<l.length;x++){var w=l[x];if(w.dataset.precedence===t)d=w;else if(d!==i)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function gd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var oi=null;function zg(e,t,a){if(oi===null){var l=new Map,i=oi=new Map;i.set(a,l)}else i=oi,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[Po]||d[ht]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var x=d.getAttribute(t)||"";x=e+x;var w=l.get(x);w?w.push(d):l.set(x,[d])}}return l}function Lg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function vw(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ug(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var kl=null;function yw(){}function bw(e,t,a){if(kl===null)throw Error(s(475));var l=kl;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var i=yo(a.href),d=e.querySelector(Rl(i));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=li.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=d,Ct(d);return}d=e.ownerDocument||e,a=Og(a),(i=yn.get(i))&&gd(a,i),d=d.createElement("link"),Ct(d);var x=d;x._p=new Promise(function(w,k){x.onload=w,x.onerror=k}),zt(d,"link",a),t.instance=d}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=li.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function xw(){if(kl===null)throw Error(s(475));var e=kl;return e.stylesheets&&e.count===0&&yd(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&yd(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function li(){if(this.count--,this.count===0){if(this.stylesheets)yd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var si=null;function yd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,si=new Map,t.forEach(Sw,e),si=null,li.call(e))}function Sw(e,t){if(!(t.state.loading&4)){var a=si.get(e);if(a)var l=a.get(null);else{a=new Map,si.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<i.length;d++){var x=i[d];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(a.set(x.dataset.precedence,x),l=x)}l&&a.set(null,l)}i=t.instance,x=i.getAttribute("data-precedence"),d=a.get(x)||l,d===l&&a.set(null,i),a.set(x,i),this.count++,l=li.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),d?d.parentNode.insertBefore(i,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var jl={$$typeof:M,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function ww(e,t,a,l,i,d,x,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ze(0),this.hiddenUpdates=Ze(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 Bg(e,t,a,l,i,d,x,w,k,L,I,Z){return e=new ww(e,t,a,x,w,k,L,Z),t=1,d===!0&&(t|=24),d=Wt(3,null,null,t),e.current=d,d.stateNode=e,t=Jc(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:l,isDehydrated:a,cache:t},au(d),e}function Hg(e){return e?(e=Kr,e):Kr}function $g(e,t,a,l,i,d){i=Hg(i),l.context===null?l.context=i:l.pendingContext=i,l=Ca(t),l.payload={element:a},d=d===void 0?null:d,d!==null&&(l.callback=d),a=Ra(e,l,t),a!==null&&(an(a,e,t),ll(a,e,t))}function Pg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function bd(e,t){Pg(e,t),(e=e.alternate)&&Pg(e,t)}function qg(e){if(e.tag===13){var t=Qr(e,67108864);t!==null&&an(t,e,67108864),bd(e,67108864)}}var ii=!0;function Ew(e,t,a,l){var i=_.T;_.T=null;var d=q.p;try{q.p=2,xd(e,t,a,l)}finally{q.p=d,_.T=i}}function Nw(e,t,a,l){var i=_.T;_.T=null;var d=q.p;try{q.p=8,xd(e,t,a,l)}finally{q.p=d,_.T=i}}function xd(e,t,a,l){if(ii){var i=Sd(l);if(i===null)sd(e,t,l,ci,a),Yg(e,l);else if(Cw(i,e,t,a,l))l.stopPropagation();else if(Yg(e,l),t&4&&-1<Tw.indexOf(e)){for(;i!==null;){var d=Lr(i);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var x=cn(d.pendingLanes);if(x!==0){var w=d;for(w.pendingLanes|=2,w.entangledLanes|=2;x;){var k=1<<31-nt(x);w.entanglements[1]|=k,x&=~k}zn(d),(Ge&6)===0&&(Is=Pe()+500,El(0))}}break;case 13:w=Qr(d,2),w!==null&&an(w,d,2),Qs(),bd(d,2)}if(d=Sd(l),d===null&&sd(e,t,l,ci,a),d===i)break;i=d}i!==null&&l.stopPropagation()}else sd(e,t,l,null,a)}}function Sd(e){return e=Cc(e),wd(e)}var ci=null;function wd(e){if(ci=null,e=zr(e),e!==null){var t=u(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ci=e,null}function Vg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ht()){case at:return 2;case _r:return 8;case Qn:case ft:return 32;case xn:return 268435456;default:return 32}default:return 32}}var Ed=!1,$a=null,Pa=null,qa=null,_l=new Map,Ml=new Map,Va=[],Tw="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 Yg(e,t){switch(e){case"focusin":case"focusout":$a=null;break;case"dragenter":case"dragleave":Pa=null;break;case"mouseover":case"mouseout":qa=null;break;case"pointerover":case"pointerout":_l.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ml.delete(t.pointerId)}}function Ol(e,t,a,l,i,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:d,targetContainers:[i]},t!==null&&(t=Lr(t),t!==null&&qg(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Cw(e,t,a,l,i){switch(t){case"focusin":return $a=Ol($a,e,t,a,l,i),!0;case"dragenter":return Pa=Ol(Pa,e,t,a,l,i),!0;case"mouseover":return qa=Ol(qa,e,t,a,l,i),!0;case"pointerover":var d=i.pointerId;return _l.set(d,Ol(_l.get(d)||null,e,t,a,l,i)),!0;case"gotpointercapture":return d=i.pointerId,Ml.set(d,Ol(Ml.get(d)||null,e,t,a,l,i)),!0}return!1}function Gg(e){var t=zr(e.target);if(t!==null){var a=u(t);if(a!==null){if(t=a.tag,t===13){if(t=m(a),t!==null){e.blockedOn=t,xt(e.priority,function(){if(a.tag===13){var l=nn();l=st(l);var i=Qr(a,l);i!==null&&an(i,a,l),bd(a,l)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ui(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Sd(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Tc=l,a.target.dispatchEvent(l),Tc=null}else return t=Lr(a),t!==null&&qg(t),e.blockedOn=a,!1;t.shift()}return!0}function Ig(e,t,a){ui(e)&&a.delete(t)}function Rw(){Ed=!1,$a!==null&&ui($a)&&($a=null),Pa!==null&&ui(Pa)&&(Pa=null),qa!==null&&ui(qa)&&(qa=null),_l.forEach(Ig),Ml.forEach(Ig)}function di(e,t){e.blockedOn===t&&(e.blockedOn=null,Ed||(Ed=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Rw)))}var fi=null;function Xg(e){fi!==e&&(fi=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){fi===e&&(fi=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(wd(l||a)===null)continue;break}var d=Lr(a);d!==null&&(e.splice(t,3),t-=3,wu(d,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function Dl(e){function t(k){return di(k,e)}$a!==null&&di($a,e),Pa!==null&&di(Pa,e),qa!==null&&di(qa,e),_l.forEach(t),Ml.forEach(t);for(var a=0;a<Va.length;a++){var l=Va[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Va.length&&(a=Va[0],a.blockedOn===null);)Gg(a),a.blockedOn===null&&Va.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var i=a[l],d=a[l+1],x=i[We]||null;if(typeof d=="function")x||Xg(a);else if(x){var w=null;if(d&&d.hasAttribute("formAction")){if(i=d,x=d[We]||null)w=x.formAction;else if(wd(i)!==null)continue}else w=x.action;typeof w=="function"?a[l+1]=w:(a.splice(l,3),l-=3),Xg(a)}}}function Nd(e){this._internalRoot=e}mi.prototype.render=Nd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=nn();$g(a,l,e,t,null,null)},mi.prototype.unmount=Nd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$g(e.current,2,null,e,null,null),Qs(),t[Tt]=null}};function mi(e){this._internalRoot=e}mi.prototype.unstable_scheduleHydration=function(e){if(e){var t=ar();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Va.length&&t!==0&&t<Va[a].priority;a++);Va.splice(a,0,e),a===0&&Gg(e)}};var Qg=r.version;if(Qg!=="19.1.0")throw Error(s(527,Qg,"19.1.0"));q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=v(t),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var Aw={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hi.isDisabled&&hi.supportsFiber)try{Zt=hi.inject(Aw),jt=hi}catch{}}return Ll.createRoot=function(e,t){if(!c(e))throw Error(s(299));var a=!1,l="",i=up,d=dp,x=fp,w=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(w=t.unstable_transitionCallbacks)),t=Bg(e,1,!1,null,null,a,l,i,d,x,w,null),e[Tt]=t.current,ld(e),new Nd(t)},Ll.hydrateRoot=function(e,t,a){if(!c(e))throw Error(s(299));var l=!1,i="",d=up,x=dp,w=fp,k=null,L=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(x=a.onCaughtError),a.onRecoverableError!==void 0&&(w=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(k=a.unstable_transitionCallbacks),a.formState!==void 0&&(L=a.formState)),t=Bg(e,1,!0,t,a??null,l,i,d,x,w,k,L),t.context=Hg(null),a=t.current,l=nn(),l=st(l),i=Ca(l),i.callback=null,Ra(a,i,l),a=l,t.current.lanes=a,Ye(t,a),zn(t),e[Tt]=t.current,ld(e),new mi(t)},Ll.version="19.1.0",Ll}var rv;function $w(){if(rv)return Rd.exports;rv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Rd.exports=Hw(),Rd.exports}var Pw=$w();const qw="modulepreload",Vw=function(n){return"/"+n},ov={},p0=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]"),v=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));c=m(o.map(p=>{if(p=Vw(p),p in ov)return;ov[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":qw,b||(S.as="script"),S.crossOrigin="",S.href=p,v&&S.setAttribute("nonce",v),document.head.appendChild(S),b)return new Promise((T,E)=>{S.addEventListener("load",T),S.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${p}`)))})}))}function u(m){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=m,window.dispatchEvent(h),!h.defaultPrevented)throw m}return c.then(m=>{for(const h of m||[])h.status==="rejected"&&u(h.reason);return r().catch(u)})};/**
|
|
51
|
+
* react-router v7.13.2
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Remix Software Inc.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
+
*
|
|
58
|
+
* @license MIT
|
|
59
|
+
*/var lv="popstate";function sv(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function Yw(n={}){function r(s,c){var p;let u=(p=c.state)==null?void 0:p.masked,{pathname:m,search:h,hash:v}=u||s.location;return Jd("",{pathname:m,search:h,hash:v},c.state&&c.state.usr||null,c.state&&c.state.key||"default",u?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function o(s,c){return typeof c=="string"?c:Zl(c)}return Iw(r,o,null,n)}function ot(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function Tn(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function Gw(){return Math.random().toString(36).substring(2,10)}function iv(n,r){return{usr:n.state,key:n.key,idx:r,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Jd(n,r,o=null,s,c){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?Oo(r):r,state:o,key:r&&r.key||s||Gw(),unstable_mask:c}}function Zl({pathname:n="/",search:r="",hash:o=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function Oo(n){let r={};if(n){let o=n.indexOf("#");o>=0&&(r.hash=n.substring(o),n=n.substring(0,o));let s=n.indexOf("?");s>=0&&(r.search=n.substring(s),n=n.substring(0,s)),n&&(r.pathname=n)}return r}function Iw(n,r,o,s={}){let{window:c=document.defaultView,v5Compat:u=!1}=s,m=c.history,h="POP",v=null,p=b();p==null&&(p=0,m.replaceState({...m.state,idx:p},""));function b(){return(m.state||{idx:null}).idx}function y(){h="POP";let C=b(),A=C==null?null:C-p;p=C,v&&v({action:h,location:N.location,delta:A})}function S(C,A){h="PUSH";let j=sv(C)?C:Jd(N.location,C,A);p=b()+1;let M=iv(j,p),U=N.createHref(j.unstable_mask||j);try{m.pushState(M,"",U)}catch(H){if(H instanceof DOMException&&H.name==="DataCloneError")throw H;c.location.assign(U)}u&&v&&v({action:h,location:N.location,delta:1})}function T(C,A){h="REPLACE";let j=sv(C)?C:Jd(N.location,C,A);p=b();let M=iv(j,p),U=N.createHref(j.unstable_mask||j);m.replaceState(M,"",U),u&&v&&v({action:h,location:N.location,delta:0})}function E(C){return Xw(C)}let N={get action(){return h},get location(){return n(c,m)},listen(C){if(v)throw new Error("A history only accepts one active listener");return c.addEventListener(lv,y),v=C,()=>{c.removeEventListener(lv,y),v=null}},createHref(C){return r(c,C)},createURL:E,encodeLocation(C){let A=E(C);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:S,replace:T,go(C){return m.go(C)}};return N}function Xw(n,r=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),ot(o,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:Zl(n);return s=s.replace(/ $/,"%20"),!r&&s.startsWith("//")&&(s=o+s),new URL(s,o)}function g0(n,r,o="/"){return Qw(n,r,o,!1)}function Qw(n,r,o,s){let c=typeof r=="string"?Oo(r):r,u=ha(c.pathname||"/",o);if(u==null)return null;let m=v0(n);Kw(m);let h=null;for(let v=0;h==null&&v<m.length;++v){let p=l2(u);h=r2(m[v],p,s)}return h}function v0(n,r=[],o=[],s="",c=!1){let u=(m,h,v=c,p)=>{let b={relativePath:p===void 0?m.path||"":p,caseSensitive:m.caseSensitive===!0,childrenIndex:h,route:m};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(s)&&v)return;ot(b.relativePath.startsWith(s),`Absolute route path "${b.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(s.length)}let y=Yn([s,b.relativePath]),S=o.concat(b);m.children&&m.children.length>0&&(ot(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),v0(m.children,r,S,y,v)),!(m.path==null&&!m.index)&&r.push({path:y,score:n2(y,m.index),routesMeta:S})};return n.forEach((m,h)=>{var v;if(m.path===""||!((v=m.path)!=null&&v.includes("?")))u(m,h);else for(let p of y0(m.path))u(m,h,!0,p)}),r}function y0(n){let r=n.split("/");if(r.length===0)return[];let[o,...s]=r,c=o.endsWith("?"),u=o.replace(/\?$/,"");if(s.length===0)return c?[u,""]:[u];let m=y0(s.join("/")),h=[];return h.push(...m.map(v=>v===""?u:[u,v].join("/"))),c&&h.push(...m),h.map(v=>n.startsWith("/")&&v===""?"/":v)}function Kw(n){n.sort((r,o)=>r.score!==o.score?o.score-r.score:a2(r.routesMeta.map(s=>s.childrenIndex),o.routesMeta.map(s=>s.childrenIndex)))}var Zw=/^:[\w-]+$/,Fw=3,Ww=2,Jw=1,e2=10,t2=-2,cv=n=>n==="*";function n2(n,r){let o=n.split("/"),s=o.length;return o.some(cv)&&(s+=t2),r&&(s+=Ww),o.filter(c=>!cv(c)).reduce((c,u)=>c+(Zw.test(u)?Fw:u===""?Jw:e2),s)}function a2(n,r){return n.length===r.length&&n.slice(0,-1).every((s,c)=>s===r[c])?n[n.length-1]-r[r.length-1]:0}function r2(n,r,o=!1){let{routesMeta:s}=n,c={},u="/",m=[];for(let h=0;h<s.length;++h){let v=s[h],p=h===s.length-1,b=u==="/"?r:r.slice(u.length)||"/",y=Di({path:v.relativePath,caseSensitive:v.caseSensitive,end:p},b),S=v.route;if(!y&&p&&o&&!s[s.length-1].route.index&&(y=Di({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!y)return null;Object.assign(c,y.params),m.push({params:c,pathname:Yn([u,y.pathname]),pathnameBase:u2(Yn([u,y.pathnameBase])),route:S}),y.pathnameBase!=="/"&&(u=Yn([u,y.pathnameBase]))}return m}function Di(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[o,s]=o2(n.path,n.caseSensitive,n.end),c=r.match(o);if(!c)return null;let u=c[0],m=u.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:s.reduce((p,{paramName:b,isOptional:y},S)=>{if(b==="*"){let E=h[S]||"";m=u.slice(0,u.length-E.length).replace(/(.)\/+$/,"$1")}const T=h[S];return y&&!T?p[b]=void 0:p[b]=(T||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:m,pattern:n}}function o2(n,r=!1,o=!0){Tn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let s=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,h,v,p,b)=>{if(s.push({paramName:h,isOptional:v!=null}),v){let y=b.charAt(p+m.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,r?void 0:"i"),s]}function l2(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Tn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),n}}function ha(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,s=n.charAt(o);return s&&s!=="/"?null:n.slice(o)||"/"}var s2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function i2(n,r="/"){let{pathname:o,search:s="",hash:c=""}=typeof n=="string"?Oo(n):n,u;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?u=uv(o.substring(1),"/"):u=uv(o,r)):u=r,{pathname:u,search:d2(s),hash:f2(c)}}function uv(n,r){let o=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?o.length>1&&o.pop():c!=="."&&o.push(c)}),o.length>1?o.join("/"):"/"}function _d(n,r,o,s){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function c2(n){return n.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function Cf(n){let r=c2(n);return r.map((o,s)=>s===r.length-1?o.pathname:o.pathnameBase)}function tc(n,r,o,s=!1){let c;typeof n=="string"?c=Oo(n):(c={...n},ot(!c.pathname||!c.pathname.includes("?"),_d("?","pathname","search",c)),ot(!c.pathname||!c.pathname.includes("#"),_d("#","pathname","hash",c)),ot(!c.search||!c.search.includes("#"),_d("#","search","hash",c)));let u=n===""||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 v=i2(c,h),p=m&&m!=="/"&&m.endsWith("/"),b=(u||m===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(p||b)&&(v.pathname+="/"),v}var Yn=n=>n.join("/").replace(/\/\/+/g,"/"),u2=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),d2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,f2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,m2=class{constructor(n,r,o,s=!1){this.status=n,this.statusText=r||"",this.internal=s,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function h2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function p2(n){return n.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var b0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function x0(n,r){let o=n;if(typeof o!="string"||!s2.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let s=o,c=!1;if(b0)try{let u=new URL(window.location.href),m=o.startsWith("//")?new URL(u.protocol+o):new URL(o),h=ha(m.pathname,r);m.origin===u.origin&&h!=null?o=h+m.search+m.hash:c=!0}catch{Tn(!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 S0=["POST","PUT","PATCH","DELETE"];new Set(S0);var g2=["GET",...S0];new Set(g2);var Do=g.createContext(null);Do.displayName="DataRouter";var nc=g.createContext(null);nc.displayName="DataRouterState";var v2=g.createContext(!1),w0=g.createContext({isTransitioning:!1});w0.displayName="ViewTransition";var y2=g.createContext(new Map);y2.displayName="Fetchers";var b2=g.createContext(null);b2.displayName="Await";var sn=g.createContext(null);sn.displayName="Navigation";var es=g.createContext(null);es.displayName="Location";var bn=g.createContext({outlet:null,matches:[],isDataRoute:!1});bn.displayName="Route";var Rf=g.createContext(null);Rf.displayName="RouteError";var E0="REACT_ROUTER_ERROR",x2="REDIRECT",S2="ROUTE_ERROR_RESPONSE";function w2(n){if(n.startsWith(`${E0}:${x2}:{`))try{let r=JSON.parse(n.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function E2(n){if(n.startsWith(`${E0}:${S2}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new m2(r.status,r.statusText,r.data)}catch{}}function N2(n,{relative:r}={}){ot(zo(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:s}=g.useContext(sn),{hash:c,pathname:u,search:m}=ts(n,{relative:r}),h=u;return o!=="/"&&(h=u==="/"?o:Yn([o,u])),s.createHref({pathname:h,search:m,hash:c})}function zo(){return g.useContext(es)!=null}function In(){return ot(zo(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(es).location}var N0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function T0(n){g.useContext(sn).static||g.useLayoutEffect(n)}function C0(){let{isDataRoute:n}=g.useContext(bn);return n?B2():T2()}function T2(){ot(zo(),"useNavigate() may be used only in the context of a <Router> component.");let n=g.useContext(Do),{basename:r,navigator:o}=g.useContext(sn),{matches:s}=g.useContext(bn),{pathname:c}=In(),u=JSON.stringify(Cf(s)),m=g.useRef(!1);return T0(()=>{m.current=!0}),g.useCallback((v,p={})=>{if(Tn(m.current,N0),!m.current)return;if(typeof v=="number"){o.go(v);return}let b=tc(v,JSON.parse(u),c,p.relative==="path");n==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,n])}var R0=g.createContext(null);function s3(){return g.useContext(R0)}function C2(n){let r=g.useContext(bn).outlet;return g.useMemo(()=>r&&g.createElement(R0.Provider,{value:n},r),[r,n])}function i3(){let{matches:n}=g.useContext(bn),r=n[n.length-1];return r?r.params:{}}function ts(n,{relative:r}={}){let{matches:o}=g.useContext(bn),{pathname:s}=In(),c=JSON.stringify(Cf(o));return g.useMemo(()=>tc(n,JSON.parse(c),s,r==="path"),[n,c,s,r])}function R2(n,r){return A0(n,r)}function A0(n,r,o){var C;ot(zo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=g.useContext(sn),{matches:c}=g.useContext(bn),u=c[c.length-1],m=u?u.params:{},h=u?u.pathname:"/",v=u?u.pathnameBase:"/",p=u&&u.route;{let A=p&&p.path||"";j0(h,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
60
|
+
|
|
61
|
+
Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let b=In(),y;if(r){let A=typeof r=="string"?Oo(r):r;ot(v==="/"||((C=A.pathname)==null?void 0:C.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${A.pathname}" was given in the \`location\` prop.`),y=A}else y=b;let S=y.pathname||"/",T=S;if(v!=="/"){let A=v.replace(/^\//,"").split("/");T="/"+S.replace(/^\//,"").split("/").slice(A.length).join("/")}let E=g0(n,{pathname:T});Tn(p||E!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Tn(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let N=M2(E&&E.map(A=>Object.assign({},A,{params:Object.assign({},m,A.params),pathname:Yn([v,s.encodeLocation?s.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?v:Yn([v,s.encodeLocation?s.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),c,o);return r&&N?g.createElement(es.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},N):N}function A2(){let n=U2(),r=h2(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),o=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},u={padding:"2px 4px",backgroundColor:s},m=null;return console.error("Error handled by React Router default ErrorBoundary:",n),m=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:u},"ErrorBoundary")," or"," ",g.createElement("code",{style:u},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},r),o?g.createElement("pre",{style:c},o):null,m)}var k2=g.createElement(A2,null),k0=class extends g.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){this.props.onError?this.props.onError(n,r):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const o=E2(n.digest);o&&(n=o)}let r=n!==void 0?g.createElement(bn.Provider,{value:this.props.routeContext},g.createElement(Rf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?g.createElement(j2,{error:n},r):r}};k0.contextType=v2;var Md=new WeakMap;function j2({children:n,error:r}){let{basename:o}=g.useContext(sn);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let s=w2(r.digest);if(s){let c=Md.get(r);if(c)throw c;let u=x0(s.location,o);if(b0&&!Md.get(r))if(u.isExternal||s.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:s.replace}));throw Md.set(r,m),m}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return n}function _2({routeContext:n,match:r,children:o}){let s=g.useContext(Do);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement(bn.Provider,{value:n},o)}function M2(n,r=[],o){let s=o==null?void 0:o.state;if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(r.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let c=n,u=s==null?void 0:s.errors;if(u!=null){let b=c.findIndex(y=>y.route.id&&(u==null?void 0:u[y.route.id])!==void 0);ot(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),c=c.slice(0,Math.min(c.length,b+1))}let m=!1,h=-1;if(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:T}=s,E=y.route.loader&&!S.hasOwnProperty(y.route.id)&&(!T||T[y.route.id]===void 0);if(y.route.lazy||E){o.isStatic&&(m=!0),h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}}let v=o==null?void 0:o.onError,p=s&&v?(b,y)=>{var S,T;v(b,{location:s.location,params:((T=(S=s.matches)==null?void 0:S[0])==null?void 0:T.params)??{},unstable_pattern:p2(s.matches),errorInfo:y})}:void 0;return c.reduceRight((b,y,S)=>{let T,E=!1,N=null,C=null;s&&(T=u&&y.route.id?u[y.route.id]:void 0,N=y.route.errorElement||k2,m&&(h<0&&S===0?(j0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,C=null):h===S&&(E=!0,C=y.route.hydrateFallbackElement||null)));let A=r.concat(c.slice(0,S+1)),j=()=>{let M;return T?M=N:E?M=C:y.route.Component?M=g.createElement(y.route.Component,null):y.route.element?M=y.route.element:M=b,g.createElement(_2,{match:y,routeContext:{outlet:b,matches:A,isDataRoute:s!=null},children:M})};return s&&(y.route.ErrorBoundary||y.route.errorElement||S===0)?g.createElement(k0,{location:s.location,revalidation:s.revalidation,component:N,error:T,children:j(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):j()},null)}function Af(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function O2(n){let r=g.useContext(Do);return ot(r,Af(n)),r}function D2(n){let r=g.useContext(nc);return ot(r,Af(n)),r}function z2(n){let r=g.useContext(bn);return ot(r,Af(n)),r}function kf(n){let r=z2(n),o=r.matches[r.matches.length-1];return ot(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function L2(){return kf("useRouteId")}function U2(){var s;let n=g.useContext(Rf),r=D2("useRouteError"),o=kf("useRouteError");return n!==void 0?n:(s=r.errors)==null?void 0:s[o]}function B2(){let{router:n}=O2("useNavigate"),r=kf("useNavigate"),o=g.useRef(!1);return T0(()=>{o.current=!0}),g.useCallback(async(c,u={})=>{Tn(o.current,N0),o.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:r,...u}))},[n,r])}var dv={};function j0(n,r,o){!r&&!dv[n]&&(dv[n]=!0,Tn(!1,o))}g.memo(H2);function H2({routes:n,future:r,state:o,isStatic:s,onError:c}){return A0(n,void 0,{state:o,isStatic:s,onError:c})}function fv({to:n,replace:r,state:o,relative:s}){ot(zo(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=g.useContext(sn);Tn(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=g.useContext(bn),{pathname:m}=In(),h=C0(),v=tc(n,Cf(u),m,s==="path"),p=JSON.stringify(v);return g.useEffect(()=>{h(JSON.parse(p),{replace:r,state:o,relative:s})},[h,p,s,r,o]),null}function $2(n){return C2(n.context)}function Nr(n){ot(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function P2({basename:n="/",children:r=null,location:o,navigationType:s="POP",navigator:c,static:u=!1,unstable_useTransitions:m}){ot(!zo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),v=g.useMemo(()=>({basename:h,navigator:c,static:u,unstable_useTransitions:m,future:{}}),[h,c,u,m]);typeof o=="string"&&(o=Oo(o));let{pathname:p="/",search:b="",hash:y="",state:S=null,key:T="default",unstable_mask:E}=o,N=g.useMemo(()=>{let C=ha(p,h);return C==null?null:{location:{pathname:C,search:b,hash:y,state:S,key:T,unstable_mask:E},navigationType:s}},[h,p,b,y,S,T,s,E]);return Tn(N!=null,`<Router basename="${h}"> is not able to match the URL "${p}${b}${y}" because it does not start with the basename, so the <Router> won't render anything.`),N==null?null:g.createElement(sn.Provider,{value:v},g.createElement(es.Provider,{children:r,value:N}))}function q2({children:n,location:r}){return R2(ef(n),r)}function ef(n,r=[]){let o=[];return g.Children.forEach(n,(s,c)=>{if(!g.isValidElement(s))return;let u=[...r,c];if(s.type===g.Fragment){o.push.apply(o,ef(s.props.children,u));return}ot(s.type===Nr,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ot(!s.props.index||!s.props.children,"An index route cannot have child routes.");let m={id:s.props.id||u.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(m.children=ef(s.props.children,u)),o.push(m)}),o}var Ci="get",Ri="application/x-www-form-urlencoded";function ac(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function V2(n){return ac(n)&&n.tagName.toLowerCase()==="button"}function Y2(n){return ac(n)&&n.tagName.toLowerCase()==="form"}function G2(n){return ac(n)&&n.tagName.toLowerCase()==="input"}function I2(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function X2(n,r){return n.button===0&&(!r||r==="_self")&&!I2(n)}var pi=null;function Q2(){if(pi===null)try{new FormData(document.createElement("form"),0),pi=!1}catch{pi=!0}return pi}var K2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Od(n){return n!=null&&!K2.has(n)?(Tn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ri}"`),null):n}function Z2(n,r){let o,s,c,u,m;if(Y2(n)){let h=n.getAttribute("action");s=h?ha(h,r):null,o=n.getAttribute("method")||Ci,c=Od(n.getAttribute("enctype"))||Ri,u=new FormData(n)}else if(V2(n)||G2(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=n.getAttribute("formaction")||h.getAttribute("action");if(s=v?ha(v,r):null,o=n.getAttribute("formmethod")||h.getAttribute("method")||Ci,c=Od(n.getAttribute("formenctype"))||Od(h.getAttribute("enctype"))||Ri,u=new FormData(h,n),!Q2()){let{name:p,type:b,value:y}=n;if(b==="image"){let S=p?`${p}.`:"";u.append(`${S}x`,"0"),u.append(`${S}y`,"0")}else p&&u.append(p,y)}}else{if(ac(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Ci,s=null,c=Ri,m=n}return u&&c==="text/plain"&&(m=u,u=void 0),{action:s,method:o.toLowerCase(),encType:c,formData:u,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function jf(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function F2(n,r,o,s){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return o?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${s}`:c.pathname=`${c.pathname}.${s}`:c.pathname==="/"?c.pathname=`_root.${s}`:r&&ha(c.pathname,r)==="/"?c.pathname=`${r.replace(/\/$/,"")}/_root.${s}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${s}`,c}async function W2(n,r){if(n.id in r)return r[n.id];try{let o=await import(n.module);return r[n.id]=o,o}catch(o){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function J2(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function eE(n,r,o){let s=await Promise.all(n.map(async c=>{let u=r.routes[c.route.id];if(u){let m=await W2(u,o);return m.links?m.links():[]}return[]}));return rE(s.flat(1).filter(J2).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function mv(n,r,o,s,c,u){let m=(v,p)=>o[p]?v.route.id!==o[p].route.id:!0,h=(v,p)=>{var b;return o[p].pathname!==v.pathname||((b=o[p].route.path)==null?void 0:b.endsWith("*"))&&o[p].params["*"]!==v.params["*"]};return u==="assets"?r.filter((v,p)=>m(v,p)||h(v,p)):u==="data"?r.filter((v,p)=>{var y;let b=s.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(m(v,p)||h(v,p))return!0;if(v.route.shouldRevalidate){let S=v.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((y=o[0])==null?void 0:y.params)||{},nextUrl:new URL(n,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function tE(n,r,{includeHydrateFallback:o}={}){return nE(n.map(s=>{let c=r.routes[s.route.id];if(!c)return[];let u=[c.module];return c.clientActionModule&&(u=u.concat(c.clientActionModule)),c.clientLoaderModule&&(u=u.concat(c.clientLoaderModule)),o&&c.hydrateFallbackModule&&(u=u.concat(c.hydrateFallbackModule)),c.imports&&(u=u.concat(c.imports)),u}).flat(1))}function nE(n){return[...new Set(n)]}function aE(n){let r={},o=Object.keys(n).sort();for(let s of o)r[s]=n[s];return r}function rE(n,r){let o=new Set;return new Set(r),n.reduce((s,c)=>{let u=JSON.stringify(aE(c));return o.has(u)||(o.add(u),s.push({key:u,link:c})),s},[])}function _0(){let n=g.useContext(Do);return jf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function oE(){let n=g.useContext(nc);return jf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var _f=g.createContext(void 0);_f.displayName="FrameworkContext";function M0(){let n=g.useContext(_f);return jf(n,"You must render this element inside a <HydratedRouter> element"),n}function lE(n,r){let o=g.useContext(_f),[s,c]=g.useState(!1),[u,m]=g.useState(!1),{onFocus:h,onBlur:v,onMouseEnter:p,onMouseLeave:b,onTouchStart:y}=r,S=g.useRef(null);g.useEffect(()=>{if(n==="render"&&m(!0),n==="viewport"){let N=A=>{A.forEach(j=>{m(j.isIntersecting)})},C=new IntersectionObserver(N,{threshold:.5});return S.current&&C.observe(S.current),()=>{C.disconnect()}}},[n]),g.useEffect(()=>{if(s){let N=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(N)}}},[s]);let T=()=>{c(!0)},E=()=>{c(!1),m(!1)};return o?n!=="intent"?[u,S,{}]:[u,S,{onFocus:Ul(h,T),onBlur:Ul(v,E),onMouseEnter:Ul(p,T),onMouseLeave:Ul(b,E),onTouchStart:Ul(y,T)}]:[!1,S,{}]}function Ul(n,r){return o=>{n&&n(o),o.defaultPrevented||r(o)}}function sE({page:n,...r}){let{router:o}=_0(),s=g.useMemo(()=>g0(o.routes,n,o.basename),[o.routes,n,o.basename]);return s?g.createElement(cE,{page:n,matches:s,...r}):null}function iE(n){let{manifest:r,routeModules:o}=M0(),[s,c]=g.useState([]);return g.useEffect(()=>{let u=!1;return eE(n,r,o).then(m=>{u||c(m)}),()=>{u=!0}},[n,r,o]),s}function cE({page:n,matches:r,...o}){let s=In(),{future:c,manifest:u,routeModules:m}=M0(),{basename:h}=_0(),{loaderData:v,matches:p}=oE(),b=g.useMemo(()=>mv(n,r,p,u,s,"data"),[n,r,p,u,s]),y=g.useMemo(()=>mv(n,r,p,u,s,"assets"),[n,r,p,u,s]),S=g.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let N=new Set,C=!1;if(r.forEach(j=>{var U;let M=u.routes[j.route.id];!M||!M.hasLoader||(!b.some(H=>H.route.id===j.route.id)&&j.route.id in v&&((U=m[j.route.id])!=null&&U.shouldRevalidate)||M.hasClientLoader?C=!0:N.add(j.route.id))}),N.size===0)return[];let A=F2(n,h,c.unstable_trailingSlashAwareDataRequests,"data");return C&&N.size>0&&A.searchParams.set("_routes",r.filter(j=>N.has(j.route.id)).map(j=>j.route.id).join(",")),[A.pathname+A.search]},[h,c.unstable_trailingSlashAwareDataRequests,v,s,u,b,r,n,m]),T=g.useMemo(()=>tE(y,u),[y,u]),E=iE(y);return g.createElement(g.Fragment,null,S.map(N=>g.createElement("link",{key:N,rel:"prefetch",as:"fetch",href:N,...o})),T.map(N=>g.createElement("link",{key:N,rel:"modulepreload",href:N,...o})),E.map(({key:N,link:C})=>g.createElement("link",{key:N,nonce:o.nonce,...C,crossOrigin:C.crossOrigin??o.crossOrigin})))}function uE(...n){return r=>{n.forEach(o=>{typeof o=="function"?o(r):o!=null&&(o.current=r)})}}var dE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{dE&&(window.__reactRouterVersion="7.13.2")}catch{}function fE({basename:n,children:r,unstable_useTransitions:o,window:s}){let c=g.useRef();c.current==null&&(c.current=Yw({window:s,v5Compat:!0}));let u=c.current,[m,h]=g.useState({action:u.action,location:u.location}),v=g.useCallback(p=>{o===!1?h(p):g.startTransition(()=>h(p))},[o]);return g.useLayoutEffect(()=>u.listen(v),[u,v]),g.createElement(P2,{basename:n,children:r,location:m.location,navigationType:m.action,navigator:u,unstable_useTransitions:o})}var O0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,D0=g.forwardRef(function({onClick:r,discover:o="render",prefetch:s="none",relative:c,reloadDocument:u,replace:m,unstable_mask:h,state:v,target:p,to:b,preventScrollReset:y,viewTransition:S,unstable_defaultShouldRevalidate:T,...E},N){let{basename:C,navigator:A,unstable_useTransitions:j}=g.useContext(sn),M=typeof b=="string"&&O0.test(b),U=x0(b,C);b=U.to;let H=N2(b,{relative:c}),G=In(),V=null;if(h){let J=tc(h,[],G.unstable_mask?G.unstable_mask.pathname:"/",!0);C!=="/"&&(J.pathname=J.pathname==="/"?C:Yn([C,J.pathname])),V=A.createHref(J)}let[$,re,de]=lE(s,E),fe=pE(b,{replace:m,unstable_mask:h,state:v,target:p,preventScrollReset:y,relative:c,viewTransition:S,unstable_defaultShouldRevalidate:T,unstable_useTransitions:j});function F(J){r&&r(J),J.defaultPrevented||fe(J)}let te=!(U.isExternal||u),ce=g.createElement("a",{...E,...de,href:(te?V:void 0)||U.absoluteURL||H,onClick:te?F:r,ref:uE(N,re),target:p,"data-discover":!M&&o==="render"?"true":void 0});return $&&!M?g.createElement(g.Fragment,null,ce,g.createElement(sE,{page:H})):ce});D0.displayName="Link";var tf=g.forwardRef(function({"aria-current":r="page",caseSensitive:o=!1,className:s="",end:c=!1,style:u,to:m,viewTransition:h,children:v,...p},b){let y=ts(m,{relative:p.relative}),S=In(),T=g.useContext(nc),{navigator:E,basename:N}=g.useContext(sn),C=T!=null&&xE(y)&&h===!0,A=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,j=S.pathname,M=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;o||(j=j.toLowerCase(),M=M?M.toLowerCase():null,A=A.toLowerCase()),M&&N&&(M=ha(M,N)||M);const U=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let H=j===A||!c&&j.startsWith(A)&&j.charAt(U)==="/",G=M!=null&&(M===A||!c&&M.startsWith(A)&&M.charAt(A.length)==="/"),V={isActive:H,isPending:G,isTransitioning:C},$=H?r:void 0,re;typeof s=="function"?re=s(V):re=[s,H?"active":null,G?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let de=typeof u=="function"?u(V):u;return g.createElement(D0,{...p,"aria-current":$,className:re,ref:b,style:de,to:m,viewTransition:h},typeof v=="function"?v(V):v)});tf.displayName="NavLink";var mE=g.forwardRef(({discover:n="render",fetcherKey:r,navigate:o,reloadDocument:s,replace:c,state:u,method:m=Ci,action:h,onSubmit:v,relative:p,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:S,...T},E)=>{let{unstable_useTransitions:N}=g.useContext(sn),C=yE(),A=bE(h,{relative:p}),j=m.toLowerCase()==="get"?"get":"post",M=typeof h=="string"&&O0.test(h),U=H=>{if(v&&v(H),H.defaultPrevented)return;H.preventDefault();let G=H.nativeEvent.submitter,V=(G==null?void 0:G.getAttribute("formmethod"))||m,$=()=>C(G||H.currentTarget,{fetcherKey:r,method:V,navigate:o,replace:c,state:u,relative:p,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:S});N&&o!==!1?g.startTransition(()=>$()):$()};return g.createElement("form",{ref:E,method:j,action:A,onSubmit:s?v:U,...T,"data-discover":!M&&n==="render"?"true":void 0})});mE.displayName="Form";function hE(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function z0(n){let r=g.useContext(Do);return ot(r,hE(n)),r}function pE(n,{target:r,replace:o,unstable_mask:s,state:c,preventScrollReset:u,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:v,unstable_useTransitions:p}={}){let b=C0(),y=In(),S=ts(n,{relative:m});return g.useCallback(T=>{if(X2(T,r)){T.preventDefault();let E=o!==void 0?o:Zl(y)===Zl(S),N=()=>b(n,{replace:E,unstable_mask:s,state:c,preventScrollReset:u,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:v});p?g.startTransition(()=>N()):N()}},[y,b,S,o,s,c,r,n,u,m,h,v,p])}var gE=0,vE=()=>`__${String(++gE)}__`;function yE(){let{router:n}=z0("useSubmit"),{basename:r}=g.useContext(sn),o=L2(),s=n.fetch,c=n.navigate;return g.useCallback(async(u,m={})=>{let{action:h,method:v,encType:p,formData:b,body:y}=Z2(u,r);if(m.navigate===!1){let S=m.fetcherKey||vE();await s(S,o,m.action||h,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,body:y,formMethod:m.method||v,formEncType:m.encType||p,flushSync:m.flushSync})}else await c(m.action||h,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,body:y,formMethod:m.method||v,formEncType:m.encType||p,replace:m.replace,state:m.state,fromRouteId:o,flushSync:m.flushSync,viewTransition:m.viewTransition})},[s,c,r,o])}function bE(n,{relative:r}={}){let{basename:o}=g.useContext(sn),s=g.useContext(bn);ot(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),u={...ts(n||".",{relative:r})},m=In();if(n==null){u.search=m.search;let h=new URLSearchParams(u.search),v=h.getAll("index");if(v.some(b=>b==="")){h.delete("index"),v.filter(y=>y).forEach(y=>h.append("index",y));let b=h.toString();u.search=b?`?${b}`:""}}return(!n||n===".")&&c.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(u.pathname=u.pathname==="/"?o:Yn([o,u.pathname])),Zl(u)}function xE(n,{relative:r}={}){let o=g.useContext(w0);ot(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=z0("useViewTransitionState"),c=ts(n,{relative:r});if(!o.isTransitioning)return!1;let u=ha(o.currentLocation.pathname,s)||o.currentLocation.pathname,m=ha(o.nextLocation.pathname,s)||o.nextLocation.pathname;return Di(c.pathname,m)!=null||Di(c.pathname,u)!=null}var ns=h0();const L0=m0(ns),SE="/api",hv="X-Tunnel-Authorization";function wE(n){const r=n.toLowerCase().replace(/\.$/,"");return r==="devtunnels.ms"||r.endsWith(".devtunnels.ms")}function EE(){var r,o;return typeof window>"u"||!wE(window.location.hostname)?void 0:((o=(r=window.__MESHY_RUNTIME_CONFIG__)==null?void 0:r.dashboardTunnelAuthorization)==null?void 0:o.trim())||void 0}function NE(n){const r=new Headers(n==null?void 0:n.headers);(n==null?void 0:n.body)!==void 0&&n.body!==null&&!r.has("Content-Type")&&r.set("Content-Type","application/json");const s=EE();return s&&!r.has(hv)&&r.set(hv,s),r}function TE(n,r){if(typeof n=="string"&&n)return n;if(n&&typeof n=="object"){const o=n,s=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return o.error;if(typeof(s==null?void 0:s.message)=="string"&&s.message)return s.message;if(typeof o.message=="string"&&o.message)return o.message}return r}async function Se(n,r){const o=await fetch(`${SE}${n}`,{...r,headers:NE(r)});if(!o.ok){const s=await o.json().catch(()=>o.statusText);throw new Error(TE(s,`HTTP ${o.status}`))}return o.json()}function Lo(n,r){return Se(n,{...r,cache:"no-store"})}function CE(){return Se("/system/info")}function c3(n){return Se("/system/transport",{method:"POST",body:JSON.stringify({type:n})})}function U0(n){return Se("/system/runtime/restart",{method:"POST",body:JSON.stringify(n)})}function RE(){return Se("/system/runtime/stop",{method:"POST"})}function AE(){return Se("/cluster/state")}function u3(){return Se("/cluster/promote",{method:"POST"})}function d3(n){return Se("/cluster/connect",{method:"POST",body:JSON.stringify(n)})}function f3(){return Se("/cluster/disconnect",{method:"POST"})}function kE(n){return Se(`/node-operations/${n}`)}async function jE(n={}){const r=new URLSearchParams;n.nodeId&&r.set("nodeId",n.nodeId),n.status&&r.set("status",n.status),n.kind&&r.set("kind",n.kind);const o=r.toString();return(await Se(`/node-operations${o?`?${o}`:""}`)).operations}function _E(n,r){return Se(`/nodes/${n}/agents/${r}/upgrade`,{method:"POST"})}function ME(n,r){return Se(`/nodes/${n}/runtime/restart`,{method:"POST",body:JSON.stringify(r)})}async function m3(){return(await Se("/devboxes")).devboxes}function h3(n,r){return Se(`/nodes/${n}/devbox/configure`,{method:"POST",body:JSON.stringify({devbox:r})})}function p3(n){return Se(`/nodes/${n}/devbox/status`)}function g3(n){return Se(`/nodes/${n}/devbox/start`,{method:"POST"})}function v3(n,r){return Se(`/nodes/${n}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:r})})}function y3(n,r={}){const o=new URLSearchParams;r.path&&o.set("path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),100))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),r.directoriesOnly!==void 0&&o.set("directoriesOnly",String(r.directoriesOnly)),r.allowAbsolute!==void 0&&o.set("allowAbsolute",String(r.allowAbsolute));const s=o.toString();return Se(`/nodes/${n}/workdir/tree${s?`?${s}`:""}`)}function b3(n,r={}){const o=new URLSearchParams;r.path&&o.set("path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),20))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),r.allowAbsolute!==void 0&&o.set("allowAbsolute",String(r.allowAbsolute));const s=o.toString();return Se(`/nodes/${n}/workdir/branch${s?`?${s}`:""}`)}function x3(n,r){const o=new URLSearchParams;return o.set("agent",r.agent),o.set("limit",String(Math.min(Math.max(1,r.limit),100))),Se(`/nodes/${n}/native-sessions?${o.toString()}`)}function S3(n,r){return Se(`/nodes/${n}/workdir/branch`,{method:"POST",body:JSON.stringify({path:r.path,branchName:r.branchName,startPoint:r.startPoint,limit:r.limit,offset:r.offset,allowAbsolute:r.allowAbsolute})})}function w3(n,r){return Se(`/nodes/${n}/terminal/sessions`,{method:"POST",body:JSON.stringify(r)})}function E3(n){return Se(`/nodes/${n}/terminal/sessions`)}function N3(n,r){return Se(`/nodes/${n}/terminal/sessions/${r}`)}function T3(n,r){return Se(`/nodes/${n}/terminal/sessions/${r}/stop`,{method:"POST"})}function Mf(n,r){n.set("scope",r.kind),r.kind==="project"&&n.set("projectPath",r.projectPath)}function C3(n,r){var s;const o=new URLSearchParams;return Mf(o,r.scope),(s=r.agents)!=null&&s.length&&o.set("agents",r.agents.join(",")),Se(`/nodes/${encodeURIComponent(n)}/capabilities?${o.toString()}`)}function R3(n,r,o){const s=new URLSearchParams;o&&Mf(s,o);const c=s.toString();return Se(`/nodes/${encodeURIComponent(n)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`)}function A3(n,r,o){const s=new URLSearchParams;o&&Mf(s,o);const c=s.toString();return Se(`/nodes/${encodeURIComponent(n)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`,{method:"DELETE"})}function k3(n){return Se("/capabilities/conflict-check",{method:"POST",body:JSON.stringify(n)})}function j3(n){return Se("/capabilities/share",{method:"POST",body:JSON.stringify(n)})}async function _3(n){const r=new URLSearchParams;if(n!=null&&n.status&&r.set("status",n.status),n!=null&&n.assignedTo&&r.set("assignedTo",n.assignedTo),n!=null&&n.priority&&r.set("priority",n.priority),n!=null&&n.limit){const s=Math.min(Math.max(1,n.limit),100);r.set("limit",String(s))}if(n!=null&&n.offset&&r.set("offset",String(n.offset)),n!=null&&n.projectPath&&r.set("projectPath",n.projectPath),n!=null&&n.cursor&&r.set("cursor",n.cursor),(n==null?void 0:n.completedLimitPerProject)!==void 0){const s=Math.min(Math.max(1,n.completedLimitPerProject),100);r.set("completedLimitPerProject",String(s))}const o=r.toString();return Se(`/tasks${o?`?${o}`:""}`)}function M3(n){return Se(`/tasks/${n}`)}function O3(n){return Se("/tasks",{method:"POST",body:JSON.stringify(n)})}function D3(n){return Se("/tasks/import-session",{method:"POST",body:JSON.stringify(n)})}function z3(n){return Se("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:n})})}function L3(n){return Se("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:n})})}function U3(n){return Se(`/tasks/${n}/cancel`,{method:"POST"})}function B3(n){return Se(`/tasks/${n}/retry`,{method:"POST"})}function H3(n,r){return Se(`/tasks/${n}/logs`)}function $3(n,r){return Se(`/tasks/${n}/message`,{method:"POST",body:JSON.stringify({content:r})})}function P3(n,r){return Se(`/tasks/${n}/queued-messages/${encodeURIComponent(r)}`,{method:"DELETE"})}function q3(n,r){return Se(`/tasks/${n}/share`,{method:"POST",body:JSON.stringify(r)})}function V3(n){return Se(`/tasks/${n}/share`,{method:"DELETE"})}function Y3(n){return Lo(`/shared/conversations/${encodeURIComponent(n)}`)}function G3(n,r){return Lo(`/shared/conversations/${encodeURIComponent(n)}/logs`)}function I3(n){return Lo(`/shared/conversations/${encodeURIComponent(n)}/output`)}function X3(n,r="."){return Lo(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}function Q3(n,r){return Lo(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}function K3(n,r){return Lo(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(r?{path:r}:{})})}function B0(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}function Z3(n){return Se(`/tasks/${n}/output`)}function F3(n,r="."){return Se(`/tasks/${n}/output/tree?path=${encodeURIComponent(r)}`)}function W3(n,r){return Se(`/tasks/${n}/output/content?path=${encodeURIComponent(r)}`)}function J3(n,r){return Se(`/tasks/${n}/output/preview-sessions`,{method:"POST",body:JSON.stringify(B0(r))})}function eM(n,r){return Se(`/nodes/${n}/preview-sessions`,{method:"POST",body:JSON.stringify(B0(r))})}function tM(n){return Se(`/tasks/${n}/output/diff`)}function OE({hasStarted:n,enabled:r}){return r&&!n}function DE(n,r,o=!0){const s=g.useRef(n),c=g.useRef(!1);g.useEffect(()=>{s.current=n},[n]),g.useEffect(()=>{if(!o)return;const u=()=>s.current();OE({hasStarted:c.current,enabled:o})&&(c.current=!0,u());const m=setInterval(u,r);return()=>clearInterval(m)},[r,o])}function zE(n){return n?n.replace(/\/+$/,""):""}function LE(n){const r=n??"/api";return r?r.startsWith("/")?r.replace(/\/+$/,""):`/${r.replace(/\/+$/,"")}`:""}function pv(...n){const r=new Headers;for(const o of n){if(!o)continue;new Headers(o).forEach((c,u)=>r.set(u,c))}return r}var UE=class extends Error{constructor(r,o){super(r);ct(this,"status");ct(this,"statusText");ct(this,"code");ct(this,"details");ct(this,"body");this.name="MeshyApiError",this.status=o.status,this.statusText=o.statusText,this.code=o.code,this.details=o.details,this.body=o.body}};function BE(n,r){if(typeof n=="string"&&n)return{message:n};if(n&&typeof n=="object"){const o=n,s=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return{message:o.error};if(typeof(s==null?void 0:s.message)=="string"&&s.message)return{message:s.message,code:s.code,details:s.details};if(typeof o.message=="string"&&o.message)return{message:o.message}}return{message:r}}function Bl(n,r){const o=r.toString();return o?`${n}?${o}`:n}function rn(n,r,o){o!==void 0&&n.set(r,String(o))}function gv(n){return n===null||Array.isArray(n)||typeof n=="object"&&n!==null&&!(n instanceof ArrayBuffer)}function HE(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}var $E=class{constructor(n={}){ct(this,"baseUrl");ct(this,"apiPrefix");ct(this,"defaultHeaders");ct(this,"credentials");ct(this,"fetchImpl");ct(this,"config");const r=n.fetchImpl??((o,s)=>globalThis.fetch(o,s));if(!r)throw new Error("MeshyClient requires a fetch implementation");this.fetchImpl=r,this.baseUrl=zE(n.baseUrl),this.apiPrefix=LE(n.apiPrefix),this.defaultHeaders=pv(n.defaultHeaders),this.credentials=n.credentials,this.config=n}buildApiUrl(n){const r=n.startsWith("/")?n:`/${n}`;return`${this.baseUrl}${this.apiPrefix}${r}`}buildApiurl(n){return this.buildApiUrl(n)}async request(n,r={}){var b,y,S,T;const o=r.timeoutMs??this.config.timeoutMs,s=o?new AbortController:null;let c=null;s&&(c=setTimeout(()=>s.abort(),o));const u=await((y=(b=this.config).tokenProvider)==null?void 0:y.call(b)),m=await((T=(S=this.config).headersProvider)==null?void 0:T.call(S)),h=r.credentials??this.config.credentials,v=pv({Accept:"application/json"},gv(r.body)?{"Content-Type":"application/json"}:void 0,this.config.defaultHeaders,m,u?{Authorization:`Bearer ${u}`}:void 0,r.headers),p=gv(r.body)?JSON.stringify(r.body):r.body;try{const E=await this.fetchImpl(this.buildApiUrl(n),{...r,headers:v,body:p,credentials:h,signal:r.signal??(s==null?void 0:s.signal)});if(!E.ok){const N=await E.json().catch(()=>E.statusText),C=BE(N,`HTTP ${E.status}`);throw new UE(C.message,{status:E.status,statusText:E.statusText,code:C.code,details:C.details,body:N})}return E.status===204?void 0:await E.json()}finally{c&&clearTimeout(c)}}getSystemInfo(){return this.request("/system/info")}getSystemMetrics(){return this.request("/system/metrics")}switchTransport(n){return this.request("/system/transport",{method:"POST",body:{type:n}})}restartRuntime(n){return this.request("/system/runtime/restart",{method:"POST",body:n})}stopRuntime(){return this.request("/system/runtime/stop",{method:"POST"})}getClusterState(){return this.request("/cluster/state")}promoteToLeader(){return this.request("/cluster/promote",{method:"POST"})}joinCluster(n){return this.request("/cluster/join",{method:"POST",body:n})}connectToCluster(n){return this.request("/cluster/connect",{method:"POST",body:n})}disconnectFromCluster(){return this.request("/cluster/disconnect",{method:"POST"})}async getNodes(n={}){const r=new URLSearchParams;return rn(r,"status",n.status),rn(r,"capability",n.capability),(await this.request(Bl("/nodes",r))).nodes}getNode(n){return this.request(`/nodes/${encodeURIComponent(n)}`)}getNodeStatus(n){return this.request(`/nodes/${encodeURIComponent(n)}/status`)}removeNode(n){return this.request(`/nodes/${encodeURIComponent(n)}`,{method:"DELETE"})}leaveCluster(n){return this.request("/cluster/leave",{method:"POST",body:{nodeId:n}})}updateNode(n,r){return this.request(`/nodes/${encodeURIComponent(n)}`,{method:"PATCH",body:r})}toggleNodeDevTunnel(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/devtunnel`,{method:"POST",body:{enabled:r}})}getNodeOperation(n){return this.request(`/node-operations/${encodeURIComponent(n)}`)}async listNodeOperations(n={}){const r=new URLSearchParams;return rn(r,"nodeId",n.nodeId),rn(r,"status",n.status),rn(r,"kind",n.kind),(await this.request(Bl("/node-operations",r))).operations}upgradeNodeAgent(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/agents/${r}/upgrade`,{method:"POST"})}restartNodeRuntime(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/runtime/restart`,{method:"POST",body:r})}getNodeWorkDirTree(n,r={}){const o=new URLSearchParams;return rn(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))),rn(o,"directoriesOnly",r.directoriesOnly),rn(o,"allowAbsolute",r.allowAbsolute),this.request(Bl(`/nodes/${encodeURIComponent(n)}/workdir/tree`,o))}getNodeWorkDirBranchInfo(n,r={}){const o=new URLSearchParams;return rn(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))),rn(o,"allowAbsolute",r.allowAbsolute),this.request(Bl(`/nodes/${encodeURIComponent(n)}/workdir/branch`,o))}createNodeWorkDirBranch(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/workdir/branch`,{method:"POST",body:r})}getNodeNativeSessions(n,r){const o=new URLSearchParams;return o.set("agent",r.agent),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),100))),this.request(`/nodes/${encodeURIComponent(n)}/native-sessions?${o.toString()}`)}startNodeTerminalSession(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/terminal/sessions`,{method:"POST",body:r})}listNodeTerminalSessions(n){return this.request(`/nodes/${encodeURIComponent(n)}/terminal/sessions`)}getNodeTerminalSession(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/terminal/sessions/${encodeURIComponent(r)}`)}stopNodeTerminalSession(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/terminal/sessions/${encodeURIComponent(r)}/stop`,{method:"POST"})}async getTasks(n={}){const r=new URLSearchParams;return rn(r,"status",n.status),rn(r,"assignedTo",n.assignedTo),rn(r,"priority",n.priority),n.limit&&r.set("limit",String(Math.min(Math.max(1,n.limit),100))),n.offset&&r.set("offset",String(n.offset)),(await this.request(Bl("/tasks",r))).tasks}getTask(n){return this.request(`/tasks/${encodeURIComponent(n)}`)}createTask(n){return this.request("/tasks",{method:"POST",body:n})}attachNativeSession(n){return this.request("/tasks/import-session",{method:"POST",body:n})}deleteTask(n){return this.request(`/tasks/${encodeURIComponent(n)}`,{method:"DELETE"})}batchDeleteTasks(n){return this.request("/tasks/batch/delete",{method:"POST",body:{ids:n}})}batchArchiveTasks(n){return this.request("/tasks/batch/archive",{method:"POST",body:{ids:n}})}archiveTask(n){return this.request(`/tasks/${encodeURIComponent(n)}`,{method:"PATCH",body:{status:"archived"}})}cancelTask(n){return this.request(`/tasks/${encodeURIComponent(n)}/cancel`,{method:"POST"})}retryTask(n){return this.request(`/tasks/${encodeURIComponent(n)}/retry`,{method:"POST"})}assignTask(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/assign`,{method:"POST",body:{nodeId:r}})}getTaskLogs(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/logs${r!==void 0?`?after=${r}`:""}`)}sendTaskMessage(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/message`,{method:"POST",body:{content:r}})}createTaskShare(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/share`,{method:"POST",body:r})}deleteTaskShare(n){return this.request(`/tasks/${encodeURIComponent(n)}/share`,{method:"DELETE"})}getSharedConversation(n){return this.request(`/shared/conversations/${encodeURIComponent(n)}`)}getSharedConversationLogs(n,r){return this.request(`/shared/conversations/${encodeURIComponent(n)}/logs${r!==void 0?`?after=${r}`:""}`)}getSharedTaskOutput(n){return this.request(`/shared/conversations/${encodeURIComponent(n)}/output`)}getSharedTaskOutputTree(n,r="."){return this.request(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}getSharedTaskOutputContent(n,r){return this.request(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}createSharedTaskPreviewSession(n,r){return this.request(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:r?{path:r}:{}})}getTaskOutput(n){return this.request(`/tasks/${encodeURIComponent(n)}/output`)}getTaskOutputTree(n,r="."){return this.request(`/tasks/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}getTaskOutputContent(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}createTaskPreviewSession(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:HE(r)})}getTaskOutputDiff(n){return this.request(`/tasks/${encodeURIComponent(n)}/output/diff`)}},PE=new $E,qE=["node.joined","node.left","node.status","node.operation.created","node.operation.updated","task.created","task.assigned","task.status","task.updated","task.deleted","task.output","election.started","election.complete","cluster.state","transport.changed"],VE=0,YE=class{constructor(n){ct(this,"client");ct(this,"eventTypes");ct(this,"eventSourceFactory");ct(this,"pollIntervalMs");ct(this,"poll");ct(this,"eventSource",null);ct(this,"pollTimer",null);ct(this,"listeners",new Map);ct(this,"connectionListeners",new Map);ct(this,"listenerId",0);ct(this,"connected",!1);this.client=n.client,this.eventTypes=n.eventTypes??qE,this.eventSourceFactory=n.eventSourceFactory??(GE(n.client)?void 0:XE()),this.pollIntervalMs=n.pollIntervalMs??1e4,this.poll=n.poll}start(){if(!(this.eventSource||this.pollTimer)){if(this.eventSourceFactory){const n=new this.eventSourceFactory(IE(this.client,"/events"),this.client.credentials==="include"?{withCredentials:!0}:void 0);this.eventSource=n,n.onopen=()=>this.setConnected(!0),n.onerror=()=>{this.setConnected(!1),this.startPolling()};for(const r of this.eventTypes)n.addEventListener(r,o=>this.emit({id:String(++VE),type:r,data:JSON.parse(o.data),timestamp:Date.now()}));return}this.startPolling()}}stop(){var n;(n=this.eventSource)==null||n.close(),this.eventSource=null,this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null),this.setConnected(!1)}subscribe(n,r){const o=++this.listenerId;return this.listeners.set(o,{pattern:n,callback:r}),()=>this.listeners.delete(o)}onConnectionChange(n){const r=++this.listenerId;return this.connectionListeners.set(r,n),n(this.connected),()=>this.connectionListeners.delete(r)}isConnected(){return this.connected}emit(n){for(const{pattern:r,callback:o}of this.listeners.values())n.type.startsWith(r)&&o(n)}setConnected(n){if(this.connected!==n){this.connected=n;for(const r of this.connectionListeners.values())r(n)}}startPolling(){!this.poll||this.pollTimer||(this.pollTimer=setInterval(()=>{var n;(n=this.poll)==null||n.call(this).then(()=>this.setConnected(!0)).catch(()=>{this.setConnected(!1)})},this.pollIntervalMs))}};function GE(n){return n.defaultHeaders.has("x-tunnel-authorization")}function IE(n,r){const o=n.buildApiUrl??n.buildApiurl;if(!o)throw new Error("MeshyClient is missing buildApiUrl");return o.call(n,r)}function XE(){return globalThis.EventSource}function QE(n=50){const[r,o]=g.useState([]),[s,c]=g.useState(!1),u=g.useRef(null),m=g.useRef(0),h=g.useRef(new Map);g.useEffect(()=>{const b=new YE({client:PE});u.current=b;const y=b.subscribe("",T=>{const E=T;o(N=>[E,...N].slice(0,n));for(const[,{pattern:N,callback:C}]of h.current)E.type.startsWith(N)&&C(E)}),S=b.onConnectionChange(c);return b.start(),()=>{y(),S(),b.stop(),u.current=null}},[n]);const v=g.useCallback((b,y)=>{const S=++m.current;return h.current.set(S,{pattern:b,callback:y}),()=>{h.current.delete(S)}},[]),p=g.useCallback(()=>o([]),[]);return{events:r,connected:s,subscribe:v,clearEvents:p}}const KE=1e4,ZE=6e4,FE=KE,WE=250,JE=new Set(["node.joined","node.left","task.created","task.assigned","task.deleted"]),eN=new Set(["task.created","task.assigned","task.status","task.deleted"]);function tN(n){return n?ZE:FE}function nM(n){return JE.has(n)}function nN(n){return eN.has(n)}function aN(n,r){if(!r)return!0;const o=n.leaderId,s=n.term,c=n.nodeCount;return typeof o!="string"&&o!==null||typeof s!="number"||typeof c!="number"?!0:r.leaderId!==o||r.term!==s||r.nodeCount!==c}function rN(n,r,o){if(n==="node.joined"||n==="node.left"||n!=="node.status")return!0;const s=r.nodeId,c=r.status;return typeof s!="string"||typeof c!="string"?!0:o.get(s)!==c}function aM(n,r){const o=r.taskId,s=r.status;if(typeof o!="string"||typeof s!="string")return n;let c=!1;const u=n.map(m=>{if(m.id!==o)return m;c=!0;const h="result"in r?r.result:s==="completed"?null:m.result,v="error"in r?r.error:s==="completed"?null:m.error;return{...m,status:s,result:h,error:v}});return c?u:n}function rM(n,r){const o=r.taskId;if(typeof o!="string")return n;const s=n.filter(c=>c.id!==o);return s.length===n.length?n:s}const H0=g.createContext(null);function oN({children:n}){const[r,o]=g.useState(null),[s,c]=g.useState(null),[u,m]=g.useState(!0),[h,v]=g.useState(null),p=g.useRef(null),b=g.useRef(null),y=g.useRef(new Map),{events:S,connected:T,subscribe:E}=QE(),N=g.useCallback(async()=>{var A;try{const[j,M]=await Promise.all([AE(),CE()]),U=j,H=M.nodeId??M.id,G=U.nodes??[],V=G.find(de=>de.id===H)??{id:H,name:M.name,endpoint:M.endpoint,role:M.role,status:M.status,capabilities:M.capabilities,joinedAt:M.joinedAt,lastHeartbeat:M.lastHeartbeat},$=U.leaderId?G.find(de=>de.id===U.leaderId)??null:null,re={leader:$?{id:$.id,name:$.name,endpoint:$.endpoint,...$.dashboardOrigin?{dashboardOrigin:$.dashboardOrigin}:{}}:null,term:U.term??0,nodes:G,self:V,taskSummary:U.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}};b.current={leaderId:((A=re.leader)==null?void 0:A.id)??null,term:re.term,nodeCount:re.nodes.length},y.current=new Map(re.nodes.map(de=>[de.id,de.status])),y.current.set(re.self.id,re.self.status),o(re),c(M),v(null)}catch(j){v(j instanceof Error?j.message:"Failed to fetch cluster state")}finally{m(!1)}},[]),C=g.useCallback(()=>{p.current===null&&(p.current=window.setTimeout(()=>{p.current=null,N()},WE))},[N]);return DE(N,tN(T)),g.useEffect(()=>()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},[]),g.useEffect(()=>{const A=[E("cluster",j=>{aN(j.data,b.current)&&C()}),E("election",C),E("node",j=>{rN(j.type,j.data,y.current)&&C()}),E("transport",C),E("task",j=>{nN(j.type)&&C()})];return()=>A.forEach(j=>j())},[E,C]),f.jsx(H0.Provider,{value:{cluster:r,systemInfo:s,events:S,sseConnected:T,subscribe:E,refresh:N,loading:u,error:h},children:n})}function $0(){const n=g.useContext(H0);if(!n)throw new Error("useCluster must be used within ClusterProvider");return n}/**
|
|
62
|
+
* @license lucide-react v1.7.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const P0=(...n)=>n.filter((r,o,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===o).join(" ").trim();/**
|
|
67
|
+
* @license lucide-react v1.7.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const lN=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
72
|
+
* @license lucide-react v1.7.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const sN=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,s)=>s?s.toUpperCase():o.toLowerCase());/**
|
|
77
|
+
* @license lucide-react v1.7.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const vv=n=>{const r=sN(n);return r.charAt(0).toUpperCase()+r.slice(1)};/**
|
|
82
|
+
* @license lucide-react v1.7.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/var 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 iN=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},cN=g.createContext({}),uN=()=>g.useContext(cN),dN=g.forwardRef(({color:n,size:r,strokeWidth:o,absoluteStrokeWidth:s,className:c="",children:u,iconNode:m,...h},v)=>{const{size:p=24,strokeWidth:b=2,absoluteStrokeWidth:y=!1,color:S="currentColor",className:T=""}=uN()??{},E=s??y?Number(o??b)*24/Number(r??p):o??b;return g.createElement("svg",{ref:v,...Dd,width:r??p??Dd.width,height:r??p??Dd.height,stroke:n??S,strokeWidth:E,className:P0("lucide",T,c),...!u&&!iN(h)&&{"aria-hidden":"true"},...h},[...m.map(([N,C])=>g.createElement(N,C)),...Array.isArray(u)?u:[u]])});/**
|
|
92
|
+
* @license lucide-react v1.7.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const je=(n,r)=>{const o=g.forwardRef(({className:s,...c},u)=>g.createElement(dN,{ref:u,iconNode:r,className:P0(`lucide-${lN(vv(n))}`,`lucide-${n}`,s),...c}));return o.displayName=vv(n),o};/**
|
|
97
|
+
* @license lucide-react v1.7.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const fN=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],zi=je("activity",fN);/**
|
|
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 mN=[["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"}]],hN=je("book-open",mN);/**
|
|
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 pN=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],q0=je("bot",pN);/**
|
|
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 gN=[["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"}]],vN=je("cable",gN);/**
|
|
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 yN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Li=je("check",yN);/**
|
|
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 bN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Fl=je("chevron-down",bN);/**
|
|
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 xN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],nf=je("chevron-right",xN);/**
|
|
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 SN=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],wN=je("chevron-up",SN);/**
|
|
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 EN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],gi=je("circle-alert",EN);/**
|
|
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 NN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Yl=je("circle-check",NN);/**
|
|
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 TN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],yv=je("circle-dot",TN);/**
|
|
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 CN=[["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"}]],RN=je("circle-x",CN);/**
|
|
157
|
+
* @license lucide-react v1.7.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const AN=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],kN=je("copy",AN);/**
|
|
162
|
+
* @license lucide-react v1.7.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const jN=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],_N=je("cpu",jN);/**
|
|
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 MN=[["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"}]],ON=je("external-link",MN);/**
|
|
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 DN=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],zN=je("folder-tree",DN);/**
|
|
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 LN=[["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"}]],UN=je("folder",LN);/**
|
|
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 BN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],HN=je("info",BN);/**
|
|
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 $N=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],PN=je("loader-circle",$N);/**
|
|
192
|
+
* @license lucide-react v1.7.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const qN=[["path",{d:"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"}]],V0=je("message-square-text",qN);/**
|
|
197
|
+
* @license lucide-react v1.7.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const VN=[["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"}]],YN=je("monitor-cog",VN);/**
|
|
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 GN=[["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"}]],Y0=je("monitor",GN);/**
|
|
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 IN=[["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"}]],G0=je("moon",IN);/**
|
|
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 XN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],QN=je("plus",XN);/**
|
|
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 KN=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],ZN=je("power",KN);/**
|
|
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 FN=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],WN=je("radio",FN);/**
|
|
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 JN=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Ai=je("refresh-cw",JN);/**
|
|
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 eT=[["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"}]],bv=je("rocket",eT);/**
|
|
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 tT=[["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"}]],nT=je("save",tT);/**
|
|
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 aT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],rT=je("search",aT);/**
|
|
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 oT=[["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"}]],I0=je("server",oT);/**
|
|
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 lT=[["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"}]],sT=je("settings",lT);/**
|
|
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 iT=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],cT=je("shield",iT);/**
|
|
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 uT=[["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"}]],dT=je("sparkles",uT);/**
|
|
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 fT=[["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"}]],X0=je("sun",fT);/**
|
|
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 mT=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Q0=je("terminal",mT);/**
|
|
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 hT=[["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"}]],pT=je("trash-2",hT);/**
|
|
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 gT=[["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"}]],vT=je("wifi-off",gT);/**
|
|
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 yT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],K0=je("x",yT);function Z0(n){var r,o,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(r=0;r<c;r++)n[r]&&(o=Z0(n[r]))&&(s&&(s+=" "),s+=o)}else for(o in n)n[o]&&(s&&(s+=" "),s+=o);return s}function F0(){for(var n,r,o=0,s="",c=arguments.length;o<c;o++)(n=arguments[o])&&(r=Z0(n))&&(s&&(s+=" "),s+=r);return s}const bT=(n,r)=>{const o=new Array(n.length+r.length);for(let s=0;s<n.length;s++)o[s]=n[s];for(let s=0;s<r.length;s++)o[n.length+s]=r[s];return o},xT=(n,r)=>({classGroupId:n,validator:r}),W0=(n=new Map,r=null,o)=>({nextPart:n,validators:r,classGroupId:o}),Ui="-",xv=[],ST="arbitrary..",wT=n=>{const r=NT(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return ET(m);const h=m.split(Ui),v=h[0]===""&&h.length>1?1:0;return J0(h,v,r)},getConflictingClassGroupIds:(m,h)=>{if(h){const v=s[m],p=o[m];return v?p?bT(p,v):v:p||xv}return o[m]||xv}}},J0=(n,r,o)=>{if(n.length-r===0)return o.classGroupId;const c=n[r],u=o.nextPart.get(c);if(u){const p=J0(n,r+1,u);if(p)return p}const m=o.validators;if(m===null)return;const h=r===0?n.join(Ui):n.slice(r).join(Ui),v=m.length;for(let p=0;p<v;p++){const b=m[p];if(b.validator(h))return b.classGroupId}},ET=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=n.slice(1,-1),o=r.indexOf(":"),s=r.slice(0,o);return s?ST+s:void 0})(),NT=n=>{const{theme:r,classGroups:o}=n;return TT(o,r)},TT=(n,r)=>{const o=W0();for(const s in n){const c=n[s];Of(c,o,s,r)}return o},Of=(n,r,o,s)=>{const c=n.length;for(let u=0;u<c;u++){const m=n[u];CT(m,r,o,s)}},CT=(n,r,o,s)=>{if(typeof n=="string"){RT(n,r,o);return}if(typeof n=="function"){AT(n,r,o,s);return}kT(n,r,o,s)},RT=(n,r,o)=>{const s=n===""?r:ey(r,n);s.classGroupId=o},AT=(n,r,o,s)=>{if(jT(n)){Of(n(s),r,o,s);return}r.validators===null&&(r.validators=[]),r.validators.push(xT(o,n))},kT=(n,r,o,s)=>{const c=Object.entries(n),u=c.length;for(let m=0;m<u;m++){const[h,v]=c[m];Of(v,ey(r,h),o,s)}},ey=(n,r)=>{let o=n;const s=r.split(Ui),c=s.length;for(let u=0;u<c;u++){const m=s[u];let h=o.nextPart.get(m);h||(h=W0(),o.nextPart.set(m,h)),o=h}return o},jT=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,_T=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),s=Object.create(null);const c=(u,m)=>{o[u]=m,r++,r>n&&(r=0,s=o,o=Object.create(null))};return{get(u){let m=o[u];if(m!==void 0)return m;if((m=s[u])!==void 0)return c(u,m),m},set(u,m){u in o?o[u]=m:c(u,m)}}},af="!",Sv=":",MT=[],wv=(n,r,o,s,c)=>({modifiers:n,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:s,isExternal:c}),OT=n=>{const{prefix:r,experimentalParseClassName:o}=n;let s=c=>{const u=[];let m=0,h=0,v=0,p;const b=c.length;for(let N=0;N<b;N++){const C=c[N];if(m===0&&h===0){if(C===Sv){u.push(c.slice(v,N)),v=N+1;continue}if(C==="/"){p=N;continue}}C==="["?m++:C==="]"?m--:C==="("?h++:C===")"&&h--}const y=u.length===0?c:c.slice(v);let S=y,T=!1;y.endsWith(af)?(S=y.slice(0,-1),T=!0):y.startsWith(af)&&(S=y.slice(1),T=!0);const E=p&&p>v?p-v:void 0;return wv(u,T,S,E)};if(r){const c=r+Sv,u=s;s=m=>m.startsWith(c)?u(m.slice(c.length)):wv(MT,!1,m,void 0,!0)}if(o){const c=s;s=u=>o({className:u,parseClassName:c})}return s},DT=n=>{const r=new Map;return n.orderSensitiveModifiers.forEach((o,s)=>{r.set(o,1e6+s)}),o=>{const s=[];let c=[];for(let u=0;u<o.length;u++){const m=o[u],h=m[0]==="[",v=r.has(m);h||v?(c.length>0&&(c.sort(),s.push(...c),c=[]),s.push(m)):c.push(m)}return c.length>0&&(c.sort(),s.push(...c)),s}},zT=n=>({cache:_T(n.cacheSize),parseClassName:OT(n),sortModifiers:DT(n),...wT(n)}),LT=/\s+/,UT=(n,r)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:c,sortModifiers:u}=r,m=[],h=n.trim().split(LT);let v="";for(let p=h.length-1;p>=0;p-=1){const b=h[p],{isExternal:y,modifiers:S,hasImportantModifier:T,baseClassName:E,maybePostfixModifierPosition:N}=o(b);if(y){v=b+(v.length>0?" "+v:v);continue}let C=!!N,A=s(C?E.substring(0,N):E);if(!A){if(!C){v=b+(v.length>0?" "+v:v);continue}if(A=s(E),!A){v=b+(v.length>0?" "+v:v);continue}C=!1}const j=S.length===0?"":S.length===1?S[0]:u(S).join(":"),M=T?j+af:j,U=M+A;if(m.indexOf(U)>-1)continue;m.push(U);const H=c(A,C);for(let G=0;G<H.length;++G){const V=H[G];m.push(M+V)}v=b+(v.length>0?" "+v:v)}return v},BT=(...n)=>{let r=0,o,s,c="";for(;r<n.length;)(o=n[r++])&&(s=ty(o))&&(c&&(c+=" "),c+=s);return c},ty=n=>{if(typeof n=="string")return n;let r,o="";for(let s=0;s<n.length;s++)n[s]&&(r=ty(n[s]))&&(o&&(o+=" "),o+=r);return o},HT=(n,...r)=>{let o,s,c,u;const m=v=>{const p=r.reduce((b,y)=>y(b),n());return o=zT(p),s=o.cache.get,c=o.cache.set,u=h,h(v)},h=v=>{const p=s(v);if(p)return p;const b=UT(v,o);return c(v,b),b};return u=m,(...v)=>u(BT(...v))},$T=[],Et=n=>{const r=o=>o[n]||$T;return r.isThemeGetter=!0,r},ny=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ay=/^\((?:(\w[\w-]*):)?(.+)\)$/i,PT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,qT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,VT=/\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$/,YT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,GT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,IT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ga=n=>PT.test(n),ke=n=>!!n&&!Number.isNaN(Number(n)),Ia=n=>!!n&&Number.isInteger(Number(n)),zd=n=>n.endsWith("%")&&ke(n.slice(0,-1)),ma=n=>qT.test(n),ry=()=>!0,XT=n=>VT.test(n)&&!YT.test(n),Df=()=>!1,QT=n=>GT.test(n),KT=n=>IT.test(n),ZT=n=>!pe(n)&&!ge(n),FT=n=>Ja(n,sy,Df),pe=n=>ny.test(n),Sr=n=>Ja(n,iy,XT),Ev=n=>Ja(n,oC,ke),WT=n=>Ja(n,uy,ry),JT=n=>Ja(n,cy,Df),Nv=n=>Ja(n,oy,Df),eC=n=>Ja(n,ly,KT),vi=n=>Ja(n,dy,QT),ge=n=>ay.test(n),Hl=n=>jr(n,iy),tC=n=>jr(n,cy),Tv=n=>jr(n,oy),nC=n=>jr(n,sy),aC=n=>jr(n,ly),yi=n=>jr(n,dy,!0),rC=n=>jr(n,uy,!0),Ja=(n,r,o)=>{const s=ny.exec(n);return s?s[1]?r(s[1]):o(s[2]):!1},jr=(n,r,o=!1)=>{const s=ay.exec(n);return s?s[1]?r(s[1]):o:!1},oy=n=>n==="position"||n==="percentage",ly=n=>n==="image"||n==="url",sy=n=>n==="length"||n==="size"||n==="bg-size",iy=n=>n==="length",oC=n=>n==="number",cy=n=>n==="family-name",uy=n=>n==="number"||n==="weight",dy=n=>n==="shadow",lC=()=>{const n=Et("color"),r=Et("font"),o=Et("text"),s=Et("font-weight"),c=Et("tracking"),u=Et("leading"),m=Et("breakpoint"),h=Et("container"),v=Et("spacing"),p=Et("radius"),b=Et("shadow"),y=Et("inset-shadow"),S=Et("text-shadow"),T=Et("drop-shadow"),E=Et("blur"),N=Et("perspective"),C=Et("aspect"),A=Et("ease"),j=Et("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],H=()=>[...U(),ge,pe],G=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],$=()=>[ge,pe,v],re=()=>[Ga,"full","auto",...$()],de=()=>[Ia,"none","subgrid",ge,pe],fe=()=>["auto",{span:["full",Ia,ge,pe]},Ia,ge,pe],F=()=>[Ia,"auto",ge,pe],te=()=>["auto","min","max","fr",ge,pe],ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...$()],q=()=>[Ga,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],K=()=>[Ga,"screen","full","dvw","lvw","svw","min","max","fit",...$()],me=()=>[Ga,"screen","full","lh","dvh","lvh","svh","min","max","fit",...$()],R=()=>[n,ge,pe],Y=()=>[...U(),Tv,Nv,{position:[ge,pe]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",nC,FT,{size:[ge,pe]}],ne=()=>[zd,Hl,Sr],W=()=>["","none","full",p,ge,pe],ee=()=>["",ke,Hl,Sr],ue=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>[ke,zd,Tv,Nv],be=()=>["","none",E,ge,pe],ve=()=>["none",ke,ge,pe],xe=()=>["none",ke,ge,pe],Ue=()=>[ke,ge,pe],Ve=()=>[Ga,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ma],breakpoint:[ma],color:[ry],container:[ma],"drop-shadow":[ma],ease:["in","out","in-out"],font:[ZT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ma],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ma],shadow:[ma],spacing:["px",ke],text:[ma],"text-shadow":[ma],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ga,pe,ge,C]}],container:["container"],columns:[{columns:[ke,pe,ge,h]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:H()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:re()}],"inset-x":[{"inset-x":re()}],"inset-y":[{"inset-y":re()}],start:[{"inset-s":re(),start:re()}],end:[{"inset-e":re(),end:re()}],"inset-bs":[{"inset-bs":re()}],"inset-be":[{"inset-be":re()}],top:[{top:re()}],right:[{right:re()}],bottom:[{bottom:re()}],left:[{left:re()}],visibility:["visible","invisible","collapse"],z:[{z:[Ia,"auto",ge,pe]}],basis:[{basis:[Ga,"full","auto",h,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,Ga,"auto","initial","none",pe]}],grow:[{grow:["",ke,ge,pe]}],shrink:[{shrink:["",ke,ge,pe]}],order:[{order:[Ia,"first","last","none",ge,pe]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...ce(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...ce()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":ce()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pbs:[{pbs:$()}],pbe:[{pbe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...K()]}],"min-inline-size":[{"min-inline":["auto",...K()]}],"max-inline-size":[{"max-inline":["none",...K()]}],"block-size":[{block:["auto",...me()]}],"min-block-size":[{"min-block":["auto",...me()]}],"max-block-size":[{"max-block":["none",...me()]}],w:[{w:[h,"screen",...q()]}],"min-w":[{"min-w":[h,"screen","none",...q()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[m]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",o,Hl,Sr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,rC,WT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zd,pe]}],"font-family":[{font:[tC,JT,r]}],"font-features":[{"font-features":[pe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,ge,pe]}],"line-clamp":[{"line-clamp":[ke,"none",ge,Ev]}],leading:[{leading:[u,...$()]}],"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:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",ge,Sr]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[ke,"auto",ge,pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"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:Y()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ia,ge,pe],radial:["",ge,pe],conic:[Ia,ge,pe]},aC,eC]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-bs":[{"border-bs":ee()}],"border-w-be":[{"border-be":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-bs":[{"border-bs":R()}],"border-color-be":[{"border-be":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,ge,pe]}],"outline-w":[{outline:["",ke,Hl,Sr]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",b,yi,vi]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",y,yi,vi]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[ke,Sr]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",S,yi,vi]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[ke,ge,pe]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[ge,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":U()}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Y()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,pe]}],filter:[{filter:["","none",ge,pe]}],blur:[{blur:be()}],brightness:[{brightness:[ke,ge,pe]}],contrast:[{contrast:[ke,ge,pe]}],"drop-shadow":[{"drop-shadow":["","none",T,yi,vi]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",ke,ge,pe]}],"hue-rotate":[{"hue-rotate":[ke,ge,pe]}],invert:[{invert:["",ke,ge,pe]}],saturate:[{saturate:[ke,ge,pe]}],sepia:[{sepia:["",ke,ge,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,pe]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[ke,ge,pe]}],"backdrop-contrast":[{"backdrop-contrast":[ke,ge,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,ge,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,ge,pe]}],"backdrop-invert":[{"backdrop-invert":["",ke,ge,pe]}],"backdrop-opacity":[{"backdrop-opacity":[ke,ge,pe]}],"backdrop-saturate":[{"backdrop-saturate":[ke,ge,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,ge,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ke,"initial",ge,pe]}],ease:[{ease:["linear","initial",A,ge,pe]}],delay:[{delay:[ke,ge,pe]}],animate:[{animate:["none",j,ge,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,ge,pe]}],"perspective-origin":[{"perspective-origin":H()}],rotate:[{rotate:ve()}],"rotate-x":[{"rotate-x":ve()}],"rotate-y":[{"rotate-y":ve()}],"rotate-z":[{"rotate-z":ve()}],scale:[{scale:xe()}],"scale-x":[{"scale-x":xe()}],"scale-y":[{"scale-y":xe()}],"scale-z":[{"scale-z":xe()}],"scale-3d":["scale-3d"],skew:[{skew:Ue()}],"skew-x":[{"skew-x":Ue()}],"skew-y":[{"skew-y":Ue()}],transform:[{transform:[ge,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:H()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ve()}],"translate-x":[{"translate-x":Ve()}],"translate-y":[{"translate-y":Ve()}],"translate-z":[{"translate-z":Ve()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mbs":[{"scroll-mbs":$()}],"scroll-mbe":[{"scroll-mbe":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pbs":[{"scroll-pbs":$()}],"scroll-pbe":[{"scroll-pbe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge,pe]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[ke,Hl,Sr,Ev]}],stroke:[{stroke:["none",...R()]}],"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"]}},sC=HT(lC);function le(...n){return sC(F0(n))}function iC(n){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}const cC=n=>{switch(n){case"success":return fC;case"info":return hC;case"warning":return mC;case"error":return pC;default:return null}},uC=Array(12).fill(0),dC=({visible:n,className:r})=>oe.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},oe.createElement("div",{className:"sonner-spinner"},uC.map((o,s)=>oe.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),fC=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),mC=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},oe.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),hC=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),pC=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),gC=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},oe.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),oe.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),vC=()=>{const[n,r]=oe.useState(document.hidden);return oe.useEffect(()=>{const o=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),n};let rf=1;class yC{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{const o=this.subscribers.indexOf(r);this.subscribers.splice(o,1)}),this.publish=r=>{this.subscribers.forEach(o=>o(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var o;const{message:s,...c}=r,u=typeof(r==null?void 0:r.id)=="number"||((o=r.id)==null?void 0:o.length)>0?r.id:rf++,m=this.toasts.find(v=>v.id===u),h=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),m?this.toasts=this.toasts.map(v=>v.id===u?(this.publish({...v,...r,id:u,title:s}),{...v,...r,id:u,dismissible:h,title:s}):v):this.addToast({title:s,...c,dismissible:h,id:u}),u},this.dismiss=r=>(r?(this.dismissedToasts.add(r),requestAnimationFrame(()=>this.subscribers.forEach(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],oe.isValidElement(p))u=!1,this.create({id:s,type:"default",message:p});else if(xC(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,E=typeof y=="object"&&!oe.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:S,...E})}else if(p instanceof Error){u=!1;const y=typeof o.error=="function"?await o.error(p):o.error,S=typeof o.description=="function"?await o.description(p):o.description,E=typeof y=="object"&&!oe.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:S,...E})}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,E=typeof y=="object"&&!oe.isValidElement(y)?y:{message:y};this.create({id:s,type:"success",description:S,...E})}}).catch(async p=>{if(m=["reject",p],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,T=typeof b=="object"&&!oe.isValidElement(b)?b:{message:b};this.create({id:s,type:"error",description:y,...T})}}).finally(()=>{u&&(this.dismiss(s),s=void 0),o.finally==null||o.finally.call(o)}),v=()=>new Promise((p,b)=>h.then(()=>m[0]==="reject"?b(m[1]):p(m[1])).catch(b));return typeof s!="string"&&typeof s!="number"?{unwrap:v}:Object.assign(s,{unwrap:v})},this.custom=(r,o)=>{const s=(o==null?void 0:o.id)||rf++;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 Kt=new yC,bC=(n,r)=>{const o=(r==null?void 0:r.id)||rf++;return Kt.addToast({title:n,...r,id:o}),o},xC=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",SC=bC,wC=()=>Kt.toasts,EC=()=>Kt.getActiveToasts(),He=Object.assign(SC,{success:Kt.success,info:Kt.info,warning:Kt.warning,error:Kt.error,custom:Kt.custom,message:Kt.message,promise:Kt.promise,dismiss:Kt.dismiss,loading:Kt.loading},{getHistory:wC,getToasts:EC});iC("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function bi(n){return n.label!==void 0}const NC=3,TC="24px",CC="16px",Cv=4e3,RC=356,AC=14,kC=45,jC=200;function Ln(...n){return n.filter(Boolean).join(" ")}function _C(n){const[r,o]=n.split("-"),s=[];return r&&s.push(r),o&&s.push(o),s}const MC=n=>{var r,o,s,c,u,m,h,v,p;const{invert:b,toast:y,unstyled:S,interacting:T,setHeights:E,visibleToasts:N,heights:C,index:A,toasts:j,expanded:M,removeToast:U,defaultRichColors:H,closeButton:G,style:V,cancelButtonStyle:$,actionButtonStyle:re,className:de="",descriptionClassName:fe="",duration:F,position:te,gap:ce,expandByDefault:J,classNames:_,icons:q,closeButtonAriaLabel:K="Close toast"}=n,[me,R]=oe.useState(null),[Y,se]=oe.useState(null),[X,ne]=oe.useState(!1),[W,ee]=oe.useState(!1),[ue,ie]=oe.useState(!1),[ae,be]=oe.useState(!1),[ve,xe]=oe.useState(!1),[Ue,Ve]=oe.useState(0),[$e,bt]=oe.useState(0),Pe=oe.useRef(y.duration||F||Cv),Ht=oe.useRef(null),at=oe.useRef(null),_r=A===0,Qn=A+1<=N,ft=y.type,xn=y.dismissible!==!1,Mr=y.className||"",ba=y.descriptionClassName||"",Zt=oe.useMemo(()=>C.findIndex(Ne=>Ne.toastId===y.id)||0,[C,y.id]),jt=oe.useMemo(()=>{var Ne;return(Ne=y.closeButton)!=null?Ne:G},[y.closeButton,G]),qt=oe.useMemo(()=>y.duration||F||Cv,[y.duration,F]),nt=oe.useRef(0),kn=oe.useRef(0),Or=oe.useRef(0),jn=oe.useRef(null),[xa,Sa]=te.split("-"),cn=oe.useMemo(()=>C.reduce((Ne,lt,st)=>st>=Zt?Ne:Ne+lt.height,0),[C,Zt]),Kn=vC(),Zn=y.invert||b,wa=ft==="loading";kn.current=oe.useMemo(()=>Zt*ce+cn,[Zt,cn]),oe.useEffect(()=>{Pe.current=qt},[qt]),oe.useEffect(()=>{ne(!0)},[]),oe.useEffect(()=>{const Ne=at.current;if(Ne){const lt=Ne.getBoundingClientRect().height;return bt(lt),E(st=>[{toastId:y.id,height:lt,position:y.position},...st]),()=>E(st=>st.filter(Mt=>Mt.toastId!==y.id))}},[E,y.id]),oe.useLayoutEffect(()=>{if(!X)return;const Ne=at.current,lt=Ne.style.height;Ne.style.height="auto";const st=Ne.getBoundingClientRect().height;Ne.style.height=lt,bt(st),E(Mt=>Mt.find(xt=>xt.toastId===y.id)?Mt.map(xt=>xt.toastId===y.id?{...xt,height:st}:xt):[{toastId:y.id,height:st,position:y.position},...Mt])},[X,y.title,y.description,E,y.id,y.jsx,y.action,y.cancel]);const Vt=oe.useCallback(()=>{ee(!0),Ve(kn.current),E(Ne=>Ne.filter(lt=>lt.toastId!==y.id)),setTimeout(()=>{U(y)},jC)},[y,U,E,kn]);oe.useEffect(()=>{if(y.promise&&ft==="loading"||y.duration===1/0||y.type==="loading")return;let Ne;return M||T||Kn?(()=>{if(Or.current<nt.current){const Mt=new Date().getTime()-nt.current;Pe.current=Pe.current-Mt}Or.current=new Date().getTime()})():(()=>{Pe.current!==1/0&&(nt.current=new Date().getTime(),Ne=setTimeout(()=>{y.onAutoClose==null||y.onAutoClose.call(y,y),Vt()},Pe.current))})(),()=>clearTimeout(Ne)},[M,T,y,ft,Kn,Vt]),oe.useEffect(()=>{y.delete&&(Vt(),y.onDismiss==null||y.onDismiss.call(y,y))},[Vt,y.delete]);function we(){var Ne;if(q!=null&&q.loading){var lt;return oe.createElement("div",{className:Ln(_==null?void 0:_.loader,y==null||(lt=y.classNames)==null?void 0:lt.loader,"sonner-loader"),"data-visible":ft==="loading"},q.loading)}return oe.createElement(dC,{className:Ln(_==null?void 0:_.loader,y==null||(Ne=y.classNames)==null?void 0:Ne.loader),visible:ft==="loading"})}const Ze=y.icon||(q==null?void 0:q[ft])||cC(ft);var Ye,_t;return oe.createElement("li",{tabIndex:0,ref:at,className:Ln(de,Mr,_==null?void 0:_.toast,y==null||(r=y.classNames)==null?void 0:r.toast,_==null?void 0:_.default,_==null?void 0:_[ft],y==null||(o=y.classNames)==null?void 0:o[ft]),"data-sonner-toast":"","data-rich-colors":(Ye=y.richColors)!=null?Ye:H,"data-styled":!(y.jsx||y.unstyled||S),"data-mounted":X,"data-promise":!!y.promise,"data-swiped":ve,"data-removed":W,"data-visible":Qn,"data-y-position":xa,"data-x-position":Sa,"data-index":A,"data-front":_r,"data-swiping":ue,"data-dismissible":xn,"data-type":ft,"data-invert":Zn,"data-swipe-out":ae,"data-swipe-direction":Y,"data-expanded":!!(M||J&&X),"data-testid":y.testId,style:{"--index":A,"--toasts-before":A,"--z-index":j.length-A,"--offset":`${W?Ue:kn.current}px`,"--initial-height":J?"auto":`${$e}px`,...V,...y.style},onDragEnd:()=>{ie(!1),R(null),jn.current=null},onPointerDown:Ne=>{Ne.button!==2&&(wa||!xn||(Ht.current=new Date,Ve(kn.current),Ne.target.setPointerCapture(Ne.pointerId),Ne.target.tagName!=="BUTTON"&&(ie(!0),jn.current={x:Ne.clientX,y:Ne.clientY})))},onPointerUp:()=>{var Ne,lt,st;if(ae||!xn)return;jn.current=null;const Mt=Number(((Ne=at.current)==null?void 0:Ne.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ar=Number(((lt=at.current)==null?void 0:lt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),xt=new Date().getTime()-((st=Ht.current)==null?void 0:st.getTime()),mt=me==="x"?Mt:ar,ht=Math.abs(mt)/xt;if(Math.abs(mt)>=kC||ht>.11){Ve(kn.current),y.onDismiss==null||y.onDismiss.call(y,y),se(me==="x"?Mt>0?"right":"left":ar>0?"down":"up"),Vt(),be(!0);return}else{var We,Tt;(We=at.current)==null||We.style.setProperty("--swipe-amount-x","0px"),(Tt=at.current)==null||Tt.style.setProperty("--swipe-amount-y","0px")}xe(!1),ie(!1),R(null)},onPointerMove:Ne=>{var lt,st,Mt;if(!jn.current||!xn||((lt=window.getSelection())==null?void 0:lt.toString().length)>0)return;const xt=Ne.clientY-jn.current.y,mt=Ne.clientX-jn.current.x;var ht;const We=(ht=n.swipeDirections)!=null?ht:_C(te);!me&&(Math.abs(mt)>1||Math.abs(xt)>1)&&R(Math.abs(mt)>Math.abs(xt)?"x":"y");let Tt={x:0,y:0};const Dr=Fn=>1/(1.5+Math.abs(Fn)/20);if(me==="y"){if(We.includes("top")||We.includes("bottom"))if(We.includes("top")&&xt<0||We.includes("bottom")&&xt>0)Tt.y=xt;else{const Fn=xt*Dr(xt);Tt.y=Math.abs(Fn)<Math.abs(xt)?Fn:xt}}else if(me==="x"&&(We.includes("left")||We.includes("right")))if(We.includes("left")&&mt<0||We.includes("right")&&mt>0)Tt.x=mt;else{const Fn=mt*Dr(mt);Tt.x=Math.abs(Fn)<Math.abs(mt)?Fn:mt}(Math.abs(Tt.x)>0||Math.abs(Tt.y)>0)&&xe(!0),(st=at.current)==null||st.style.setProperty("--swipe-amount-x",`${Tt.x}px`),(Mt=at.current)==null||Mt.style.setProperty("--swipe-amount-y",`${Tt.y}px`)}},jt&&!y.jsx&&ft!=="loading"?oe.createElement("button",{"aria-label":K,"data-disabled":wa,"data-close-button":!0,onClick:wa||!xn?()=>{}:()=>{Vt(),y.onDismiss==null||y.onDismiss.call(y,y)},className:Ln(_==null?void 0:_.closeButton,y==null||(s=y.classNames)==null?void 0:s.closeButton)},(_t=q==null?void 0:q.close)!=null?_t:gC):null,(ft||y.icon||y.promise)&&y.icon!==null&&((q==null?void 0:q[ft])!==null||y.icon)?oe.createElement("div",{"data-icon":"",className:Ln(_==null?void 0:_.icon,y==null||(c=y.classNames)==null?void 0:c.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||we():null,y.type!=="loading"?Ze:null):null,oe.createElement("div",{"data-content":"",className:Ln(_==null?void 0:_.content,y==null||(u=y.classNames)==null?void 0:u.content)},oe.createElement("div",{"data-title":"",className:Ln(_==null?void 0:_.title,y==null||(m=y.classNames)==null?void 0:m.title)},y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title),y.description?oe.createElement("div",{"data-description":"",className:Ln(fe,ba,_==null?void 0:_.description,y==null||(h=y.classNames)==null?void 0:h.description)},typeof y.description=="function"?y.description():y.description):null),oe.isValidElement(y.cancel)?y.cancel:y.cancel&&bi(y.cancel)?oe.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||$,onClick:Ne=>{bi(y.cancel)&&xn&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,Ne),Vt())},className:Ln(_==null?void 0:_.cancelButton,y==null||(v=y.classNames)==null?void 0:v.cancelButton)},y.cancel.label):null,oe.isValidElement(y.action)?y.action:y.action&&bi(y.action)?oe.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||re,onClick:Ne=>{bi(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,Ne),!Ne.defaultPrevented&&Vt())},className:Ln(_==null?void 0:_.actionButton,y==null||(p=y.classNames)==null?void 0:p.actionButton)},y.action.label):null)};function Rv(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function OC(n,r){const o={};return[n,r].forEach((s,c)=>{const u=c===1,m=u?"--mobile-offset":"--offset",h=u?CC:TC;function v(p){["top","right","bottom","left"].forEach(b=>{o[`${m}-${b}`]=typeof p=="number"?`${p}px`:p})}typeof s=="number"||typeof s=="string"?v(s):typeof s=="object"?["top","right","bottom","left"].forEach(p=>{s[p]===void 0?o[`${m}-${p}`]=h:o[`${m}-${p}`]=typeof s[p]=="number"?`${s[p]}px`:s[p]}):v(h)}),o}const DC=oe.forwardRef(function(r,o){const{id:s,invert:c,position:u="bottom-right",hotkey:m=["altKey","KeyT"],expand:h,closeButton:v,className:p,offset:b,mobileOffset:y,theme:S="light",richColors:T,duration:E,style:N,visibleToasts:C=NC,toastOptions:A,dir:j=Rv(),gap:M=AC,icons:U,containerAriaLabel:H="Notifications"}=r,[G,V]=oe.useState([]),$=oe.useMemo(()=>s?G.filter(X=>X.toasterId===s):G.filter(X=>!X.toasterId),[G,s]),re=oe.useMemo(()=>Array.from(new Set([u].concat($.filter(X=>X.position).map(X=>X.position)))),[$,u]),[de,fe]=oe.useState([]),[F,te]=oe.useState(!1),[ce,J]=oe.useState(!1),[_,q]=oe.useState(S!=="system"?S:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=oe.useRef(null),me=m.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=oe.useRef(null),Y=oe.useRef(!1),se=oe.useCallback(X=>{V(ne=>{var W;return(W=ne.find(ee=>ee.id===X.id))!=null&&W.delete||Kt.dismiss(X.id),ne.filter(({id:ee})=>ee!==X.id)})},[]);return oe.useEffect(()=>Kt.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{V(ne=>ne.map(W=>W.id===X.id?{...W,delete:!0}:W))});return}setTimeout(()=>{L0.flushSync(()=>{V(ne=>{const W=ne.findIndex(ee=>ee.id===X.id);return W!==-1?[...ne.slice(0,W),{...ne[W],...X},...ne.slice(W+1)]:[X,...ne]})})})}),[G]),oe.useEffect(()=>{if(S!=="system"){q(S);return}if(S==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?q("dark"):q("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:ne})=>{q(ne?"dark":"light")})}catch{X.addListener(({matches:W})=>{try{q(W?"dark":"light")}catch(ee){console.error(ee)}})}},[S]),oe.useEffect(()=>{G.length<=1&&te(!1)},[G]),oe.useEffect(()=>{const X=ne=>{var W;if(m.every(ie=>ne[ie]||ne.code===ie)){var ue;te(!0),(ue=K.current)==null||ue.focus()}ne.code==="Escape"&&(document.activeElement===K.current||(W=K.current)!=null&&W.contains(document.activeElement))&&te(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[m]),oe.useEffect(()=>{if(K.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,Y.current=!1)}},[K.current]),oe.createElement("section",{ref:o,"aria-label":`${H} ${me}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},re.map((X,ne)=>{var W;const[ee,ue]=X.split("-");return $.length?oe.createElement("ol",{key:X,dir:j==="auto"?Rv():j,tabIndex:-1,ref:K,className:p,"data-sonner-toaster":!0,"data-sonner-theme":_,"data-y-position":ee,"data-x-position":ue,style:{"--front-toast-height":`${((W=de[0])==null?void 0:W.height)||0}px`,"--width":`${RC}px`,"--gap":`${M}px`,...N,...OC(b,y)},onBlur:ie=>{Y.current&&!ie.currentTarget.contains(ie.relatedTarget)&&(Y.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||Y.current||(Y.current=!0,R.current=ie.relatedTarget)},onMouseEnter:()=>te(!0),onMouseMove:()=>te(!0),onMouseLeave:()=>{ce||te(!1)},onDragEnd:()=>te(!1),onPointerDown:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},$.filter(ie=>!ie.position&&ne===0||ie.position===X).map((ie,ae)=>{var be,ve;return oe.createElement(MC,{key:ie.id,icons:U,index:ae,toast:ie,defaultRichColors:T,duration:(be=A==null?void 0:A.duration)!=null?be:E,className:A==null?void 0:A.className,descriptionClassName:A==null?void 0:A.descriptionClassName,invert:c,visibleToasts:C,closeButton:(ve=A==null?void 0:A.closeButton)!=null?ve:v,interacting:ce,position:X,style:A==null?void 0:A.style,unstyled:A==null?void 0:A.unstyled,classNames:A==null?void 0:A.classNames,cancelButtonStyle:A==null?void 0:A.cancelButtonStyle,actionButtonStyle:A==null?void 0:A.actionButtonStyle,closeButtonAriaLabel:A==null?void 0:A.closeButtonAriaLabel,removeToast:se,toasts:$.filter(xe=>xe.position==ie.position),heights:de.filter(xe=>xe.position==ie.position),setHeights:fe,expandByDefault:h,gap:M,expanded:F,swipeDirections:r.swipeDirections})})):null}))}),Av=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,kv=F0,fy=(n,r)=>o=>{var s;if((r==null?void 0:r.variants)==null)return kv(n,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:c,defaultVariants:u}=r,m=Object.keys(c).map(p=>{const b=o==null?void 0:o[p],y=u==null?void 0:u[p];if(b===null)return null;const S=Av(b)||Av(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},{}),v=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((p,b)=>{let{class:y,className:S,...T}=b;return Object.entries(T).every(E=>{let[N,C]=E;return Array.isArray(C)?C.includes({...u,...h}[N]):{...u,...h}[N]===C})?[...p,y,S]:p},[]);return kv(n,m,v,o==null?void 0:o.class,o==null?void 0:o.className)},zC=fy("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 Nt({className:n,variant:r,...o}){return f.jsx("div",{className:le(zC({variant:r}),n),...o})}const Un=g.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:le("rounded-sm border border-border/70 bg-card/80 text-card-foreground shadow-none",n),...r}));Un.displayName="Card";const Bn=g.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:le("flex flex-col space-y-1 p-3",n),...r}));Bn.displayName="CardHeader";const Hn=g.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:le("text-[12px] font-semibold leading-none tracking-tight",n),...r}));Hn.displayName="CardTitle";const $n=g.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:le("text-[10px] text-muted-foreground",n),...r}));$n.displayName="CardDescription";const Pn=g.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:le("p-3 pt-0",n),...r}));Pn.displayName="CardContent";const LC=g.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:le("flex items-center p-3 pt-0",n),...r}));LC.displayName="CardFooter";function jv(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function zf(...n){return r=>{let o=!1;const s=n.map(c=>{const u=jv(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():jv(n[c],null)}}}}function tt(...n){return g.useCallback(zf(...n),n)}var UC=Symbol.for("react.lazy"),Bi=Tf[" use ".trim().toString()];function BC(n){return typeof n=="object"&&n!==null&&"then"in n}function my(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===UC&&"_payload"in n&&BC(n._payload)}function HC(n){const r=PC(n),o=g.forwardRef((s,c)=>{let{children:u,...m}=s;my(u)&&typeof Bi=="function"&&(u=Bi(u._payload));const h=g.Children.toArray(u),v=h.find(VC);if(v){const p=v.props.children,b=h.map(y=>y===v?g.Children.count(p)>1?g.Children.only(null):g.isValidElement(p)?p.props.children:null:y);return f.jsx(r,{...m,ref:c,children:g.isValidElement(p)?g.cloneElement(p,void 0,b):null})}return f.jsx(r,{...m,ref:c,children:u})});return o.displayName=`${n}.Slot`,o}var $C=HC("Slot");function PC(n){const r=g.forwardRef((o,s)=>{let{children:c,...u}=o;if(my(c)&&typeof Bi=="function"&&(c=Bi(c._payload)),g.isValidElement(c)){const m=GC(c),h=YC(u,c.props);return c.type!==g.Fragment&&(h.ref=s?zf(s,m):m),g.cloneElement(c,h)}return g.Children.count(c)>1?g.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var qC=Symbol("radix.slottable");function VC(n){return g.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===qC}function YC(n,r){const o={...r};for(const s in r){const c=n[s],u=r[s];/^on[A-Z]/.test(s)?c&&u?o[s]=(...h)=>{const v=u(...h);return c(...h),v}:c&&(o[s]=c):s==="style"?o[s]={...c,...u}:s==="className"&&(o[s]=[c,u].filter(Boolean).join(" "))}return{...n,...o}}function GC(n){var s,c;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}const Lf=fy("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-sm text-[11px] font-semibold transition-all duration-200 ease-out hover:-translate-y-px focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 active:translate-y-0 active:scale-[0.985] disabled:pointer-events-none disabled:translate-y-0 disabled:scale-100 disabled:opacity-50 disabled:shadow-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"border border-primary/15 bg-primary text-primary-foreground shadow-[0_14px_34px_-20px_hsl(var(--primary)/0.9)] hover:bg-primary/90 hover:shadow-[0_18px_42px_-22px_hsl(var(--primary)/0.95)]",destructive:"border border-destructive/15 bg-destructive text-destructive-foreground shadow-[0_14px_34px_-20px_hsl(var(--destructive)/0.8)] hover:bg-destructive/90",outline:"border border-input/80 bg-background/72 shadow-sm backdrop-blur hover:border-primary/35 hover:bg-accent/70 hover:text-accent-foreground",secondary:"border border-transparent bg-secondary/88 text-secondary-foreground shadow-sm hover:bg-secondary",ghost:"hover:bg-accent/72 hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-3 py-1.5",sm:"h-7 rounded-sm px-2 text-[10px]",lg:"h-10 rounded-md px-5 text-xs",icon:"h-8 w-8 rounded-sm"}},defaultVariants:{variant:"default",size:"default"}}),Pt=g.forwardRef(({className:n,variant:r,size:o,asChild:s=!1,...c},u)=>{const m=s?$C:"button";return f.jsx(m,{className:le(Lf({variant:r,size:o,className:n})),ref:u,...c})});Pt.displayName="Button";async function IC(n,r={}){try{await Se("/telemetry/events",{method:"POST",body:JSON.stringify({name:`feature.${n}`,appType:"browser",dimensions:r})})}catch{}}function De(n,r,{checkForDefaultPrevented:o=!0}={}){return function(c){if(n==null||n(c),o===!1||!c.defaultPrevented)return r==null?void 0:r(c)}}function XC(n,r){const o=g.createContext(r),s=u=>{const{children:m,...h}=u,v=g.useMemo(()=>h,Object.values(h));return f.jsx(o.Provider,{value:v,children:m})};s.displayName=n+"Provider";function c(u){const m=g.useContext(o);if(m)return m;if(r!==void 0)return r;throw new Error(`\`${u}\` must be used within \`${n}\``)}return[s,c]}function er(n,r=[]){let o=[];function s(u,m){const h=g.createContext(m),v=o.length;o=[...o,m];const p=y=>{var A;const{scope:S,children:T,...E}=y,N=((A=S==null?void 0:S[n])==null?void 0:A[v])||h,C=g.useMemo(()=>E,Object.values(E));return f.jsx(N.Provider,{value:C,children:T})};p.displayName=u+"Provider";function b(y,S){var N;const T=((N=S==null?void 0:S[n])==null?void 0:N[v])||h,E=g.useContext(T);if(E)return E;if(m!==void 0)return m;throw new Error(`\`${y}\` must be used within \`${u}\``)}return[p,b]}const c=()=>{const u=o.map(m=>g.createContext(m));return function(h){const v=(h==null?void 0:h[n])||u;return g.useMemo(()=>({[`__scope${n}`]:{...h,[n]:v}}),[h,v])}};return c.scopeName=n,[s,QC(c,...r)]}function QC(...n){const r=n[0];if(n.length===1)return r;const o=()=>{const s=n.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(u){const m=s.reduce((h,{useScope:v,scopeName:p})=>{const y=v(u)[`__scope${p}`];return{...h,...y}},{});return g.useMemo(()=>({[`__scope${r.scopeName}`]:m}),[m])}};return o.scopeName=r.scopeName,o}var Bt=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},KC=Tf[" useId ".trim().toString()]||(()=>{}),ZC=0;function Qa(n){const[r,o]=g.useState(KC());return Bt(()=>{o(s=>s??String(ZC++))},[n]),r?`radix-${r}`:""}var FC=Tf[" useInsertionEffect ".trim().toString()]||Bt;function _o({prop:n,defaultProp:r,onChange:o=()=>{},caller:s}){const[c,u,m]=WC({defaultProp:r,onChange:o}),h=n!==void 0,v=h?n:c;{const b=g.useRef(n!==void 0);g.useEffect(()=>{const y=b.current;y!==h&&console.warn(`${s} is changing from ${y?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),b.current=h},[h,s])}const p=g.useCallback(b=>{var y;if(h){const S=JC(b)?b(n):b;S!==n&&((y=m.current)==null||y.call(m,S))}else u(b)},[h,n,u,m]);return[v,p]}function WC({defaultProp:n,onChange:r}){const[o,s]=g.useState(n),c=g.useRef(o),u=g.useRef(r);return FC(()=>{u.current=r},[r]),g.useEffect(()=>{var m;c.current!==o&&((m=u.current)==null||m.call(u,o),c.current=o)},[o,c]),[o,s,u]}function JC(n){return typeof n=="function"}function Wl(n){const r=eR(n),o=g.forwardRef((s,c)=>{const{children:u,...m}=s,h=g.Children.toArray(u),v=h.find(nR);if(v){const p=v.props.children,b=h.map(y=>y===v?g.Children.count(p)>1?g.Children.only(null):g.isValidElement(p)?p.props.children:null:y);return f.jsx(r,{...m,ref:c,children:g.isValidElement(p)?g.cloneElement(p,void 0,b):null})}return f.jsx(r,{...m,ref:c,children:u})});return o.displayName=`${n}.Slot`,o}function eR(n){const r=g.forwardRef((o,s)=>{const{children:c,...u}=o;if(g.isValidElement(c)){const m=rR(c),h=aR(u,c.props);return c.type!==g.Fragment&&(h.ref=s?zf(s,m):m),g.cloneElement(c,h)}return g.Children.count(c)>1?g.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var hy=Symbol("radix.slottable");function tR(n){const r=({children:o})=>f.jsx(f.Fragment,{children:o});return r.displayName=`${n}.Slottable`,r.__radixId=hy,r}function nR(n){return g.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===hy}function aR(n,r){const o={...r};for(const s in r){const c=n[s],u=r[s];/^on[A-Z]/.test(s)?c&&u?o[s]=(...h)=>{const v=u(...h);return c(...h),v}:c&&(o[s]=c):s==="style"?o[s]={...c,...u}:s==="className"&&(o[s]=[c,u].filter(Boolean).join(" "))}return{...n,...o}}function rR(n){var s,c;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var oR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ze=oR.reduce((n,r)=>{const o=Wl(`Primitive.${r}`),s=g.forwardRef((c,u)=>{const{asChild:m,...h}=c,v=m?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(v,{...h,ref:u})});return s.displayName=`Primitive.${r}`,{...n,[r]:s}},{});function lR(n,r){n&&ns.flushSync(()=>n.dispatchEvent(r))}function Za(n){const r=g.useRef(n);return g.useEffect(()=>{r.current=n}),g.useMemo(()=>(...o)=>{var s;return(s=r.current)==null?void 0:s.call(r,...o)},[])}function sR(n,r=globalThis==null?void 0:globalThis.document){const o=Za(n);g.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 iR="DismissableLayer",of="dismissableLayer.update",cR="dismissableLayer.pointerDownOutside",uR="dismissableLayer.focusOutside",_v,py=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Uf=g.forwardRef((n,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:m,onDismiss:h,...v}=n,p=g.useContext(py),[b,y]=g.useState(null),S=(b==null?void 0:b.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,T]=g.useState({}),E=tt(r,V=>y(V)),N=Array.from(p.layers),[C]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),A=N.indexOf(C),j=b?N.indexOf(b):-1,M=p.layersWithOutsidePointerEventsDisabled.size>0,U=j>=A,H=mR(V=>{const $=V.target,re=[...p.branches].some(de=>de.contains($));!U||re||(c==null||c(V),m==null||m(V),V.defaultPrevented||h==null||h())},S),G=hR(V=>{const $=V.target;[...p.branches].some(de=>de.contains($))||(u==null||u(V),m==null||m(V),V.defaultPrevented||h==null||h())},S);return sR(V=>{j===p.layers.size-1&&(s==null||s(V),!V.defaultPrevented&&h&&(V.preventDefault(),h()))},S),g.useEffect(()=>{if(b)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(_v=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=_v)}},[b,S,o,p]),g.useEffect(()=>()=>{b&&(p.layers.delete(b),p.layersWithOutsidePointerEventsDisabled.delete(b),Mv())},[b,p]),g.useEffect(()=>{const V=()=>T({});return document.addEventListener(of,V),()=>document.removeEventListener(of,V)},[]),f.jsx(ze.div,{...v,ref:E,style:{pointerEvents:M?U?"auto":"none":void 0,...n.style},onFocusCapture:De(n.onFocusCapture,G.onFocusCapture),onBlurCapture:De(n.onBlurCapture,G.onBlurCapture),onPointerDownCapture:De(n.onPointerDownCapture,H.onPointerDownCapture)})});Uf.displayName=iR;var dR="DismissableLayerBranch",fR=g.forwardRef((n,r)=>{const o=g.useContext(py),s=g.useRef(null),c=tt(r,s);return g.useEffect(()=>{const u=s.current;if(u)return o.branches.add(u),()=>{o.branches.delete(u)}},[o.branches]),f.jsx(ze.div,{...n,ref:c})});fR.displayName=dR;function mR(n,r=globalThis==null?void 0:globalThis.document){const o=Za(n),s=g.useRef(!1),c=g.useRef(()=>{});return g.useEffect(()=>{const u=h=>{if(h.target&&!s.current){let v=function(){gy(cR,o,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(r.removeEventListener("click",c.current),c.current=v,r.addEventListener("click",c.current,{once:!0})):v()}else r.removeEventListener("click",c.current);s.current=!1},m=window.setTimeout(()=>{r.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(m),r.removeEventListener("pointerdown",u),r.removeEventListener("click",c.current)}},[r,o]),{onPointerDownCapture:()=>s.current=!0}}function hR(n,r=globalThis==null?void 0:globalThis.document){const o=Za(n),s=g.useRef(!1);return g.useEffect(()=>{const c=u=>{u.target&&!s.current&&gy(uR,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 n=new CustomEvent(of);document.dispatchEvent(n)}function gy(n,r,o,{discrete:s}){const c=o.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});r&&c.addEventListener(n,r,{once:!0}),s?lR(c,u):c.dispatchEvent(u)}var Ld="focusScope.autoFocusOnMount",Ud="focusScope.autoFocusOnUnmount",Ov={bubbles:!1,cancelable:!0},pR="FocusScope",Bf=g.forwardRef((n,r)=>{const{loop:o=!1,trapped:s=!1,onMountAutoFocus:c,onUnmountAutoFocus:u,...m}=n,[h,v]=g.useState(null),p=Za(c),b=Za(u),y=g.useRef(null),S=tt(r,N=>v(N)),T=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(s){let N=function(M){if(T.paused||!h)return;const U=M.target;h.contains(U)?y.current=U:Xa(y.current,{select:!0})},C=function(M){if(T.paused||!h)return;const U=M.relatedTarget;U!==null&&(h.contains(U)||Xa(y.current,{select:!0}))},A=function(M){if(document.activeElement===document.body)for(const H of M)H.removedNodes.length>0&&Xa(h)};document.addEventListener("focusin",N),document.addEventListener("focusout",C);const j=new MutationObserver(A);return h&&j.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",N),document.removeEventListener("focusout",C),j.disconnect()}}},[s,h,T.paused]),g.useEffect(()=>{if(h){zv.add(T);const N=document.activeElement;if(!h.contains(N)){const A=new CustomEvent(Ld,Ov);h.addEventListener(Ld,p),h.dispatchEvent(A),A.defaultPrevented||(gR(SR(vy(h)),{select:!0}),document.activeElement===N&&Xa(h))}return()=>{h.removeEventListener(Ld,p),setTimeout(()=>{const A=new CustomEvent(Ud,Ov);h.addEventListener(Ud,b),h.dispatchEvent(A),A.defaultPrevented||Xa(N??document.body,{select:!0}),h.removeEventListener(Ud,b),zv.remove(T)},0)}}},[h,p,b,T]);const E=g.useCallback(N=>{if(!o&&!s||T.paused)return;const C=N.key==="Tab"&&!N.altKey&&!N.ctrlKey&&!N.metaKey,A=document.activeElement;if(C&&A){const j=N.currentTarget,[M,U]=vR(j);M&&U?!N.shiftKey&&A===U?(N.preventDefault(),o&&Xa(M,{select:!0})):N.shiftKey&&A===M&&(N.preventDefault(),o&&Xa(U,{select:!0})):A===j&&N.preventDefault()}},[o,s,T.paused]);return f.jsx(ze.div,{tabIndex:-1,...m,ref:S,onKeyDown:E})});Bf.displayName=pR;function gR(n,{select:r=!1}={}){const o=document.activeElement;for(const s of n)if(Xa(s,{select:r}),document.activeElement!==o)return}function vR(n){const r=vy(n),o=Dv(r,n),s=Dv(r.reverse(),n);return[o,s]}function vy(n){const r=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const c=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||c?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)r.push(o.currentNode);return r}function Dv(n,r){for(const o of n)if(!yR(o,{upTo:r}))return o}function yR(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function bR(n){return n instanceof HTMLInputElement&&"select"in n}function Xa(n,{select:r=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&bR(n)&&r&&n.select()}}var zv=xR();function xR(){let n=[];return{add(r){const o=n[0];r!==o&&(o==null||o.pause()),n=Lv(n,r),n.unshift(r)},remove(r){var o;n=Lv(n,r),(o=n[0])==null||o.resume()}}}function Lv(n,r){const o=[...n],s=o.indexOf(r);return s!==-1&&o.splice(s,1),o}function SR(n){return n.filter(r=>r.tagName!=="A")}var wR="Portal",Hf=g.forwardRef((n,r)=>{var h;const{container:o,...s}=n,[c,u]=g.useState(!1);Bt(()=>u(!0),[]);const m=o||c&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return m?L0.createPortal(f.jsx(ze.div,{...s,ref:r}),m):null});Hf.displayName=wR;function ER(n,r){return g.useReducer((o,s)=>r[o][s]??o,n)}var Uo=n=>{const{present:r,children:o}=n,s=NR(r),c=typeof o=="function"?o({present:s.isPresent}):g.Children.only(o),u=tt(s.ref,TR(c));return typeof o=="function"||s.isPresent?g.cloneElement(c,{ref:u}):null};Uo.displayName="Presence";function NR(n){const[r,o]=g.useState(),s=g.useRef(null),c=g.useRef(n),u=g.useRef("none"),m=n?"mounted":"unmounted",[h,v]=ER(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const p=xi(s.current);u.current=h==="mounted"?p:"none"},[h]),Bt(()=>{const p=s.current,b=c.current;if(b!==n){const S=u.current,T=xi(p);n?v("MOUNT"):T==="none"||(p==null?void 0:p.display)==="none"?v("UNMOUNT"):v(b&&S!==T?"ANIMATION_OUT":"UNMOUNT"),c.current=n}},[n,v]),Bt(()=>{if(r){let p;const b=r.ownerDocument.defaultView??window,y=T=>{const N=xi(s.current).includes(CSS.escape(T.animationName));if(T.target===r&&N&&(v("ANIMATION_END"),!c.current)){const C=r.style.animationFillMode;r.style.animationFillMode="forwards",p=b.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=C)})}},S=T=>{T.target===r&&(u.current=xi(s.current))};return r.addEventListener("animationstart",S),r.addEventListener("animationcancel",y),r.addEventListener("animationend",y),()=>{b.clearTimeout(p),r.removeEventListener("animationstart",S),r.removeEventListener("animationcancel",y),r.removeEventListener("animationend",y)}}else v("ANIMATION_END")},[r,v]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:g.useCallback(p=>{s.current=p?getComputedStyle(p):null,o(p)},[])}}function xi(n){return(n==null?void 0:n.animationName)||"none"}function TR(n){var s,c;let r=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var Bd=0;function yy(){g.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Uv()),document.body.insertAdjacentElement("beforeend",n[1]??Uv()),Bd++,()=>{Bd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Bd--}},[])}function Uv(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var qn=function(){return qn=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},qn.apply(this,arguments)};function by(n,r){var o={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.indexOf(s)<0&&(o[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(n);c<s.length;c++)r.indexOf(s[c])<0&&Object.prototype.propertyIsEnumerable.call(n,s[c])&&(o[s[c]]=n[s[c]]);return o}function CR(n,r,o){if(o||arguments.length===2)for(var s=0,c=r.length,u;s<c;s++)(u||!(s in r))&&(u||(u=Array.prototype.slice.call(r,0,s)),u[s]=r[s]);return n.concat(u||Array.prototype.slice.call(r))}var ki="right-scroll-bar-position",ji="width-before-scroll-bar",RR="with-scroll-bars-hidden",AR="--removed-body-scroll-bar-size";function Hd(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function kR(n,r){var o=g.useState(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(s){var c=o.value;c!==s&&(o.value=s,o.callback(s,c))}}}})[0];return o.callback=r,o.facade}var jR=typeof window<"u"?g.useLayoutEffect:g.useEffect,Bv=new WeakMap;function _R(n,r){var o=kR(null,function(s){return n.forEach(function(c){return Hd(c,s)})});return jR(function(){var s=Bv.get(o);if(s){var c=new Set(s),u=new Set(n),m=o.current;c.forEach(function(h){u.has(h)||Hd(h,null)}),u.forEach(function(h){c.has(h)||Hd(h,m)})}Bv.set(o,n)},[n]),o}function MR(n){return n}function OR(n,r){r===void 0&&(r=MR);var o=[],s=!1,c={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:n},useMedium:function(u){var m=r(u,s);return o.push(m),function(){o=o.filter(function(h){return h!==m})}},assignSyncMedium:function(u){for(s=!0;o.length;){var m=o;o=[],m.forEach(u)}o={push:function(h){return u(h)},filter:function(){return o}}},assignMedium:function(u){s=!0;var m=[];if(o.length){var h=o;o=[],h.forEach(u),m=o}var v=function(){var b=m;m=[],b.forEach(u)},p=function(){return Promise.resolve().then(v)};p(),o={push:function(b){m.push(b),p()},filter:function(b){return m=m.filter(b),o}}}};return c}function DR(n){n===void 0&&(n={});var r=OR(null);return r.options=qn({async:!0,ssr:!1},n),r}var xy=function(n){var r=n.sideCar,o=by(n,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=r.read();if(!s)throw new Error("Sidecar medium not found");return g.createElement(s,qn({},o))};xy.isSideCarExport=!0;function zR(n,r){return n.useMedium(r),xy}var Sy=DR(),$d=function(){},rc=g.forwardRef(function(n,r){var o=g.useRef(null),s=g.useState({onScrollCapture:$d,onWheelCapture:$d,onTouchMoveCapture:$d}),c=s[0],u=s[1],m=n.forwardProps,h=n.children,v=n.className,p=n.removeScrollBar,b=n.enabled,y=n.shards,S=n.sideCar,T=n.noRelative,E=n.noIsolation,N=n.inert,C=n.allowPinchZoom,A=n.as,j=A===void 0?"div":A,M=n.gapMode,U=by(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),H=S,G=_R([o,r]),V=qn(qn({},U),c);return g.createElement(g.Fragment,null,b&&g.createElement(H,{sideCar:Sy,removeScrollBar:p,shards:y,noRelative:T,noIsolation:E,inert:N,setCallbacks:u,allowPinchZoom:!!C,lockRef:o,gapMode:M}),m?g.cloneElement(g.Children.only(h),qn(qn({},V),{ref:G})):g.createElement(j,qn({},V,{className:v,ref:G}),h))});rc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};rc.classNames={fullWidth:ji,zeroRight:ki};var LR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function UR(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=LR();return r&&n.setAttribute("nonce",r),n}function BR(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function HR(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var $R=function(){var n=0,r=null;return{add:function(o){n==0&&(r=UR())&&(BR(r,o),HR(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},PR=function(){var n=$R();return function(r,o){g.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&o])}},wy=function(){var n=PR(),r=function(o){var s=o.styles,c=o.dynamic;return n(s,c),null};return r},qR={left:0,top:0,right:0,gap:0},Pd=function(n){return parseInt(n||"",10)||0},VR=function(n){var r=window.getComputedStyle(document.body),o=r[n==="padding"?"paddingLeft":"marginLeft"],s=r[n==="padding"?"paddingTop":"marginTop"],c=r[n==="padding"?"paddingRight":"marginRight"];return[Pd(o),Pd(s),Pd(c)]},YR=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return qR;var r=VR(n),o=document.documentElement.clientWidth,s=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,s-o+r[2]-r[0])}},GR=wy(),Ao="data-scroll-locked",IR=function(n,r,o,s){var c=n.left,u=n.top,m=n.right,h=n.gap;return o===void 0&&(o="margin"),`
|
|
292
|
+
.`.concat(RR,` {
|
|
293
|
+
overflow: hidden `).concat(s,`;
|
|
294
|
+
padding-right: `).concat(h,"px ").concat(s,`;
|
|
295
|
+
}
|
|
296
|
+
body[`).concat(Ao,`] {
|
|
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(ki,` {
|
|
310
|
+
right: `).concat(h,"px ").concat(s,`;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.`).concat(ji,` {
|
|
314
|
+
margin-right: `).concat(h,"px ").concat(s,`;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.`).concat(ki," .").concat(ki,` {
|
|
318
|
+
right: 0 `).concat(s,`;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.`).concat(ji," .").concat(ji,` {
|
|
322
|
+
margin-right: 0 `).concat(s,`;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
body[`).concat(Ao,`] {
|
|
326
|
+
`).concat(AR,": ").concat(h,`px;
|
|
327
|
+
}
|
|
328
|
+
`)},Hv=function(){var n=parseInt(document.body.getAttribute(Ao)||"0",10);return isFinite(n)?n:0},XR=function(){g.useEffect(function(){return document.body.setAttribute(Ao,(Hv()+1).toString()),function(){var n=Hv()-1;n<=0?document.body.removeAttribute(Ao):document.body.setAttribute(Ao,n.toString())}},[])},QR=function(n){var r=n.noRelative,o=n.noImportant,s=n.gapMode,c=s===void 0?"margin":s;XR();var u=g.useMemo(function(){return YR(c)},[c]);return g.createElement(GR,{styles:IR(u,!r,c,o?"":"!important")})},lf=!1;if(typeof window<"u")try{var Si=Object.defineProperty({},"passive",{get:function(){return lf=!0,!0}});window.addEventListener("test",Si,Si),window.removeEventListener("test",Si,Si)}catch{lf=!1}var xo=lf?{passive:!1}:!1,KR=function(n){return n.tagName==="TEXTAREA"},Ey=function(n,r){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!KR(n)&&o[r]==="visible")},ZR=function(n){return Ey(n,"overflowY")},FR=function(n){return Ey(n,"overflowX")},$v=function(n,r){var o=r.ownerDocument,s=r;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var c=Ny(n,s);if(c){var u=Ty(n,s),m=u[1],h=u[2];if(m>h)return!0}s=s.parentNode}while(s&&s!==o.body);return!1},WR=function(n){var r=n.scrollTop,o=n.scrollHeight,s=n.clientHeight;return[r,o,s]},JR=function(n){var r=n.scrollLeft,o=n.scrollWidth,s=n.clientWidth;return[r,o,s]},Ny=function(n,r){return n==="v"?ZR(r):FR(r)},Ty=function(n,r){return n==="v"?WR(r):JR(r)},eA=function(n,r){return n==="h"&&r==="rtl"?-1:1},tA=function(n,r,o,s,c){var u=eA(n,window.getComputedStyle(r).direction),m=u*s,h=o.target,v=r.contains(h),p=!1,b=m>0,y=0,S=0;do{if(!h)break;var T=Ty(n,h),E=T[0],N=T[1],C=T[2],A=N-C-u*E;(E||A)&&Ny(n,h)&&(y+=A,S+=E);var j=h.parentNode;h=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!v&&h!==document.body||v&&(r.contains(h)||r===h));return(b&&Math.abs(y)<1||!b&&Math.abs(S)<1)&&(p=!0),p},wi=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Pv=function(n){return[n.deltaX,n.deltaY]},qv=function(n){return n&&"current"in n?n.current:n},nA=function(n,r){return n[0]===r[0]&&n[1]===r[1]},aA=function(n){return`
|
|
329
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
330
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
331
|
+
`)},rA=0,So=[];function oA(n){var r=g.useRef([]),o=g.useRef([0,0]),s=g.useRef(),c=g.useState(rA++)[0],u=g.useState(wy)[0],m=g.useRef(n);g.useEffect(function(){m.current=n},[n]),g.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(c));var N=CR([n.lockRef.current],(n.shards||[]).map(qv),!0).filter(Boolean);return N.forEach(function(C){return C.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),N.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(c))})}}},[n.inert,n.lockRef.current,n.shards]);var h=g.useCallback(function(N,C){if("touches"in N&&N.touches.length===2||N.type==="wheel"&&N.ctrlKey)return!m.current.allowPinchZoom;var A=wi(N),j=o.current,M="deltaX"in N?N.deltaX:j[0]-A[0],U="deltaY"in N?N.deltaY:j[1]-A[1],H,G=N.target,V=Math.abs(M)>Math.abs(U)?"h":"v";if("touches"in N&&V==="h"&&G.type==="range")return!1;var $=window.getSelection(),re=$&&$.anchorNode,de=re?re===G||re.contains(G):!1;if(de)return!1;var fe=$v(V,G);if(!fe)return!0;if(fe?H=V:(H=V==="v"?"h":"v",fe=$v(V,G)),!fe)return!1;if(!s.current&&"changedTouches"in N&&(M||U)&&(s.current=H),!H)return!0;var F=s.current||H;return tA(F,C,N,F==="h"?M:U)},[]),v=g.useCallback(function(N){var C=N;if(!(!So.length||So[So.length-1]!==u)){var A="deltaY"in C?Pv(C):wi(C),j=r.current.filter(function(H){return H.name===C.type&&(H.target===C.target||C.target===H.shadowParent)&&nA(H.delta,A)})[0];if(j&&j.should){C.cancelable&&C.preventDefault();return}if(!j){var M=(m.current.shards||[]).map(qv).filter(Boolean).filter(function(H){return H.contains(C.target)}),U=M.length>0?h(C,M[0]):!m.current.noIsolation;U&&C.cancelable&&C.preventDefault()}}},[]),p=g.useCallback(function(N,C,A,j){var M={name:N,delta:C,target:A,should:j,shadowParent:lA(A)};r.current.push(M),setTimeout(function(){r.current=r.current.filter(function(U){return U!==M})},1)},[]),b=g.useCallback(function(N){o.current=wi(N),s.current=void 0},[]),y=g.useCallback(function(N){p(N.type,Pv(N),N.target,h(N,n.lockRef.current))},[]),S=g.useCallback(function(N){p(N.type,wi(N),N.target,h(N,n.lockRef.current))},[]);g.useEffect(function(){return So.push(u),n.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:S}),document.addEventListener("wheel",v,xo),document.addEventListener("touchmove",v,xo),document.addEventListener("touchstart",b,xo),function(){So=So.filter(function(N){return N!==u}),document.removeEventListener("wheel",v,xo),document.removeEventListener("touchmove",v,xo),document.removeEventListener("touchstart",b,xo)}},[]);var T=n.removeScrollBar,E=n.inert;return g.createElement(g.Fragment,null,E?g.createElement(u,{styles:aA(c)}):null,T?g.createElement(QR,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function lA(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const sA=zR(Sy,oA);var $f=g.forwardRef(function(n,r){return g.createElement(rc,qn({},n,{ref:r,sideCar:sA}))});$f.classNames=rc.classNames;var iA=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},wo=new WeakMap,Ei=new WeakMap,Ni={},qd=0,Cy=function(n){return n&&(n.host||Cy(n.parentNode))},cA=function(n,r){return r.map(function(o){if(n.contains(o))return o;var s=Cy(o);return s&&n.contains(s)?s:(console.error("aria-hidden",o,"in not contained inside",n,". Doing nothing"),null)}).filter(function(o){return!!o})},uA=function(n,r,o,s){var c=cA(r,Array.isArray(n)?n:[n]);Ni[o]||(Ni[o]=new WeakMap);var u=Ni[o],m=[],h=new Set,v=new Set(c),p=function(y){!y||h.has(y)||(h.add(y),p(y.parentNode))};c.forEach(p);var b=function(y){!y||v.has(y)||Array.prototype.forEach.call(y.children,function(S){if(h.has(S))b(S);else try{var T=S.getAttribute(s),E=T!==null&&T!=="false",N=(wo.get(S)||0)+1,C=(u.get(S)||0)+1;wo.set(S,N),u.set(S,C),m.push(S),N===1&&E&&Ei.set(S,!0),C===1&&S.setAttribute(o,"true"),E||S.setAttribute(s,"true")}catch(A){console.error("aria-hidden: cannot operate on ",S,A)}})};return b(r),h.clear(),qd++,function(){m.forEach(function(y){var S=wo.get(y)-1,T=u.get(y)-1;wo.set(y,S),u.set(y,T),S||(Ei.has(y)||y.removeAttribute(s),Ei.delete(y)),T||y.removeAttribute(o)}),qd--,qd||(wo=new WeakMap,wo=new WeakMap,Ei=new WeakMap,Ni={})}},Ry=function(n,r,o){o===void 0&&(o="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),c=iA(n);return c?(s.push.apply(s,Array.from(c.querySelectorAll("[aria-live], script"))),uA(s,c,o,"aria-hidden")):function(){return null}},oc="Dialog",[Ay,ky]=er(oc),[dA,An]=Ay(oc),jy=n=>{const{__scopeDialog:r,children:o,open:s,defaultOpen:c,onOpenChange:u,modal:m=!0}=n,h=g.useRef(null),v=g.useRef(null),[p,b]=_o({prop:s,defaultProp:c??!1,onChange:u,caller:oc});return f.jsx(dA,{scope:r,triggerRef:h,contentRef:v,contentId:Qa(),titleId:Qa(),descriptionId:Qa(),open:p,onOpenChange:b,onOpenToggle:g.useCallback(()=>b(y=>!y),[b]),modal:m,children:o})};jy.displayName=oc;var _y="DialogTrigger",My=g.forwardRef((n,r)=>{const{__scopeDialog:o,...s}=n,c=An(_y,o),u=tt(r,c.triggerRef);return f.jsx(ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":Vf(c.open),...s,ref:u,onClick:De(n.onClick,c.onOpenToggle)})});My.displayName=_y;var Pf="DialogPortal",[fA,Oy]=Ay(Pf,{forceMount:void 0}),Dy=n=>{const{__scopeDialog:r,forceMount:o,children:s,container:c}=n,u=An(Pf,r);return f.jsx(fA,{scope:r,forceMount:o,children:g.Children.map(s,m=>f.jsx(Uo,{present:o||u.open,children:f.jsx(Hf,{asChild:!0,container:c,children:m})}))})};Dy.displayName=Pf;var Hi="DialogOverlay",zy=g.forwardRef((n,r)=>{const o=Oy(Hi,n.__scopeDialog),{forceMount:s=o.forceMount,...c}=n,u=An(Hi,n.__scopeDialog);return u.modal?f.jsx(Uo,{present:s||u.open,children:f.jsx(hA,{...c,ref:r})}):null});zy.displayName=Hi;var mA=Wl("DialogOverlay.RemoveScroll"),hA=g.forwardRef((n,r)=>{const{__scopeDialog:o,...s}=n,c=An(Hi,o);return f.jsx($f,{as:mA,allowPinchZoom:!0,shards:[c.contentRef],children:f.jsx(ze.div,{"data-state":Vf(c.open),...s,ref:r,style:{pointerEvents:"auto",...s.style}})})}),Tr="DialogContent",Ly=g.forwardRef((n,r)=>{const o=Oy(Tr,n.__scopeDialog),{forceMount:s=o.forceMount,...c}=n,u=An(Tr,n.__scopeDialog);return f.jsx(Uo,{present:s||u.open,children:u.modal?f.jsx(pA,{...c,ref:r}):f.jsx(gA,{...c,ref:r})})});Ly.displayName=Tr;var pA=g.forwardRef((n,r)=>{const o=An(Tr,n.__scopeDialog),s=g.useRef(null),c=tt(r,o.contentRef,s);return g.useEffect(()=>{const u=s.current;if(u)return Ry(u)},[]),f.jsx(Uy,{...n,ref:c,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:De(n.onCloseAutoFocus,u=>{var m;u.preventDefault(),(m=o.triggerRef.current)==null||m.focus()}),onPointerDownOutside:De(n.onPointerDownOutside,u=>{const m=u.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0;(m.button===2||h)&&u.preventDefault()}),onFocusOutside:De(n.onFocusOutside,u=>u.preventDefault())})}),gA=g.forwardRef((n,r)=>{const o=An(Tr,n.__scopeDialog),s=g.useRef(!1),c=g.useRef(!1);return f.jsx(Uy,{...n,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var m,h;(m=n.onCloseAutoFocus)==null||m.call(n,u),u.defaultPrevented||(s.current||(h=o.triggerRef.current)==null||h.focus(),u.preventDefault()),s.current=!1,c.current=!1},onInteractOutside:u=>{var v,p;(v=n.onInteractOutside)==null||v.call(n,u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=u.target;((p=o.triggerRef.current)==null?void 0:p.contains(m))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&c.current&&u.preventDefault()}})}),Uy=g.forwardRef((n,r)=>{const{__scopeDialog:o,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:u,...m}=n,h=An(Tr,o),v=g.useRef(null),p=tt(r,v);return yy(),f.jsxs(f.Fragment,{children:[f.jsx(Bf,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:c,onUnmountAutoFocus:u,children:f.jsx(Uf,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Vf(h.open),...m,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(yA,{titleId:h.titleId}),f.jsx(xA,{contentRef:v,descriptionId:h.descriptionId})]})]})}),qf="DialogTitle",By=g.forwardRef((n,r)=>{const{__scopeDialog:o,...s}=n,c=An(qf,o);return f.jsx(ze.h2,{id:c.titleId,...s,ref:r})});By.displayName=qf;var Hy="DialogDescription",$y=g.forwardRef((n,r)=>{const{__scopeDialog:o,...s}=n,c=An(Hy,o);return f.jsx(ze.p,{id:c.descriptionId,...s,ref:r})});$y.displayName=Hy;var Py="DialogClose",qy=g.forwardRef((n,r)=>{const{__scopeDialog:o,...s}=n,c=An(Py,o);return f.jsx(ze.button,{type:"button",...s,ref:r,onClick:De(n.onClick,()=>c.onOpenChange(!1))})});qy.displayName=Py;function Vf(n){return n?"open":"closed"}var Vy="DialogTitleWarning",[vA,Yy]=XC(Vy,{contentName:Tr,titleName:qf,docsSlug:"dialog"}),yA=({titleId:n})=>{const r=Yy(Vy),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 g.useEffect(()=>{n&&(document.getElementById(n)||console.error(o))},[o,n]),null},bA="DialogDescriptionWarning",xA=({contentRef:n,descriptionId:r})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Yy(bA).contentName}}.`;return g.useEffect(()=>{var u;const c=(u=n.current)==null?void 0:u.getAttribute("aria-describedby");r&&c&&(document.getElementById(r)||console.warn(s))},[s,n,r]),null},Gy=jy,Iy=My,Xy=Dy,Yf=zy,Gf=Ly,If=By,Xf=$y,lc=qy;const SA=Gy,wA=Iy,EA=Xy,oM=lc,Qy=g.forwardRef(({className:n,...r},o)=>f.jsx(Yf,{ref:o,className:le("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...r}));Qy.displayName=Yf.displayName;const Ky=g.forwardRef(({className:n,children:r,...o},s)=>f.jsxs(EA,{children:[f.jsx(Qy,{}),f.jsxs(Gf,{ref:s,className:le("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-3 rounded-sm border bg-background p-4 shadow-[0_24px_84px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...o,children:[r,f.jsxs(lc,{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(K0,{className:"h-3.5 w-3.5"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ky.displayName=Gf.displayName;const Zy=({className:n,...r})=>f.jsx("div",{className:le("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});Zy.displayName="DialogHeader";const NA=({className:n,...r})=>f.jsx("div",{className:le("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});NA.displayName="DialogFooter";const Fy=g.forwardRef(({className:n,...r},o)=>f.jsx(If,{ref:o,className:le("text-sm font-semibold leading-none tracking-tight",n),...r}));Fy.displayName=If.displayName;const Wy=g.forwardRef(({className:n,...r},o)=>f.jsx(Xf,{ref:o,className:le("text-[11px] text-muted-foreground",n),...r}));Wy.displayName=Xf.displayName;function TA({children:n,open:r,onOpenChange:o,showTrigger:s=!0}){const[c,u]=g.useState(!1),m=r??c,h=g.useCallback(v=>{v&&IC("settings.opened",{surface:"settings"}),r===void 0&&u(v),o==null||o(v)},[r,o]);return f.jsxs(SA,{open:m,onOpenChange:h,children:[s&&f.jsx(wA,{asChild:!0,children:f.jsx(Pt,{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(sT,{className:"h-4 w-4"})})}),f.jsxs(Ky,{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(Zy,{className:"shrink-0 border-b border-border/60 px-3 py-1.5 sm:px-3.5",children:[f.jsxs(Fy,{className:"flex items-center gap-1.5 text-[11px]",children:[f.jsx(YN,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),f.jsx(Wy,{className:"text-[10px]",children:"Session diagnostics, access configuration, and build metadata for the current Meshy node."})]}),f.jsx("div",{className:"min-h-0 overflow-y-auto px-2.5 pb-2 pt-0 sm:px-3 sm:pb-2.5",children:n})]})]})}function Vv(n,[r,o]){return Math.min(o,Math.max(r,n))}function Jy(n){const r=n+"CollectionProvider",[o,s]=er(r),[c,u]=o(r,{collectionRef:{current:null},itemMap:new Map}),m=N=>{const{scope:C,children:A}=N,j=oe.useRef(null),M=oe.useRef(new Map).current;return f.jsx(c,{scope:C,itemMap:M,collectionRef:j,children:A})};m.displayName=r;const h=n+"CollectionSlot",v=Wl(h),p=oe.forwardRef((N,C)=>{const{scope:A,children:j}=N,M=u(h,A),U=tt(C,M.collectionRef);return f.jsx(v,{ref:U,children:j})});p.displayName=h;const b=n+"CollectionItemSlot",y="data-radix-collection-item",S=Wl(b),T=oe.forwardRef((N,C)=>{const{scope:A,children:j,...M}=N,U=oe.useRef(null),H=tt(C,U),G=u(b,A);return oe.useEffect(()=>(G.itemMap.set(U,{ref:U,...M}),()=>void G.itemMap.delete(U))),f.jsx(S,{[y]:"",ref:H,children:j})});T.displayName=b;function E(N){const C=u(n+"CollectionConsumer",N);return oe.useCallback(()=>{const j=C.collectionRef.current;if(!j)return[];const M=Array.from(j.querySelectorAll(`[${y}]`));return Array.from(C.itemMap.values()).sort((G,V)=>M.indexOf(G.ref.current)-M.indexOf(V.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:m,Slot:p,ItemSlot:T},E,s]}var CA=g.createContext(void 0);function Qf(n){const r=g.useContext(CA);return n||r||"ltr"}const RA=["top","right","bottom","left"],Fa=Math.min,on=Math.max,$i=Math.round,Ti=Math.floor,Gn=n=>({x:n,y:n}),AA={left:"right",right:"left",bottom:"top",top:"bottom"};function sf(n,r,o){return on(n,Fa(r,o))}function pa(n,r){return typeof n=="function"?n(r):n}function ga(n){return n.split("-")[0]}function Bo(n){return n.split("-")[1]}function Kf(n){return n==="x"?"y":"x"}function Zf(n){return n==="y"?"height":"width"}function Vn(n){const r=n[0];return r==="t"||r==="b"?"y":"x"}function Ff(n){return Kf(Vn(n))}function kA(n,r,o){o===void 0&&(o=!1);const s=Bo(n),c=Ff(n),u=Zf(c);let m=c==="x"?s===(o?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(m=Pi(m)),[m,Pi(m)]}function jA(n){const r=Pi(n);return[cf(n),r,cf(r)]}function cf(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Yv=["left","right"],Gv=["right","left"],_A=["top","bottom"],MA=["bottom","top"];function OA(n,r,o){switch(n){case"top":case"bottom":return o?r?Gv:Yv:r?Yv:Gv;case"left":case"right":return r?_A:MA;default:return[]}}function DA(n,r,o,s){const c=Bo(n);let u=OA(ga(n),o==="start",s);return c&&(u=u.map(m=>m+"-"+c),r&&(u=u.concat(u.map(cf)))),u}function Pi(n){const r=ga(n);return AA[r]+n.slice(r.length)}function zA(n){return{top:0,right:0,bottom:0,left:0,...n}}function eb(n){return typeof n!="number"?zA(n):{top:n,right:n,bottom:n,left:n}}function qi(n){const{x:r,y:o,width:s,height:c}=n;return{width:s,height:c,top:o,left:r,right:r+s,bottom:o+c,x:r,y:o}}function Iv(n,r,o){let{reference:s,floating:c}=n;const u=Vn(r),m=Ff(r),h=Zf(m),v=ga(r),p=u==="y",b=s.x+s.width/2-c.width/2,y=s.y+s.height/2-c.height/2,S=s[h]/2-c[h]/2;let T;switch(v){case"top":T={x:b,y:s.y-c.height};break;case"bottom":T={x:b,y:s.y+s.height};break;case"right":T={x:s.x+s.width,y};break;case"left":T={x:s.x-c.width,y};break;default:T={x:s.x,y:s.y}}switch(Bo(r)){case"start":T[m]-=S*(o&&p?-1:1);break;case"end":T[m]+=S*(o&&p?-1:1);break}return T}async function LA(n,r){var o;r===void 0&&(r={});const{x:s,y:c,platform:u,rects:m,elements:h,strategy:v}=n,{boundary:p="clippingAncestors",rootBoundary:b="viewport",elementContext:y="floating",altBoundary:S=!1,padding:T=0}=pa(r,n),E=eb(T),C=h[S?y==="floating"?"reference":"floating":y],A=qi(await u.getClippingRect({element:(o=await(u.isElement==null?void 0:u.isElement(C)))==null||o?C:C.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:p,rootBoundary:b,strategy:v})),j=y==="floating"?{x:s,y:c,width:m.floating.width,height:m.floating.height}:m.reference,M=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h.floating)),U=await(u.isElement==null?void 0:u.isElement(M))?await(u.getScale==null?void 0:u.getScale(M))||{x:1,y:1}:{x:1,y:1},H=qi(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:j,offsetParent:M,strategy:v}):j);return{top:(A.top-H.top+E.top)/U.y,bottom:(H.bottom-A.bottom+E.bottom)/U.y,left:(A.left-H.left+E.left)/U.x,right:(H.right-A.right+E.right)/U.x}}const UA=50,BA=async(n,r,o)=>{const{placement:s="bottom",strategy:c="absolute",middleware:u=[],platform:m}=o,h=m.detectOverflow?m:{...m,detectOverflow:LA},v=await(m.isRTL==null?void 0:m.isRTL(r));let p=await m.getElementRects({reference:n,floating:r,strategy:c}),{x:b,y}=Iv(p,s,v),S=s,T=0;const E={};for(let N=0;N<u.length;N++){const C=u[N];if(!C)continue;const{name:A,fn:j}=C,{x:M,y:U,data:H,reset:G}=await j({x:b,y,initialPlacement:s,placement:S,strategy:c,middlewareData:E,rects:p,platform:h,elements:{reference:n,floating:r}});b=M??b,y=U??y,E[A]={...E[A],...H},G&&T<UA&&(T++,typeof G=="object"&&(G.placement&&(S=G.placement),G.rects&&(p=G.rects===!0?await m.getElementRects({reference:n,floating:r,strategy:c}):G.rects),{x:b,y}=Iv(p,S,v)),N=-1)}return{x:b,y,placement:S,strategy:c,middlewareData:E}},HA=n=>({name:"arrow",options:n,async fn(r){const{x:o,y:s,placement:c,rects:u,platform:m,elements:h,middlewareData:v}=r,{element:p,padding:b=0}=pa(n,r)||{};if(p==null)return{};const y=eb(b),S={x:o,y:s},T=Ff(c),E=Zf(T),N=await m.getDimensions(p),C=T==="y",A=C?"top":"left",j=C?"bottom":"right",M=C?"clientHeight":"clientWidth",U=u.reference[E]+u.reference[T]-S[T]-u.floating[E],H=S[T]-u.reference[T],G=await(m.getOffsetParent==null?void 0:m.getOffsetParent(p));let V=G?G[M]:0;(!V||!await(m.isElement==null?void 0:m.isElement(G)))&&(V=h.floating[M]||u.floating[E]);const $=U/2-H/2,re=V/2-N[E]/2-1,de=Fa(y[A],re),fe=Fa(y[j],re),F=de,te=V-N[E]-fe,ce=V/2-N[E]/2+$,J=sf(F,ce,te),_=!v.arrow&&Bo(c)!=null&&ce!==J&&u.reference[E]/2-(ce<F?de:fe)-N[E]/2<0,q=_?ce<F?ce-F:ce-te:0;return{[T]:S[T]+q,data:{[T]:J,centerOffset:ce-J-q,..._&&{alignmentOffset:q}},reset:_}}}),$A=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var o,s;const{placement:c,middlewareData:u,rects:m,initialPlacement:h,platform:v,elements:p}=r,{mainAxis:b=!0,crossAxis:y=!0,fallbackPlacements:S,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:N=!0,...C}=pa(n,r);if((o=u.arrow)!=null&&o.alignmentOffset)return{};const A=ga(c),j=Vn(h),M=ga(h)===h,U=await(v.isRTL==null?void 0:v.isRTL(p.floating)),H=S||(M||!N?[Pi(h)]:jA(h)),G=E!=="none";!S&&G&&H.push(...DA(h,N,E,U));const V=[h,...H],$=await v.detectOverflow(r,C),re=[];let de=((s=u.flip)==null?void 0:s.overflows)||[];if(b&&re.push($[A]),y){const ce=kA(c,m,U);re.push($[ce[0]],$[ce[1]])}if(de=[...de,{placement:c,overflows:re}],!re.every(ce=>ce<=0)){var fe,F;const ce=(((fe=u.flip)==null?void 0:fe.index)||0)+1,J=V[ce];if(J&&(!(y==="alignment"?j!==Vn(J):!1)||de.every(K=>Vn(K.placement)===j?K.overflows[0]>0:!0)))return{data:{index:ce,overflows:de},reset:{placement:J}};let _=(F=de.filter(q=>q.overflows[0]<=0).sort((q,K)=>q.overflows[1]-K.overflows[1])[0])==null?void 0:F.placement;if(!_)switch(T){case"bestFit":{var te;const q=(te=de.filter(K=>{if(G){const me=Vn(K.placement);return me===j||me==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(me=>me>0).reduce((me,R)=>me+R,0)]).sort((K,me)=>K[1]-me[1])[0])==null?void 0:te[0];q&&(_=q);break}case"initialPlacement":_=h;break}if(c!==_)return{reset:{placement:_}}}return{}}}};function Xv(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function Qv(n){return RA.some(r=>n[r]>=0)}const PA=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:o,platform:s}=r,{strategy:c="referenceHidden",...u}=pa(n,r);switch(c){case"referenceHidden":{const m=await s.detectOverflow(r,{...u,elementContext:"reference"}),h=Xv(m,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Qv(h)}}}case"escaped":{const m=await s.detectOverflow(r,{...u,altBoundary:!0}),h=Xv(m,o.floating);return{data:{escapedOffsets:h,escaped:Qv(h)}}}default:return{}}}}},tb=new Set(["left","top"]);async function qA(n,r){const{placement:o,platform:s,elements:c}=n,u=await(s.isRTL==null?void 0:s.isRTL(c.floating)),m=ga(o),h=Bo(o),v=Vn(o)==="y",p=tb.has(m)?-1:1,b=u&&v?-1:1,y=pa(r,n);let{mainAxis:S,crossAxis:T,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return h&&typeof E=="number"&&(T=h==="end"?E*-1:E),v?{x:T*b,y:S*p}:{x:S*p,y:T*b}}const VA=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var o,s;const{x:c,y:u,placement:m,middlewareData:h}=r,v=await qA(r,n);return m===((o=h.offset)==null?void 0:o.placement)&&(s=h.arrow)!=null&&s.alignmentOffset?{}:{x:c+v.x,y:u+v.y,data:{...v,placement:m}}}}},YA=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:o,y:s,placement:c,platform:u}=r,{mainAxis:m=!0,crossAxis:h=!1,limiter:v={fn:A=>{let{x:j,y:M}=A;return{x:j,y:M}}},...p}=pa(n,r),b={x:o,y:s},y=await u.detectOverflow(r,p),S=Vn(ga(c)),T=Kf(S);let E=b[T],N=b[S];if(m){const A=T==="y"?"top":"left",j=T==="y"?"bottom":"right",M=E+y[A],U=E-y[j];E=sf(M,E,U)}if(h){const A=S==="y"?"top":"left",j=S==="y"?"bottom":"right",M=N+y[A],U=N-y[j];N=sf(M,N,U)}const C=v.fn({...r,[T]:E,[S]:N});return{...C,data:{x:C.x-o,y:C.y-s,enabled:{[T]:m,[S]:h}}}}}},GA=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:o,y:s,placement:c,rects:u,middlewareData:m}=r,{offset:h=0,mainAxis:v=!0,crossAxis:p=!0}=pa(n,r),b={x:o,y:s},y=Vn(c),S=Kf(y);let T=b[S],E=b[y];const N=pa(h,r),C=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:0,crossAxis:0,...N};if(v){const M=S==="y"?"height":"width",U=u.reference[S]-u.floating[M]+C.mainAxis,H=u.reference[S]+u.reference[M]-C.mainAxis;T<U?T=U:T>H&&(T=H)}if(p){var A,j;const M=S==="y"?"width":"height",U=tb.has(ga(c)),H=u.reference[y]-u.floating[M]+(U&&((A=m.offset)==null?void 0:A[y])||0)+(U?0:C.crossAxis),G=u.reference[y]+u.reference[M]+(U?0:((j=m.offset)==null?void 0:j[y])||0)-(U?C.crossAxis:0);E<H?E=H:E>G&&(E=G)}return{[S]:T,[y]:E}}}},IA=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var o,s;const{placement:c,rects:u,platform:m,elements:h}=r,{apply:v=()=>{},...p}=pa(n,r),b=await m.detectOverflow(r,p),y=ga(c),S=Bo(c),T=Vn(c)==="y",{width:E,height:N}=u.floating;let C,A;y==="top"||y==="bottom"?(C=y,A=S===(await(m.isRTL==null?void 0:m.isRTL(h.floating))?"start":"end")?"left":"right"):(A=y,C=S==="end"?"top":"bottom");const j=N-b.top-b.bottom,M=E-b.left-b.right,U=Fa(N-b[C],j),H=Fa(E-b[A],M),G=!r.middlewareData.shift;let V=U,$=H;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&($=M),(s=r.middlewareData.shift)!=null&&s.enabled.y&&(V=j),G&&!S){const de=on(b.left,0),fe=on(b.right,0),F=on(b.top,0),te=on(b.bottom,0);T?$=E-2*(de!==0||fe!==0?de+fe:on(b.left,b.right)):V=N-2*(F!==0||te!==0?F+te:on(b.top,b.bottom))}await v({...r,availableWidth:$,availableHeight:V});const re=await m.getDimensions(h.floating);return E!==re.width||N!==re.height?{reset:{rects:!0}}:{}}}};function sc(){return typeof window<"u"}function Ho(n){return nb(n)?(n.nodeName||"").toLowerCase():"#document"}function ln(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Xn(n){var r;return(r=(nb(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function nb(n){return sc()?n instanceof Node||n instanceof ln(n).Node:!1}function Cn(n){return sc()?n instanceof Element||n instanceof ln(n).Element:!1}function va(n){return sc()?n instanceof HTMLElement||n instanceof ln(n).HTMLElement:!1}function Kv(n){return!sc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof ln(n).ShadowRoot}function as(n){const{overflow:r,overflowX:o,overflowY:s,display:c}=Rn(n);return/auto|scroll|overlay|hidden|clip/.test(r+s+o)&&c!=="inline"&&c!=="contents"}function XA(n){return/^(table|td|th)$/.test(Ho(n))}function ic(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const QA=/transform|translate|scale|rotate|perspective|filter/,KA=/paint|layout|strict|content/,wr=n=>!!n&&n!=="none";let Vd;function Wf(n){const r=Cn(n)?Rn(n):n;return wr(r.transform)||wr(r.translate)||wr(r.scale)||wr(r.rotate)||wr(r.perspective)||!Jf()&&(wr(r.backdropFilter)||wr(r.filter))||QA.test(r.willChange||"")||KA.test(r.contain||"")}function ZA(n){let r=Wa(n);for(;va(r)&&!Mo(r);){if(Wf(r))return r;if(ic(r))return null;r=Wa(r)}return null}function Jf(){return Vd==null&&(Vd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Vd}function Mo(n){return/^(html|body|#document)$/.test(Ho(n))}function Rn(n){return ln(n).getComputedStyle(n)}function cc(n){return Cn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Wa(n){if(Ho(n)==="html")return n;const r=n.assignedSlot||n.parentNode||Kv(n)&&n.host||Xn(n);return Kv(r)?r.host:r}function ab(n){const r=Wa(n);return Mo(r)?n.ownerDocument?n.ownerDocument.body:n.body:va(r)&&as(r)?r:ab(r)}function Jl(n,r,o){var s;r===void 0&&(r=[]),o===void 0&&(o=!0);const c=ab(n),u=c===((s=n.ownerDocument)==null?void 0:s.body),m=ln(c);if(u){const h=uf(m);return r.concat(m,m.visualViewport||[],as(c)?c:[],h&&o?Jl(h):[])}else return r.concat(c,Jl(c,[],o))}function uf(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function rb(n){const r=Rn(n);let o=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const c=va(n),u=c?n.offsetWidth:o,m=c?n.offsetHeight:s,h=$i(o)!==u||$i(s)!==m;return h&&(o=u,s=m),{width:o,height:s,$:h}}function em(n){return Cn(n)?n:n.contextElement}function ko(n){const r=em(n);if(!va(r))return Gn(1);const o=r.getBoundingClientRect(),{width:s,height:c,$:u}=rb(r);let m=(u?$i(o.width):o.width)/s,h=(u?$i(o.height):o.height)/c;return(!m||!Number.isFinite(m))&&(m=1),(!h||!Number.isFinite(h))&&(h=1),{x:m,y:h}}const FA=Gn(0);function ob(n){const r=ln(n);return!Jf()||!r.visualViewport?FA:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function WA(n,r,o){return r===void 0&&(r=!1),!o||r&&o!==ln(n)?!1:r}function Cr(n,r,o,s){r===void 0&&(r=!1),o===void 0&&(o=!1);const c=n.getBoundingClientRect(),u=em(n);let m=Gn(1);r&&(s?Cn(s)&&(m=ko(s)):m=ko(n));const h=WA(u,o,s)?ob(u):Gn(0);let v=(c.left+h.x)/m.x,p=(c.top+h.y)/m.y,b=c.width/m.x,y=c.height/m.y;if(u){const S=ln(u),T=s&&Cn(s)?ln(s):s;let E=S,N=uf(E);for(;N&&s&&T!==E;){const C=ko(N),A=N.getBoundingClientRect(),j=Rn(N),M=A.left+(N.clientLeft+parseFloat(j.paddingLeft))*C.x,U=A.top+(N.clientTop+parseFloat(j.paddingTop))*C.y;v*=C.x,p*=C.y,b*=C.x,y*=C.y,v+=M,p+=U,E=ln(N),N=uf(E)}}return qi({width:b,height:y,x:v,y:p})}function uc(n,r){const o=cc(n).scrollLeft;return r?r.left+o:Cr(Xn(n)).left+o}function lb(n,r){const o=n.getBoundingClientRect(),s=o.left+r.scrollLeft-uc(n,o),c=o.top+r.scrollTop;return{x:s,y:c}}function JA(n){let{elements:r,rect:o,offsetParent:s,strategy:c}=n;const u=c==="fixed",m=Xn(s),h=r?ic(r.floating):!1;if(s===m||h&&u)return o;let v={scrollLeft:0,scrollTop:0},p=Gn(1);const b=Gn(0),y=va(s);if((y||!y&&!u)&&((Ho(s)!=="body"||as(m))&&(v=cc(s)),y)){const T=Cr(s);p=ko(s),b.x=T.x+s.clientLeft,b.y=T.y+s.clientTop}const S=m&&!y&&!u?lb(m,v):Gn(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-v.scrollLeft*p.x+b.x+S.x,y:o.y*p.y-v.scrollTop*p.y+b.y+S.y}}function e5(n){return Array.from(n.getClientRects())}function t5(n){const r=Xn(n),o=cc(n),s=n.ownerDocument.body,c=on(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),u=on(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let m=-o.scrollLeft+uc(n);const h=-o.scrollTop;return Rn(s).direction==="rtl"&&(m+=on(r.clientWidth,s.clientWidth)-c),{width:c,height:u,x:m,y:h}}const Zv=25;function n5(n,r){const o=ln(n),s=Xn(n),c=o.visualViewport;let u=s.clientWidth,m=s.clientHeight,h=0,v=0;if(c){u=c.width,m=c.height;const b=Jf();(!b||b&&r==="fixed")&&(h=c.offsetLeft,v=c.offsetTop)}const p=uc(s);if(p<=0){const b=s.ownerDocument,y=b.body,S=getComputedStyle(y),T=b.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,E=Math.abs(s.clientWidth-y.clientWidth-T);E<=Zv&&(u-=E)}else p<=Zv&&(u+=p);return{width:u,height:m,x:h,y:v}}function a5(n,r){const o=Cr(n,!0,r==="fixed"),s=o.top+n.clientTop,c=o.left+n.clientLeft,u=va(n)?ko(n):Gn(1),m=n.clientWidth*u.x,h=n.clientHeight*u.y,v=c*u.x,p=s*u.y;return{width:m,height:h,x:v,y:p}}function Fv(n,r,o){let s;if(r==="viewport")s=n5(n,o);else if(r==="document")s=t5(Xn(n));else if(Cn(r))s=a5(r,o);else{const c=ob(n);s={x:r.x-c.x,y:r.y-c.y,width:r.width,height:r.height}}return qi(s)}function sb(n,r){const o=Wa(n);return o===r||!Cn(o)||Mo(o)?!1:Rn(o).position==="fixed"||sb(o,r)}function r5(n,r){const o=r.get(n);if(o)return o;let s=Jl(n,[],!1).filter(h=>Cn(h)&&Ho(h)!=="body"),c=null;const u=Rn(n).position==="fixed";let m=u?Wa(n):n;for(;Cn(m)&&!Mo(m);){const h=Rn(m),v=Wf(m);!v&&h.position==="fixed"&&(c=null),(u?!v&&!c:!v&&h.position==="static"&&!!c&&(c.position==="absolute"||c.position==="fixed")||as(m)&&!v&&sb(n,m))?s=s.filter(b=>b!==m):c=h,m=Wa(m)}return r.set(n,s),s}function o5(n){let{element:r,boundary:o,rootBoundary:s,strategy:c}=n;const m=[...o==="clippingAncestors"?ic(r)?[]:r5(r,this._c):[].concat(o),s],h=Fv(r,m[0],c);let v=h.top,p=h.right,b=h.bottom,y=h.left;for(let S=1;S<m.length;S++){const T=Fv(r,m[S],c);v=on(T.top,v),p=Fa(T.right,p),b=Fa(T.bottom,b),y=on(T.left,y)}return{width:p-y,height:b-v,x:y,y:v}}function l5(n){const{width:r,height:o}=rb(n);return{width:r,height:o}}function s5(n,r,o){const s=va(r),c=Xn(r),u=o==="fixed",m=Cr(n,!0,u,r);let h={scrollLeft:0,scrollTop:0};const v=Gn(0);function p(){v.x=uc(c)}if(s||!s&&!u)if((Ho(r)!=="body"||as(c))&&(h=cc(r)),s){const T=Cr(r,!0,u,r);v.x=T.x+r.clientLeft,v.y=T.y+r.clientTop}else c&&p();u&&!s&&c&&p();const b=c&&!s&&!u?lb(c,h):Gn(0),y=m.left+h.scrollLeft-v.x-b.x,S=m.top+h.scrollTop-v.y-b.y;return{x:y,y:S,width:m.width,height:m.height}}function Yd(n){return Rn(n).position==="static"}function Wv(n,r){if(!va(n)||Rn(n).position==="fixed")return null;if(r)return r(n);let o=n.offsetParent;return Xn(n)===o&&(o=o.ownerDocument.body),o}function ib(n,r){const o=ln(n);if(ic(n))return o;if(!va(n)){let c=Wa(n);for(;c&&!Mo(c);){if(Cn(c)&&!Yd(c))return c;c=Wa(c)}return o}let s=Wv(n,r);for(;s&&XA(s)&&Yd(s);)s=Wv(s,r);return s&&Mo(s)&&Yd(s)&&!Wf(s)?o:s||ZA(n)||o}const i5=async function(n){const r=this.getOffsetParent||ib,o=this.getDimensions,s=await o(n.floating);return{reference:s5(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function c5(n){return Rn(n).direction==="rtl"}const u5={convertOffsetParentRelativeRectToViewportRelativeRect:JA,getDocumentElement:Xn,getClippingRect:o5,getOffsetParent:ib,getElementRects:i5,getClientRects:e5,getDimensions:l5,getScale:ko,isElement:Cn,isRTL:c5};function cb(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function d5(n,r){let o=null,s;const c=Xn(n);function u(){var h;clearTimeout(s),(h=o)==null||h.disconnect(),o=null}function m(h,v){h===void 0&&(h=!1),v===void 0&&(v=1),u();const p=n.getBoundingClientRect(),{left:b,top:y,width:S,height:T}=p;if(h||r(),!S||!T)return;const E=Ti(y),N=Ti(c.clientWidth-(b+S)),C=Ti(c.clientHeight-(y+T)),A=Ti(b),M={rootMargin:-E+"px "+-N+"px "+-C+"px "+-A+"px",threshold:on(0,Fa(1,v))||1};let U=!0;function H(G){const V=G[0].intersectionRatio;if(V!==v){if(!U)return m();V?m(!1,V):s=setTimeout(()=>{m(!1,1e-7)},1e3)}V===1&&!cb(p,n.getBoundingClientRect())&&m(),U=!1}try{o=new IntersectionObserver(H,{...M,root:c.ownerDocument})}catch{o=new IntersectionObserver(H,M)}o.observe(n)}return m(!0),u}function f5(n,r,o,s){s===void 0&&(s={});const{ancestorScroll:c=!0,ancestorResize:u=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:v=!1}=s,p=em(n),b=c||u?[...p?Jl(p):[],...r?Jl(r):[]]:[];b.forEach(A=>{c&&A.addEventListener("scroll",o,{passive:!0}),u&&A.addEventListener("resize",o)});const y=p&&h?d5(p,o):null;let S=-1,T=null;m&&(T=new ResizeObserver(A=>{let[j]=A;j&&j.target===p&&T&&r&&(T.unobserve(r),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var M;(M=T)==null||M.observe(r)})),o()}),p&&!v&&T.observe(p),r&&T.observe(r));let E,N=v?Cr(n):null;v&&C();function C(){const A=Cr(n);N&&!cb(N,A)&&o(),N=A,E=requestAnimationFrame(C)}return o(),()=>{var A;b.forEach(j=>{c&&j.removeEventListener("scroll",o),u&&j.removeEventListener("resize",o)}),y==null||y(),(A=T)==null||A.disconnect(),T=null,v&&cancelAnimationFrame(E)}}const m5=VA,h5=YA,p5=$A,g5=IA,v5=PA,Jv=HA,y5=GA,b5=(n,r,o)=>{const s=new Map,c={platform:u5,...o},u={...c.platform,_c:s};return BA(n,r,{...c,platform:u})};var x5=typeof document<"u",S5=function(){},_i=x5?g.useLayoutEffect:S5;function Vi(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let o,s,c;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==r.length)return!1;for(s=o;s--!==0;)if(!Vi(n[s],r[s]))return!1;return!0}if(c=Object.keys(n),o=c.length,o!==Object.keys(r).length)return!1;for(s=o;s--!==0;)if(!{}.hasOwnProperty.call(r,c[s]))return!1;for(s=o;s--!==0;){const u=c[s];if(!(u==="_owner"&&n.$$typeof)&&!Vi(n[u],r[u]))return!1}return!0}return n!==n&&r!==r}function ub(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function e0(n,r){const o=ub(n);return Math.round(r*o)/o}function Gd(n){const r=g.useRef(n);return _i(()=>{r.current=n}),r}function w5(n){n===void 0&&(n={});const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:c,elements:{reference:u,floating:m}={},transform:h=!0,whileElementsMounted:v,open:p}=n,[b,y]=g.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[S,T]=g.useState(s);Vi(S,s)||T(s);const[E,N]=g.useState(null),[C,A]=g.useState(null),j=g.useCallback(K=>{K!==G.current&&(G.current=K,N(K))},[]),M=g.useCallback(K=>{K!==V.current&&(V.current=K,A(K))},[]),U=u||E,H=m||C,G=g.useRef(null),V=g.useRef(null),$=g.useRef(b),re=v!=null,de=Gd(v),fe=Gd(c),F=Gd(p),te=g.useCallback(()=>{if(!G.current||!V.current)return;const K={placement:r,strategy:o,middleware:S};fe.current&&(K.platform=fe.current),b5(G.current,V.current,K).then(me=>{const R={...me,isPositioned:F.current!==!1};ce.current&&!Vi($.current,R)&&($.current=R,ns.flushSync(()=>{y(R)}))})},[S,r,o,fe,F]);_i(()=>{p===!1&&$.current.isPositioned&&($.current.isPositioned=!1,y(K=>({...K,isPositioned:!1})))},[p]);const ce=g.useRef(!1);_i(()=>(ce.current=!0,()=>{ce.current=!1}),[]),_i(()=>{if(U&&(G.current=U),H&&(V.current=H),U&&H){if(de.current)return de.current(U,H,te);te()}},[U,H,te,de,re]);const J=g.useMemo(()=>({reference:G,floating:V,setReference:j,setFloating:M}),[j,M]),_=g.useMemo(()=>({reference:U,floating:H}),[U,H]),q=g.useMemo(()=>{const K={position:o,left:0,top:0};if(!_.floating)return K;const me=e0(_.floating,b.x),R=e0(_.floating,b.y);return h?{...K,transform:"translate("+me+"px, "+R+"px)",...ub(_.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:me,top:R}},[o,h,_.floating,b.x,b.y]);return g.useMemo(()=>({...b,update:te,refs:J,elements:_,floatingStyles:q}),[b,te,J,_,q])}const E5=n=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:s,padding:c}=typeof n=="function"?n(o):n;return s&&r(s)?s.current!=null?Jv({element:s.current,padding:c}).fn(o):{}:s?Jv({element:s,padding:c}).fn(o):{}}}},N5=(n,r)=>{const o=m5(n);return{name:o.name,fn:o.fn,options:[n,r]}},T5=(n,r)=>{const o=h5(n);return{name:o.name,fn:o.fn,options:[n,r]}},C5=(n,r)=>({fn:y5(n).fn,options:[n,r]}),R5=(n,r)=>{const o=p5(n);return{name:o.name,fn:o.fn,options:[n,r]}},A5=(n,r)=>{const o=g5(n);return{name:o.name,fn:o.fn,options:[n,r]}},k5=(n,r)=>{const o=v5(n);return{name:o.name,fn:o.fn,options:[n,r]}},j5=(n,r)=>{const o=E5(n);return{name:o.name,fn:o.fn,options:[n,r]}};var _5="Arrow",db=g.forwardRef((n,r)=>{const{children:o,width:s=10,height:c=5,...u}=n;return f.jsx(ze.svg,{...u,ref:r,width:s,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?o:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});db.displayName=_5;var M5=db;function fb(n){const[r,o]=g.useState(void 0);return Bt(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const u=c[0];let m,h;if("borderBoxSize"in u){const v=u.borderBoxSize,p=Array.isArray(v)?v[0]:v;m=p.inlineSize,h=p.blockSize}else m=n.offsetWidth,h=n.offsetHeight;o({width:m,height:h})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else o(void 0)},[n]),r}var tm="Popper",[mb,hb]=er(tm),[O5,pb]=mb(tm),gb=n=>{const{__scopePopper:r,children:o}=n,[s,c]=g.useState(null);return f.jsx(O5,{scope:r,anchor:s,onAnchorChange:c,children:o})};gb.displayName=tm;var vb="PopperAnchor",yb=g.forwardRef((n,r)=>{const{__scopePopper:o,virtualRef:s,...c}=n,u=pb(vb,o),m=g.useRef(null),h=tt(r,m),v=g.useRef(null);return g.useEffect(()=>{const p=v.current;v.current=(s==null?void 0:s.current)||m.current,p!==v.current&&u.onAnchorChange(v.current)}),s?null:f.jsx(ze.div,{...c,ref:h})});yb.displayName=vb;var nm="PopperContent",[D5,z5]=mb(nm),bb=g.forwardRef((n,r)=>{var ue,ie,ae,be,ve,xe;const{__scopePopper:o,side:s="bottom",sideOffset:c=0,align:u="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:v=!0,collisionBoundary:p=[],collisionPadding:b=0,sticky:y="partial",hideWhenDetached:S=!1,updatePositionStrategy:T="optimized",onPlaced:E,...N}=n,C=pb(nm,o),[A,j]=g.useState(null),M=tt(r,Ue=>j(Ue)),[U,H]=g.useState(null),G=fb(U),V=(G==null?void 0:G.width)??0,$=(G==null?void 0:G.height)??0,re=s+(u!=="center"?"-"+u:""),de=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},fe=Array.isArray(p)?p:[p],F=fe.length>0,te={padding:de,boundary:fe.filter(U5),altBoundary:F},{refs:ce,floatingStyles:J,placement:_,isPositioned:q,middlewareData:K}=w5({strategy:"fixed",placement:re,whileElementsMounted:(...Ue)=>f5(...Ue,{animationFrame:T==="always"}),elements:{reference:C.anchor},middleware:[N5({mainAxis:c+$,alignmentAxis:m}),v&&T5({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?C5():void 0,...te}),v&&R5({...te}),A5({...te,apply:({elements:Ue,rects:Ve,availableWidth:$e,availableHeight:bt})=>{const{width:Pe,height:Ht}=Ve.reference,at=Ue.floating.style;at.setProperty("--radix-popper-available-width",`${$e}px`),at.setProperty("--radix-popper-available-height",`${bt}px`),at.setProperty("--radix-popper-anchor-width",`${Pe}px`),at.setProperty("--radix-popper-anchor-height",`${Ht}px`)}}),U&&j5({element:U,padding:h}),B5({arrowWidth:V,arrowHeight:$}),S&&k5({strategy:"referenceHidden",...te})]}),[me,R]=wb(_),Y=Za(E);Bt(()=>{q&&(Y==null||Y())},[q,Y]);const se=(ue=K.arrow)==null?void 0:ue.x,X=(ie=K.arrow)==null?void 0:ie.y,ne=((ae=K.arrow)==null?void 0:ae.centerOffset)!==0,[W,ee]=g.useState();return Bt(()=>{A&&ee(window.getComputedStyle(A).zIndex)},[A]),f.jsx("div",{ref:ce.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:q?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[(be=K.transformOrigin)==null?void 0:be.x,(ve=K.transformOrigin)==null?void 0:ve.y].join(" "),...((xe=K.hide)==null?void 0:xe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:f.jsx(D5,{scope:o,placedSide:me,onArrowChange:H,arrowX:se,arrowY:X,shouldHideArrow:ne,children:f.jsx(ze.div,{"data-side":me,"data-align":R,...N,ref:M,style:{...N.style,animation:q?void 0:"none"}})})})});bb.displayName=nm;var xb="PopperArrow",L5={top:"bottom",right:"left",bottom:"top",left:"right"},Sb=g.forwardRef(function(r,o){const{__scopePopper:s,...c}=r,u=z5(xb,s),m=L5[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(M5,{...c,ref:o,style:{...c.style,display:"block"}})})});Sb.displayName=xb;function U5(n){return n!==null}var B5=n=>({name:"transformOrigin",options:n,fn(r){var C,A,j;const{placement:o,rects:s,middlewareData:c}=r,m=((C=c.arrow)==null?void 0:C.centerOffset)!==0,h=m?0:n.arrowWidth,v=m?0:n.arrowHeight,[p,b]=wb(o),y={start:"0%",center:"50%",end:"100%"}[b],S=(((A=c.arrow)==null?void 0:A.x)??0)+h/2,T=(((j=c.arrow)==null?void 0:j.y)??0)+v/2;let E="",N="";return p==="bottom"?(E=m?y:`${S}px`,N=`${-v}px`):p==="top"?(E=m?y:`${S}px`,N=`${s.floating.height+v}px`):p==="right"?(E=`${-v}px`,N=m?y:`${T}px`):p==="left"&&(E=`${s.floating.width+v}px`,N=m?y:`${T}px`),{data:{x:E,y:N}}}});function wb(n){const[r,o="center"]=n.split("-");return[r,o]}var H5=gb,$5=yb,P5=bb,q5=Sb;function Eb(n){const r=g.useRef({value:n,previous:n});return g.useMemo(()=>(r.current.value!==n&&(r.current.previous=r.current.value,r.current.value=n),r.current.previous),[n])}var Nb=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"}),V5="VisuallyHidden",Y5=g.forwardRef((n,r)=>f.jsx(ze.span,{...n,ref:r,style:{...Nb,...n.style}}));Y5.displayName=V5;var G5=[" ","Enter","ArrowUp","ArrowDown"],I5=[" ","Enter"],Rr="Select",[dc,fc,X5]=Jy(Rr),[$o]=er(Rr,[X5,hb]),mc=hb(),[Q5,tr]=$o(Rr),[K5,Z5]=$o(Rr),Tb=n=>{const{__scopeSelect:r,children:o,open:s,defaultOpen:c,onOpenChange:u,value:m,defaultValue:h,onValueChange:v,dir:p,name:b,autoComplete:y,disabled:S,required:T,form:E}=n,N=mc(r),[C,A]=g.useState(null),[j,M]=g.useState(null),[U,H]=g.useState(!1),G=Qf(p),[V,$]=_o({prop:s,defaultProp:c??!1,onChange:u,caller:Rr}),[re,de]=_o({prop:m,defaultProp:h,onChange:v,caller:Rr}),fe=g.useRef(null),F=C?E||!!C.closest("form"):!0,[te,ce]=g.useState(new Set),J=Array.from(te).map(_=>_.props.value).join(";");return f.jsx(H5,{...N,children:f.jsxs(Q5,{required:T,scope:r,trigger:C,onTriggerChange:A,valueNode:j,onValueNodeChange:M,valueNodeHasChildren:U,onValueNodeHasChildrenChange:H,contentId:Qa(),value:re,onValueChange:de,open:V,onOpenChange:$,dir:G,triggerPointerDownPosRef:fe,disabled:S,children:[f.jsx(dc.Provider,{scope:r,children:f.jsx(K5,{scope:n.__scopeSelect,onNativeOptionAdd:g.useCallback(_=>{ce(q=>new Set(q).add(_))},[]),onNativeOptionRemove:g.useCallback(_=>{ce(q=>{const K=new Set(q);return K.delete(_),K})},[]),children:o})}),F?f.jsxs(Kb,{"aria-hidden":!0,required:T,tabIndex:-1,name:b,autoComplete:y,value:re,onChange:_=>de(_.target.value),disabled:S,form:E,children:[re===void 0?f.jsx("option",{value:""}):null,Array.from(te)]},J):null]})})};Tb.displayName=Rr;var Cb="SelectTrigger",Rb=g.forwardRef((n,r)=>{const{__scopeSelect:o,disabled:s=!1,...c}=n,u=mc(o),m=tr(Cb,o),h=m.disabled||s,v=tt(r,m.onTriggerChange),p=fc(o),b=g.useRef("touch"),[y,S,T]=Fb(N=>{const C=p().filter(M=>!M.disabled),A=C.find(M=>M.value===m.value),j=Wb(C,N,A);j!==void 0&&m.onValueChange(j.value)}),E=N=>{h||(m.onOpenChange(!0),T()),N&&(m.triggerPointerDownPosRef.current={x:Math.round(N.pageX),y:Math.round(N.pageY)})};return f.jsx($5,{asChild:!0,...u,children:f.jsx(ze.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":Zb(m.value)?"":void 0,...c,ref:v,onClick:De(c.onClick,N=>{N.currentTarget.focus(),b.current!=="mouse"&&E(N)}),onPointerDown:De(c.onPointerDown,N=>{b.current=N.pointerType;const C=N.target;C.hasPointerCapture(N.pointerId)&&C.releasePointerCapture(N.pointerId),N.button===0&&N.ctrlKey===!1&&N.pointerType==="mouse"&&(E(N),N.preventDefault())}),onKeyDown:De(c.onKeyDown,N=>{const C=y.current!=="";!(N.ctrlKey||N.altKey||N.metaKey)&&N.key.length===1&&S(N.key),!(C&&N.key===" ")&&G5.includes(N.key)&&(E(),N.preventDefault())})})})});Rb.displayName=Cb;var Ab="SelectValue",kb=g.forwardRef((n,r)=>{const{__scopeSelect:o,className:s,style:c,children:u,placeholder:m="",...h}=n,v=tr(Ab,o),{onValueNodeHasChildrenChange:p}=v,b=u!==void 0,y=tt(r,v.onValueNodeChange);return Bt(()=>{p(b)},[p,b]),f.jsx(ze.span,{...h,ref:y,style:{pointerEvents:"none"},children:Zb(v.value)?f.jsx(f.Fragment,{children:m}):u})});kb.displayName=Ab;var F5="SelectIcon",jb=g.forwardRef((n,r)=>{const{__scopeSelect:o,children:s,...c}=n;return f.jsx(ze.span,{"aria-hidden":!0,...c,ref:r,children:s||"▼"})});jb.displayName=F5;var W5="SelectPortal",_b=n=>f.jsx(Hf,{asChild:!0,...n});_b.displayName=W5;var Ar="SelectContent",Mb=g.forwardRef((n,r)=>{const o=tr(Ar,n.__scopeSelect),[s,c]=g.useState();if(Bt(()=>{c(new DocumentFragment)},[]),!o.open){const u=s;return u?ns.createPortal(f.jsx(Ob,{scope:n.__scopeSelect,children:f.jsx(dc.Slot,{scope:n.__scopeSelect,children:f.jsx("div",{children:n.children})})}),u):null}return f.jsx(Db,{...n,ref:r})});Mb.displayName=Ar;var Nn=10,[Ob,nr]=$o(Ar),J5="SelectContentImpl",ek=Wl("SelectContent.RemoveScroll"),Db=g.forwardRef((n,r)=>{const{__scopeSelect:o,position:s="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:u,onPointerDownOutside:m,side:h,sideOffset:v,align:p,alignOffset:b,arrowPadding:y,collisionBoundary:S,collisionPadding:T,sticky:E,hideWhenDetached:N,avoidCollisions:C,...A}=n,j=tr(Ar,o),[M,U]=g.useState(null),[H,G]=g.useState(null),V=tt(r,ue=>U(ue)),[$,re]=g.useState(null),[de,fe]=g.useState(null),F=fc(o),[te,ce]=g.useState(!1),J=g.useRef(!1);g.useEffect(()=>{if(M)return Ry(M)},[M]),yy();const _=g.useCallback(ue=>{const[ie,...ae]=F().map(xe=>xe.ref.current),[be]=ae.slice(-1),ve=document.activeElement;for(const xe of ue)if(xe===ve||(xe==null||xe.scrollIntoView({block:"nearest"}),xe===ie&&H&&(H.scrollTop=0),xe===be&&H&&(H.scrollTop=H.scrollHeight),xe==null||xe.focus(),document.activeElement!==ve))return},[F,H]),q=g.useCallback(()=>_([$,M]),[_,$,M]);g.useEffect(()=>{te&&q()},[te,q]);const{onOpenChange:K,triggerPointerDownPosRef:me}=j;g.useEffect(()=>{if(M){let ue={x:0,y:0};const ie=be=>{var ve,xe;ue={x:Math.abs(Math.round(be.pageX)-(((ve=me.current)==null?void 0:ve.x)??0)),y:Math.abs(Math.round(be.pageY)-(((xe=me.current)==null?void 0:xe.y)??0))}},ae=be=>{ue.x<=10&&ue.y<=10?be.preventDefault():M.contains(be.target)||K(!1),document.removeEventListener("pointermove",ie),me.current=null};return me.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",ae,{capture:!0})}}},[M,K,me]),g.useEffect(()=>{const ue=()=>K(!1);return window.addEventListener("blur",ue),window.addEventListener("resize",ue),()=>{window.removeEventListener("blur",ue),window.removeEventListener("resize",ue)}},[K]);const[R,Y]=Fb(ue=>{const ie=F().filter(ve=>!ve.disabled),ae=ie.find(ve=>ve.ref.current===document.activeElement),be=Wb(ie,ue,ae);be&&setTimeout(()=>be.ref.current.focus())}),se=g.useCallback((ue,ie,ae)=>{const be=!J.current&&!ae;(j.value!==void 0&&j.value===ie||be)&&(re(ue),be&&(J.current=!0))},[j.value]),X=g.useCallback(()=>M==null?void 0:M.focus(),[M]),ne=g.useCallback((ue,ie,ae)=>{const be=!J.current&&!ae;(j.value!==void 0&&j.value===ie||be)&&fe(ue)},[j.value]),W=s==="popper"?df:zb,ee=W===df?{side:h,sideOffset:v,align:p,alignOffset:b,arrowPadding:y,collisionBoundary:S,collisionPadding:T,sticky:E,hideWhenDetached:N,avoidCollisions:C}:{};return f.jsx(Ob,{scope:o,content:M,viewport:H,onViewportChange:G,itemRefCallback:se,selectedItem:$,onItemLeave:X,itemTextRefCallback:ne,focusSelectedItem:q,selectedItemText:de,position:s,isPositioned:te,searchRef:R,children:f.jsx($f,{as:ek,allowPinchZoom:!0,children:f.jsx(Bf,{asChild:!0,trapped:j.open,onMountAutoFocus:ue=>{ue.preventDefault()},onUnmountAutoFocus:De(c,ue=>{var ie;(ie=j.trigger)==null||ie.focus({preventScroll:!0}),ue.preventDefault()}),children:f.jsx(Uf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:ue=>ue.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:f.jsx(W,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:ue=>ue.preventDefault(),...A,...ee,onPlaced:()=>ce(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:De(A.onKeyDown,ue=>{const ie=ue.ctrlKey||ue.altKey||ue.metaKey;if(ue.key==="Tab"&&ue.preventDefault(),!ie&&ue.key.length===1&&Y(ue.key),["ArrowUp","ArrowDown","Home","End"].includes(ue.key)){let be=F().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);if(["ArrowUp","End"].includes(ue.key)&&(be=be.slice().reverse()),["ArrowUp","ArrowDown"].includes(ue.key)){const ve=ue.target,xe=be.indexOf(ve);be=be.slice(xe+1)}setTimeout(()=>_(be)),ue.preventDefault()}})})})})})})});Db.displayName=J5;var tk="SelectItemAlignedPosition",zb=g.forwardRef((n,r)=>{const{__scopeSelect:o,onPlaced:s,...c}=n,u=tr(Ar,o),m=nr(Ar,o),[h,v]=g.useState(null),[p,b]=g.useState(null),y=tt(r,V=>b(V)),S=fc(o),T=g.useRef(!1),E=g.useRef(!0),{viewport:N,selectedItem:C,selectedItemText:A,focusSelectedItem:j}=m,M=g.useCallback(()=>{if(u.trigger&&u.valueNode&&h&&p&&N&&C&&A){const V=u.trigger.getBoundingClientRect(),$=p.getBoundingClientRect(),re=u.valueNode.getBoundingClientRect(),de=A.getBoundingClientRect();if(u.dir!=="rtl"){const ve=de.left-$.left,xe=re.left-ve,Ue=V.left-xe,Ve=V.width+Ue,$e=Math.max(Ve,$.width),bt=window.innerWidth-Nn,Pe=Vv(xe,[Nn,Math.max(Nn,bt-$e)]);h.style.minWidth=Ve+"px",h.style.left=Pe+"px"}else{const ve=$.right-de.right,xe=window.innerWidth-re.right-ve,Ue=window.innerWidth-V.right-xe,Ve=V.width+Ue,$e=Math.max(Ve,$.width),bt=window.innerWidth-Nn,Pe=Vv(xe,[Nn,Math.max(Nn,bt-$e)]);h.style.minWidth=Ve+"px",h.style.right=Pe+"px"}const fe=S(),F=window.innerHeight-Nn*2,te=N.scrollHeight,ce=window.getComputedStyle(p),J=parseInt(ce.borderTopWidth,10),_=parseInt(ce.paddingTop,10),q=parseInt(ce.borderBottomWidth,10),K=parseInt(ce.paddingBottom,10),me=J+_+te+K+q,R=Math.min(C.offsetHeight*5,me),Y=window.getComputedStyle(N),se=parseInt(Y.paddingTop,10),X=parseInt(Y.paddingBottom,10),ne=V.top+V.height/2-Nn,W=F-ne,ee=C.offsetHeight/2,ue=C.offsetTop+ee,ie=J+_+ue,ae=me-ie;if(ie<=ne){const ve=fe.length>0&&C===fe[fe.length-1].ref.current;h.style.bottom="0px";const xe=p.clientHeight-N.offsetTop-N.offsetHeight,Ue=Math.max(W,ee+(ve?X:0)+xe+q),Ve=ie+Ue;h.style.height=Ve+"px"}else{const ve=fe.length>0&&C===fe[0].ref.current;h.style.top="0px";const Ue=Math.max(ne,J+N.offsetTop+(ve?se:0)+ee)+ae;h.style.height=Ue+"px",N.scrollTop=ie-ne+N.offsetTop}h.style.margin=`${Nn}px 0`,h.style.minHeight=R+"px",h.style.maxHeight=F+"px",s==null||s(),requestAnimationFrame(()=>T.current=!0)}},[S,u.trigger,u.valueNode,h,p,N,C,A,u.dir,s]);Bt(()=>M(),[M]);const[U,H]=g.useState();Bt(()=>{p&&H(window.getComputedStyle(p).zIndex)},[p]);const G=g.useCallback(V=>{V&&E.current===!0&&(M(),j==null||j(),E.current=!1)},[M,j]);return f.jsx(ak,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:T,onScrollButtonChange:G,children:f.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:U},children:f.jsx(ze.div,{...c,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});zb.displayName=tk;var nk="SelectPopperPosition",df=g.forwardRef((n,r)=>{const{__scopeSelect:o,align:s="start",collisionPadding:c=Nn,...u}=n,m=mc(o);return f.jsx(P5,{...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)"}})});df.displayName=nk;var[ak,am]=$o(Ar,{}),ff="SelectViewport",Lb=g.forwardRef((n,r)=>{const{__scopeSelect:o,nonce:s,...c}=n,u=nr(ff,o),m=am(ff,o),h=tt(r,u.onViewportChange),v=g.useRef(0);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),f.jsx(dc.Slot,{scope:o,children:f.jsx(ze.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:De(c.onScroll,p=>{const b=p.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:S}=m;if(S!=null&&S.current&&y){const T=Math.abs(v.current-b.scrollTop);if(T>0){const E=window.innerHeight-Nn*2,N=parseFloat(y.style.minHeight),C=parseFloat(y.style.height),A=Math.max(N,C);if(A<E){const j=A+T,M=Math.min(E,j),U=j-M;y.style.height=M+"px",y.style.bottom==="0px"&&(b.scrollTop=U>0?U:0,y.style.justifyContent="flex-end")}}}v.current=b.scrollTop})})})]})});Lb.displayName=ff;var Ub="SelectGroup",[rk,ok]=$o(Ub),lk=g.forwardRef((n,r)=>{const{__scopeSelect:o,...s}=n,c=Qa();return f.jsx(rk,{scope:o,id:c,children:f.jsx(ze.div,{role:"group","aria-labelledby":c,...s,ref:r})})});lk.displayName=Ub;var Bb="SelectLabel",Hb=g.forwardRef((n,r)=>{const{__scopeSelect:o,...s}=n,c=ok(Bb,o);return f.jsx(ze.div,{id:c.id,...s,ref:r})});Hb.displayName=Bb;var Yi="SelectItem",[sk,$b]=$o(Yi),Pb=g.forwardRef((n,r)=>{const{__scopeSelect:o,value:s,disabled:c=!1,textValue:u,...m}=n,h=tr(Yi,o),v=nr(Yi,o),p=h.value===s,[b,y]=g.useState(u??""),[S,T]=g.useState(!1),E=tt(r,j=>{var M;return(M=v.itemRefCallback)==null?void 0:M.call(v,j,s,c)}),N=Qa(),C=g.useRef("touch"),A=()=>{c||(h.onValueChange(s),h.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return f.jsx(sk,{scope:o,value:s,disabled:c,textId:N,isSelected:p,onItemTextChange:g.useCallback(j=>{y(M=>M||((j==null?void 0:j.textContent)??"").trim())},[]),children:f.jsx(dc.ItemSlot,{scope:o,value:s,disabled:c,textValue:b,children:f.jsx(ze.div,{role:"option","aria-labelledby":N,"data-highlighted":S?"":void 0,"aria-selected":p&&S,"data-state":p?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...m,ref:E,onFocus:De(m.onFocus,()=>T(!0)),onBlur:De(m.onBlur,()=>T(!1)),onClick:De(m.onClick,()=>{C.current!=="mouse"&&A()}),onPointerUp:De(m.onPointerUp,()=>{C.current==="mouse"&&A()}),onPointerDown:De(m.onPointerDown,j=>{C.current=j.pointerType}),onPointerMove:De(m.onPointerMove,j=>{var M;C.current=j.pointerType,c?(M=v.onItemLeave)==null||M.call(v):C.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:De(m.onPointerLeave,j=>{var M;j.currentTarget===document.activeElement&&((M=v.onItemLeave)==null||M.call(v))}),onKeyDown:De(m.onKeyDown,j=>{var U;((U=v.searchRef)==null?void 0:U.current)!==""&&j.key===" "||(I5.includes(j.key)&&A(),j.key===" "&&j.preventDefault())})})})})});Pb.displayName=Yi;var Gl="SelectItemText",qb=g.forwardRef((n,r)=>{const{__scopeSelect:o,className:s,style:c,...u}=n,m=tr(Gl,o),h=nr(Gl,o),v=$b(Gl,o),p=Z5(Gl,o),[b,y]=g.useState(null),S=tt(r,A=>y(A),v.onItemTextChange,A=>{var j;return(j=h.itemTextRefCallback)==null?void 0:j.call(h,A,v.value,v.disabled)}),T=b==null?void 0:b.textContent,E=g.useMemo(()=>f.jsx("option",{value:v.value,disabled:v.disabled,children:T},v.value),[v.disabled,v.value,T]),{onNativeOptionAdd:N,onNativeOptionRemove:C}=p;return Bt(()=>(N(E),()=>C(E)),[N,C,E]),f.jsxs(f.Fragment,{children:[f.jsx(ze.span,{id:v.textId,...u,ref:S}),v.isSelected&&m.valueNode&&!m.valueNodeHasChildren?ns.createPortal(u.children,m.valueNode):null]})});qb.displayName=Gl;var Vb="SelectItemIndicator",Yb=g.forwardRef((n,r)=>{const{__scopeSelect:o,...s}=n;return $b(Vb,o).isSelected?f.jsx(ze.span,{"aria-hidden":!0,...s,ref:r}):null});Yb.displayName=Vb;var mf="SelectScrollUpButton",Gb=g.forwardRef((n,r)=>{const o=nr(mf,n.__scopeSelect),s=am(mf,n.__scopeSelect),[c,u]=g.useState(!1),m=tt(r,s.onScrollButtonChange);return Bt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=v.scrollTop>0;u(p)};const v=o.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?f.jsx(Xb,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=o;h&&v&&(h.scrollTop=h.scrollTop-v.offsetHeight)}}):null});Gb.displayName=mf;var hf="SelectScrollDownButton",Ib=g.forwardRef((n,r)=>{const o=nr(hf,n.__scopeSelect),s=am(hf,n.__scopeSelect),[c,u]=g.useState(!1),m=tt(r,s.onScrollButtonChange);return Bt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=v.scrollHeight-v.clientHeight,b=Math.ceil(v.scrollTop)<p;u(b)};const v=o.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?f.jsx(Xb,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=o;h&&v&&(h.scrollTop=h.scrollTop+v.offsetHeight)}}):null});Ib.displayName=hf;var Xb=g.forwardRef((n,r)=>{const{__scopeSelect:o,onAutoScroll:s,...c}=n,u=nr("SelectScrollButton",o),m=g.useRef(null),h=fc(o),v=g.useCallback(()=>{m.current!==null&&(window.clearInterval(m.current),m.current=null)},[]);return g.useEffect(()=>()=>v(),[v]),Bt(()=>{var b;const p=h().find(y=>y.ref.current===document.activeElement);(b=p==null?void 0:p.ref.current)==null||b.scrollIntoView({block:"nearest"})},[h]),f.jsx(ze.div,{"aria-hidden":!0,...c,ref:r,style:{flexShrink:0,...c.style},onPointerDown:De(c.onPointerDown,()=>{m.current===null&&(m.current=window.setInterval(s,50))}),onPointerMove:De(c.onPointerMove,()=>{var p;(p=u.onItemLeave)==null||p.call(u),m.current===null&&(m.current=window.setInterval(s,50))}),onPointerLeave:De(c.onPointerLeave,()=>{v()})})}),ik="SelectSeparator",Qb=g.forwardRef((n,r)=>{const{__scopeSelect:o,...s}=n;return f.jsx(ze.div,{"aria-hidden":!0,...s,ref:r})});Qb.displayName=ik;var pf="SelectArrow",ck=g.forwardRef((n,r)=>{const{__scopeSelect:o,...s}=n,c=mc(o),u=tr(pf,o),m=nr(pf,o);return u.open&&m.position==="popper"?f.jsx(q5,{...c,...s,ref:r}):null});ck.displayName=pf;var uk="SelectBubbleInput",Kb=g.forwardRef(({__scopeSelect:n,value:r,...o},s)=>{const c=g.useRef(null),u=tt(s,c),m=Eb(r);return g.useEffect(()=>{const h=c.current;if(!h)return;const v=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(v,"value").set;if(m!==r&&b){const y=new Event("change",{bubbles:!0});b.call(h,r),h.dispatchEvent(y)}},[m,r]),f.jsx(ze.select,{...o,style:{...Nb,...o.style},ref:u,defaultValue:r})});Kb.displayName=uk;function Zb(n){return n===""||n===void 0}function Fb(n){const r=Za(n),o=g.useRef(""),s=g.useRef(0),c=g.useCallback(m=>{const h=o.current+m;r(h),(function v(p){o.current=p,window.clearTimeout(s.current),p!==""&&(s.current=window.setTimeout(()=>v(""),1e3))})(h)},[r]),u=g.useCallback(()=>{o.current="",window.clearTimeout(s.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(s.current),[]),[o,c,u]}function Wb(n,r,o){const c=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,u=o?n.indexOf(o):-1;let m=dk(n,Math.max(u,0));c.length===1&&(m=m.filter(p=>p!==o));const v=m.find(p=>p.textValue.toLowerCase().startsWith(c.toLowerCase()));return v!==o?v:void 0}function dk(n,r){return n.map((o,s)=>n[(r+s)%n.length])}var fk=Tb,Jb=Rb,mk=kb,hk=jb,pk=_b,ex=Mb,gk=Lb,tx=Hb,nx=Pb,vk=qb,yk=Yb,ax=Gb,rx=Ib,ox=Qb;const lx=fk,sx=mk,rm=g.forwardRef(({className:n,children:r,...o},s)=>f.jsxs(Jb,{ref:s,className:le("flex h-8 w-full items-center justify-between rounded-sm border border-input/85 bg-background/72 px-2.5 py-1.5 text-[11px] shadow-sm ring-offset-background transition-all duration-200 placeholder:text-muted-foreground focus:border-primary/45 focus:bg-background/90 focus:outline-none focus:ring-2 focus:ring-ring/45 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...o,children:[r,f.jsx(hk,{asChild:!0,children:f.jsx(Fl,{className:"h-4 w-4 opacity-50"})})]}));rm.displayName=Jb.displayName;const ix=g.forwardRef(({className:n,...r},o)=>f.jsx(ax,{ref:o,className:le("flex cursor-default items-center justify-center py-1",n),...r,children:f.jsx(wN,{className:"h-4 w-4"})}));ix.displayName=ax.displayName;const cx=g.forwardRef(({className:n,...r},o)=>f.jsx(rx,{ref:o,className:le("flex cursor-default items-center justify-center py-1",n),...r,children:f.jsx(Fl,{className:"h-4 w-4"})}));cx.displayName=rx.displayName;const om=g.forwardRef(({className:n,children:r,position:o="popper",...s},c)=>f.jsx(pk,{children:f.jsxs(ex,{ref:c,className:le("relative z-50 max-h-80 min-w-[8rem] overflow-hidden rounded-sm border border-border/70 bg-popover/96 text-popover-foreground shadow-[0_16px_48px_-34px_rgba(0,0,0,0.45)] backdrop-blur-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:o,...s,children:[f.jsx(ix,{}),f.jsx(gk,{className:le("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),f.jsx(cx,{})]})}));om.displayName=ex.displayName;const bk=g.forwardRef(({className:n,...r},o)=>f.jsx(tx,{ref:o,className:le("py-1 pl-6 pr-2 text-[10px] font-semibold",n),...r}));bk.displayName=tx.displayName;const Ro=g.forwardRef(({className:n,children:r,...o},s)=>f.jsxs(nx,{ref:s,className:le("relative flex w-full cursor-default select-none items-center rounded-sm py-1 pl-6 pr-2 text-[11px] outline-none transition-colors focus:bg-accent/80 focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...o,children:[f.jsx("span",{className:"absolute left-1.5 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(yk,{children:f.jsx(Li,{className:"h-3.5 w-3.5"})})}),f.jsx(vk,{children:r})]}));Ro.displayName=nx.displayName;const xk=g.forwardRef(({className:n,...r},o)=>f.jsx(ox,{ref:o,className:le("-mx-1 my-1 h-px bg-muted",n),...r}));xk.displayName=ox.displayName;var Id="rovingFocusGroup.onEntryFocus",Sk={bubbles:!1,cancelable:!0},rs="RovingFocusGroup",[gf,ux,wk]=Jy(rs),[Ek,dx]=er(rs,[wk]),[Nk,Tk]=Ek(rs),fx=g.forwardRef((n,r)=>f.jsx(gf.Provider,{scope:n.__scopeRovingFocusGroup,children:f.jsx(gf.Slot,{scope:n.__scopeRovingFocusGroup,children:f.jsx(Ck,{...n,ref:r})})}));fx.displayName=rs;var Ck=g.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:o,orientation:s,loop:c=!1,dir:u,currentTabStopId:m,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:v,onEntryFocus:p,preventScrollOnEntryFocus:b=!1,...y}=n,S=g.useRef(null),T=tt(r,S),E=Qf(u),[N,C]=_o({prop:m,defaultProp:h??null,onChange:v,caller:rs}),[A,j]=g.useState(!1),M=Za(p),U=ux(o),H=g.useRef(!1),[G,V]=g.useState(0);return g.useEffect(()=>{const $=S.current;if($)return $.addEventListener(Id,M),()=>$.removeEventListener(Id,M)},[M]),f.jsx(Nk,{scope:o,orientation:s,dir:E,loop:c,currentTabStopId:N,onItemFocus:g.useCallback($=>C($),[C]),onItemShiftTab:g.useCallback(()=>j(!0),[]),onFocusableItemAdd:g.useCallback(()=>V($=>$+1),[]),onFocusableItemRemove:g.useCallback(()=>V($=>$-1),[]),children:f.jsx(ze.div,{tabIndex:A||G===0?-1:0,"data-orientation":s,...y,ref:T,style:{outline:"none",...n.style},onMouseDown:De(n.onMouseDown,()=>{H.current=!0}),onFocus:De(n.onFocus,$=>{const re=!H.current;if($.target===$.currentTarget&&re&&!A){const de=new CustomEvent(Id,Sk);if($.currentTarget.dispatchEvent(de),!de.defaultPrevented){const fe=U().filter(_=>_.focusable),F=fe.find(_=>_.active),te=fe.find(_=>_.id===N),J=[F,te,...fe].filter(Boolean).map(_=>_.ref.current);px(J,b)}}H.current=!1}),onBlur:De(n.onBlur,()=>j(!1))})})}),mx="RovingFocusGroupItem",hx=g.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:o,focusable:s=!0,active:c=!1,tabStopId:u,children:m,...h}=n,v=Qa(),p=u||v,b=Tk(mx,o),y=b.currentTabStopId===p,S=ux(o),{onFocusableItemAdd:T,onFocusableItemRemove:E,currentTabStopId:N}=b;return g.useEffect(()=>{if(s)return T(),()=>E()},[s,T,E]),f.jsx(gf.ItemSlot,{scope:o,id:p,focusable:s,active:c,children:f.jsx(ze.span,{tabIndex:y?0:-1,"data-orientation":b.orientation,...h,ref:r,onMouseDown:De(n.onMouseDown,C=>{s?b.onItemFocus(p):C.preventDefault()}),onFocus:De(n.onFocus,()=>b.onItemFocus(p)),onKeyDown:De(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){b.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const A=kk(C,b.orientation,b.dir);if(A!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let M=S().filter(U=>U.focusable).map(U=>U.ref.current);if(A==="last")M.reverse();else if(A==="prev"||A==="next"){A==="prev"&&M.reverse();const U=M.indexOf(C.currentTarget);M=b.loop?jk(M,U+1):M.slice(U+1)}setTimeout(()=>px(M))}}),children:typeof m=="function"?m({isCurrentTabStop:y,hasTabStop:N!=null}):m})})});hx.displayName=mx;var Rk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ak(n,r){return r!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function kk(n,r,o){const s=Ak(n.key,o);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return Rk[s]}function px(n,r=!1){const o=document.activeElement;for(const s of n)if(s===o||(s.focus({preventScroll:r}),document.activeElement!==o))return}function jk(n,r){return n.map((o,s)=>n[(r+s)%n.length])}var _k=fx,Mk=hx,hc="Tabs",[Ok]=er(hc,[dx]),gx=dx(),[Dk,lm]=Ok(hc),vx=g.forwardRef((n,r)=>{const{__scopeTabs:o,value:s,onValueChange:c,defaultValue:u,orientation:m="horizontal",dir:h,activationMode:v="automatic",...p}=n,b=Qf(h),[y,S]=_o({prop:s,onChange:c,defaultProp:u??"",caller:hc});return f.jsx(Dk,{scope:o,baseId:Qa(),value:y,onValueChange:S,orientation:m,dir:b,activationMode:v,children:f.jsx(ze.div,{dir:b,"data-orientation":m,...p,ref:r})})});vx.displayName=hc;var yx="TabsList",bx=g.forwardRef((n,r)=>{const{__scopeTabs:o,loop:s=!0,...c}=n,u=lm(yx,o),m=gx(o);return f.jsx(_k,{asChild:!0,...m,orientation:u.orientation,dir:u.dir,loop:s,children:f.jsx(ze.div,{role:"tablist","aria-orientation":u.orientation,...c,ref:r})})});bx.displayName=yx;var xx="TabsTrigger",Sx=g.forwardRef((n,r)=>{const{__scopeTabs:o,value:s,disabled:c=!1,...u}=n,m=lm(xx,o),h=gx(o),v=Nx(m.baseId,s),p=Tx(m.baseId,s),b=s===m.value;return f.jsx(Mk,{asChild:!0,...h,focusable:!c,active:b,children:f.jsx(ze.button,{type:"button",role:"tab","aria-selected":b,"aria-controls":p,"data-state":b?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:v,...u,ref:r,onMouseDown:De(n.onMouseDown,y=>{!c&&y.button===0&&y.ctrlKey===!1?m.onValueChange(s):y.preventDefault()}),onKeyDown:De(n.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&m.onValueChange(s)}),onFocus:De(n.onFocus,()=>{const y=m.activationMode!=="manual";!b&&!c&&y&&m.onValueChange(s)})})})});Sx.displayName=xx;var wx="TabsContent",Ex=g.forwardRef((n,r)=>{const{__scopeTabs:o,value:s,forceMount:c,children:u,...m}=n,h=lm(wx,o),v=Nx(h.baseId,s),p=Tx(h.baseId,s),b=s===h.value,y=g.useRef(b);return g.useEffect(()=>{const S=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(S)},[]),f.jsx(Uo,{present:c||b,children:({present:S})=>f.jsx(ze.div,{"data-state":b?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":v,hidden:!S,id:p,tabIndex:0,...m,ref:r,style:{...n.style,animationDuration:y.current?"0s":void 0},children:S&&u})})});Ex.displayName=wx;function Nx(n,r){return`${n}-trigger-${r}`}function Tx(n,r){return`${n}-content-${r}`}var zk=vx,Cx=bx,Rx=Sx,Ax=Ex;const Lk=zk,kx=g.forwardRef(({className:n,...r},o)=>f.jsx(Cx,{ref:o,className:le("inline-flex h-8 items-center justify-center rounded-sm bg-muted/72 p-0.5 text-muted-foreground shadow-inner shadow-background/40",n),...r}));kx.displayName=Cx.displayName;const Il=g.forwardRef(({className:n,...r},o)=>f.jsx(Rx,{ref:o,className:le("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-2 py-0.5 text-[11px] font-semibold ring-offset-background transition-all duration-200 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary/12 data-[state=active]:text-primary data-[state=active]:shadow-[0_10px_28px_-18px_hsl(var(--primary)/0.85)]",n),...r}));Il.displayName=Rx.displayName;const Xl=g.forwardRef(({className:n,...r},o)=>f.jsx(Ax,{ref:o,className:le("mt-2 ring-offset-background data-[state=inactive]:hidden focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n),...r}));Xl.displayName=Ax.displayName;var jx="AlertDialog",[Uk]=er(jx,[ky]),ya=ky(),_x=n=>{const{__scopeAlertDialog:r,...o}=n,s=ya(r);return f.jsx(Gy,{...s,...o,modal:!0})};_x.displayName=jx;var Bk="AlertDialogTrigger",Mx=g.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,c=ya(o);return f.jsx(Iy,{...c,...s,ref:r})});Mx.displayName=Bk;var Hk="AlertDialogPortal",Ox=n=>{const{__scopeAlertDialog:r,...o}=n,s=ya(r);return f.jsx(Xy,{...s,...o})};Ox.displayName=Hk;var $k="AlertDialogOverlay",Dx=g.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,c=ya(o);return f.jsx(Yf,{...c,...s,ref:r})});Dx.displayName=$k;var jo="AlertDialogContent",[Pk,qk]=Uk(jo),Vk=tR("AlertDialogContent"),zx=g.forwardRef((n,r)=>{const{__scopeAlertDialog:o,children:s,...c}=n,u=ya(o),m=g.useRef(null),h=tt(r,m),v=g.useRef(null);return f.jsx(vA,{contentName:jo,titleName:Lx,docsSlug:"alert-dialog",children:f.jsx(Pk,{scope:o,cancelRef:v,children:f.jsxs(Gf,{role:"alertdialog",...u,...c,ref:h,onOpenAutoFocus:De(c.onOpenAutoFocus,p=>{var b;p.preventDefault(),(b=v.current)==null||b.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[f.jsx(Vk,{children:s}),f.jsx(Gk,{contentRef:m})]})})})});zx.displayName=jo;var Lx="AlertDialogTitle",Ux=g.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,c=ya(o);return f.jsx(If,{...c,...s,ref:r})});Ux.displayName=Lx;var Bx="AlertDialogDescription",Hx=g.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,c=ya(o);return f.jsx(Xf,{...c,...s,ref:r})});Hx.displayName=Bx;var Yk="AlertDialogAction",$x=g.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,c=ya(o);return f.jsx(lc,{...c,...s,ref:r})});$x.displayName=Yk;var Px="AlertDialogCancel",qx=g.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,{cancelRef:c}=qk(Px,o),u=ya(o),m=tt(r,c);return f.jsx(lc,{...u,...s,ref:m})});qx.displayName=Px;var Gk=({contentRef:n})=>{const r=`\`${jo}\` requires a description for the component to be accessible for screen reader users.
|
|
336
|
+
|
|
337
|
+
You can add a description to the \`${jo}\` by passing a \`${Bx}\` 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 \`${jo}\`. 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 g.useEffect(()=>{var s;document.getElementById((s=n.current)==null?void 0:s.getAttribute("aria-describedby"))||console.warn(r)},[r,n]),null},Ik=_x,Xk=Mx,Qk=Ox,Vx=Dx,Yx=zx,Gx=$x,Ix=qx,Xx=Ux,Qx=Hx;const vf=Ik,yf=Xk,Kk=Qk,Kx=g.forwardRef(({className:n,...r},o)=>f.jsx(Vx,{className:le("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...r,ref:o}));Kx.displayName=Vx.displayName;const Gi=g.forwardRef(({className:n,...r},o)=>f.jsxs(Kk,{children:[f.jsx(Kx,{}),f.jsx(Yx,{ref:o,className:le("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-3 rounded-sm border bg-background p-4 shadow-[0_24px_84px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...r})]}));Gi.displayName=Yx.displayName;const Ii=({className:n,...r})=>f.jsx("div",{className:le("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});Ii.displayName="AlertDialogHeader";const Xi=({className:n,...r})=>f.jsx("div",{className:le("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});Xi.displayName="AlertDialogFooter";const Qi=g.forwardRef(({className:n,...r},o)=>f.jsx(Xx,{ref:o,className:le("text-sm font-semibold",n),...r}));Qi.displayName=Xx.displayName;const Ki=g.forwardRef(({className:n,...r},o)=>f.jsx(Qx,{ref:o,className:le("text-[11px] text-muted-foreground",n),...r}));Ki.displayName=Qx.displayName;const Zi=g.forwardRef(({className:n,...r},o)=>f.jsx(Gx,{ref:o,className:le(Lf(),n),...r}));Zi.displayName=Gx.displayName;const Fi=g.forwardRef(({className:n,...r},o)=>f.jsx(Ix,{ref:o,className:le(Lf({variant:"outline"}),"mt-2 sm:mt-0",n),...r}));Fi.displayName=Ix.displayName;const Zk={online:"bg-emerald-500",busy:"bg-amber-500",offline:"bg-destructive"};function Fk({status:n}){return f.jsxs("span",{className:"relative inline-flex h-2.5 w-2.5",children:[n==="online"&&f.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-emerald-500 opacity-30"}),f.jsx("span",{className:le("relative inline-flex h-2.5 w-2.5 rounded-full",Zk[n])})]})}function Wk({role:n,size:r="default"}){return f.jsx(Nt,{variant:n==="leader"?"default":"secondary",className:le(r==="compact"?"px-1.5 py-0 text-[9px] leading-4":"text-[11px]"),children:n})}const Zx={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 lM({status:n,size:r="default"}){const o=Zx[n],s=r==="compact"?"gap-0.5 px-1 py-0 text-[8px] leading-3 [&>span]:h-[3px] [&>span]:w-[3px]":"gap-1 px-1.5 py-0 text-[10px] leading-4 [&>span]:h-[5px] [&>span]:w-[5px]";return f.jsxs(Nt,{variant:o.variant,className:le("rounded-sm font-medium shadow-none",s,o.className),children:[f.jsx("span",{className:le("rounded-full",o.dotClass)}),n]})}function sM({status:n,isNative:r=!1,size:o="default",className:s}){const c=Zx[n],u=[n,r?"native":null].filter(Boolean).join(", "),m=o==="compact"?"h-1.5 w-1.5":"h-2 w-2";return f.jsxs("span",{className:le("inline-flex shrink-0 items-center gap-1",s),title:u,"aria-label":u,children:[f.jsx("span",{className:le("rounded-full",m,c.dotClass),title:n}),r&&f.jsx("span",{className:le("rounded-full bg-sky-500",m),title:"native"})]})}const Jk={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function iM({priority:n}){const r=Jk[n];return f.jsx(Nt,{variant:r.variant,className:"rounded-sm px-1.5 py-0 text-[10px] leading-4 shadow-none",children:r.label})}function ej(n){return[{key:"workspace",label:"Workspace",value:n==null?void 0:n.workspace},{key:"node",label:"Node app",value:n==null?void 0:n.node},{key:"core",label:"Core",value:n==null?void 0:n.core},{key:"dashboard",label:"Dashboard",value:n==null?void 0:n.dashboard},{key:"api",label:"API",value:n==null?void 0:n.api}].filter(o=>o.value)}function Eo({label:n,value:r,mono:o=!1}){return f.jsxs("div",{className:"min-w-0 rounded-sm border border-border/60 bg-background/65 px-2.5 py-1.5",children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:n}),f.jsx("div",{className:o?"mt-0.5 break-all font-mono text-[11px] text-foreground":"mt-0.5 break-all text-[11px] text-foreground",children:r})]})}function tj({formatDateTime:n,viewInfo:r}){var s,c,u,m,h,v,p,b;const o=ej(r.packages);return f.jsxs(Xl,{value:"about","data-about-layout":"compact",className:"mt-0 space-y-2",children:[f.jsxs(Un,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(hN,{className:"h-3.5 w-3.5 text-primary"}),"Repository & runtime"]}),f.jsx($n,{className:"text-[10px]",children:"Build source and runtime identity for this node."})]}),f.jsxs(Pn,{className:"space-y-2 px-3 pb-2.5",children:[(s=r.repository)!=null&&s.url?f.jsxs("a",{href:r.repository.url,target:"_blank",rel:"noreferrer",className:"group flex min-w-0 items-center justify-between gap-2 rounded-sm border border-border/70 bg-background/70 px-2.5 py-1.5 text-[11px] text-foreground transition-colors hover:border-primary/40 hover:bg-primary/5",children:[f.jsx("span",{className:"truncate font-mono text-[10px]",children:r.repository.url}),f.jsx(ON,{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(Eo,{label:"Branch",value:((c=r.repository)==null?void 0:c.branch)??"Unavailable",mono:!!((u=r.repository)!=null&&u.branch)}),f.jsx(Eo,{label:"Commit",value:((m=r.repository)==null?void 0:m.commit)??"Unavailable",mono:!!((h=r.repository)!=null&&h.commit)}),f.jsx(Eo,{label:"Runtime",value:`${r.packageName??"meshy"} ${r.version}`,mono:!0}),f.jsx(Eo,{label:"Node.js",value:((v=r.runtime)==null?void 0:v.nodeVersion)??"Unavailable",mono:!!((p=r.runtime)!=null&&p.nodeVersion)}),f.jsx(Eo,{label:"PID",value:r.runtime?String(r.runtime.pid):"Unavailable",mono:!!r.runtime}),f.jsx(Eo,{label:"Started",value:n((b=r.runtime)==null?void 0:b.startedAt)})]})]})]}),f.jsxs(Un,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(HN,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),f.jsx($n,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),f.jsx(Pn,{"data-package-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:o.map(y=>{var S,T;return f.jsxs("div",{className:"grid gap-1.5 rounded-sm border border-border/60 bg-background/65 px-2.5 py-1.5 sm:grid-cols-[9rem_minmax(0,1fr)_auto] sm:items-center",children:[f.jsx("div",{className:"text-[11px] font-medium text-foreground",children:y.label}),f.jsx("div",{className:"min-w-0 truncate text-[10px] text-muted-foreground",children:(S=y.value)==null?void 0:S.name}),f.jsx(Nt,{variant:"outline",className:"w-fit rounded-sm border-border/70 bg-background/60 font-mono text-[10px]",children:(T=y.value)==null?void 0:T.version})]},y.key)})})]})]})}const pc=g.forwardRef(({className:n,type:r,...o},s)=>f.jsx("input",{type:r,className:le("flex h-8 w-full rounded-sm border border-input/85 bg-background/72 px-2.5 py-1.5 text-[11px] shadow-sm ring-offset-background transition-all duration-200 file:border-0 file:bg-transparent file:text-[11px] file:font-medium file:text-foreground placeholder:text-muted-foreground/75 focus-visible:border-primary/45 focus-visible:bg-background/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/45 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),ref:s,...o}));pc.displayName="Input";function nj(){return Se("/system/quick-chats")}function aj(n){return Se("/system/quick-chats",{method:"PUT",body:JSON.stringify({quickChats:n})})}const bf="quick-chats:updated";function rj(){typeof window>"u"||window.dispatchEvent(new CustomEvent(bf))}function oj(){const[n,r]=g.useState([]),[o,s]=g.useState(!0),[c,u]=g.useState(!1),[m,h]=g.useState(null),v=g.useCallback(async()=>{s(!0);try{const b=await nj();r(b.quickChats),h(null)}catch(b){h(b instanceof Error?b.message:"Failed to load quick chats")}finally{s(!1)}},[]),p=g.useCallback(async b=>{u(!0);try{const y=await aj(b);return r(y.quickChats),h(null),rj(),y.quickChats}catch(y){const S=y instanceof Error?y.message:"Failed to save quick chats";throw h(S),y}finally{u(!1)}},[]);return g.useEffect(()=>{v()},[v]),g.useEffect(()=>{if(typeof window>"u")return;const b=()=>{v()};return window.addEventListener(bf,b),()=>window.removeEventListener(bf,b)},[v]),{error:m,loading:o,quickChats:n,refresh:v,save:p,saving:c}}function Fx(n){return n.trim().replace(/^\/+/,"").toLowerCase()}function Wx(n,r){const o=n.trim();if(!o.startsWith("/"))return[];const s=Fx(o);return r.filter(c=>c.alias.startsWith(s))}function Wi(n,r){return r<=0?-1:(n%r+r)%r}function cM(n,r,o=0){const s=Wx(n,r),c=Wi(o,s.length);return c>=0?s[c]??null:null}function uM(n,r,o){const s=Wi(n,r);return s<0?0:Wi(s+o,r)}function dM({query:n,quickChats:r,selectedIndex:o=0,onSelect:s,onActiveIndexChange:c}){const u=Wx(n,r);if(u.length===0)return null;const m=Wi(o,u.length);return f.jsxs("div",{"data-quick-chat-menu":"true",className:"mx-2 mb-0.5 rounded-sm bg-background/70 p-0.5 shadow-none sm:mx-5",children:[f.jsxs("div",{className:"flex items-center gap-1 px-1 py-0.5 text-[8px] uppercase tracking-[0.14em] text-muted-foreground/75",children:[f.jsx(V0,{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,v)=>f.jsxs("button",{type:"button",role:"option","aria-selected":v===m,"data-selected":v===m?"true":void 0,onMouseEnter:()=>c==null?void 0:c(v),onClick:()=>s(h),className:le("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:le("shrink-0 font-mono text-[9px] leading-3 text-primary/70",v===m&&"text-primary"),children:["/",h.alias]}),f.jsx("span",{"data-quick-chat-prompt":"true",className:le("line-clamp-1 min-w-0 text-[9px] leading-3 text-muted-foreground",v===m&&"text-primary/90"),children:h.prompt})]},h.alias))})]})}const lj="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 sj=0;function Mi(n,r=0){return{id:n?`${n.alias}:${r}`:`new:${sj++}`,alias:(n==null?void 0:n.alias)??"",prompt:(n==null?void 0:n.prompt)??""}}function xf(n){return{quickChats:n.map(r=>({alias:Fx(r.alias),prompt:r.prompt.trim()})).filter(r=>r.alias.length>0&&r.prompt.length>0)}}function ij(n,r){const o=xf(n).quickChats,s=r.map((u,m)=>Mi(u,m)),c=xf(s).quickChats;return JSON.stringify(o)!==JSON.stringify(c)}function cj(){const{error:n,loading:r,quickChats:o,save:s,saving:c}=oj(),[u,m]=g.useState(()=>o.map((y,S)=>Mi(y,S))),h=u.length>0,v=g.useMemo(()=>xf(u),[u]),p=g.useMemo(()=>ij(u,o),[u,o]);g.useEffect(()=>{m(o.map((y,S)=>Mi(y,S)))},[o]);async function b(){try{await s(v.quickChats),He.success("Quick chats saved")}catch(y){He.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(V0,{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(Pt,{type:"button",variant:"outline",onClick:()=>m(y=>[...y,Mi(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(Pt,{type:"button",onClick:b,disabled:c||!p,className:"h-7 rounded-sm px-2 text-[10px]",children:[c?f.jsx(PN,{className:"h-3.5 w-3.5 animate-spin"}):f.jsx(nT,{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(pc,{"aria-label":`Quick chat ${S+1} alias`,value:y.alias,onChange:T=>m(E=>E.map(N=>N.id===y.id?{...N,alias:T.target.value}:N)),placeholder:"alias",className:"h-7 rounded-sm border-border/70 bg-background/80 px-2 font-mono text-[11px]"}),f.jsx("textarea",{"aria-label":`Quick chat ${S+1} prompt`,value:y.prompt,onChange:T=>m(E=>E.map(N=>N.id===y.id?{...N,prompt:T.target.value}:N)),placeholder:"Prompt text",className:lj}),f.jsx(Pt,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(T=>T.filter(E=>E.id!==y.id)),"aria-label":`Remove quick chat ${S+1}`,className:"h-7 w-7 rounded-sm text-muted-foreground hover:bg-destructive/10 hover:text-destructive",children:f.jsx(pT,{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."}),n&&f.jsx("div",{className:"rounded-sm border border-destructive/20 bg-destructive/10 px-3 py-2 text-[11px] text-destructive",children:n})]})}var gc="Checkbox",[uj]=er(gc),[dj,sm]=uj(gc);function fj(n){const{__scopeCheckbox:r,checked:o,children:s,defaultChecked:c,disabled:u,form:m,name:h,onCheckedChange:v,required:p,value:b="on",internal_do_not_use_render:y}=n,[S,T]=_o({prop:o,defaultProp:c??!1,onChange:v,caller:gc}),[E,N]=g.useState(null),[C,A]=g.useState(null),j=g.useRef(!1),M=E?!!m||!!E.closest("form"):!0,U={checked:S,disabled:u,setChecked:T,control:E,setControl:N,name:h,form:m,value:b,hasConsumerStoppedPropagationRef:j,required:p,defaultChecked:Ka(c)?!1:c,isFormControl:M,bubbleInput:C,setBubbleInput:A};return f.jsx(dj,{scope:r,...U,children:mj(y)?y(U):s})}var Jx="CheckboxTrigger",e1=g.forwardRef(({__scopeCheckbox:n,onKeyDown:r,onClick:o,...s},c)=>{const{control:u,value:m,disabled:h,checked:v,required:p,setControl:b,setChecked:y,hasConsumerStoppedPropagationRef:S,isFormControl:T,bubbleInput:E}=sm(Jx,n),N=tt(c,b),C=g.useRef(v);return g.useEffect(()=>{const A=u==null?void 0:u.form;if(A){const j=()=>y(C.current);return A.addEventListener("reset",j),()=>A.removeEventListener("reset",j)}},[u,y]),f.jsx(ze.button,{type:"button",role:"checkbox","aria-checked":Ka(v)?"mixed":v,"aria-required":p,"data-state":o1(v),"data-disabled":h?"":void 0,disabled:h,value:m,...s,ref:N,onKeyDown:De(r,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:De(o,A=>{y(j=>Ka(j)?!0:!j),E&&T&&(S.current=A.isPropagationStopped(),S.current||A.stopPropagation())})})});e1.displayName=Jx;var im=g.forwardRef((n,r)=>{const{__scopeCheckbox:o,name:s,checked:c,defaultChecked:u,required:m,disabled:h,value:v,onCheckedChange:p,form:b,...y}=n;return f.jsx(fj,{__scopeCheckbox:o,checked:c,defaultChecked:u,disabled:h,required:m,onCheckedChange:p,name:s,form:b,value:v,internal_do_not_use_render:({isFormControl:S})=>f.jsxs(f.Fragment,{children:[f.jsx(e1,{...y,ref:r,__scopeCheckbox:o}),S&&f.jsx(r1,{__scopeCheckbox:o})]})})});im.displayName=gc;var t1="CheckboxIndicator",n1=g.forwardRef((n,r)=>{const{__scopeCheckbox:o,forceMount:s,...c}=n,u=sm(t1,o);return f.jsx(Uo,{present:s||Ka(u.checked)||u.checked===!0,children:f.jsx(ze.span,{"data-state":o1(u.checked),"data-disabled":u.disabled?"":void 0,...c,ref:r,style:{pointerEvents:"none",...n.style}})})});n1.displayName=t1;var a1="CheckboxBubbleInput",r1=g.forwardRef(({__scopeCheckbox:n,...r},o)=>{const{control:s,hasConsumerStoppedPropagationRef:c,checked:u,defaultChecked:m,required:h,disabled:v,name:p,value:b,form:y,bubbleInput:S,setBubbleInput:T}=sm(a1,n),E=tt(o,T),N=Eb(u),C=fb(s);g.useEffect(()=>{const j=S;if(!j)return;const M=window.HTMLInputElement.prototype,H=Object.getOwnPropertyDescriptor(M,"checked").set,G=!c.current;if(N!==u&&H){const V=new Event("click",{bubbles:G});j.indeterminate=Ka(u),H.call(j,Ka(u)?!1:u),j.dispatchEvent(V)}},[S,N,u,c]);const A=g.useRef(Ka(u)?!1:u);return f.jsx(ze.input,{type:"checkbox","aria-hidden":!0,defaultChecked:m??A.current,required:h,disabled:v,name:p,value:b,form:y,...r,tabIndex:-1,ref:E,style:{...r.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});r1.displayName=a1;function mj(n){return typeof n=="function"}function Ka(n){return n==="indeterminate"}function o1(n){return Ka(n)?"indeterminate":n?"checked":"unchecked"}const l1=g.forwardRef(({className:n,...r},o)=>f.jsx(im,{ref:o,className:le("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n),...r,children:f.jsx(n1,{className:le("flex items-center justify-center text-current"),children:f.jsx(Li,{className:"h-3.5 w-3.5"})})}));l1.displayName=im.displayName;const t0=["queued","running"];function hj(n){return n.map(r=>`${r.id}:${r.name}`).join("\0")}function pj(n){return n==="claude"||n==="codex"||n==="copilot"}function s1(n){var o;if(n.kind!=="agent.upgrade")return null;const r=(o=n.payload)==null?void 0:o.agent;return pj(r)?`${n.nodeId}:${r}`:null}function gj(n){return n.status==="succeeded"||n.status==="failed"}async function i1(n,r={}){const o=r.getOperation??kE,s=r.pollIntervalMs??2e3,c=r.timeoutMs??24e4,u=Date.now()+c;let m=n;for(;!gj(m)&&Date.now()<u;)await yj(s),m=await o(n.id);return m}async function vj(n,r=jE){const o=new Set(n),s=await Promise.all(t0.map(u=>r({kind:"agent.upgrade",status:u}))),c=new Map;for(const u of s.flat()){if(!t0.includes(u.status)||o.size>0&&!o.has(u.nodeId))continue;const m=s1(u);if(!m)continue;const h=c.get(m);(!h||u.updatedAt>h.updatedAt)&&c.set(m,u)}return c}function yj(n){return new Promise(r=>setTimeout(r,n))}const bj=1500,xj=1e3,Sj=9e4;async function c1(n={}){const r=n.fetchHealth??wj,o=n.initialDelayMs??bj,s=n.pollIntervalMs??xj,c=n.previousPid,u=n.reload??(()=>window.location.reload()),m=n.sleep??Nj,h=n.timeoutMs??Sj,v=Date.now()+h;let p=!1;for(o>0&&await m(o);Date.now()<=v;){const b=Ej(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 wj(){try{const n=await fetch("/api/system/health",{cache:"no-store"}),r=await n.json().catch(()=>null),o=r&&typeof r=="object"&&typeof r.pid=="number"?r.pid:void 0;return{ok:n.ok,pid:o}}catch{return!1}}function Ej(n){return typeof n=="boolean"?{ok:n}:n}function Nj(n){return new Promise(r=>window.setTimeout(r,n))}function Tj(n,r=!0){return r?(n==null?void 0:n.restartMode)==="development"?"Restart dev runtime":n!=null&&n.updateAvailable?"Restart to update":"Restart runtime":n!=null&&n.updateAvailable?"Restart follower to update":"Restart follower"}function Cj({checkedLabel:n,disableAuthDefault:r,endpoint:o,isLiveLocalNode:s,nodeId:c,nodeName:u,onRefresh:m,pid:h,transportType:v,update:p,workDir:b}){const y=Tj(p,s),[S,T]=g.useState(null),[E,N]=g.useState(()=>n0({disableAuthDefault:r,endpoint:o,nodeName:u,transportType:v,workDir:b})),[C,A]=g.useState(!1),[j,M]=g.useState(!1),[U,H]=g.useState(!1);g.useEffect(()=>{N(n0({disableAuthDefault:r,endpoint:o,nodeName:u,transportType:v,workDir:b}))},[r,o,u,v,b]);async function G(){if(!c||C||j)return;const de=p.updateAvailable?"update":"restart",fe=kj(E);if(E.port.trim()&&(fe==null?void 0:fe.port)===void 0){He.error("Runtime restart port must be a positive integer");return}const F=fe?{reason:de,startArgs:fe}:{reason:de};A(!0);try{if(s){const _=await U0(F);T({..._,pid:_.pid??h,status:"accepted"}),He.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.`),c1({previousPid:_.pid??h}).then(q=>{q||(A(!1),He.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout. Refresh the page after the node finishes starting."))}).catch(q=>{A(!1),He.error(q instanceof Error?q.message:"Runtime restart recovery failed")});return}const te=await ME(c,F);T({operationId:te.id,pid:h,status:te.status}),He.info(`Restart requested on ${u}. Operation ${Xd(te.id)} will hand off to a detached process, so the new runtime will not stay attached to the original terminal window.`);const ce=await i1(te,{timeoutMs:6e4}),J=Aj(ce);T({command:J==null?void 0:J.command,logPath:J==null?void 0:J.logPath,mode:J==null?void 0:J.mode,operationId:ce.id,pid:(J==null?void 0:J.pid)??h,status:ce.status}),ce.status==="succeeded"?(await(m==null?void 0:m()),He.success(`Restart handoff accepted on ${u}. Follow ${(J==null?void 0:J.logPath)??"the node restart log"} for launch output.`)):ce.status==="failed"?He.error(ce.error??`Restart failed on ${u}`):He.info(`Restart operation ${Xd(ce.id)} is still ${ce.status}. More details will update after the node reports back.`),A(!1)}catch(te){A(!1),He.error(te instanceof Error?te.message:"Runtime restart failed")}}async function V(){if(!(!s||C||j)){M(!0);try{const de=await RE();He.info(`Stopping Meshy process ${de.pid}`)}catch(de){M(!1),He.error(de instanceof Error?de.message:"Runtime stop failed")}}}const $=C?"restarting":j?"stopping":(S==null?void 0:S.status)??"idle",re=p.restartMode==="development";return f.jsxs("div",{className:"overflow-hidden rounded-sm border border-border/70 bg-background/70",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2 border-b border-border/50",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(zi,{className:"h-3.5 w-3.5 text-primary shrink-0"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-[11px] font-semibold text-foreground leading-tight",children:"Runtime"}),f.jsx("div",{className:"text-[10px] text-muted-foreground leading-tight",children:re?"Development launcher":`Latest ${p.latestVersion??"—"}`})]})]}),f.jsx("div",{className:"flex items-center gap-1.5",children:f.jsx(Nt,{variant:p.updateAvailable?"default":"outline",className:"rounded-sm border-border/70 bg-background/60 px-1.5 py-0 font-mono text-[10px]",children:re?"dev":p.updateAvailable?`→ ${p.latestVersion}`:"current"})})]}),f.jsxs("div",{className:"grid grid-cols-2 divide-x divide-border/50 border-b border-border/50",children:[f.jsxs("div",{className:"px-3 py-1.5",children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:"PID"}),f.jsx("div",{className:"mt-0.5 font-mono text-[11px] text-foreground",children:h??"—"})]}),f.jsxs("div",{className:"px-3 py-1.5",children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:"Status"}),f.jsx("div",{className:"mt-0.5 text-[11px] text-foreground capitalize",children:$})]})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2",children:[f.jsxs("div",{className:"text-[10px] text-muted-foreground",children:["Checked ",n]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[s&&f.jsxs(vf,{children:[f.jsx(yf,{asChild:!0,children:f.jsxs(Pt,{type:"button",size:"sm",variant:"ghost",disabled:C||j,className:"h-7 rounded-sm px-2 text-[11px] text-muted-foreground hover:bg-destructive/10 hover:text-destructive",children:[f.jsx(ZN,{className:le("mr-1 h-3.5 w-3.5",j&&"animate-pulse")}),j?"Stopping":"Stop"]})}),f.jsxs(Gi,{className:"max-w-[22rem] gap-2 rounded-sm p-4",children:[f.jsxs(Ii,{className:"space-y-1",children:[f.jsx(Qi,{className:"text-sm",children:"Stop runtime?"}),f.jsx(Ki,{className:"text-[11px] leading-4",children:"Gracefully stops the current Meshy process without launching a replacement. The dashboard will disconnect until the node is started again."})]}),f.jsxs(Xi,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Fi,{className:"h-7 rounded-sm px-2 text-[11px]",children:"Cancel"}),f.jsx(Zi,{className:"h-7 rounded-sm bg-destructive px-2 text-[11px] text-destructive-foreground hover:bg-destructive/90",onClick:()=>void V(),children:"Stop runtime"})]})]})]}),f.jsxs(vf,{children:[f.jsx(yf,{asChild:!0,children:f.jsxs(Pt,{type:"button",size:"sm",variant:p.updateAvailable?"default":"outline",disabled:!c||C||j,className:"h-7 rounded-sm px-2 text-[11px]",children:[f.jsx(Ai,{className:le("mr-1 h-3.5 w-3.5",C&&"animate-spin")}),C?"Restarting…":y]})}),f.jsxs(Gi,{className:"max-w-[28rem] gap-3 rounded-sm p-4",children:[f.jsxs(Ii,{className:"space-y-1",children:[f.jsxs(Qi,{className:"text-sm",children:[y,"?"]}),f.jsxs(Ki,{className:"text-[11px] leading-4",children:["Starts a detached restart helper, shuts down ",s?"the current node":u,", and brings it back with the configured launcher. The new process will not stay attached to the original terminal window."]})]}),f.jsx(Rj,{value:E,onChange:N}),f.jsxs(Xi,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Fi,{className:"h-7 rounded-sm px-2 text-[11px]",children:"Cancel"}),f.jsx(Zi,{className:"h-7 rounded-sm px-2 text-[11px]",onClick:()=>void G(),children:y})]})]})]})]})]}),f.jsxs("div",{className:"border-t border-border/50",children:[f.jsxs("button",{type:"button",onClick:()=>H(de=>!de),className:"flex w-full items-center justify-between px-3 py-1.5 text-[10px] text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors",children:[f.jsxs("span",{className:"flex items-center gap-1.5",children:[f.jsx(Q0,{className:"h-3 w-3"}),"Restart details"]}),f.jsx(Fl,{className:le("h-3 w-3 transition-transform duration-150",U&&"rotate-180")})]}),U&&f.jsxs("div",{className:"border-t border-border/50 bg-muted/20 px-3 py-2 space-y-1",children:[f.jsx(Er,{label:"Current PID",value:h===void 0?"—":String(h),mono:h!==void 0}),f.jsx(Er,{label:"Restart PID",value:(S==null?void 0:S.pid)===void 0?"Pending":String(S.pid),mono:(S==null?void 0:S.pid)!==void 0}),f.jsx(Er,{label:"Operation",value:S!=null&&S.operationId?Xd(S.operationId):"Local direct request",mono:!!(S!=null&&S.operationId)}),f.jsx(Er,{label:"Status",value:(S==null?void 0:S.status)??(C?"requested":"idle")}),f.jsx(Er,{label:"Launcher",value:(S==null?void 0:S.command)??"Available after restart",mono:!!(S!=null&&S.command)}),f.jsx(Er,{label:"Log",value:(S==null?void 0:S.logPath)??"Available after restart",mono:!!(S!=null&&S.logPath)}),f.jsx(Er,{label:"Terminal",value:"New process is detached from original terminal"})]})]}),p.detail&&f.jsx("div",{className:"border-t border-border/50 px-3 py-1.5 text-[10px] text-muted-foreground bg-muted/20",children:p.detail})]})}function Rj({onChange:n,value:r}){const o=(s,c)=>{n({...r,[s]:c})};return f.jsxs("div",{className:"rounded-lg border border-border/70 bg-muted/30 p-3 space-y-3",children:[f.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-muted-foreground",children:"Startup arguments"}),f.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[f.jsx($l,{label:"HTTP port",value:r.port,onChange:s=>o("port",s),inputMode:"numeric"}),f.jsx($l,{label:"Node name",value:r.name,onChange:s=>o("name",s)}),f.jsx($l,{label:"Join endpoint",value:r.join,onChange:s=>o("join",s),className:"sm:col-span-2"}),f.jsxs("div",{className:"space-y-1",children:[f.jsx("label",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:"Transport"}),f.jsxs(lx,{value:r.transport,onValueChange:s=>o("transport",u1(s)),children:[f.jsx(rm,{className:"h-7 rounded-md border-border/70 bg-background/70 px-2 text-[10px]",children:f.jsx(sx,{placeholder:"Transport"})}),f.jsxs(om,{children:[f.jsx(Ro,{className:"py-1 text-[11px]",value:"inherit",children:"current / default"}),f.jsx(Ro,{className:"py-1 text-[11px]",value:"direct",children:"direct"}),f.jsx(Ro,{className:"py-1 text-[11px]",value:"devtunnel",children:"devtunnel"}),f.jsx(Ro,{className:"py-1 text-[11px]",value:"tailscale",children:"tailscale"})]})]})]}),f.jsx($l,{label:"Working directory",value:r.workDir,onChange:s=>o("workDir",s)}),f.jsx($l,{label:"Config path",value:r.config,onChange:s=>o("config",s),className:"sm:col-span-2"}),f.jsxs("label",{className:"flex items-center gap-2 rounded-md border border-border/60 bg-background/60 px-2 py-1.5 text-[10px] text-foreground sm:col-span-2 cursor-pointer hover:bg-muted/40 transition-colors",children:[f.jsx(l1,{className:"h-3.5 w-3.5",checked:r.disableAuth,onCheckedChange:s=>n({...r,disableAuth:s===!0,disableAuthKnown:!0})}),"Disable auth"]})]})]})}function $l({className:n,inputMode:r,label:o,onChange:s,value:c}){return f.jsxs("label",{className:le("space-y-1",n),children:[f.jsx("span",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:o}),f.jsx(pc,{className:"h-7 rounded-md px-2 text-[10px]",inputMode:r,value:c,onChange:u=>s(u.target.value)})]})}function Er({label:n,value:r,mono:o=!1}){return f.jsxs("div",{className:"flex items-start justify-between gap-3 text-[10px]",children:[f.jsx("span",{className:"shrink-0 uppercase tracking-[0.14em] text-muted-foreground",children:n}),f.jsx("span",{className:le("break-all text-right text-foreground",o&&"font-mono"),children:r})]})}function Aj(n){const r=n.result;if(!r||typeof r!="object")return null;const o=r;return o.ok!==!0||typeof o.command!="string"||typeof o.logPath!="string"?null:{ok:!0,mode:o.mode==="package"?"package":"development",command:o.command,logPath:o.logPath,pid:typeof o.pid=="number"?o.pid:void 0}}function n0(n){return{port:jj(n.endpoint),name:n.nodeName,join:"",transport:u1(n.transportType),workDir:n.workDir??"",config:"",disableAuth:n.disableAuthDefault===!0,disableAuthKnown:n.disableAuthDefault!==void 0}}function kj(n){const r={},o=Number(n.port.trim());return n.port.trim()&&Number.isInteger(o)&&o>0&&(r.port=o),n.name.trim()&&(r.name=n.name.trim()),n.join.trim()&&(r.join=n.join.trim()),n.transport!=="inherit"&&(r.transport=n.transport),n.workDir.trim()&&(r.workDir=n.workDir.trim()),n.config.trim()&&(r.config=n.config.trim()),n.disableAuthKnown&&(r.disableAuth=n.disableAuth),Object.keys(r).length>0?r:void 0}function u1(n){return n==="direct"||n==="devtunnel"||n==="tailscale"?n:"inherit"}function jj(n){if(!n)return"";try{return new URL(n).port||""}catch{return""}}function Xd(n){return n.length<=8?n:n.slice(0,8)}function Pl({formatDateTime:n,name:r,status:o,statusVariant:s}){return f.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-lg border border-border/60 bg-background/70 px-2.5 py-1.5",children:[f.jsxs("div",{children:[f.jsx("div",{className:"text-[11px] font-medium text-foreground",children:r}),f.jsx("div",{className:"text-[10px] text-muted-foreground",children:n(o==null?void 0:o.checkedAt)})]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[typeof(o==null?void 0:o.authenticated)=="boolean"&&f.jsx(Nt,{variant:o.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:o.authenticated?"auth ok":"auth required"}),f.jsx(Nt,{variant:s(o==null?void 0:o.status),className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:(o==null?void 0:o.status)??"unknown"})]})]})}function Qt(n){if(n==null||n==="")return"Unavailable";const r=new Date(n);return Number.isNaN(r.getTime())?"Unavailable":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(r)}function _j(n){const r=Math.max(0,Math.floor(n)),o=Math.floor(r/86400),s=Math.floor(r%86400/3600),c=Math.floor(r%3600/60);return o>0?`${o}d ${s}h`:s>0?`${s}h ${c}m`:`${c}m`}function a0(n){if(n==null||Number.isNaN(n))return"Unavailable";const r=["B","KB","MB","GB","TB"];let o=n,s=0;for(;o>=1024&&s<r.length-1;)o/=1024,s+=1;return`${o.toFixed(o>=10||s===0?0:1)} ${r[s]}`}function Co(n){return n==="ok"?"default":n==="missing"||n==="install-failed"||n==="login-failed"?"destructive":n==="not-authenticated"||n==="unsupported-platform"?"outline":"secondary"}function Mj(n){return n.available?f.jsxs(Nt,{className:"gap-1 rounded-sm px-1.5 py-0 text-[10px]",children:[f.jsx(Yl,{className:"h-3 w-3"}),"Available"]}):f.jsxs(Nt,{variant:"destructive",className:"gap-1 rounded-sm px-1.5 py-0 text-[10px]",children:[f.jsx(RN,{className:"h-3 w-3"}),"Unavailable"]})}function Oj(n){return n.update?n.update.updateAvailable?f.jsxs(Nt,{variant:"outline",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:["Update ",n.update.latestVersion]}):f.jsx(Nt,{variant:"secondary",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:"Up to date"}):null}function Dj(n){return n.available?null:n.metadataStatus??null}function zj(n){var o;const r=`npm install -g ${(o=n.update)==null?void 0:o.packageName}@latest`;return n.id==="claude"?`${r} --include=optional --ignore-scripts=false`:r}function Lj(n){if(n.error)return n.error;const r=n.result;return(r==null?void 0:r.detail)??null}function et({label:n,value:r,mono:o=!1}){return f.jsxs("div",{className:"flex items-start justify-between gap-3 border-b border-border/50 py-1 last:border-b-0 last:pb-0 first:pt-0",children:[f.jsx("span",{className:"shrink-0 text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:n}),f.jsx("span",{className:le("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:r})]})}function ql({label:n,value:r,mono:o=!1,className:s}){return f.jsxs("div",{className:le("min-w-0 space-y-0.5",s),children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:n}),f.jsx("div",{className:le("truncate text-[11px] text-foreground",o&&"font-mono",n==="Path"&&"break-all whitespace-normal"),children:r})]})}function Uj({agent:n,nodeName:r,activeOperation:o,onUpgrade:s}){var v,p;const c=((v=n.update)==null?void 0:v.updateAvailable)===!0,u=Oj(n),m=!!o,h=Dj(n);return f.jsxs("div",{className:"rounded-sm border border-border/60 bg-background/65 px-3 py-2.5 transition-colors hover:bg-background/85",children:[f.jsxs("div",{className:"grid gap-3 lg:grid-cols-[12rem_minmax(0,1fr)_auto] lg:items-start",children:[f.jsxs("div",{className:"min-w-0 space-y-1.5",children:[f.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-semibold text-foreground",children:[f.jsx(q0,{className:"h-3.5 w-3.5 shrink-0 text-primary"}),f.jsx("span",{className:"truncate",children:n.label})]}),f.jsxs("div",{className:"truncate text-[10px] text-muted-foreground",children:["Command: ",f.jsx("span",{className:"font-mono text-[10px]",children:n.command})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[Mj(n),h&&f.jsx(Nt,{variant:Co(h),className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:h})]})]}),f.jsxs("div",{className:"grid min-w-0 gap-x-4 gap-y-1.5 sm:grid-cols-2",children:[f.jsx(ql,{label:"Version",value:n.version??"Unavailable",mono:!!n.version}),n.update&&f.jsx(ql,{label:"Latest",value:n.update.latestVersion??"Unavailable",mono:!!n.update.latestVersion}),f.jsx(ql,{label:"Checked",value:Qt(n.checkedAt)}),n.update&&f.jsx(ql,{label:"Update check",value:Qt(n.update.checkedAt)}),f.jsx(ql,{label:"Path",value:n.path??"Not on PATH",mono:!!n.path,className:"sm:col-span-2"})]}),f.jsx("div",{className:"flex items-start justify-start lg:justify-end",children:o?f.jsxs(Nt,{variant:"outline",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:["Upgrade ",o.status]}):c?f.jsxs(vf,{children:[f.jsx(yf,{asChild:!0,children:f.jsx("button",{type:"button",disabled:m,className:"rounded-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/45 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60",children:u})}),f.jsxs(Gi,{children:[f.jsxs(Ii,{children:[f.jsxs(Qi,{children:["Upgrade ",n.label,"?"]}),f.jsxs(Ki,{children:["This runs ",zj(n)," on ",r,". Remote nodes execute the command on the remote machine."]})]}),f.jsxs(Xi,{children:[f.jsx(Fi,{children:"Cancel"}),f.jsx(Zi,{onClick:()=>s(n),children:"Upgrade"})]})]})]}):u})]}),((p=n.update)==null?void 0:p.detail)&&f.jsx("div",{className:"mt-2 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:n.update.detail}),n.detail&&f.jsx("div",{className:"mt-2 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:n.detail})]})}function Bj(n,r){var o;return(o=n==null?void 0:n.nodes)!=null&&o.length?n.nodes:r?[r]:[]}function Hj(n,r){var s;if(r&&n.id===r.nodeId)return r;const o=n.settingsSnapshot;return{...n,nodeId:n.id,version:(o==null?void 0:o.version)??"Unavailable",packageName:o==null?void 0:o.packageName,uptime:(o==null?void 0:o.uptime)??0,localDashboardOrigin:((s=o==null?void 0:o.runtime)==null?void 0:s.localDashboardOrigin)??void 0,auth:o==null?void 0:o.auth,os:o==null?void 0:o.os,runtime:o==null?void 0:o.runtime,runtimeUpdate:o==null?void 0:o.runtimeUpdate,agents:o==null?void 0:o.agents,startupRequirements:o==null?void 0:o.startupRequirements,components:o==null?void 0:o.components,repository:o==null?void 0:o.repository,packages:o==null?void 0:o.packages}}function $j(n,r){return n.id===r?`${n.name} (this node)`:`${n.name} (${n.role})`}function Pj(n){return n==="claude"?"Claude Code":n==="copilot"?"Copilot CLI":"Codex"}function qj(n){var o;const r=(o=n.payload)==null?void 0:o.agent;return r==="claude"||r==="codex"||r==="copilot"?r:null}function Vj({cluster:n,systemInfo:r,sseConnected:o,initialSelectedNodeId:s,onRefresh:c}){var re,de,fe,F,te,ce,J,_,q,K,me,R,Y,se,X,ne,W,ee,ue,ie;const u=g.useMemo(()=>Bj(n,r),[n,r]),[m,h]=g.useState(()=>{var ae;return s??(r==null?void 0:r.nodeId)??((ae=n==null?void 0:n.self)==null?void 0:ae.id)??""}),[v,p]=g.useState(()=>new Map),b=g.useRef(new Set),y=g.useRef(new Set),S=(n==null?void 0:n.self)??r??u[0]??null,T=u.find(ae=>ae.id===m)??S,E=T?Hj(T,r):null,N=!!(r&&T&&T.id===r.nodeId),C=N||!!(T!=null&&T.settingsSnapshot),A=E==null?void 0:E.runtimeUpdate,j=((re=E==null?void 0:E.startupRequirements)==null?void 0:re.components)??(E==null?void 0:E.components)??{},M=g.useMemo(()=>u.map(ae=>ae.id),[u]),U=M.join("\0"),H=hj(u),G=g.useMemo(()=>new Map(u.map(ae=>[ae.id,ae.name])),[H]);g.useEffect(()=>{s&&M.includes(s)&&h(s)},[s,U]);const V=g.useCallback(async(ae,be)=>{const ve=s1(ae);if(!ve||b.current.has(ae.id))return;const xe=qj(ae),Ue=(be==null?void 0:be.agentLabel)??(xe?Pj(xe):"Agent"),Ve=(be==null?void 0:be.nodeName)??G.get(ae.nodeId)??ae.nodeId;b.current.add(ae.id),p($e=>new Map($e).set(ve,ae));try{const $e=await i1(ae);if($e.status==="succeeded")await(c==null?void 0:c()),y.current.has($e.id)||(He.success(`${Ue} upgrade finished on ${Ve}`),y.current.add($e.id));else if($e.status==="failed")y.current.has($e.id)||(He.error(Lj($e)??`${Ue} upgrade failed`),y.current.add($e.id));else{p(bt=>new Map(bt).set(ve,$e)),He.info(`${Ue} upgrade is still ${$e.status} on ${Ve}`);return}p(bt=>{const Pe=new Map(bt),Ht=Pe.get(ve);return(!Ht||Ht.id===$e.id)&&Pe.delete(ve),Pe})}catch($e){p(bt=>{const Pe=new Map(bt),Ht=Pe.get(ve);return(!Ht||Ht.id===ae.id)&&Pe.delete(ve),Pe}),He.error($e instanceof Error?$e.message:`${Ue} upgrade failed`)}finally{b.current.delete(ae.id)}},[c,G]);g.useEffect(()=>{if(M.length===0)return;let ae=!1;async function be(){let ve;try{ve=await vj(M)}catch{return}if(!ae){p(xe=>{const Ue=new Map(xe);for(const[Ve,$e]of ve)Ue.set(Ve,$e);return Ue});for(const xe of ve.values())V(xe)}}return be(),()=>{ae=!0}},[V,U]);async function $(ae){if(T)try{const be=await _E(T.id,ae.id);He.info(`${ae.label} upgrade started on ${T.name}`),await V(be,{agentLabel:ae.label,nodeName:T.name})}catch(be){He.error(be instanceof Error?be.message:`${ae.label} upgrade failed`)}}return!T||!E?f.jsx("div",{className:"rounded-sm border border-dashed border-border/70 bg-muted/20 px-3 py-5 text-center text-[11px] text-muted-foreground",children:"Loading session metadata..."}):f.jsxs("div",{className:"space-y-3",children:[f.jsxs("section",{className:"relative mt-1 rounded-sm border border-border/70 bg-background/75 p-3 shadow-none",children:[!N&&f.jsxs(Nt,{variant:"outline",className:"absolute right-3 top-2.5 rounded-sm border-border/70 bg-background/60 px-1.5 py-0 text-[10px] uppercase tracking-[0.16em] whitespace-nowrap",children:["Updated ",Qt((de=T.settingsSnapshot)==null?void 0:de.collectedAt)]}),f.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-end md:justify-between",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[f.jsxs("span",{className:"flex items-center gap-1.5 rounded-sm border border-border/70 bg-background/75 px-1.5 py-0 text-[10px] text-muted-foreground",children:[f.jsx(Fk,{status:T.status}),f.jsx("span",{className:"font-medium text-foreground",children:T.name})]}),f.jsx(Wk,{role:T.role}),f.jsx(Nt,{variant:"outline",className:"rounded-sm border-border/70 bg-background/60 px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:T.transportType??E.transportType??"direct"}),f.jsx(Nt,{variant:N?"default":"outline",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:N?"Live local session":"Leader-synced snapshot"})]}),f.jsxs("div",{children:[f.jsx("div",{className:"text-[10px] uppercase tracking-[0.34em] text-muted-foreground",children:"Session"}),f.jsx("h3",{className:"mt-0.5 text-sm font-semibold tracking-tight text-foreground",children:"Node runtime"}),f.jsx("p",{className:"mt-0.5 text-[11px] text-muted-foreground",children:"Runtime environment, connectivity, and build metadata."})]}),u.length>1&&f.jsxs("div",{className:"w-48 space-y-1.5",children:[f.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Inspect node"}),f.jsxs(lx,{value:T.id,onValueChange:h,children:[f.jsx(rm,{className:"h-7 rounded-sm border-border/70 bg-background/70 text-[11px]",children:f.jsx(sx,{placeholder:"Choose a node"})}),f.jsx(om,{className:"settings-node-select-content rounded-sm text-[10px] leading-4",children:u.map(ae=>f.jsx(Ro,{value:ae.id,className:"settings-node-select-item py-1 pl-6 pr-2 text-[10px] leading-4 [&>span]:left-1.5 [&_svg]:h-3 [&_svg]:w-3",children:$j(ae,r==null?void 0:r.nodeId)},ae.id))})]})]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsxs(Nt,{variant:o?"default":"outline",className:"gap-1 rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:[f.jsx(WN,{className:"h-3 w-3"}),o?"Live link":"Reconnecting"]}),f.jsxs(Nt,{variant:"outline",className:"rounded-sm border-border/70 bg-background/60 px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:["Uptime ",_j(E.uptime)]})]})]})]}),!C&&f.jsx("div",{className:"rounded-sm border border-dashed border-border/70 bg-muted/20 px-3 py-2 text-[11px] text-muted-foreground",children:"This node has not synced its settings snapshot to the leader yet. Wait for the next keepalive and reopen the dialog if needed."}),f.jsxs(Lk,{defaultValue:"session",className:"space-y-2",children:[f.jsxs(kx,{className:"h-auto flex-wrap rounded-sm border border-border/60 bg-muted/40 p-0.5",children:[f.jsx(Il,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),f.jsx(Il,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),f.jsx(Il,{value:"quick-chats",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Quick chats"}),f.jsx(Il,{value:"about",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"About"})]}),f.jsxs(Xl,{value:"session",className:"mt-0 grid gap-2 xl:grid-cols-[1.15fr_0.85fr]",children:[f.jsxs(Un,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(I0,{className:"h-3.5 w-3.5 text-primary"}),"Selected node"]}),f.jsx($n,{className:"text-[10px]",children:"Cluster role, identity, and node-scoped runtime state."})]}),f.jsxs(Pn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Node ID",value:E.nodeId,mono:!0}),f.jsx(et,{label:"Status",value:T.status}),f.jsx(et,{label:"Role",value:T.role}),f.jsx(et,{label:"Endpoint",value:T.endpoint,mono:!0}),f.jsx(et,{label:"Joined",value:Qt(T.joinedAt)}),f.jsx(et,{label:"Heartbeat",value:Qt(T.lastHeartbeat)}),f.jsx(et,{label:"Capabilities",value:T.capabilities.length>0?T.capabilities.join(", "):"None"})]})]}),f.jsxs(Un,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(_N,{className:"h-3.5 w-3.5 text-primary"}),"OS info"]}),f.jsx($n,{className:"text-[10px]",children:"Host and resource details reported by the current process."})]}),f.jsxs(Pn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Host",value:((fe=E.os)==null?void 0:fe.hostname)??"Unavailable"}),f.jsx(et,{label:"Platform",value:E.os?`${E.os.platform} ${E.os.release}`:"Unavailable"}),f.jsx(et,{label:"Arch",value:((F=E.os)==null?void 0:F.arch)??"Unavailable"}),f.jsx(et,{label:"CPU",value:((te=E.os)==null?void 0:te.cpuModel)??"Unavailable"}),f.jsx(et,{label:"Cores",value:String(((ce=E.os)==null?void 0:ce.cpuCount)??"Unavailable")}),f.jsx(et,{label:"Memory",value:E.os?`${a0(E.os.freeMemoryBytes)} free / ${a0(E.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),A&&f.jsx("div",{className:"xl:col-span-2",children:f.jsx(Cj,{checkedLabel:Qt(A.checkedAt),disableAuthDefault:((J=E.auth)==null?void 0:J.enabled)===void 0?void 0:E.auth.enabled===!1,endpoint:T.endpoint,isLiveLocalNode:N,nodeId:T.id,nodeName:T.name,onRefresh:c,pid:(_=E.runtime)==null?void 0:_.pid,transportType:T.transportType,update:A,workDir:((q=E.runtime)==null?void 0:q.workDir)??T.workDir})}),f.jsxs(Un,{className:"rounded-sm border-border/70 bg-background/75 shadow-none xl:col-span-2",children:[f.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(q0,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),f.jsx($n,{className:"text-[10px]",children:N?"Live command availability for runtime agents on this node.":"Most recent agent availability snapshot synced from this node."})]}),f.jsx(Pn,{"data-agent-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:(E.agents??[]).map(ae=>f.jsx(Uj,{agent:ae,nodeName:T.name,activeOperation:v.get(`${T.id}:${ae.id}`),onUpgrade:$},ae.id))})]})]}),f.jsxs(Xl,{value:"access",className:"mt-0 grid gap-2 xl:grid-cols-2",children:[f.jsxs(Un,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(vN,{className:"h-3.5 w-3.5 text-primary"}),"Access surface"]}),f.jsx($n,{className:"text-[10px]",children:"How this node is exposed to the dashboard and other peers."})]}),f.jsxs(Pn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Transport",value:T.transportType??E.transportType??"direct"}),f.jsx(et,{label:"Node URL",value:T.endpoint,mono:!0}),f.jsx(et,{label:"Node tunnel",value:T.devtunnelEndpoint??"Disabled",mono:!!T.devtunnelEndpoint}),f.jsx(et,{label:"Dashboard URL",value:T.dashboardOrigin??E.localDashboardOrigin??"Unavailable",mono:!!(T.dashboardOrigin||E.localDashboardOrigin)}),f.jsx(et,{label:"Local dashboard",value:E.localDashboardOrigin??"Unavailable",mono:!!E.localDashboardOrigin})]})]}),f.jsxs(Un,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(cT,{className:"h-3.5 w-3.5 text-primary"}),"Auth"]}),f.jsx($n,{className:"text-[10px]",children:"Current bearer-auth and trusted access posture."})]}),f.jsxs(Pn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Enabled",value:(K=E.auth)!=null&&K.enabled?"Yes":"No"}),f.jsx(et,{label:"Same tenant",value:(me=E.auth)!=null&&me.allowSameTenant?"Allowed":"Off"}),f.jsx(et,{label:"Allowed users",value:(R=E.auth)!=null&&R.allowedUsers.length?E.auth.allowedUsers.join(", "):"None"})]})]}),f.jsxs(Un,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(zN,{className:"h-3.5 w-3.5 text-primary"}),"Paths"]}),f.jsx($n,{className:"text-[10px]",children:"Workspace and runtime paths currently used by this node."})]}),f.jsxs(Pn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Work dir",value:((Y=E.runtime)==null?void 0:Y.workDir)??E.workDir??"Unavailable",mono:!!(((se=E.runtime)==null?void 0:se.workDir)??E.workDir)}),f.jsx(et,{label:"Storage",value:((X=E.runtime)==null?void 0:X.storagePath)??"Unavailable",mono:!!((ne=E.runtime)!=null&&ne.storagePath)}),f.jsx(et,{label:"Process cwd",value:((W=E.runtime)==null?void 0:W.cwd)??"Unavailable",mono:!!((ee=E.runtime)!=null&&ee.cwd)}),f.jsx(et,{label:"Started",value:Qt((ue=E.runtime)==null?void 0:ue.startedAt)}),f.jsx(et,{label:"PID",value:E.runtime?String(E.runtime.pid):"Unavailable",mono:!!E.runtime})]})]}),f.jsxs(Un,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Bn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Hn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(zi,{className:"h-3.5 w-3.5 text-primary"}),"Startup checks"]}),f.jsx($n,{className:"text-[10px]",children:"Dependency preflight snapshot persisted during node startup."})]}),f.jsxs(Pn,{className:"space-y-3 px-3 pb-2.5",children:[f.jsxs("div",{className:"rounded-sm border border-border/60 bg-background/70 px-3 py-2",children:[f.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Last checked"}),f.jsx("div",{className:"mt-0.5 text-[11px] text-foreground",children:Qt((ie=E.startupRequirements)==null?void 0:ie.lastCheckedAt)})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(Pl,{formatDateTime:Qt,name:"Azure CLI",status:j.az,statusVariant:Co}),f.jsx(Pl,{formatDateTime:Qt,name:"DevTunnel",status:j.devtunnel,statusVariant:Co}),f.jsx(Pl,{formatDateTime:Qt,name:"Claude Code",status:j.claude,statusVariant:Co}),f.jsx(Pl,{formatDateTime:Qt,name:"Codex",status:j.codex,statusVariant:Co}),f.jsx(Pl,{formatDateTime:Qt,name:"Copilot CLI",status:j.copilot,statusVariant:Co})]})]})]})]}),f.jsx(Xl,{value:"quick-chats",className:"mt-0",children:f.jsx(cj,{})}),f.jsx(tj,{formatDateTime:Qt,viewInfo:E})]})]})}function Yj({initialSelectedNodeId:n,open:r,onOpenChange:o,showTrigger:s=!0}={}){const{cluster:c,systemInfo:u,sseConnected:m,refresh:h}=$0();return f.jsx(TA,{open:r,onOpenChange:o,showTrigger:s,children:f.jsx(Vj,{cluster:c,systemInfo:u,sseConnected:m,initialSelectedNodeId:n,onRefresh:h})})}const fM="codex",mM="bypass",Gj=[{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"}],hM=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],pM=new Set(Gj.filter(n=>n.supportsFollowUp).map(n=>n.value)),gM=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],vM=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],Ij=new Set(["pending","assigned"]),Xj=new Set(["running"]),Qj=new Set(["completed","failed","cancelled"]),yM=10;function bM(n,r){switch(r){case"running":return Xj.has(n.status);case"waiting":return Ij.has(n.status);case"closed":return Qj.has(n.status);case"shared":return!!n.activeShare;case"archived":return n.status==="archived";case"active":default:return n.status!=="archived"}}function xM(n,r){if(r==="all")return!0;const o=n.conversationKind==="nativeSession";return r==="native"?o:!o}function SM(n,r){const o=r.trim().toLowerCase();return o?[n.title,n.description,n.id,n.agent,n.assignedTo??"",n.assignedNodeName??"",n.project??"",n.effectiveProjectPath??"",n.conversationKind==="nativeSession"?"native session":"meshy chat",n.activeShare?"shared conversation":""].some(s=>s.toLowerCase().includes(o)):!0}function Kj(n,r,o){if(!n)return"unassigned";const s=r==null?void 0:r.find(c=>c.id===n);return(s==null?void 0:s.name)??o??n.slice(0,8)}function wM(n,r,o){return Kj(n,r,o).toLowerCase()}function EM(n){return n.type!=="node.status"&&n.type!=="cluster.state"}function NM(n,r,o){return!n.assignedTo||(o==null?void 0:o.id)===n.assignedTo?!0:(r==null?void 0:r.some(s=>s.id===n.assignedTo))??!1}function TM(n,r){return[...n].sort((o,s)=>o.id===r?-1:s.id===r?1:o.name.localeCompare(s.name))}function CM(n){if(!n||typeof n!="object")return null;const r=n,o=r.createMode,s=o==="chat"||o==="native"?o:void 0,c=r.createDefaults,u=c&&typeof c=="object"&&!Array.isArray(c)?c:null,m=u?{assignTo:typeof u.assignTo=="string"||u.assignTo===null?u.assignTo:void 0,project:typeof u.project=="string"||u.project===null?u.project:void 0}:void 0;return{draftNewTask:r.draftNewTask===!0,returnRoute:typeof r.returnRoute=="string"?r.returnRoute:void 0,returnTaskId:typeof r.returnTaskId=="string"||r.returnTaskId===null?r.returnTaskId:void 0,createMode:s,createDefaults:m}}function RM(n){return n==="default workspace"?n:n.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??n}function AM(n){const r=Date.now()-n;return r<6e4?"just now":r<36e5?`${Math.floor(r/6e4)}m`:r<864e5?`${Math.floor(r/36e5)}h`:`${Math.floor(r/864e5)}d`}function kM(n){return new Date(n).toLocaleString()}function jM(n){const r=Math.floor(n/1e3),o=Math.floor(r/3600),s=Math.floor(r%3600/60),c=r%60;return`${String(o).padStart(2,"0")}:${String(s).padStart(2,"0")}:${String(c).padStart(2,"0")}`}async function Zj(n,r="Copied to clipboard"){var o,s,c;try{if((s=(o=globalThis.navigator)==null?void 0:o.clipboard)!=null&&s.writeText)return await globalThis.navigator.clipboard.writeText(n),He.success(r),!0;const u=globalThis.document,m=(c=u==null?void 0:u.execCommand)==null?void 0:c.bind(u);if(!(u!=null&&u.body)||typeof u.createElement!="function"||typeof m!="function")throw new Error("Clipboard access is unavailable");const h=u.createElement("textarea"),v=u.activeElement,p=v&&typeof v.focus=="function"?v:null;h.value=n,h.setAttribute("readonly","true"),h.style.position="fixed",h.style.opacity="0",h.style.pointerEvents="none",u.body.appendChild(h),h.select(),h.setSelectionRange(0,h.value.length);const b=m("copy");if(u.body.removeChild(h),p==null||p.focus(),!b)throw new Error("Clipboard access is unavailable");return He.success(r),!0}catch(u){return He.error(u instanceof Error?u.message:"Failed to copy"),!1}}const Fj="default workspace";function Oi(n){const r=n.replace(/\\/g,"/");return r==="/"||/^[A-Za-z]:\/$/.test(r)?r:r.replace(/\/+$/g,"")||r}function Wj(n){const r=n.replace(/\\/g,"/");return r.startsWith("/")||r.startsWith("//")||/^[A-Za-z]:\//.test(r)}function Jj(n,r){const o=Oi(n),s=r.replace(/\\/g,"/").replace(/^\/+|\/+$/g,"");return!s||s==="."?o:o==="/"||/^[A-Za-z]:\/$/.test(o)?`${o}${s}`:`${o}/${s}`}function e_(n,r){var u,m,h;const o=(u=n.effectiveProjectPath)==null?void 0:u.trim();if(o)return Oi(o);const s=(m=n.project)==null?void 0:m.trim();if(!s)return Fj;if(Wj(s)||!n.assignedTo)return Oi(s);const c=(h=r==null?void 0:r.get(n.assignedTo))==null?void 0:h.trim();return c?Jj(c,s):Oi(s)}function _M(n,r,o,s){const c=new Map;for(const m of n){const h=m.assignedTo??null,v=h??"__unassigned__",p=h?r.get(h)??m.assignedNodeName??h.slice(0,8):"Unassigned",b=e_(m,s);c.has(v)||c.set(v,{nodeId:h,nodeName:p,dirMap:new Map});const y=c.get(v);y.dirMap.has(b)||y.dirMap.set(b,[]),y.dirMap.get(b).push(m)}const u=Array.from(c.values()).map(({nodeId:m,nodeName:h,dirMap:v})=>{const p=Array.from(v.entries()).map(([b,y])=>({path:b,tasks:y})).sort((b,y)=>y.tasks.length-b.tasks.length||b.path.localeCompare(y.path));return{nodeId:m,nodeName:h,dirs:p}});return u.sort((m,h)=>{if(o){if(m.nodeId===o)return-1;if(h.nodeId===o)return 1}return m.nodeId===null?1:h.nodeId===null?-1:m.nodeName.localeCompare(h.nodeName)}),u}const t_={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"},n_={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 a_(n){return n.split(".")[0]??"unknown"}function r_(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function No(n,r,o){return typeof o=="string"&&o.length>0?o:(r==null?void 0:r.get(n))??n}function d1(n,r){const o=n.data,s=o.operation;switch(n.type){case"node.joined":return`${o.name} joined the cluster`;case"node.left":return`${No(o.nodeId,r,o.name)} left (${o.reason})`;case"node.status":return`${No(o.nodeId,r)} is now ${o.status}`;case"node.operation.created":return`${s==null?void 0:s.kind} ${s==null?void 0:s.status} on ${No(s==null?void 0:s.nodeId,r)}`;case"node.operation.updated":return`${s==null?void 0:s.kind} ${s==null?void 0:s.status} on ${No(s==null?void 0:s.nodeId,r)}`;case"transport.changed":return`${No(o.nodeId,r)} transport switched to ${o.transportType}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${No(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 o_(n){return JSON.stringify(n,null,2)}function l_({events:n,maxHeight:r="400px",nodeNameById:o,onDismiss:s,density:c="default"}){if(n.length===0)return null;const u=c==="compact";return f.jsx("div",{className:"overflow-y-auto pr-1",style:{maxHeight:r},children:f.jsx("div",{className:"space-y-1.5",children:n.map(m=>{const h=a_(m.type);return f.jsx("div",{className:le("transition-colors hover:bg-muted/30",u?"rounded-sm px-1 py-0.5":"rounded-lg px-1.5 py-1"),children:f.jsxs("div",{className:"space-y-1",children:[f.jsxs("div",{className:"flex items-start justify-between gap-1.5",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[f.jsx("div",{className:le("font-mono text-muted-foreground",u?"text-[8px]":"text-[9px]"),children:r_(m.timestamp)}),u?f.jsx("span",{className:le("max-w-[8.5rem] truncate text-[7px] font-medium uppercase tracking-[0.08em] text-muted-foreground/70",n_[h]),children:m.type}):f.jsx(Nt,{variant:"outline",className:le("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",t_[h]),children:m.type})]}),f.jsxs("div",{className:le("flex shrink-0 items-center",u?"gap-px":"gap-0.5"),children:[f.jsx(Pt,{type:"button",variant:"ghost",size:"icon",className:le("rounded-sm text-muted-foreground hover:text-foreground",u?"h-3.5 w-3.5 p-0 opacity-65 hover:bg-muted/40 hover:opacity-100 [&_svg]:size-2.5":"h-5 w-5"),onClick:()=>void Zj(o_(m),"Event copied"),"aria-label":`Copy ${m.type} event`,title:"Copy event",children:f.jsx(kN,{className:u?"h-2.5 w-2.5":"h-3 w-3"})}),s&&f.jsx(Pt,{type:"button",variant:"ghost",size:"icon",className:le("rounded-sm text-muted-foreground hover:text-foreground",u?"h-3.5 w-3.5 p-0 opacity-65 hover:bg-muted/40 hover:opacity-100 [&_svg]:size-2.5":"h-5 w-5"),onClick:()=>s(m.id),"aria-label":`Dismiss ${m.type} event`,title:"Dismiss event",children:f.jsx(K0,{className:u?"h-2.5 w-2.5":"h-3 w-3"})})]})]}),f.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:d1(m,o)})]})},m.id)})})})}function f1(n){return n!==null}function m1(n){return n==="click"?n:"hover"}function Sf(n){return n==="hover"?null:n}function h1(n){return n==="click"?null:"click"}const s_=["node.","election.","transport."],i_="cluster.state";function c_(n){return n.type==="node.status"?!1:s_.some(r=>n.type.startsWith(r))}function u_(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function d_(n,r){return n?{time:u_(n.timestamp),text:d1(n,r)}:null}function f_(n){return n.transportType==="devtunnel"||!!n.devtunnelEndpoint}function m_(n){if(n.length===0)return"No node tunnel";const r=n.filter(c=>c.status==="offline").length;if(r>0)return`${r} offline`;const o=n.filter(c=>{var u;return((u=c.devtunnelHealth)==null?void 0:u.status)==="failed"}).length;if(o>0)return`${o} failed`;const s=n.filter(c=>{var u;return c.status!=="offline"&&((u=c.devtunnelHealth)==null?void 0:u.status)!=="healthy"}).length;return s>0?`${s} checking`:"Healthy"}function h_(n,r){var c;const o=(r==null?void 0:r.get(n.id))??n.name??n.id;if(n.status==="offline")return{label:o,status:"offline"};const s=((c=n.devtunnelHealth)==null?void 0:c.status)??"checking";return{label:o,status:s}}function p_(n){if(n.length===0)return"No nodes";const r=n.filter(s=>s.status==="offline").length;if(r>0)return`${r} offline`;const o=n.filter(s=>s.status==="busy").length;return o>0?`${o} busy`:"Healthy"}function g_(n,r){return{label:(r==null?void 0:r.get(n.id))??n.name??n.id,status:n.status}}function v_({connected:n,events:r,nodes:o=[],currentNode:s=null,nodeNameById:c,desktopUpdate:u=null,desktopUpdateCheckPending:m=!1,desktopUpdateProgress:h=null,defaultOpen:v=!1,defaultActionMenuOpen:p=!1,onDesktopUpdateCheck:b,onDesktopUpdate:y,onDesktopRestart:S,onReload:T,onRestart:E}){const[N,C]=g.useState(v?"click":null),[A,j]=g.useState(p),[M,U]=g.useState(!0),[H,G]=g.useState(new Set),[V,$]=g.useState(!1),[re,de]=g.useState(!1),fe=f1(N),F=g.useRef(null),te=g.useRef(null),ce=g.useMemo(()=>r.filter(we=>c_(we)&&!H.has(we.id)),[r,H]),J=g.useMemo(()=>r.find(we=>we.type===i_)??ce[0],[r,ce]),_=g.useMemo(()=>d_(J,c),[J,c]),q=g.useMemo(()=>{const we=new Map(o.map(Ze=>[Ze.id,Ze]));return s&&we.set(s.id,s),Array.from(we.values())},[s,o]),K=g.useMemo(()=>q.filter(f_),[q]),me=K.some(we=>{var Ze;return we.status==="offline"||((Ze=we.devtunnelHealth)==null?void 0:Ze.status)==="failed"}),R=q.some(we=>we.status==="offline"),Y=q.some(we=>we.status==="busy"),se=q.length>0,X=(s==null?void 0:s.name)??"offline",ne=(s==null?void 0:s.role)==="leader"?"Leader":(s==null?void 0:s.role)==="follower"?"Follower":"Node",W=u!==null,ee=!!(W&&(u!=null&&u.updateAvailable)&&u.latestVersion),ue=(u==null?void 0:u.latestVersion)??null,ie=!!(W&&!ee&&ue),ae=!!(W&&(u==null?void 0:u.detail)==="Checking desktop update..."),be=!!(W&&!ee&&!ue&&(u!=null&&u.detail)&&!ae),ve=(h==null?void 0:h.percent)??null,xe=ve===null?null:`${ve}%`,Ue=V?"Relaunching runtime...":"Relaunch to apply update",Ve=xe?`Downloading ${xe}`:re?"Downloading and installing desktop update...":ee&&ue?`Available version ${ue}`:be?(u==null?void 0:u.detail)??"Desktop update unavailable":"Desktop is current",$e=!!T,bt=!!(W&&S),Ht=!!(W&&b)||$e||bt,at=W||!!E,_r=W||!!E||$e,Qn=at?W?ee?"Update":ie?"Latest":"Check":"Relaunch":"Reload",ft=W&&!ee,xn=ft?"Check":Qn,Mr=at?W?Ve:Ue:"Reload dashboard page",ba=at?W?re||h!==null:V:!1,Zt=at?W?ba||!ee||!y:ba:!1,jt=m||re||!b,qt=W?ee&&ue?`Install desktop update ${ue}`:be?"Desktop update unavailable":"Desktop is current":at?V?"Relaunching runtime":"Relaunch runtime":"Reload dashboard page";function nt(){te.current&&(clearTimeout(te.current),te.current=null)}function kn(){nt(),C(we=>m1(we))}function Or(){nt(),te.current=setTimeout(()=>{C(we=>Sf(we)),te.current=null},180)}function jn(){nt()}function xa(){nt(),C(we=>Sf(we))}async function Sa(){if(!(!E||V)){$(!0);try{await E()}finally{$(!1)}}}async function cn(){if(!(!ee||!y||re)){de(!0);try{await y()}finally{de(!1)}}}async function Kn(){!b||m||re||await b()}async function Zn(){if(!(!S||V)){j(!1),$(!0);try{await S()}finally{$(!1)}}}async function wa(){if(!at){await Vt();return}if(W){await cn();return}await Sa()}async function Vt(){T&&(j(!1),await T())}return g.useEffect(()=>()=>{nt()},[]),g.useEffect(()=>{G(we=>{if(we.size===0)return we;const Ze=new Set(r.map(_t=>_t.id)),Ye=new Set(Array.from(we).filter(_t=>Ze.has(_t)));return Ye.size===we.size?we:Ye})},[r]),g.useEffect(()=>{fe||j(!1)},[fe]),g.useEffect(()=>{if(!fe)return;const we=Ye=>{var _t;(_t=F.current)!=null&&_t.contains(Ye.target)||(nt(),j(!1),C(null))},Ze=Ye=>{Ye.key==="Escape"&&(nt(),j(!1),C(null))};return document.addEventListener("pointerdown",we),document.addEventListener("keydown",Ze),()=>{document.removeEventListener("pointerdown",we),document.removeEventListener("keydown",Ze)}},[fe]),f.jsxs("div",{ref:F,className:"relative",children:[f.jsxs("button",{type:"button","aria-label":n?"Cluster link connected":"Cluster link reconnecting","aria-expanded":fe,"aria-haspopup":"dialog",onClick:()=>C(we=>h1(we)),onMouseEnter:kn,onMouseLeave:Or,className:le("flex h-8 max-w-[18rem] items-center gap-1.5 rounded-sm px-2 text-[10px] transition-all sm:gap-2 sm:px-2.5 sm:text-[11px]",n?"bg-muted/40 text-muted-foreground hover:bg-muted/60 hover:text-foreground":"bg-destructive/8 text-destructive hover:bg-destructive/12",fe&&(n?"bg-muted/60 text-foreground":"bg-destructive/12")),title:n?"Cluster link connected":"Cluster link reconnecting",children:[f.jsxs("span",{className:le("relative flex h-2 w-2 shrink-0"),children:[n&&f.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-emerald-400 opacity-60"}),f.jsx("span",{className:le("relative inline-flex h-2 w-2 rounded-full",n?"bg-emerald-500":"bg-destructive")})]}),f.jsxs("span",{className:"hidden min-w-0 items-center gap-2 sm:flex",children:[f.jsx("span",{className:"truncate font-medium text-foreground",children:X}),f.jsx("span",{className:le("shrink-0 rounded border px-1 py-px text-[8px] font-semibold uppercase tracking-[0.1em]",n?"border-emerald-500/25 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:ne})]})]}),fe&&f.jsxs("div",{role:"dialog","aria-label":"Live link connection events",onMouseEnter:jn,onMouseLeave:xa,className:"absolute right-0 top-[calc(100%+0.4rem)] z-50 w-[18rem] max-w-[calc(100vw-1.5rem)] overflow-hidden rounded-lg border border-border/70 bg-background/96 shadow-[0_28px_90px_-42px_rgba(0,0,0,var(--panel-shadow-alpha))] backdrop-blur-xl max-sm:fixed max-sm:right-3 max-sm:top-[3.75rem] max-sm:w-[calc(100vw-1.5rem)]",children:[f.jsx("div",{className:"border-b border-border/60 bg-muted/25 px-2.5 py-1.5",children:f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex items-center gap-1.5",children:[n?f.jsx(zi,{className:"h-3 w-3 text-emerald-500"}):f.jsx(vT,{className:"h-3 w-3 text-destructive"}),f.jsx("span",{className:"text-[10px] font-semibold text-foreground",children:"Live link"}),f.jsx("span",{className:"text-[9px] text-muted-foreground",children:n?"· SSE connected":"· reconnecting"})]}),f.jsx("div",{className:le("rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.12em]",n?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:n?"Connected":"Retrying"})]})}),f.jsxs("div",{className:"grid grid-cols-2 border-b border-border/60",children:[f.jsxs("div",{className:"border-r border-border/60 px-2.5 py-1.5",children:[f.jsx("div",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Events"}),f.jsx("div",{className:"mt-0.5 text-base font-semibold tracking-tight text-foreground",children:ce.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"}),_?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"mt-0.5 truncate text-[9px] leading-snug text-foreground/80",children:_.text}),f.jsx("div",{className:"font-mono text-[8px] text-muted-foreground/60",children:_.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:[R?f.jsx(gi,{className:"h-3 w-3 shrink-0 text-destructive"}):Y?f.jsx(zi,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Yl,{className:le("h-3 w-3 shrink-0",se?"text-emerald-500":"text-muted-foreground")}),f.jsx("span",{className:"text-[9px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Node health"})]}),f.jsx("span",{className:le("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",R?"border-destructive/30 bg-destructive/10 text-destructive":Y?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":se?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-border/70 bg-background/60 text-muted-foreground"),children:p_(q)})]}),q.length>0&&f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:q.map(we=>{const{label:Ze,status:Ye}=g_(we,c),_t=Ye==="offline",Ne=Ye==="busy";return f.jsxs("div",{"aria-label":`${Ze} ${Ye}`,className:le("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",_t?"bg-destructive/6":Ne?"bg-amber-500/6":"bg-emerald-500/5"),title:`${Ze} ${Ye}`,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:Ze}),_t?f.jsx(gi,{className:"h-3 w-3 shrink-0 text-destructive"}):Ne?f.jsx(yv,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Yl,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},we.id)})})]}),K.length>0&&f.jsxs("div",{className:"border-b border-border/60 px-2.5 py-1.5",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[me?f.jsx(gi,{className:"h-3 w-3 shrink-0 text-destructive"}):f.jsx(Yl,{className:"h-3 w-3 shrink-0 text-emerald-500"}),f.jsx("span",{className:"text-[9px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"DevTunnel"})]}),f.jsx("span",{className:le("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",me?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"),children:m_(K)})]}),f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:K.map(we=>{var st;const{label:Ze,status:Ye}=h_(we,c),_t=Ye==="failed"||Ye==="offline",Ne=Ye!=="healthy"&&Ye!=="failed"&&Ye!=="offline",lt=(st=we.devtunnelHealth)!=null&&st.reason?`${Ze} ${Ye}: ${we.devtunnelHealth.reason}`:`${Ze} ${Ye}`;return f.jsxs("div",{"aria-label":`${Ze} ${Ye}`,className:le("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",_t?"bg-destructive/6":Ne?"bg-muted/30":"bg-emerald-500/5"),title:lt,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:Ze}),_t?f.jsx(gi,{className:"h-3 w-3 shrink-0 text-destructive"}):Ne?f.jsx(yv,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):f.jsx(Yl,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},we.id)})})]}),f.jsxs("div",{children:[f.jsxs("button",{type:"button",onClick:()=>U(we=>!we),className:"flex w-full items-center justify-between px-2.5 py-1.5 text-left hover:bg-muted/30",children:[f.jsxs("span",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:["Notifications ",ce.length>0&&`(${ce.length})`]}),M?f.jsx(Fl,{className:"h-3 w-3 text-muted-foreground"}):f.jsx(nf,{className:"h-3 w-3 text-muted-foreground"})]}),M&&f.jsx("div",{className:"px-2 pb-2",children:f.jsx(l_,{events:ce,maxHeight:"12rem",density:"compact",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:c,onDismiss:we=>G(Ze=>new Set(Ze).add(we))})})]}),W&&(u==null?void 0:u.detail)&&!ae&&f.jsxs("div",{className:"flex items-center gap-1.5 border-t border-border/60 px-2.5 py-1 text-[8px] text-muted-foreground",children:[f.jsx("span",{className:"shrink-0 font-medium uppercase tracking-[0.12em]",children:"Desktop update"}),f.jsx("span",{className:"truncate",title:u.detail,children:u.detail})]}),f.jsxs("div",{className:"flex items-center justify-between gap-1 border-t border-border/60 px-2.5 py-1",children:[f.jsx("div",{children:_r&&f.jsxs("div",{className:"group/restart relative flex items-center",children:[f.jsxs("div",{className:"flex items-center overflow-hidden rounded-sm border border-border/50",children:[f.jsxs(Pt,{type:"button",variant:"ghost",size:"sm",className:le("relative h-5 overflow-hidden rounded-none border-0 px-1.5 text-[9px] font-medium hover:text-foreground [&_svg]:size-2.5",ee?"bg-primary/12 text-primary hover:bg-primary/18":"bg-background/45 text-muted-foreground hover:bg-emerald-500/10"),onClick:()=>void wa(),disabled:Zt,"aria-label":qt,"aria-describedby":"live-link-restart-hint",title:Mr,children:[ve!==null&&f.jsx("span",{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":ve,className:"pointer-events-none absolute inset-y-0 left-0 bg-primary/24",style:{width:`${ve}%`}}),ve===null&&f.jsx(bv,{className:le("relative z-10 h-2.5 w-2.5",ba&&"animate-pulse")}),f.jsx("span",{className:"relative z-10",children:xe??Qn})]}),Ht&&f.jsx(Pt,{type:"button",variant:"ghost",size:"sm",className:le("h-5 rounded-none border-l border-border/50 px-1 text-[9px] hover:text-foreground [&_svg]:size-2.5",ee?"bg-primary/12 text-primary hover:bg-primary/18":"bg-background/45 text-muted-foreground hover:bg-emerald-500/10"),onClick:()=>j(we=>!we),"aria-label":"Open live link actions","aria-expanded":A,title:"Live link actions",children:f.jsx(Fl,{className:"h-2.5 w-2.5"})})]}),Ht&&A&&f.jsxs("div",{className:"absolute bottom-[calc(100%+0.25rem)] left-0 z-20 min-w-28 overflow-hidden rounded-md border border-border/70 bg-background text-[9px] shadow-lg",children:[f.jsxs("button",{type:"button",className:"flex w-full items-center gap-1.5 px-2 py-1 text-left text-muted-foreground hover:bg-muted/55 hover:text-foreground disabled:opacity-45 disabled:hover:bg-transparent disabled:hover:text-muted-foreground",onClick:()=>void(ft?Kn():wa()),disabled:ft?jt:Zt,"aria-label":ft?"Check for desktop updates":qt,children:[ft?f.jsx(Ai,{className:le("h-2.5 w-2.5",m&&"animate-spin")}):f.jsx(bv,{className:le("h-2.5 w-2.5",ba&&"animate-pulse")}),f.jsx("span",{children:xn})]}),$e&&f.jsxs("button",{type:"button",className:"flex w-full items-center gap-1.5 border-t border-border/50 px-2 py-1 text-left text-muted-foreground hover:bg-muted/55 hover:text-foreground disabled:opacity-45 disabled:hover:bg-transparent disabled:hover:text-muted-foreground",onClick:()=>void Vt(),"aria-label":"Reload dashboard page",children:[f.jsx(Ai,{className:"h-2.5 w-2.5"}),f.jsx("span",{children:"Reload"})]}),bt&&f.jsxs("button",{type:"button",className:"flex w-full items-center gap-1.5 border-t border-border/50 px-2 py-1 text-left text-muted-foreground hover:bg-muted/55 hover:text-foreground",onClick:()=>void Zn(),disabled:V,"aria-label":"Restart Meshy Desktop",children:[f.jsx(Ai,{className:le("h-2.5 w-2.5",V&&"animate-spin")}),f.jsx("span",{children:"Restart"})]})]}),f.jsx("span",{id:"live-link-restart-hint",role:"tooltip",className:"pointer-events-none absolute left-6 top-1/2 z-10 -translate-y-1/2 whitespace-nowrap rounded-sm border border-border/70 bg-background px-1.5 py-0.5 text-[8px] text-muted-foreground opacity-0 shadow-sm transition-opacity group-hover/restart:opacity-100 group-focus-within/restart:opacity-100",children:Mr})]})}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(Pt,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>G(new Set(r.map(we=>we.id))),disabled:ce.length===0,title:"Dismiss all notifications",children:"Dismiss all"}),f.jsx(Pt,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>C(null),children:"Close"})]})]})]})]})}const r0="dark",kr="fluent",y_="clean",Qd="meshy-layout-default-migrated-to-compact",wf="true",b_="compact",x_=new Set(["airy","clean","fluent"]);function S_(n){return n!==null&&x_.has(n)}function vc(n){return n===b_?"fluent":S_(n)?n:null}function w_(n,r){const o=vc(n);return o===y_&&r!==wf?kr:o??kr}const Ji="symphony",p1="default",E_=new Set(["light","dark","system"]),N_=new Set(["porcelain","warm","finsight","edge","symphony","launcher"]),g1=g.createContext(null);function T_(n){const r=new URLSearchParams(n).get("theme");return v1(r)?r:null}function C_(n){const r=new URLSearchParams(n).get("palette");return cm(r)}function R_(n){const r=new URLSearchParams(n).get("layout");return vc(r)}function A_(){if(typeof document>"u")return null;const n=document.documentElement;return{theme:n.classList.contains("dark")?"dark":"light",palette:cm(n.getAttribute("data-palette"))??Ji,layout:vc(n.getAttribute("data-layout"))??kr}}function MM(n,r=A_()){if(!r)return n;try{const o=/^[a-z][a-z\d+\-.]*:/i.test(n),s=typeof window<"u"?window.location.href:"http://localhost",c=new URL(n,s);return c.searchParams.set("theme",r.theme),c.searchParams.set("palette",r.palette),c.searchParams.set("layout",r.layout),o?c.toString():`${c.pathname}${c.search}${c.hash}`}catch{return n}}const Kd=.9;function o0(n){const r=n.trim().match(/^(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)%\s+(-?\d+(?:\.\d+)?)%$/);if(!r)return null;const o=(Number(r[1])%360+360)%360/60,s=ec(Number(r[2])/100,0,1),c=ec(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,[v,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((v+h)*255),Math.round((p+h)*255),Math.round((b+h)*255),255]}function k_(n){const r=n.trim();if(!r||r==="transparent")return null;const o=r.match(/^rgba?\(\s*([+-]?\d+(?:\.\d+)?)\s*,\s*([+-]?\d+(?:\.\d+)?)\s*,\s*([+-]?\d+(?:\.\d+)?)(?:\s*,\s*([+-]?\d+(?:\.\d+)?))?\s*\)$/i);if(o)return[To(Number(o[1])),To(Number(o[2])),To(Number(o[3])),i0(o[4])];const s=r.match(/^rgba?\(\s*([+-]?\d+(?:\.\d+)?)\s+([+-]?\d+(?:\.\d+)?)\s+([+-]?\d+(?:\.\d+)?)(?:\s*\/\s*([+-]?\d+(?:\.\d+)?%?))?\s*\)$/i);return s?[To(Number(s[1])),To(Number(s[2])),To(Number(s[3])),i0(s[4])]:null}function j_(n,r,o){const s=o0(n);if(!s)return null;if(o==="clean"||o==="fluent")return s;const c=o0(r);return c?[Zd(s[0],c[0],Kd),Zd(s[1],c[1],Kd),Zd(s[2],c[2],Kd),255]:null}function __(){const n=document.querySelector(".dashboard-shell-header-panel");if(!n)return null;const r=k_(getComputedStyle(n).backgroundColor);return!r||r[3]===0?null:r}function l0(){var m,h;if(typeof window>"u"||typeof document>"u")return;const n=((h=(m=window.__TAURI__)==null?void 0:m.core)==null?void 0:h.invoke)??null;if(!n)return;const r=document.documentElement,o=r.classList.contains("dark")?"dark":"light",s=getComputedStyle(r),c=vc(r.getAttribute("data-layout"))??kr,u=__()??j_(s.getPropertyValue("--card"),s.getPropertyValue("--background"),c);n("sync_desktop_theme",{theme:o,backgroundColor:u}).catch(()=>{})}function s0(){if(typeof window>"u")return()=>{};if(l0(),typeof window.requestAnimationFrame!="function")return()=>{};const n=window.requestAnimationFrame(()=>l0());return()=>window.cancelAnimationFrame(n)}function Zd(n,r,o){return Math.round(n*o+r*(1-o))}function ec(n,r,o){return Math.min(Math.max(n,r),o)}function To(n){return Math.round(ec(n,0,255))}function i0(n){if(n==null||n==="")return 255;const r=n.endsWith("%")?Number(n.slice(0,-1))/100:Number(n);return Math.round(ec(r,0,1)*255)}function M_({children:n}){const[r,o]=g.useState(()=>typeof window<"u"?T_(window.location.search)??z_(localStorage.getItem("meshy-theme"))??r0:r0),[s,c]=g.useState(()=>typeof window<"u"?C_(window.location.search)??L_(localStorage.getItem("meshy-palette"))??Ji:Ji),[u,m]=g.useState(()=>{if(typeof window<"u"){const h=R_(window.location.search);if(h)return localStorage.setItem(Qd,wf),h;const v=w_(localStorage.getItem("meshy-layout"),localStorage.getItem(Qd));return localStorage.setItem(Qd,wf),v}return kr});return g.useEffect(()=>{const h=document.documentElement,v=p=>{if(p==="system"){const b=window.matchMedia("(prefers-color-scheme: dark)").matches;h.classList.toggle("dark",b)}else h.classList.toggle("dark",p==="dark")};if(v(r),localStorage.setItem("meshy-theme",r),r==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)"),b=()=>{v("system"),s0()};return p.addEventListener("change",b),()=>p.removeEventListener("change",b)}},[r]),g.useEffect(()=>{document.documentElement.setAttribute("data-palette",s),localStorage.setItem("meshy-palette",s)},[s]),g.useEffect(()=>{const h=document.documentElement;u===kr?h.removeAttribute("data-layout"):h.setAttribute("data-layout",u),localStorage.setItem("meshy-layout",u)},[u]),g.useEffect(()=>s0(),[r,s,u]),f.jsx(g1.Provider,{value:{theme:r,setTheme:o,palette:s,setPalette:c,layout:u,setLayout:m},children:n})}function O_(){const n=g.useContext(g1);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}function v1(n){return n!==null&&E_.has(n)}function D_(n){return n!==null&&N_.has(n)}function z_(n){return v1(n)?n:null}function cm(n){return n===p1?"porcelain":D_(n)?n:null}function L_(n){return n===p1?null:cm(n)}const U_=[{value:"light",label:"Light",icon:X0},{value:"dark",label:"Dark",icon:G0},{value:"system",label:"System",icon:Y0}],y1=[{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"}],b1=[{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 B_(){const{theme:n,setTheme:r,palette:o,setPalette:s,layout:c,setLayout:u}=O_(),[m,h]=g.useState(null),v=g.useRef(null),p=g.useRef(null),b=f1(m),y=n==="dark"?G0:n==="light"?X0:Y0,S=()=>{v.current&&(clearTimeout(v.current),v.current=null)},T=()=>{S(),v.current=setTimeout(()=>h(E=>Sf(E)),180)};return g.useEffect(()=>{if(!b)return;const E=N=>{p.current&&!p.current.contains(N.target)&&h(null)};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[b]),g.useEffect(()=>()=>S(),[]),f.jsxs("div",{ref:p,className:"relative",onMouseEnter:()=>{S(),h(E=>m1(E))},onMouseLeave:T,children:[f.jsx(Pt,{variant:"ghost",size:"icon",onClick:()=>h(E=>h1(E)),className:le("h-8 w-8 rounded-sm",o!==Ji||c!==kr?"text-primary":"text-muted-foreground hover:bg-muted/50 hover:text-foreground"),title:"Appearance","aria-haspopup":"menu","aria-expanded":b,children:f.jsx(y,{className:"h-4 w-4"})}),b&&f.jsxs("div",{role:"menu",className:"fixed left-2 right-2 top-[4.25rem] z-50 w-auto max-w-none rounded-md border border-border/70 bg-popover/95 p-2 text-popover-foreground shadow-[0_24px_70px_-32px_rgba(0,0,0,0.45)] backdrop-blur-xl sm:absolute sm:left-auto sm:right-0 sm:top-[calc(100%+6px)] sm:w-[23rem] sm:max-w-[23rem]",children:[f.jsxs("div",{className:"mb-2 flex items-end justify-between gap-2",children:[f.jsxs("div",{children:[f.jsx("div",{className:"text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Appearance"}),f.jsxs("div",{className:"text-[10px] font-medium text-foreground",children:[H_(c)," / ",$_(o)]})]}),f.jsx("div",{className:"rounded-sm border border-border/60 bg-background/70 px-1.5 py-0.5 text-[8px] font-medium capitalize text-muted-foreground",children:n})]}),f.jsx("div",{className:"px-0.5 pb-1 text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Theme"}),f.jsx("div",{className:"mb-2 grid grid-cols-3 gap-1 rounded-sm bg-muted/35 p-0.5",children:U_.map(({value:E,label:N,icon:C})=>{const A=n===E;return f.jsxs("button",{type:"button",onClick:()=>r(E),role:"menuitemradio","aria-checked":A,className:le("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",A?"border-primary/55 bg-background text-primary shadow-sm":"border-transparent text-muted-foreground hover:border-border/70 hover:bg-background/80 hover:text-foreground"),children:[f.jsx(C,{className:"h-3 w-3"}),N]},E)})}),f.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[f.jsxs("div",{children:[f.jsx("div",{className:"px-0.5 pb-1 text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Layout"}),f.jsx("div",{className:"space-y-1",children:b1.map(({value:E,label:N,hint:C})=>{const A=c===E;return f.jsxs("button",{type:"button",onClick:()=>u(E),role:"menuitemradio","aria-checked":A,className:le("flex min-h-[2.25rem] w-full items-center gap-1.5 rounded-sm border px-1.5 py-1 text-left transition-colors",A?"border-primary/55 bg-primary/10":"border-border/45 bg-background/45 hover:border-border hover:bg-muted/55"),children:[f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:le("text-[10px] font-medium leading-tight",A?"text-primary":"text-foreground"),children:N}),f.jsx("div",{className:"mt-0.5 text-[8px] leading-tight text-muted-foreground",children:C})]}),A&&f.jsx(Li,{className:"h-3 w-3 text-primary"})]},E)})})]}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-1.5 px-0.5 pb-1 text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:[f.jsx(dT,{className:"h-2.5 w-2.5"}),"Palette"]}),f.jsx("div",{className:"space-y-1",children:y1.map(({value:E,label:N,hint:C})=>{const A=o===E;return f.jsxs("button",{type:"button",onClick:()=>s(E),role:"menuitemradio","aria-checked":A,className:le("flex min-h-[2.25rem] w-full items-center gap-1.5 rounded-sm border px-1.5 py-1 text-left transition-colors",A?"border-primary/55 bg-primary/10":"border-border/45 bg-background/45 hover:border-border hover:bg-muted/55"),children:[f.jsx(P_,{value:E}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:le("text-[10px] font-medium leading-tight",A?"text-primary":"text-foreground"),children:N}),f.jsx("div",{className:"mt-0.5 text-[8px] leading-tight text-muted-foreground",children:C})]}),A&&f.jsx(Li,{className:"h-3 w-3 text-primary"})]},E)})})]})]})]})]})}function H_(n){var r;return((r=b1.find(o=>o.value===n))==null?void 0:r.label)??n}function $_(n){var r;return((r=y1.find(o=>o.value===n))==null?void 0:r.label)??n}function P_({value:n}){const r={porcelain:["hsl(212 76% 44%)","hsl(210 22% 98%)","hsl(174 42% 61%)"],warm:["hsl(35 88% 56%)","hsl(42 22% 97%)","hsl(160 60% 45%)"],finsight:["hsl(152 38% 32%)","hsl(150 14% 97%)","hsl(142 55% 58%)"],edge:["hsl(265 75% 55%)","hsl(260 12% 98%)","hsl(285 70% 65%)"],symphony:["hsl(348 100% 71%)","hsl(0 0% 6%)","hsl(240 2% 9%)"],launcher:["hsl(213 77% 49%)","hsl(60 10% 96%)","hsl(0 0% 100%)"]},[o,s,c]=r[n];return f.jsxs("div",{className:le("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 Ql={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}},x1="meshy-dashboard-panel-state-v2",S1="meshy-dashboard-terminal-open-v1";function OM({operationsOpen:n}){return{layout:{desktopTasksOpen:!0,operationsOpen:n},sizes:{tasks:Ql.tasks.defaultSize,operations:Ql.operations.defaultSize,terminal:Ql.terminal.defaultSize}}}function Fd(n){return typeof n=="object"&&n!==null}function c0(n,r){return typeof n=="boolean"?n:r}function Wd(n,r,o){return typeof r=="number"&&Number.isFinite(r)?Kl(n,r):o}function Kl(n,r){const o=Ql[n];return Math.min(o.max,Math.max(o.min,r))}function DM(n,r){if(!n)return r;try{const o=n.getItem(x1);if(!o)return r;const s=JSON.parse(o);if(!Fd(s))return r;const c=Fd(s.layout)?s.layout:{},u=Fd(s.sizes)?s.sizes:{};return{layout:{desktopTasksOpen:c0(c.desktopTasksOpen,r.layout.desktopTasksOpen),operationsOpen:c0(c.operationsOpen,r.layout.operationsOpen)},sizes:{tasks:Wd("tasks",u.tasks,r.sizes.tasks),operations:Wd("operations",u.operations,r.sizes.operations),terminal:Wd("terminal",u.terminal,r.sizes.terminal)}}}catch{return r}}function zM(n,r){if(n)try{n.setItem(x1,JSON.stringify(r))}catch{}}function q_(n,r){if(!n)return r;try{const o=n.getItem(S1);return o==="true"?!0:o==="false"?!1:r}catch{return r}}function V_(n,r){if(n)try{n.setItem(S1,String(r))}catch{}}function u0(){var n;try{return((n=globalThis.window)==null?void 0:n.localStorage)??globalThis.localStorage??null}catch{return null}}function LM(n){return`${Number(n.toFixed(2))}rem`}function UM(n,r,o,s,c,u,m){const h=Number.isFinite(m)&&m>0?m:16;return n==="tasks"?Kl(n,r+(c-o)/h):n==="operations"?Kl(n,r+(o-c)/h):Kl(n,r+(s-u)/h)}function BM(n,r,o){const s=o===0?0:o>0?-1:1;return Kl(n,r+s*Ql[n].wheelStep)}const Y_=7200*1e3,G_=15*1e3,I_="meshy://desktop-update-progress",X_="Desktop update check timed out";function Q_(){return f.jsxs("svg",{"data-meshy-app-icon":"header",viewBox:"0 0 1024 1024",className:"h-8 w-8","aria-hidden":"true",children:[f.jsxs("defs",{children:[f.jsxs("linearGradient",{id:"meshy-header-icon-bg",x1:"160",y1:"128",x2:"864",y2:"896",gradientUnits:"userSpaceOnUse",children:[f.jsx("stop",{offset:"0",stopColor:"#182033"}),f.jsx("stop",{offset:"1",stopColor:"#0a0f1f"})]}),f.jsxs("linearGradient",{id:"meshy-header-icon-edge",x1:"260",y1:"244",x2:"768",y2:"780",gradientUnits:"userSpaceOnUse",children:[f.jsx("stop",{offset:"0",stopColor:"#66e3ff"}),f.jsx("stop",{offset:"0.52",stopColor:"#8fd56b"}),f.jsx("stop",{offset:"1",stopColor:"#ffcb5b"})]})]}),f.jsx("rect",{width:"1024",height:"1024",rx:"224",fill:"url(#meshy-header-icon-bg)"}),f.jsx("path",{d:"M308 652V372l204 174 204-174v280",fill:"none",stroke:"url(#meshy-header-icon-edge)",strokeWidth:"86",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("circle",{cx:"308",cy:"372",r:"58",fill:"#66e3ff"}),f.jsx("circle",{cx:"512",cy:"546",r:"58",fill:"#8fd56b"}),f.jsx("circle",{cx:"716",cy:"372",r:"58",fill:"#ffcb5b"}),f.jsx("circle",{cx:"308",cy:"652",r:"58",fill:"#66e3ff"}),f.jsx("circle",{cx:"716",cy:"652",r:"58",fill:"#ffcb5b"})]})}function Vl(){var n,r;return typeof window>"u"?null:((r=(n=window.__TAURI__)==null?void 0:n.core)==null?void 0:r.invoke)??null}function K_(){var n,r;return typeof window>"u"?null:((r=(n=window.__TAURI__)==null?void 0:n.event)==null?void 0:r.listen)??null}function Z_(n){if(!n||typeof n!="object")return null;const r=n;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 d0(n){return{currentVersion:null,latestVersion:null,updateAvailable:!1,checkedAt:new Date().toISOString(),releaseUrl:null,assetName:null,installable:!1,detail:n}}async function F_(n,r,o){let s;const c=new Promise((u,m)=>{s=setTimeout(()=>{m(new Error(X_))},r)});try{return await Promise.race([n,c])}finally{s!==void 0&&clearTimeout(s)}}async function W_({activeCheck:n,startCheck:r,timeoutMs:o,shouldApply:s,applyUpdate:c,applyFailure:u,failureFallback:m="Desktop update check failed"}){let h=n.current;if(!h){let v;try{v=r()}catch(p){v=Promise.reject(p)}h=F_(v,o),n.current=h}try{const v=await h;return s()&&c(v),v}catch(v){return s()&&u(Ef(v,m)),null}finally{n.current===h&&(n.current=null)}}function Ef(n,r){if(n instanceof Error&&n.message.trim())return n.message;if(typeof n=="string"&&n.trim())return n;if(n&&typeof n=="object"&&"message"in n){const o=n.message;if(typeof o=="string"&&o.trim())return o}return r}function J_(n){return n.openedRelease?"Opened the latest Meshy release page.":n.installMethod==="tauri-updater"?"Installing desktop update. Meshy will relaunch to finish updating.":(n.assetName??"desktop update").toLowerCase().endsWith(".dmg")?"Downloaded desktop update. Open the DMG and drag Meshy to Applications to finish updating.":"Downloaded desktop update. Follow the installer to finish updating."}function e3(){const{cluster:n,events:r,sseConnected:o,systemInfo:s}=$0(),c=In(),[u,m]=g.useState(()=>q_(u0(),!1)),[h,v]=g.useState(""),[p,b]=g.useState(null),[y,S]=g.useState(null),[T,E]=g.useState(!1),[N,C]=g.useState(null),A=g.useRef(null),j=!!Vl(),M=j?"max-w-none":"max-w-[1760px]",U=c.pathname==="/"||/^\/tasks\/[^/]+$/.test(c.pathname),H=g.useMemo(()=>{const F=new Map;for(const te of(n==null?void 0:n.nodes)??[])F.set(te.id,te.name);return n!=null&&n.self&&F.set(n.self.id,n.self.name),F},[n==null?void 0:n.nodes,n==null?void 0:n.self]),G=g.useCallback(F=>{m(te=>typeof F=="function"?F(te):F)},[]);g.useEffect(()=>{V_(u0(),u)},[u]);const V=g.useCallback(async(F=!0,te=()=>!0)=>{const ce=Vl();return ce?(F&&te()&&S(d0("Checking desktop update...")),W_({activeCheck:A,startCheck:()=>ce("check_desktop_update"),timeoutMs:G_,shouldApply:te,applyUpdate:J=>S(J),applyFailure:J=>S(_=>_!=null&&_.updateAvailable?_:d0(J))})):(te()&&S(null),null)},[]);async function $(){E(!0);try{await V(!1)}finally{E(!1)}}g.useEffect(()=>{if(!Vl()){S(null);return}let F=!1;const te=()=>!F;V(!0,te);const ce=window.setInterval(()=>{V(!1,te)},Y_);return()=>{F=!0,window.clearInterval(ce)}},[V,s==null?void 0:s.version]),g.useEffect(()=>{const F=K_();if(!F)return;let te=!1,ce;return F(I_,J=>{const _=Z_(J.payload);_&&C(_)}).then(J=>{if(te){J();return}ce=J}).catch(()=>{}),()=>{te=!0,ce==null||ce()}},[]);async function re(){try{const F=await U0({reason:"restart"});He.info(`Restarting runtime. Follow ${F.logPath} for launch output.`),await c1({previousPid:F.pid})||He.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout.")}catch(F){He.error(F instanceof Error?F.message:"Runtime restart failed")}}async function de(){const F=Vl();if(!F){He.error("Desktop updater is not available in this window");return}try{He.info("Downloading desktop update..."),C({phase:"downloading",receivedBytes:0,totalBytes:null,percent:0});const te=await F("install_desktop_update");C({phase:"complete",receivedBytes:1,totalBytes:1,percent:100}),He.info(J_(te))}catch(te){He.error(Ef(te,"Desktop update failed"))}finally{C(null)}}async function fe(){const F=Vl();if(!F){He.error("Desktop restart is not available in this window");return}try{He.info("Restarting Meshy Desktop..."),await F("restart_desktop_app")}catch(te){He.error(Ef(te,"Desktop restart failed"))}}return f.jsxs("div",{className:"relative h-full overflow-hidden bg-background text-foreground",children:[f.jsx("div",{className:"mesh-grid pointer-events-none absolute inset-0"}),f.jsxs("div",{className:"relative z-10 flex h-full min-h-0 flex-col",children:[f.jsx("header",{className:"dashboard-shell-header relative z-50 shrink-0 px-2 py-2",children:f.jsxs("div",{className:le("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",M),children:[f.jsx("div",{className:"flex shrink-0 items-center gap-3 pr-3",children:f.jsxs(tf,{to:"/","aria-label":"Meshy home",className:"flex items-center gap-2",children:[f.jsx(Q_,{}),f.jsxs("div",{className:"hidden min-w-0 items-baseline gap-1.5 sm:flex",children:[f.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.24em] text-muted-foreground",children:"MESHY"}),f.jsx("span",{className:"truncate text-[13px] font-semibold tracking-tight text-foreground",children:"Workspace"})]})]})}),f.jsx("div",{className:"mx-0 hidden h-4 w-px shrink-0 bg-border/50 md:block"}),U&&f.jsxs("div",{className:"hidden min-w-0 flex-1 items-center px-3 md:flex",children:[p&&f.jsxs("nav",{"aria-label":"Current task location",className:"flex min-w-0 max-w-[38rem] items-center gap-1 rounded-sm bg-background/55 px-2 py-1 text-[10px] text-muted-foreground",children:[f.jsxs("button",{type:"button",onClick:()=>v(p.nodeName),className:"flex min-w-0 items-center gap-1 rounded-sm px-1 py-0.5 hover:bg-muted/60 hover:text-foreground",title:`Filter by ${p.nodeName}`,children:[f.jsx(I0,{className:"h-3 w-3 shrink-0 text-primary/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.nodeName})]}),f.jsx(nf,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsxs("button",{type:"button",onClick:()=>v(p.projectLabel),className:"flex min-w-0 items-center gap-1 rounded-sm px-1 py-0.5 hover:bg-muted/60 hover:text-foreground",title:p.projectPath,children:[f.jsx(UN,{className:"h-3 w-3 shrink-0 text-muted-foreground/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.projectLabel})]}),f.jsx(nf,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsx(tf,{to:`/tasks/${p.taskId}`,className:"min-w-0 truncate px-1 font-medium text-foreground/85 hover:text-foreground",title:p.taskTitle,children:p.taskTitle})]}),f.jsxs("div",{className:"relative ml-auto w-[18rem] max-w-[28rem]",children:[f.jsx(rT,{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(pc,{"aria-label":"Search tasks",value:h,onChange:F=>v(F.target.value),placeholder:"Search tasks, nodes, workspaces",className:"h-8 rounded-sm border-0 bg-background/62 pl-8 pr-2 text-[11px] shadow-none focus-visible:ring-0 focus-visible:ring-offset-0"})]})]}),f.jsx("div",{className:"mx-0 hidden h-4 w-px shrink-0 bg-border/50 md:block"}),f.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-1.5 pl-3 sm:gap-2 md:ml-0",children:[U&&f.jsx(Pt,{variant:"ghost",size:"icon",onClick:()=>G(F=>!F),"aria-label":u?"Close terminal":"Open terminal",title:u?"Close terminal":"Open terminal",className:le("h-8 w-8 rounded-sm text-muted-foreground hover:bg-muted/50 hover:text-foreground",u&&"bg-primary/8 text-primary"),children:f.jsx(Q0,{className:"h-4 w-4"})}),f.jsx(Yj,{}),f.jsx(B_,{}),f.jsx("div",{className:"mx-0 h-4 w-px shrink-0 bg-border/50"}),f.jsx(v_,{connected:o,events:r,nodes:(n==null?void 0:n.nodes)??[],currentNode:(n==null?void 0:n.self)??null,nodeNameById:H,desktopUpdate:y,desktopUpdateCheckPending:T,desktopUpdateProgress:N,onDesktopUpdateCheck:j?$:void 0,onDesktopUpdate:y!=null&&y.updateAvailable?de:void 0,onDesktopRestart:j?fe:void 0,onReload:j?()=>window.location.reload():void 0,onRestart:re})]})]})}),f.jsx("main",{className:le("dashboard-shell-main min-h-0 flex-1 px-2 pb-2",U?"overflow-hidden":"overflow-y-auto"),children:f.jsx("div",{className:le("dashboard-shell-content mx-auto h-full min-h-0",M),children:f.jsx($2,{context:{terminalOpen:u,setTerminalOpen:G,headerSearchQuery:h,setHeaderSearchQuery:v,setHeaderTaskContext:b}})})})]})]})}const f0=g.lazy(async()=>({default:(await p0(()=>import("./DashboardPage-DL4PakzK.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4]))).DashboardPage})),t3=g.lazy(async()=>({default:(await p0(()=>import("./SharedConversationPage-D8TaynWN.js"),__vite__mapDeps([5,1]))).SharedConversationPage}));function n3(){return f.jsx(fE,{children:f.jsx(g.Suspense,{fallback:f.jsx(a3,{}),children:f.jsxs(q2,{children:[f.jsx(Nr,{path:"/shared/tasks/:shareId",element:f.jsx(t3,{})}),f.jsxs(Nr,{element:f.jsx(oN,{children:f.jsx(e3,{})}),children:[f.jsx(Nr,{path:"/",element:f.jsx(f0,{})}),f.jsx(Nr,{path:"/nodes",element:f.jsx(fv,{to:"/",replace:!0})}),f.jsx(Nr,{path:"/tasks",element:f.jsx(fv,{to:"/",replace:!0})}),f.jsx(Nr,{path:"/tasks/:id",element:f.jsx(f0,{})})]})]})})})}function a3(){return f.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function r3(n){const r=n??(typeof window>"u"?void 0:window);r!=null&&r.__TAURI__&&r.addEventListener("contextmenu",o=>{o.preventDefault()})}function o3(n){return f.jsx(DC,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...n})}r3();Pw.createRoot(document.getElementById("root")).render(f.jsx(g.StrictMode,{children:f.jsxs(M_,{children:[f.jsx(n3,{}),f.jsx(o3,{})]})}));export{Nt as $,fM as A,Pt as B,Li as C,mM as D,O3 as E,zN as F,SA as G,Ky as H,pc as I,Fy as J,MM as K,PN as L,kN as M,Zj as N,kx as O,QN as P,dM as Q,V0 as R,I0 as S,hM as T,Il as U,Kj as V,q0 as W,K0 as X,Lk as Y,sM as Z,iM as _,cM as a,H3 as a$,kM as a0,Xl as a1,vf as a2,Gi as a3,Ii as a4,Qi as a5,Ki as a6,Xi as a7,Fi as a8,Zi as a9,Wy as aA,Ai as aB,yM as aC,_M as aD,gM as aE,vM as aF,RM as aG,l1 as aH,AM as aI,yf as aJ,pT as aK,q3 as aL,V3 as aM,DM as aN,OM as aO,u0 as aP,zM as aQ,BM as aR,LM as aS,UM as aT,_3 as aU,WE as aV,DE as aW,aM as aX,nM as aY,rM as aZ,tN as a_,p0 as aa,d3 as ab,Zy as ac,NA as ad,N3 as ae,Q0 as af,Yl as ag,RN as ah,E3 as ai,T3 as aj,w3 as ak,vT as al,sT as am,hN as an,YN as ao,ns as ap,TM as aq,WN as ar,l_ as as,Fk as at,ON as au,Wk as av,jM as aw,Ij as ax,eM as ay,IC as az,HC as b,p3 as b0,m3 as b1,h3 as b2,g3 as b3,jE as b4,Yj as b5,$3 as b6,P3 as b7,k3 as b8,C3 as b9,v3 as bA,lM as bB,Q3 as bC,X3 as bD,I3 as bE,Y3 as bF,G3 as bG,K3 as bH,wA as bI,Gj as bJ,m0 as bK,wN as bL,W3 as bM,F3 as bN,Z3 as bO,J3 as bP,oM as bQ,tM as bR,R3 as ba,A3 as bb,j3 as bc,i3 as bd,In as be,C0 as bf,s3 as bg,$0 as bh,CM as bi,oj as bj,NM as bk,bM as bl,xM as bm,wM as bn,SM as bo,EM as bp,M3 as bq,pM as br,Xj as bs,U3 as bt,B3 as bu,L3 as bv,z3 as bw,u3 as bx,f3 as by,c3 as bz,je as c,le as d,fy as e,Wx as f,b3 as g,S3 as h,kE as i,f as j,y3 as k,UN as l,uM as m,nf as n,Ro as o,x3 as p,D3 as q,g as r,lx as s,He as t,rm as u,sx as v,om as w,rT as x,Fl as y,dT as z};
|